1 2003-03-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
5 (Qmap_ucs): New variable.
6 (syms_of_mule_charset): Add new symbol `=ucs'.
7 (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
9 * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
11 * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
13 * char-ucs.h (Qmap_ucs): New extern variable.
15 2003-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
17 * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
18 (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
19 don't define it when UTF2000 is not defined.
20 (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
21 `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
22 when UTF2000 is not defined.
23 (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
24 rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
26 2003-03-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
28 * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
30 * mule-charset.c (Vcharset_ucs_gb): Deleted.
32 (syms_of_mule_charset): Delete `ucs-gb'.
33 (complex_vars_of_mule_charset): Likewise.
35 2003-03-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
37 * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
39 * mule-charset.c (Vcharset_ucs_cns): Deleted.
41 (syms_of_mule_charset): Delete `ucs-cns'.
42 (complex_vars_of_mule_charset): Likewise.
44 2003-03-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
46 * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
48 * mule-charset.c (Vcharset_ucs_jis): Deleted.
50 (syms_of_mule_charset): Delete `ucs-jis'.
51 (complex_vars_of_mule_charset): Likewise.
53 2003-03-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
55 * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
57 * mule-charset.c (Vcharset_ucs_ks): Deleted.
59 (syms_of_mule_charset): Delete `ucs-ks'.
60 (complex_vars_of_mule_charset): Likewise.
62 2003-03-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
64 * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
65 (Qideograph_daikanwa_2): Deleted.
66 (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
67 (complex_vars_of_mule_charset): Likewise.
69 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
70 (LEADING_BYTE_DAIKANWA_1): Deleted.
71 (LEADING_BYTE_DAIKANWA_2): Deleted.
72 (MIN_CHAR_DAIKANWA): Deleted.
73 (MAX_CHAR_DAIKANWA): Deleted.
75 2003-02-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
77 * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
78 (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
79 ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
81 * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
82 (Vcharset_ideograph_daikanwa): Deleted.
83 (Qideograph_hanziku_{1..12}): Deleted.
84 (Qideograph_daikanwa): Deleted.
85 (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
86 Vcharset_ideograph_daikanwa.
87 (syms_of_mule_charset): Delete `ideograph-daikanwa' and
88 `ideograph-hanziku-{1..12}'.
89 (complex_vars_of_mule_charset): Likewise.
91 2003-02-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
93 * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
95 * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
96 (Qideograph_gt_pj_{1..11}): Deleted.
97 (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
98 (complex_vars_of_mule_charset): Likewise.
100 2003-02-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
102 * mule-charset.c (Vcharset_ucs_big5): Deleted.
103 (Vcharset_ideograph_gt): Deleted.
104 (Qucs_big5): Deleted.
105 (Qideograph_gt): Deleted.
106 (syms_of_mule_charset): Delete symbol `ucs-big5' and
108 (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
111 * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
112 (LEADING_BYTE_GT): Deleted.
113 (GC_CHARSETP): Deleted.
114 (MIN_CHAR_GT): Deleted.
115 (MAX_CHAR_GT): Deleted.
117 2003-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
119 * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
121 2003-01-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
123 * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
124 (Qideograph_cbeta): Deleted.
125 (syms_of_mule_charset): Don't define `ideograph-cbeta'.
126 (complex_vars_of_mule_charset): Likewise.
128 * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
129 (MIN_CHAR_CBETA): Comment out.
130 (MAX_CHAR_CBETA): Likewise.
132 2002-12-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
134 * mule-charset.c (charset_lookup_description_1): Use
135 `NUM_LEADING_BYTES' in UTF-2000.
137 2002-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
139 * mule-charset.c (Vcharset_china3_jef): Deleted.
140 (Qchina3_jef): Deleted.
141 (syms_of_mule_charset): Don't define `china3-jef'.
142 (complex_vars_of_mule_charset): Likewise.
144 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
145 (MIN_CHAR_CHINA3_JEF): Comment out.
146 (MAX_CHAR_CHINA3_JEF): Comment out.
148 2002-11-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
150 * mule-charset.c (Vcharset_ucs_gb): New variable.
151 (Qucs_gb): New variable.
152 (syms_of_mule_charset): Add new symbol `ucs-gb'.
153 (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
155 * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
157 2002-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
159 * mule-charset.c (charset_code_point): if a coded-charset has a
160 final-byte, don't inherit the builtin range of the mother CCS.
162 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
164 * mule-charset.c (charset_code_point): Fix problem about
167 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
169 * mule-charset.c (decode_builtin_char): Reorganized.
171 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
173 * text-coding.c (char_encode_shift_jis): Modify for
174 `charset_code_point'.
175 (char_encode_big5): Likewise.
176 (char_encode_utf8): Likewise.
177 (char_encode_iso2022): Likewise.
179 * mule-charset.c (charset_code_point): Add new argument
181 (Fencode_char): Add new optional argument `defined_only'.
183 * chartab.c (put_char_table): Modify for `charset_code_point'.
184 (map_char_table): Likewise.
186 * char-ucs.h (charset_code_point): Add new argument
188 (encode_char_1): Modify for `charset_code_point'.
190 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
192 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
193 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
195 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
197 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
198 (Qjis_x0208): Likewise.
199 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
200 XCHARSET_FINAL(charset).
201 (charset_code_point): Modify condition for final-byte based
203 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
204 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
205 in UTF-2000; specify `=jis-x0208' as the mother of
206 `japanese-jisx0208-1978', `japanese-jisx0208' and
207 `japanese-jisx0208-1990' in UTF-2000.
209 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
211 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
213 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
215 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
216 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
217 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
218 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
219 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
220 CONVERSION_96x96x96x96 are introduced.
221 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
222 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
223 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
225 * char-ucs.h (CONVERSION_94): New macro.
226 (CONVERSION_96): New macro.
227 (CONVERSION_94x94): New macro.
228 (CONVERSION_96x96): New macro.
229 (CONVERSION_94x94x94): New macro.
230 (CONVERSION_96x96x96): New macro.
231 (CONVERSION_94x94x94x60): New macro.
232 (CONVERSION_94x94x94x94): New macro.
233 (CONVERSION_96x96x96x96): New macro.
235 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
237 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
239 * fns.c (Qideographic_structure): New variable.
240 (Qkeyword_char): New variable.
241 (ids_format_unit): New function.
242 (Fideographic_structure_to_ids): New function.
243 (syms_of_fns): Add new symbols `ideographic-structure' and
244 `:char'; add new builtin function `ideographic-structure-to-ids'.
246 * data.c (Fchar_ref_p): New function.
247 (syms_of_data): Add new builtin function `char-ref-p'.
249 * chartab.h: Add an EXFUN for `Ffind_char'.
251 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
253 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
254 and `COMPOSE_ADD_CHAR'.
255 (decode_coding_iso2022): Use `decode_flush_er_chars'.
257 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
259 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
260 instead of `DECODE_ADD_UCS_CHAR'.
261 (COMPOSE_ADD_CHAR): Likewise.
263 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
265 * text-coding.c (decode_flush_er_chars): New inline function.
266 (decode_add_er_char): New function.
267 (decode_coding_utf8): Use `decode_flush_er_chars' and
268 `decode_add_er_char'.
270 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
272 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
273 done before `decode_output_utf8_partial_char'.
275 * mule-charset.c (complex_vars_of_mule_charset): Specify
276 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
277 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
279 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
281 * mule-charset.c (decode_defined_char): New function; search
283 (decode_builtin_char): Don't search mother if
284 XCHARSET_MAX_CODE(charset) == 0.
285 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
286 == 0 even if code >= XCHARSET_MAX_CODE(charset).
287 (Fdecode_char): Use `decode_defined_char' instead of
288 `DECODE_DEFINED_CHAR'.
289 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
290 mother of `Vcharset_ucs_jis'.
292 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
293 instead of `DECODE_DEFINED_CHAR'.
295 * char-ucs.h (decode_defined_char): Renamed from
296 `DECODE_DEFINED_CHAR'; changed to normal function.
297 (DECODE_CHAR): Use `decode_defined_char' instead of
298 `DECODE_DEFINED_CHAR'.
300 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
302 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
304 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
306 * text-coding.c (Vcoded_charset_entity_reference_alist): New
308 (Quse_entity_reference): New variable.
312 (coding_system_description): Add description for
314 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
315 (allocate_coding_system): Initialize `ccs_priority_list' in
317 (Fmake_coding_system): Add description about
318 'use-entity-reference; setup
319 CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
320 (Fcoding_system_property): Accept `disable-composition' and
321 `use-entity-reference' in UTF-2000.
322 (struct decoding_stream): Add new member `er_counter' and `er_buf'
324 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
325 (decode_coding_utf8): Decode entity-reference if
326 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
327 (char_encode_utf8): Encode non-Unicode characters as
328 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
330 (syms_of_file_coding): Add new symbols `use-entity-reference',
332 (vars_of_file_coding): Add new variable
333 `coded-charset-entity-reference-alist'.
334 (complex_vars_of_file_coding): Declare `disable-composition' and
335 `use-entity-reference' to be coding-system-properties in UTF-2000.
337 * file-coding.h (struct Lisp_Coding_System): Add new member
338 `use_entity_reference' and `ccs_priority_list'.
339 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
340 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
341 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
343 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
345 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
347 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
349 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
350 `XCHARSET_GRAPHIC(ccs)'.
352 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
354 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
357 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
359 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
360 instead of `XCHARSET_CHARS'.
362 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
364 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
365 (XCHARSET_BYTE_SIZE): Likewise.
367 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
369 (XCHARSET_BYTE_SIZE): Likewise.
371 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
373 * char-ucs.h (decoding_table_check_elements): Delete prototype.
374 (get_ccs_octet_table): New inline function.
375 (put_ccs_octet_table): Likewise.
376 (decoding_table_put_char): Use `get_ccs_octet_table' and
377 `put_ccs_octet_table'.
378 (decoding_table_remove_char): Use `decoding_table_put_char'.
379 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
381 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
383 (make_charset): Use Qunbound instead Qnil as initial value of
386 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
388 * mule-charset.c (put_char_ccs_code_point): Modify for
389 `decoding_table_remove_char' and `decoding_table_put_char'.
390 (remove_char_ccs): Modify for `decoding_table_remove_char'.
392 * char-ucs.h (decoding_table_remove_char): Change arguments to
393 hide decoding_table vector.
394 (decoding_table_put_char): Likewise.
396 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
398 * mule-charset.c (decoding_table_remove_char): Moved to
400 (decoding_table_put_char): Likewise.
402 * char-ucs.h (decoding_table_check_elements): New prototype [moved
403 from mule-charset.c].
404 (decoding_table_remove_char): New inline function [moved from
406 (decoding_table_put_char): Likewise.
408 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
410 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
411 instead of `DECODE_CHAR' for mother; don't use special code for
412 chinese-big5 to use code space of chinese-big5-1 and
414 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
415 `MAX_CHAR_BIG5_CDP' for chinese-big5.
417 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
418 (MAX_CHAR_BIG5_CDP): Revival.
420 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
422 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
423 the XLFD registry-encoding name of `chinese-big5'.
425 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
427 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
428 (Qchinese_big5_cdp): Deleted.
429 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
430 (complex_vars_of_mule_charset): Delete coded-charset
433 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
434 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
435 `CHARSET_ID_OFFSET - n' for private CCS.
436 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
437 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
438 of `MIN_LEADING_BYTE'.
439 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
440 `(CHARSET_ID_OFFSET - 97)'.
441 (MIN_CHAR_BIG5_CDP): Deleted.
442 (MAX_CHAR_BIG5_CDP): Deleted.
444 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
446 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
449 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
451 * mule-charset.c (decode_builtin_char): Support mother charsets.
453 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
455 * mule-charset.c (Q94x94x60): New variable.
456 (charset_code_point): Support conversion `94x94x60'.
457 (Fmake_charset): Likewise.
458 (syms_of_mule_charset): Add new symbol `94x94x60'.
460 * char-ucs.h (CONVERSION_94x94x60): New macro.
462 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
464 * mule-charset.c (charset_code_point): Unify code about
467 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
469 * mule-charset.c (charset_code_point): Merge code about builtin
470 characters into code about mother charsets; don't use
471 `range_charset_code_point'.
472 (range_charset_code_point): Deleted.
474 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
476 * mule-charset.c (Qcode_offset): New variable.
477 (Fmake_charset): Use `XUINT' to get value of `min-code' and
478 `max-code'; accept new property `code-offset'.
479 (syms_of_mule_charset): Add new symbol `code-offset'.
481 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
483 * mule-charset.c (range_charset_code_point): Fixed.
485 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
487 * mule-charset.c (decode_builtin_char): Change semantics of
488 code-offset of coded-charset.
489 (charset_code_point): Likewise.
490 (range_charset_code_point): Likewise.
491 (complex_vars_of_mule_charset): Modify for the change.
493 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
495 * mule-charset.c (Fencode_char): Reverse arguments.
497 * mule-charset.c (charset_code_point): Fixed.
499 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
501 * mule-charset.c (Vcharset_mojikyo): Deleted.
502 (Vcharset_mojikyo_2022_1): Deleted.
503 (Vcharset_mojikyo_pj_{1..21}): Deleted.
504 (Qmin_code): New variable in UTF-2000.
505 (Qmax_code): Likewise.
507 (Qconversion): Likewise.
510 (Qmojikyo_2022_1): Deleted.
511 (Qmojikyo_pj_{1..22}): Deleted.
512 (mark_charset): Mark `cs->mother'.
513 (charset_description): Add description for `mother'.
514 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
515 new arguments `mother' and `conversion'; use
516 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
517 (charset_code_point): Moved from char-ucs.h; support `mother'
519 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
520 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
521 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
522 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
523 allow 2 as the value of `graphic' in UTF-2000; add new properties
524 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
525 require `final' in UTF-2000; modify for `make_charset'.
526 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
527 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
528 (Fcharset_property): Support `mother', `min-code' and `max-code'.
529 (Fencode_char): New function.
530 (syms_of_mule_charset): Add new builtin function `encode-char' in
531 UTF-2000; add new symbols `min-code', `max-code', `mother',
532 `conversion' and `94x60'; delete symbols `mojikyo',
533 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
534 (complex_vars_of_mule_charset): Modify for `make_charset' change;
535 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
536 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
538 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
539 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
541 * char-ucs.h (Vcharset_mojikyo): Deleted.
542 (Vcharset_mojikyo_2022_1): Deleted.
543 (LEADING_BYTE_MOJIKYO): Deleted.
544 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
545 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
546 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
547 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
548 add new member `mother'; add new member `conversion'.
549 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
550 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
551 (CHARSET_MOTHER): New macro.
552 (CHARSET_CONVERSION): New macro.
553 (CONVERSION_IDENTICAL): New macro.
554 (CONVERSION_94x60): New macro.
555 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
556 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
557 (XCHARSET_MOTHER): New macro.
558 (XCHARSET_CONVERSION): New macro.
559 (MIN_CHAR_MOJIKYO): Deleted.
560 (MAX_CHAR_MOJIKYO): Deleted.
561 (DECODE_MOJIKYO_2022): Deleted.
562 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
563 (charset_code_point): Changed to non-inline function.
564 (encode_char_1): Use `charset_code_point'.
565 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
567 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
569 * lread.c (read_compiled_function): Fix prototype.
570 (read_vector): Likewise.
572 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
574 * lrecord.h (struct lrecord_header): Delete `older'.
575 (set_lheader_implementation): Delete code for `older'.
576 (set_lheader_older_implementation): Deleted.
577 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
578 (OLDER_RECORD_P): Deleted.
579 (OLDER_RECORD_HEADER_P): Deleted.
580 (alloc_older_lcrecord): Deleted.
581 (alloc_older_lcrecord_type): Deleted.
583 * alloc.c (all_older_lcrecords): Deleted.
584 (alloc_older_lcrecord): Deleted.
585 (disksave_object_finalization_1): Delete code for older objects.
586 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
587 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
589 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
591 * mule-charset.c (decoding_table_put_char): Use `make_vector'
592 instead of `make_older_vector'.
593 (put_char_ccs_code_point): Likewise.
594 (mark_charset): Mark `cs->decoding_table'.
595 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
597 * lisp.h (make_older_vector): Deleted.
598 (make_vector_newer): Deleted.
600 * config.h.in (HAVE_GGC): Deleted.
602 * alloc.c (make_older_vector): Deleted.
603 (make_vector_newer_1): Deleted.
604 (make_vector_newer): Deleted.
606 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
608 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
609 (Qideograph_daikanwa_2): New variable.
610 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
611 (complex_vars_of_mule_charset): Add new coded-charset
612 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
613 `LEADING_BYTE_DAIKANWA'.
615 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
616 (LEADING_BYTE_DAIKANWA_1): New macro.
617 (LEADING_BYTE_DAIKANWA_2): New macro.
618 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
620 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
622 * mule-charset.c (complex_vars_of_mule_charset): Change
623 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
624 the second revised version.
626 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
628 * mule-charset.c (Vcharset_ucs_smp): New variable.
629 (Vcharset_ucs_sip): New variable.
630 (Qucs_smp): New variable.
631 (Qucs_sip): New variable.
632 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
633 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
634 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
635 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
636 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
637 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
639 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
640 (LEADING_BYTE_UCS_SIP): New macro.
641 (MIN_CHAR_SMP): New macro.
642 (MAX_CHAR_SMP): New macro.
643 (MIN_CHAR_SIP): New macro.
644 (MAX_CHAR_SIP): New macro.
646 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
648 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
651 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
653 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
654 value; don't store value into `encoding_table' of `Lisp_Charset'.
655 (mark_charset): `encoding_table' was deleted.
656 (charset_description): Likewise.
657 (make_charset): Likewise.
658 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
659 `put_char_ccs_code_point'.
661 * chartab.h (Fput_char_attribute): New EXFUN.
663 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
664 is unified with normal symbol space.
665 (Fget_char_attribute): Likewise.
666 (Fput_char_attribute): Likewise; behavior of
667 `put_char_ccs_code_point' is changed.
669 * char-ucs.h: Include "elhash.h".
670 (Vchar_attribute_hash_table): New external variable.
671 (struct Lisp_Charset): Delete `encoding_table'.
672 (CHARSET_ENCODING_TABLE): New implementation; refer
673 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
676 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
678 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
681 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
683 * text-coding.c (char_encode_big5): Prefer charset-g1 than
686 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
688 * chartab.c (uint8_byte_table_description): New constant.
689 (uint8-byte-table): Use `uint8_byte_table_description'.
690 (uint16_byte_table_description): New constant.
691 (uint16-byte-table): Use `uint16_byte_table_description'.
693 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
695 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
696 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
698 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
700 * mule-charset.c (Vcharset_ucs_ks): New variable.
701 (Qucs_ks): New variable.
702 (syms_of_mule_charset): Add new symbol `ucs-ks'.
703 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
705 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
707 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
709 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
710 (Fdecode_char): Likewise.
712 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
714 (Fdefine_char): Modify for Fdecode_char.
715 (Ffind_char): Likewise.
717 * mule-charset.c (Fdecode_char): Add new optional argument
719 (Fdecode_builtin_char): Modify for `Fdecode_char'.
721 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
723 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
724 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
725 (allocate_coding_system): Initialize initial-charsets of
726 CODESYS_BIG5 in XEmacs UTF-2000.
727 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
728 CODESYS_BIG5 in XEmacs UTF-2000.
729 (decode_coding_big5): Use initial-charset-g0 and -g1 of
730 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
732 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
734 (Qideograph_hanziku_{1 .. 12}): Likewise.
735 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
737 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
738 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
739 `ideograph-hanziku-{1 .. 12}'.
741 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
742 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
743 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
744 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
745 (DECODE_DEFINED_CHAR): New inline function.
746 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
748 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
750 * mule-charset.c (Vcharset_china3_jef): Renamed from
751 `Vcharset_japanese_jef_china3'.
752 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
753 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
754 `{MIN|MAX}_CHAR_JEF_CHINA3'..
755 (syms_of_mule_charset): Rename `china3-jef' from
756 `japanese-jef-china3'.
757 (complex_vars_of_mule_charset): Likewise; rename
758 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
760 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
761 `LEADING_BYTE_JEF_CHINA3'.
762 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
763 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
765 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
767 * mule-charset.c (encode_builtin_char_1): Comment out special code
768 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
770 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
771 (MAX_CHAR_MOJIKYO_0): Comment out.
772 (MIN_CHAR_CBETA): Changed to 0x00E20000.
773 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
774 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
775 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
777 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
779 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
780 (Qideograph_cbeta): New variable.
781 (encode_builtin_char_1): Comment out special code for
782 coded-charset `mojikyo' and `japanese-jef-china3'.
783 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
784 (complex_vars_of_mule_charset): Add new coded-charset
787 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
788 (MIN_CHAR_CBETA): New macro.
789 (MAX_CHAR_CBETA): New macro.
791 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
793 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
794 (LEADING_BYTE_JEF_CHINA3): New macro.
795 (MIN_CHAR_JEF_CHINA3): New macro.
796 (MAX_CHAR_JEF_CHINA3): Likewise.
797 (DECODE_CHAR): Fixed.
799 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
801 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
802 (Qjapanese_jef_china3): New variable.
803 (encode_builtin_char_1): Support `japanese-jef-china3'.
804 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
805 (complex_vars_of_mule_charset): Add new coded-charset
806 `japanese-jef-china3'.
808 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
810 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
811 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
812 94^4, 96^3, 96^4, 128^n and 256^n set.
813 (put_char_table): Use `XCHARSET_CELL_RANGE'.
814 (map_char_table): Likewise.
816 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
818 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
821 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
823 * chartab.h (get_char_id_table): New inline function.
825 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
828 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
830 * chartab.h (decode_char_table_range): New prototype in XEmacs
832 (put_char_id_table): New inline function in XEmacs UTF-2000.
834 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
836 (decode_char_table_range): Delete static declaration in XEmacs
839 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
841 * chartab.c (put_char_id_table): Use `put_char_table'.
843 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
845 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
846 (map_over_uint16_byte_table): Likewise.
847 (map_over_byte_table): Likewise.
848 (map_char_table): Modify for `map_over_uint8_byte_table',
849 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
852 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
854 * chartab.c (struct map_char_table_for_charset_arg): New
856 (map_char_table_for_charset_fun): New function.
857 (map_char_table): Use `map_char_table' for encoding_table of
860 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
862 * chartab.c (map_char_table): Check a character is found in
863 range->charset instead of non default value is defined in
864 char-table when range is CHARTAB_RANGE_ROW.
866 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
868 * chartab.c (map_char_id_table): Deleted.
869 (Fmap_char_attribute): Use `map_char_table' instead of
872 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
874 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
876 (update_syntax_table): Deleted in XEmacs UTF-2000.
878 * syntax.c (find_defun_start): Use `syntax_table' instead of
879 `mirror_syntax_table' in XEmacs UTF-2000.
880 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
882 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
884 (Fmatching_paren): Likewise.
885 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
887 (find_start_of_comment): Likewise.
888 (find_end_of_comment): Likewise.
889 (Fforward_comment): Likewise.
890 (scan_lists): Likewise.
891 (char_quoted): Likewise.
892 (Fbackward_prefix_chars): Likewise.
893 (scan_sexps_forward): Likewise.
894 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
895 (update_syntax_table): Likewise.
897 * search.c (skip_chars): Use `syntax_table' instead of
898 `mirror_syntax_table' in XEmacs UTF-2000.
900 (Freplace_match): Likewise.
902 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
903 `mirror_syntax_table' in XEmacs UTF-2000.
904 (WORDCHAR_P_UNSAFE): Likewise.
905 (re_match_2_internal): Likewise.
907 * font-lock.c (find_context): Use `buf->syntax_table' instead of
908 `buf->mirror_syntax_table' in XEmacs UTF-2000.
910 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
911 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
913 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
916 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
918 (print_char_table): Print `default_value' in XEmacs UTF-2000.
919 (char_table_description): Delete `mirror_table' in XEmacs
921 (fill_char_table): Don't call `update_syntax_table' in XEmacs
923 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
924 (Fcopy_char_table): Likewise.
925 (put_char_table): Don't call `update_syntax_table' in XEmacs
928 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
929 `buf->mirror_syntax_table' in XEmacs UTF-2000.
930 (casify_region_internal): Likewise.
932 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
934 * buffer.c (common_init_complex_vars_of_buffer): Don't use
935 `mirror_syntax_table' in XEmacs UTF-2000.
937 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
938 `buf->mirror_syntax_table' in XEmacs UTF-2000.
939 (Fexpand_abbrev): Likewise.
941 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
943 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
945 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
947 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
948 (map_over_uint16_byte_table): Likewise.
949 (map_over_byte_table): Likewise.
950 (get_char_id_table): Refer `cit->default_value'.
951 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
952 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
953 of character-id ranges.
954 (mark_char_table): Mark `ct->default_value'.
955 (char_table_description): Add `default_value'.
956 (fill_char_table): Use `default_value'.
957 (decode_char_table_range): Decode `nil' as
958 `CHARTAB_RANGE_DEFAULT'.
959 (get_char_id_table): Refer `cit->default_value'.
960 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
961 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
962 temporary hack; check value of char-table is bound or not.
963 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
965 * chartab.h (struct Lisp_Char_Table): Add new member
966 `default_value' in XEmacs UTF-2000.
967 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
968 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
971 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
973 * chartab.h (Lisp_Char_ID_Table): Deleted.
975 * chartab.c (char_table_description): Fix typo.
976 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
977 `Lisp_Char_ID_Table'.
979 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
981 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
984 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
987 * chartab.h (XCHAR_ID_TABLE): Deleted.
988 (XSETCHAR_ID_TABLE): Deleted.
989 (CHAR_ID_TABLE_P): Deleted.
991 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
993 (Fget_composite_char): Likewise.
994 (put_char_table): Likewise.
995 (add_char_attribute_alist_mapper): Fixed.
996 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
998 (Fget_char_attribute): Likewise.
999 (Fget_char_attribute): Likewise.
1000 (Fmap_char_attribute): Likewise.
1002 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1004 (encode_char_1): Likewise.
1006 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1008 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1011 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1012 instead of `XCHAR_ID_TABLE'.
1013 (remove_char_ccs): Likewise.
1015 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1017 (Fget_composite_char): Likewise.
1018 (Fchar_variants): Likewise.
1019 (put_char_table): Likewise.
1020 (add_char_attribute_alist_mapper): Likewise.
1021 (Fchar_attribute_alist): Likewise.
1022 (Fget_char_attribute): Likewise.
1023 (Fput_char_attribute): Likewise.
1024 (Fmap_char_attribute): Likewise.
1025 (Fmap_char_attribute): Likewise.
1027 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1029 (encode_char_1): Likewise.
1031 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1033 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1034 `Lisp_Char_ID_Table'.
1035 (mark_char_id_table): Deleted.
1036 (print_char_id_table): Likewise.
1037 (char_id_table_equal): Likewise.
1038 (char_id_table_hash): Likewise.
1039 (char_id_table_description): Likewise.
1040 (char_id_table): Likewise.
1041 (make_char_id_table): Use `Fmake_char_table' and
1043 (get_char_id_table): Use `Lisp_Char_Table' instead of
1044 `Lisp_Char_ID_Table'.
1045 (put_char_id_table): Likewise.
1046 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1048 (Fremove_char_attribute): Likewise.
1049 (syms_of_chartab): Don't define type `char-id-table'.
1051 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1052 (char_id_table): Likewise.
1053 (GC_CHAR_ID_TABLE_P): Likewise.
1054 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1055 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1056 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1057 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1058 (get_char_id_table): Use `Lisp_Char_Table' instead of
1059 `Lisp_Char_ID_Table'.
1060 (put_char_id_table_0): Likewise.
1061 (put_char_id_table): Likewise.
1063 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1065 * chartab.h: Lisp_Byte_Table related codes are moved from
1068 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1070 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1072 * chartab.h: Don't include "chartab.h".
1073 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1074 (Lisp_Char_ID_Table): Likewise.
1075 (char_id_table): Likewise.
1076 (XCHAR_ID_TABLE): Likewise.
1077 (XSETCHAR_ID_TABLE): Likewise.
1078 (CHAR_ID_TABLE_P): Likewise.
1079 (GC_CHAR_ID_TABLE_P): Likewise.
1080 (get_char_id_table): Likewise.
1082 * char-ucs.h: Include "chartab.h".
1083 (struct Lisp_Char_ID_Table): Moved to chartab.h.
1084 (Lisp_Char_ID_Table): Likewise.
1085 (char_id_table): Likewise.
1086 (XCHAR_ID_TABLE): Likewise.
1087 (XSETCHAR_ID_TABLE): Likewise.
1088 (CHAR_ID_TABLE_P): Likewise.
1089 (GC_CHAR_ID_TABLE_P): Likewise.
1090 (get_char_id_table): Likewise.
1092 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1094 * chartab.c (copy_uint8_byte_table): New function.
1095 (copy_uint16_byte_table): New function.
1096 (copy_byte_table): New function.
1097 (map_over_uint8_byte_table): Modify to avoid huge numbers of
1099 (map_over_uint16_byte_table): Likewise.
1100 (map_over_byte_table): Likewise.
1101 (get_byte_table): Move prototype to chartab.h.
1102 (put_byte_table): Likewise.
1103 (put_char_id_table_0): Moved to chartab.h.
1104 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1105 (char_table_entry_equal): Likewise.
1106 (char_table_entry_hash): Likewise.
1107 (char_table_entry_description): Likewise.
1108 (char_table_entry): Likewise.
1109 (make_char_table_entry): Likewise.
1110 (copy_char_table_entry): Likewise.
1111 (get_non_ascii_char_table_value): Likewise.
1112 (map_over_charset_ascii): Likewise.
1113 (map_over_charset_control_1): Likewise.
1114 (map_over_charset_row): Likewise.
1115 (map_over_other_charset): Likewise.
1116 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1117 (print_char_table): Likewise.
1118 (char_table_equal): Likewise.
1119 (char_table_hash): Likewise.
1120 (char_table_description): Likewise.
1121 (fill_char_table): Likewise.
1122 (Fcopy_char_table): Likewise.
1123 (get_char_table): Likewise.
1124 (Fget_range_char_table): Likewise.
1125 (put_char_table): Likewise.
1126 (map_char_table): Likewise.
1127 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1130 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1132 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1133 `Vauto_fill_chars' in XEmacs UTF-2000.
1135 * chartab.h (get_byte_table): New prototype [moved from
1137 (put_byte_table): Likewise [moved from chartab.c].
1138 (put_char_id_table_0): New inline function [moved from chartab.c].
1139 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1140 (Lisp_Char_Table_Entry): Likewise.
1141 (char_table_entry): Likewise.
1142 (XCHAR_TABLE_ENTRY): Likewise.
1143 (XSETCHAR_TABLE_ENTRY): Likewise.
1144 (CHAR_TABLE_ENTRYP): Likewise.
1145 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1146 (NUM_ASCII_CHARS): Likewise.
1147 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1148 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1150 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1152 * chartab.c (get_char_id_table): Change interface.
1153 (put_char_id_table_0): New function.
1154 (put_char_id_table): Change interface; new implementation.
1155 (Fget_composite_char): Modify for interface change of
1156 `get_char_id_table'.
1157 (Fchar_variants): Likewise.
1158 (add_char_attribute_alist_mapper): Likewise.
1159 (Fchar_attribute_alist): Likewise.
1160 (Fget_char_attribute): Likewise.
1161 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1162 as same as character as the first argument like `put-char-table';
1163 modify for interface change of `put_char_id_table'.
1164 (Fremove_char_attribute): Modify for interface change of
1165 `put_char_id_table'.
1167 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1169 * text-coding.c: Sync up with XEmacs 21.2.41.
1170 (COMPOSE_ADD_CHAR): Modify for interface change of
1171 `get_char_id_table'.
1173 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1174 change of `put_char_id_table'.
1175 (remove_char_ccs): Likewise.
1177 * chartab.h (put_char_id_table): Change interface.
1179 * char-ucs.h (get_char_id_table): Change interface.
1180 (charset_code_point): Modify for interface change of
1181 `get_char_id_table'.
1182 (encode_char_1): Likewise.
1184 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1186 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1188 (map_over_uint16_byte_table): Likewise.
1189 (map_over_byte_table): Likewise.
1190 (map_char_id_table): Add new argument `range' like
1192 (Fmap_char_attribute): Add new argument `range' like
1195 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1197 * chartab.c (map_over_uint8_byte_table): Change interface of
1198 mapping function to use struct chartab_range instead of Emchar.
1199 (map_over_uint16_byte_table): Likewise.
1200 (map_over_byte_table): Likewise.
1201 (map_char_id_table): Likewise.
1202 (struct slow_map_char_id_table_arg): Deleted.
1203 (slow_map_char_id_table_fun): Deleted.
1204 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1205 function `slow_map_char_table_fun' instead of struct
1206 `slow_map_char_id_table_arg' and function
1207 `slow_map_char_id_table_fun'.
1209 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1211 * mule-charset.c: Move char-it-table related codes to chartab.c.
1212 (Vutf_2000_version): Moved to chartab.c.
1213 (Fdefine_char): Likewise.
1214 (Ffind_char): Likewise.
1215 (syms_of_mule_charset): Move types `uint8-byte-table',
1216 `uint16-byte-table', `byte-table' and `char-id-table' to
1217 chartab.c; move functions `char_attribute_list,
1218 `find_char_attribute_table, `char_attribute_alist,
1219 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1220 `map_char_attribute, `define_char, `find_char, `char_variants and
1221 `get_composite_char to chartab.c; move symbols `=>ucs',
1222 `->decomposition', `compat', `isolated', `initial', `medial',
1223 `final', `vertical', `noBreak', `fraction', `super', `sub',
1224 `circle', `square', `wide', `narrow', `small' and `font' to
1226 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1227 setting codes for `Vcharacter_composition_table' and
1228 `Vcharacter_variant_table' to chartab.c.
1229 (complex_vars_of_mule_charset): Move setting code for
1230 `Vchar_attribute_hash_table' to chartab.c.
1232 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1233 (make_char_id_table): New prototype.
1234 (put_char_id_table): Likewise.
1235 (Fget_char_attribute): Likewise.
1237 * chartab.c: Move char-id-table related code from mule-charset.c.
1238 (Vutf_2000_version): Moved from mule-charset.c.
1240 * char-ucs.h (Qucs): New external variable.
1241 (put_char_ccs_code_point): New prototype.
1242 (remove_char_ccs): Likewise.
1244 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1246 * mule-charset.c (Vcharset_ucs_jis): New variable.
1247 (Qucs_jis): Likewise.
1248 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1249 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1251 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1253 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1255 * mule-charset.c (map_over_uint8_byte_table): New function.
1256 (map_over_uint16_byte_table): Likewise.
1257 (map_over_byte_table): Likewise.
1258 (map_char_id_table): Likewise.
1259 (slow_map_char_id_table_fun): Likewise.
1260 (Fmap_char_attribute): Likewise.
1261 (syms_of_mule_charset): Add new function `map-char-attribute'.
1263 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1265 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1266 (syms_of_mule_charset): Add new function `find-char'.
1268 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1270 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1272 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1273 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1275 (complex_vars_of_mule_charset): Add new coded-charset
1276 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1277 `ideograph-gt-pj-*'.
1279 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1281 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1283 * mule-charset.c (encode_builtin_char_1): Purge codes about
1284 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1285 {MIN|MAX}_CHAR_HEBREW.
1286 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1287 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1289 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1290 (MAX_CHAR_GREEK): Purged.
1291 (MIN_CHAR_CYRILLIC): Purged.
1292 (MAX_CHAR_CYRILLIC): Purged.
1293 (MIN_CHAR_HEBREW): Commented out.
1294 (MAX_CHAR_HEBREW): Likewise.
1296 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1298 * mule-charset.c (Qto_ucs): New variable.
1299 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1300 (Fdefine_char): Likewise.
1301 (syms_of_mule_charset): Add new symbol `=>ucs'.
1303 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1305 * mule-charset.c (Fdecode_char): Fixed.
1307 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1309 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1310 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1313 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1315 * mule-charset.c (Vcharset_ucs_big5): New variable.
1316 (Qucs_big5): Likewise.
1317 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1318 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1320 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1322 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1324 * mule-charset.c (decode_builtin_char): Check Big5 code range
1325 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1327 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1329 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1330 (Qchinese_gb12345): Likewise.
1331 (Fdecode_builtin_char): Fixed.
1332 (syms_of_mule_charset): Add `chinese-gb12345'.
1333 (complex_vars_of_mule_charset): Add coded-charset
1336 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1337 (LEADING_BYTE_CHINESE_GB12345): New macro.
1339 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1341 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1342 and `latin-viscii-upper' for `latin-viscii'.
1344 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1346 * mule-charset.c (Fdecode_builtin_char): Comment out
1347 regularization code for ISO-IR GR representation.
1349 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1351 * mule-charset.c (decode_builtin_char): New function; renamed from
1352 `make_builtin_char'; return -1 instead of signal.
1353 (Fdecode_builtin_char): Use `decode_builtin_char'.
1355 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1356 `make_builtin_char'.
1357 (DECODE_CHAR): Use `decode_builtin_char' instead of
1358 `make_builtin_char'; use mapping table of `chinese-big5' for
1359 `chinese-big5-{1,2}'.
1361 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1363 * text-coding.c (char_encode_big5): New function.
1364 (char_finish_big5): Likewise.
1365 (reset_encoding_stream): Use `char_encode_big5' and
1366 `char_finish_big5' for CODESYS_BIG5.
1367 (mule_encode): Don't use `encode_coding_big5'.
1368 (encode_coding_big5): Deleted.
1370 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1372 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1373 0x81- in XEmacs UTF-2000.
1374 (detect_coding_big5): Likewise.
1376 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1378 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1379 generate character-id if the CCS property does not have
1380 corresponding predefined character.
1381 (make_builtin_char): Return -1 if corresponding predefined
1382 character is not found.
1383 (Fdecode_char): Return nil if corresponding character is not
1385 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1386 don't map to builtin ucs space.
1388 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1390 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1391 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1393 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1395 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1396 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1397 (Qideograph_gt): Likewise.
1398 (Qideograph_gt_pj_{1..11}): Likewise.
1399 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1400 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1401 `ideograph-gt-pj-11'.
1402 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1403 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1404 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1406 * char-ucs.h (LEADING_BYTE_GT): New macro.
1407 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1408 (MIN_CHAR_GT): Likewise.
1409 (MAX_CHAR_GT): Likewise.
1411 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1413 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1414 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1416 * doprnt.c (unsigned_int_converters): Add `c'.
1417 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1419 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1420 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1422 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1423 (MAX_CHAR_MOJIKYO_0): New macro.
1424 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1426 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1428 * mule-charset.c (Fdefine_char): Delete cemented out code.
1429 (encode_builtin_char_1): Modify for new allocation of builtin
1432 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1434 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1436 * mule-charset.c (Vcharset_ucs_cns): New variable.
1437 (Qucs_cns): New variable.
1438 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1439 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1441 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1443 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1445 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1447 * search.c (search_buffer): Make `charset_base_code' as
1448 character-id >> 6 to eliminate the corresponding last byte in
1449 UTF-8 representation [I'm not sure it is right thing].
1450 (boyer_moore): Likewise.
1452 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1454 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1455 representation in MULE.
1457 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1459 * text-coding.c (Fmake_coding_system): Use
1460 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1461 `EXTERNAL_PROPERTY_LIST_LOOP'.
1463 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1465 * text-coding.c (decode_output_utf8_partial_char): New function.
1466 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1468 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1470 * text-coding.c (decode_coding_utf8): Output original byte
1471 sequence if it is broken; change order of conditions.
1473 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1476 * mb-multibyte.h (BYTE_ASCII_P):
1477 Use bit ops for char-signedness safety.
1478 (BYTE_C0_P): Use bit ops for char-signedness safety.
1479 (BYTE_C1_P): Use bit ops for char-signedness safety.
1481 * character.h: (XCHAR_OR_CHAR_INT):
1482 Always use inline function.
1483 Remove redundant type checking assert() - XINT will abort quite
1486 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1488 * text-coding.c: (Fencode_shift_jis_char):
1489 (Fencode_big5_char):
1490 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1491 Replace 0 with '\0' when working with bytes.
1492 Replace initial "(" with "\(" in docstrings.
1494 (Fmake_coding_system):
1495 When type is ccl and value is vector, register it with a proper
1496 symbol. And checks whether the given ccl program is valid.
1497 (mule_decode): When calling ccl_driver, if src indicates
1498 NULL pointer, set an empty string instead.
1499 (mule_encode): Likewise.
1502 (detect_coding_sjis):
1503 (decode_coding_sjis):
1504 (detect_coding_big5):
1505 (decode_coding_big5):
1506 (detect_coding_ucs4):
1507 (decode_coding_ucs4):
1508 (detect_coding_utf8):
1509 (decode_coding_utf8):
1510 (detect_coding_iso2022):
1511 (decode_coding_iso2022):
1512 (decode_coding_no_conversion):
1514 Make all detecting and decoding functions take an Extbyte * arg.
1515 (text_encode_generic):
1516 (encode_coding_big5):
1517 (encode_coding_no_conversion):
1519 Make all encoding functions take a Bufbyte * arg.
1520 Use size_t instead of unsigned int for memory sizes.
1521 Only cast to unsigned char whenever dereferencing Extbyte *.
1523 (struct lrecord_description fcd_description_1): Use countof.
1524 (complex_vars_of_file_coding):
1525 Use countof instead of sizeof.
1526 Use CHECK_NATNUM instead of CHECK_INT.
1528 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1530 * mule-charset.c (Fget_char_attribute): Add new optional argument
1532 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1533 (remove_char_ccs): Likewise.
1535 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1537 * text-coding.c (char_encode_shift_jis): New implementation in
1539 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1542 * mule-charset.c (Vcharset_chinese_big5): New variable in
1544 (Qchinese_big5): New variable in UTF-2000.
1545 (BIG5_SAME_ROW): New macro in UTF-2000.
1546 (make_builtin_char): Use builtin characters of
1547 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1548 characters of `Vcharset_chinese_big5'.
1549 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1550 (complex_vars_of_mule_charset): Add new coded-charset
1551 `chinese-big5' in UTF-2000.
1553 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1554 (Vcharset_chinese_big5): New external variable declaration.
1555 (Vcharset_japanese_jisx0208_1990): Likewise.
1557 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1559 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1561 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1563 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1565 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1566 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1567 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1570 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1572 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1574 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1576 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1579 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1581 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1582 for `CHARSET_BY_ATTRIBUTES'.
1583 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1584 `CHARSET_BY_ATTRIBUTES'.
1586 * text-coding.c (struct decoding_stream): Rename member `CH' to
1588 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1589 (decode_coding_sjis): Likewise.
1590 (decode_coding_big5): Likewise.
1591 (decode_coding_ucs4): Likewise.
1592 (decode_coding_utf8): Likewise.
1593 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1594 `CHARSET_BY_ATTRIBUTES'.
1595 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1596 `str->counter'; decode 3, 4 bytes sets.
1597 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1599 (decode_coding_no_conversion): Use `str->cpos' instead of
1602 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1603 (Qmojikyo_2022_1): New variable.
1604 (make_charset): Don't use `CHARSET_TYPE_*'.
1605 (range_charset_code_point): Support coded-charset
1607 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1608 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1609 `CHARSET_BY_ATTRIBUTES'.
1610 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1611 `CHARSET_BY_ATTRIBUTES'.
1612 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1613 (complex_vars_of_mule_charset): Add new coded-charset
1616 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1617 interface; changed to inline function.
1619 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1620 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1621 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1622 (CHARSET_TYPE_94): Deleted.
1623 (CHARSET_TYPE_94X94): Deleted.
1624 (CHARSET_TYPE_96): Deleted.
1625 (CHARSET_TYPE_96X96): Deleted.
1626 (CHARSET_TYPE_128): Deleted.
1627 (CHARSET_TYPE_128X128): Deleted.
1628 (CHARSET_TYPE_256): Deleted.
1629 (CHARSET_TYPE_256X256): Deleted.
1630 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1632 (DECODE_MOJIKYO_2022): New inline function.
1633 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1634 `Vcharset_mojikyo_2022_1'.
1636 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1638 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1640 (put_byte_table): Likewise.
1641 (char_id_table_equal): Use `get_byte_table' [new implementation].
1643 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1645 * mule-charset.c: Include <limits.h> in UTF-2000.
1646 (BT_UINT8_MIN): New macro in UTF-2000.
1647 (BT_UINT8_MAX): New macro in UTF-2000.
1648 (BT_UINT8_t): New macro in UTF-2000.
1649 (BT_UINT8_nil): New macro in UTF-2000.
1650 (BT_UINT8_unbound): New macro in UTF-2000.
1651 (INT_UINT8_P): New inline function in UTF-2000.
1652 (UINT8_VALUE_P): New inline function in UTF-2000.
1653 (UINT8_ENCODE): New inline function in UTF-2000.
1654 (UINT8_DECODE): New inline function in UTF-2000.
1655 (mark_uint8_byte_table): New function in UTF-2000.
1656 (print_uint8_byte_table): New function in UTF-2000.
1657 (uint8_byte_table_equal): New function in UTF-2000.
1658 (uint8_byte_table_hash): New function in UTF-2000.
1659 (make_uint8_byte_table): New function in UTF-2000.
1660 (uint8_byte_table_same_value_p): New function in UTF-2000.
1661 (BT_UINT16_MIN): New macro in UTF-2000.
1662 (BT_UINT16_MAX): New macro in UTF-2000.
1663 (BT_UINT16_t): New macro in UTF-2000.
1664 (BT_UINT16_nil): New macro in UTF-2000.
1665 (BT_UINT16_unbound): New macro in UTF-2000.
1666 (INT_UINT16_P): New inline function in UTF-2000.
1667 (UINT16_VALUE_P): New inline function in UTF-2000.
1668 (UINT16_ENCODE): New inline function in UTF-2000.
1669 (UINT16_DECODE): New inline function in UTF-2000.
1670 (UINT8_TO_UINT16): New inline function in UTF-2000.
1671 (mark_uint16_byte_table): New function in UTF-2000.
1672 (print_uint16_byte_table): New function in UTF-2000.
1673 (uint16_byte_table_equal): New function in UTF-2000.
1674 (uint16_byte_table_hash): New function in UTF-2000.
1675 (make_uint16_byte_table): New function in UTF-2000.
1676 (uint16_byte_table_same_value_p): New function in UTF-2000.
1677 (print_byte_table): New function in UTF-2000.
1678 (byte-table): Use `print_byte_table' as printer.
1679 (make_byte_table): Delete second argument `older'.
1680 (byte_table_same_value_p): New function in UTF-2000.
1681 (copy_byte_table): Deleted.
1682 (get_byte_table): New function in UTF-2000.
1683 (put_byte_table): New function in UTF-2000.
1684 (print_char_id_table): New function in UTF-2000.
1685 (char-id-table): Use `print_char_id_table' as printer.
1686 (make_char_id_table): Delete second argument `older'.
1687 (get_char_id_table): Use `get_byte_table [new implementation].
1688 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1690 (Ffind_char_attribute_table): New function in UTF-2000.
1691 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1692 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1693 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1694 (syms_of_mule_charset): Add new function
1695 `find-char-attribute-table' in UTF-2000.
1697 * lrecord.h (enum lrecord_type): Add
1698 `lrecord_type_uint16_byte_table' and
1699 `lrecord_type_uint8_byte_table'.
1701 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1702 (Lisp_Uint8_Byte_Table): New type.
1703 (XUINT8_BYTE_TABLE): New macro.
1704 (XSETUINT8_BYTE_TABLE): New macro.
1705 (UINT8_BYTE_TABLE_P): New macro.
1706 (GC_UINT8_BYTE_TABLE_P): New macro.
1707 (struct Lisp_Uint16_Byte_Table): New structure.
1708 (Lisp_Uint16_Byte_Table): New type.
1709 (XUINT16_BYTE_TABLE): New macro.
1710 (XSETUINT16_BYTE_TABLE): New macro.
1711 (UINT16_BYTE_TABLE_P): New macro.
1712 (GC_UINT16_BYTE_TABLE_P): New macro.
1714 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1716 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1717 (Vcharacter_ideographic_strokes_table): Deleted.
1718 (Vcharacter_total_strokes_table): Deleted.
1719 (Vcharacter_morohashi_daikanwa_table): Deleted.
1720 (Vcharacter_decomposition_table): Deleted.
1721 (Qname): Deleted because it is duplicated.
1722 (Qideographic_radical): Deleted.
1723 (Qideographic_strokes): Deleted.
1724 (Qtotal_strokes): Deleted.
1725 (Qmorohashi_daikanwa): Deleted.
1726 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1727 `ideographic-radical', `ideographic-strokes', `total-strokes',
1728 `morohashi-daikanwa' and `->decomposition'.
1729 (Fget_char_attribute): Likewise.
1730 (Fput_char_attribute): Likewise; use `make-vector' instead of
1731 `make_older_vector' for `->decomposition' value.
1732 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1733 `ideograph-daikanwa'.
1734 (syms_of_mule_charset): Delete builtin symbols `name',
1735 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1736 `morohashi-daikanwa'.
1737 (vars_of_mule_charset): Don't setup
1738 `Vcharacter_ideographic_radical_table',
1739 `Vcharacter_ideographic_strokes_table',
1740 `Vcharacter_total_strokes_table',
1741 `Vcharacter_morohashi_daikanwa_table' and
1742 `Vcharacter_decomposition_table'.
1744 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1746 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1747 `make_older_vector', `make_vector_newer_1' and
1748 `make_vector_newer'.
1750 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1751 `make_older_vector' and `make_vector_newer'.
1753 * config.h.in (HAVE_GGC): New macro.
1755 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1757 * mule-charset.c (struct char_attribute_list_closure): New
1758 structure in UTF-2000.
1759 (add_char_attribute_to_list_mapper): New function in UTF-2000.
1760 (Fchar_attribute_list): Likewise.
1761 (Fset_charset_mapping_table): Use `make_vector_newer'.
1762 (Fdecode_builtin_char): New function in UTF-2000.
1763 (syms_of_mule_charset): Add new function `char-attribute-list' and
1764 `decode-builtin-char' in UTF-2000.
1766 * lisp.h (make_vector_newer): New prototype.
1768 * alloc.c (make_vector_newer_1): New function.
1769 (make_vector_newer): New function.
1771 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1773 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1776 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1778 * mule-charset.c (Vchar_attribute_hash_table): New variable.
1779 (Vcharacter_attribute_table): Deleted.
1780 (Vcharacter_name_table): Deleted.
1781 (put_char_attribute): Deleted.
1782 (remove_char_attribute): Deleted.
1783 (struct char_attribute_alist_closure): New structure.
1784 (add_char_attribute_alist_mapper): New function.
1785 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1786 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1787 (Fget_char_attribute): Likewise.
1788 (Fput_char_attribute): Likewise.
1789 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1790 of `remove_char_attribute'.
1791 (Fdefine_char): Return character.
1792 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1793 and `Vcharacter_name_table'.
1794 (complex_vars_of_mule_charset): Likewise
1795 `Vchar_attribute_hash_table'.
1797 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1799 * character.h (CHARC_CHARSET): New macro.
1800 (CHARC_CHARSET_ID): New macro.
1801 (CHARC_CODE_POINT): New macro.
1802 (CHARC_COLUMNS): New macro.
1803 (CHARC_TO_CHAR): New inline function.
1804 (CHARC_EQ): New inline function.
1805 (CHARC_ASCII_EQ): New inline function.
1806 (CHARC_IS_SPACE): New inline function.
1807 (ASCII_TO_CHARC): New inline function.
1809 * char-ucs.h (encode_char_2): Deleted.
1810 (ENCODE_CHAR): Use `encode_char_1' again.
1811 (breakup_char_1): Likewise.
1812 (CHAR_TO_CHARC): New inline function.
1814 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1816 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1818 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1819 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1820 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1821 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1822 (create_string_text_block): Use `CHARC_ASCII_EQ' and
1824 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1826 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1828 (x_output_display_block): Use `CHARC_CHARSET' and
1831 * redisplay-tty.c (tty_output_display_block): Use
1833 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1835 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1837 * insdel.c (find_charsets_in_charc_string): Use
1839 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1840 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1841 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1842 (convert_charc_string_into_malloced_string): Likewise.
1844 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1846 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1847 instead of <Emchar_dynarr *> for buf; use
1848 `convert_bufbyte_string_into_charc_dynarr' instead of
1849 `convert_bufbyte_string_into_emchar_dynarr'; use
1850 `find_charsets_in_charc_string' instead of
1851 `find_charsets_in_emchar_string'.
1854 - Include "character.h".
1855 (struct rune): New member `cglyph'; delete member `chr'.
1857 * redisplay.c (redisplay_text_width_charc_string): New function;
1858 delete `redisplay_text_width_emchar_string'.
1859 (rtw_charc_dynarr): New variable; renamed from
1860 `rtw_emchar_dynarr'.
1861 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1862 `rtw_emchar_dynarr'; use
1863 `convert_bufbyte_string_into_charc_dynarr' instead of
1864 `convert_bufbyte_string_into_emchar_dynarr'; use
1865 `redisplay_text_width_charc_string' instead of
1866 `redisplay_text_width_emchar_string'.
1867 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1868 instead of `rtw_emchar_dynarr'; use
1869 `convert_bufbyte_string_into_charc_dynarr' instead of
1870 `convert_bufbyte_string_into_emchar_dynarr'.
1871 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1872 `redisplay_text_width_charc_string' instead of
1873 `redisplay_text_width_emchar_string'.
1874 (create_text_block): Modify for <struct rune> change.
1875 (generate_formatted_string_db): Likewise.
1876 (create_string_text_block): Likewise.
1877 (pixel_to_glyph_translation): Likewise.
1879 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1880 instead of <const Emchar *>.
1881 (x_text_width): Likewise.
1882 (x_output_display_block): Use <Charc_dynarr *> instead
1883 <Emchar_dynarr *>; modify for <structure rune> change.
1884 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1887 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1888 <const Emchar *>; use `charc_string_displayed_columns' instead of
1889 `emchar_string_displayed_columns'.
1890 (tty_output_display_block): Use <Charc_dynarr *> instead of
1891 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1892 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1893 (tty_output_charc_dynarr_dynarr): New variable; renamed from
1894 `tty_output_emchar_dynarr_dynarr'.
1895 (tty_output_charc_dynarr): New function; delete
1896 `tty_output_charc_dynarr'.
1898 * redisplay-output.c (compare_runes): Modify for `struct rune'.
1899 (redisplay_output_layout): Use <Charc_dynarr *> instead of
1900 <Emchar_dynarr *> for buf; use
1901 `convert_bufbyte_string_into_charc_dynarr' instead of
1902 `convert_bufbyte_string_into_emchar_dynarr'.
1904 * frame.c (title_string_charc_dynarr): New variable; renamed from
1905 `title_string_emchar_dynarr'.
1906 (generate_title_string): Use `title_string_charc_dynarr' instead
1907 of `title_string_emchar_dynarr'; use
1908 `convert_charc_string_into_malloced_string' instead of
1909 `convert_emchar_string_into_malloced_string'.
1910 (init_frame): Use `title_string_charc_dynarr' instead of
1911 `title_string_emchar_dynarr'.
1914 - Include "character.h".
1915 (struct console_methods): Use <const Charc *> instead of <const
1916 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1917 <Emchar_dynarr *> in output_string_method.
1919 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1922 * console-stream.c (stream_text_width): Use <const Charc *>
1923 instead of <const Emchar *>.
1925 * character.h (Charc_dynarr): New type.
1927 * char-ucs.h (structure Charc): New structure; define new type
1930 * char-lb.h (DECODE_CHAR): New inline function.
1931 (encode_char_1): New inline function.
1932 (ENCODE_CHAR): New macro.
1933 (structure Charc): New structure; define new type `Charc'.
1935 * char-1byte.h (Vcharset_control_1): New macro.
1936 (Vcharset_latin_iso8859_1): New macro.
1937 (DECODE_CHAR): New inline function.
1938 (encode_char_1): New inline function.
1939 (ENCODE_CHAR): New macro.
1940 (structure Charc): New structure; define new type `Charc'.
1942 * insdel.c (find_charsets_in_charc_string): New function; delete
1943 `find_charsets_in_emchar_string'.
1944 (charc_string_displayed_columns): New function; delete
1945 `emchar_string_displayed_columns'.
1946 (convert_bufbyte_string_into_charc_dynarr): New function; delete
1947 `convert_bufbyte_string_into_emchar_dynarr'.
1948 (convert_charc_string_into_bufbyte_dynarr): New function; delete
1949 `convert_charc_string_into_bufbyte_dynarr'.
1950 (convert_charc_string_into_malloced_string): New function; delete
1951 `convert_charc_string_into_malloced_string'.
1953 * buffer.h (find_charsets_in_charc_string): New prototype; delete
1954 `find_charsets_in_emchar_string'.
1955 (charc_string_displayed_columns): New prototype; delete
1956 `emchar_string_displayed_columns'.
1957 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1958 `convert_charc_string_into_bufbyte_dynarr'.
1959 (convert_charc_string_into_malloced_string): New prototype; delete
1960 `convert_charc_string_into_malloced_string'.
1962 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1964 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1966 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1968 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1970 * char-ucs.h: Use <short> for <Charset_ID>.
1972 * mule-charset.h, char-1byte.h: Use <unsigned char> for
1975 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1977 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1980 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1982 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1984 (Qmorohashi_daikanwa): New variable.
1985 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1986 for `morohashi-daikanwa' attribute.
1987 (Fget_char_attribute): Likewise.
1988 (Fput_char_attribute): Likewise.
1989 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1990 has the same value of `ideograph-daikanwa'.
1991 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1992 (vars_of_mule_charset): Setup
1993 `Vcharacter_morohashi_daikanwa_table'.
1995 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1997 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1999 (add_charset_to_list_mapper): Add `key' instead of
2000 `XCHARSET_NAME (value)' to return aliases.
2002 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2004 * mule-charset.c (Vcharacter_ideographic_radical_table): New
2006 (Vcharacter_ideographic_strokes_table): New variable.
2007 (Qideographic_radical): New variable.
2008 (Qideographic_strokes): New variable.
2009 (Fchar_attribute_alist): Use
2010 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2011 attribute; use `Vcharacter_ideographic_strokes_table' for
2012 `ideographic-strokes' attribute.
2013 (Fget_char_attribute): Likewise.
2014 (Fput_char_attribute): Likewise.
2015 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2016 `ideographic-strokes'.
2017 (vars_of_mule_charset): Setup
2018 `Vcharacter_ideographic_radical_table' and
2019 `Vcharacter_ideographic_strokes_table'.
2021 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2023 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2024 (Qtotal_strokes): New variable.
2025 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2026 `total-strokes' attribute.
2027 (Fget_char_attribute): Likewise.
2028 (Fput_char_attribute): Likewise.
2029 (syms_of_mule_charset): Add new symbol `total-strokes'.
2030 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2032 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2034 * mule-charset.c (Vcharacter_decomposition_table): New variable.
2035 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2037 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2038 `->decomposition' attribute.
2039 (Fput_char_attribute): Likewise.
2040 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2042 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2044 * mule-charset.c (decoding_table_check_elements): New function.
2045 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2047 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2049 * mule-charset.c (Fset_charset_mapping_table): Use
2050 `put_char_ccs_code_point'.
2052 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2054 * mule-charset.c (decoding_table_put_char): New inline function.
2055 (put_char_ccs_code_point): Use `decoding_table_put_char'.
2057 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2059 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2060 (XCHARSET_BYTE_SIZE): New macro.
2061 (decoding_table_remove_char): New inline function.
2062 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2063 `decoding_table_remove_char'.
2064 (remove_char_ccs): Use `decoding_table_remove_char'.
2065 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2067 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2069 * mule-charset.c (Vcharacter_name_table): New variable.
2070 (Qname): New variable.
2071 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2073 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2074 `Vcharacter_name_table' for `name' attribute.
2075 (Fremove_char_attribute): Use function `remove_char_ccs'.
2076 (put_char_ccs_code_point): New function.
2077 (remove_char_ccs): New function.
2078 (syms_of_mule_charset): Add new symbol `name'.
2079 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2081 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2083 * mule-charset.c (make_byte_table): Add new argument `older'.
2084 (make_char_id_table): Likewise.
2085 (copy_char_id_table): Comment out because it is not used.
2086 (put_char_id_table): Modify for `make_byte_table'.
2087 (Fput_char_attribute): Make encoding_table as older object;
2088 inherit older bit of `Vcharacter_composition_table'.
2089 (mark_charset): Don't mark `cs->encoding_table'.
2090 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2091 normal object; make `Vcharacter_composition_table' as an older
2092 object; delete staticpro for `Vcharacter_composition_table'; make
2093 `Vcharacter_variant_table' as a normal object.
2095 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2096 (mark_object): Don't check older object in UTF-2000.
2098 * lrecord.h (struct lrecord_header): Add new member `older' in
2100 (set_lheader_implementation): Setup `SLI_header->older' in
2102 (set_lheader_older_implementation): New macro in UTF-2000.
2103 (OLDER_RECORD_P): New macro in UTF-2000.
2104 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2105 (alloc_older_lcrecord): New prototype in UTF-2000.
2106 (alloc_older_lcrecord_type): New macro in UTF-2000.
2108 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2110 * mule-charset.c (byte_table_description): Use
2111 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2112 (char_id_table_description): Delete bogus `, 1'.
2113 (Fget_char_attribute): Refer encoding_table of each coded-charset
2114 to get value of coded-charset attribute of a character.
2115 (Fput_char_attribute): Use `make_older_vector' instead of
2116 `make_vector'; use encoding_table of each coded-charset to store
2117 value of coded-charset attribute of a character.
2118 (Fremove_char_attribute): Use encoding_table of each coded-charset
2119 to store value of coded-charset attribute of a character.
2120 (mark_charset): Mark `cs->encoding_table'; don't mark
2121 `cs->decoding_table'.
2122 (charset_description): Add description of new member
2124 (make_charset): Initialize `encoding_table'.
2126 * char-ucs.h (struct Lisp_Charset): Add new member
2128 (CHARSET_ENCODING_TABLE): New macro.
2129 (XCHARSET_ENCODING_TABLE): New macro.
2130 (charset_code_point): New implementation.
2131 (encode_char_1): Likewise.
2133 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2134 (disksave_object_finalization_1): Call finalizers of
2135 `all_older_lcrecords' in UTF-2000.
2136 (make_older_vector): New function in UTF-2000.
2137 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2140 * lisp.h (make_older_vector): New prototype in UTF-2000.
2142 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2144 * lrecord.h (enum lrecord_type): Rename
2145 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2147 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2148 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2149 `get_char_code_table'.
2151 * mule-charset.c (mark_char_id_table): Renamed from
2152 `mark_char_code_table'.
2153 (char_id_table_equal): Renamed from `char_code_table_equal'.
2154 (char_id_table_hash): Renamed from `char_code_table_hash'.
2155 (make_char_id_table): Renamed from `make_char_code_table'.
2156 (copy_char_id_table): Renamed from `copy_char_code_table'.
2157 (get_char_id_table): Renamed from `get_char_code_table'.
2158 (put_char_id_table): Renamed from `put_char_code_table'.
2159 (to_char_id): Renamed from `to_char_code'.
2161 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2162 `Lisp_Char_Code_Table'.
2163 (char_id_table): Renamed from `char_code_table'.
2164 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2165 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2166 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2167 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2168 (get_char_id_table): Renamed from `get_char_code_table'.
2170 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2172 * lrecord.h (enum lrecord_type): Rename
2173 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2175 * mule-charset.c (mark_byte_table): Renamed from
2176 `mark_char_byte_table'.
2177 (byte_table_equal): Renamed from `char_byte_table_equal'.
2178 (byte_table_hash): Renamed from `byte_table_hash'.
2179 (make_byte_table): Renamed from `make_byte_table'.
2180 (copy_byte_table): Renamed from `copy_char_byte_table'.
2182 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2183 `Lisp_Char_Byte_Table'.
2184 (byte_table): Renamed from `char_byte_table'.
2185 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2186 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2187 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2188 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2190 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2192 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2193 (dfc_convert_to_internal_format): Likewise.
2195 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2196 * text-coding.c (Fcoding_system_alias_p): New function.
2197 * text-coding.c (Fcoding_system_aliasee): New function.
2198 * text-coding.c (append_suffix_to_symbol): New function.
2199 * text-coding.c (dangling_coding_system_alias_p): New function.
2200 * text-coding.c (Ffind_coding_system):
2201 * text-coding.c (Fcopy_coding_system):
2202 * text-coding.c (encode_coding_no_conversion):
2203 * text-coding.c (syms_of_file_coding):
2204 * text-coding.c (vars_of_file_coding):
2205 Rewrite coding system alias code.
2206 Allow nested aliases, like symbolic links.
2207 Allow redefinition of coding system aliases.
2208 Prevent existence of dangling coding system aliases.
2209 Eliminate convert_to_external_format.
2210 Eliminate convert_to_internal_format.
2212 * text-coding.c: Change enum eol_type to eol_type_t.
2214 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2216 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2217 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2219 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2220 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2222 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2224 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2225 `ideograph-daikanwa'.
2227 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2228 (Vcharset_ucs_bmp): Likewise.
2229 (Vcharset_mojikyo): Add new extern variable definition.
2230 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2231 (Vcharset_latin_iso8859_3): Likewise.
2232 (Vcharset_latin_iso8859_4): Likewise.
2233 (Vcharset_latin_iso8859_9): Likewise.
2234 (Vcharset_latin_viscii_lower): Likewise.
2235 (Vcharset_latin_viscii_upper): Likewise.
2236 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2237 `mojikyo' code-point is used to decode.
2238 (encode_char_2): New function [to convert `mojikyo' code-point to
2239 Mojikyo font encoding].
2240 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2241 (breakup_char_1): Likewise.
2242 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2244 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2246 * text-coding.c (Fmake_coding_system): Add document about
2247 `disable-composition' property.
2249 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2251 * text-coding.c (Qdisable_composition): New variable; delete
2253 (Fmake_coding_system): Add new property `disable-composite';
2254 delete property `composite'.
2255 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2256 instead of `!CODING_SYSTEM_COMPOSITE'.
2257 (syms_of_file_coding): Add new symbol `disable-composition';
2258 delete symbol `composite'.
2260 * file-coding.h (struct Lisp_Coding_System): Add
2261 `disable_composition'; delete `enable_composition'.
2262 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2263 `CODING_SYSTEM_COMPOSITE'.
2264 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2265 `XCODING_SYSTEM_COMPOSITE'.
2267 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2269 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2272 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2274 * text-coding.c (Qcomposite): New variable.
2275 (Fmake_coding_system): Add new property `composite'.
2276 (struct decoding_stream): Add `combined_char_count',
2277 `combined_chars' and `combining_table' in UTF-2000.
2278 (COMPOSE_FLUSH_CHARS): New macro.
2279 (COMPOSE_ADD_CHAR): New macro.
2280 (reset_decoding_stream): Reset `str->combined_char_count' and
2281 `str->combining_table' in UTF-2000.
2282 (decode_coding_iso2022): Modify for character-decomposition.
2283 (syms_of_file_coding): Add new symbol `composite'.
2285 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2287 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2288 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2289 of `Vcharacter_composition_table' if `->decomposition' property
2291 (Qlatin_tcvn5712): New variable.
2292 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2293 (complex_vars_of_mule_charset): Add new coded-charset
2296 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2298 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2300 * file-coding.h (struct Lisp_Coding_System): Add
2301 `enable_composition'.
2302 (CODING_SYSTEM_COMPOSITE): New macro.
2303 (XCODING_SYSTEM_COMPOSITE): New macro.
2305 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2307 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2309 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2311 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2312 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2314 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2316 * mule-charset.c (Vcharset_mojikyo): New variable.
2317 (Fdefine_char): Don't use coded-charset which does not have
2318 non-builtin character range to allocate character-id.
2319 (Qmojikyo): New variable.
2320 (syms_of_mule_charset): Add new symbol `mojikyo'.
2321 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2323 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2324 (LEADING_BYTE_MOJIKYO): New macro.
2325 (MIN_CHAR_MOJIKYO): New macro.
2326 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2327 (MAX_CHAR_MOJIKYO): New macro.
2329 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2331 * mule-charset.c (remove_char_attribute): Fixed.
2333 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2335 * mule-charset.c (remove_char_attribute): New function.
2336 (Fremove_char_attribute): New function.
2337 (encode_builtin_char_1): Comment out builtin-support for
2338 greek-iso8859-7 and cyrillic-iso8859-5.
2339 (Fdecode_char): Check `code' is an integer.
2340 (syms_of_mule_charset): Add `remove-char-attribute'.
2341 (MIN_CHAR_GREEK): Deleted.
2342 (MAX_CHAR_GREEK): Likewise.
2343 (MIN_CHAR_CYRILLIC): Likewise.
2344 (MAX_CHAR_CYRILLIC): Likewise.
2345 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2346 MAX_CHAR_GREEK for `greek-iso8859-7'.
2348 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2349 (MAX_CHAR_GREEK): Likewise.
2350 (MIN_CHAR_CYRILLIC): Likewise.
2351 (MAX_CHAR_CYRILLIC): Likewise.
2353 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2355 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2356 format is used without `ucs' property.
2357 (Fdecode_char): Fix problem with GR representation.
2358 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2359 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2361 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2363 * mule-charset.c (make_builtin_char): New function.
2364 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2365 (Fset_charset_mapping_table): Modify for new representation of
2367 (Fdecode_char): New function.
2368 (syms_of_mule_charset): Add new builtin function `decode-char' in
2371 * char-ucs.h (make_builtin_char): New prototype.
2372 (DECODE_CHAR): New inline function.
2373 (MAKE_CHAR): Use `DECODE_CHAR'.
2375 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2377 * text-coding.c (parse_charset_conversion_specs): Use
2378 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2380 (iso2022_designate): Likewise.
2382 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2383 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2385 * mule-charset.c (Vcharset_ucs): New variable.
2386 (print_charset): Change design; use `CHARSET_CHARS' and
2387 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2388 (make_charset): Change signature to specify `chars' and
2389 `dimension' instead of `type'.
2390 (range_charset_code_point): Modify for 256^n-set.
2391 (encode_builtin_char_1): Encode as `ucs' in default.
2392 (Fmake_charset): Modify for `make_charset'.
2393 (Fmake_reverse_direction_charset): Likewise.
2394 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2396 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2399 * char-ucs.h (Vcharset_ucs): New variable.
2400 (LEADING_BYTE_UCS): New macro.
2401 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2402 and `chars' to `unsigned short' from `unsigned int'.
2403 (CHARSET_TYPE): Deleted.
2404 (XCHARSET_TYPE): Deleted.
2406 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2408 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2410 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2411 (ENCODE_CHAR): New macro.
2413 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2415 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2416 to 0.14 (Kawachi-Katakami).
2418 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2420 * text-coding.c (char_encode_shift_jis): Modify for
2421 `charset_code_point'.
2422 (char_encode_iso2022): Likewise.
2424 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2425 (integer) instead of list of <Lisp_Object>s (integers) as the
2426 format of code-point of a coded-charset.
2427 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2428 (encode_builtin_char_1): New function; delete
2429 `split_builtin_char'.
2430 (charset_code_point): Return <int> instead of <Lisp_Object>.
2431 (Fsplit_char): Don't use `SPLIT_CHAR'.
2433 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2434 prototype for `split_builtin_char'.
2435 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2436 (charset_code_point): Likewise.
2437 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2438 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2440 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2442 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2443 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2445 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2447 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2449 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2450 (MAX_CHAR_OBS_94x94): Deleted.
2452 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2454 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2456 * char-ucs.h (MAX_CHAR_BMP): New macro.
2458 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2460 * text-coding.c: Sync with r21-2-24.
2462 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2464 * file-coding.c: Modify for UTF-2000.
2466 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2468 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2471 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2473 * mule-charset.c (split_builtin_char): Delete builtin support for
2474 `katakana-jisx0201'.
2475 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2476 BMP area in builtin representation.
2478 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2479 `Vcharset_katakana_jisx0201'.
2481 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2483 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2484 (Qisolated): New variable.
2485 (Qinitial): New variable.
2486 (Qmedial): New variable.
2487 (Qfinal): New variable.
2488 (Qvertical): New variable.
2489 (Qsmall): New variable.
2490 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2491 `Qvertical' and `Qsmall'.
2492 (Qmojikyo_pj_[1 .. 21]): New variable.
2493 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2494 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2495 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2498 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2500 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2501 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2502 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2504 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2506 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2507 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2509 (Qjapanese_jisx0208_1990): New variable.
2510 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2511 (complex_vars_of_mule_charset): Add new coded-charset
2512 `japanese-jisx0208-1990'.
2514 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2515 (MIN_CHAR_JIS_X0208_1990): New macro.
2516 (MAX_CHAR_JIS_X0208_1990): New macro.
2518 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2520 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2521 coded-charset is not found.
2523 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2525 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2526 (Fdefine_char): Use `Fmake_char'.
2528 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2530 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2531 (Vcharset_hiragana_jisx0208): Deleted.
2532 (Vcharset_katakana_jisx0208): Deleted.
2533 (Qideograph_daikanwa): New variable.
2534 (Qhiragana_jisx0208): Deleted.
2535 (Qkatakana_jisx0208): Deleted.
2536 (split_builtin_char): Split `ideograph-daikanwa'.
2537 (Fsplit_char): New implementation for UTF-2000.
2538 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2539 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2540 (complex_vars_of_mule_charset): Add new coded-charset
2541 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2542 `katakana-jisx0208'.
2544 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2545 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2546 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2547 (MIN_CHAR_DAIKANWA): New macro.
2548 (MAX_CHAR_DAIKANWA): New macro.
2550 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2552 * data.c (Fstring_to_number): Don't recognize floating point if
2555 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2557 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2559 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2561 * mule-charset.c (Qsquare): New variable.
2562 (to_char_code): Add `Qsquare'.
2563 (syms_of_mule_charset): Add new symbol `square'.
2565 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2567 * mule-charset.c (Qcircle): New variable.
2568 (to_char_code): Add `Qcircle'.
2569 (syms_of_mule_charset): Add new symbol `circle'.
2571 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2573 * mule-charset.c (Qfont): New variable.
2574 (to_char_code): Add `Qfont'.
2575 (syms_of_mule_charset): Add new symbol `font'.
2577 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2579 * mule-charset.c (Qsub): New variable.
2580 (to_char_code): Add `Qsub'.
2581 (syms_of_mule_charset): Add new symbol `sub'.
2583 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2585 * mule-charset.c (Fput_char_attribute): Convert each element of
2586 VALUE to GL position if ATTRIBUTE is a GR-set,
2588 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2590 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2591 coded-charset is a GR-set.
2593 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2595 * mule-charset.c (Fput_char_attribute): Check each element of
2596 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2598 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2600 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2602 (Qethiopic_ucs): New variable in UTF-2000.
2603 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2604 (complex_vars_of_mule_charset): Add new coded-charset
2605 `ethiopic-ucs' in UTF-2000.
2607 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2608 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2610 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2612 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2614 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2616 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2619 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2621 * mule-charset.c (Vcharacter_variant_table): New variable.
2622 (Q_ucs): New variable.
2623 (Fchar_variants): New function.
2624 (Fput_char_attribute): Register `->ucs' value to
2625 `Vcharacter_variant_table'.
2626 (syms_of_mule_charset): Add new function `char-variants' and new
2628 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2630 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2632 * mule-charset.c (get_char_code_table): Allow negative character
2634 (put_char_code_table): Likewise.
2635 (Vcharacter_composition_table): New variable.
2636 (Q_decomposition): New variable.
2637 (Qwide): New variable.
2638 (Qnarrow): New variable.
2639 (Qcompat): New variable.
2640 (QnoBreak): New variable.
2641 (Qsuper): New variable.
2642 (Qfraction): New variable.
2643 (to_char_code): New function.
2644 (Fget_composite_char): New function.
2645 (Fput_char_attribute): Register `->decomposition' value to
2646 `Vcharacter_composition_table'.
2647 (syms_of_mule_charset): Add new function `get-composite-char', new
2648 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2649 `super' and `fraction'.
2650 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2652 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2654 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2655 character; copy the return value.
2657 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2659 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2661 * mule-charset.c (range_charset_code_point): Must use make_int.
2662 (split_builtin_char): New function.
2664 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2666 * mule-charset.c (char_byte_table): Change name from
2667 "char-code-table" to "char-byte-table".
2668 (mark_char_code_table): New function.
2669 (char_code_table_equal): New function.
2670 (char_code_table_hash): New function.
2671 (char_code_table_description): New constant.
2672 (char_code_table): New type.
2673 (make_char_code_table): New function.
2674 (copy_char_code_table): New function.
2675 (get_char_code_table): Modify for `char_code_table' type.
2676 (put_char_code_table): Likewise.
2677 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2680 * char-ucs.h (char_code_table): New type.
2681 (XCHAR_CODE_TABLE): New macro.
2682 (XSETCHAR_CODE_TABLE): New macro.
2683 (CHAR_CODE_TABLE_P): New macro.
2684 (GC_CHAR_CODE_TABLE_P): New macro.
2685 (struct Lisp_Char_Code_Table): New structure.
2687 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2689 * mule-charset.c (Fmake_charset): Setup byte_offset for
2692 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2694 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2697 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2699 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2702 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2704 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2705 charset, it is regarded as a charset.
2706 (put_char_attribute): New function in UTF-2000.
2707 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2708 charset, mapping-table of the charset is modified.
2709 (Fdefine_char): New function in UTF-2000.
2710 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2711 `Fput_char_attribute'.
2712 (syms_of_mule_charset): Add new function `define-char' and new
2713 symbol `ucs' in UTF-2000.
2714 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2716 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2718 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2719 non-UTF-2000 configuration.
2721 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2723 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2724 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2726 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2728 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2729 (Fset_charset_mapping_table): Likewise.
2731 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2732 (CHARSET_ENCODING_TABLE): Delete.
2733 (XCHARSET_ENCODING_TABLE): Delete.
2734 (charset_code_point): New interface.
2736 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2738 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2739 instead of `charset_get_byte1' and `charset_get_byte2'.
2741 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2742 (charset_get_byte2): Deleted.
2744 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2746 * char-ucs.h (SPLIT_CHAR): New inline function.
2747 (breakup_char_1): Use `SPLIT_CHAR'.
2749 * mule-charset.c (range_charset_code_point): New function.
2750 (charset_code_point): New function.
2752 * char-ucs.h (range_charset_code_point): New interface.
2753 (breakup_char_1): Use `range_charset_code_point'.
2755 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2757 * mule-charset.c (Fmake_charset): Delete unused local variable
2760 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2761 (breakup_char_1): Find a charset and code-point in
2762 `Vcharacter_attribute_table'.
2764 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2766 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2769 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2771 * mule-charset.c (Vcharacter_attribute_table): New variable.
2772 (Fchar_attribute_alist): New function.
2773 (Fget_char_attribute): New function.
2774 (Fput_char_attribute): New function.
2775 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2777 (syms_of_mule_charset): Add new function `char-attribute-alist',
2778 `get-char-attribute' and `put-char-attribute'.
2779 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2781 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
2783 * mule-charset.c (Fmake_charset): Just use
2784 `get_unallocated_leading_byte'.
2786 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2787 sets; don't use final-byte based number for private sets.
2789 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2791 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2794 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2796 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2799 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2801 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2802 of `CHAR_LEADING_BYTE' in UTF-2000.
2804 * insdel.c (find_charsets_in_bufbyte_string): Use
2805 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2806 (find_charsets_in_emchar_string): Likewise.
2808 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2809 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2811 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2812 (CHAR_CHARSET_ID): New macro.
2814 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2816 * chartab.c (get_char_table): Don't use type `Charset_ID' for
2817 charset-id - MIN_LEADING_BYTE.
2818 (put_char_table): Likewise.
2820 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2822 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2823 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2824 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2825 (CHARSET_ID_OFFSET): New macro.
2826 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2827 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2828 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2829 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2831 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2833 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2834 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2835 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2836 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2837 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2839 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2841 * mule-charset.c (next_allocated_leading_byte): New variable in
2843 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2844 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2845 (get_unallocated_leading_byte): Simply use
2846 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2847 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2850 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2851 (MAX_LEADING_BYTE_PRIVATE): New macro.
2852 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2853 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2855 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2857 * mule-charset.c (Fmake_charset): Allocate final-byte based
2858 charset-id for 94-set, 96-set and 94x94-set.
2860 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2862 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2864 (Fmake_charset): Likewise.
2865 (complex_vars_of_mule_charset): Modify the font registry of
2866 `ucs-bmp' not to match `Ethiopic-Unicode'.
2868 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2870 * mule-charset.c (complex_vars_of_mule_charset): Add font
2871 registory of `ucs-bmp'.
2873 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2875 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2876 coded-charsets in `default-coded-charset-priority-list' when
2877 breaking up a character.
2879 * mule-charset.c (Vcharset_latin_viscii): New variable.
2880 (Qlatin_viscii): New variable.
2881 (make_charset): Don't use `decoding_table'.
2882 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2884 (Fset_charset_mapping_table): New implementation.
2885 (syms_of_mule_charset): Add new symbol `latin-viscii'.
2886 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2887 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2888 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2889 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2890 charset `latin_viscii'.
2892 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2893 (CHARSET_TYPE_94X94): Change to 1 from 2.
2894 (CHARSET_TYPE_96): Change to 2 from 1.
2895 (CHARSET_TYPE_128): New macro.
2896 (CHARSET_TYPE_128X128): Change to 5 from 4.
2897 (CHARSET_TYPE_256): New macro.
2898 (CHARSET_TYPE_256X256): Change to 7 from 5.
2899 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2901 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2903 * text-coding.c (char_encode_shift_jis): Refer
2904 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2905 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2907 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2908 (char_byte_table_equal): New function in UTF-2000.
2909 (char_byte_table_hash): New function in UTF-2000.
2910 (char_byte_table_description): New constant in UTF-2000.
2911 (char_byte_table): New type in UTF-2000.
2912 (make_char_byte_table): New function in UTF-2000.
2913 (copy_char_byte_table): New function in UTF-2000.
2914 (make_char_code_table): New macro in UTF-2000.
2915 (get_char_code_table): New function in UTF-2000.
2916 (put_char_code_table): New function in UTF-2000.
2917 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2918 (charset_description): Add setting in UTF-2000.
2919 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2920 `CHARSET_TO_BYTE1_TABLE(cs)'.
2921 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2922 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2923 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2924 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2925 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2926 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2927 `CHARSET_TO_BYTE2_TABLE(cs)'.
2929 * char-ucs.h (char_byte_table): New type.
2930 (XCHAR_BYTE_TABLE): New macro.
2931 (XSETCHAR_BYTE_TABLE): New macro.
2932 (CHAR_BYTE_TABLE_P): New macro.
2933 (GC_CHAR_BYTE_TABLE_P): New macro.
2934 (struct Lisp_Char_Byte_Table): New structure.
2935 (get_char_code_table): New interface.
2936 (Emchar_to_byte_table): Deleted.
2937 (get_byte_from_character_table): Deleted.
2938 (struct Lisp_Charset): Add `encoding_table'; delete
2939 `to_byte1_table' and `to_byte2_table'.
2940 (CHARSET_ENCODING_TABLE): New macro.
2941 (CHARSET_TO_BYTE1_TABLE): Deleted.
2942 (CHARSET_TO_BYTE2_TABLE): Deleted.
2943 (XCHARSET_ENCODING_TABLE): New macro.
2944 (XCHARSET_TO_BYTE1_TABLE): Deleted.
2945 (XCHARSET_TO_BYTE2_TABLE): Deleted.
2947 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2949 * mule-charset.c (syms_of_mule_charset): Delete charset alias
2950 `vietnamese-viscii-*'.
2952 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2954 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2955 (Qvietnamese_viscii_upper): New variable.
2956 (Fdefine_charset_alias): New function.
2957 (syms_of_mule_charset): Add new function `define-charset-alias'.
2958 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2959 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2962 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
2964 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2965 (MAX_CHAR_OBS_94x94): New macro.
2966 (breakup_char_1): Support obsolete XEmacs-UCS private code space
2969 * mule-charset.c (put_byte_from_character_table): Change unit size
2971 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2973 (Fmake_reverse_direction_charset): Modify dummy argument of
2974 `make_charset' for non-UTF-2000 environment.
2976 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
2978 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2980 * mule-charset.c (destroy_byte_from_character_table): New macro.
2981 (latin_jisx0201_to_ucs): Deleted.
2982 (latin_iso8859_2_to_ucs): Deleted.
2983 (latin_iso8859_3_to_ucs): Deleted.
2984 (latin_iso8859_4_to_ucs): Deleted.
2985 (latin_iso8859_9_to_ucs): Deleted.
2986 (latin_viscii_lower_to_ucs): Deleted.
2987 (latin_viscii_upper_to_ucs): Deleted.
2988 (mark_charset): Mark `cs->decoding_table'.
2989 (Fcharset_mapping_table): Fix DOC-string.
2990 (Fset_charset_mapping_table): New function.
2991 (syms_of_mule_charset): Add nwe function
2992 `set-charset-mapping-table'.
2993 (complex_vars_of_mule_charset): Don't setup and use
2996 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
2998 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3001 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
3003 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3004 (Vcharset_katakana_jisx0208): New variable.
3005 (Qhiragana_jisx0208): New variable.
3006 (Qkatakana_jisx0208): New variable.
3007 (make_charset): Add new argument `byte_offset'.
3008 (charset_get_byte1): Modify for new coded-charset definition; use
3009 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3010 `XCHARSET_BYTE_OFFSET'.
3011 (Fmake_charset): Modify for `make_charset'.
3012 (Fmake_reverse_direction_charset): Likewise.
3013 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3014 `katakana-jisx0208'.
3015 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3016 `.' in font registry of charset `katakana-jisx0201',
3017 `latin-jisx0201', `vietnamese-viscii-lower' and
3018 `vietnamese-viscii-upper'; modify DOC-string of charset
3019 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3020 registry of charset `japanese-jisx0208' not to use font for JIS
3021 X0208:1990; add new charset `hiragana-jisx0208' and
3022 `katakana-jisx0208'.
3024 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3025 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3026 (struct Lisp_Charset): Add `byte_offset'.
3027 (CHARSET_BYTE_OFFSET): New macro.
3028 (XCHARSET_UCS_MIN): New macro.
3029 (XCHARSET_UCS_MAX): New macro.
3030 (XCHARSET_CODE_OFFSET): New macro.
3031 (XCHARSET_BYTE_OFFSET): New macro.
3032 (MIN_CHAR_HIRAGANA): New macro.
3033 (MAX_CHAR_HIRAGANA): New macro.
3034 (MIN_CHAR_KATAKANA): New macro.
3035 (MAX_CHAR_KATAKANA): New macro.
3036 (MAKE_CHAR): Modify for new coded-charset definition; use
3037 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3038 `XCHARSET_BYTE_OFFSET'.
3040 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3042 * mule-charset.c (CHAR96): Deleted.
3043 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3045 (latin_iso8859_2_to_ucs): Likewise.
3046 (latin_iso8859_3_to_ucs): Likewise.
3047 (latin_iso8859_4_to_ucs): Likewise.
3048 (latin_iso8859_9_to_ucs): Likewise.
3049 (latin_viscii_lower_to_ucs): Likewise.
3050 (latin_viscii_upper_to_ucs): Likewise.
3051 (latin_tcvn5712_to_ucs): Commented out.
3052 (make_charset): Change type of argument `decoding_table' from
3053 <Emchar*> to <Lisp_Object> [vector of characters].
3054 (Fmake_charset): Modify for `make_charset'.
3055 (Fmake_reverse_direction_charset): Likewise.
3056 (Fcharset_mapping_table): New function in UTF-2000.
3057 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3059 (complex_vars_of_mule_charset): Modify for type change of
3060 `*_to_ucs'; modify for `make_charset'.
3062 * char-ucs.h (struct Lisp_Charset): Change type of
3063 `decoding_table' from <Emchar*> to <Lisp_Object>.
3064 (MAKE_CHAR): Modify for new specification of `decoding_table'.
3066 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3068 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3069 error with non-UTF-2000-Mule.
3071 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
3073 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3075 (Vcharset_chinese_cns11643_4): Likewise.
3076 (Vcharset_chinese_cns11643_5): Likewise.
3077 (Vcharset_chinese_cns11643_6): Likewise.
3078 (Vcharset_chinese_cns11643_7): Likewise.
3079 (Qchinese_cns11643_3): Likewise.
3080 (Qchinese_cns11643_4): Likewise.
3081 (Qchinese_cns11643_5): Likewise.
3082 (Qchinese_cns11643_6): Likewise.
3083 (Qchinese_cns11643_7): Likewise.
3084 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3085 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3086 and `chinese-cns11643-7' to lisp/mule/chinese.el.
3087 (complex_vars_of_mule_charset): Likewise.
3089 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3091 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3093 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3094 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3096 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3098 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3100 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3101 (breakup_char_1): Likewise.
3103 * text-coding.c (char_encode_iso2022): Keep designated charsets if
3104 one of them includes the specified character.
3106 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3108 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3110 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3112 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3114 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3116 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3117 definition for non-UTF-2000 Mule.
3118 (latin_iso8859_3_to_ucs): Likewise.
3119 (latin_iso8859_4_to_ucs): Likewise.
3120 (latin_iso8859_9_to_ucs): Likewise.
3121 (latin_jisx0201_to_ucs): Likewise.
3122 (MIN_CHAR_THAI): Likewise.
3123 (MAX_CHAR_THAI): Likewise.
3124 (MIN_CHAR_GREEK): Likewise.
3125 (MAX_CHAR_GREEK): Likewise.
3126 (MIN_CHAR_HEBREW): Likewise.
3127 (MAX_CHAR_HEBREW): Likewise.
3128 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3129 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3130 (MIN_CHAR_CYRILLIC): Likewise.
3131 (MAX_CHAR_CYRILLIC): Likewise.
3133 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3135 * char-ucs.h (breakup_char_1): Use
3136 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3137 thai-tis620 and katakana-jisx0201 area.
3139 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3141 * char-ucs.h (breakup_char_1): Use
3142 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3145 * text-coding.c (reset_encoding_stream): Fixed.
3146 (char_encode_ucs4): Delete `& 255'.
3148 * char-ucs.h (breakup_char_1): Use
3149 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3151 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3153 * file-coding.c (Fmake_coding_system): Don't set up
3154 `codesys->fixed.size'.
3155 (encode_coding_no_conversion): Don't refer
3156 `str->codesys->fixed.size'.
3158 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3160 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3161 (latin_a_char_to_byte1): Deleted.
3162 (latin_a_char_to_byte2): Deleted.
3164 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3166 * mule-charset.c (make_charset): Add new argument `ucs_min',
3167 `ucs_max' and `code_offset'.
3168 (charset_get_byte1): New implementation [delete specific charset
3169 depended implementations].
3170 (Fmake_charset): Modify for `make_charset'.
3171 (Fmake_reverse_direction_charset): Likewise.
3172 (complex_vars_of_mule_charset): Likewise.
3174 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3176 (CHARSET_UCS_MIN): New macro.
3177 (CHARSET_UCS_MAX): New macro.
3178 (CHARSET_CODE_OFFSET): New macro.
3179 (MAKE_CHAR): Delete charset depended definitions [except
3182 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3184 * char-ucs.h (breakup_char_1): Use
3185 `Vdefault_coded_charset_priority_list' for C0-Controls,
3186 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3188 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3190 * char-ucs.h (charset_get_byte1): New function.
3191 (XCHARSET_GET_BYTE1): Deleted.
3192 (charset_get_byte2): New function.
3193 (XCHARSET_GET_BYTE2): Deleted.
3194 (Vdefault_coded_charset_priority_list): New external variable.
3195 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3196 `Vdefault_preferred_coded_charset_list'.
3198 * mule-charset.c (charset_get_byte1): New function.
3199 (charset_get_byte2): New function.
3200 (Vdefault_coded_charset_priority_list): New variable.
3201 (vars_of_mule_charset): Add new variable
3202 `default-coded-charset-priority-list'.
3204 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3206 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3207 (XCHARSET_GET_BYTE2): New inline function.
3208 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3209 `XCHARSET_GET_BYTE2'.
3211 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3213 * mule-charset.c (make_charset): Initialize
3214 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3215 NULL if table is not defined.
3217 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3219 * text-coding.c (char_encode_shift_jis): Use
3220 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3221 `ucs_to_latin_jisx0201'.
3223 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3224 (ucs_to_latin_iso8859_2): Deleted.
3225 (ucs_to_latin_iso8859_3): Deleted.
3226 (ucs_to_latin_iso8859_4): Deleted.
3227 (ucs_to_latin_iso8859_9): Deleted.
3228 (ucs_to_latin_viscii_lower): Deleted.
3229 (ucs_to_latin_viscii_upper): Deleted.
3230 (ucs_to_latin_tcvn5712): Deleted.
3231 (make_charset): Add new argument `decoding_table'; set up
3232 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3233 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3234 `decoding_table' is defined in UTF-2000.
3235 (Fmake_charset): Modify for `make_charset'.
3236 (Fmake_reverse_direction_charset): Likewise.
3237 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3238 and `GENERATE_96_SET'.
3240 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3241 (ucs_to_latin_jisx0201): Deleted.
3242 (latin_iso8859_2_to_ucs): Deleted.
3243 (ucs_to_latin_iso8859_2): Deleted.
3244 (latin_iso8859_3_to_ucs): Deleted.
3245 (ucs_to_latin_iso8859_3): Deleted.
3246 (latin_iso8859_4_to_ucs): Deleted.
3247 (ucs_to_latin_iso8859_4): Deleted.
3248 (latin_iso8859_9_to_ucs): Deleted.
3249 (ucs_to_latin_iso8859_9): Deleted.
3250 (latin_viscii_lower_to_ucs): Deleted.
3251 (ucs_to_latin_viscii_lower): Deleted.
3252 (latin_viscii_upper_to_ucs): Deleted.
3253 (ucs_to_latin_viscii_upper): Deleted.
3254 (struct Lisp_Charset): Renamed `encoding_table' to
3255 `to_byte1_table'; add `to_byte2_table'.
3256 (CHARSET_DECODING_TABLE): New macro.
3257 (CHARSET_TO_BYTE1_TABLE): New macro.
3258 (CHARSET_TO_BYTE2_TABLE): New macro.
3259 (XCHARSET_DECODING_TABLE): New macro.
3260 (XCHARSET_TO_BYTE1_TABLE): New macro.
3261 (XCHARSET_TO_BYTE2_TABLE): New macro.
3262 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3264 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3265 don't use `ucs_to_*' tables.
3267 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3269 * text-coding.c (Fmake_coding_system): Don't set up
3270 `codesys->fixed.size'.
3271 (encode_coding_no_conversion): Use `if' instead of `switch'.
3273 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3275 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3277 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3278 (Fmake_charset): Modify for `make_charset'.
3279 (Fmake_reverse_direction_charset): Likewise.
3280 (complex_vars_of_mule_charset): Likewise.
3282 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3284 * text-coding.c (char_encode_shift_jis): Use table
3285 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3287 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3289 * text-coding.c (text_encode_generic): Use `if' instead of
3291 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3294 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3296 * text-coding.c (encode_coding_sjis): Deleted.
3297 (char_encode_shift_jis): New function.
3298 (char_finish_shift_jis): New function.
3299 (reset_encoding_stream): Set up `encode_char' and `finish' for
3300 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3301 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3302 (char_encode_utf8): Treat `eol_type'.
3304 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3306 * file-coding.c (decode_coding_iso2022): Use
3307 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3309 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3311 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3314 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3316 * char-lb.h (CHAR_COLUMNS): New macro.
3318 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3320 * text-coding.c (char_encode_ucs4): New function.
3321 (char_finish_ucs4): New function.
3322 (encode_coding_ucs4): Deleted.
3323 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3324 (text_encode_generic): Delete local variable `charset' and `half'.
3325 (ucs_to_mule_table): Deleted.
3326 (mule_to_ucs_table): Deleted.
3327 (Fset_ucs_char): Deleted.
3328 (ucs_to_char): Deleted.
3329 (Fucs_char): Deleted.
3330 (Fset_char_ucs): Deleted.
3331 (Fchar_ucs): Deleted.
3332 (decode_ucs4): Deleted.
3333 (mule_char_to_ucs4): Deleted.
3334 (encode_ucs4): Deleted.
3335 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3336 (decode_coding_utf8): Likewise.
3337 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3338 (char_encode_iso2022): Fixed.
3339 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3340 `Fset_char_ucs' and `Fchar_ucs'.
3341 (complex_vars_of_file_coding): Don't initialize
3342 `ucs_to_mule_table'.
3344 * objects-tty.c (tty_initialize_font_instance): Don't use
3347 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3350 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3351 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3353 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3354 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3355 (emchar_string_displayed_columns): Likewise.
3357 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3358 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3359 (string_column_at_point): Likewise.
3360 (Fmove_to_column): Likewise.
3362 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3363 `encoding_table' and `decoding_table'.
3364 (CHARSET_REP_BYTES): Deleted.
3365 (XCHARSET_REP_BYTES): Deleted.
3366 (XCHARSET_COLUMNS): Deleted.
3367 (CHAR_COLUMNS): New macro.
3368 (lookup_composite_char): Deleted unconditionally.
3369 (composite_char_string): Likewise.
3371 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3373 * char-ucs.h (Emchar_to_byte_table): New type.
3374 (get_byte_from_character_table): New function interface.
3375 (Vcharset_latin_jisx0201): New variable.
3376 (latin_jisx0201_to_ucs): New variable.
3377 (ucs_to_latin_jisx0201): New variable.
3378 (Vcharset_latin_iso8859_2): New variable.
3379 (latin_iso8859_2_to_ucs): New variable.
3380 (ucs_to_latin_iso8859_2): New variable.
3381 (Vcharset_latin_iso8859_3): New variable.
3382 (latin_iso8859_3_to_ucs): New variable.
3383 (ucs_to_latin_iso8859_3): New variable.
3384 (Vcharset_latin_iso8859_4): New variable.
3385 (latin_iso8859_4_to_ucs): New variable.
3386 (ucs_to_latin_iso8859_4): New variable.
3387 (Vcharset_latin_iso8859_9): New variable.
3388 (latin_iso8859_9_to_ucs): New variable.
3389 (ucs_to_latin_iso8859_9): New variable.
3390 (Vcharset_latin_viscii_lower): New variable.
3391 (latin_viscii_lower_to_ucs): New variable.
3392 (ucs_to_latin_viscii_lower): New variable.
3393 (Vcharset_latin_viscii_upper): New variable.
3394 (latin_viscii_upper_to_ucs): New variable.
3395 (ucs_to_latin_viscii_upper): New variable.
3396 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3397 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3398 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3399 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3400 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3401 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3402 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3403 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3404 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3405 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3407 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3408 (Vcharset_latin_viscii_upper): New variable.
3409 (make_byte_from_character_table): New function.
3410 (put_byte_from_character_table): New function.
3411 (get_byte_from_character_table): New function.
3412 (CHAR96): New macro.
3413 (ucs_to_latin_jisx0201): New variable.
3414 (latin_jisx0201_to_ucs): New variable.
3415 (ucs_to_latin_iso8859_2): New variable.
3416 (latin_iso8859_2_to_ucs): New variable.
3417 (ucs_to_latin_iso8859_3): New variable.
3418 (latin_iso8859_3_to_ucs): New variable.
3419 (ucs_to_latin_iso8859_4): New variable.
3420 (latin_iso8859_4_to_ucs): New variable.
3421 (ucs_to_latin_iso8859_9): New variable.
3422 (latin_iso8859_9_to_ucs): New variable.
3423 (ucs_to_latin_viscii_lower): New variable.
3424 (latin_viscii_lower_to_ucs): New variable.
3425 (ucs_to_latin_viscii_upper): New variable.
3426 (latin_viscii_upper_to_ucs): New variable.
3427 (ucs_to_latin_tcvn5712): New variable.
3428 (latin_tcvn5712_to_ucs): New variable.
3429 (Qlatin_viscii_lower): New variable.
3430 (Qlatin_viscii_upper): New variable.
3431 (syms_of_mule_charset): Set up new symbol
3432 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3433 (complex_vars_of_mule_charset): Set up new charset
3434 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3435 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3436 `ucs_to_<CHARSET>' tables.
3438 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3440 * text-coding.c: New file.
3442 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3444 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3446 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3447 (MAKE_CHAR): Modify for `ucs-bmp'.
3448 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3449 non-MULE characters of BMP.
3451 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3453 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3456 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3459 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3460 - Include character.h for `CHAR_ASCII_P'.
3462 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3464 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3465 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3467 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3468 (BYTE_C0_P): Likewise.
3469 (BYTE_C1_P): Likewise.
3470 (Lstream_get_emchar_1): Likewise.
3471 (Lstream_fput_emchar): Likewise.
3472 (Lstream_funget_emchar): Likewise.
3473 (copy_internal_to_external): Likewise.
3474 (copy_external_to_internal): Likewise.
3476 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3477 (BYTE_C0_P): Likewise.
3478 (BYTE_C1_P): Likewise.
3479 (Lstream_get_emchar_1): Likewise.
3480 (Lstream_fput_emchar): Likewise.
3481 (Lstream_funget_emchar): Likewise.
3482 (copy_internal_to_external): Likewise.
3483 (copy_external_to_internal): Likewise.
3485 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3486 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3488 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3489 (BYTE_ASCII_P): Moved to mb-1byte.h.
3491 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3493 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3495 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3496 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3497 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3498 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3499 (VALIDATE_CHARPTR_FORWARD): Likewise.
3500 (simple_charptr_emchar): Moved to mb-multibyte.h.
3501 (simple_set_charptr_emchar): Likewise.
3502 (simple_charptr_copy_char): Likewise.
3503 (non_ascii_charptr_emchar): Likewise.
3504 (non_ascii_set_charptr_emchar): Likewise.
3505 (non_ascii_charptr_copy_char): Likewise.
3506 (charptr_emchar): Moved to mb-*byte.h.
3507 (set_charptr_emchar): Likewise.
3508 (charptr_copy_char): Likewise.
3510 * mb-1byte.h, mb-multibyte.h: New files.
3512 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3514 * mb-utf-8.h (MULTIBYTE): New macro.
3515 (MAX_EMCHAR_LEN): Moved from buffer.h.
3516 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3518 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3520 * mb-lb.h, multibyte.h: New files.
3522 * char-1byte.h (Charset_ID): Moved from buffer.h.
3523 (MIN_LEADING_BYTE): Likewise.
3524 (LEADING_BYTE_ASCII): Likewise.
3525 (NUM_LEADING_BYTES): Likewise.
3526 (CHARSETP): Likewise.
3527 (CHARSET_BY_LEADING_BYTE): Likewise.
3528 (XCHARSET_LEADING_BYTE): Likewise.
3529 (XCHARSET_GRAPHIC): Likewise.
3530 (XCHARSET_COLUMNS): Likewise.
3531 (XCHARSET_DIMENSION): Likewise.
3532 (CHAR_CHARSET): Likewise.
3533 (CHAR_LEADING_BYTE): Likewise.
3534 (BREAKUP_CHAR): Likewise.
3535 (Vcharset_ascii): Likewise.
3537 * buffer.h: Include multibyte.h unconditionally.
3538 (VALID_CHARPTR_P): Moved to multibyte.h.
3539 (ASSERT_VALID_CHARPTR): Likewise.
3540 (REAL_INC_CHARPTR): Likewise.
3541 (REAL_INC_CHARBYTIND): Likewise.
3542 (REAL_DEC_CHARPTR): Likewise.
3543 (INC_CHARPTR): Likewise.
3544 (INC_CHARBYTIND): Likewise.
3545 (DEC_CHARPTR): Likewise.
3546 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3547 (VALIDATE_CHARPTR_FORWARD): Likewise.
3548 (charptr_n_addr): Likewise.
3549 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3550 (simple_charptr_emchar): Moved to multibyte.h.
3551 (simple_set_charptr_emchar): Likewise.
3552 (simple_charptr_copy_char): Likewise.
3553 (non_ascii_charptr_emchar): Likewise.
3554 (non_ascii_set_charptr_emchar): Likewise.
3555 (non_ascii_charptr_copy_char): Likewise.
3556 (charptr_emchar): Likewise.
3557 (set_charptr_emchar): Likewise.
3558 (charptr_copy_char): Likewise.
3559 (charptr_emchar_n): Likewise.
3560 (Charset_ID): Moved to char-1byte.h.
3561 (Vcharset_ascii): Likewise.
3562 (CHAR_CHARSET): Likewise.
3563 (CHAR_LEADING_BYTE): Likewise.
3564 (LEADING_BYTE_ASCII): Likewise.
3565 (NUM_LEADING_BYTES): Likewise.
3566 (MIN_LEADING_BYTE): Likewise.
3567 (CHARSETP): Likewise.
3568 (CHARSET_BY_LEADING_BYTE): Likewise.
3569 (XCHARSET_LEADING_BYTE): Likewise.
3570 (XCHARSET_GRAPHIC): Likewise.
3571 (XCHARSET_COLUMNS): Likewise.
3572 (XCHARSET_DIMENSION): Likewise.
3573 (BREAKUP_CHAR): Likewise.
3575 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3577 * character.h: Add document about interface for characters.
3579 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3580 (MAKE_CHAR): Delete comment about
3581 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3582 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3583 (BREAKUP_CHAR): Modify name of arguments.
3584 (CHAR_CHARSET): Modify name of argument.
3586 * buffer.h: Delete document about Emchar accessors.
3588 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3590 * character.h (CHAR_INTP): Moved from buffer.h
3591 (CHAR_OR_CHAR_INTP): Likewise.
3592 (XCHAR_OR_CHAR_INT): Likewise.
3593 (CHECK_CHAR_COERCE_INT): Likewise.
3595 * buffer.h (CHAR_INTP): Moved to character.h
3596 (CHAR_OR_CHAR_INTP): Likewise.
3597 (XCHAR_OR_CHAR_INT): Likewise.
3598 (CHECK_CHAR_COERCE_INT): Likewise.
3600 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3603 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3604 - Include char-1byte.h, char-lb.h or char-ucs.h.
3606 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3608 * buffer.h: Include character unconditionally.
3609 (valid_char_p): Moved to char-*.h.
3610 (non_ascii_valid_char_p): Moved to char-lb.h.
3612 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3614 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3616 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3617 in UTF-2000 because it is not ported yet and not to use
3618 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3619 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3620 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3622 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3623 (CHAR_ASCII_P): Moved from character.h.
3625 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3626 (CHAR_ASCII_P): Likewise.
3627 (CHAR_FIELD1_MASK): Deleted.
3628 (CHAR_FIELD2_MASK): Deleted.
3629 (CHAR_FIELD3_MASK): Deleted.
3630 (MAX_CHAR_BASIC_LATIN): New macro.
3631 (CHAR_FIELD1): Deleted.
3632 (CHAR_FIELD2_INTERNAL): Deleted.
3633 (CHAR_FIELD3_INTERNAL): Deleted.
3634 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3635 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3636 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3637 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3638 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3639 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3640 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3641 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3642 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3643 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3644 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3645 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3646 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3647 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3648 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3649 (MIN_CHAR_COMPOSITION): Deleted.
3650 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3651 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3653 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
3655 * buffer.h: Include mb-utf-8.h in UTF-2000.
3657 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3659 * mb-utf-8.h: New file.
3661 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
3663 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3666 * mule-charset.h, buffer.h (Charset_ID): New type.
3668 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3670 * mule-canna.c (c2mu): Use `MAKE_CHAR',
3671 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3672 instead of `MULE_CHAR_PRIVATE_OFFSET',
3673 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3674 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3675 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3677 * character.h (Vcharset_japanese_jisx0212): New variable
3680 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3682 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3683 (charset_by_attributes): Delete array about direction.
3684 (latin_a_char_to_charset): New variable in UTF-2000.
3685 (latin_a_char_to_byte1): New variable in UTF-2000.
3686 (latin_a_char_to_byte2): New variable in UTF-2000.
3687 (Qucs_bmp): New variable.
3688 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3690 (next_allocated_2_byte_leading_byte): Likewise.
3691 (non_ascii_set_charptr_emchar): Likewise.
3692 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3693 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3694 `charset_by_attributes'.
3695 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3696 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3697 and `CHARSET_BY_LEADING_BYTE'.
3698 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3699 `utf-2000-version' to `vars_of_mule_charset'.
3700 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3701 define `leading-code-private-11' in UTF-2000; move setting of
3702 `utf-2000-version' from `syms_of_mule_charset'.
3703 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3706 * character.h (Charset_ID): New type.
3707 (LEADING_BYTE_UCS_BMP): New macro.
3708 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3709 (CHARSET_ID_OFFSET_94): New macro.
3710 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3711 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3712 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3714 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3715 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3716 (CHARSET_ID_OFFSET_96): New macro.
3717 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3718 CHARSET_ID_OFFSET_96 and final-byte.
3719 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3720 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3721 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3722 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3723 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3724 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3725 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3726 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3727 (LEADING_BYTE_THAI_TIS620): Likewise.
3728 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3729 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3730 (CHARSET_ID_OFFSET_94x94): New macro.
3731 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3732 CHARSET_ID_OFFSET_94x94 and final-byte.
3733 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3734 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3735 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3736 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3737 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3738 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3739 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3740 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3741 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3742 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3743 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3744 (CHARSET_TYPE_128X128): New macro.
3745 (CHARSET_TYPE_256X256): New macro.
3746 (XCHARSET_PRIVATE_P): Delete unconditionally.
3747 (charset_by_attributes): Delete array about direction.
3748 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3749 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3750 (MIN_CHAR_94): New macro.
3751 (MAX_CHAR_94): New macro.
3752 (MIN_CHAR_96): New macro.
3753 (MAX_CHAR_96): New macro.
3754 (MIN_CHAR_94x94): New macro.
3755 (MAX_CHAR_94x94): New macro.
3756 (MIN_CHAR_96x96): New macro.
3757 (MAX_CHAR_96x96): New macro.
3758 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3759 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3760 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3762 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3763 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3764 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3765 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3766 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3767 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3768 `XCHARSET_LEADING_BYTE' to make code-point.
3769 (latin_a_char_to_charset): New variable.
3770 (latin_a_char_to_byte1): New variable.
3771 (latin_a_char_to_byte2): New variable.
3772 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3773 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3774 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3776 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3777 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3778 (find_charsets_in_emchar_string): Likewise.
3779 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3781 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3783 (decode_coding_iso2022): Likewise.
3785 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3788 * redisplay.c (redisplay_text_width_emchar_string): Use
3789 `Charset_ID' instead of `unsigned char'.
3790 (redisplay_frame_text_width_string): Likewise.
3792 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3795 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3796 instead of `unsigned char'.
3797 (face_cachel_charset_font_metric_info): Likewise.
3799 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3800 (get_non_ascii_char_table_value): Likewise.
3801 (get_char_table): Likewise.
3802 (put_char_table): Likewise.
3803 (map_over_other_charset): Likewise.
3804 (map_char_table): Likewise.
3806 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3807 instead of `unsigned char'.
3809 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
3811 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3812 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3814 * mule-charset.c (leading_code_private_11): Don't define in
3817 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3818 in UTF-2000 because it is not ported yet and not to use
3819 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3821 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
3823 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3825 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3827 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3830 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3831 of unsigned char to store leading-byte.
3833 * chartab.c (get_non_ascii_char_table_value): Don't use
3834 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3836 * file-coding.c (encode_coding_big5): Delete bogus implementation
3839 * character.h (LEADING_BYTE_*): Delete definition for
3841 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3842 (LEADING_BYTE_PREFIX_P): Deleted.
3843 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3844 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3845 (BUFBYTE_LEADING_BYTE_P): Deleted.
3846 (CHARSET_PRIVATE_P): Deleted unconditionally.
3847 (rep_bytes_by_first_byte): Deleted unconditionally.
3848 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3849 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3850 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3851 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3852 (CHAR_FIELD2): Deleted.
3853 (CHAR_FIELD3): Deleted.
3854 (MAKE_CHAR): Delete definition for non-UTF-2000.
3855 (BREAKUP_CHAR_1_UNSAFE): Deleted.
3856 (breakup_char_1): New implementation.
3857 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3858 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3860 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3862 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3865 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3867 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3868 (CHARSET_PRIVATE_P): Likewise.
3869 (XCHARSET_PRIVATE_P): Likewise.
3870 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3872 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3874 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3876 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3878 * character.h (LEADING_BYTE_*): Changed in UTF2000.
3879 (NUM_LEADING_BYTES): Changed from 128 to 256.
3880 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3881 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3883 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3885 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3887 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3888 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3889 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3890 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3891 (Qchinese_cns11643_3): New variable in UTF2000.
3892 (Qchinese_cns11643_4): New variable in UTF2000.
3893 (Qchinese_cns11643_5): New variable in UTF2000.
3894 (Qchinese_cns11643_6): New variable in UTF2000.
3895 (Qchinese_cns11643_7): New variable in UTF2000.
3896 (syms_of_mule_charset): Define `chinese-cns11643-3',
3897 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3898 and `chinese-cns11643-7' in UTF2000.
3899 (vars_of_mule_charset): Initialize
3900 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3902 (complex_vars_of_mule_charset): Setup charset
3903 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3904 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3906 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3908 * mule-charset.c: Move setting for `leading-code-private-11' from
3909 `syms_of_mule_charset' to `vars_of_mule_charset'.
3911 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3913 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3914 and `NUM_LEADING_BYTES' in assert.
3916 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3918 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3920 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3921 `NUM_LEADING_BYTES' instead of 128.
3923 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3925 * mule-charset.h (charset_by_leading_byte): Use
3926 `NUM_LEADING_BYTES' instead of 128.
3927 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3929 * mule-charset.c (charset_by_leading_byte): Use
3930 `NUM_LEADING_BYTES' instead of 128.
3931 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3933 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3936 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3938 * mule-charset.c (syms_of_mule_charset): Update to
3941 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3943 * file-coding.c (encode_coding_sjis): New implementation for
3944 UTF2000. (decode_coding_sjis): Ditto.
3946 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3948 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3949 Don't define in UTF2000.
3951 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3954 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3955 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3958 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3960 * config.h.in (CHAR_IS_UCS4): New macro.
3962 * mule-charset.c (rep_bytes_by_first_byte): Modify for
3963 conventional MULE representation.
3964 (syms_of_mule_charset): Update to 0.3 (Imamiya).
3966 * mule-charset.h: Reverted to original.
3968 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3969 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3970 "mule-charset.h" if CHAR_IS_UCS4 is defined.
3972 * character.h: New file.
3974 * file-coding.c (Fmake_coding_system): Set 1 to
3975 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3977 (encode_coding_no_conversion): New implementation for UTF2000.
3979 * file-coding.h (struct Lisp_Coding_System): Add new member
3982 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
3984 * file-coding.c (decode_coding_iso2022): Code-point arguments of
3985 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3986 (encode_coding_iso2022): New implementation for UTF2000.
3988 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3990 * mule-canna.c (c2mu): New implementation for UTF2000.
3993 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3995 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3997 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3999 * file-coding.c (reset_encoding_stream): Set 0 to
4000 `str->iso2022.current_char_boundary' in UTF2000.
4001 (encode_utf8): Don't define in UTF2000.
4002 (encode_coding_utf8): New implementation for UTF-8 representation
4004 (complex_vars_of_file_coding): Define coding-system `utf-8'.
4006 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4008 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4010 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4012 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4014 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4016 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4017 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4018 as UTF-8 in UTF2000.
4019 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4020 (non_ascii_valid_char_p): Don't define in UTF2000.
4021 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4022 (Lstream_get_emchar_1): Likewise.
4023 (utf-2000-version): New variable in UTF2000.
4025 * lread.c (read_escape): Add new reader `u'.
4027 * insdel.c (three_to_one_table): Don't define in UTF2000.
4028 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4029 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4031 (bytind_to_bufpos_func): Likewise.
4032 (buffer_mule_signal_inserted_region): Likewise.
4033 (vars_of_insdel): Don't initialize `three_to_one_table'.
4034 (init_buffer_text): Use `buf->text->mule_size' instead of
4035 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4038 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4039 UTF-8 representation in UTF2000.
4040 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4041 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4042 (decode_coding_iso2022): Don't define local variable `lb' in
4043 UTF2000; don't use LEADING_BYTE in UTF2000; use
4044 `DECODE_ADD_UCS_CHAR' in UTF2000.
4045 (convert_to_external_format): Decode as UTF-8 in UTF2000.
4047 * config.h.in (UTF2000): New macro.
4049 * buffer.h (struct buffer_text): Add new member `mule_size' and
4050 don't add `mule_shifter' and `mule_three_p' in UTF2000.
4051 (valid_char_p): Return always 1 in UTF2000.
4052 (MAX_EMCHAR_LEN): 6 in UTF2000.
4053 (three_to_one_table): Don't define in UTF2000.
4054 (real_bufpos_to_bytind): Modify for UTF-8 representation in
4056 (real_bytind_to_bufpos): Likewise.
4058 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4060 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4062 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4063 representation change.
4064 (Vutf_2000_version): New variable.
4065 (leading_code_private_11): New variable.
4066 (syms_of_mule_charset): Add new variables `utf-2000-version' and
4067 `leading-code-private-11'.
4069 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4070 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4071 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4072 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4073 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4074 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4075 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4076 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4077 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4078 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4079 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4080 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4081 (MIN_CHAR_GREEK): New macro.
4082 (MAX_CHAR_GREEK): New macro.
4083 (MIN_CHAR_CYRILLIC): New macro.
4084 (MAX_CHAR_CYRILLIC): New macro.
4085 (MIN_CHAR_HEBREW): New macro.
4086 (MAX_CHAR_HEBREW): New macro.
4087 (MIN_CHAR_THAI): New macro.
4088 (MAX_CHAR_THAI): New macro.
4089 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4090 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4091 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4092 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4093 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4094 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4095 (CHAR_FIELD2): New inline function.
4096 (CHAR_FIELD3): New inline function.
4097 (MULE_CHAR_PRIVATE_OFFSET): New macro.
4098 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4099 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4100 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4101 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4102 (MIN_CHAR_COMPOSITION): Likewise.
4103 (CHAR_LEADING_BYTE): Modified for character representation change.
4104 (MAKE_CHAR): Likewise.
4106 * lisp.h (Vcharset_latin_iso8859_1): New variable.
4107 (Vcharset_greek_iso8859_7): Likewise.
4108 (Vcharset_cyrillic_iso8859_5): Likewise.
4109 (Vcharset_hebrew_iso8859_8): Likewise.
4110 (Vcharset_thai_tis620): Likewise.
4111 (Vcharset_katakana_jisx0201): Likewise.
4113 2001-02-08 Martin Buchholz <martin@xemacs.org>
4115 * XEmacs 21.2.44 "Thalia" is released.
4117 2001-02-06 Martin Buchholz <martin@xemacs.org>
4119 Fixes crashes in kill-emacs on some systems.
4120 * process-unix.c (unix_kill_child_process):
4121 It's OK for kill() to fail with ESRCH.
4123 2001-02-07 Martin Buchholz <martin@xemacs.org>
4125 Contortions to make .gdbinit tricks work on most systems.
4126 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4127 * alloc.c (dbg_valmask): Make non-const.
4128 * alloc.c (dbg_typemask): Make non-const.
4129 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4130 * alloc.c (dbg_valbits): Make non-const.
4131 * alloc.c (dbg_gctypebits): Make non-const.
4132 * .gdbinit (decode_object): Make it work with AIX cc.
4134 2001-02-06 Martin Buchholz <martin@xemacs.org>
4136 * elhash.c (make_general_lisp_hash_table):
4137 Use simpler and more efficient calloc to clear entries.
4139 2001-02-07 Martin Buchholz <martin@xemacs.org>
4141 * window.c (window_scroll): Work around an AIX C compiler bug.
4142 Fixes 'scroll-up' does nothing problem with xlC.
4144 2001-02-05 Martin Buchholz <martin@xemacs.org>
4146 * .gdbinit: Remove obsolete comment.
4148 2001-01-31 Mike Alexander <mta@arbortext.com>
4150 * select.c (Fown_selection_internal): Set owned_p for device
4153 2001-02-01 Martin Buchholz <martin@xemacs.org>
4156 "not" cannot be used as a macro name as it is an operator in C++
4157 * config.h.in: Stop #defining `not'.
4158 * chartab.c (check_category_char): not ==> not_p
4159 * chartab.h: Likewise.
4160 * regex.c (re_match_2_internal): Likewise.
4162 2001-02-02 Martin Buchholz <martin@xemacs.org>
4164 * lisp-disunion.h: Fix up comments.
4166 2001-01-31 Martin Buchholz <martin@xemacs.org>
4168 * keymap.c (define_key_check_and_coerce_keysym):
4170 Support mouse-6 and mouse-7 bindings in the obvious way.
4172 2001-02-01 Martin Buchholz <martin@xemacs.org>
4174 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4176 2001-01-30 Martin Buchholz <martin@xemacs.org>
4178 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4179 Previous patch missed DEFVAR_INT_MAGIC.
4180 Make sure future DEFVAR_foo use correct types.
4181 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4182 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4183 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4184 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4185 * (DEFVAR_INT): Likewise.
4186 * redisplay.c (vertical_clip): Should be of type Fixnum.
4187 * redisplay.c (horizontal_clip): Likewise.
4188 * lisp.h (dump_add_opaque_int): New.
4189 (dump_add_opaque_fixnum): New.
4191 2001-01-29 Andy Piper <andy@xemacs.org>
4193 * glyphs-widget.c (check_valid_int_or_function): allow symbols
4194 since they can be eval'ed
4196 2001-01-29 Martin Buchholz <martin@xemacs.org>
4198 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4199 Oops, XEmacs redefines `class'. Use `typename' instead.
4201 2001-01-28 Martin Buchholz <martin@xemacs.org>
4203 * dumper.c: Fix C++ compile errors.
4205 2001-01-29 Martin Buchholz <martin@xemacs.org>
4207 * tparam.c: Use correct prototypes.
4209 2001-01-28 Martin Buchholz <martin@xemacs.org>
4211 * sysproc.h: #include util.h for NetBSD's openpty.
4213 2001-01-27 Martin Buchholz <martin@xemacs.org>
4215 More 64-bit correctness.
4216 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4217 Use a typedef `fixnum' for the type used for DEFVAR_INT.
4219 This finally finishes the 64-bit SGI port.
4220 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4221 * symbols.c: Fix up comments and type casts.
4222 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4223 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4224 * symeval.h (Fixnum): New type.
4225 * symeval.h (symbol_value_type): Fix up comment.
4241 * mule-canna.c: A million DEFVAR_INTs here...
4242 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4255 s/int/Fixnum/g in DEFVAR_INT declarations.
4257 2001-01-26 Martin Buchholz <martin@xemacs.org>
4259 Port pdump to SGI alignment-sensitive environment.
4260 Lisp Object sizeof methods now return aligned sizes. Rely on that.
4261 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4263 Define and use aligned reading and writing macros.
4264 Use buffered stdio instead of posix i/o for faster dumping.
4265 Eliminate kludgy 256 byte space for header.
4266 Read and write from dump file using structs for alignment safety.
4267 * dumper.c (pdump_align_stream): New.
4268 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4269 * dumper.c (PDUMP_READ_ALIGNED): New.
4270 * dumper.c (PDUMP_WRITE_ALIGNED): New.
4271 * dumper.c (pdump_static_Lisp_Object): New struct.
4272 * dumper.c (pdump_static_pointer): New struct.
4273 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4274 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4275 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4276 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4278 * dumper.c (pdump_backtrace):
4279 * dumper.c (pdump_get_indirect_count):
4280 * dumper.c (pdump_register_object):
4281 * dumper.c (pdump_register_struct):
4282 * dumper.c (pdump_reloc_one):
4283 * dumper.c (pdump_scan_by_alignment):
4284 * dumper.c (pdump_dump_from_root_struct_ptrs):
4285 * dumper.c (pdump_dump_opaques):
4286 * dumper.c (pdump_dump_rtables):
4287 * dumper.c (pdump_dump_from_root_objects):
4289 * dumper.c (pdump_load_finish):
4290 Use aligned reading and writing.
4292 * dumper.c (pdump_free): Make static.
4293 * dumper.c (pdump_hFile): Likewise.
4294 * dumper.c (pdump_hMap): Likewise.
4296 2001-01-26 Martin Buchholz <martin@xemacs.org>
4298 * XEmacs 21.2.43 "Terspichore" is released.
4300 2001-01-25 Martin Buchholz <martin@xemacs.org>
4302 Type fiddling for window_config.saved_windows_count
4303 * window.c (struct window_config):
4304 Make saved_windows_count member unsigned.
4305 * window.c (sizeof_window_config_for_n_windows):
4306 Make parameter unsigned.
4307 * window.c (mark_window_config):
4308 * window.c (window_config_equal):
4309 * window.c (free_window_configuration):
4310 * window.c (Fset_window_configuration):
4311 * window.c (count_windows):
4312 * window.c (Fcurrent_window_configuration):
4313 * window.c (reinit_vars_of_window):
4314 Update all callers and users.
4316 2001-01-25 Martin Buchholz <martin@xemacs.org>
4318 Alignment correctness for flexible arrays.
4319 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4320 Make alignment-correct. Add interesting comments.
4321 * alloc.c (size_vector):
4322 * alloc.c (make_vector_internal):
4323 * alloc.c (make_bit_vector_internal):
4324 * alloc.c (sweep_bit_vectors_1):
4325 * fns.c (size_bit_vector):
4326 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4327 * window.c (sizeof_window_config_for_n_windows):
4328 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4330 2001-01-24 Martin Buchholz <martin@xemacs.org>
4332 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4334 2001-01-23 Andy Piper <andy@xemacs.org>
4336 * select.c (Fown_selection_internal): pass owned_p
4338 * select-msw.c (mswindows_own_selection): New Signature.
4340 * console.h (struct console_methods): add owned_p to
4343 * select-x.c (x_own_selection): pass owned_p
4344 (hack_motif_clipboard_selection): use owned_p
4345 (vars_of_select_x): new variable -
4346 x_selection_strict_motif_ownership.
4348 2001-01-23 Martin Buchholz <martin@xemacs.org>
4350 * specifier.h (specifier_data_offset): Remove pointless parens.
4351 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4353 2001-01-24 Martin Buchholz <martin@xemacs.org>
4355 Make Lisp_Object sizeof methods be alignment-correct.
4356 pdump must restore objects to the same alignment as the C compiler
4357 assumes. It really matters on SGIs.
4358 * lstream.c (aligned_sizeof_lstream): New.
4359 (sizeof_lstream): Use aligned_sizeof_lstream.
4360 (Lstream_new): Likewise.
4361 * opaque.c (aligned_sizeof_opaque): New.
4362 (sizeof_opaque): Use aligned_sizeof_opaque.
4363 (make_opaque): Likewise.
4364 * specifier.c (aligned_sizeof_specifier): New.
4365 (sizeof_specifier): Use aligned_sizeof_specifier.
4366 (make_specifier_internal): Likewise.
4368 2001-01-23 Martin Buchholz <martin@xemacs.org>
4370 * lstream.h (struct lstream): Use max_align_t for trailing data.
4371 * specifier.h (struct Lisp_Specifier): Likewise.
4373 2001-01-22 Martin Buchholz <martin@xemacs.org>
4375 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4376 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4377 (CCL_SUSPEND): Likewise.
4378 (CCL_INVALID_CMD): Likewise.
4379 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4380 (ccl_driver): Likewise.
4381 (CCL_WRITE_CHAR): Macro hygiene.
4382 (CCL_WRITE_STRING): Macro hygiene.
4384 2001-01-22 Martin Buchholz <martin@xemacs.org>
4386 Port "portable" dumper to SunOS 4 and HP-UX.
4387 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4388 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4389 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4391 2001-01-22 Martin Buchholz <martin@xemacs.org>
4393 * lisp.h (ALIGNOF): A better definition for C++.
4395 2001-01-20 Martin Buchholz <martin@xemacs.org>
4398 Fix printf warnings: int format, long int arg.
4399 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4400 (PUSH_FAILURE_POINT): Use correct printf formats.
4401 (POP_FAILURE_POINT): Use correct printf formats.
4402 Use do {...} while (0)
4404 2001-01-20 Martin Buchholz <martin@xemacs.org>
4406 * XEmacs 21.2.42 "Poseidon" is released.
4408 2001-01-20 Martin Buchholz <martin@xemacs.org>
4410 * console-x.h: typo fix du jour. Remove #if 0'ed code.
4412 2001-01-19 Martin Buchholz <martin@xemacs.org>
4414 De-kludgify FIXED_TYPE free list frobbing.
4415 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4416 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4417 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4418 * alloc.c (Lisp_Free): New pseudo lisp object definition.
4419 * alloc.c (LRECORD_FREE_P): New.
4420 * alloc.c (MARK_LRECORD_AS_FREE): New.
4421 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4422 * alloc.c (STRUCT_FREE_P): Deleted.
4423 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4424 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4425 * alloc.c (STRING_CHARS_FREE_P): New.
4426 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4427 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4428 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4429 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4430 * alloc.c (resize_string): Use new definitions.
4431 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4432 * alloc.c (verify_string_chars_integrity): Use new definitions.
4433 * alloc.c (compact_string_chars): Use new definitions.
4434 * alloc.c: Update monster comments.
4435 * lrecord.h (lrecord_type): Add some new lrecord types for
4438 2001-01-18 Martin Buchholz <martin@xemacs.org>
4440 Improve alignment hackery.
4441 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4442 (max_align_t): Moved from opaque.h - general purpose.
4443 (ALIGN_PTR): Use size_t, not long.
4444 * opaque.h (max_align_t): Move to lisp.h.
4446 2001-01-18 Norbert Koch <nk@LF.net>
4448 * gui.h: Fix and add prototypes to fix build problems.
4450 2001-01-18 Martin Buchholz <martin@xemacs.org>
4452 temacs is going away, so `dump-temacs' is now a bad name.
4453 * .dbxrc (dump-temacs): Rename to `dmp'.
4454 * .gdbinit (dump-temacs): Rename to `dmp'.
4456 2001-01-17 Andy Piper <andy@xemacs.org>
4458 * glyphs.c (print_image_instance): comment to make martin happy.
4460 * glyphs-x.c (x_redisplay_widget): update faces after a frame
4463 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4465 (mswindows_tab_control_redisplay): warning suppression.
4467 * glyphs-widget.c (widget_update): re-write to cope with updated
4469 (widget_instantiate): use new gui_item functions.
4470 (tab_control_update): deleted.
4471 (progress_gauge_update): deleted.
4472 (image_instantiator_progress_guage): take out update reference.
4473 (image_instantiator_tree_view): ditto.
4474 (image_instantiator_tab_control): ditto.
4476 * gui.c (widget_gui_parse_item_keywords): new function. Do things
4478 (gui_item_add_keyval_pair): re-write to cope with descriptors and
4479 return whether anything was changed.
4480 (update_gui_item_keywords): as it sounds.
4482 * gui.h: declare widget_gui_parse_item_keywords.
4484 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4485 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4487 2001-01-17 Martin Buchholz <martin@xemacs.org>
4489 * XEmacs 21.2.41 "Polyhymnia" is released.
4491 2001-01-16 Didier Verna <didier@xemacs.org>
4493 * glyphs.c (image_instantiate): don't use fallbacks when
4494 instantiating a face's background pixmap by inheritance.
4496 2001-01-14 Mike Sperber <mike@xemacs.org>
4498 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4499 Conditionalize accordingly.
4501 2001-01-16 Martin Buchholz <martin@xemacs.org>
4503 * dumper.c (pdump_file_get): Fix a compiler warning.
4505 2001-01-15 Martin Buchholz <martin@xemacs.org>
4507 Make Purify happy when pdumping.
4508 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4509 iniitalizing all bits of new lisp object memory.
4510 * symbols.c (Fmake_local_variable): Likewise.
4511 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4512 * symbols.c (Fdefvaralias): Likewise.
4513 * mule-charset.c (vars_of_mule_charset): Likewise.
4515 2001-01-15 Martin Buchholz <martin@xemacs.org>
4516 Add the `-nd' flag when running pre-dump operations under the debugger.
4517 * .dbxrc (run-temacs): Add `-nd'.
4518 * .dbxrc (update-elc): Likewise.
4519 * .dbxrc (dump-temacs): Likewise.
4520 * .gdbinit (run-temacs): Likewise.
4521 * .gdbinit (check-temacs): Likewise.
4522 * .gdbinit (update-elc): Likewise.
4523 * .gdbinit (dump-temacs): Likewise.
4525 2001-01-14 Martin Buchholz <martin@xemacs.org>
4527 Allow building 64-bit executables on AIX with GNU malloc, e.g.
4528 export OBJECT_MODE=64
4529 configure --pdump --use-union-type=no
4530 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4531 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4533 * miscplay.c (sndcnv8U_2mono):
4534 Avoid two uses of `++' in the same expression.
4535 Suppresses a GCC warning.
4537 2001-01-13 Martin Buchholz <martin@xemacs.org>
4539 Make sure future compilers don't miscompile alloc.c.
4541 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4542 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4544 2001-01-12 Martin Buchholz <martin@xemacs.org>
4546 * dumper.c: A little post-pdump-rename comment fixup.
4548 2001-01-09 Jerry James <james@eecs.ku.edu>
4550 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4552 2001-01-13 Martin Buchholz <martin@xemacs.org>
4554 * *.[ch]: Globally rename symbols using the following `pdump-rename'
4558 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4561 replace_symbol pdump_wire_lists pdump_weak_object_chains
4562 replace_symbol pdump_wire_list dump_add_weak_object_chain
4564 replace_symbol pdump_wires pdump_root_objects
4565 replace_symbol pdump_wire dump_add_root_object
4567 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4568 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4570 replace_symbol dumpstructinfos pdump_root_struct_ptrs
4571 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4572 replace_symbol dumpstructinfo pdump_root_struct_ptr
4573 replace_symbol dumpstruct dump_add_root_struct_ptr
4575 replace_symbol dumpopaque dump_add_opaque
4576 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4577 replace_symbol dumpopaqueinfos pdump_opaques
4578 replace_symbol dumpopaqueinfo pdump_opaque
4580 replace_symbol nb_structdump nb_root_struct_ptrs
4581 replace_symbol nb_opaquedump nb_opaques
4583 replace_symbol align_table pdump_align_table
4584 replace_symbol dump_header pdump_header
4586 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4587 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4590 2001-01-12 Martin Buchholz <martin@xemacs.org>
4592 * s/aix4.h: Keep the C for AIX compiler from overaggressively
4593 optimizing bytecount_to_charcount().
4595 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4598 (HAVE_DLFCN_H): Removed.
4599 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4601 2001-01-06 Martin Buchholz <martin@xemacs.org>
4603 Portable dumper maintainability improvements.
4604 * alloc.c (staticpro):
4605 * alloc.c (staticpro_nodump):
4606 * alloc.c (garbage_collect_1):
4607 * alloc.c (reinit_alloc_once_early):
4608 * alloc.c (init_alloc_once_early):
4609 * alloc.c: Move dumper functions to alloc.c.
4610 * dumper.c (pdump_backtrace):
4611 * dumper.c (pdump_dump_structs):
4612 * dumper.c (pdump_dump_opaques):
4613 * dumper.c (pdump_dump_rtables):
4614 * dumper.c (pdump_dump_wired):
4616 * dumper.c (pdump_load_check):
4617 * dumper.c (pdump_load_finish):
4618 * dumper.c (pdump_file_unmap):
4619 * dumper.c (pdump_file_get):
4620 * dumper.c (pdump_resource_free):
4621 * dumper.c (pdump_resource_get):
4622 * dumper.c (pdump_file_free):
4623 * dumper.c (pdump_file_try):
4624 * dumper.c (pdump_load):
4625 Remove fixed size limits on staticpro(), staticpro_nodump(),
4626 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4627 Remove custom code for dumping lrecord_implementations_table - use
4629 Remove (most of the) custom code for dumping staticpros - dump it
4630 like any other dynarr.
4632 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
4633 * dumper.c: Moved functions from alloc.c.
4634 * alloc.c (dumpstruct): Moved to dumper.c.
4635 * alloc.c (dumpopaque): Likewise.
4636 * alloc.c (pdump_wire): Likewise.
4637 * alloc.c (pdump_wire_list): Likewise.
4639 * lisp.h (Dynarr_sizeof): New.
4640 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
4641 * lisp.h (Dynarr_end): New. Very slightly C++oid.
4642 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
4644 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4645 * lisp.h (dumpopaque): ditto.
4646 * lisp.h (pdump_wire): ditto.
4647 * lisp.h (pdump_wire_list): ditto.
4649 2001-01-09 Martin Buchholz <martin@xemacs.org>
4651 * make-src-depend (PrintPatternDeps):
4652 Use `sort' to make output independent of perl version.
4654 2001-01-08 Martin Buchholz <martin@xemacs.org>
4657 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4658 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4660 2001-01-03 Didier Verna <didier@xemacs.org>
4662 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4663 that `focus_frame' is alive before thinking of calling
4664 `redisplay_redraw_cursor' on it.
4666 2001-01-08 Martin Buchholz <martin@xemacs.org>
4668 * XEmacs 21.2.40 is released.
4670 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4672 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4674 2001-01-06 Martin Buchholz <martin@xemacs.org>
4676 * alloc.c (dbg_valmask): Make const.
4677 * alloc.c (dbg_typemask): Make const.
4678 * alloc.c (dbg_USE_UNION_TYPE): Make const.
4679 * alloc.c (dbg_valbits): Make const.
4680 * alloc.c (dbg_gctypebits): Make const.
4682 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
4684 * redisplay-x.c (x_bevel_area):
4685 redisplay.h (struct rune):
4686 Typo fixes in comments.
4688 2001-01-05 Andy Piper <andy@xemacs.org>
4690 * glyphs-x.c (x_redisplay_widget): use size changed for offset
4693 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4695 2001-01-05 Martin Buchholz <martin@xemacs.org>
4697 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4699 * mule-ccl.c (stack_idx_of_map_multiple):
4700 Non const global data must not be initialized!
4701 Found by MIYASHITA Hisashi.
4703 2001-01-02 Andy Piper <andy@xemacs.org>
4705 * frame.c (change_frame_size): make sure frame size is always
4708 * glyphs.c (image_instance_layout): minor code reuse.
4710 * window.c (Fcurrent_window_configuration): revert previous
4713 2001-01-02 Martin Buchholz <martin@xemacs.org>
4716 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4718 2000-12-31 Andy Piper <andy@xemacs.org>
4720 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4721 when widget gets unmapped.
4723 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4724 function. Make sure widgets losing focus don't just drop it.
4725 (handle_focus_event_1): record the widget with focus.
4727 2000-12-31 Andy Piper <andy@xemacs.org>
4729 * window.c (allocate_window): use
4730 make_image_instance_cache_hash_table.
4731 (make_dummy_parent): ditto.
4732 (Fset_window_configuration): ditto.
4734 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
4736 * glyphs.c (process_image_string_instantiator): use
4738 (get_image_instantiator_governing_domain): ditto.
4739 (normalize_image_instantiator): ditto.
4740 (instantiate_image_instantiator): ditto.
4741 (make_image_instance_1): ditto.
4742 (image_instantiate): ditto. Key on glyph *and* instantiator type.
4743 (instantiator_eq_equal): new function for use with instance hash
4745 (instantiator_eq_hash): ditto.
4746 (make_image_instance_cache_hash_table): create a suitable hash
4747 table for storing image instances.
4749 * elhash.h (hash_table_weakness): new internal weakness type
4750 HASH_TABLE_KEY_CAR_VALUE_WEAK.
4751 declare new functions.
4753 * elhash.c (finish_marking_weak_hash_tables): introduce yet
4754 another weakness type for glyphs.
4755 (make_standard_lisp_hash_table): new function split out from
4756 make_general_lisp_hash_table.
4757 (make_lisp_hash_table): call make_standard_lisp_hash_table.
4758 (hash_table_instantiate): ditto.
4759 (Fmake_hash_table): ditto.
4761 2000-12-31 Martin Buchholz <martin@xemacs.org>
4763 * XEmacs 21.2.39 is released.
4765 2000-12-29 Andy Piper <andy@xemacs.org>
4767 * menubar.c (menubar_visible_p_changed): signal the frame changed.
4769 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4770 the frame has changed so that we pick up geometry changes such as
4773 2000-12-28 Andy Piper <andy@xemacs.org>
4775 * lastfile.c (my_ebss): make a char array so we can pad the
4776 bss. Fixes cygwin unexec.
4778 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4780 2000-12-26 Andy Piper <andy@xemacs.org>
4782 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4783 comments and try and be more precise about a non-/SIGIO world.
4784 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4787 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4788 we don't normalize to zero width or height.
4790 2000-12-24 Andy Piper <andy@xemacs.org>
4792 * Makefile.in.in (ldflags): add -mwindows when appropriate.
4794 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
4796 * s/sco5.h: SCO 5 has pty support.
4798 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
4800 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4801 input-method-xlib.c contains whole contents of input-method-xfs.c,
4802 so we can use input-method-xlib.c's code for USE_XFONTSET
4804 * input-method-xfs.c: removed.
4806 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
4808 * file-coding.h (enum coding_category_type): reorder enumerators to
4809 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
4810 (now one greater than largest real coding_category_type enumerator).
4811 * file-coding.c (coding_category_symbol, coding_category_by_priority,
4812 coding_category_system, fcd_descriptihon_1, decode_coding_category,
4813 Fcoding_category_list, Fset_coding_priority_list,
4814 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4815 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4817 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4819 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4820 * redisplay-output.c (redisplay_output_window): Clear top of window
4821 when face is changed.
4822 * redisplay-x.c (x_redraw_exposed_window): Call
4823 redisplay_clear_top_of_window.
4824 * redisplay.h: Publish redisplay_clear_top_of_window.
4826 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4828 * buffer.c (Fkill_buffer): Map over all devices.
4829 * window.c (window_loop): Remove UNSHOW_BUFFER code.
4830 (list_windows): New function.
4831 (list_all_windows): Ditto.
4832 (Freplace_buffer_in_windows): Use them.
4834 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4836 * database.c (berkdb_subtype): Recognize new subtype `queue'.
4837 (Fopen_database): Use `db_create' instead of `db_open'.
4838 (syms_of_database): Initialize Qqueue.
4840 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4842 * buffer.c (common_init_complex_vars_of_buffer): Initialize
4843 buffer_local_face_property.
4844 * buffer.h (struct buffer): New member buffer_local_face_property.
4845 * window.c (Fset_window_buffer): Mark window's face as changed
4846 when buffer has buffer local face.
4847 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4848 * objects.c (color_after_change): Set buffer_local_face_property
4849 when locale of face specifier is buffer.
4850 * objects.c (font_after_change): Ditto.
4851 * objects.c (face_boolean_after_change): Ditto.
4852 * glyphs.c (image_after_change): Ditto.
4854 2000-12-09 Dan Holmsand <dan@eyebee.com>
4856 * nt.c (mswindows_fstat): Report file permissions, volume serial
4857 number, etc. Code adapted from FSF Emacs 20.7.
4859 2000-12-09 Dan Holmsand <dan@eyebee.com>
4861 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4862 of stat when we don't have symbolic links, to make sure
4863 mswindows_stat is called on mswindows.
4865 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
4867 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4869 2000-12-12 Martin Buchholz <martin@xemacs.org>
4871 * doprnt.c (emacs_doprnt_1): More printing fixes.
4872 Make printing of numbers compatible with libc and FSF Emacs.
4873 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4874 Use the system printf to do most of the hard work of formatting,
4875 instead of doprnt_1().
4876 Calculate memory to allocate for format string.
4877 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4878 (doprnt_1): Cleaner code and documentation.
4880 2000-12-01 Jerry James <james@eecs.ukans.edu>
4882 * Makefile.in.in: Use the loop variable to install headers.
4884 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4886 * window.c (Fsplit_window): Don't invalidate face cache.
4888 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4890 * minibuf.c (Fall_completions): Undo the previous change
4891 which removed checking elements start with space.
4893 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4895 * mule-canna.c: Didier suppression.
4897 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4899 * mule-canna.c: rename static unsigned char buf[] to key_buffer
4900 (warning suppression). Add English comment translations.
4902 2000-12-05 Martin Buchholz <martin@xemacs.org>
4904 * unexelfsgi.c (unexec): Better test for mmap failure.
4906 2000-12-05 Martin Buchholz <martin@xemacs.org>
4908 * XEmacs 21.2.38 is released.
4910 2000-12-05 Martin Buchholz <martin@xemacs.org>
4912 * redisplay.c (bar-cursor): Make a user variable.
4914 * symsinit.h: Add init_postgresql_from_environment.
4916 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4918 * regex.c: Convert to clean C.
4920 2000-12-05 Dan Holmsand <dan@eyebee.com>
4923 Don't #include sysfile.h. Revert to duplicating PATH_MAX
4925 (sys_readlink): renamed to system_readlink to avoid conflict with
4926 the other sys_readlink.
4928 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
4930 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4932 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
4934 * postgresql.c (init_postgresql_from_environment): new function.
4935 (vars_of_postgresql): Move code initializing Lisp variables out and
4936 into init_postgresql_from_environment.
4937 emacs.c (main_1): Call init_postgresql_from_environment if and only
4938 if running a dumped XEmacs.
4940 2000-08-31 Dan Holmsand <dan@eyebee.com>
4942 * buffer.c: Make find-file-compare-truenames default to true on
4945 * realpath.c (win32_abs_start):
4947 (win32_readlink): New functions.
4948 (xrealpath): Return really real filenames on windows.
4950 * fileio.c (Ffile_truename): Make file-truename work on windows.
4952 2000-11-29 Didier Verna <didier@xemacs.org>
4954 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4955 * faces.c (update_face_cachel_data): use it.
4956 * faces.c (add_face_cachel): use it. Complete background pixmap
4957 frobbing in face cache if `update_face_cachel_data' has not done so.
4959 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
4961 * search.c (string_match_1): Don't set last_thing_searched
4964 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
4966 * buffer.c: Include casetab.h
4967 (common_init_complex_vars_of_buffer): Use new case-table object.
4968 * buffer.h: Include casetab.h
4969 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4970 (DOWNCASE_TABLE_OF): Ditto.
4971 * bufslots.h: Remove char-tables and add case-table.
4972 * casetab.c: Include casetab.h
4973 (CASE_TABLE_P): Removed.
4974 (mark_case_table): New function.
4975 (allocate_case_table): New function.
4976 (Fcase_table_p): Use new case-table.
4977 (case_table_char): New function.
4978 (Fget_case_table): Ditto.
4979 (Fput_case_table): Ditto.
4980 (Fput_case_table_pair): Ditto.
4981 (Fcopy_case_table): Ditto.
4982 (Fcurrent_case_table): Return case-table.
4983 (Fstandard_case_table): Return case-table.
4984 (Fset_case_table): Fix doc-string.
4985 (set_case_table): Use case-table
4986 (syms_of_casetab): DEFSUBR new functions.
4987 (complex_vars_of_casetab): Set up standard case-table.
4988 * casetab.h: New file.
4989 * editfns.c: Include casetab.h
4990 (Fcompare_buffer_substrings): Use case-table.
4991 * inline.c: Include casetab.h
4992 * lisp.h: Remove bogus extern.
4993 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4994 * search.c: Include casetab.h
4995 (TRANSLATE_ASCII): Removed.
4996 (TRANSLATE): Unconditionally translate character.
4997 (looking_at_1): Use case-table.
4998 (string_match_1): Ditto.
4999 (fast_string_match): Ditto.
5000 (search_command): Ditto.
5001 (search_buffer): Separate boyer_moore. Check whether
5002 boyer_moore is possible.
5003 (simple_search): New function.
5004 (boyer_moore): Separated from search_buffer. Translate char.
5006 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
5008 * regex.c (RE_TR_ASCII): Removed.
5009 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5010 (PATFETCH): Call PATFETCH_RAW.
5011 (PATFETCH_RAW): Fetch Emchar.
5012 (PATUNFETCH): Decrement charptr.
5013 (GET_BUFFER_SPACE): Rename b to buf_end.
5015 (BUF_PUSH_2): Ditto.
5016 (BUF_PUSH_3): Ditto.
5017 (EXTEND_BUFFER): Ditto.
5018 (SET_LIST_BIT): Ditto.
5019 (regex_compile): Ditto. Translate non ASCII char.
5020 (compile_range): Ditto.
5021 (re_search_2): Ditto.
5022 (re_match_2_internal): Compare Emchar.
5023 (bcmp_translate): Ditto.
5025 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
5027 * lisp.h (basic char/int typedefs): comment improvement.
5029 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
5031 * emacs.c (main_1): unconditional pdump unstomping; don't save and
5032 unstomp inhibit_site_lisp. Improve comments.
5034 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
5036 * mule-charset.c (Fcharset_property): improve type checking, comments.
5038 2000-11-28 Andy Piper <andy@xemacs.org>
5040 * redisplay-output.c (redisplay_output_subwindow): make sure we do
5041 clipped display for windows in the gutter also.
5042 (redisplay_display_boxes_in_window_p): change semantics of return
5043 codes to be more intuitive.
5045 * gutter.h: declare display_boxes_in_gutter_p.
5047 * gutter.c (display_boxes_in_gutter_p): new function for
5050 2000-11-22 Andy Piper <andy@xemacs.org>
5052 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5055 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
5057 * callproc.c (Fold_call_process_internal):
5058 * gpm.c (Freceive_gpm_event):
5059 (tty_get_foreign_selection): Might be just warning supression.
5060 * fileio.c (Fwrite_region_internal):
5061 (Fset_visited_file_modtime):
5062 * keymap.c (event_matches_key_specifier_p):
5063 Initialize GCPROed variable.
5065 * menubar-x.c (command_builder_find_menu_accelerator):
5066 Initialize before use.
5068 2000-11-23 Andy Piper <andy@xemacs.org>
5070 * unexcw.c (unexec): make the resulting executable executable.
5072 2000-11-21 Martin Buchholz <martin@xemacs.org>
5074 * doc.c (get_doc_string):
5075 Use size_t, not int, for result of XSTRING_LENGTH.
5077 * cmds.c (Fdelete_char):
5078 * cmds.c (Fpoint_at_eol):
5079 * cmds.c (Fself_insert_command):
5080 Use EMACS_INT, not int, for result of XINT.
5081 Someday, someone will want to insert more than 2**31 identical characters.
5083 * cmds.c (Fdelete_char):
5084 * cmds.c (Fdelete_backward_char):
5085 * syntax.c (Fforward_word):
5086 * syntax.c (Fforward_comment):
5087 Make COUNT argument optional, for consistency with forward-char et al.
5089 2000-11-22 Martin Buchholz <martin@xemacs.org>
5092 * print.c (long_to_string):
5093 Return a useful value: the pointer at end of data written.
5096 Use `static const char * const' for constant strings.
5097 (union printf_arg): Delete `i', `ui' members.
5100 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5101 Do all printf-ing via the `l' specifier.
5102 Use EMACS_INT instead of int.
5105 2000-11-20 Didier Verna <didier@xemacs.org>
5107 * faces.c (update_face_cachel_data): don't frob the background
5108 pixmap when the window is being created. The face is needed but
5111 2000-11-20 Andy Piper <andy@xemacs.org>
5113 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5114 messing with a debug environment.
5116 2000-11-20 Martin Buchholz <martin@xemacs.org>
5118 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5120 2000-11-20 Martin Buchholz <martin@xemacs.org>
5122 * casetab.c (Fcase_table_p): Fix compile error and crash.
5124 2000-11-18 Philip Aston <philipa@mail.com>
5126 * s/cygwin32.h: Cygwin has SVR4-like pty support.
5128 2000-11-18 Martin Buchholz <martin@xemacs.org>
5130 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
5131 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5133 2000-11-17 Martin Buchholz <martin@xemacs.org>
5135 * config.h.in: Define HAVE_ELF_H if elf.h exists.
5136 * unexelf.c: Use HAVE_ELF_H.
5137 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5138 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5139 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5140 Greg Harrington <greg_harrington@hotmail.com> provided a machine
5142 So this is an unexelfsgi.c from a different line of development.
5144 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5146 * regex.c (RE_TR_ASCII): New function.
5147 (RE_TRANSLATE): Call it.
5149 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5151 * buffer.h (TRT_TABLE_OF): Remove assert.
5152 (IN_TRT_TABLE_DOMAIN): Removed.
5154 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
5156 * free-hook.c (log_gcpro):
5157 (show_gcprohist): Add support for GCPRO5.
5159 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
5161 * emacs.c (main_1): Improve -sd error message when --pdump=no.
5163 2000-11-16 Olivier Galibert <galibert@xemacs.org>
5165 * symeval.h: Declare flush_all_buffer_local_cache.
5167 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5168 (flush_buffer_local_cache): Added.
5169 (flush_all_buffer_local_cache): Added.
5171 * lrecord.h: Remove unused XD_LO_RESET_NIL.
5173 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5174 (pdump_dump_data): Ditto.
5175 (pdump_reloc_one): Ditto.
5176 (pdump): Remove unused pdump_qnil. Flush buffer local caches
5180 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5182 * buffer.c: Remove if 0'ed entry.
5183 * buffer.h: Rewrite TRT to use char-table.
5184 * bufslots.h: Remove mirror tables.
5185 * casetab.c: Remove mirror tables.
5186 (CASE_TABLE_P): New macro.
5187 (Fcase_table_p): Element of a case table is string or char-table.
5188 (make_mirror_trt_table): Removed.
5189 (set_case_table): Setup char-table from strings for backward
5191 * dired.c (Fdirectory_files):
5192 * dired-msw.c: (mswindows_get_files):
5193 * lisp.h: Change prototype of re_pattern_buffer.
5194 * regex.c: (RE_TRANSLATE): New macro.
5195 (TRANSLATE_P): Ditto.
5196 Change translate to type RE_TRANSLATE_TYPE.
5197 * regex.h: Define RE_TRANSLATE_TYPE
5198 * search.c (TRANSLATE): New macro.
5199 (TRANSLATE_ASCII): New macro.
5200 Translate table is changed to Lisp_Object.
5201 (signal_failure): Inhibit return.
5203 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5210 Do UNGCPRO before return.
5212 2000-11-14 Martin Buchholz <martin@xemacs.org>
5214 * XEmacs 21.2.37 is released.
5216 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
5218 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5219 Add comments about discarded return value.
5221 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5224 * event-stream.c: Fix comments. Remove some #if 0'ed part.
5226 2000-10-27 Andy Piper <andy@xemacs.org>
5228 * gutter.c (Fset_default_gutter_position): default left and right
5230 (calculate_gutter_size): calculate resonable heuristic for left
5231 and right gutter sizes.
5232 (specifier_vars_of_gutter): change left and right gutter sizes to
5234 (calculate_gutter_size_from_display_lines): new function.
5235 (output_gutter): check for resizing on left and right gutters.
5236 (clear_gutter): don't special case top and left gutters.
5237 (specifier_vars_of_gutter): use new signature for
5238 set_specifier_caching.
5240 * glyphs-x.c (x_redisplay_widget): spelling fix.
5241 * glyphs.c (specifier_vars_of_glyphs):
5242 * menubar.c (specifier_vars_of_menubar):
5243 * redisplay.c (specifier_vars_of_redisplay):
5244 * toolbar.c (specifier_vars_of_toolbar):
5245 * window.c (specifier_vars_of_window):
5246 * scrollbar.c (specifier_vars_of_scrollbar):
5247 (complex_vars_of_scrollbar): use new signature for
5248 set_specifier_caching.
5250 * specifier.c (set_specifier_caching): include recompute flag.
5251 (recompute_one_cached_specifier_in_window): always recompute if
5253 (recompute_one_cached_specifier_in_frame): ditto.
5255 * specifier.h (struct specifier_caching): add recompute flag.
5257 2000-10-24 Andy Piper <andy@xemacs.org>
5259 * unexcw.c (copy_executable_and_dump_data_section): add new
5260 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5263 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5265 * console-x.h (x_device): New member modifier_release_time.
5266 * event-Xt.c (x_handle_sticky_modifiers):
5267 Bound interval modifier keys are sticky.
5268 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5269 * events.h: extern it.
5271 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5273 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5275 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5277 * event-stream.c (execute_command_event): Preserve current_events
5278 and the like when event is misc-user-event.
5279 Inhibit quit during the call to maybe_echo_keys.
5281 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
5283 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5284 symlink when buffer is killed.
5285 (inhibit_clash_detection): New variable.
5287 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5289 * console.c (Fset_input_method): Trigger redisplay on tty.
5291 2000-11-07 Martin Buchholz <martin@xemacs.org>
5293 * process.c (Fprocess_status): Revert to previous behavior:
5294 (process-status "nosuchprocess") ==> nil
5296 2000-11-06 Martin Buchholz <martin@xemacs.org>
5298 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5299 Work around another GCC 2.95.2 optimizer bug.
5301 2000-11-02 Martin Buchholz <martin@xemacs.org>
5303 * process.c (Fget_process): Use LIST_LOOP_2.
5304 (kill_buffer_processes): Use LIST_LOOP_2.
5306 * minibuf.c (Fall_completions):
5307 Delete old non-functional code for FSF fourth argument.
5309 * frame.c (frame_matches_frame_spec):
5310 Renamed from `frame_matches_frametype'. Update all callers.
5311 (device_matches_device_spec):
5312 Renamed from 'device_matches_console_spec'. Update all callers.
5314 * doc.c (Fsubstitute_command_keys):
5315 Remove buffer overflow crash. Small code cleanups.
5317 * casetab.c (check_case_table): Simpler code.
5319 * window.c (Freplace_buffer_in_windows):
5320 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5321 (and similar implementation) as Fdelete_windows_on.
5324 * alloc.c (Fmake_list):
5325 * alloc.c (make_vector):
5326 * alloc.c (Fmake_vector):
5327 * alloc.c (make_bit_vector):
5328 * alloc.c (Fmake_bit_vector):
5329 * alloc.c (Fbit_vector):
5330 * alloc.c (Fmake_string):
5331 * alloc.c (Fpurecopy):
5332 * alloc.c (Fmemory_limit):
5334 * buffer.c (Fget_buffer):
5335 * buffer.c (Fkill_buffer):
5336 * buffer.c (complex_vars_of_buffer):
5337 * bytecode.c (Fcompiled_function_stack_depth):
5338 * callint.c (Fprefix_numeric_value):
5340 * event-stream.c (Fread_key_sequence):
5342 * casetab.c (Fcase_table_p):
5343 * casetab.c (check_case_table):
5344 * casetab.c (Fset_case_table):
5345 * casetab.c (Fset_standard_case_table):
5347 * chartab.c (Fchar_table_type):
5348 * chartab.c (Freset_char_table):
5349 * chartab.c (Fget_char_table):
5350 * chartab.c (Fget_range_char_table):
5351 * chartab.c (Fput_char_table):
5352 * chartab.c (Fmap_char_table):
5353 * chartab.c (Fcategory_table_p):
5354 * chartab.c (Fcheck_category_at):
5355 * chartab.c (Fchar_in_category_p):
5356 * chartab.c (Fcategory_table):
5357 * chartab.c (Fcopy_category_table):
5358 * chartab.c (Fset_category_table):
5359 * chartab.c (Fcategory_designator_p):
5360 * chartab.c (Fcategory_table_value_p):
5361 * cmds.c (Fdelete_char):
5362 * cmds.c (Fdelete_backward_char):
5363 * cmds.c (Fself_insert_command):
5364 * cmds.c (Fself_insert_internal):
5365 * console.c (Fvalid_console_type_p):
5366 * console.c (Fcdfw_console):
5367 * console.c (Fconsole_type):
5368 * console.c (Fconsole_name):
5369 * console.c (Fconsole_device_list):
5370 * console.c (Fconsole_on_window_system_p):
5374 * data.c (Fsubr_interactive):
5375 * data.c (Fchar_to_int):
5376 * data.c (Fint_to_char):
5379 * data.c (Fnumber_to_string):
5380 * data.c (Fstring_to_number):
5382 * database.c (mark_database):
5383 * database.c (finalize_database):
5384 * database.c (Fdatabase_live_p):
5385 * database.c (Fdatabasep):
5386 * device-x.c (Fx_get_resource):
5387 * device.c (Fdfw_device):
5389 * dired.c (Ffile_name_completion):
5390 * dired.c (Ffile_name_all_completions):
5391 * dired.c (Fuser_name_completion):
5392 * dired.c (Fuser_name_completion_1):
5393 * dired.c (Fuser_name_all_completions):
5394 * doc.c (Fdocumentation):
5395 * doc.c (Fdocumentation_property):
5396 * doc.c (Fsubstitute_command_keys):
5398 * editfns.c (Fchar_to_string):
5399 * editfns.c (Fstring_to_char):
5400 * editfns.c (Ftemp_directory):
5401 * editfns.c (Finsert_char):
5402 * editfns.c (Fbuffer_substring_no_properties):
5403 * editfns.c (Fnarrow_to_region):
5404 * editfns.c (Fchar_equal):
5405 * editfns.c (Fchar_Equal):
5406 * editfns.c (Ftranspose_regions):
5407 * emacs.c (Fdump_emacs):
5409 * eval.c (Fcommand_execute):
5410 * eval.c (Fautoload):
5411 * eval.c (Fbacktrace):
5412 * eval.c (Fbacktrace_frame):
5414 * events.c (Fcopy_event):
5415 * events.c (Fcharacter_to_event):
5416 * events.c (Fevent_button):
5417 * events.c (Fevent_process):
5419 * extents.c (Fnext_extent_change):
5420 * extents.c (Fextent_property):
5422 * faces.c (Fmake_face):
5424 * file-coding.c (Fencode_shift_jis_char):
5425 * file-coding.c (Fencode_big5_char):
5426 * fileio.c (Ffile_name_directory):
5427 * fileio.c (Ffile_name_nondirectory):
5428 * fileio.c (Ffile_name_as_directory):
5429 * fileio.c (Fdirectory_file_name):
5430 * fileio.c (Ffile_truename):
5431 * fileio.c (Fsubstitute_in_file_name):
5432 * fileio.c (Ffile_modes):
5433 * fileio.c (Fset_file_modes):
5434 * fileio.c (Fset_default_file_modes):
5435 * fileio.c (Fverify_visited_file_modtime):
5436 * floatfns.c (Facos):
5437 * floatfns.c (Fasin):
5438 * floatfns.c (Fatan):
5439 * floatfns.c (Fcos):
5440 * floatfns.c (Fsin):
5441 * floatfns.c (Ftan):
5442 * floatfns.c (Fbessel_j0):
5443 * floatfns.c (Fbessel_j1):
5444 * floatfns.c (Fbessel_jn):
5445 * floatfns.c (Fbessel_y0):
5446 * floatfns.c (Fbessel_y1):
5447 * floatfns.c (Fbessel_yn):
5448 * floatfns.c (Ferf):
5449 * floatfns.c (Ferfc):
5450 * floatfns.c (Flog_gamma):
5451 * floatfns.c (Fexp):
5452 * floatfns.c (Fexpt):
5453 * floatfns.c (Flog):
5454 * floatfns.c (Flog10):
5455 * floatfns.c (Fsqrt):
5456 * floatfns.c (Fcube_root):
5457 * floatfns.c (Facosh):
5458 * floatfns.c (Fasinh):
5459 * floatfns.c (Fatanh):
5460 * floatfns.c (Fcosh):
5461 * floatfns.c (Fsinh):
5462 * floatfns.c (Ftanh):
5463 * floatfns.c (Fabs):
5464 * floatfns.c (Ffloat):
5465 * floatfns.c (Flogb):
5466 * floatfns.c (Fceiling):
5467 * floatfns.c (Ffloor):
5468 * floatfns.c (Fround):
5469 * floatfns.c (Ftruncate):
5470 * floatfns.c (Ffceiling):
5471 * floatfns.c (Fffloor):
5472 * floatfns.c (Ffround):
5473 * floatfns.c (Fftruncate):
5474 * fns.c (Fstring_equal):
5475 * fns.c (Fstring_lessp):
5480 * fns.c (Fsubstring):
5482 * fns.c (Fold_assoc):
5483 * fns.c (assoc_no_quit):
5485 * fns.c (Fold_assq):
5486 * fns.c (assq_no_quit):
5488 * fns.c (Fold_rassoc):
5490 * fns.c (Fold_rassq):
5491 * fns.c (rassq_no_quit):
5492 * fns.c (Fremassoc):
5493 * fns.c (remassoc_no_quit):
5495 * fns.c (remassq_no_quit):
5496 * fns.c (Fremrassoc):
5497 * fns.c (Fremrassq):
5498 * fns.c (remrassq_no_quit):
5500 * fns.c (Fplist_get):
5501 * fns.c (Fplist_put):
5502 * fns.c (Fplist_remprop):
5503 * fns.c (Fplist_member):
5504 * fns.c (Flax_plist_get):
5505 * fns.c (Flax_plist_put):
5506 * fns.c (Flax_plist_remprop):
5507 * fns.c (Flax_plist_member):
5509 * fns.c (Fold_equal):
5511 * fns.c (Fbase64_encode_region):
5512 * fns.c (Fbase64_encode_string):
5513 * fns.c (Fbase64_decode_region):
5515 * frame.c (frame_matches_frame_spec):
5516 * frame.c (device_matches_device_spec):
5517 * frame.c (next_frame):
5518 * frame.c (previous_frame):
5519 * frame.c (Fnext_frame):
5520 * frame.c (Fprevious_frame):
5521 * frame.c (Fframe_property):
5522 * frame.c (Fset_frame_height):
5523 * frame.c (Fset_frame_size):
5527 * glyphs.c (decode_error_behavior_flag):
5528 * glyphs.c (Fmake_image_instance):
5529 * indent.c (Findent_to):
5530 * intl.c (Fignore_defer_gettext):
5531 * keymap.c (Fkeymapp):
5532 * keymap.c (Flookup_key):
5534 * lread.c (Fload_internal):
5535 * lread.c (Feval_buffer):
5536 * lread.c (Feval_region):
5537 * macros.c (Fexecute_kbd_macro):
5538 * marker.c (set_marker_internal):
5539 * marker.c (Fset_marker):
5540 * marker.c (set_marker_restricted):
5541 * marker.c (Fcopy_marker):
5542 * marker.c (noseeum_copy_marker):
5544 * menubar.c (Fpopup_menu):
5546 * mule-charset.c (Fcharset_name):
5547 * mule-charset.c (Fchar_charset):
5548 * mule-charset.c (Fchar_octet):
5549 * mule-charset.c (Fsplit_char):
5550 * mule-wnnfns.c (Fwnn_open):
5551 * mule-wnnfns.c (Fwnn_dict_comment):
5552 * mule-wnnfns.c (Fwnn_quit_henkan):
5553 * mule-wnnfns.c (Fwnn_word_toroku):
5554 * mule-wnnfns.c (Fwnn_word_sakujo):
5555 * mule-wnnfns.c (Fwnn_word_use):
5556 * mule-wnnfns.c (Fwnn_hindo_set):
5558 * objects.c (Fmake_color_instance):
5559 * objects.c (Fmake_font_instance):
5560 * print.c (Fwrite_char):
5562 * process.c (mark_process):
5563 * process.c (print_process):
5564 * process.c (get_process_from_usid):
5565 * process.c (Fprocessp):
5566 * process.c (Fprocess_live_p):
5567 * process.c (Fget_process):
5568 * process.c (Fget_buffer_process):
5569 * process.c (get_process):
5570 * process.c (Fprocess_id):
5571 * process.c (Fprocess_name):
5572 * process.c (Fprocess_command):
5573 * process.c (init_process_io_handles):
5574 * process.c (start_process_unwind):
5575 * process.c (Fstart_process_internal):
5576 * process.c (Fopen_multicast_group_internal):
5577 * process.c (Fset_process_window_size):
5578 * process.c (read_process_output):
5579 * process.c (send_process):
5580 * process.c (Fprocess_tty_name):
5581 * process.c (Fset_process_buffer):
5582 * process.c (Fprocess_buffer):
5583 * process.c (Fprocess_mark):
5584 * process.c (set_process_filter):
5585 * process.c (Fset_process_filter):
5586 * process.c (Fprocess_filter):
5587 * process.c (Fprocess_send_region):
5588 * process.c (Fprocess_send_string):
5589 * process.c (exec_sentinel):
5590 * process.c (Fset_process_sentinel):
5591 * process.c (Fprocess_sentinel):
5592 * process.c (status_notify):
5593 * process.c (Fprocess_status):
5594 * process.c (Fprocess_exit_status):
5595 * process.c (process_send_signal):
5596 * process.c (Fprocess_send_eof):
5597 * process.c (deactivate_process):
5598 * process.c (remove_process):
5599 * process.c (Fdelete_process):
5600 * process.c (kill_buffer_processes):
5601 * process.c (Fprocess_kill_without_query):
5602 * process.c (Fprocess_kill_without_query_p):
5604 * rangetab.c (Fget_range_table):
5605 * rangetab.c (Fput_range_table):
5606 * rangetab.c (Fremove_range_table):
5607 * rangetab.c (Fclear_range_table):
5609 * search.c (Fskip_chars_forward):
5610 * search.c (Fskip_chars_backward):
5611 * search.c (Fskip_syntax_forward):
5612 * search.c (Fskip_syntax_backward):
5613 * search.c (search_command):
5614 * search.c (Freplace_match):
5615 * search.c (Fregexp_quote):
5616 * select.c (Fown_selection_internal):
5617 * select.c (Fselection_owner_p):
5618 * select.c (Fselection_exists_p):
5619 * select.c (Fget_selection_internal):
5622 * symbols.c (Fintern):
5623 * symbols.c (Fintern_soft):
5624 * symbols.c (Funintern):
5625 * symbols.c (Fapropos_internal):
5626 * symbols.c (Fset_default):
5628 * syntax.c (Fsyntax_table_p):
5629 * syntax.c (Fcopy_syntax_table):
5630 * syntax.c (Fset_syntax_table):
5631 * syntax.c (Fchar_syntax):
5632 * syntax.c (syntax_match):
5633 * syntax.c (Fmatching_paren):
5634 * syntax.c (Fforward_word):
5635 * syntax.c (scan_lists):
5636 * syntax.c (Fscan_lists):
5637 * syntax.c (Fscan_sexps):
5638 * syntax.c (Fparse_partial_sexp):
5639 * toolbar.c (Fcheck_toolbar_button_syntax):
5642 * window.c (Fwindowp):
5643 * window.c (Fwindow_live_p):
5644 * window.c (Fwindow_point):
5645 * window.c (Fdelete_window):
5646 * window.c (Fnext_window):
5647 * window.c (Fprevious_window):
5648 * window.c (Fother_window):
5649 * window.c (window_loop):
5650 * window.c (Fget_lru_window):
5651 * window.c (Fsplit_window):
5652 * window.c (Fenlarge_window):
5653 * window.c (Fenlarge_window_pixels):
5654 * window.c (Fshrink_window):
5655 * window.c (Fshrink_window_pixels):
5656 * window.c (change_window_height):
5657 * window.c (Fwindow_configuration_p):
5658 * window.c (Fcurrent_window_configuration):
5660 * casefiddle.c (casify_object):
5661 * casefiddle.c (Fupcase):
5662 * casefiddle.c (Fdowncase):
5663 * casefiddle.c (Fcapitalize):
5664 * casefiddle.c (Fupcase_initials):
5665 * casefiddle.c (casify_region_internal):
5666 * casefiddle.c (casify_region):
5667 * casefiddle.c (Fupcase_region):
5668 * casefiddle.c (Fdowncase_region):
5669 * casefiddle.c (Fcapitalize_region):
5670 * casefiddle.c (Fupcase_initials_region):
5671 * casefiddle.c (Fupcase_word):
5672 * casefiddle.c (Fdowncase_word):
5673 * casefiddle.c (Fcapitalize_word):
5674 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
5675 Replace 0 with '\0' when working with bytes.
5676 Replace initial "(" with "\(" in docstrings.
5678 2000-11-01 Martin Buchholz <martin@xemacs.org>
5680 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5682 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5684 2000-10-31 Martin Buchholz <martin@xemacs.org>
5686 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
5688 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5690 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5693 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5695 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5696 (inhibit_auto_save_session): New variable.
5697 (vars_of_fileio): Declare and initialize them.
5698 * fileio.c (Fdo_auto_save): Don't create session file if
5699 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5701 2000-10-31 Martin Buchholz <martin@xemacs.org>
5703 * sgiplay.c (play_internal): C++ compilability.
5704 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5705 * callproc.c (Fold_call_process_internal):
5706 Remove unused vars `env', `first'.
5707 * scrollbar.c (update_scrollbar_instance):
5708 #### unused var `current_window'.
5709 * redisplay-tty.c: Put currently unused vars insert_mode_on,
5710 etc. within #ifdef NOT_YET.
5711 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5712 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5713 * specifier.c (specifier_instance):
5714 #### unused var `tag'.
5715 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5717 2000-10-27 Martin Buchholz <martin@xemacs.org>
5720 * fns.c (list_sort):
5721 * fns.c (Ffillarray):
5722 * fns.c (bytecode_nconc2):
5725 * fns.c (Fmapconcat):
5726 Be pedantically 64-bit correct. For the time when someone will
5727 want to have a list with length > 2**32.
5729 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5730 Work around MIPSpro compiler bug.
5732 * process-unix.c (unix_kill_child_process): Add snarky comment.
5733 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
5735 * config.h.in: Oops, _getpt ==> _getpty
5737 2000-10-26 Martin Buchholz <martin@xemacs.org>
5741 Use void*, not char*, as return type of alloca().
5743 * alloc.c (free_marker): Side effect inside assert expression!
5745 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
5747 * mule-charset.c (Fset_charset_ccl_program): To check
5748 if the given ccl program is valid, use setup_ccl_program()
5749 instead of CHECK_VECTOR().
5750 (Fmake_charset): Likewise.
5752 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
5754 * faces.c (get_extent_fragment_face_cache_index):
5755 Fix cachel.merged_faces memory leak.
5757 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
5759 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5760 Reset MSB of octets obtained by DECODE_SJIS
5761 because of the incompatibility with Emacs.
5762 (ccl_driver)<CCL_ENCODE_SJIS>:
5763 Set MSB of octets before passing them to
5764 ENCODE_SJIS because of the incompatibility
5767 2000-10-18 Daiki Ueno <ueno@unixuser.org>
5769 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5770 (DECLARE_LRECORD): Undo the last change.
5771 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5773 2000-10-17 Daiki Ueno <ueno@unixuser.org>
5775 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5776 the implementation to lrecord_implementations_table.
5778 2000-10-14 Daiki Ueno <ueno@unixuser.org>
5780 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5781 initial value of `lrecord_type_##c_name' and
5782 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5783 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5784 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5785 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5786 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5788 2000-10-17 Martin Buchholz <martin@xemacs.org>
5790 * miscplay.c (sndcnv8S_2mono):
5791 (sndcnv2monounsigned):
5792 (sndcnvULaw_2linear):
5794 Remove implementation-defined behavior.
5796 2000-10-12 Martin Buchholz <martin@xemacs.org>
5798 * input-method-xlib.c: Warning suppression.
5800 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
5802 * mule-ccl.c: Sync up with Emacs 21.0.90.
5803 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5805 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5807 (ccl_driver[WriteMultibyteChar2]): Bug fix.
5808 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5809 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5810 leading char belongs to official 2-dimensional charset.
5811 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5812 write the given character as is. Otherwise,
5813 if it is a multibyte char, convert it by
5814 non_ascii_set_charptr_emchar, then write it.
5815 (CCL_WRITE_STRING): Likewise.
5816 (ccl_get_compiled_code): New function.
5817 (setup_ccl_program): When ccl_prog is invalid,
5819 (Fregister_code_conversion_map): New function.
5820 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5822 * mule-ccl.h: Sync up with Emacs 21.0.90.
5823 (Fregister_ccl_program): export it.
5825 * redisplay-msw.c (separate_textual_runs):
5826 If ccl program is not valid, don't do ccl conversion.
5828 * redisplay-x.c (separate_textual_runs): Ditto.
5830 * file-coding.c (Fmake_coding_system):
5831 When type is ccl and value is vector, register it
5832 with a proper symbol. And checks whether the
5833 given ccl program is valid.
5834 (mule_decode): When calling ccl_driver, if src indicates
5835 NULL pointer, set an empty string instead.
5836 (mule_encode): Likewise.
5838 2000-10-11 Martin Buchholz <martin@xemacs.org>
5840 The following large batch of changes gets us back to a state of
5841 C++ compilability. Extbyte is now a char, which means that
5842 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5844 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5846 * sound.c (Fplay_sound): Type correctness.
5848 * select-x.c (hack_motif_clipboard_selection): Type correctness.
5849 (x_get_window_property): Type correctness.
5850 (receive_incremental_selection): unsigned char ==> Extbyte
5851 (selection_data_to_lisp_data): unsigned char ==> Extbyte
5852 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5853 (Fx_store_cutbuffer_internal): Type correctness.
5855 * process-unix.c (try_to_initialize_subtty): Type correctness.
5857 * objects-x.c (x_print_color_instance): Type correctness.
5858 (x_print_font_instance): Type correctness.
5859 (x_list_fonts): SExtbyte ==> Extbyte.
5860 (valid_x_font_name_p): SExtbyte ==> Extbyte.
5861 (x_find_charset_font): SExtbyte ==> Extbyte.
5862 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
5863 (truename_via_XListFonts): SExtbyte ==> Extbyte.
5864 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5867 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5868 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5869 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5870 (BYTE_C0_P): Use bit ops for char-signedness safety.
5871 (BYTE_C1_P): Use bit ops for char-signedness safety.
5872 (CHARSET_BY_LEADING_BYTE):
5873 (CHARSET_BY_ATTRIBUTES):
5874 Always use inline function.
5875 Use type_checking_assert.
5878 * mule-charset.c (non_ascii_charptr_copy_char):
5879 Modify to work with both ASCII and non-ASCII characters.
5880 Improve docs and variable names.
5881 Replace over-clever fall-through switch with a simple loop.
5882 (Lstream_get_emchar_1):
5883 Replace over-clever fall-through switch with a simple loop.
5885 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5886 Warning suppression.
5888 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5889 the return value of Lstream_getc, which could be EOF as well.
5891 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5893 * lisp.h: Make Extbyte a char, not unsigned char, so that external
5894 APIs can be used on Extbytes without casts. Risky!
5898 * input-method-xlib.c (XIM_init_device):
5899 Use Xlib.h instead of IntrinsicP.h.
5900 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5901 which will break in X11R7.
5902 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5903 to call XRegisterIMInstantiateCallback with correct types.
5905 * gui-x.c (button_item_to_widget_value): Type correctness.
5907 * glyphs.c (bitmap_to_lisp_data): Type correctness.
5909 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5910 (xbm_instantiate_1): Type correctness.
5911 (BUILD_GLYPH_INST): Type correctness.
5913 * fileio.c (Fsubstitute_in_file_name): Type correctness.
5916 (decode_coding_sjis):
5917 (decode_coding_big5):
5918 (decode_coding_ucs4):
5919 (decode_coding_utf8):
5920 (decode_coding_iso2022):
5921 (decode_coding_no_conversion):
5922 Make all decoding functions take an Extbyte * arg.
5923 (encode_coding_sjis):
5924 (encode_coding_big5):
5925 (encode_coding_ucs4):
5926 (encode_coding_utf8):
5927 (encode_coding_iso2022):
5928 (encode_coding_no_conversion):
5929 Make all encoding functions take a Bufbyte * arg.
5930 Use size_t instead of unsigned int for memory sizes.
5931 Only cast to unsigned char whenever dereferencing Extbyte *.
5933 * doc.c (unparesseuxify_doc_string): Type correctness.
5935 * console-x.c (split_up_display_spec):
5936 Rewrite without using details of internal string representation.
5937 (x_semi_canonicalize_device_connection): Type correctness.
5940 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5941 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5942 (HAVE_XFREE386): Removed.
5944 * buffer.h (DEC_CHARPTR): `const' correctness.
5945 (bufbyte_strcmp): New.
5946 (bufbyte_memcmp): New.
5948 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5950 * buffer.h (XCHAR_OR_CHAR_INT):
5951 Always use inline function.
5952 Remove redundant type checking assert() - XINT will abort quite nicely.
5954 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
5956 * search.c (Freplace_match): Set newtext to an empty string.
5958 2000-10-10 Martin Buchholz <martin@xemacs.org>
5960 * s/decosf1-3.h: Remove #include of stropts.h
5961 * s/ptx.h: Remove #include of stropts.h
5962 * s/usg5-4.h: Remove #include of stropts.h
5965 Use stropts.h, not sys/stropts.h.
5966 Use strtio.h, not sys/strtio.h.
5968 2000-10-04 Martin Buchholz <martin@xemacs.org>
5970 * XEmacs 21.2.36 is released.
5972 2000-09-21 Andy Piper <andy@xemacs.org>
5974 * glyphs-x.c (x_redisplay_widget): make sure non-structural
5975 changes still involve copying the widget tree.
5976 (update_widget_face): make sure a change is register in the widget
5977 tree. Call update_tab_widget_face appropriately.
5978 (update_tab_widget_face): ditto.
5979 (x_tab_control_redisplay): make sure non-structural changes still
5980 involve copying the widget tree.
5982 2000-08-31 Daiki Ueno <ueno@unixuser.org>
5984 * lread.c (locate_file): Check the path element is non-nil.
5986 2000-10-02 Martin Buchholz <martin@xemacs.org>
5988 * lisp.h: Warning suppression for SCO compilers.
5990 * redisplay-tty.c (reset_tty_modes): Fix crash.
5991 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5993 2000-09-27 Martin Buchholz <martin@xemacs.org>
5995 Big signal/process handling overhaul. Bugs fixed:
5996 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5997 M-x comint-kill-subjob should work for both values nil and t of
5998 process-connection-type. It was broken on most platforms.
5999 Testing on Irix and Cygwin still needed. Other plaforms tested.
6000 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
6001 * process-unix.c: Signal/Process handling overhaul.
6002 (pty_name): make 64 bytes, as `expect' does, for paranoia.
6003 (allocate_pty): Use all available modern methods of allocating
6004 ptys, falling back to old style BSD allocation as a last resort.
6005 Use allegedly more secure Unix98 pty allocation by default.
6006 (allocate_pty_the_old_fashioned_way): New. the last resort.
6007 (unix_create_process): Push ptem, ldterm, ttcompat where
6008 available. Autoconfiscate.
6009 (try_to_initialize_subtty): New.
6010 (unix_kill_child_process): Proper signal handling for ptys on most
6011 platforms, using special knowledge of AIX, BSD, etc...
6012 (unix_create_process): Always disconnect_controlling_terminal() for
6013 subprocesses, whether using ptys or not.
6014 * process.h: Remove old getpt-dependent PTY code.
6015 * process.c (Fprocess_send_signal): New, obvious generic function.
6016 (decode_signal): New.
6017 (Finterrupt_process):
6021 (Fcontinue_process):
6022 (Fsignal_process): Use decode_signal.
6023 (process_send_signal):
6024 Many docstring corrections.
6025 Allow any signal to be sent to a process object.
6026 * config.h.in: Add symbols for big signal/process overhaul.
6027 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6028 * sysproc.h: Include process-related headers, where available:
6029 sys/stropts.h sys/strtio.h pty.h libutil.h
6037 Remove old S&M pty stuff.
6038 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6039 * systty.h: Simplify cpp hackery, improve comments.
6040 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6042 * editfns.c (Fformat_time_string):
6043 Be a little more paranoid with the return value of ctime.
6045 * fileio.c (check_executable):
6047 Use symbolic constants X_OK, W_OK.
6049 * console-x.c (split_up_display_spec): Fix a warning.
6051 2000-10-02 Martin Buchholz <martin@xemacs.org>
6053 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6054 * ntproc.c (sys_spawnve): make_string ==> build_string
6055 Small clarity improvements.
6057 2000-09-30 Martin Buchholz <martin@xemacs.org>
6059 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6061 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6063 * config.h.in (HAVE_STRCASECMP): Remove.
6065 2000-09-29 Martin Buchholz <martin@xemacs.org>
6067 * redisplay-output.c (redisplay_output_pixmap):
6068 Cleaner and possibly more 64-bit correct code.
6070 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
6072 * dumper.c (pdump_load_finish): move restoration of
6073 `noninteractive1' to emacs.c (main_1).
6074 * emacs.c (main_1): protect LISP-visible command-line flags
6077 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
6079 * Makefile.in.in (versionclean): Use EXE_TARGET and
6080 DUMP_TARGET instead of literal program names.
6082 2000-09-20 Martin Buchholz <martin@xemacs.org>
6084 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6086 2000-09-19 Martin Buchholz <martin@xemacs.org>
6088 * *: Spelling mega-patch
6090 2000-09-19 Martin Buchholz <martin@xemacs.org>
6092 * fns.c (bad_bad_turtle):
6093 Delete "Eek!" comment, since we fixed the bug to which it refers.
6095 2000-09-16 Martin Buchholz <martin@xemacs.org>
6097 * alloca.c: Replace REGISTER with register.
6099 2000-09-16 Daiki Ueno <ueno@unixuser.org>
6101 * file-coding.c (ucs_to_char): Use countof.
6103 2000-09-16 Martin Buchholz <martin@xemacs.org>
6105 * file-coding.c: (ucs_to_char):
6106 (complex_vars_of_file_coding):
6107 Use countof instead of sizeof.
6108 Use CHECK_NATNUM instead of CHECK_INT.
6110 * sysdep.c (strcasecmp): Remove.
6111 * device-x.c (ascii_strcasecmp): New.
6112 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6113 Avoid using non-standard non-portable strcasecmp.
6115 2000-09-16 Martin Buchholz <martin@xemacs.org>
6117 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6118 * font-lock.c: remove reference to emacsfns.h.
6119 * search.c: small doc improvement.
6120 * event-Xt.c: correct file names in comments.
6121 * console-x.h Correct file names in comments.
6122 * frame.c: Correct file names in comments.
6123 * event-stream.c: remove Energize from comments.
6125 2000-09-15 Martin Buchholz <martin@xemacs.org>
6127 * symeval.h (DEFERROR_STANDARD):
6130 (DEFSYMBOL_NO_DUMP):
6131 (DEFSYMBOL_MULTIWORD_PREDICATE):
6132 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6134 The construct &##name is not sensible C.
6135 Fixes compilation errors with Unixware native compiler.
6137 2000-09-14 Martin Buchholz <martin@xemacs.org>
6139 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6140 (next_frame_internal): Removed. We now just have next_frame.
6142 Write a simpler and cleaner one-pass algorithm.
6143 Remove called_from_delete_device arg and #ifdefed-out code.
6145 Renamed from prev_frame. Update callers.
6146 Cleaned up to have an analogous implementation to next_frame.
6147 (other_visible_frames_internal): Remove the
6148 called_from_delete_device bogus arg, and hence, remove this
6149 function. Just use other_visible_frames().
6151 * window.c (Fnext_window):
6153 Since next_frame() is guaranteed to return a frame, remove check
6154 for nil inserted in previous patch.
6157 Make code look more like Fnext_window.
6159 Respect the `console' arg when iterating through windows.
6160 Fixes bug: (get-buffer-window buffer t device) not respecting
6162 This function needs more work, as others have pointed out.
6164 * frame.h: Rename prev_frame to previous_frame.
6165 device_matches_console_spec no longer takes a `frame' arg.
6170 Use EMACS_BLOCK_SIGNAL instead of sigblock.
6171 From "Golubev I. N." <gin@mo.msk.ru>.
6173 * make-src-depend: Fix typo.
6175 2000-09-13 Martin Buchholz <martin@xemacs.org>
6177 * window.c (Fnext_window):
6178 next_frame() might return nil, not a frame.
6180 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6182 * frame.c (next_frame_internal):
6183 We've passed a frame if we've passed its device.
6185 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6186 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6188 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
6190 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6191 Allow option to suppress accelerators in menu/dialog items.
6192 (populate_or_checksum_helper): Pass dialog title through above.
6194 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
6196 * event-msw.c (mswindows_key_to_emacs_keysym):
6197 Add "pause" key, fix "menu" key.
6199 2000-09-09 Martin Buchholz <martin@xemacs.org>
6201 * eval.c (reinit_vars_of_eval):
6202 Increase max_lisp_eval_depth to 1000,
6203 required for thai-xtis.el to byte-compile under some circumstances.
6205 2000-09-04 Martin Buchholz <martin@xemacs.org>
6207 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6210 2000-09-01 Martin Buchholz <martin@xemacs.org>
6212 * make-src-depend: Make the generated Makefiles smaller.
6214 * s/hpux.h (SETUP_SLAVE_PTY):
6215 Provide a %d in the format string for the errno argument.
6217 * editfns.c (Ftemp_directory):
6219 Avoid buffer overrun on very long file name.
6221 * input-method-xlib.c (XIM_init_device):
6222 6th parameter of XRegisterIMInstantiateCallback has different
6223 pointer types on different OSes, so simply cast to (void *).
6225 * unexhp9k800.c: Warning fixes. Fiddly changes.
6227 * sysdll.c (dll_open):
6228 shl_load will hang hard if passed a NULL filename.
6229 Simply return NULL for compatibility with dlopen.
6230 * sysdll.c: Conform to XEmacs coding standards.
6232 * sysdep.c (get_pty_max_bytes):
6233 Support pty input lines longer than 512 bytes on HP-UX 10.20.
6235 2000-08-31 Martin Buchholz <martin@xemacs.org>
6237 * tooltalk.c: Add #include <syssignal.h>
6239 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
6241 * s/hpux.h: Don't use undefined function sigunblock().
6243 2000-08-31 Martin Buchholz <martin@xemacs.org>
6245 * config.h.in: Add HAVE_BALLOON_HELP.
6246 * emacs.c: Use HAVE_BALLOON_HELP.
6247 * Makefile.in.in (x_objs):
6248 Make Balloon Help conditional on finding shape.h.
6250 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
6252 * syntax.c (regex_emacs_buffer_p): New variable.
6253 * syntax.h (regex_emacs_buffer_p): extern.
6254 * search.c (looking_at_1):
6256 (fast_string_match):
6257 (search_buffer): Set regex_emacs_buffer_p.
6258 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6259 when before_dot, at_dot, after_dot.
6261 2000-08-23 Andy Piper <andy@xemacs.org>
6263 * gui-x.c (popup_selection_callback): Only set action_occurred
6264 when we really have an image instance.
6265 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6267 2000-08-23 Andy Piper <andy@xemacs.org>
6269 * gui-msw.c (mswindows_handle_gui_wm_command): set
6271 * gui-x.c (popup_selection_callback): ditto.
6273 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6274 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6275 (struct Lisp_Image_Instance): add action_occurred flag.
6277 * glyphs.c (redisplay_subwindow): use action_occurred flag.
6278 (image_instance_changed): ditto.
6279 (reset_frame_subwindow_instance_cache): only unmap windows - do
6280 not remove them from the cache also.
6282 * glyphs-widget.c (tab_control_update): better debug.
6283 (progress_gauge_update): ditto.
6284 (layout_update): ditto.
6285 (layout_instantiate): ditto.
6286 (tab_control_order_only_changed): cope with null pending items.
6288 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6289 debug. Force selection of an item when an action occurred. Cope
6290 with null pending_items.
6291 (mswindows_progress_gauge_redisplay): better debug.
6292 * glyphs-x.c (x_tab_control_redisplay): ditto.
6294 * redisplay.c (redisplay_frame): reset the frame cache if the
6297 * window.c (Fset_window_configuration): potentially re-enable
6299 (window_unmap_subwindows): need to finalize instances here since
6300 it is only used in mark_window_as_deleted.
6302 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
6304 * nas.c (SndOpenDataForReading):
6305 nas.c (WaveOpenDataForReading):
6306 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6307 Somehow escaped from the 2000-08-14 patch.
6309 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6311 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6312 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6314 2000-08-21 Andy Piper <andy@xemacs.org>
6316 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6317 window if it is not already displayed.
6319 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6320 it is not already displayed.
6322 * window.c (Fset_window_configuration): don't reset the frame
6325 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6326 instances from the frame cache if we are actually finalizing them.
6327 (reset_frame_subwindow_instance_cache): reset frame cache only
6328 after unmapping everything.
6329 (map_subwindow): set displayed flag after mapping.
6331 2000-08-21 Martin Buchholz <martin@xemacs.org>
6333 * data.c (indirect_function):
6334 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6336 * eval.c (function_argcount):
6337 Use original function when signaling errors.
6339 2000-08-18 Andy Piper <andy@xemacs.org>
6341 * frame.c (delete_frame_internal): use new
6342 free_frame_subwindow_instances name.
6344 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6345 (add_tab_item): make return type correct.
6346 (mswindows_tab_control_instantiate): assert index of tab.
6347 (mswindows_tab_control_redisplay): Re-code to use
6348 gui_item_equal_sans_selected and gui_item_list_find_selected.
6350 * glyphs-widget.c (tab_control_update): Correct comment.
6352 * window.c (window_unmap_subwindows): use new
6353 unmap_subwindow_instance_cache_mapper.
6354 (window_unmap_subwindows_cache_mapper): deleted.
6355 (Fset_window_configuration): comparisons should now be with
6356 EQ. Preserve the subwindow instance cache across configuration
6358 (allocate_window): ditto.
6359 (make_dummy_parent): ditto.
6361 * glyphs.c (free_frame_subwindow_instances): rename from
6362 free_frame_subwindow_instance_cache. finalize all instances rather
6363 than just those in the display cache.
6364 (finalize_all_subwindow_instances): walk windows unmapping and
6365 finalizing subwindows.
6366 (unmap_subwindow_instance_cache_mapper): moved from
6367 window.c. Allow finalization as well as unmapping.
6369 * gui.c (gui_item_list_find_selected): new function.
6371 * gui.h (gui_item_list_find_selected): declare.
6373 * glyphs-x.c (x_tab_control_redisplay): pick tab
6374 explicitly. Re-code to use gui_item_equal_sans_selected and
6375 gui_item_list_find_selected.
6377 * glyphs-x.h: add lwlib-utils.h
6379 * buffer.c (Frecord_buffer): undo previous change.
6381 2000-08-09 Vin Shelton <acs@xemacs.org>
6383 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6384 possible. Create temporary files more securely. The patch was
6385 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6386 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
6387 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6390 2000-08-07 Ben Wing <ben@xemacs.org>
6392 * getloadavg.c: remove duplicate (and windows-breaking)
6393 includes of fcntl.h and sys/file.h.
6395 * nt.c: remove duplicate getloadavg() definition.
6397 * sysdll.h (Qdll_filename_encoding): add missing stand-in
6400 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
6402 * eval.c (function_argcount): If function needs to be autoloaded
6403 actually use the loaded definition.
6406 2000-08-05 Ben Wing <ben@xemacs.org>
6408 * getloadavg.c: add prototype for getloadavg(). remove
6409 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6410 of the code). remove duplicate header includes.
6412 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6414 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6415 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6416 useful load average.
6418 * alloc.c (reinit_alloc_once_early): removed references to
6419 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6420 the lisp vars are the only things referencing the malloc_sbrk_*
6421 vars, and they were already if 0'd out. these vars only exist
6422 in the older malloc.c, which is basically unused, and they're
6423 only for informational purposes.
6425 * m\*.h: removed useless VIRT_ADDR_VARIES.
6427 * m\powerpc.h: removed stray NO_ARG_ARRAY.
6429 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
6431 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6432 color if the image is a mono pixmap.
6434 2000-07-30 Ben Wing <ben@xemacs.org>
6436 * Makefile.in.in (release):
6439 * buffer.c (directory_is_current_directory):
6440 * dired-msw.c (mswindows_get_files):
6442 * dired.c (Fdirectory_files):
6443 * dired.c (file_name_completion_stat):
6444 * dired.c (Ffile_attributes):
6445 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6446 preprocessor tricks, to avoid problems on some machines
6449 * callproc.c (egetenv): GC docs.
6452 * console-msw.h (struct mswindows_dialog_id):
6453 * lrecord.h (lrecord_type):
6454 New object for use with MSW dialogs.
6456 * console.h (struct console_methods):
6457 New enable/disable frame methods, for proper modal dialogs.
6459 * device-msw.c (msprinter_default_printer): Fix to follow
6460 proper Mule conventions.
6463 * device-msw.c (signal_open_printer_error):
6464 * device-msw.c (msprinter_init_device):
6465 * device-msw.c (ensure_not_printing):
6466 * device-msw.c (plist_get_margin):
6467 * device-msw.c (Fmsprinter_select_settings):
6468 * device-msw.c (finalize_devmode):
6469 * device-msw.c (Fmsprinter_settings_despecialize):
6470 * device-msw.c (signal_enum_priner_error):
6471 * extents.c (decode_extent):
6472 * extents.c (decode_map_extents_flags):
6473 * extents.c (decode_extent_at_flag):
6474 * extents.c (Fextent_at):
6475 * extents.c (Fextents_at):
6476 * extents.c (symbol_to_glyph_layout):
6477 [[[[2]]]] Use structured errors.
6480 * dialog-msw.c (mswindows_is_dialog_msg):
6481 * dialog-msw.c (mark_mswindows_dialog_id):
6482 * dialog-msw.c (dialog_proc):
6483 * dialog-msw.c (handle_question_dialog_box):
6484 * dialog-msw.c (syms_of_dialog_mswindows):
6485 Define new object to clean up marking; use it as a dialog identifier.
6486 Call new delete-dialog-box-hook.
6488 * dialog-x.c (dbox_selection_callback):
6489 * dialog-x.c (dbox_descriptor_to_widget_value):
6490 * dialog-x.c (x_make_dialog_box_internal):
6491 Call new delete-dialog-box-hook.
6495 * dialog.c (syms_of_dialog):
6496 * dialog.c (vars_of_dialog):
6497 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6500 * eval.c (signal_call_debugger):
6501 when noninteractive, output stack traces on the console instead
6502 of in a (never-seen) buffer.
6504 * eval.c (signal_type_error):
6505 * eval.c (invalid_argument_2):
6507 new funs for use w/structured errors.
6510 * event-Xt.c (x_to_emacs_keysym):
6511 * event-Xt.c (describe_event):
6512 * event-Xt.c (emacs_Xt_event_handler):
6513 * event-Xt.c (vars_of_event_Xt):
6515 * event-msw.c (mswindows_wnd_proc):
6516 * event-msw.c (vars_of_event_mswindows):
6517 rename {x,mswindows}-debug-events to debug-{}-events for
6518 consistency with other debug-foo variables.
6521 document next-event more clearly.
6523 * fileio.c (Ffile_name_directory):
6524 * fileio.c (Ffile_name_nondirectory):
6525 * fileio.c (Funhandled_file_name_directory):
6526 * fileio.c (file_name_as_directory):
6527 * fileio.c (Ffile_name_as_directory):
6528 * fileio.c (directory_file_name):
6529 * fileio.c (Fdirectory_file_name):
6530 * fileio.c (Fmake_temp_name):
6531 * fileio.c (Ffile_truename):
6532 * fileio.c (Fsubstitute_in_file_name):
6533 * fileio.c (expand_and_dir_to_file):
6534 * fileio.c (barf_or_query_if_file_exists):
6535 * fileio.c (check_executable):
6536 * fileio.c (Ffile_exists_p):
6537 * fileio.c (Ffile_writable_p):
6538 * fileio.c (Ffile_directory_p):
6539 * fileio.c (Ffile_regular_p):
6540 * fileio.c (Ffile_modes):
6541 * fileio.c (Ffile_newer_than_file_p):
6542 * fileio.c (Fverify_visited_file_modtime):
6543 * fileio.c (Fset_visited_file_modtime):
6544 * fileio.c (auto_save_1):
6549 * frame-msw.c (mswindows_init_frame_1):
6550 * frame-msw.c (mswindows_enable_frame):
6551 * frame-msw.c (error_frame_unsizable):
6552 * frame-msw.c (msprinter_init_frame_1):
6553 * frame-msw.c (msprinter_init_frame_3):
6554 * frame-msw.c (console_type_create_frame_mswindows):
6556 implement new enable/disable frame methods.
6559 * frame-x.c (x_enable_frame):
6560 * frame-x.c (console_type_create_frame_x):
6561 implement new enable/disable frame methods.
6564 * frame.c (Fdisable_frame):
6565 * frame.c (syms_of_frame):
6566 * frame.h (struct frame):
6567 implement new enable/disable frame methods/functions.
6572 * glyphs-msw.c (mswindows_widget_instantiate):
6573 comment that initial-focus should be implemented.
6576 * glyphs-widget.c (check_valid_instantiator):
6577 * glyphs-widget.c (check_valid_orientation):
6578 * glyphs-widget.c (check_valid_tab_orientation):
6579 * glyphs-widget.c (check_valid_justification):
6580 * glyphs-widget.c (check_valid_border):
6581 * glyphs-widget.c (check_valid_callback):
6582 * glyphs-widget.c (check_valid_int_or_function):
6583 * glyphs-widget.c (check_valid_string_or_vector):
6584 * glyphs-widget.c (check_valid_item_list_1):
6585 * glyphs-widget.c (widget_validate):
6586 * glyphs-widget.c (combo_box_validate):
6587 * glyphs-widget.c (widget_instantiate):
6588 * glyphs-widget.c (syms_of_glyphs_widget):
6589 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6590 * glyphs-widget.c (image_instantiator_combo_box):
6591 * glyphs-widget.c (image_instantiator_scrollbar):
6592 * glyphs-widget.c (image_instantiator_tab_control):
6593 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6595 support (unimplemented) keyword initial-focus.
6596 reindent long macros.
6598 * glyphs-x.c (x_redisplay_widget):
6599 * glyphs-x.c (x_button_instantiate):
6600 * glyphs-x.c (x_button_redisplay):
6601 * glyphs-x.c (x_progress_gauge_instantiate):
6602 * glyphs-x.c (x_edit_field_instantiate):
6603 * glyphs-x.c (x_combo_box_instantiate):
6604 * glyphs-x.c (x_tab_control_instantiate):
6605 * glyphs-x.c (x_label_instantiate):
6607 * gui-x.c (button_item_to_widget_value):
6608 * gui-x.c (gui_items_to_widget_values_1):
6609 * gui-x.c (gui_item_children_to_widget_values):
6610 * gui-x.c (gui_items_to_widget_values):
6612 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6613 add new flag to gui-parsing routines to indicate whether
6614 accelerator specs should be supported.
6616 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6618 * glyphs.h (struct Lisp_Image_Instance):
6619 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6620 add initial-focus flag.
6623 * gui.c (syms_of_gui):
6624 * gui.c (vars_of_gui):
6625 clean up menu-no-selection-hook.
6628 support delete-dialog-box-hook.
6630 * lread.c (Fload_internal):
6631 * lread.c (locate_file_in_directory_mapper):
6635 * lrecord.h (struct toolbar_button):
6636 * lrecord.h (syms_of_toolbar):
6637 document how to create a new object.
6639 * menubar-msw.c (mswindows_char_is_accelerator):
6640 may be called on frames w/o menus.
6642 * menubar.c (vars_of_menubar):
6643 clean up :filter docs.
6650 * process-nt.c (validate_signal_number):
6651 * process-nt.c (signal_cannot_launch):
6652 * process-nt.c (nt_create_process):
6653 * process-nt.c (nt_send_process):
6654 * process-nt.c (nt_kill_child_process):
6655 * process-nt.c (nt_open_network_stream):
6656 * process-nt.c (syms_of_process_nt):
6658 delete quote-handling. call new lisp code that does it better.
6660 * process-unix.c (connect_to_file_descriptor):
6661 * process-unix.c (allocate_pty):
6662 * process-unix.c (unix_send_process):
6663 * process-unix.c (unix_kill_child_process):
6664 * process-unix.c (unix_open_network_stream):
6665 * process-unix.c (unix_open_multicast_group):
6669 * process.c (Fstart_process_internal):
6670 (2). need to canonicalize process path even if absolute.
6672 * select-msw.c (symbol_to_ms_cf):
6673 * select-msw.c (ms_cf_to_symbol):
6674 * select-msw.c (cf_is_autofreed):
6675 * select-msw.c (mswindows_destroy_selection):
6677 * select.c (syms_of_select):
6679 support dibv5, fix bugs. (from Mike Alexander)
6681 * select.c (Fget_selection_internal):
6682 * select.c (select_convert_out):
6685 * sysdep.c (xemacs_stat):
6690 but keep original stat() here because we provide encapsulation
6694 * sysfile.h (fstat):
6695 remove stat garbage.
6699 don't include tchar.h. it's inappropriate because it makes
6700 compile-time distinctions when we want runtime distinctions.
6701 (we provide our own tchar replacements)
6704 use default object printer for toolbar-button.
6707 make sure we don't encapsulate.
6709 * window.c (vars_of_window):
6710 emphasize that temp-buffer-show-hook is obsolete.
6712 2000-08-05 Martin Buchholz <martin@xemacs.org>
6714 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6715 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6717 * events.c (Fevent_timestamp_lessp):
6718 Not 64-bit clean. Use EMACS_INT, not int.
6720 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
6722 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6723 unsigned int and changed the last enum to
6724 lrecord_type_last_built_in_type.
6725 (lrecord_implementations_table): changed prototype to know how
6726 long the array is supposed to be.
6727 (lrecord_type_count): new unsigned int to keep track of the
6728 current number of lisp lrecord types.
6729 (DEFINE_EXTERNAL_LRECORD):
6730 (DECLARE_EXTERNAL_LRECORD): Added these two for external
6731 dynamic-modules to declare new lisp types. They are the same
6732 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6733 int for each new type, and increment lrecord_type_count by 1.
6735 * alloc.c (lrecord_implementations_table): Changed to reference
6736 lrecord_type_last_built_in_type for the size of the array.
6737 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6739 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6741 * glyphs.h (check_valid_item_list): Renamed from
6742 check_valid_item_list_1.
6744 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6746 * select.c (Qselect_coerce): New.
6747 * select.c (Vselection_coercion_alist): New.
6748 * select.c (syms_of_select): Declare.
6749 * select.c (get-selection-internal): Use it.
6750 Use the new select-coerce functionality.
6752 * select.c (select_coerce): New.
6753 * select.h (select_coerce): Declare.
6754 New function to coerce one type of data into another.
6756 2000-08-03 Martin Buchholz <martin@xemacs.org>
6758 * callproc.c (Fcall_process_internal):
6759 (Fcall_process_internal):
6760 * process-unix.c (unix_create_process):
6761 Save and restore the value of errno, so that error messages are accurate.
6763 2000-08-01 Martin Buchholz <martin@xemacs.org>
6765 * elhash.c (print_hash_table):
6766 Fix printing of hash tables to also use `key-and-value' instead of `t'.
6767 Prettify docstrings and indentation.
6769 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
6771 * window.c (Fwindow_pixel_edges): Subtract frame border and
6774 2000-07-31 Andy Piper <andy@xemacs.org>
6776 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6777 will acknowledge the change.
6779 * glyphs.h: declare tab_control_order_only_changed.
6781 * glyphs-x.c (x_tab_control_redisplay): use
6782 tab_control_order_only_changed.
6784 * glyphs-widget.c (tab_control_order_only_changed): new function.
6786 * glyphs-msw.c (mswindows_tab_control_redisplay): use
6787 tab_control_order_only_changed.
6789 * gui.c (gui_item_equal_sans_selected): new function.
6790 (gui_item_equal): use it.
6792 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6793 :properties in favor of :items..
6795 * glyphs-widget.c (check_valid_item_list): rename from
6796 check_valid_item_list_1.
6797 (check_valid_item_list_1): renamed.
6798 (combo_box_validate): deprecate :properties in favor of :items.
6799 (widget_instantiate): ditto.
6800 (tab_control_update): ditto.
6801 (image_instantiator_combo_box): ditto.
6802 (image_instantiator_tree_view): ditto.
6803 (image_instantiator_tab_control): ditto.
6804 (layout_post_instantiate): remove dead code.
6806 * print.c (debug_print_no_newline): only write to debugger if in
6809 * elhash.c (Fmake_hash_table): update doc string.
6811 * event-msw.c (mswindows_wnd_proc): don't allow processing of
6812 messages whilst in GC. This at least stops XEmacs crashing but has
6813 the potential for wierd behaviour.
6815 2000-07-31 Martin Buchholz <martin@xemacs.org>
6818 Make existence of s&m files optional.
6820 * s/bsd386.h: Remove HAVE_GETLOADAVG.
6821 * s/freebsd.h: Remove HAVE_GETLOADAVG.
6822 * s/gnu.h: Remove HAVE_GETLOADAVG.
6823 * s/netbsd.h: Remove HAVE_GETLOADAVG.
6824 * s/sol2.h: Remove HAVE_GETLOADAVG.
6825 * lisp.h: Remove getloadavg() declaration.
6827 Include <sys/loadavg.h> if available.
6828 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6829 * config.h.in: Group together getloadavg()-related macros.
6830 Use only configure-time tests to detect getloadavg().
6832 2000-07-30 Martin Buchholz <martin@xemacs.org>
6834 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6836 2000-07-25 Andy Piper <andy@xemacs.org>
6838 * syswindows.h: add tchar.h for native builds.
6840 * frame.c (syms_of_frame): remove set-glyph-image.
6842 * general-slots.h: add Qset_glyph_image.
6844 * glyphs-widget.c (layout_update): add domain arg to
6846 (syms_of_glyphs_widget): remove set-glyph-image.
6848 2000-07-23 Ben Wing <ben@xemacs.org>
6850 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6853 2000-07-22 Andy Piper <andy@xemacs.org>
6855 * symsinit.h: add syms_of_win32().
6857 * gui-msw.c (syms_of_gui_mswindows): remove
6858 Fmswindows_shell_execute.
6859 (Fmswindows_shell_execute): moved to win32.c.
6861 * emacs.c (main_1): add syms_of_win32 ().
6863 * win32.c (init_potentially_nonexistent_functions): rewrite in
6864 compiler-friendly terms.
6865 (Fmswindows_shell_execute): move here from gui-msw.c.
6866 (syms_of_win32): new.
6868 * device-msw.c (Fmswindows_printer_list): clean up args to
6870 Don't include tchar under cygwin or mingw.
6871 (msprinter_default_printer): make cygwin-friendly.
6873 2000-07-21 Andy Piper <andy@xemacs.org>
6875 * glyphs-widget.c (image_instantiator_tree_view): use tab
6876 control's update function.
6877 (layout_property): new function. Retrieve items.
6879 * glyphs-msw.c (mswindows_tree_view_redisplay): new
6880 function. Re-populate the tree view from the pending items.
6882 * glyphs.c (instantiate_image_instantiator): Make sure the domain
6883 is designated the parent if the domain is an image instance. This
6884 is needed so that dirtiness can be cascade up the hierarchy and
6885 thus for layout children to be redisplayed correctly.
6886 (allocate_image_instance): rename glyph -> parent.
6888 * redisplay.h: change redisplay_output_layout signature.
6890 * redisplay-msw.c (mswindows_output_display_block): use domain
6893 * redisplay-x.c (x_output_display_block): use domain arg.
6895 2000-07-10 Andy Piper <andy@xemacs.org>
6897 * window.c (Fset_window_configuration): add comment.
6899 * redisplay-output.c (compare_runes):
6900 (redisplay_output_subwindow): redisplay rather than update subwindow.
6901 (redisplay_output_layout): ditto.
6903 * redisplay-msw.c (mswindows_frame_output_end):
6904 (mswindows_frame_output_end): make defer window pos optional.
6906 * lisp.h: add Flast.
6908 * glyphs.h (struct image_instantiator_methods): add dest_mask top
6909 normalize method. Change update method to be for changed
6910 instantiators. Add redisplay method. Change signature of layout
6912 (struct Lisp_Image_Instance): add instantiator.
6913 (IMAGE_INSTANCE_INSTANTIATOR): new.
6914 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6915 (XIMAGE_INSTANCE_INSTANTIATOR): new.
6916 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6919 (find_instantiator_differences): new function.
6920 (Fset_instantiator_property): new convenience function.
6921 (check_image_instance_structure): strictly check for vector
6923 (normalize_image_instantiator): make non-static.
6924 (instantiate_image_instantiator): pass on dest_mask and use new
6925 signatures for image_instance_layout and friends.
6926 (mark_image_instance): mark the instantiator. Mark the subwindow
6927 face not the widget face.
6928 (image_instance_equal): add instantiator.
6929 (image_instance_hash): ditto.
6930 (allocate_image_instance): ditto.
6931 (Fset_image_instance_property): removed.
6932 (Fimage_instance_file_name): ditto.
6933 (Fcolorize_image_instance): ditto.
6934 (image_instance_layout): add offsets to be set.
6935 (update_image_instance): new function. update an image instance
6936 from its changed instantiator.
6937 (inherit_normalize): add dest_mask.
6938 (xbm_normalize): ditto.
6939 (xface_normalize): ditto.
6940 (xpm_normalize): ditto.
6941 (text_update): set_property -> update.
6942 (image_instantiate): use the glyph identity as a hash key, not the
6944 (glyph_width): use new image_instance_layout signature.
6945 (glyph_ascent): ditto.
6946 (glyph_descent): ditto.
6947 (glyph_height): ditto.
6948 (glyph_query_geometry): ressurrect.
6949 (glyph_layout): ditto.
6950 (redisplay_subwindow): update -> redisplay.
6951 (syms_of_glyphs): add Fset_instantiator_property.
6952 (image_instantiator_format_create): set_property -> update.
6955 (autodetect_normalize): add dest_maks to signature.
6956 (x_redisplay_subwindow): update -> redisplay.
6957 (x_redisplay_widget): ditto.
6958 (x_button_redisplay): ditto.
6959 (x_progress_gauge_redisplay): ditto.
6960 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6962 (console_type_create_glyphs_x): update -> redisplay.
6963 (image_instantiator_format_create_glyphs_x): ditto.
6966 (check_valid_instantiator): disallow glyphs in the instantiator,
6967 they must now be vectors.
6968 (check_valid_instantiator_list): ditto.
6969 (glyph_instantiator_to_glyph): use internal symbol rather than
6971 (widget_update): renamed from widget_set_property. Call cascaded
6973 (redisplay_widget): renamed from update_widget.
6974 (widget_layout): image_instance_layout now takes position as well
6976 (widget_normalize): ditto.
6977 (widget_instantiate): ditto.
6978 (tab_control_query_geometry) ditto.:
6979 (tab_control_update): renamed from tab_control_set_property.
6980 (progress_gauge_update): set_property -> update.
6981 (layout_normalize): rewrite so that child instantiators are
6983 (layout_update): new function. Create glyphs from the normalized
6984 children and cope with any other layout keywords. We do not
6985 instantiate children here that will be take care of by
6986 redisplay_output_layout.
6987 (layout_instantiate): call layout_update and not much else.
6988 (layout_post_instantiate): not sure whether this is needed
6990 (layout_query_geometry): query glyph geometry rather than
6991 image_instance geometry.
6992 (layout_layout): set offsets from pass in parameters. Use glyph
6993 geometry and layout functions rather than image instance ones.
6994 (native_layout_layout): ditto.
6995 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6996 (image_instantiator_widget): set_property -> update.
6997 (image_instantiator_buttons): ditto.
6998 (image_instantiator_progress_guage): ditto.
6999 (image_instantiator_tab_control): ditto.
7000 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7001 (image_instantiator_layout): add update method.
7003 * glyphs-msw.c (bmp_normalize):
7004 (mswindows_resource_normalize): add dest_mask so that it can be
7005 proprogated by layout_normalize.
7006 (begin_defer_window_pos): make optional because it may not be the
7007 right thing to do and it introduces differences with X.
7008 (mswindows_unmap_subwindow): ditto.
7009 (mswindows_map_subwindow): ditto.
7010 (mswindows_redisplay_subwindow): renamed from
7011 mswindows_update_subwindow.
7012 (mswindows_redisplay_widget): ditto.
7013 (mswindows_button_redisplay): renamed from
7014 mswindows_button_update. Update is now what the instantiation
7015 function does for a changed instantiator.
7016 (mswindows_progress_gauge_instantiate): set the progress value
7017 here if appropriate.
7018 (mswindows_tab_control_redisplay): cope with re-ordering of the
7019 members of the tab widget by simply selecting the new top
7020 widget. This makes things appear ok if you click on a tab.
7021 (mswindows_combo_box_instantiate): image_instance_layout now takes
7022 position as well as size.
7023 (mswindows_progress_gauge_redisplay): renamed from
7024 mswindows_progress_gauge_update.
7025 (console_type_create_glyphs_mswindows): fix update -> redisplay.
7026 (image_instantiator_format_create_glyphs_mswindows): ditto.
7028 * glyphs-eimage.c (jpeg_normalize):
7031 (tiff_normalize): add dest_mask so that it can be proprogated by
7036 (hash_table_weakness_validate):
7037 (decode_hash_table_weakness):
7038 (Fhash_table_weakness):
7040 (syms_of_elhash): use Ben's naming scheme for hashtable types..
7042 * console.h (struct console_methods): move update_* to
7045 2000-07-20 Ben Wing <ben@xemacs.org>
7047 * *.[ch] (XSETOBJ): remove unused middle argument.
7048 lisp-disunion.h: correct wrap_object() to one argument.
7050 2000-07-15 Ben Wing <ben@xemacs.org>
7053 * s/cygwin32.h (CYGWIN_CONV_PATH):
7054 Add missing logb prototype for v1.1.
7055 Use post-b20 names and alias to pre-b20 names when pre-b20.
7057 * s/windowsnt.h: [5].
7059 2000-07-15 Ben Wing <ben@xemacs.org>
7061 * Makefile.in.in (x_objs):
7062 * Makefile.in.in (sheap_objs):
7063 * Makefile.in.in (objs):
7064 added win32.o, cosmetic cleanups.
7066 * alloc.c (Fmake_byte_code):
7067 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7068 etc. macros which declare their own args now.
7070 * alloc.c (syms_of_alloc):
7071 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7074 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7076 * buffer.c (Fget_file_buffer):
7077 Fixed GCPRO problem.
7079 * buffer.c (get_truename_buffer):
7080 Fixed comment about GC checking.
7082 * buffer.c (syms_of_buffer):
7083 Undeclared those dedicated frame funs.
7087 Define convenience macros for internal/external conversions.
7088 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7089 and Qenvironment_variable_encoding for cleaner code.
7092 Remove dedicated-frame; in lisp.
7094 * bytecode.c (funcall_compiled_function):
7097 * bytecode.c (syms_of_bytecode):
7101 * console-msw.c (mswindows_show_console): Rewrote.
7103 * console-msw.c (Fmswindows_debugging_output): New.
7104 Sends to OutputDebugString (special MSWin debugger interface).
7106 * console-msw.c (Fmswindows_message_box):
7107 Fixed stupid bugs so it works when called from kill-emacs.
7109 * console-msw.c (syms_of_console_mswindows):
7110 Declare Fmswindows_debugging_output.
7113 New MSWin prototypes.
7115 * console-msw.h (struct mswindows_frame):
7116 New entry last-click-mods for improved button-modifier support.
7118 * console-msw.h (FRAME_MSWINDOWS_POPUP):
7119 New struct entry `popup' with corresponding accessor.
7122 * console-x.c (split_up_display_spec):
7123 * console-x.c (get_display_arg_connection):
7124 * console-x.c (x_semi_canonicalize_console_connection):
7125 * console-x.c (x_canonicalize_device_connection):
7126 [[[6]]]: Change char to more specific type.
7127 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7129 * console-x.c (x_semi_canonicalize_console_connection):
7130 * console-x.c (x_canonicalize_device_connection):
7131 [[[9]]]: Fix up error signalling to use new structured error system.
7134 [[[4]]]: Define codesys aliases:
7135 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7136 Qx_color_name_encoding, Qx_display_name_encoding.
7138 * console.h (struct console_methods):
7139 New method make_dialog_box_internal supersedes older
7140 popup_dialog_box method.
7143 Define many new errors, part of new structured errors.
7145 * data.c (init_errors_once_early):
7146 * data.c (syms_of_data):
7149 * device-msw.c (mswindows_init_device):
7150 [[[5]]]: Cleanup to support NT 3.51.
7152 * device-msw.c (decode_devmode): Cleanup.
7154 * device-msw.c (mswindows_handle_print_setup_dialog_box):
7155 * device-msw.c (mswindows_handle_print_dialog_box):
7156 * device-msw.c (mswindows_handle_page_setup_dialog_box):
7157 * device-msw.c (syms_of_device_mswindows):
7158 Delete the dialog box primitives recently introduced by Kirill and
7159 instead interface to general dialog box interface.
7162 * device-x.c (compute_x_app_name):
7163 * device-x.c (x_init_device):
7164 * device-x.c (Fx_valid_keysym_name_p):
7165 * device-x.c (Fx_set_font_path):
7169 * device.h (wrap_device): New.
7170 First of its kind; meant to replace XSETDEVICE.
7172 * dialog-msw.c: Many file-dialog symbols.
7174 * dialog-msw.c (mswindows_register_popup_frame): New.
7175 * dialog-msw.c (mswindows_is_dialog_msg): New.
7176 For supporting kbd traversal in dialog boxes.
7178 * dialog-msw.c (dialog_proc):
7179 Support hitting ESC in dialogs.
7181 * dialog-msw.c (struct):
7182 Common dialog box errors.
7184 * dialog-msw.c (handle_file_dialog_box): New.
7185 Add file dialog code.
7187 * dialog-msw.c (handle_question_dialog_box):
7188 Redo existing code to support new question dialog syntax.
7190 * dialog-msw.c (console_type_create_dialog_mswindows):
7191 We support new dialog console method.
7193 * dialog-msw.c (syms_of_dialog_mswindows):
7194 * dialog-msw.c (vars_of_dialog_mswindows):
7195 New file dialog symbols, vars.
7198 * dialog-x.c (maybe_run_dbox_text_callback):
7199 * dialog-x.c (dbox_descriptor_to_widget_value):
7200 * dialog-x.c (x_make_dialog_box_internal):
7201 * dialog-x.c (console_type_create_dialog_x):
7202 Mule-ize entire file.
7203 Redo to support question dialog syntax.
7207 * dialog.c (Fmake_dialog_box_internal):
7208 * dialog.c (syms_of_dialog):
7209 Kill old popup-dialog-box, replace with new primitive.
7210 Just call device method or signal error.
7212 * eldap.c (Fldap_open):
7213 * eldap.c (Fldap_search_basic):
7214 * eldap.c (Fldap_add):
7215 * eldap.c (Fldap_modify):
7220 * emacs.c (make_arg_list_1):
7221 * emacs.c (make_arg_list):
7222 Mule-ize call to dll_init().
7226 * emacs.c (make_argc_argv):
7227 * emacs.c (free_argc_argv):
7228 * emacs.c (init_cmdargs):
7230 * emacs.c (Fkill_emacs):
7231 * emacs.c (Fdump_emacs):
7232 Update comments about what can be used in syms_* etc.
7233 Call init_win32() when necessary.
7234 Fix up MS Win dialog box in kill-buffer to actually work right.
7245 * eval.c (condition_case_3):
7247 * eval.c (function_argcount):
7248 * eval.c (funcall_lambda):
7251 * eval.c (type_error): New.
7252 * eval.c (maybe_type_error): New.
7253 * eval.c (continuable_type_error): New.
7254 * eval.c (maybe_continuable_type_error): New.
7255 * eval.c (type_error_with_frob): New.
7256 * eval.c (maybe_type_error_with_frob): New.
7257 * eval.c (continuable_type_error_with_frob): New.
7258 * eval.c (maybe_continuable_type_error_with_frob): New.
7259 New functions for use with structured errors.
7262 * event-Xt.c (x_event_to_emacs_event):
7263 Buttons are now modifiers too.
7265 * event-Xt.c (emacs_Xt_current_event_timestamp):
7266 Implement new event method.
7267 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7270 * event-msw.c (ntpipe_shove_writer): [5].
7271 * event-msw.c (mswindows_enqueue_mouse_button_event):
7272 * event-msw.c (mswindows_drain_windows_queue):
7273 * event-msw.c (mswindows_wnd_proc): [7].
7274 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7275 * event-msw.c (mswindows_modifier_state):
7276 Throughout: support new button modifiers.
7278 * event-msw.c (emacs_mswindows_current_event_timestamp):
7279 Implement new event method.
7280 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7283 * event-stream.c (event_stream_current_event_timestamp): New.
7284 * event-stream.c (maybe_kbd_translate): New functionality.
7285 * event-stream.c (vars_of_event_stream):
7286 Document new kbd-translate-table functionality.
7288 * event-stream.c (Fcurrent_event_timestamp): New.
7289 New primitive for use in fabricated events.
7290 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7292 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7295 * events.c (Fmake_event):
7296 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7300 * events.c (format_event_object): fix gcc warnings.
7302 * events.c (Fevent_timestamp): Document new primitives.
7304 * events.c (TIMESTAMP_HALFSPACE): New.
7306 * events.c (Fevent_timestamp_lessp): New. New primitive for
7307 comparing timestamps correctly (half-space algorithm).
7309 * events.c (Fevent_modifier_bits): Doc fix.
7311 * events.c (Fevent_modifiers): Major doc addition.
7312 * events.c (event_x_y_pixel_internal): Typo fix.
7313 * events.c (syms_of_events): Declare new primitives.
7316 Update long comment for button modifiers, timestamps.
7318 * events.h (struct event_stream):
7319 New current_event_timestamp method.
7322 * extents.c (extent_in_region_p):
7323 * extents.c (decode_extent):
7324 * extents.c (Fset_extent_parent):
7325 * extents.c (decode_map_extents_flags):
7329 * extents.c (struct extent_at_arg):
7330 * extents.c (decode_extent_at_flag):
7331 * extents.c (extent_at_mapper):
7332 * extents.c (extent_at_bytind):
7333 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7334 * extents.c (Fextents_at): New primitive. [9].
7335 * extents.c (symbol_to_glyph_layout): [9].
7336 Support new primitive `extents-at'.
7339 * extents.c (get_text_property_bytind):
7340 extent_at_bytind has another arg.
7343 * extents.c (syms_of_extents): New primitive.
7345 * file-coding.c (Fmake_coding_system): [1].
7346 * file-coding.c (subsidiary_coding_system): fix gcc warning
7347 * file-coding.c (syms_of_file_coding): [2].
7349 * fileio.c (Fexpand_file_name):
7350 * fileio.c (Fsysnetunam):
7351 * fileio.c (Ffile_exists_p):
7352 * fileio.c (Ffile_executable_p):
7353 * fileio.c (Fverify_visited_file_modtime):
7356 * fileio.c (syms_of_fileio): [2].
7358 * filelock.c (lock_file_1):
7359 * filelock.c (current_lock_owner):
7360 * filelock.c (lock_if_free):
7361 * filelock.c (lock_file):
7362 * filelock.c (unlock_file):
7365 * fns.c (concat): Fix gcc warning.
7368 * fns.c (Fold_member):
7370 * fns.c (Fold_memq):
7371 * fns.c (memq_no_quit):
7373 * fns.c (Fold_assoc):
7375 * fns.c (Fold_assq):
7376 * fns.c (assq_no_quit):
7378 * fns.c (Fold_rassoc):
7380 * fns.c (Fold_rassq):
7381 * fns.c (rassq_no_quit):
7383 * fns.c (Fold_delete):
7385 * fns.c (Fold_delq):
7386 * fns.c (delq_no_quit):
7387 * fns.c (Fremassoc):
7389 * fns.c (remassq_no_quit):
7390 * fns.c (Fremrassoc):
7391 * fns.c (Fremrassq):
7392 * fns.c (remrassq_no_quit):
7397 * frame-msw.c (mswindows_init_frame_1):
7398 * frame-msw.c (mswindows_delete_frame):
7399 Register popups with dialog code so keyboard traversing works.
7401 * frame-tty.c (tty_raise_frame_no_select): [1].
7404 * frame-x.c (x_set_frame_text_value):
7405 * frame-x.c (x_set_frame_properties):
7406 * frame-x.c (x_create_widgets):
7410 * frame.c (Fmouse_pixel_position): Minor doc fixes.
7412 * frame.h (wrap_frame): New.
7413 Macro like wrap_device.
7416 * general.c (SYMBOL):
7417 * general.c (syms_of_general):
7418 Major reorg. This is now just a wrapper and symbols themselves
7419 are listed in general-slots.h.
7421 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7422 * glyphs-msw.c (mswindows_resource_instantiate): [5].
7424 * glyphs-msw.c (mswindows_native_layout_instantiate):
7425 Add DS_CONTROL so keyboard traversal will work.
7428 * glyphs-widget.c (syms_of_glyphs_widget):
7429 Move some symbols to general-slots.h.
7432 * glyphs-x.c (xbm_instantiate_1):
7433 * glyphs-x.c (x_xbm_instantiate):
7434 * glyphs-x.c (x_xface_instantiate):
7435 * glyphs-x.c (autodetect_instantiate):
7436 * glyphs-x.c (cursor_font_instantiate):
7437 * glyphs-x.c (x_update_widget):
7438 * glyphs-x.c (x_widget_instantiate):
7439 * glyphs.c (bitmap_to_lisp_data):
7440 * glyphs.c (pixmap_to_lisp_data):
7443 * glyphs.c (syms_of_glyphs):
7447 * gui-x.c (print_widget_value):
7448 * gui-x.c (menu_separator_style_and_to_external):
7449 * gui-x.c (add_accel_and_to_external):
7450 * gui-x.c (button_item_to_widget_value):
7451 * gui-x.c (gui_items_to_widget_values_1):
7452 * gui-x.c (gui_items_to_widget_values):
7453 * gui-x.c (syms_of_gui_x):
7454 * gui-x.c (vars_of_gui_x):
7455 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
7459 Muleize, prototype changes matching gui-x.c.
7462 * gui.c (separator_string_p):
7463 * gui.c (gui_item_add_keyval_pair):
7464 * gui.c (make_gui_item_from_keywords_internal):
7465 * gui.c (signal_too_long_error):
7466 * gui.c (parse_gui_item_tree_item):
7467 * gui.c (syms_of_gui):
7468 * gui.c (vars_of_gui):
7470 menu-no-selection-hook moved here (used by MSWin).
7471 Move some symbols to general-slots.h.
7475 * insdel.c (get_buffer_pos_char):
7476 * insdel.c (get_buffer_range_char):
7479 * keymap.c (keymap_lookup_directly):
7480 * keymap.c (keymap_store):
7481 * keymap.c (ensure_meta_prefix_char_keymapp):
7482 * keymap.c (describe_map):
7484 Support new button modifiers.
7486 * lisp-disunion.h (wrap_object):
7487 * lisp-disunion.h (XSETOBJ):
7488 Rename make_obj to wrap_object.
7491 * lisp-union.h (make_int):
7492 * lisp-union.h (make_char):
7493 Support wrap_object.
7496 * lisp.h (LIST_LOOP):
7497 * lisp.h (EXTERNAL_LIST_LOOP):
7498 * lisp.h (LIST_LOOP_2):
7499 * lisp.h (EXTERNAL_LIST_LOOP_1):
7500 * lisp.h (EXTERNAL_LIST_LOOP_2):
7501 * lisp.h (EXTERNAL_LIST_LOOP_3):
7502 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7503 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7504 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7505 * lisp.h (EXTERNAL_ALIST_LOOP_5):
7506 * lisp.h (EXTERNAL_ALIST_LOOP_6):
7507 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7508 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7509 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7510 * lisp.h (struct Lisp_Symbol):
7511 * lisp.h (maybe_continuable_error_with_frob):
7512 Fix up section comments.
7513 Add new types for char to indicate usage.
7514 Delete symbols auto-generated from general-slots.h.
7515 Add prototypes for structured error functions.
7516 Add long comments describing looping macros and change interface
7517 so that lvalues are automatically declared.
7518 Add NO_DECLARE macro in case callers want to declare lvalues
7521 * lread.c (read_syntax_error):
7522 * lread.c (continuable_read_syntax_error):
7523 * lread.c (read_structure):
7524 * lread.c (sequence_reader):
7525 * lread.c (read_list_conser):
7526 * lread.c (read_compiled_function):
7527 Rename syntax_error and continuable_syntax_error to avoid clash
7528 with same-named structured error functions.
7530 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7531 * menubar-msw.c (populate_menu_add_item):
7532 * menubar-msw.c (populate_or_checksum_helper):
7537 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7538 Mule-ize whole file.
7540 * menubar.c (Fnormalize_menu_item_name): Add optimization.
7542 * mule-charset.c (Fmake_charset):
7543 * mule-wnnfns.c (Fwnn_set_param):
7546 * ntproc.c (create_child):
7547 * ntproc.c (Fwin32_set_current_locale):
7548 Add comments portending doom.
7551 * objects-msw.c (old_font_enum_callback_2):
7552 * objects-msw.c (font_enum_callback_1):
7553 * objects-msw.c (mswindows_enumerate_fonts):
7557 * objects-x.c (allocate_nearest_color):
7558 * objects-x.c (x_parse_nearest_color):
7559 * objects-x.c (x_initialize_color_instance):
7560 * objects-x.c (x_print_color_instance):
7561 * objects-x.c (x_finalize_color_instance):
7562 * objects-x.c (x_valid_color_name_p):
7563 * objects-x.c (x_initialize_font_instance):
7564 * objects-x.c (x_print_font_instance):
7565 * objects-x.c (valid_x_font_name_p):
7566 * objects-x.c (truename_via_FONT_prop):
7567 * objects-x.c (truename_via_random_props):
7568 * objects-x.c (truename_via_XListFonts):
7569 * objects-x.c (x_font_truename):
7570 * objects-x.c (x_font_instance_truename):
7571 * objects-x.c (x_font_instance_properties):
7572 * objects-x.c (x_list_fonts):
7573 * objects-x.c (x_find_charset_font):
7574 Mule-ize entire file.
7581 * print.c (std_handle_out_external):
7582 * print.c (debug_print_no_newline):
7583 * print.c (syms_of_print):
7584 Output to all debugger kinds in debug-print.
7585 Fix console-output code under MSWin to actually work.
7587 * process-nt.c (send_signal):
7588 * process-nt.c (nt_create_process):
7589 Use newer Unicode macros.
7591 * process-unix.c (unix_create_process):
7592 * process-unix.c (unix_canonicalize_host_name):
7593 * process-unix.c (unix_open_network_stream):
7599 * search.c (syms_of_search):
7602 * select-msw.c (mswindows_destroy_selection):
7605 * select-x.c (symbol_to_x_atom):
7608 * select.c (syms_of_select):
7611 * sound.c (Fplay_sound_file):
7615 * specifier.c (decode_specifier_type):
7616 * specifier.c (Fvalid_specifier_locale_type_p):
7617 * specifier.c (check_valid_locale_or_locale_type):
7618 * specifier.c (decode_locale):
7619 * specifier.c (decode_locale_type):
7620 * specifier.c (decode_locale_list):
7621 * specifier.c (check_valid_domain):
7622 * specifier.c (decode_specifier_tag_set):
7623 * specifier.c (Fcanonicalize_tag_set):
7624 * specifier.c (Fdefine_specifier_tag):
7625 * specifier.c (Fspecifier_tag_predicate):
7626 * specifier.c (check_valid_inst_list):
7627 * specifier.c (check_valid_spec_list):
7628 * specifier.c (decode_how_to_add_specification):
7629 * specifier.c (check_modifiable_specifier):
7630 * specifier.c (specifier_add_spec):
7631 * specifier.c (boolean_validate):
7632 * specifier.c (display_table_validate):
7635 * specifier.c (syms_of_specifier):
7636 Move some symbols to general-slots.h.
7640 * symbols.c (Fmapatoms):
7641 * symbols.c (Fapropos_internal):
7644 * symbols.c (set_default_buffer_slot_variable):
7645 * symbols.c (set_default_console_slot_variable):
7648 * symbols.c (defsymbol_massage_name_1):
7649 * symbols.c (defkeyword_massage_name):
7650 * symbols.c (deferror_1):
7651 * symbols.c (deferror):
7652 * symbols.c (deferror_massage_name_and_message):
7654 * symeval.h (DEFSYMBOL):
7655 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7657 * symbols.c (syms_of_symbols):
7661 * symsinit.h (init_win32): New.
7662 Also new is syms_of_dialog_mswindows.
7665 Add new Unicode macros, missing Cygwin wide-char functions,
7666 convenience conversion macros for Qmswindows_tstr, macros for
7667 encapsulating required MSWin <-> Cygwin filename conversions,
7668 prototype for dynamically-extracted (not in NT 3.51) functions.
7673 * tooltalk.c (Fadd_tooltalk_message_arg):
7674 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7675 * tooltalk.c (Fadd_tooltalk_pattern_arg):
7678 * tooltalk.c (syms_of_tooltalk):
7682 * unexnt.c (unexec):
7683 Fix up headers, declaration of unexec() to be more standard.
7685 2000-07-20 Martin Buchholz <martin@xemacs.org>
7687 * offix.h: Revert change to guard macros - they're used in offix.c!
7689 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7691 * lisp.h: Defsubred Fdelete.
7693 * console-msw.h: (msprinter_default_printer): Added.
7695 * console-msw.c (msprinter_canonicalize_console_connection):
7696 (msprinter_canonicalize_device_connection): Added.
7698 * device-msw.c (msprinter_default_printer):
7699 (Fmswingows_get_default_printer):
7700 (signal_enum_priner_error):
7701 (Fmswingows_printer_list): Added.
7703 2000-07-19 Martin Buchholz <martin@xemacs.org>
7705 * XEmacs 21.2.35 is released.
7707 2000-07-19 Martin Buchholz <martin@xemacs.org>
7709 * select-x.c (x_handle_selection_request):
7710 Text selected in xemacs and pasted into xterm failed to appear.
7711 Spelling fixes and cosmetic changes.
7713 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7715 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7716 XEmacs frame (fix for doubling chars in dialog boxes).
7718 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7720 * select.c (select_convert_in, select_convert_out):
7721 Don't call intern() every time.
7723 * select.c (Qselect_convert_in, Qselect_convert_out): New.
7724 * select.c (vars_of_select): Initialise them.
7726 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7728 * select.c (selection-coercible-types): New.
7730 * select.c (own-selection-internal):
7731 * select.c (get-selection-internal):
7732 MULE bug fix - these should default to COMPOUND_TEXT and not
7733 STRING for MULE. I think.
7735 * select.c (select_convert_out): Use selection-coercible-types
7736 to find types that we can attempt to perform coercions on.
7738 2000-07-18 Martin Buchholz <martin@xemacs.org>
7742 Add coding: cookie to identify encoding.
7744 * mule-canna.c (CANNA_mode_keys): make static.
7745 Use proper prototypes, even for functions of no arguments.
7746 Remove external prototype for Fding().
7748 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7750 * select.c (syms_of_select): Add missing DEFSUBR.
7752 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7754 * select.c (get_selection_internal, own_selection_internal):
7755 Make the type default to STRING, rather than placing a nil type
7756 into Vselection_alist.
7758 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7760 * gpmevent.c (tty_selection_exists_p):
7761 * gpmevent.c (tty_own_selection):
7762 Updated parameter lists.
7764 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7766 * select.h (selection-alist): Removed declaration.
7768 * select.h (get_local_selection):
7769 * select.c (get_local_selection):
7772 * select.h (convert_selection): Removed declaration.
7773 * select.c (convert_selection): Removed.
7774 This function belongs in Lisp.
7776 * select.h (select_convert_in): Declare.
7777 * select.h (select_convert_out): Declare.
7778 * select.c (select_convert_in): New.
7779 * select.c (select_convert_out): New.
7780 New conversion functions for other files to call.
7782 * select.h (select_notify_buffer_kill): Declare.
7783 * select.c (select_notify_buffer_kill): New.
7784 New functions that get called from kill-buffer.
7786 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7787 X-specific lisp code.
7789 * select.h: Declare some of the lisp-visible functions for
7792 * select.c (clean_local_selection_data): Removed. This was
7793 a disgusting function, and previously should have been in
7794 select-x.c in any case. The functionality is now provided
7795 in select-convert-from-integer (select.el).
7797 * select.c (available-selection-types): Fixed stupidity where
7798 INTEGER and ATOM got added twice. Also add STRING when we see an
7801 * select.c (get-selection-internal): Removed symbol stripping. No
7802 longer causes conversion when data comes from the internal cache.
7804 * select.c (syms_of_select): Added new functions.
7806 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7807 error checking - previously this called abort!
7809 * select-x.c (x_own_selection): Changed comment.
7811 * select-x.c (x_handle_selection_request): Use select_convert_out.
7812 Don't mess with selection-alist; it's an internal variable of select.c.
7814 * select-x.c (x_get_foreign_selection): Use select_convert_in.
7816 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7817 rather than messing with selection-alist.
7819 * select-msw.c (mswindows_get_foreign_selection):
7820 Use TO_INTERNAL_FORMAT rather than hacking.
7822 2000-07-14 Martin Buchholz <martin@xemacs.org>
7824 * process-unix.c (unix_open_multicast_group):
7825 (unix_open_multicast_group): Remove useless casts.
7827 2000-07-13 Martin Buchholz <martin@xemacs.org>
7829 * sound.c (Fplay_sound): Fix `unused variable' warning.
7831 * emacs.c (main): Use correct type for _environ on SCO5.
7833 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7835 * console.h (own_selection_method):
7836 * console.h (selection_exists_p_method):
7837 * console.h (available_selection_types_method): New.
7838 * console.h (register_selection_data_type_method): New.
7839 * console.h (selection_data_type_name): New.
7841 * console-msw.h (mswindows_destroy_selection): Declare it. New
7842 function & alist to track GlobalAlloc()'d handles that need
7843 releasing when the clipboard data gets replaced or emptied.
7845 * event-msw.c (mswindows_wnd_proc): Call it.
7847 * lisp.h, general.c (Qappend): New symbol representing a
7850 * select.c (own-selection-internal):
7851 * select.c (selection-exists-p):
7852 * select.c (available-selection-types): New.
7853 * select.c (register-selection-data-type): New.
7854 * select.c (selection-data-type-name): New. New functions to deal
7855 with device-specific selection data formats.
7856 * select.c (selection-converter-out-alist): Renamed.
7857 * select.c (selection-converter-in-alist): New.
7858 * select.c (selection-appender-alist): New. Added new alists.
7859 * select.c (syms_of_select, vars_of_select): Added new symbols &
7861 * select.c (get_local_selection): Split.
7862 * select.c: Removed spurious type checking - selections may now be
7863 of any type, not just strings.
7864 * select.c (own-selection-internal):
7866 * select.h, select.c (convert_selection): New. Created
7867 convert_selection() function based on get_local_selection().
7868 * select.h, select.c (QCF_*): New symbols representing mswindows
7870 * select.h, select.c (Qreplace_all, Qreplace_existing): New
7871 symbols representing `how-to-add' modes.
7873 * select-msw.c (x_sym_p): New.
7874 * select-msw.c (symbol_to_ms_cf): New.
7875 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7876 symbols & clipboard formats. Can also handle string names.
7877 * select-msw.c (mswindows_own_selection):
7878 * select-msw.c (mswindows_selection_exists_p):
7879 Added `data-type' parameter. Use it.
7880 * select-msw.c (mswindows_available_selection_types): New.
7881 * select-msw.c (mswindows_register_selection_data_type): New.
7882 * select-msw.c (mswindows_selection_data_type_name): New.
7883 * select-msw.c (mswindows_own_selection):
7884 * select-msw.c (mswindows_get_foreign_selection):
7885 * select-msw.c (mswindows_selection_exists_p): Rewrote.
7886 * select-msw.c (console_create_select_mswindows): Added new methods.
7887 * select-msw.c (mswindows_destroy_selection): New.
7888 * select-msw.c (Vhandle_alist): New list.
7889 * select-msw.c (mswindows_own_selection):
7891 * select-x.c (x_own_selection):
7892 * select-x.c (x_selection_exists_p):
7893 * select-x.c: Added some comments about maybe using new
7895 * select-x.c (x_own_selection):
7897 * specifier.c: Remove definition of Qappend (now in general.c)
7898 * specifier.c (syms_of_specifier): Remove Qappend.
7900 2000-07-12 Martin Buchholz <martin@xemacs.org>
7902 * config.h.in: Add socklen_t.
7904 * s/decosf4-0.h: No special compiler flags needed or desired.
7905 In particular, undefine _BSD for DEC OSF 4.0.
7907 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7909 * redisplay-msw.c (msprinter_frame_output_end): Added.
7910 (console_type_create_redisplay_mswindows): Referred the above.
7912 * frame.c (setup_frame_without_minibuffer): Do not create a
7913 default minibuffer frame on a printer device.
7915 * frame-msw.c (apply_dc_geometry): Added.
7916 (msprinter_start_page):
7917 (msprinter_init_frame_3):
7918 (msprinter_eject_page): Use it.
7920 * console-msw.h (struct msprinter_frame): Added pix_left and top,
7921 and removed residual duplex and orientation properties.
7923 2000-07-11 Martin Buchholz <martin@xemacs.org>
7925 * eval.c (function_argcount): Work around a DEC CC compiler bug.
7927 * unexalpha.c: Remove system prototypes from C sources!
7929 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
7931 * eval.c: Remove references to M-x edit-options in DEFUNs for
7932 `defvar' and `defconst'.
7934 2000-07-09 Martin Buchholz <martin@xemacs.org>
7936 * config.h.in: Remove SMART_INCLUDE hackery.
7939 * config.h.in: Don't use SMART_INCLUDE.
7941 * postgresql.h: Include libpq-fe.h here. Fix typo.
7942 * inline.c: Simply #include "postgresql.h"
7944 - Don't use SMART_INCLUDE
7945 - Use simply "const".
7946 - Use standard doc string conventions.
7947 - Use correct type for result of PQstatus.
7949 2000-07-09 Martin Buchholz <martin@xemacs.org>
7951 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7953 C++ compilation changes.
7954 * config.h.in (EXTERN_C): Define.
7955 * config.h.in (not): This is also a C++ keyword.
7956 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7957 * cm.c: Use EXTERN_C.
7958 * redisplay-tty.c: Use EXTERN_C.
7959 * sysdep.c: Use EXTERN_C. Remove Gould support.
7961 2000-07-09 Martin Buchholz <martin@xemacs.org>
7963 * general.c: Remove duplicate definition for Qfunction.
7965 2000-07-08 Ben Wing <ben@xemacs.org>
7967 * device-msw.c (msprinter_init_device):
7968 * device-msw.c (sync_printer_with_devmode):
7969 * device-msw.c (handle_devmode_changes):
7970 * device-msw.c (print_dialog_worker):
7971 * device-msw.c (Fmsprinter_apply_settings):
7972 * device-msw.c (hash_devmode):
7973 * device-msw.c (Fmsprinter_settings_despecialize):
7974 use Qmswindows_tstr, not Qctext.
7976 * vm-limit.c (check_memory_limits):
7977 avoid infinite loop printing warning messages.
7979 2000-07-05 Craig Lanning <lanning@scra.org>
7981 * Makefile.in.in: Add support for including the Windows resources
7982 when building with the cygwin and mingw targets.
7984 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7985 not set or not correct.
7986 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7987 (init_initial_directory): Don't try to use $PWD on the
7988 WIN32_NATIVE target.
7991 [[Add -mwindows to eliminate console window.]] not required --ben
7992 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7993 (MAIL_USE_POP): removed; now handled by configure.
7995 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7996 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7997 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7998 (MAIL_USE_POP): removed; now handled by configure.
7999 (ENCAPSULATE_STAT): from Dan Holmsand, added.
8000 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8001 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8003 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8004 up from <winsock.h> via systime.h.
8005 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8006 (getpagesize): from Dan Holmsand, added.
8007 Added #endif which was left dangling by Ben's mega patch; added
8008 comment to help prevent this in the future.
8010 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8012 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8014 * console-msw.h (struct mswindows_device): Removed unnecessary
8015 cached device geometry values.
8016 Added update_tick and an accessor macro.
8017 (Lisp_Devmode): Added lrecord declaration.
8018 (struct msprinter_device): Contain devmode as a Lisp object.
8019 Added mswindows_get_selected_frame_hwnd();
8021 * console.h (struct console_methods): Indentation nitpicking.
8023 * device-msw.c (mswindows_init_device): Do not initialize geometry
8024 cache. Initialize update tick.
8025 (mswindows_device_system_metrics): Ask the device for its geometry.
8026 (global_free_2_maybe):
8027 (devmode_to_hglobal):
8028 (handle_printer_changes):
8029 (ensure_not_printing):
8030 (print_dialog_worker):
8031 (Fmsprinter_print_setup_dialog):
8032 (Fmsprinter_print_dialog):
8035 (Fmsprinter_page_setup_dialog): Added functions.
8036 (sync_printer_with_devmode):
8037 (handle_devmode_changes):
8038 (Fmsprinter_get_settings):
8039 (Fmsprinter_select_settings):
8040 (Fmsprinter_apply_settings):
8042 (Fmsprinter_settings_copy):
8043 (Fmsprinter_settings_despecialize):
8047 (hash_devmode): Added functions
8048 (syms_of_device_mswindows): Init devmode lrecord class.
8050 * device.h: Added an exfun for find-device.
8052 * event-msw.c (mswindows_wnd_proc): Do not update the cached
8053 geometry; although, recreate the device compatible DC.
8055 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8056 (msprinter_init_frame_3):
8057 (msprinter_frame_property):
8058 (msprinter_internal_frame_property_p):
8059 (msprinter_frame_properties):
8060 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8061 print job properties (will move to device settings).
8063 * lisp.h: Added symbols.
8065 * general.c (syms_of_general): Declared them.
8067 * hash.c (string_hash): Added.
8069 * lrecord.h (lrecord_type): Added devmode lrecord type.
8071 2000-07-02 Mike Sperber <mike@xemacs.org>
8073 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8076 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
8078 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8081 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
8083 * data.c (Fstring_to_number): Don't recognize floating point if
8086 2000-06-22 Martin Buchholz <martin@xemacs.org>
8088 * glyphs-widget.c (tab_control_query_geometry):
8089 (widget_query_geometry):
8090 (button_query_geometry):
8091 * glyphs.c (text_query_geometry):
8092 Enforce type correctness.
8094 2000-06-18 Martin Buchholz <martin@xemacs.org>
8096 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8097 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8099 2000-06-17 Martin Buchholz <martin@xemacs.org>
8101 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8102 conflicts with gcc's fixincluded version of FOO.h.
8104 * glyphs.h (image_instance_geometry): Remove trailing `,'
8106 2000-06-08 Mike Alexander <mta@arbortext.com>
8108 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8109 (shove_thread): Don't write the same output twice
8110 (make_ntpipe_output_stream): Increase priority of shove thread
8111 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8113 (ntpipe_shove_closer): Don't delete the pipe until we're done with
8116 2000-06-12 Ben Wing <ben@xemacs.org>
8118 * s\mingw32.h (sigset):
8119 * s\windowsnt.h (sigset):
8120 rename msw_ to mswindows_ for consistency with general convention.
8122 2000-06-12 Ben Wing <ben@xemacs.org>
8125 * console-msw.c (mswindows_get_console_hwnd):
8126 * console-msw.c (mswindows_ensure_console_allocated):
8127 * console-msw.c (mswindows_hide_console):
8128 * console-msw.c (mswindows_show_console):
8129 * console-msw.c (mswindows_ensure_console_buffered):
8130 * console-msw.c (mswindows_output_console_string):
8131 * console-msw.c (mswindows_windows9x_p):
8133 * device-msw.c (mswindows_get_workspace_coords):
8134 * device-msw.c (mswindows_device_system_metrics):
8135 * dialog-msw.c (mswindows_popup_dialog_box):
8136 * event-msw.c (mswindows_wnd_proc):
8137 * frame-msw.c (mswindows_size_frame_internal):
8138 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8139 * menubar-msw.c (displayable_menu_item):
8140 * menubar-msw.c (mswindows_char_is_accelerator):
8142 * nt.c (mswindows_sigset):
8143 * nt.c (mswindows_sigrelse):
8144 * nt.c (mswindows_sigpause):
8145 * nt.c (mswindows_raise):
8146 * nt.c (timer_proc):
8148 * ntproc.c (find_child_console):
8149 * ntproc.c (sys_kill):
8151 * print.c (std_handle_out_external):
8152 * process-nt.c (find_child_console):
8153 * process-nt.c (send_signal_the_95_way):
8154 * process-nt.c (ensure_console_window_exists):
8155 * process-nt.c (nt_create_process):
8157 rename msw_ to mswindows_ for consistency with general convention.
8161 include nt.h, not syswindows.h.
8163 * nt.c (mswindows_fstat):
8164 * nt.c (mswindows_stat):
8165 prefix mswindows_ instead of attempting to directly override the
8166 library functions. fix declarations.
8169 include syswindows.h. move some sysdep.h stuff here.
8172 include syswindows.h, not <windows.h>.
8180 * sysdep.c (sys_fstat):
8181 * sysdep.c (sys_stat):
8182 call mswindows versions when appropriate.
8185 move mswin decls to nt.h.
8188 add long comment describing appropriate use of the various windows
8191 2000-06-11 Ben Wing <ben@xemacs.org>
8193 * device-x.c: Correct doc string for sixth arg of x-get-resource.
8195 2000-06-10 Ben Wing <ben@xemacs.org>
8197 * Makefile.in.in (release):
8198 Correction to make sure xemacs.exe always dumped when correct.
8202 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8204 * buffer.c (set_buffer_internal):
8205 [[[[2]]]]: Remove HAVE_FEP code.
8207 * buffer.c (init_initial_directory):
8211 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8215 * callproc.c (call_process_cleanup):
8216 * callproc.c (Fold_call_process_internal):
8217 * callproc.c (child_setup):
8218 * callproc.c (getenv_internal):
8219 * callproc.c (init_callproc):
8220 * callproc.c (vars_of_callproc):
8221 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8222 __CYGWIN32__ -> CYGWIN.
8223 DOS_NT -> WIN32_NATIVE.
8224 Remove MSDOS support/references, converting to WIN32_NATIVE
8226 __MINGW32__ -> MINGW.
8227 Fix windows.h includes.
8228 Remove bogus HAVE_NTGUI.
8234 mswindows_message_outputted added for use in allowing startup
8235 errors on the console to be seen.
8237 * console-msw.c (msw_ensure_console_allocated):
8238 * console-msw.c (msw_output_console_string):
8239 * console-msw.c (DHEADER):
8240 * console-msw.c (DOPAQUE_DATA):
8241 * console-msw.c (DEVENT):
8242 * console-msw.c (DCONS):
8243 * console-msw.c (DCONSCDR):
8244 * console-msw.c (DSTRING):
8245 * console-msw.c (DVECTOR):
8246 * console-msw.c (DSYMBOL):
8247 * console-msw.c (DSYMNAME):
8250 * console-stream.c (stream_init_console):
8251 Fix text/binary problems.
8254 * device-msw.c (mswindows_finish_init_device):
8255 * device-msw.c (mswindows_delete_device):
8258 * device.c (handle_asynch_device_change):
8262 * dgif_lib.c (DGifOpenFileName):
8263 * dgif_lib.c (DGifOpenFileHandle):
8264 * dgif_lib.c (DGifGetLine):
8265 * dgif_lib.c (DGifGetPixel):
8266 Added config.h/lisp.h, fix up includes.
8273 * dired.c (file_name_completion):
8274 * dired.c (Ffile_attributes):
8275 * dired.c (syms_of_dired):
8279 * dumper.c (pdump_file_unmap):
8280 * dumper.c (pdump_load):
8284 * editfns.c (Ftemp_directory):
8285 * editfns.c (user_login_name):
8286 * editfns.c (Fuser_real_login_name):
8287 * editfns.c (get_home_directory):
8290 * elhash.c (finish_marking_weak_hash_tables):
8291 [[[[5]]]]: Fix GCC warnings.
8294 * emacs.c (mswindows_handle_hardware_exceptions):
8295 * emacs.c (make_arg_list_1):
8297 * emacs.c (Fkill_emacs):
8298 * emacs.c (Fdump_emacs):
8300 Fix problems with nested crashes, add long comment.
8302 * event-Xt.c (init_event_Xt_late):
8306 * event-msw.c (mswindows_dde_callback):
8307 * event-msw.c (mswindows_handle_sticky_modifiers):
8308 * event-msw.c (mswindows_wnd_proc):
8312 * events.c (character_to_event):
8316 * fileio.c (Ffile_name_directory):
8317 * fileio.c (Ffile_name_nondirectory):
8318 * fileio.c (directory_file_name):
8319 * fileio.c (Fexpand_file_name):
8320 * fileio.c (Fsubstitute_in_file_name):
8321 * fileio.c (Ffile_name_absolute_p):
8322 * fileio.c (check_executable):
8323 * fileio.c (Ffile_readable_p):
8324 * fileio.c (Ffile_accessible_directory_p):
8325 * fileio.c (Ffile_modes):
8326 * fileio.c (Funix_sync):
8327 * fileio.c (vars_of_fileio):
8330 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8332 Expand getdefdir defn.
8333 Fix bogus rename() comment.
8335 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
8336 to use standard XEmacs include files, e.g. sysfile.h, rather
8337 than system-specific includes.
8343 * frame.c (vars_of_frame):
8347 * getloadavg.c (getloadavg):
8349 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
8350 (We don't use it elsewhere in the code; just add a comment.)
8357 * glyphs-msw.c (mswindows_resource_instantiate):
8360 * glyphs-x.c (x_native_layout_instantiate):
8363 * gui-msw.c (Fmswindows_shell_execute):
8372 * lread.c (locate_file_in_directory_mapper):
8379 * mem-limits.h (get_lim_data):
8391 * nt.c (rva_to_section):
8392 * nt.c (mswindows_executable_type):
8394 Fix closedir() defn.
8397 [[[[8]]]]: *_OK defs moved to sysfile.h.
8406 * print.c (std_handle_out_external):
8410 * process-nt.c (nt_create_process):
8412 try to fix process quoting somewhat.
8414 * process-unix.c (unix_create_process):
8418 * process.c (vars_of_process):
8425 * realpath.c (xrealpath):
8428 * redisplay-tty.c (init_tty_for_redisplay):
8438 * sheap.c (more_static_core):
8439 * sheap.c (report_sheap_usage):
8443 * signal.c (alarm_signal):
8450 * strftime.c (zone_name):
8453 * symsinit.h (init_sunpro):
8457 commctrl.h not in Cygwin b20.1.
8461 * sysdep.c (sys_subshell):
8462 * sysdep.c (init_baud_rate):
8463 * sysdep.c (emacs_get_tty):
8464 * sysdep.c (emacs_set_tty):
8465 * sysdep.c (tty_init_sys_modes_on_device):
8466 * sysdep.c (init_system_name):
8467 * sysdep.c (sys_open):
8468 * sysdep.c (interruptible_open):
8469 * sysdep.c (sys_fopen):
8470 * sysdep.c (sys_mkdir):
8471 * sysdep.c (sys_rename):
8472 * sysdep.c (get_process_times_1):
8479 * sysdir.h (DIRENTRY_NONEMPTY):
8482 * sysdll.c (dll_init):
8488 added text/binary defs.
8494 * sysproc.h (EDESTADDRREQ):
8495 * sysproc.h (poll_fds_for_input):
8512 Always define WIN32_LEAN_AND_MEAN.
8514 * unexcw.c (unexec):
8518 * unexec.c (copy_text_and_data):
8519 * unexec.c (adjust_lnnoptrs):
8523 * unexnt.c (_start):
8526 2000-06-07 Ben Wing <ben@xemacs.org>
8528 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
8529 was used only as a model. We've long since extracted any useful
8530 logic or code out of this. (I just did an exhaustive search.)
8532 * s\msdos.h: Removed.
8534 * s\windows95.h: Removed.
8536 2000-06-10 Ben Wing <ben@xemacs.org>
8540 Don't use extern with fun defs.
8544 Remove nt\inc include.
8545 Remove getdisk, getdefdir. (The former is unused, the latter
8546 expanded in fileio.h.)
8549 * s\windowsnt.h (WIN32_NATIVE):
8550 * s\windowsnt.h (HAVE_STRCASECMP):
8552 Add long comment about preprocessor changes.
8553 Remove getdisk, getdefdir. (The former is unused, the latter
8554 expanded in fileio.h.)
8556 2000-06-10 Ben Wing <ben@xemacs.org>
8565 Remove bogus/unused NO_SOCK_SIGIO.
8567 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
8569 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8572 2000-06-04 Mike Sperber <mike@xemacs.org>
8574 * casetab.c (set_case_table): For `set-standard-case-table',
8575 actually deposit the new case tables where the rest of XEmacs can
8578 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
8580 * data.c (Faset): Don't cast XCHAR() to unsigned char.
8582 2000-06-05 Ben Wing <ben@xemacs.org>
8584 * callproc.c (child_setup): Don't do close_load_descs() under
8585 MS Windows. Put in a comment explaining why.
8587 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
8589 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8590 Toolkit shell" which breaks `kill-compilation' on Windows NT
8591 native, retaining STDERR handling improvements.
8593 2000-06-01 Andreas Jaeger <aj@suse.de>
8595 * s/s390.h: Support for S390, based on a patch by Martin
8596 Schwidefsky <schwidefsky@de.ibm.com>.
8598 2000-05-30 Andy Piper <andy@xemacs.org>
8600 * window.c (allocate_window):
8601 (make_dummy_parent):
8602 (Fset_window_configuration): use new hashtable type.
8604 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8605 (struct image_instantiator_methods):
8606 (struct Lisp_Image_Instance): make instance geometry signed.
8608 * glyphs.c (instantiate_image_instantiator):
8609 (image_instance_query_geometry):
8610 (image_instance_layout):
8611 (image_instance_layout):
8612 (query_string_geometry):
8613 (text_query_geometry):
8614 (image_instantiate):
8615 (image_instantiate):
8616 (cache_subwindow_instance_in_frame_maybe):
8617 (subwindow_query_geometry): make instance geometry signed.
8619 * glyphs-widget.c (widget_query_geometry):
8621 (button_query_geometry):
8622 (tree_view_query_geometry):
8623 (tab_control_query_geometry):
8624 (layout_query_geometry):
8626 (native_layout_layout): make instance geometry signed.
8628 2000-05-29 Olivier Galibert <galibert@pobox.com>
8630 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8633 * general.c (syms_of_general): Add Qfull_assoc symbol.
8635 * data.c (finish_marking_weak_lists): Mark full-assoc lists
8637 (decode_weak_list_type): Decode full-assoc type.
8638 (encode_weak_list_type): Encode full-assoc type.
8639 (Fmake_weak_list): Update doc string.
8641 2000-05-30 Andy Piper <andy@xemacs.org>
8643 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8645 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8646 (decode_hash_table_weakness): ditto.
8647 (Fhash_table_weakness): ditto.
8648 (Fhash_table_type): ditto.
8649 (finish_marking_weak_hash_tables): ditto.
8650 (hash_table_weakness_validate): ditto.
8651 (syms_of_elhash): ditto.
8653 2000-05-28 Martin Buchholz <martin@xemacs.org>
8655 * XEmacs 21.2.34 is released.
8657 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8659 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8661 (updating_line_start_cache): Gone.
8662 (regenerate_window): Replace resetting of VERTICAL_CLIP by
8663 generic code to force a minimum of 1 line laid out in the
8666 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8668 * glyphs.c (instantiate_image_instantiator): Check for initialized
8669 height & width no longer special cases IMAGE_NOTHING.
8670 (nothing_instantiate): Set height and width of instance.
8672 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8674 * unexelf.c (unexec): Search for ".data" section.
8675 Initialize new_data2_offset from old_data_index.
8676 Remove redundant check for ElfW.
8678 2000-05-23 Andy Piper <andy@xemacs.org>
8680 * glyphs.c (get_image_instantiator_governing_domain): allow more
8681 specific domains as the governing domain rather than expecting an
8682 exact match. This fixes problems with layouts.
8684 2000-05-22 Andy Piper <andy@xemacs.org>
8686 * redisplay-output.c (compare_runes): check for non-images
8688 * glyphs.c (set_glyph_dirty_p): ditto.
8689 (update_glyph_cachel_data): ditto.
8691 * glyphs-widget.c (layout_post_instantiate): ditto.
8692 (layout_post_instantiate): ditto.
8694 * event-msw.c (mswindows_wnd_proc): warning removal.
8696 2000-05-12 Craig Lanning <CraigL@DyCon.com>
8698 * s\mingw32.h: Added #undef for CLASH_DETECTION.
8700 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8702 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8704 * nt.c (rva_to_section): mingw32 needs rva_to_section.
8705 (mswindows_executable_type): mingw32 now has enough headers for
8708 2000-05-20 Andy Piper <andy@xemacs.org>
8710 * console-msw.c (mswindows_output_last_error): ; -> ,
8712 2000-05-12 Andy Piper <andy@xemacs.org>
8714 * console-msw.c (FROB): compare ints with ints.
8716 2000-05-11 Andy Piper <andy@xemacs.org>
8718 * glyphs-x.c (x_finalize_image_instance): make minimal build
8721 2000-05-20 Ben Wing <ben@xemacs.org>
8724 * event-Xt.c (vars_of_event_Xt):
8725 move modifier-keys-are-sticky to event-stream.c.
8728 * event-msw.c (mswindows_enqueue_mouse_button_event):
8729 * event-msw.c (key_needs_default_processing_p):
8730 * event-msw.c (XEMSW_LCONTROL):
8731 * event-msw.c (mswindows_handle_sticky_modifiers):
8732 * event-msw.c (FROB):
8733 * event-msw.c (clear_sticky_modifiers):
8734 * event-msw.c (output_modifier_keyboard_state):
8735 * event-msw.c (output_alt_keyboard_state):
8736 * event-msw.c (mswindows_wnd_proc):
8737 * event-msw.c (mswindows_modifier_state):
8738 * event-msw.c (emacs_mswindows_handle_magic_event):
8739 implement sticky modifiers.
8742 * event-stream.c (vars_of_event_stream):
8743 move modifier-keys-are-sticky here.
8749 implement map-range-table.
8752 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
8754 * redisplay-tty.c (reset_tty_modes):
8755 (tty_redisplay_shutdown): Adjust argument type to
8756 tty_frame_output_end.
8758 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8760 * eval.c (Fbacktrace): Don't output a line with only right
8763 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
8765 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8766 (Fpq_reset_poll): Ditto.
8768 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
8770 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8772 2000-05-16 Ben Wing <ben@xemacs.org>
8775 * buffer.c (dfc_convert_to/from_internal_format):
8776 * buffer.c (reinit_vars_of_buffer):
8777 Fix conversion functions to allow reentrancy.
8780 * console-msw.c (mswindows_output_last_error):
8781 New fun, generally useful -- output a human-readable
8782 version of GetLastError() on the console.
8785 * console-msw.h (struct mswindows_frame):
8786 Changes for DeferWindowPos. Declare mswindows_output_last_error().
8788 * console-stream.c (stream_output_begin):
8789 * console-stream.c (stream_output_end):
8790 * console-stream.c (stream_output_vertical_divider):
8791 * console-stream.c (stream_clear_region):
8792 * console-stream.c (stream_flash):
8793 * console-stream.c (console_type_create_stream):
8794 Delete blank stream methods, not needed.
8796 * console.h (struct console_methods):
8797 Split begin/end methods into window and frame.
8800 * event-msw.c (mswindows_handle_paint):
8801 * event-msw.c (output_alt_keyboard_state):
8802 * event-msw.c (mswindows_wnd_proc):
8803 * event-msw.c (vars_of_event_mswindows):
8804 Comment about problems with ignored-expose.
8805 Define mswindows-debug-events; not really implemented.
8807 * frame-msw.c (mswindows_init_frame_1):
8811 * glyphs-msw.c (begin_defer_window_pos):
8812 * glyphs-msw.c (mswindows_unmap_subwindow):
8813 * glyphs-msw.c (mswindows_map_subwindow):
8814 * glyphs-msw.c (mswindows_resize_subwindow):
8815 Use DeferWindowPos to reduce flashing when mapping/unmapping.
8817 * glyphs.c (make_image_instance_1):
8820 * gutter.c (Fredisplay_gutter_area):
8821 Use new begin/end methods.
8823 * lisp.h (Dynarr_new2):
8827 * redisplay-msw.c (mswindows_frame_output_begin):
8828 * redisplay-msw.c (mswindows_frame_output_end):
8829 * redisplay-msw.c (console_type_create_redisplay_mswindows):
8830 New begin/end methods -- handle DeferWindowPos.
8832 * redisplay-output.c (redisplay_move_cursor):
8833 * redisplay-output.c (redraw_cursor_in_window):
8834 * redisplay-output.c (redisplay_update_line):
8835 * redisplay-output.c (redisplay_output_window):
8836 New begin/end methods.
8839 * redisplay-tty.c (tty_frame_output_begin):
8840 * redisplay-tty.c (tty_frame_output_end):
8841 * redisplay-tty.c (console_type_create_redisplay_tty):
8842 New begin/end methods.
8845 * redisplay-x.c (x_window_output_begin):
8846 * redisplay-x.c (x_window_output_end):
8847 * redisplay-x.c (console_type_create_redisplay_x):
8848 New begin/end methods.
8850 * redisplay.c (redisplay_frame):
8851 * redisplay.c (Fredisplay_echo_area):
8852 New begin/end methods.
8853 use MAYBE_DEVMETH for clear_frame; it may not exist.
8855 * window.h (WINDOW_XFRAME):
8856 WINDOW_XFOO macros -- get locale and decode struct pointer.
8859 2000-05-12 Ben Wing <ben@xemacs.org>
8862 * emacs.c (ensure_no_quitting_from_now_on):
8863 * emacs.c (fatal_error_signal):
8864 * emacs.c (mswindows_handle_hardware_exceptions):
8866 * emacs.c (Fkill_emacs):
8867 * emacs.c (shut_down_emacs):
8868 * emacs.c (assert_failed):
8869 various improvements in fatal error handling.
8872 move preparing_for_armageddon to emacs.c.
8875 declare fatal_error_in_progress.
8878 * print.c (std_handle_out_external):
8879 * print.c (std_handle_out_va):
8880 * print.c (stderr_out):
8881 * print.c (stdout_out):
8882 use console under mswin when no standard output.
8883 don't do code conversion during fatal error.
8885 * scrollbar.c (Fscrollbar_page_up):
8886 * scrollbar.c (Fscrollbar_page_down):
8887 fix missing else. reindent.
8889 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
8893 * glyphs.h (GLYPH_CACHEL_DESCENT):
8894 (GLYPH_CACHEL_DESCENT):
8895 (GLYPH_CACHEL_DESCENT):
8896 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8897 used in case these are inline functions.
8898 Use more absurd values to error check.
8900 include window.h for error check functions.
8902 2000-05-11 Ben Wing <ben@xemacs.org>
8904 * cmdloop.c (Freally_early_error_handler):
8905 Display message box under windows; otherwise, message will disappear
8906 before it can be viewed.
8909 * console-msw.c (Fmswindows_message_box):
8910 * console-msw.c (FROB):
8911 * console-msw.c (syms_of_console_mswindows):
8912 Define new fun `mswindows-message-box'.
8913 #### I will merge this into `popup-dialog-box'; just give me
8917 * general.c (syms_of_general):
8918 Some new symbols used in `mswindows-message-box'.
8921 * glyphs.c (Fset_image_instance_property):
8922 put warning in this fun.
8925 * glyphs.h (GLYPH_CACHEL_WIDTH):
8926 * glyphs.h (GLYPH_CACHEL_ASCENT):
8927 * glyphs.h (GLYPH_CACHEL):
8928 * glyphs.h (GLYPH_CACHEL_GLYPH):
8929 define error-checking versions to try to catch a bug i've seen --
8930 redisplay gets in an infinite loop because the glyph width of the
8931 continuation glyph is 65535.
8934 Extern message-box stuff.
8936 * window.c (allocate_window):
8937 * window.c (make_dummy_parent):
8938 * window.c (Fset_window_configuration):
8939 Use EQUAL not EQ for subwindow caches to make them work a bit
8940 better. (Something is still very broken.)
8943 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8945 * glyphs.c (image_instantiate): Suppress gcc warnings.
8946 (Fmake_image_instance): Fix doc string.
8947 * specifier.c (Fmake_specifier): Ditto.
8949 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
8951 * paths.h.in (PATH_LOCK): Removed.
8952 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8953 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8955 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
8957 * fns.c (Ffeaturep): Update e-mail address in doc-string.
8958 Document (featurep '(and xemacs 21.02)).
8960 2000-05-09 Ben Wing <ben@xemacs.org>
8962 * buffer.c (complex_vars_of_buffer):
8963 update modeline-format doc.
8966 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8969 timeline of all released versions of Emacs, for use in creating
8970 authorship comments and in synching up.
8972 * glyphs-widget.c (image_instantiator_buttons):
8973 * glyphs-widget.c (image_instantiator_edit_fields):
8974 * glyphs-widget.c (image_instantiator_combo_box):
8975 * glyphs-widget.c (image_instantiator_scrollbar):
8976 * glyphs-widget.c (image_instantiator_progress_guage):
8977 * glyphs-widget.c (image_instantiator_tree_view):
8978 * glyphs-widget.c (image_instantiator_tab_control):
8979 * glyphs-widget.c (image_instantiator_labels):
8980 * glyphs-widget.c (image_instantiator_layout):
8981 * glyphs-widget.c (image_instantiator_native_layout):
8982 rename decode_domain method to governing_domain.
8985 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8986 * glyphs.c (add_entry_to_device_ii_format_list):
8987 make sure we don't put an entry more than once into the list.
8988 * glyphs.c (check_instance_cache_mapper):
8989 *************************************************************
8990 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8992 *************************************************************
8993 * glyphs.c (get_image_instantiator_governing_domain):
8994 clean up, expand on new concept of governing domain.
8995 * glyphs.c (instantiate_image_instantiator):
8996 * glyphs.c (allocate_image_instance):
8997 use governing_domain instead of cache_domain in naming.
8998 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8999 * glyphs.c (make_image_instance_1):
9000 * glyphs.c (Fmake_image_instance):
9001 allow for any domain (not just device), and process the
9002 governing domain correctly. very big doc fix.
9003 * glyphs.c (Fimage_instance_domain):
9004 new primitive, to retrieve the governing domain of an image instance.
9005 * glyphs.c (image_instantiate):
9006 use new governing_domain stuff. this fixes a crash you could get
9007 by instantiating certain widget glyphs in frame locales. (should
9008 signal an error instead of crashing.)
9009 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9010 * glyphs.c (Fglyphp): clean up doc.
9011 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9012 * glyphs.c (syms_of_glyphs):
9013 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9014 * glyphs.c (image_instantiator_format_create): add some comments about
9016 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9017 for current-display-table. (Apparently Hrjove implemented in 1998 a
9018 design I wrote up in 1996, but didn't update the doc string.)
9020 * glyphs.h: clean up a doc string.
9021 * glyphs.h (governing_domain):
9022 * glyphs.h (struct image_instantiator_methods):
9023 changes for governing_domain stuff.
9026 * gutter.c (Fgutter_specifier_p):
9027 * gutter.c (Fgutter_size_specifier_p):
9028 * gutter.c (Fgutter_visible_specifier_p):
9030 * objects.c (Fcolor_specifier_p):
9031 * objects.c (Ffont_specifier_p):
9032 * objects.c (Fface_boolean_specifier_p):
9033 doc strings moved to make-*-specifier.
9035 * redisplay.c (add_disp_table_entry_runes_1):
9036 * redisplay.c (generate_fstring_runes):
9037 * redisplay.c (screen):
9038 add random comments and doc strings.
9041 * specifier.c (Fmake_specifier):
9042 major overhaul of this doc string.
9044 * specifier.c (Fvalid_specifier_domain_p):
9045 comment about the bogosity of image instances being domains.
9046 * specifier.c (decode_domain):
9047 now non-static, used in glyphs.c.
9048 * specifier.c (specifier_instance):
9049 comment about the bogosity of image instances being domains.
9050 * specifier.c (Fgeneric_specifier_p):
9051 move doc string to make-generic-specifier.
9052 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9056 * specifier.h (DOMAIN_FRAME):
9057 * specifier.h (DOMAIN_LIVE_P):
9058 * specifier.h (DOMAIN_XDEVICE):
9060 add comments about problems with these macros.
9061 prototype for decode_domain.
9064 * toolbar.c (Ftoolbar_specifier_p):
9065 move doc string to `make-toolbar-specifier'.
9067 * window.c (window_unmap_subwindows_cache_mapper):
9068 *************************************************************
9069 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9071 *************************************************************
9073 2000-05-09 Andy Piper <andy@xemacs.org>
9075 * glyphs.h: declare reset_frame_subwindow_instance_cache.
9077 * window.c (Fset_window_configuration): reset the frame subwindow
9078 cache and re-initialize the window subwindow caches.
9080 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9082 2000-05-09 Ben Wing <ben@xemacs.org>
9084 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9087 2000-04-26 Mike Woolley <mike@bulsara.com>
9089 * ntheap.c: Changed recreate_heap to limit the amount reserved
9090 for the heap to that which is actually available. Also now
9091 displays a message box (with some dignostics) in the event that
9092 it still can't start.
9094 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
9096 * callproc.c (Fold_call_process_internal): GCPRO path
9098 2000-05-08 Jan Vroonhof <jan@xemacs.org>
9100 Patch by Bill Perry.
9102 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9103 back data instead of #ifdef.
9104 (Fscrollbar_page_down): ditto.
9106 2000-05-07 Ben Wing <ben@xemacs.org>
9109 Kludge for defining Qmswindows_tstr.
9112 * nt.c (open_input_file):
9113 * nt.c (open_output_file):
9114 * nt.c (rva_to_section):
9115 * nt.c (mswindows_executable_type):
9116 Move all memory-mapped-file routines here (some were in unexnt.c,
9117 which is bad because they are used by process-nt.c, and unexnt
9118 won't be around when portable dumping). Synched the above routines
9122 Removed ifdef'd out bogus code.
9123 Fixed some prototypes.
9126 * nt.h (OFFSET_TO_RVA):
9127 * nt.h (RVA_TO_OFFSET):
9128 * nt.h (RVA_TO_PTR):
9129 Moved the memory-mapped-file structures, macros and prototypes
9130 here, to parallel nt.c. ntheap.h should really be removed
9131 entirely, and it's a non-portable-dumper specific file.
9133 * ntheap.h (round_to_next):
9134 Moved the memory-mapped-file structures, macros and prototypes
9137 * ntproc.c (compare_env):
9138 Moved rva_to_section and mswindows_executable_type to nt.c.
9139 Moved compare_env to process-nt.c.
9140 ntproc.c will die, one day.
9142 * ntproc.c (sys_spawnve):
9143 Account for win32_ -> mswindows_.
9146 * process-nt.c (struct nt_process_data):
9147 * process-nt.c (ensure_console_window_exists):
9148 * process-nt.c (compare_env):
9149 * process-nt.c (nt_create_process):
9150 * process-nt.c (nt_kill_process_by_pid):
9151 * process-nt.c (syms_of_process_nt):
9152 * process-nt.c (vars_of_process_nt):
9153 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9154 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9155 changes). Eliminate our old `nt-quote-process-args' mechanism.
9156 Synch up nt_create_process with FSF 20.6 sys_spawnve.
9157 Move compare_env here from ntproc.c.
9159 * process.c (Fprocess_send_region):
9160 Takes an optional fourth argument, BUFFER, which should fix some
9161 problems with call-process.
9164 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9167 Move ICC_BAR_CLASSES to syscommctrl.h.
9168 Add preliminary macros for MSWindows/Mule. More to come.
9171 * unexnt.c (unexec):
9172 open_output_file moved to nt.c.
9175 2000-05-05 Andy Piper <andy@xemacs.org>
9177 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9178 instance from the frame cache also since GC may catch up too late
9179 to make frame deletion sane.
9181 2000-05-04 Andy Piper <andy@xemacs.org>
9183 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9184 (x_finalize_image_instance): ungcpro on deletion.
9186 * glyphs.c (image_instantiator_format_create): give pointers a
9187 query geometry method so that the geometry is at least set.
9189 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9190 initialize layouts if using widgets.
9192 2000-05-03 Andy Piper <andy@xemacs.org>
9194 * nt.c: remove bogus reference to sysmmsystem.h
9196 * gui-x.c (popup_selection_callback): fix no selection abort.
9198 2000-05-02 Andy Piper <andy@xemacs.org>
9200 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9201 (mswindows_widget_instantiate): ditto.
9203 * glyphs-widget.c (initialize_widget_image_instance): initialize
9205 (widget_instantiate): cope with children and items in the same
9208 * glyphs.c (mark_image_instance): cope with children as a first
9210 (image_instance_equal): ditto.
9211 (image_instance_hash): ditto.
9212 (image_instance_changed): ditto.
9214 2000-04-30 Andy Piper <andy@xemacs.org>
9216 * glyphs.c (subwindow_query_geometry): new function. Return some
9218 (subwindow_instantiate): don't assign dimensions if none have been
9220 (image_instantiator_format_create): add subwindow_query_geometry.
9221 (print_image_instance): cope with layouts as widgets.
9223 2000-04-29 Andy Piper <andy@xemacs.org>
9225 * frame.c (delete_frame_internal): call
9226 free_frame_subwindow_instance_cache so that all subwindows are
9227 finalized before their parent.
9228 (mark_frame): remove subwindow_cachels.
9229 (Fmake_frame): remove subwindow_cachel manipulation.
9230 (allocate_frame_core): subwindow_instance_cache is a weak list.
9231 (delete_frame_internal): set subwindow_instance_cache to nil.
9233 * glyphs-msw.c (mswindows_finalize_image_instance): make double
9235 (mswindows_finalize_image_instance): use the device
9236 not the domain as the domain may have died already.
9238 * glyphs-x.c (x_finalize_image_instance): ditto.
9239 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9242 * redisplay-output.c (redisplay_unmap_subwindows): update for
9243 subwindow instance cache as a weak list.
9244 (redisplay_unmap_subwindows_maybe): ditto.
9245 (redisplay_unmap_subwindows_except_us): ditto.
9247 * glyphs.c (unmap_subwindow): error checking will check the domain
9248 so don't deal with it here. Don't use cachels anymore.
9249 (map_subwindow): ditto.
9250 (update_subwindow_cachel_data): remove old accessor names.
9251 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9252 (Fresize_subwindow): don't update cachel.
9253 (mark_subwindow_cachels):
9254 (update_subwindow_cachel_data):
9255 (add_subwindow_cachel):
9256 (get_subwindow_cachel_index):
9257 (update_subwindow_cachel):
9258 (reset_subwindow_cachels):
9259 (mark_subwindow_cachels_as_not_updated): deleted.
9260 (cache_subwindow_instance_in_frame_maybe): new function. Add a
9261 subwindow instance to the frame cache.
9262 (find_matching_subwindow): update for subwindow instance cache as
9264 (update_widget_instances): ditto.
9265 (image_instance_type_to_mask):inlined.
9266 (free_frame_subwindow_instance_cache): new function. finalize all
9267 subwindows that are instantiated.
9269 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9270 of cachel information.
9271 (IMAGE_INSTANCE_DISPLAY_X):
9272 (IMAGE_INSTANCE_DISPLAY_Y):
9273 (IMAGE_INSTANCE_DISPLAY_WIDTH):
9274 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9275 (XIMAGE_INSTANCE_DISPLAY_X):
9276 (XIMAGE_INSTANCE_DISPLAY_Y):
9277 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9278 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9279 remove subwindow_cachel structure and function references.
9280 (image_instance_type_to_mask): inline from glyphs.c
9282 * redisplay.c (redisplay_frame): remove subwindow_cachel
9285 * frame.h (struct frame): remove subwindow_cachels.
9286 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9288 * frameslots.h: add subwindow_instance_cache.
9290 * window.c (replace_window): check subwindow cache of replacement.
9291 (window_unmap_subwindows_cache_mapper):
9292 (window_unmap_subwindows): new functions. Unmap all subwindows
9293 cached on this window.
9294 (mark_window_as_deleted): unmap all subwindows.
9296 2000-04-27 Andy Piper <andy@xemacs.org>
9298 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9300 * glyphs-widget.c (widget_layout): return something.
9301 (layout_layout): return something. Fail if not initialized.
9302 (layout_query_geometry): ditto.
9303 (image_instantiator_native_layout): new function. Initialized the
9305 (widget_instantiate): don't do layout stuff here.
9307 * glyphs.c (instantiate_image_instantiator): reorded calling or
9308 instantiate and post_instantiate with layout in between.
9309 (image_instance_layout): be more selective about deciding whether
9310 the layout has been done or not.
9312 * glyphs.h (struct image_instantiator_methods): return a value
9315 2000-04-26 Andy Piper <andy@xemacs.org>
9317 * glyphs.c (allocate_image_instance): make initial width and
9318 height unspecified. Set initialized to 0.
9320 * syscommctrl.h new file. Encapsulates commctrl.h.
9322 * syswindows.h new file. Encapsulates windows.h.
9324 * ntplay.c: use new syswindows.h and syscommctrl.h header.
9326 * console-msw.h: ditto.
9328 * redisplay-tty.c (tty_output_display_block): remove layout references.
9330 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9331 window handle rather than just the frame.
9333 * glyphs.c (mark_image_instance): remove layout references.
9334 (print_image_instance): ditto.
9335 (image_instance_equal): ditto.
9336 (image_instance_hash): ditto.
9337 (decode_image_instance_type): ditto.
9338 (encode_image_instance_type): ditto.
9339 (image_instantiate): ditto.
9340 (allocate_glyph): ditto.
9341 (Fimage_instance_height): ditto.
9342 (Fimage_instance_width): ditto.
9343 (update_subwindow): ditto.
9345 * redisplay-x.c (x_output_display_block): recode for layouts as
9348 * redisplay-output.c (redisplay_output_layout): recode for layouts
9350 (compare_runes): remove layout references.
9352 * redisplay-msw.c (mswindows_output_display_block): recode for
9355 * glyphs-widget.c (image_instantiator_layout): remove
9356 layout_possible_dest_types.
9357 (layout_possible_dest_types): deleted.
9359 * glyphs.h (image_instance_type): remove layout references.
9360 (struct Lisp_Image_Instance): ditto. Add initialized flag.
9361 (IMAGE_INSTANCE_INITIALIZED): new accessor.
9362 (XIMAGE_INSTANCE_INITIALIZED): ditto.
9364 2000-04-25 Andy Piper <andy@xemacs.org>
9366 * glyphs-widget.c (image_instantiator_buttons):
9367 (image_instantiator_edit_fields):
9368 (image_instantiator_combo_box):
9369 (image_instantiator_scrollbar):
9370 (image_instantiator_progress_guage):
9371 (image_instantiator_tree_view):
9372 (image_instantiator_tab_control):
9373 (image_instantiator_labels):
9374 (image_instantiator_layout): call default post_instantiate method.
9375 (widget_post_instantiate): new function. Simply lays out the
9378 * glyphs.h (struct image_instantiator_methods): add
9379 post_instantiate method.
9381 * glyphs.c (instantiate_image_instantiator): add post_instantiate
9384 2000-04-23 Andy Piper <andy@xemacs.org>
9386 * glyphs.h (struct image_instantiator_methods): add
9387 decode_domain_method.
9388 (struct Lisp_Image_Instance): remove subwindow frame - it can be
9389 derived from the domain.
9390 (IMAGE_INSTANCE_FRAME): new accessor.
9391 (XIMAGE_INSTANCE_FRAME): ditto.
9393 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9394 instead of _SUBWINDOW_FRAME.
9395 (finalize_image_instance): ditto.
9396 (Fimage_instance_foreground): ditto.
9397 (Fimage_instance_background): ditto.
9398 (image_instantiate): ditto.
9399 (update_subwindow_cachel): ditto.
9400 (update_subwindow): ditto.
9401 (unmap_subwindow): ditto.
9402 (map_subwindow): ditto
9403 (subwindow_instantiate): ditto.
9404 * glyphs-msw.c (mswindows_update_widget): ditto.
9405 (mswindows_progress_gauge_instantiate): ditto.
9406 (mswindows_tab_control_update): ditto.
9407 * glyphs-x.c (x_update_widget): ditto.
9408 (x_widget_instantiate): ditto.
9409 (x_tab_control_instantiate): ditto.
9410 (x_tab_control_update): ditto.
9411 * event-msw.c (mswindows_wnd_proc): ditto
9413 * glyphs-widget.c (image_instantiator_layout): use
9414 subwindow_decode_domain.
9415 (image_instantiator_buttons): ditto.
9416 (image_instantiator_edit_fields): ditto.
9417 (image_instantiator_combo_box): ditto.
9418 (image_instantiator_scrollbar): ditto.
9419 (image_instantiator_progress_guage): ditto.
9420 (image_instantiator_tree_view): ditto.
9421 (image_instantiator_tab_control): ditto.
9422 (image_instantiator_labels): ditto.
9423 (image_instantiator_layout): ditto.
9425 * glyphs.c: add instance error checking to many functions.
9426 (instantiate_image_instantiator): decode device from cache_domain.
9427 (image_instantiate): partially rewrite by using
9428 decode_image_instantiator_domain to determine what domain the
9429 instance needs to be cached in.
9430 (decode_image_instantiator_domain): new function. Determine what
9431 domain the image needs to be cached in.
9432 (check_window_subwindow_cache): new error checking function.
9433 (check_instance_cache_mapper): ditto.
9434 (check_image_instance_structure): ditto.
9435 (subwindow_decode_domain): new function. Encodes a window as a
9436 subwindow's cache domain.
9437 (image_instantiator_format_create): use it for text and
9440 2000-04-21 Andy Piper <andy@xemacs.org>
9442 * glyphs.c (image_instance_device): new function.
9443 (image_instance_frame): new function.
9444 (image_instance_window): new function.
9445 (image_instance_live_p): new function.
9447 * window.c (mark_window_as_deleted): reset the subwindow_instance_
9450 * glyphs.h (struct Lisp_Image_Instance): device->domain.
9451 (IMAGE_INSTANCE_DOMAIN): new accessor.
9452 (XIMAGE_INSTANCE_DOMAIN): ditto.
9454 * glyphs-x.c (x_finalize_image_instance): device->domain.
9456 * glyphs-msw.c (init_image_instance_geometry): device->domain.
9457 (mswindows_finalize_image_instance): ditto.
9459 * glyphs-eimage.c (jpeg_instantiate): device->domain.
9460 (gif_instantiate): ditto.
9461 (png_instantiate): ditto.
9462 (tiff_instantiate): ditto.
9464 * glyphs.c (instantiate_image_instantiator): use domain rather
9466 (mark_image_instance): device -> domain.
9467 (print_image_instance): ditto.
9468 (finalize_image_instance): ditto.
9469 (image_instance_equal): ditto.
9470 (allocate_image_instance): ditto.
9471 (Fcolorize_image_instance): ditto.
9472 (query_string_geometry): ditto.
9473 (image_instantiate): ditto
9474 (query_string_font): ditto.
9475 (image_instantiate): ditto.
9476 (update_subwindow): ditto.
9477 (unmap_subwindow): ditto.
9478 (map_subwindow): ditto.
9479 (subwindow_instantiate): ditto.
9481 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9482 (DOMAIN_FRAME): ditto.
9483 (DOMAIN_WINDOW): ditto.
9484 (DOMAIN_LIVE_P): ditto.
9485 (XDOMAIN_DEVICE): ditto.
9486 (XDOMAIN_FRAME): ditto.
9487 (XDOMAIN_WINDOW): ditto.
9489 * specifier.c (Fvalid_specifier_domain_p): add image instances as
9490 a valid specifier domain.
9492 2000-04-19 Andy Piper <andy@xemacs.org>
9494 * glyphs-widget.c (syms_of_glyphs_widget): remove
9495 widget-callback-current-channel.
9496 (vars_of_glyphs_widget): ditto.
9499 * gui.c (get_gui_callback): revert to previous behaviour.
9501 2000-04-18 Andy Piper <andy@xemacs.org>
9503 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9504 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9505 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9507 * glyphs.c (image_instance_equal): add margin_width.
9508 (image_instance_hash): ditto.
9510 * glyphs-widget.c (widget_instantiate): deal with margin-width.
9511 (layout_query_geometry): ditto.
9512 (layout_layout): ditto.
9513 (syms_of_glyphs_widget): add margin-width.
9514 (image_instantiator_layout): allow margin-width.
9516 * glyphs.c (update_widget_instances): make a normal function.
9517 (syms_of_glyphs): remove Qupdate_widget_instances.
9520 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9521 so that we don't corrupt ideas about the last event or
9522 command. Remove widget-callback-current-channel fiddling.
9523 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9525 2000-05-01 Martin Buchholz <martin@xemacs.org>
9527 * XEmacs 21.2.33 is released.
9529 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
9531 * make-src-depend: Allow dots in header file name.
9533 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
9535 * mule-charset.h (struct charset_lookup): Add
9536 next_allocated_1_byte_leading_byte and
9537 next_allocated_2_byte_leading_byte.
9538 * mule-charset.c: Move above two variables so that those values
9541 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
9543 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9544 when string length is zero.
9545 (find_charsets_in_emchar_string): Ditto.
9547 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
9549 * lisp.h: extern Qdialog and Qmenubar.
9551 * gui-x.c: added events.h.
9552 also fixed typo which made the file uncompilable.
9554 * general.c: Added Qmenubar and Qdialog
9556 2000-04-28 Ben Wing <ben@xemacs.org>
9558 * frame-msw.c (mswindows_init_frame_1):
9559 * frame-msw.c (mswindows_mark_frame):
9560 * event-msw.c (mswindows_enqueue_dispatch_event):
9562 * console-msw.h (struct mswindows_frame):
9563 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9564 there are now three hash tables for callbacks.
9565 mswindows_enqueue_dispatch_event is no longer static.
9567 * dialog-x.c (maybe_run_dbox_text_callback):
9568 * dialog-x.c (dbox_descriptor_to_widget_value):
9569 switch to new cons3 form for callbacks.
9571 * glyphs-msw.c (mswindows_register_gui_item):
9572 * glyphs-msw.c (mswindows_widget_instantiate):
9573 * glyphs-msw.c (add_tree_item):
9574 * glyphs-msw.c (add_tab_item):
9575 new image instance parameter, so it can be passed to callback-ex.
9576 respect :callback-ex as well as :callback.
9578 * glyphs-widget.c (VALID_GUI_KEYWORDS):
9581 * glyphs.c (print_image_instance):
9582 prettify, e.g. now prints widget type.
9585 certain funs have new image instance parameter.
9588 * gui.c (get_gui_callback):
9589 * gui.c (gui_item_add_keyval_pair):
9590 * gui.c (gui_item_init):
9591 * gui.c (gui_add_item_keywords_to_plist):
9592 * gui.c (mark_gui_item):
9593 * gui.c (gui_item_hash):
9594 * gui.c (gui_item_equal):
9595 * gui.c (copy_gui_item):
9596 * gui.c (syms_of_gui):
9597 recognize callback-ex in a number of places.
9598 also, fix the annoying "can't get out of yes-no dialog" bug.
9601 * gui.h (struct Lisp_Gui_Item):
9602 recognize callback-ex in a number of places.
9604 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9605 new parameter in button_item_to_widget_value.
9607 * glyphs-x.c (x_update_widget):
9608 * glyphs-x.c (x_button_instantiate):
9609 * glyphs-x.c (x_button_update):
9610 * glyphs-x.c (x_progress_gauge_instantiate):
9611 * glyphs-x.c (x_edit_field_instantiate):
9612 * glyphs-x.c (x_combo_box_instantiate):
9613 * glyphs-x.c (x_tab_control_instantiate):
9614 * glyphs-x.c (x_label_instantiate):
9615 new image instance parameter in various places.
9618 * event-Xt.c (enqueue_Xt_dispatch_event):
9619 this fun gets exported.
9622 * gui-msw.c (mswindows_handle_gui_wm_command):
9623 handle both :callback and :callback-ex, and generate our own
9624 event because it's one of the callback-ex arguments.
9627 * gui-x.c (popup_selection_callback):
9628 handle both :callback and :callback-ex, and generate our own
9629 event because it's one of the callback-ex arguments.
9630 * gui-x.c (button_item_to_widget_value):
9631 * gui-x.c (gui_items_to_widget_values_1):
9632 * gui-x.c (gui_item_children_to_widget_values):
9633 * gui-x.c (gui_items_to_widget_values):
9634 new image instance parameter in various places.
9636 * fns.c (Freplace_list):
9637 fix small typo in doc string.
9640 declare enqueue_Xt_dispatch_event.
9642 2000-04-28 Ben Wing <ben@xemacs.org>
9645 * buffer.c (Frecord_buffer):
9646 * buffer.c (syms_of_buffer):
9647 delete record-buffer-hook.
9650 * fns.c (Freplace_list):
9651 * fns.c (syms_of_fns):
9652 new primitive replace-list.
9655 slot for old buffer-alist.
9661 * redisplay.c (redisplay_frame):
9662 * redisplay.c (syms_of_redisplay):
9663 * redisplay.c (vars_of_redisplay):
9664 new hook buffer-list-changed-hook.
9667 2000-04-27 Ben Wing <ben@xemacs.org>
9669 * extents.h: extern in_modeline_generation.
9671 * redisplay.c (generate_formatted_string_db): set
9672 in_modeline_generation.
9674 * extents.c (extent_changed_for_redisplay): don't mark redisplay
9675 flags if in modeline generation. otherwise frame-modified-tick
9676 is ticked far too often.
9677 Declare in_modeline_generation.
9679 2000-04-26 Ben Wing <ben@xemacs.org>
9681 * emacs.c (vars_of_emacs): document quick-build "error-checking"
9683 (vars_of_emacs): add quick-build as an error-checking option.
9684 A bit kludgy, but there doesn't seem much point in creating
9685 a real var for this.
9687 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9689 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
9691 * redisplay.h (struct display_line): Add a new variable,
9694 * redisplay.c (create_text_block): Set dl->line_continuation if
9696 (create_string_text_block): Ditto.
9697 (regenerate_window_incrementally): Use line_continuation instead
9698 of searching continuation glyph.
9699 (add_margin_runes): Call add_glyph_rune.
9700 (add_glyph_rune): Handle margin glyph.
9702 2000-04-20 Martin Buchholz <martin@xemacs.org>
9704 * filelock.c (fill_in_lock_file_name):
9706 Check for IS_ANY_SEP instead of '/'.
9708 Avoid generating gratuitous garbage. Call user_login_name() directly.
9709 Never check errno without first seeing that system call failed.
9710 (unlock_file): Add GCPRO.
9711 (Flock_buffer): Fix docstring.
9712 (Ffile_locked_p): Fix docstring. Add GCPRO.
9714 2000-04-19 Martin Buchholz <martin@xemacs.org>
9716 * sysdep.c (get_pty_max_bytes):
9717 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9718 strings longer than 252 bytes.
9720 * md5.c: Unconditionally include ANSI header <limits.h>
9722 * glyphs-x.c (convert_EImage_to_XImage):
9723 * lisp-union.h (union Lisp_Object):
9724 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9726 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9728 * filelock.c (current_lock_owner): Remove unused variable o, p.
9730 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
9732 * callint.c: Remove multiply defined symbol Qlet
9733 (syms_of_callint): ditto.
9735 2000-04-14 Andy Piper <andy@xemacs.org>
9737 * general.c (syms_of_general): add last-command, this-command, let
9740 * lisp.h: declare various symbols.
9742 * glyphs.h: declare Qwidget_callback_current_channel;
9744 * glyphs-widget.c (syms_of_glyphs_widget): add
9745 Qgui_callback_current_channel.
9746 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9748 * gui-msw.c (mswindows_handle_gui_wm_command): bind
9749 widget-callback-current-channel when invoking the interactive
9750 arg. Also bind last-command and next-command when invoking the
9752 * gui-x.c (popup_selection_callback): ditto.
9754 * gui.c (get_gui_callback): massage args so that we are always
9755 calling eval. This allows us to add our own variable bindings
9758 * glyphs-x.c (x_button_instantiate): use
9759 gui_items_to_widget_values since this is GC safe.
9760 (x_progress_gauge_instantiate): ditto.
9761 (x_edit_field_instantiate): ditto.
9762 (x_label_instantiate): ditto.
9764 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9765 (emacs_Xt_event_widget_focus_out): new function
9766 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9768 (emacs_Xt_event_add_widget_actions): new function. add focus
9769 functions as actions.
9770 (init_event_Xt_late): use it.
9772 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
9774 * event-stream.c (Fdispatch_event): Doc fix.
9776 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
9778 * postgresql.c: Remove all references to PQsetenv*.
9780 * postgresql.h: Remove references to PGsetenvHandler object.
9781 * lrecord.h (lrecord_type): Ditto.
9783 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9785 * glyphs-msw.h (struct mswindows_image_instance_data): Added
9786 real_heigh and real_width members, and accessor macros for these.
9788 * glyphs-msw.c (init_image_instance_geometry): New function.
9789 (init_image_instance_from_dibitmap): Use it.
9790 (mswindows_resource_instantiate): Use it.
9791 (init_image_instance_from_xbm_inline): Use it.
9792 (mswindows_initialize_image_instance_mask): Use real bitmap
9794 (mswindows_create_resized_bitmap): Ditto.
9795 (mswindows_create_resized_mask): Ditto.
9797 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9798 and bitmap to their surface size.
9800 2000-04-11 Jan Vroonhof <jan@xemacs.org>
9802 * process-unix.c (unix_send_process): Guard against process MIA
9803 after Faccept_process_output.
9805 2000-04-11 Ben Wing <ben@xemacs.org>
9807 * eval.c (unbind_to_hairy): fix brokenness introduced by
9808 nanosecond speed improvements.
9810 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
9812 * sunplay.c (init_device): To play sounds correctly, the device
9813 apparently needs to be initialized at least once by XEmacs. Make
9816 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
9818 * redisplay.c (add_margin_runes): Add text image glyph
9821 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9823 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9824 gcc is newer than 2.5.
9826 2000-04-06 Colin Rafferty <colin@xemacs.org>
9828 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9830 * fns.c (size_bit_vector):
9831 * alloc.c (size_vector):
9832 (make_vector_internal):
9833 (make_bit_vector_internal):
9834 (sweep_bit_vectors_1):
9835 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9837 2000-04-06 Andy Piper <andy@xemacs.org>
9839 * gmalloc.c (malloc): undo previous change.
9844 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
9846 * line-number.c (buffer_line_number): Revert to former version.
9848 2000-04-06 Andy Piper <andy@xemacs.org>
9850 * gmalloc.c (malloc): add error checking.
9855 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9856 button_item_to_widget_value arg.
9858 * glyphs-x.c (x_button_instantiate): add extra
9859 button_item_to_widget_value arg.
9860 (x_progress_gauge_instantiate): ditto.
9861 (x_edit_field_instantiate): ditto.
9862 (x_label_instantiate): ditto.
9864 * gui-x.c (gui_items_to_widget_values_1): add extra
9865 button_item_to_widget_value arg.
9866 (button_item_to_widget_value): add extra menu_item_p arg.
9868 * gui-x.h: change signature of button_item_to_widget_value.
9870 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9871 button_item_to_widget_value arg.
9873 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9875 * buffer.h (struct buffer): auto_save_modified should be long.
9877 2000-04-05 Andy Piper <andy@xemacs.org>
9879 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9881 (button_query_geometry): give a little more room so that athena
9884 2000-04-05 Andy Piper <andy@xemacs.org>
9886 * faces.c (complex_vars_of_faces): The widget face should inherit
9887 the font of the gui-element face.
9889 2000-04-04 Andy Piper <andy@xemacs.org>
9891 * glyphs-x.c (x_button_update): new function. unconditionally
9892 update a button's state when the instance is dirty.
9893 (image_instantiator_format_create_glyphs_x): add x_button_update.
9894 (x_widget_instantiate): remove old resize cruft.
9896 2000-04-02 Andy Piper <andy@xemacs.org>
9898 * frame.c (change_frame_size_1): The introduction of gutters means
9899 that we need to allow 0 as a potential frame dimension.
9901 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
9903 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9904 image glyph if allow_cursor.
9905 (add_hscroll_rune): Don't allow cursor to border glyph.
9906 (create_text_block): Ditto.
9908 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9910 (redisplay_output_layout): Call ensure_face_cachel_complete for
9914 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
9916 * redisplay.c (add_glyph_rune): Adding text image as text runes.
9918 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9921 * redisplay-tty.c (tty_output_display_block): Delete the routine
9922 for text image glyph
9923 * redisplay-x.c (x_output_display_block): ditto
9924 * redisplay-msw.c (mswindows_output_display_block): ditto
9926 2000-02-02 Mike Alexander <mta@arbortext.com>
9928 Note: Some of these were committed by accident as part of other
9931 * regex.c (regex_compile): Avoid compiler warnings.
9933 * ntproc.c (sys_spawnve): Avoid compiler warnings.
9935 * nt.h: Declare term_ntproc correctly.
9937 * nt.c: Remove incorrect declaration of get_home_directory which
9938 is declared correctly in lisp.h.
9940 * keymap.c (get_keyelt): Avoid compiler warnings.
9941 (raw_lookup_key_mapper): Avoid compiler warnings.
9943 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9945 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9947 * filemode.c (mode_string): Avoid compiler warnings.
9949 * file-coding.c (Fcoding_system_aliasee): Add return statement to
9952 * events-mod.h: Undef some things that winuser.h defines differently.
9954 * data.c (Faset): Avoid compiler warnings.
9956 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9958 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9960 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9961 Fall through to simple beep on error.
9962 Replace "extern" by real header file.
9964 * linuxplay.c: Use nativesound.h
9965 (play_sound_data): Return error code. Be less verbose on error.
9967 * sunplay.c: Use nativesound.h
9968 (play_sound_data): Return error code. Be less verbose on error.
9970 * ntplay.c: Use nativesound.h
9971 (play_sound_data): Return fake error code
9973 * sgiplay.c: Use nativesound.h
9974 (play_sound_data): Return error code
9976 * hpplay.c: Use nativesound.h, partially implement
9977 new error code. Break compilation until finished.
9978 (play_sound_data): error code.
9980 * nativesound.h (play_sound_file):
9981 (play_sound_data): Prototype in new header.
9983 2000-03-31 Andy Piper <andy@xemacs.org>
9985 * glyphs-widget.c: (button_query_geometry): new function. Adjust
9986 for toggle and radio buttons.
9987 (image_instantiator_buttons): use it.
9989 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9991 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9992 (x_update_horizontal_scrollbar_callback): Return if no mirror was
9993 found. Scrollbar event probably belonged to some old config.
9995 2000-03-31 Andy Piper <andy@xemacs.org>
9997 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9999 (initialize_widget_image_instance): default layout to
10000 LAYOUT_HORIZONTAL rather than 0.
10001 (widget_instantiate): reverse the item list at the end rather than
10003 (layout_layout): re-code for the border text at the front of the
10004 item list rather than at the end.
10005 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10006 provided by the user.
10007 (widget_query_geometry): comment.
10009 2000-03-30 Andy Piper <andy@xemacs.org>
10011 * glyphs-widget.c (image_instantiator_layout): allow standard
10012 widget keywords in layouts.
10014 * gutter.c (output_gutter): cope with nil gutter contents.
10016 * frame.c (Fset_frame_properties): add gutter docs.
10018 2000-03-29 Andy Piper <andy@xemacs.org>
10020 * toolbar-msw.c (TBSTYLE_FLAT): add.
10021 (mswindows_output_toolbar): minor fiddling.
10023 2000-03-29 Andy Piper <andy@xemacs.org>
10025 * gutter.c (output_gutter): force gutter size recalculation if
10026 what we are trying to display won't fit.
10027 (update_gutter_geometry): new function. A per-gutter version of
10028 update_frame_gutter_geometry.
10029 (update_frame_gutter_geometry): use it.
10030 (redraw_exposed_gutter): add extra debugging output.
10032 2000-03-28 Mike Alexander <mta@arbortext.com>
10034 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10035 (pdump_file_unmap): Implement it on Windows
10036 (pdump_file_get): Save alocated handles for pdump_file_unmap
10038 2000-03-28 Andy Piper <andy@xemacs.org>
10040 * gui.c (get_gui_callback): treat Quit specially.
10042 2000-03-27 Andy Piper <andy@xemacs.org>
10044 * glyphs.c (image_instantiate): be careful to check in the same
10047 2000-03-27 Didier Verna <didier@xemacs.org>
10049 * config.h.in: define the proper SMART_INCLUDE macro.
10050 handle renaming of `foo_h_path' to `foo_h_file'.
10052 * database.c: ditto.
10056 * linuxplay.c: ditto.
10058 * terminfo.c: ditto.
10060 * tooltalk.h: ditto.
10062 2000-03-27 Andy Piper <andy@xemacs.org>
10064 * glyphs-msw.c (mswindows_update_widget): make sure the widget
10065 gets updated whenever the face might have changed.
10067 2000-03-26 Mike Alexander <mta@arbortext.com>
10069 * dumper.c (pdump_resource_free): Fix the comment.
10071 2000-03-21 Olivier Galibert <galibert@pobox.com>
10073 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10075 2000-03-22 Mike Alexander <mta@arbortext.com>
10077 * dumper.c: Include Windows headers on Windows
10078 (pdump_resource_free): Add a body to the function
10079 (pdump_load): exe_name -> exe_path and add some comments.
10081 2000-03-25 Mike Alexander <mta@arbortext.com>
10083 * gui.c (copy_gui_item_tree): Return a value in all cases
10085 2000-03-21 Didier Verna <didier@xemacs.org>
10087 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10089 (SMART_INCLUDE): new macro.
10090 (POSTGRES_INCLUDE): new macro to include postgresql headers from
10091 the proper location.
10093 * postgresql.c: use it.
10097 2000-03-24 Andy Piper <andy@xemacs.org>
10099 * gutter.c (redraw_exposed_gutters): must be "in display" when we
10102 2000-03-24 Andy Piper <andy@xemacs.org>
10104 * redisplay-output.c (compare_runes): use image_instance_changed
10105 to detect changes. Do not depend on glyphs_changed, only depend on
10107 (redisplay_output_layout): add debug messages.
10108 (compare_runes): ditto.
10110 * glyphs.h: declare new functions.
10111 (struct Lisp_Image_Instance): remove percent and associated
10114 * gui.h: declare new copying functions.
10116 * gui.c (copy_gui_item_tree): new function.
10117 (copy_gui_item): new function.
10118 (gui_item_id_hash): revert to standard hash.
10119 (gui_item_hash): ditto.
10120 (gui_item_hash_internal): deleted.
10121 (mark_gui_item): mark value.
10122 (gui_item_add_keyval_pair): add value.
10123 (gui_item_init): ditto.
10124 (gui_add_item_keywords_to_plist): ditto.
10125 (gui_item_equal): ditto.
10126 (syms_of_gui): add Q_value.
10128 * glyphs-x.c (x_progress_gauge_update): use pending items and
10129 value for setting the state.
10130 (x_update_widget): don't set items from pending here.
10132 * glyphs-widget.c (update_widget): update items here.
10133 (progress_gauge_set_property): use items for storing value. Put
10134 new value in pending items.
10136 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10137 items for new value. Convert percent -> value.
10138 (mswindows_tab_control_update): don't update items here.
10140 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10141 (update_subwindow): ditto.
10142 (image_instance_changed): new function. Compare hash values and
10143 past and present widget items.
10144 (image_instantiate): We more careful about where we instantiate
10146 (image_instantiate): add error checking.
10148 * gutter.c (syms_of_gutter): use -hook.
10150 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
10152 * console-tty.c (Fset_console_tty_input_coding_system): Use
10154 (Fset_console_tty_output_coding_system): Use Qterminal.
10155 (tty_init_console): Use Qkeyboard and Qterminal.
10157 2000-03-21 Ben Wing <ben@xemacs.org>
10159 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10160 From Mike Alexander <mta@arbortext.com>.
10162 2000-03-21 Ben Wing <ben@xemacs.org>
10164 * event-msw.c (mswindows_need_event): Horrible kludge to fix
10165 process brokenness. Proper implementation to come.
10167 Rename call-process-internal to old-call-process-internal.
10168 New impl. in process.el.
10170 2000-03-21 Martin Buchholz <martin@xemacs.org>
10172 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10174 2000-03-20 Andy Piper <andy@xemacs.org>
10176 * glyphs.c (full_list_hash): make hashes of the same elements in
10177 different orders return different values.
10179 2000-03-20 Martin Buchholz <martin@xemacs.org>
10181 * XEmacs 21.2.32 is released.
10183 2000-03-20 Martin Buchholz <martin@xemacs.org>
10185 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10186 (DFC_MALLOC_USE_CONVERTED_DATA):
10187 Add aliasing-safe casts to allow use with char* or unsigned char*
10190 * eldap.c (Fldap_open):
10191 (Fldap_search_basic):
10194 Make C++-compilable.
10195 Make sure GCPRO'ed variables are initialized.
10196 Use temp variables to avoid repeated calls to Flength.
10198 2000-03-16 Martin Buchholz <martin@xemacs.org>
10201 Make sure PATH_MAX is always defined.
10202 Include limits.h for PATH_MAX.
10203 Deprecate use of MAXPATHLEN.
10205 2000-03-10 Martin Buchholz <martin@xemacs.org>
10207 * emacs.c: Add reinit_vars_of_fileio.
10208 * symsinit.h: Add reinit_vars_of_fileio.
10209 * fileio.c (reinit_vars_of_fileio): New.
10210 * fileio.c (Fmake_temp_name):
10211 Initialize temp_name random number from microseconds to make
10212 collisions even less likely. Initialize always at process startup
10213 time. (make-temp-name) used to return the same file name twice in
10215 Random stylistic fiddling.
10218 2000-03-20 Andy Piper <andy@xemacs.org>
10220 * glyphs.c (image_instantiate): allow text glyphs to be
10221 instantiated in the minibuffer window.
10223 2000-03-19 Andy Piper <andy@xemacs.org>
10225 * glyphs.c (image_instance_hash): be careful about which items we
10228 * glyphs-widget.c (tab_control_set_property): record into pending
10229 items rather than the actual items.
10231 * glyphs-x.c (x_update_widget): use pending items to update with.
10233 * glyphs-msw.c (mswindows_tab_control_update): use pending items
10236 * glyphs.c (mark_image_instance): mark pending items.
10238 * window.c (Fset_window_configuration): record the buffer.
10239 (Fselect_window): totally revert previous change which breaks many
10242 2000-03-18 Andy Piper <andy@xemacs.org>
10244 * glyphs-msw.c (mswindows_tab_control_update): force selected
10247 * glyphs.c (image_instantiate): don't allow the minibuffer as a
10248 window domain cache, otherwise we get inconsistencies at
10249 startup. There is something fishy at startup which can lead to the
10250 minibuffer being the selected window when the gutter content is
10253 * gui.c (parse_gui_item_tree_list): add probably unnecessary
10255 (parse_gui_item_tree_children): ditto.
10256 (parse_gui_item_tree_item): ditto.
10258 * glyphs.c (Fupdate_widget_instances): return something.
10260 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
10262 * window.c (Fselect_window): Undo 2000-03-17 change.
10264 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
10266 * postgresql.c (Fpq_setenv): Remove this turkey when linking
10267 against v7.0 libraries. Insta-coredump city until the postgres
10270 2000-03-17 Andy Piper <andy@xemacs.org>
10272 * faces.c (complex_vars_of_faces): don't give the widget face an
10273 inherited background pixmap.
10275 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10278 * event-stream.c (Fdispatch_non_command_events): return something.
10280 * gutter.c (output_gutter): use widget face.
10281 (clear_gutter): ditto.
10283 * NEWS: adjust again.
10285 * window.c (Fselect_window): make sure this runs to completion to
10286 avoid oddities with Fset_window_configuration.
10287 (Fcurrent_window_configuration): in general do not save the
10288 minibuffer as the selected window.
10290 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10292 2000-03-16 Olivier Galibert <galibert@pobox.com>
10294 * emacs.c (Frunning_temacs_p): Revert previous patch.
10295 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10297 2000-03-16 Andy Piper <andy@xemacs.org>
10299 * glyphs-x.c (x_tab_control_update): if no widget values then
10302 * NEWS: update for new features.
10304 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10305 synthetic event to the native system.
10306 (reinit_vars_of_event_Xt): set force_event_pending to
10307 emacs_Xt_force_event_pending.
10309 * events.h (struct event_stream): add force_event_pending.
10311 * specifier.c (recompute_one_cached_specifier_in_window): add
10314 * redisplay.c (redisplay_frame): don't call
10315 update_frame_subwindows. Reset subwindow cachels when
10316 subwindows_changed, removing this was an optimization too far.
10318 * redisplay-output.c (compare_runes): reorganize so that we catch
10319 glyph changes when we want them. Set optimize_output when this
10320 would help layouts.
10321 (redisplay_output_layout): remove frame_really_changed, use
10322 optimize_output instead.
10324 * redisplay-msw.c (mswindows_output_display_block): reset
10325 optimize_output after outputting a glyph.
10326 * redisplay-x.c (x_output_display_block): ditto.
10327 * redisplay-tty.c (tty_output_display_block): ditto.
10329 * gutter.c: (specifier_vars_of_gutter): use new spec changed
10331 (gutter_specs_changed): do specific gutter positions.
10332 (top_gutter_specs_changed): new function. Only update the
10333 specified gutter specs.
10334 (bottom_gutter_specs_changed): ditto.
10335 (left_gutter_specs_changed): ditto.
10336 (right_gutter_specs_changed): ditto.
10338 * gui.c (gui_item_hash_internal): new function, does a real hash.
10339 (gui_item_id_hash): use it.
10340 (gui_item_hash): hash the eval'ed gui_item.
10342 * gui-x.c (popup_selection_callback): send an eval event to call
10343 Fupdate_widget_instances.
10345 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10346 to call Fupdate_widget_instances.
10348 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10349 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10351 * glyphs.c: (update_frame_subwindows): deleted.
10352 (Fupdate_widget_instances): new function for updating the dirty
10353 state of widgets that might have changed.
10354 (syms_of_glyphs): add Qupdate_widget_instances.
10355 (full_list_hash): hash a list completely.
10356 (image_instance_hash): use it for items and properties.
10358 * frame-msw.c (mswindows_size_frame_internal): remove unused
10361 * faces.h (struct face_cachel): fix comment.
10363 * event-stream.c (Fdispatch_non_command_events): new
10364 function. Process non-command events, forcing an event cycle
10366 (syms_of_event_stream): declare.
10367 (event_stream_force_event_pending): new function. Force an event
10368 on the native event queue so that an event cycle will occur next
10372 (struct ntpipe_shove_stream):
10373 (mswindows_enqueue_dispatch_event):
10374 (mswindows_dequeue_dispatch_event):
10375 (mswindows_cancel_dispatch_event):
10376 (mswindows_pump_outstanding_events):
10377 (mswindows_drain_windows_queue):
10378 (mswindows_handle_paint):
10379 (mswindows_wnd_proc):
10380 (mswindows_key_to_emacs_keysym):
10381 (get_process_input_waitable):
10382 (emacs_mswindows_delete_stream_pair): re-indent file.
10383 (mswindows_need_event): do not process further fds if the windows
10384 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10385 fixes the 100% cpu problem.
10386 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10388 2000-03-15 Olivier Galibert <galibert@pobox.com>
10394 * emacs.c: Moved dump file searching to dumper.c.
10395 (Frunning_temacs_p): Fixed.
10397 * alloc.c: Moved everything pdump-related to dumper.c. Removed
10398 last_lrecord_type_index_assigned.
10400 2000-02-20 Olivier Galibert <galibert@pobox.com>
10402 * symsinit.h: Added reinit parameter to init_console_stream
10405 * lisp.h: Added file parameter to pdump_load declaration.
10407 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10408 support. Added dump file searching.
10410 * config.h.in: Added EMACS_PROGNAME.
10412 * console-stream.c (init_console_stream): Fix reinitialisation
10413 when running from temacs.
10415 * alloc.c (pdump): Add id support.
10416 (pdump_load): Add file parameter and signature/id support.
10418 * Makefile.in.in: Add full pdump support.
10420 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
10422 * postgresql.c: Update documentation to reflect latest code
10424 (print_result): Show tuple counts in printed representation when
10426 (Fpq_put_nbytes): MULE-ize.
10427 (Fpq_get_line_async): Ditto.
10429 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10431 * postgresql.c (Fpq_lo_import): Fix return value.
10432 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10434 2000-03-13 Ben Wing <ben@xemacs.org>
10436 * alloc.c (pdump_load):
10437 Fix compile warning under mswin.
10439 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10441 * postgresql.c: Mule-ization, bug fixes.
10442 Use PG_CODING to encapsulate coding system name changes.
10443 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10444 (pg-coding-system): Create.
10446 (Fpq_conn_defaults): Mule-ize.
10447 (Fpq_connectdb): Mule-ize & bug fix.
10448 (Fpq_connect_start): Mule-ize.
10449 (Fpq_set_client_encoding): Mule-ize.
10450 (Fpq_finish): Document `DEAD' connection status.
10451 (Fpq_clear): Ditto.
10452 (Fpq_pgconn): Mule-ize.
10453 (Fpq_exec): Mule-ize & bug fix.
10454 (Fpq_send_query): Ditto.
10455 (Fpq_get_result): Ditto.
10456 (Fpq_res_status): Mule-ize.
10457 (Fpq_result_error_message): Mule-ize.
10458 (Fpq_ntuples): fix comments.
10459 (Fpq_fname): Mule-ize.
10460 (Fpq_fnumber): Mule-ize.
10461 (Fpq_ftype): fix comments.
10462 (Fpq_get_value): Mule-ize.
10463 (Fpq_cmd_status): Ditto.
10464 (Fpq_cmd_tuples): Ditto.
10465 (Fpq_oid_value): Ditto.
10466 (Fpq_notifies): Ditto.
10467 (Fpq_lo_import): Ditto.
10468 (Fpq_lo_export): Ditto.
10469 (Fpq_get_line): Ditto.
10470 (Fpq_put_line): Mule-ize and bug fix.
10471 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10473 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10475 * postgresql.c (vars_of_postgresql): Mule-ize.
10476 (Fpq_conn_defaults): Ditto.
10478 2000-03-12 Ben Wing <ben@xemacs.org>
10480 * alloc.c (Fmake_byte_code):
10481 * alloc.c (debug_string_purity_print):
10482 * alloc.c (pdump_backtrace):
10483 * alloc.c (pdump_get_indirect_count):
10484 * alloc.c (pdump_register_sub):
10485 * alloc.c (pdump_register_object):
10486 * alloc.c (pdump_register_struct):
10487 * alloc.c (pdump_dump_data):
10488 * alloc.c (pdump_reloc_one):
10492 * console-msw.c (GetConsoleHwnd):
10493 * console-msw.c (msw_hide_console):
10494 * console-msw.c (msw_show_console):
10495 * console-msw.c (msw_ensure_console_buffered):
10496 * console-msw.c (msw_output_console_string):
10497 * console-msw.c (console_type_create_mswindows):
10499 a) Added functions to manipulate the console window for use with
10502 b) Added support for writing text to the console, which is now
10503 used under Windows when xemacs is not being run non-interactively,
10504 to write text that would otherwise be destined for stdout because
10505 under these circumstances, text written to stdout tends to
10506 disappear and not be seen.
10510 * event-Xt.c (x_event_to_emacs_event):
10511 * event-Xt.c (describe_event_window):
10512 * events-mod.h (XEMACS_MOD_CONTROL):
10514 * events.c (Fmake_event):
10515 * events.c (character_to_event):
10516 * events.c (event_to_character):
10517 * events.c (format_event_object):
10518 * events.c (Fevent_modifiers):
10520 * events.h (struct key_data):
10521 * events.h (struct button_data):
10522 * events.h (struct misc_user_data):
10523 * frame-x.c (Fcde_start_drag_internal):
10524 * frame-x.c (Foffix_start_drag_internal):
10525 * gpmevent.c (Freceive_gpm_event):
10527 * keymap.c (bucky_sym_to_bucky_bit):
10528 * keymap.c (control_meta_superify):
10529 * keymap.c (make_key_description):
10530 * keymap.c (keymap_lookup_directly):
10531 * keymap.c (create_bucky_submap):
10532 * keymap.c (keymap_store):
10533 * keymap.c (define_key_check_and_coerce_keysym):
10534 * keymap.c (define_key_parser):
10535 * keymap.c (define_key_alternate_name):
10536 * keymap.c (Fdefine_key):
10537 * keymap.c (raw_lookup_key_mapper):
10538 * keymap.c (struct map_keymap_unsorted_closure):
10539 * keymap.c (map_keymap_unsorted_mapper):
10540 * keymap.c (map_keymap_sort_predicate):
10541 * keymap.c (map_keymap_sorted):
10542 * keymap.c (accessible_keymaps_mapper_1):
10543 * keymap.c (where_is_recursive_mapper):
10544 * keymap.c (describe_map_mapper):
10545 * keymap.c (describe_map_sort_predicate):
10546 * keymap.c (describe_map):
10547 * keymap.c (complex_vars_of_keymap):
10548 And a number of other files, the key modifier preprocessor
10549 constants that xemacs uses have names that conflict with constants
10550 defined under MS Windows for other purposes, so they were renamed
10551 to begin with the prefix XEMACS_. The variables that hold such
10552 modifiers were changed to consistently be of type int to fix
10553 various compile warnings.
10555 * console.c (complex_vars_of_console):
10558 * device-msw.c (mswindows_finish_init_device):
10559 * device-msw.c (msw_get_workspace_coords):
10560 * device-msw.c (mswindows_device_system_metrics):
10561 and various other files, added support for a new
10562 device property called offset-workspace which returns the position
10563 of the upper left corner of the workspace area and goes along with
10564 the existing size-workspace property.
10567 * dialog-msw.c (push_bufbyte_string_as_unicode):
10568 * dialog-msw.c (mswindows_popup_dialog_box):
10569 Added support for XEmacs-style accelerator specifications in
10570 button text. Note: I didn't add support for this under X Windows,
10571 and somebody needs to do this.
10574 * dialog.c (Fpopup_dialog_box):
10575 Documented the support for accelerators that was just mentioned.
10577 editfns.c (get_home_directory): Changed behavior under Windows
10578 when HOME not defined; former behavior was irretrievably broken.
10581 * emacs.c (main_1):
10583 * minibuf.c (clear_echo_area_internal):
10584 * minibuf.c (echo_area_append):
10586 * print.c (std_handle_out_external):
10587 * print.c (std_handle_out_va):
10589 * print.c (write_string_to_stdio_stream):
10590 * print.c (output_string):
10591 * print.c (debug_print):
10592 * print.c (debug_backtrace):
10593 * print.c (debug_short_backtrace):
10594 Cleaned up the code that prints text to stdout so that this can be
10595 changed to output into a console window instead under MS Windows,
10596 as described above.
10599 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10600 * eval.c (internal_catch):
10601 * eval.c (unwind_to_catch):
10602 * eval.c (throw_or_bomb_out):
10603 * eval.c (condition_case_1):
10604 * eval.c (signal_1):
10605 * eval.c (check_error_state_sanity):
10606 * eval.c (call_with_suspended_errors_1):
10607 * eval.c (call_with_suspended_errors):
10608 * eval.c (reinit_vars_of_eval):
10609 Added code to catch throw loops and check for a pesky bug that may
10613 * event-msw.c (key_needs_default_processing_p):
10614 * event-msw.c (mswindows_wnd_proc):
10615 * event-msw.c (mswindows_modifier_state):
10616 * event-msw.c (emacs_mswindows_quit_p):
10617 * event-msw.c (vars_of_event_mswindows):
10618 a) Added support for using the alt key to select menu items as is
10619 standard under MS Windows. This is controlled using the variable
10620 menu-accelerator-enabled, just like under X Windows. There is an
10621 option on the options menu to turn this support on. I really
10622 think that it should be on by default under Windows, but I'm not
10623 going to make this change yet.
10625 b) Added support for dynamic display size changes under Windows.
10628 * event-stream.c (maybe_echo_keys):
10629 * event-stream.c (Fnext_event):
10630 * event-stream.c (command_builder_find_leaf):
10631 * event-stream.c (lookup_command_event):
10632 * event-stream.c (execute_command_event):
10633 * event-stream.c (pre_command_hook):
10634 * event-stream.c (post_command_hook):
10635 * event-stream.c (syms_of_event_stream):
10636 * event-stream.c (vars_of_event_stream):
10637 * event-stream.c (complex_vars_of_event_stream):
10638 * events.h (struct command_builder):
10640 a) Tried to clean up a little bit the horribly written x-specific
10641 accelerator code that crept into this file. I moved this code
10642 into menubar-x.c where it belongs. I also needed to move the
10643 command builder structure into the file events.h because it is
10644 accessed directly by this accelerator code. What I didn't do, but
10645 which should be done at some point, is to properly abstract this
10646 code using device methods instead of the kludgy way that it
10647 currently hooks into the event code.
10649 b) Added the lisp variables this-command-properties and
10650 last-command- properties, which should be used to synchronize two
10651 adjacent commands in preference to playing games with the variable
10652 this-command, which is typically what happens.
10654 c) Added some slightly nasty code to hook into the lisp support
10655 for shifted- motion-key selection. This is actually necessary for
10656 somewhat complicated reasons, which are described in
10657 simple.el. (NB: I think the proper thing would be to have the code
10658 that calls the pre and post command hooks also call out to generic
10659 lisp functions in simple.el, where all built-in stuff could be
10660 added. I will think about this more.)
10662 * event-unixoid.c (poll_fds_for_input):
10663 * lread.c (readchar):
10664 * redisplay-tty.c (tty_clear_frame):
10665 * redisplay-x.c (x_get_gc):
10666 * signal.c (interrupt_signal):
10667 And a whole bunch of other files: fixed up places that printed
10668 directly to stderr to instead call the function stderr_out so that
10669 the changes I made under Windows work correctly.
10671 * filemode.c (mode_string):
10675 * frame-msw.c (mswindows_size_frame_internal):
10676 Fixed the computation of frame size and position to keep the frame
10677 within the workspace area, rather than within the physical
10678 dimensions of the screen, so that the frame doesn't overlap window
10679 manager decorations, such as the start menu and toolbar, typically
10680 at the bottom of the screen.
10682 * frame.c (vars_of_frame):
10683 Changed the default frame title format under MS Windows to consist
10684 of buffername-XEmacs, which is standard under MS Windows. I think
10685 it might be a good idea to change this everywhere because I think
10686 it is superior to the current frame title format, but this is the
10687 kind of change that is likely to cause some people to get annoyed,
10688 so I'm not making it.
10690 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10692 * gui-msw.c (mswindows_handle_gui_wm_command):
10693 Fixed compile warnings.
10696 * gui-x.c (strdup_and_add_accel):
10697 * gui-x.c (button_item_to_widget_value):
10699 Added code to automatically put an accelerator onto the beginning
10700 of menu items that don't have one as is now the standard, and is
10701 described more later. Also fixed things so that the menu item
10702 name can be an evaluated expression, again a new standard.
10705 * gui.c (gui_item_add_keyval_pair):
10706 * gui.c (make_gui_item_from_keywords_internal):
10707 * gui.c (gui_add_item_keywords_to_plist):
10708 * gui.c (gui_item_accelerator):
10709 * gui.c (gui_name_accelerator):
10710 * gui.c (gui_item_included_p):
10711 * gui.c (gui_item_display_flush_left):
10712 * gui.c (gui_item_display_flush_right):
10713 * gui.c (parse_gui_item_tree_item):
10714 * gui.c (parse_gui_item_tree_children):
10715 * gui.c (parse_gui_item_tree_list):
10716 Mule-ized. Cleanup. GCPRO addition.
10718 * line-number.c (buffer_line_number):
10720 * lisp.h (EMACS_INT_MAX):
10721 Added the manifest constant EMACS_INT_MIN corresponding to the
10722 existing constant EMACS_INT_MAX. This is partially to fix compile
10723 warnings under Windows, and partly for cleanliness.
10726 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10727 * menubar-msw.c (msw_translate_menu_or_dialog_item):
10728 * menubar-msw.c (displayable_menu_item):
10729 * menubar-msw.c (populate_menu_add_item):
10730 * menubar-msw.c (populate_or_checksum_helper):
10731 * menubar-msw.c (populate_menu):
10732 * menubar-msw.c (update_frame_menubar_maybe):
10733 * menubar-msw.c (prune_menubar):
10734 * menubar-msw.c (msw_char_is_accelerator):
10735 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10736 * menubar-msw.c (mswindows_handle_wm_command):
10737 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10738 * menubar-msw.c (mswindows_handle_wm_initmenu):
10739 * menubar-msw.c (mswindows_update_frame_menubars):
10740 * menubar-msw.c (mswindows_free_frame_menubars):
10741 * menubar-msw.c (mswindows_popup_menu):
10742 Fixed a bug in handling accelerators where an extra character
10743 would be displayed in the menu item. Also generalized the
10744 function displayable_menu_item because it is now used by the
10745 dialog box code as well. And finally, added code in the functions
10746 that create the menubar to extract a list of accelerators for the
10747 top level menubar, which is used in the event code to determine
10748 whether a particular alt-key combination should be used to invoke
10749 a menu item, or should be passed through to access the standard
10750 XEmacs keymap binding for this key combination.
10752 Much needed GCPROing.
10755 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10756 * menubar-x.c (menu_item_descriptor_to_widget_value):
10757 * menubar-x.c (restore_in_menu_callback):
10758 * menubar-x.c (x_popup_menu):
10759 * menubar-x.c (menu_move_up):
10760 * menubar-x.c (menu_move_down):
10761 * menubar-x.c (menu_move_left):
10762 * menubar-x.c (menu_move_right):
10763 * menubar-x.c (menu_select_item):
10764 * menubar-x.c (command_builder_operate_menu_accelerator):
10765 * menubar-x.c (menu_accelerator_junk_on_error):
10766 * menubar-x.c (command_builder_find_menu_accelerator):
10767 * menubar-x.c (Faccelerate_menu):
10769 Moved a whole bunch of code here that was previously in
10770 event-stream.c as described above. There is also code connected
10771 to the new standard of adding an accelerator to the beginning of
10772 menu items that don't have one as described above and below.
10775 * menubar.c (menu_parse_submenu_keywords):
10776 * menubar.c (Fmenu_find_real_submenu):
10777 * menubar.c (Fnormalize_menu_item_name):
10778 * menubar.c (syms_of_menubar):
10779 * menubar.c (vars_of_menubar):
10780 * menubar.c (complex_vars_of_menubar):
10782 a) Cleaned up a bunch of documentation and improved it.
10784 b) XEmacs now automatically adds an accelerator onto the beginning
10785 of any menu items that don't have one. I did this because there
10786 will inevitably be some menu items on the main menubar that don't
10787 have accelerators on them because the package that adds that
10788 particular menu item hasn't yet been fixed up to have accelerators
10789 in them and it looked rather strange to have some items with and
10790 some items without accelerators, especially since even in items
10791 without accelerators, you can, at least under windows, still
10792 access the item through an accelerator corresponding to the first
10793 character in the item's name. If people don't like this behavior,
10794 I can add a variable to turn it off optionally, but I'm not sure
10795 this is a good idea because we really do need to have accelerators
10796 on all of the menu items, and if a package doesn't like the
10797 accelerators being put on the first character, then it should put
10798 the accelerators where they belong.
10800 c) I made a behavior change, which is that the descriptor that
10801 specifies the text of the menu item, which formerly was just a
10802 string, can now also be an evaluated expression. This makes this
10803 descriptor parallel with all of the others, which could also be
10804 evaluated expressions. This also obviates the need for the
10805 keyword :label, which was previously listed in the documentation
10806 as unimplemented, and which was for the same purpose.
10811 * ntproc.c (new_child):
10812 * ntproc.c (sys_spawnve):
10813 * ntproc.c (find_child_console):
10814 * ntproc.c (sys_kill):
10815 Fixed compile warnings. By the way, this file should really go
10816 away entirely, and this will happen as soon as Kirill makes his
10817 final round of process cleanups, which affect the function
10821 * process-nt.c (struct nt_process_data):
10822 * process-nt.c (find_process_from_pid):
10823 * process-nt.c (send_signal_the_nt_way):
10824 * process-nt.c (enable_child_signals):
10825 * process-nt.c (find_child_console):
10826 * process-nt.c (send_signal_the_95_way):
10827 * process-nt.c (nt_finalize_process_data):
10828 * process-nt.c (ensure_console_window_exists):
10829 * process-nt.c (nt_create_process):
10830 * process-nt.c (nt_kill_child_process):
10831 * process-nt.c (nt_kill_process_by_pid):
10832 * process-nt.c (nt_open_network_stream):
10833 * process-nt.c (vars_of_process_nt):
10834 Copied over code from Emacs 20.5 to correctly send signals to sub-
10835 processes under Windows 95. Also added code to automatically
10836 create and hide console window when a sub-process is created under
10837 Windows 95, which obviates the need for the separate runemacs.exe
10838 executable, and finally implemented some variables that were
10839 implemented in Emacs 20.5, but previously not in XEmacs. These
10840 include mswindows- start-process-share-console and
10841 mswindows-start-process-inherit-error-mode. (Both of these only
10842 apply to Windows 95.)
10844 * regex.c (regex_compile): Fixed a compile warning.
10847 * select-msw.c (mswindows_own_selection):
10848 * select-msw.c (mswindows_get_foreign_selection):
10849 * select-msw.c (mswindows_disown_selection):
10850 * select-msw.c (console_type_create_select_mswindows):
10851 * select-msw.c (syms_of_select_mswindows):
10852 Cleaned up the file and implemented the device method
10853 selection_exists_p, which had accidentally been left out. Also
10854 removed four lisp functions that were remnants from before the
10855 time when the selection code was properly device abstracted.
10856 These functions are no longer needed because there are generic
10857 equivalents, and because they were added recently and don't exist
10858 in FSF Emacs, I don't think there's any problem with just deleting
10862 * sysdep.c (sys_subshell):
10863 Fixed a compile warning, although in this case there's probably
10864 something wrong with this code, and it ought to be looked into
10865 more thoroughly by somebody who understands it.
10868 * window.c (Fwindow_text_area_height):
10869 * window.c (Fwindow_width):
10870 * window.c (Fwindow_full_width):
10871 * window.c (Fwindow_pixel_width):
10872 * window.c (debug_print_window):
10873 * window.c (syms_of_window):
10874 Added functions window-text-area-height and window-full-width,
10875 which are functions for returning various width and height
10876 characteristics of a window. (One of these functions is necessary
10877 for making the file dialog box work correctly, and the other one
10878 was added for completeness.) Also added a table to the
10879 documentation for window-height which describes the entire scheme
10880 for accessing width and height characteristics of a window.
10882 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10884 * nt.c (fstat): Added a comment for another problem with
10885 non-encapsulated [f]stat(), reported by Adrian Aichner
10886 <aichner@ecf.teradyne.com>.
10888 2000-03-11 Andy Piper <andy@xemacs.org>
10890 * window.c (make_dummy_parent): initialize subwindow instance
10892 (Fset_window_configuration): zero extent_modiff.
10894 2000-03-10 Andy Piper <andy@xemacs.org>
10896 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10897 more changes can be triggered.
10898 (Fredisplay_frame): ditto.
10899 (Fredraw_device): ditto.
10900 (Fredisplay_device): ditto.
10901 (redisplay_frame): make non-static.
10902 (redisplay_frame): call update_frame_gutter_geometry outside of
10905 * gutter.h: declare update_frame_gutter_geometry.
10907 * redisplay.h: declare redisplay_frame.
10909 * gutter.c (update_frame_gutter_geometry): move geometry changes
10910 in update_frame_gutters here. Geometry changes can only occur
10911 outside of redisplay.
10912 (update_frame_gutters): remove geometry change code.
10913 (Fredisplay_gutter_area): make sure that we are in display when we
10914 update and that we have flushed any size changes.
10916 2000-03-11 Andy Piper <andy@xemacs.org>
10918 * alloc.c (pdump_dump_data): remove i & count shadows.
10920 2000-02-27 Mike Alexander <mta@arbortext.com>
10922 * sysdep.h: Declare pdump_read_file
10924 * sysdep.c (pdump_read_file): New function
10926 * alloc.c (pdump_load): Call pdump_read_file to get the portable
10929 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10931 * lrecord.h: add `lrecord_type_pgsetenv'.
10933 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
10935 * symsinit.h: declare (vars|syms)_of* functions.
10936 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10938 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
10940 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10942 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10945 * emacs.c (main_1): Call postgres initialization code.
10947 * postgresql.h: New file. PostgreSQL RDBMS support.
10948 * postgresql.c: New file.
10950 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
10952 * redisplay-output.c (redisplay_output_display_block): Disable
10955 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10957 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10958 (Fcanna_henkan_next): Ditto.
10959 (Fcanna_bunsetu_henkou): Ditto.
10960 (Fcanna_henkan_kakutei): Ditto.
10961 (Fcanna_henkan_end): Ditto.
10962 (Fcanna_henkan_quit): Ditto.
10963 (Fcanna_henkan_next): Set retun value correctly.
10964 (c2mu): Use unsigned char instead of signed char.
10966 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10968 * emacs.c (main_1): Always call syms_of_gui.
10969 * inline.c: include gui.h
10971 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10973 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10974 converted to Lisp_Object.
10975 (Qtop_bottom): New variable.
10976 (syms_of_redisplay): Initialize it.
10977 * redisplay.h (Vvisible_bell): Ditto.
10978 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10979 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10980 only flash top and bottom.
10982 2000-03-08 Andy Piper <andy@xemacs.org>
10984 * buffer.c (Frename_buffer): record new buffer name the right way.
10986 2000-03-08 Andy Piper <andy@xemacs.org>
10988 * glyphs.c (update_subwindow): increase hash depth so that widget
10989 items get picked up properly.
10991 * redisplay-output.c (compare_runes): increase hash depth so that
10992 widget items get picked up properly.
10994 2000-03-08 Andy Piper <andy@xemacs.org>
10996 * gutter.c (output_gutter): add some debug.
10998 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10999 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11000 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11002 * redisplay-output.c (compare_runes): use display_hash to
11003 determine if glyphs really are not the same.
11005 * glyphs.c (update_subwindow): check display_hash to see if
11006 anything really needs to be updated. If not then do
11007 nothing. Record the display_hash after updating.
11008 (image_instance_equal): compare the image_instance face also.
11010 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
11012 * redisplay.h: Fix comment style.
11014 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
11016 * consle-msw.h (struct mswindows_frame):
11017 Added new member paint_pending to indicate whether a WM_PAINT
11018 magic event has been queued for this frame.
11020 * event-msw.c (mswindows_drain_windows_queue):
11021 Don't queue a WM_PAINT magic event if one is already queued.
11022 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11024 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11026 2000-03-07 Didier Verna <didier@xemacs.org>
11028 * dired.c: #include `regex.h' after `sysfile.h'.
11030 2000-03-06 Martin Buchholz <martin@xemacs.org>
11032 * sound.c (init_nas_sound): Fix compiler warning.
11034 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11036 (MARK_STRUCT_AS_FREE):
11037 (MARK_STRUCT_AS_NOT_FREE):
11038 Make `gcc -fstrict-aliasing' work properly.
11040 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
11042 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11043 (mswindows_delete_device): Call CoUnnitialize().
11045 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11047 2000-02-25 <CraigL@DyCon.com>
11049 * process-nt.c: MinGW now has <shellapi.h>, but still needs
11052 * sysdep.c: This extern declaration for environ prevents MinGW
11053 from finding the variable in CRTDLL.DLL.
11055 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11057 (SHGFI_EXETYPE): ..
11058 (WM_MOUSEWHEEL): ..
11059 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11061 (MMRESULT): Removed, now defined in cygwin's windows headers.
11063 (uid_t,gid_t,pid_t,ssize_t): ..
11064 (_timeb): Removed, MinGW defines both _timeb and timeb.
11065 (HAVE_H_ERRNO): Added.
11066 (HAVE_TZNAME): Added, configure is not detecting this.
11068 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
11070 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11071 * syntax.c (syntax_match): Use it.
11073 * cmds.c: Import auto-fill-chars from FSF Emacs.
11074 (Vauto_fill_chars): New variables.
11075 (internal_self_insert): Check Vauto_fill_chars.
11077 Declare auto-fill-chars as a Lisp variable and initialize it.
11079 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
11081 * fileio.c (Fmake_symbolic_link):
11083 Run handlers even if local machine doesn't have symlinks.
11085 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
11087 * event-msw.c (mswindows_drain_windows_queue):
11088 Don't generate paint magic events for non-XEmacs frames.
11090 2000-03-05 Andy Piper <andy@xemacs.org>
11092 * redisplay.c (redisplay_frame): generate_displayable_area and
11093 friends assumes that we are not in GC, we therefore have to make
11094 sure that this doesn't happen.
11096 * gutter.c (calculate_gutter_size): generate_displayable_area
11097 assumes that we are not in GC, we therefore have to make sure that
11098 this doesn't happen.
11100 2000-03-05 Martin Buchholz <martin@xemacs.org>
11102 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11104 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
11106 * redisplay.c (regenerate_window): Make sure we set a sane value
11107 for end_pos even if we jump out of the loop.
11108 (regenerate_window): Answer Ben's question :-).
11109 (start_end_of_last_line): Add may_error argument.
11110 (start_of_last_line):
11111 (end_of_last_line): Pass may_error = 0.
11112 (end_of_last_line_may_error): New function.
11113 (pixel_to_glyph_translation): Use it, so we don't crash in
11116 2000-03-04 Andy Piper <andy@xemacs.org>
11118 * window.h (struct window): add gutter_extent_modiff.
11120 * window.c (allocate_window): zero out gutter_extent_modiff.
11122 * redisplay.h: declare sync_display_line_structs.
11124 * redisplay.c (add_glyph_rune): add a better comment.
11126 * redisplay-output.c (sync_display_line_structs): made non-static.
11127 (compare_runes): remove unneccesary glyph cachel access.
11129 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11131 * gutter.c (output_gutter): don't output the gutter if extent
11132 changes only involve extents in buffers. use 4 sets of display
11134 (gutter_extent_signal_changed_region_maybe): new function. Mark
11135 extents in gutters as changed.
11136 (update_frame_gutters): use 4 sets of display lines.
11137 (reset_gutter_display_lines): ditto.
11138 (free_frame_gutters): ditto.
11139 (redraw_exposed_gutter): force output of gutters.
11141 * frame.h (struct frame): add 4 sets of gutter display lines.
11143 * extents.c: (extent_changed_for_redisplay): signal changes to
11144 extents in strings in the gutter as well as extents in buffers.
11146 2000-03-02 Andy Piper <andy@xemacs.org>
11148 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11150 * frame.c (Fmake_frame): make sure the gutters get initialized
11151 after the frame is visible.
11152 (set_frame_selected_window): re-arrange compilation macros a
11154 (change_frame_size_1): mark gutters changed.
11156 * device.c (Fset_device_class): mark gutters changed.
11158 2000-03-01 Andy Piper <andy@xemacs.org>
11160 * window.c (window_top_frame_gutter_height): deleted.
11161 (window_bottom_frame_gutter_height): ditto.
11162 (window_left_frame_gutter_height): ditto.
11163 (window_right_frame_gutter_height): ditto.
11164 (window_top_gutter_height): don't use them.
11165 (window_bottom_gutter_height): ditto.
11166 (window_left_gutter_width): ditto.
11167 (window_right_gutter_width): ditto.
11168 (Fsplit_window): ditto.
11169 (Fwindow_pixel_edges): don't use border dimensions here.
11171 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11172 (update_scrollbar_instance): ditto.
11174 * redisplay.c (generate_modeline): don't take gutters into account.
11175 (generate_modeline): ditto.
11176 (redisplay_frame): small gutter display optimization.
11178 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11180 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11181 gutters into account.
11183 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11184 for window position and type.
11186 * gutter.c (get_gutter_coords): fix for frame gutters.
11187 (update_frame_gutters): update frame geometry if the gutters have
11189 (init_frame_gutters): record current gutter geometries.
11191 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11193 (mswindows_widget_instantiate): ditto.
11195 * frame.h (struct frame): add current_gutter_bounds.
11197 * frame.c (change_frame_size_1): position window and minibuffer
11198 appropriately taking into account the frame gutters.
11200 * frame-x.c: (x_initialize_frame_size): take into account the
11203 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11205 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
11207 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11209 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11211 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11213 * file-coding.c (reset_decoding_stream): Clear previous
11214 detection state when autodetect.
11216 2000-02-29 Didier Verna <didier@xemacs.org>
11218 * extents.c (set_extent_glyph_1): don't require extents to be
11221 2000-02-27 Andy Piper <andy@xemacs.org>
11223 * gutter.c (Fset_default_gutter_position): don't default left and
11224 right gutter visibility to t.
11225 (Fset_default_gutter_position): run
11226 default-gutter-position-changed-hook.
11227 (syms_of_gutter): add default-gutter-position-changed-hook.
11229 2000-02-26 Andy Piper <andy@xemacs.org>
11231 * specifier.c (Fmake_specifier): add gutter references.
11233 * gutter.h (RAW_WINDOW_GUTTER): new macro.
11235 * lisp.h: declare Fvalid_plist_p.
11237 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11239 (default_gutter_visible_p_changed_in_window): invalidate gutter as
11240 well as its visibility so that it gets reconstructed.
11241 (construct_window_gutter_spec): new function. Construct a string
11242 to be displayed in the gutter from a plist of strings. Take care
11243 to only use elements that are declared as visible.
11244 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11246 (gutter_validate): allow plists of strings in the specifier.
11247 (gutter_specs_changed): construct the real_gutter from the gutter
11248 specs using construct_window_gutter_spec.
11249 (gutter_visible_validate): gutter-visible is a new specifier type.
11250 (Fgutter_visible_specifier_p): new function for the new specifier.
11251 (syms_of_gutter): declare gutter-visible and
11252 Fgutter_visible_specifier_p.
11253 (specifier_type_create_gutter): intitalize new gutter-visible
11255 (reinit_specifier_type_create_gutter): ditto.
11256 (specifier_vars_of_gutter): use new specifier type for gutter
11258 (init_frame_gutters): construct real_gutter correctly.
11259 (Fgutter_specifier_p): beef up documentation.
11260 (Fgutter_size_specifier_p): ditto.
11262 * winslots.h: add real_gutter slots.
11264 2000-02-25 Andy Piper <andy@xemacs.org>
11266 * device-msw.c: Be kind to older cygwin versions. From Raymond
11267 Toy <toy@rtp.ericsson.se>.
11269 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11270 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11272 2000-02-25 Martin Buchholz <martin@xemacs.org>
11274 * elhash.c (MARK_OBJ): Practice macro hygiene.
11276 2000-02-24 Martin Buchholz <martin@xemacs.org>
11278 * miscplay.c: s/__inline__/inline/g;
11279 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11280 (get_device_compdc): INLINE ==> static inline
11281 * *.[ch]: Change INLINE to INLINE_HEADER globally.
11282 find -name '*.h' | \
11283 xargs global-replace \
11284 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11286 2000-02-25 Andy Piper <andy@xemacs.org>
11288 * window.c (window_top_frame_gutter_height): new function.
11289 (window_top_window_gutter_height): ditto.
11290 (window_top_gutter_height): use them.
11291 (window_bottom_frame_gutter_height): new function.
11292 (window_bottom_window_gutter_height): ditto.
11293 (window_bottom_gutter_height): use them.
11294 (window_left_window_gutter_width): new function.
11295 (window_left_frame_gutter_width): ditto.
11296 (window_left_gutter_width): use them.
11297 (window_right_window_gutter_width): new function.
11298 (window_right_frame_gutter_width): ditto.
11299 (window_right_gutter_width): use them.
11300 (window_pixel_height): new function. calulate window pixel height
11301 with frame gutter involvement.
11302 (Fsplit_window): calculate new sizes taking frame gutters into
11304 (window_char_height_to_pixel_height): don't include frame gutters.
11305 (window_char_height): use window_pixel_height.
11306 (window_pixheight): rename from window_pixel_height.
11307 (change_window_height): use it.
11308 (window_pixel_height_to_char_height): don't include frame gutters.
11309 (window_char_width_to_pixel_width): ditto.
11311 2000-02-25 Andy Piper <andy@xemacs.org>
11313 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11316 2000-02-24 Martin Buchholz <martin@xemacs.org>
11318 * alloc.c (staticpro):
11319 (staticpro_nodump):
11324 (compact_string_chars):
11325 (pdump_dump_wired):
11326 Convert: if (foo) abort(); ==> assert (! foo);
11328 * eldap.c (Fldap_search_basic):
11332 Fix compiler warnings, and possible crashes if (random) return
11333 value were to be used.
11335 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11337 * device-msw.c: Workaround ResetDC failure.
11339 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11340 applying a devmode.
11342 * redisplay-msw.c (get_frame_dc): Added start_page_p.
11343 (mswindows_text_width): Do not start printer page.
11345 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11347 * glyphs-msw.c: Added image methods to msprinter console and
11348 msprinter-specific image instantiation.
11350 2000-02-20 Mike Alexander <mta@arbortext.com>
11352 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11353 to avoid crashes when selection-sets-clipboard is on
11354 (mswindows_own_selection): ditto
11356 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11359 * redisplay-msw.c (get_frame_dc):
11360 (get_frame_compdc):
11362 * device-msw.c (mswindows_init_device):
11363 (mswindows_delete_device):
11364 (msprinter_init_device):
11365 (msprinter_delete_device):
11366 * frame-msw.c (mswindows_init_frame_1):
11367 (mswindows_delete_frame):
11368 (msprinter_init_frame_3):
11369 (msprinter_delete_frame): Move compatible DC to device object from
11370 frame object, for both mswindows and msprinter. Only one at a time
11371 is needed, it is a real waste to have one per frame!
11373 2000-02-23 Andy Piper <andy@xemacs.org>
11375 * glyphs.c: add dynamic width and height elements.
11376 (image_instance_equal): ditto.
11378 * glyphs-widget.c (widget_query_geometry): calculate width and
11379 height dynamically if required.
11380 (initialize_widget_image_instance): initialize dynamic dimensions.
11381 (widget_instantiate): pick-up dynamic dimensions.
11383 * glyphs.h (struct Lisp_Image_Instance): add width and height for
11384 dynamic determination. Add appropriate macros.
11386 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11388 (WINDOW_GUTTER_SIZE): ditto.
11389 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11391 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11393 (get_frame_dc): ditto.
11395 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11398 2000-02-23 Martin Buchholz <martin@xemacs.org>
11400 * XEmacs 21.2.31 is released.
11402 2000-02-22 Ben Wing <ben@xemacs.org>
11404 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11406 2000-02-22 Andy Piper <andy@xemacs.org>
11408 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11410 2000-02-21 Mike Sperber <mike@xemacs.org>
11414 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11417 2000-02-21 Mike Sperber <mike@xemacs.org>
11419 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11421 2000-02-21 Martin Buchholz <martin@xemacs.org>
11423 * XEmacs 21.2.30 is released.
11425 2000-02-20 Martin Buchholz <martin@xemacs.org>
11427 Performance hacking.
11429 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11430 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11431 * emacs.c (main_1):
11433 * console.c (DEFVAR_CONSOLE_LOCAL_1):
11434 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11435 * symeval.h (DEFVAR_SYMVAL_FWD):
11436 * symbols.c (guts_of_unbound_marker):
11437 Make all c_readonly objects also lisp_readonly and marked for life.
11438 * lrecord.h (struct lrecord_implementation):
11439 Document flags better.
11440 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11441 * lrecord.h (DECLARE_LRECORD):
11442 * lrecord.h (XSETRECORD):
11443 * lrecord.h (RECORDP):
11444 * lrecord.h (RECORD_TYPEP):
11445 * lrecord.h (RECORD_MARKER): New.
11446 * lrecord.h (error_check_*):
11447 * lrecord.h (CONCHECK_NONRECORD):
11448 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11449 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11450 * lrecord.h (set_lheader_implementation):
11451 * lrecord.h (enum lrecord_type): New.
11452 * symeval.h (SYMBOL_VALUE_MAGIC_P):
11453 * alloc.c (disksave_object_finalization_1):
11454 * alloc.c (mark_object):
11455 * alloc.c (lrecord_type_index):
11456 * alloc.c (tick_lcrecord_stats):
11457 * alloc.c (Fgarbage_collect):
11458 * alloc.c (init_alloc_once_early):
11459 * alloc.c (pdump_load):
11460 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11461 * alloc.c (lrecord_type_index): Delete.
11462 Make lisp object type indexes be constant.
11463 Makes (byte-compile) 5% faster.
11464 Put all marker functions into their own array.
11465 Makes (garbage-collect) 5% faster.
11466 Optimize SYMBOL_VALUE_MAGIC_P.
11467 Makes (byte-compile) 2-3% faster.
11468 * config.h.in (gc_checking_assert): New.
11469 * alloc.c: Use gc_checking_assert().
11470 * .dbxrc: Make compatible with new object type implementation.
11471 * .gdbinit: Make compatible with new object type implementation.
11472 * alloc.c: Delete all symbols defined only for debugging, such as
11473 Lisp_Type_Vector and lrecord_charset.
11475 2000-02-21 Andy Piper <andy@xemacs.org>
11477 * gui-msw.c (Fmswindows_shell_execute): fix file location
11480 * buffer.c (Fkill_buffer): remove buffer from alist buffer
11481 unshowing so that set_window_buffer doesn't undo
11482 kill_buffer_hook's hard work.
11484 * glyphs-widget.c (tab_control_query_geometry): don't count the
11485 first item when calculating geometry.
11487 * glyphs.c (map_subwindow): remove redundant code.
11488 (update_frame_subwindows): be more circumspect about when to
11491 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11492 when items haven't changed. Update faces if faces have changed as
11493 well as just the widget face.
11494 (x_tab_control_update): Update faces if faces have changed as well
11495 as just the widget face.
11497 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11499 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11501 (build_syscolor_string): Use mswindows_color_to_string to try to
11503 (mswindows_device_system_metrics): Reverse the foreground and
11504 background colors so that they match the documentation.
11506 * objects-msw.c: (mswindows_X_color_map): tweak some values so
11507 they match the default Windows palette.
11508 (mswindows_color_to_string): New function.
11510 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11512 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11514 2000-02-18 Olivier Galibert <galibert@pobox.com>
11516 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11517 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11519 * symbols.c (init_symbols_once_early): Removed obsolete
11520 DATA_SEG_BITS related kludge.
11521 (defvar_magic): Ditto.
11523 * malloc.c: Removed obsolete DATA_SEG_BITS
11525 * mem-limits.h: Ditto.
11527 * Makefile.in.in: Removed obsolete HAVE_SHM
11530 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11532 * device-msw.c (mswindows_delete_device): Free DDE string
11535 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11537 * keymap.c (get_keyelt):
11538 * unexnt.c (unexec):
11539 * vm-limit.c (memory_warnings):
11540 * ntheap.c (recreate_heap):
11541 * ntheap.h (UNINIT_PTR):
11542 * select-msw.c (Fmswindows_get_clipboard):
11543 (Fmswindows_set_clipboard):
11544 * objects-msw.h (MSWINDOWS_BAD_HFONT):
11546 * menubar-msw.c (displayable_menu_item):
11548 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11549 * sysdep.c (sys_subshell):
11550 * process-nt.c (nt_create_process):
11551 * nt.c (normalize_filename):
11552 (dostounix_filename):
11553 (unixtodos_filename):
11554 * ntproc.c (win32_executable_type):
11555 * ntplay.c (play_sound_data_1):
11557 * editfns.c (get_home_directory):
11558 * event-msw.c (struct winsock_stream):
11559 (mswindows_dde_callback):
11560 * device-msw.c (msprinter_init_device):
11561 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11563 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11564 mswindows_clear_toolbar were swapped!
11566 * objects-msw.c:(colormap_t):
11568 * emacs.c (struct standard_args): Fixed const jumble.
11570 * glyphs-widget.c (update_widget): Fixed comparison notation.
11572 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11574 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11575 __declspec(noreturn) syntax.
11577 2000-02-19 Martin Buchholz <martin@xemacs.org>
11579 * eldap.c (Fldap_open):
11580 (Fldap_search_basic):
11583 Use new coding system conversion macros.
11585 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11587 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11589 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
11591 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11592 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11594 * eldap.c (Qadd, Qreplace): New constant symbols
11595 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11596 interruptions by XEmacs signals
11597 Remove unnecessary calls to slow_down_interrupts and
11598 speed_up_interrupts
11599 (Fldap_search_basic): Renamed from Fldap_search_internal
11600 Added new optional parameter VERBOSE that triggers the
11601 display of progress messages
11602 Remove unnecessary calls to slow_down_interrupts and
11603 speed_up_interrupts
11604 LDAP result code analysis rewritten
11605 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11606 (syms_of_eldap): Define the new symbols and functions
11609 2000-02-17 Martin Buchholz <martin@xemacs.org>
11611 * realpath.c: Determine PATH_MAX maximally portably.
11613 * insdel.c (bytecount_to_charcount): Optimize.
11614 The function used to be optimized for entirely ASCII sequences.
11615 Now it is optimized for successive characters from the same
11616 charset. This also wins big for _mostly_ ASCII sequences.
11618 * fileio.c (Ffile_truename): convert return from realpath() using
11619 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
11620 - Rewrite GCPROing slightly.
11622 * sysdep.c (sys_open): Do filename conversion, like all other
11623 sys_* functions. Fixes bug:
11624 (let ((file-name-coding-system 'iso-8859-2))
11625 (write-region x y latin2-name))
11626 ==> writes filename using internal encoding.
11628 2000-02-18 Martin Buchholz <martin@xemacs.org>
11630 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11631 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11632 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11633 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11634 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11635 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11636 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11637 (CONST_IF_NOT_DEBUG): Delete.
11638 * alloc.c (this_one_is_unmarkable): Delete.
11639 (mark_object): Don't check for this_one_is_unmarkable. Use the
11640 c_readonly flag instead.
11641 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11643 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
11645 * event-msw.c (mswindows_drain_windows_queue):
11646 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11647 away redundant repaint events.
11649 2000-02-17 Andy Piper <andy@xemacs.org>
11651 * redisplay.h: declare mark_redisplay_structs.
11653 * redisplay.c (redisplay_window):
11654 (redisplay_frame): don't check subwindows_state_changed.
11655 (mark_redisplay): mark gutters here.
11657 * glyphs.c: (instantiate_image_instantiator): always layout if we
11658 haven't done so already.
11659 (allocate_image_instance): don't mark as dirty.
11660 (update_subwindow): bind inhibit_quit.
11662 * gutter.c (mark_gutters): new function.
11664 * glyphs-x.c (x_update_widget): Always resize to get round a
11667 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11668 breaking absolutely everything.
11670 * gutter.h: declare mark_gutters.
11672 2000-02-16 Martin Buchholz <martin@xemacs.org>
11674 * XEmacs 21.2.29 is released.
11676 2000-02-15 Olivier Galibert <galibert@pobox.com>
11678 * fns.c (size_bit_vector): Fix computation of the size.
11680 2000-02-15 Martin Buchholz <martin@xemacs.org>
11682 * *.[ch]: Change CONST to const globally.
11683 find -name '*.[ch]' | \
11684 xargs global-replace \
11685 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11686 - Remove vestigial references to CONST_IS_LOSING
11688 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11690 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11691 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11692 events instead of dispatching them directly.
11693 (mswindows_handle_paint): New function to do repainting.
11694 (mswindows_wnd_proc):
11695 (emacs_mswindows_handle_magic_event): Call above function.
11697 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11699 * objects-msw.c (mswindows_create_font_variant): Return the new
11701 (initialize_font_instance): Get font metrics from the underlined
11702 variant of the font to cope with the case where the underlined
11703 font has a bigger descent.
11705 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11707 * gui.c (gui_item_accelerator): Return the first underlined
11708 character in item name.
11710 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11712 * lisp.h: Added Qprinter.
11714 * general.c (syms_of_general): Initialized it.
11716 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11718 (get_frame_compdc): Made inline.
11720 * console.h (struct console_methods): Added eject_page method.
11722 * frame.h: Added FRAME_DISPLAY_P and friends.
11723 Aligned backslahes in many macros in more readable fashion.
11724 Added page_number to struct frame, and an accessor macro
11727 * defice.h: Added DEVICE_DISPLAY_P and friends.
11729 * device.c (Fdevice_printer_p): Used these.
11731 * frame.c (allocate_frame_core): Initialize page number.
11732 (Fprint_job_page_number):
11733 (Fprint_job_eject_page): Implemented.
11735 * frame-msw.c (msprinter_eject_page): Added method.
11736 (msprinter_start_page): Added.
11738 * window.c (Fwindow_truncated_p): Fixed docstring.
11739 (Fwindow_last_line_visible_height): Implemented.
11741 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11743 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11745 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11747 * syntax.c (scan_words): Always advance at least one character.
11749 2000-02-13 Andy Piper <andy@xemacs.org>
11751 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11752 to make sure the glyph is in the cachels.
11754 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11755 global image instance flag.
11756 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11757 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11759 * glyphs.c (allocate_image_instance): set dirty bits correctly.
11760 (Fset_image_instance_property): mark layout as changed.
11761 (invalidate_glyph_geometry_maybe): mark layout as changed.
11762 (glyph_width): use new NEEDS_LAYOUT macro.
11763 (glyph_ascent): ditto.
11764 (glyph_descent): ditto.
11765 (glyph_height): ditto.
11766 (image_instance_layout): mark layout as clean after laying out.
11767 (update_subwindow): don't mark layout as clean here.
11769 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11770 should no longer be needed.
11772 * glyphs-x.c (x_update_widget): sanitize asserts.
11773 (x_finalize_image_instance): sanitize assignment to widgets.
11775 * glyphs-widget.c (widget_instantiate): don't need to clear the
11778 2000-02-13 Martin Buchholz <martin@xemacs.org>
11780 * sysdep.c (getcwd): Use standard prototype.
11781 * sysdep.h (getcwd): Use standard prototype.
11783 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11784 (sequence, start, end).
11785 Remove redundant type checking.
11786 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11787 view of `caller-protects') to avoid a crash where the real fix was
11790 2000-02-12 Martin Buchholz <martin@xemacs.org>
11792 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11794 * s/sol2.h: Remove feature macro initialization.
11796 * alloc.c (alloc_lcrecord): Add more type checking assertions.
11797 (vector_hash): New. Code from internal_hash.
11799 Fix up allocation subsystem comments.
11801 * config.h.in: Add __EXTENSIONS__ for Solaris.
11803 * systime.h (EMACS_GETTIMEOFDAY): New.
11804 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11805 Remove Solaris-specific code.
11806 Use void* for the (ignored) second arg for gettimeofday().
11808 * elhash.c (hash_table_hash): Implement it, finally.
11809 * elhash.c: Use hashcode_t.
11811 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11812 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11814 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11815 * fns.c (size_bit_vector):
11816 * alloc.c (size_vector):
11817 (make_vector_internal):
11818 (make_bit_vector_internal):
11819 (sweep_bit_vectors_1):
11820 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11822 2000-02-10 Martin Buchholz <martin@xemacs.org>
11824 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11825 Include strings.h to avoid warnings for bzero and strcasecmp.
11827 2000-02-10 Olivier Galibert <galibert@pobox.com>
11829 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11830 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11832 * fns.c (size_bit_vector): New. Declare bit vectors as a
11835 2000-02-10 Olivier Galibert <galibert@pobox.com>
11837 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11838 use a value field instead.
11839 (symbol_value_forward_forward): Use value field.
11840 (DEFVAR_SYMVAL_FWD): Use value field.
11841 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
11842 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11843 (DEFVAR_CONST_INT): Ditto.
11844 (DEFVAR_BOOL): Ditto.
11845 (DEFVAR_CONST_BOOL): Ditto.
11846 (DEFVAR_INT_MAGIC): Ditto.
11847 (DEFVAR_BOOL_MAGIC): Ditto.
11849 * symbols.c (guts_of_unbound_marker): Use value field.
11850 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11851 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11853 * lisp.h: Declare dumpopaque and noninteractive1.
11855 * alloc.c (dumpopaque): Added.
11856 (pdump_dump_opaquevec): Added.
11857 (pdump): Call pdump_dump_opaquevec to dump opaque data.
11858 (pdump_load): Reload opaque data. Sync noninteractive1 with
11861 2000-02-10 Andy Piper <andy@xemacs.org>
11863 * glyphs.c (image_instance_layout): if the size changes, mark it
11866 * redisplay-output.c (redisplay_output_layout): Update the
11868 (redisplay_output_subwindow): ditto.
11870 * glyphs.c (update_subwindow): make sure we reset flags for
11871 layouts as well as everything else.
11873 * glyphs-widget.c (layout_layout): don't need to set the instances
11876 2000-02-09 Martin Buchholz <martin@xemacs.org>
11878 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
11879 not HAVE_DLOPEN, which is a lower-level thing.
11881 * .cvsignore: Ignore gmon.out
11883 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
11885 * .cvsignore: Ignore portable dumper xemacs.dmp file
11887 2000-02-09 Andy Piper <andy@xemacs.org>
11889 * redisplay-output.c (redisplay_output_layout): be more clever
11890 about when we output based on the changed flags.
11892 * glyphs.h (struct image_instantiator_methods): add update_method.
11893 (struct Lisp_Image_Instance): add changed flags. Declare new
11894 macros for manipulating them.
11896 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11897 (image_instance_parent_glyph): find an image_instance's parent
11898 glyph or image_instance.
11899 (image_instance_layout): mark the size as changed.
11900 (set_image_instance_dirty_p): new function. mark an image
11901 instance, plus all of its parents, as dirty.
11902 (Fset_image_instance_property): use it.
11903 (Fglyph_animated_timeout_handler): use it.
11904 (update_subwindow): call update_widget and device methods for
11905 update_subwindow. Mark all changed flags as clean.
11906 (Fresize_subwindow): mark size as changed.
11908 * glyphs-x.c (x_finalize_image_instance): try and detect gc
11910 (x_update_subwindow): only resize subwindows here.
11911 (x_update_widget): new function. Update all changed properties of
11913 (x_resize_subwindow): deleted.
11914 (x_widget_set_property): deleted.
11915 (x_progress_gauge_set_property): deleted.
11916 (x_progress_gauge_update): new function. Implement recorded
11918 (x_tab_control_update): ditto.
11919 (x_tab_control_set_property): deleted.
11920 (console_type_create_glyphs_x): declare new functions.
11921 (image_instantiator_format_create_glyphs_x): ditto.
11923 * glyphs-widget.c (widget_set_property): mark text changed.
11924 (update_widget): new function. Update properties of a widget.
11925 (widget_instantiate): for layouts make sure we set their
11926 children's parent correctly.
11927 (tab_control_set_property): new function. Record changes that will
11928 take place under redisplay's control.
11929 (progress_gauge_set_property): ditto.
11930 (image_instantiator_progress_guage): declare new functions.
11931 (image_instantiator_tab_control): ditto.
11933 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11935 (mswindows_update_widget): new function. Update all properties on
11936 a widget that have changed.
11937 (mswindows_button_update): new function. Update a button's set
11939 (mswindows_tab_control_update): new function. Update the items in
11941 (mswindows_tab_control_set_property): deleted.
11942 (mswindows_progress_gauge_update): new function. Update the
11943 progress gauge's progress.
11944 (mswindows_widget_set_property): deleted. This is all done
11945 asynchronously now.
11946 (mswindows_progress_gauge_set_property): ditto.
11947 (console_type_create_glyphs_mswindows): declare new methods.
11948 (image_instantiator_format_create_glyphs_mswindows): ditto.
11950 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11951 (msprinter_set_frame_properties): ditto.
11953 * console.h (struct console_methods): Add update_widget_method.
11955 2000-02-09 Andy Piper <andy@xemacs.org>
11957 * gui-msw.c (Fmswindows_shell_execute): Make
11958 mswindows-shell-execute industrial strength.
11960 2000-02-08 Martin Buchholz <martin@xemacs.org>
11962 * lrecord.h: Make macro argument `props' match member function `plist'.
11965 * fns.c (Fremprop):
11966 * fns.c (Fobject_plist):
11969 Object property list frobbing cleanup.
11970 - Allow any lisp object (compared with `eq'), not just symbols, as
11971 keys in object plists.
11972 - Move symbol plist frobbing into symbols.c, where it belongs.
11973 - Move string plist frobbing into alloc.c, where it belongs.
11974 - Everything's an lrecord now, so no need to test for symbolp, etc.
11975 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11977 * extents.c: Reorder code to remove declarations.
11979 * frame.h (store_in_alist): Remove useless declaration.
11981 2000-02-07 Martin Buchholz <martin@xemacs.org>
11983 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11984 * config.h.in: Add HAVE_XCONVERTCASE.
11986 2000-02-07 Andy Piper <andy@xemacs.org>
11988 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11989 it breaks many things.
11991 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11993 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11994 actually can start a common comment type.
11995 * src/syntax.h (SYNTAX_END_P): ditto for end.
11997 2000-02-07 Martin Buchholz <martin@xemacs.org>
11999 * XEmacs 21.2.28 is released.
12001 2000-02-06 Martin Buchholz <martin@xemacs.org>
12003 * event-Xt.c (x_keysym_to_character): New.
12004 (maybe_define_x_key_as_self_inserting_character): New.
12005 (x_has_keysym): New.
12006 Auto-define all keys on the keyboard as self-insert-key.
12008 2000-02-02 Martin Buchholz <martin@xemacs.org>
12010 * menubar.c (vars_of_menubar): A small code simplification.
12012 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12015 * ExternalClient.c:
12016 * EmacsShell-sub.c:
12019 Use consistent style for specifying X resources.
12021 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12022 This makes (dontusethis-set-symbol-value-handler) actually usable.
12024 * lrecord.h (lrecord_decription_type):
12025 * alloc.c (pdump_register_sub):
12028 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12029 Comply with XEmacs coding style.
12030 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12031 args, and XD_LISP_OBJECT_ARRAY with 3 args.
12033 * keymap.c (Faccessible_keymaps):
12034 Make (accessible-keymaps map "\C-h") do the Right Thing.
12035 Make (accessible-keymaps map []) do the Right Thing.
12036 Make (accessible-keymaps map "") do the Right Thing.
12037 (check_keymap_definition_loop): New function.
12038 (keymap_store_internal): Keep luser from shooting self in foot,
12039 via (define-key ctl-x-4-map "p" global-map).
12040 Remove fullness slot from struct Lisp_Keymap, since hash tables
12042 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12044 2000-01-30 Martin Buchholz <martin@xemacs.org>
12046 * redisplay.c (init_redisplay): Fix small memory leak.
12048 * elhash.c (pdump_reorganize_hash_table):
12049 Rename from reorganize_hash_table. Change prototype.
12050 Reuse the original memory for hentries. Save 100k.
12051 * alloc.c (PDUMP_READ): new macro.
12052 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12053 * alloc.c: No need to #ifndef before #undef.
12055 * print.c: Allow debug_print() to print readably by modifying
12056 debug_print_readably. Use consistent variable names.
12058 * .dbxrc: Try to get things to work even if stopped in a function
12059 without source available by explicitly specifying source files.
12060 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12062 * unexnt.c (_start): Removed bogus code which caused loading heap
12063 from differrent executable file.
12064 Removed bogus assignment to _fmode, which caused inconsistencies.
12066 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12068 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12069 Have spawnve encapsulation regard DONT_ENCAPSULATE.
12070 Do not preliminary `#define signal sigset'.
12072 * systime.h: Do not prototype environ on windows nt and cygwin,
12073 this conflicts with system header.
12075 * syssignal.h: Use correct define for WINDOWSNT
12077 * sysdep.h: Do not prototype environ on windows nt, this conflicts
12078 with system header.
12080 * sysdep.c (near start of file): Fixed commentary and rearranged
12081 ifdefs in readable order.
12082 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12085 (end_of_data): Do not compile in if using PDUMP.
12087 * symsinit.h: Prototyped vars_of_nt().
12089 * ntproc.c (windows9x_p): Added, instead of os_subtype.
12090 (find_child_console): Use it.
12091 (sys_kill): Use it.
12093 * ntheap.h: Do not extern os_subtype.
12095 * ntheap.c (cache_system_info): Do not cache unneeded:
12096 nt_major_version, nt_minor_version and os_subtype.
12097 (recreate_heap): Do not compile in when PDUMPing.
12099 * nt.c (geteuid and friends): Use the new varibale
12100 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12101 (init_user_info): Removed the above mentioned hackery.
12102 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12103 stat has been fixed in the C runtime.
12104 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12106 * file-coding.c (struct file_coding_dump): Do not define
12107 ucs_to_mule_table in the struct if not MULE.
12108 (struct struct lrecord_description fcd_description_1): Do not dump
12111 * emacs.c (main_1): Call vars_of_nt().
12112 (right before Fdump_emacs_data): Don't need lastfile if using both
12113 portabe dumper and system malloc.
12115 * alloc.c (Fmemory_limit): Conditionalized out.
12116 (pdump): Use OPEN_BINARY for the portable dump file.
12117 (pdump_load): Ditto.
12119 2000-02-02 Mike Alexander <mta@arbortext.com>
12121 * nt.c (convert_time): Set tm_isdst before calling mktime and
12122 avoid calling it at all if the compiler supports 64 bit integers.
12123 Also initialize utc_base_ft before using it.
12125 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
12127 * frame.c (change_frame_size_1): Take f->internal_border_width
12128 into consideration when calculating the width of the frame.
12130 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12132 * window.c (frame_min_height):
12133 (frame_size_valid_p):
12134 (frame_pixsize_valid_p): Added.
12135 (check_frame_size): Generalized.
12137 * window.h: Prototyped the above.
12140 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12141 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12142 Deleted Vwin32_* and Vbinary_process_* unused variables.
12144 * device-msw.c (msprinter_init_device): Do not get printer font
12145 list; Added DEVMODE functions.
12147 * frame-msw.c: Added lots of printer code.
12149 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12152 * console-msw.h: Added more msprinter device private slots.
12154 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12156 * event-msw.c (key_needs_default_processing_p): Added.
12157 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12159 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12161 * glyphs.c (image_instance_layout): Mark image instance as clean
12163 (glyph_dirty_p): Removed redundant function.
12164 (invalidate_glyph_geometry_maybe): Added.
12165 (update_glyph_cachel_data): Call it.
12167 * glyphs.h: Prototyped it.
12169 * redisplay.c (add_glyph_rune): Call it.
12170 (redisplay_window): Reset glyphs cachels when frame faces have
12171 changed, thus forcing recomputation of built-in border glyphs.
12173 2000-01-30 Martin Buchholz <martin@xemacs.org>
12175 * Makefile.in.in: Make portable dumper and purify play well together.
12176 Add imperfect, but better than nothing, support for pdump.
12177 Remove xemacs.dmp when temacs is re-generated.
12178 Don't ignore errors when dumping xemacs.
12180 * symbols.c (maybe_call_magic_handler): Remove one magic number.
12182 2000-01-28 Andy Piper <andy@xemacs.org>
12184 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12185 (setup_normal_frame): ditto.
12186 (setup_frame_without_minibuffer): ditto.
12187 (setup_minibuffer_frame): ditto.
12188 (delete_frame_internal): ditto.
12189 (Fmake_frame_invisible): ditto.
12190 (Ficonify_frame): ditto.
12192 * window.h: change Fset_window_buffer signature.
12194 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12195 (Fset_window_buffer): allow recording of buffer if the window is
12196 the selected window.
12197 (window_loop): Use new Fset_window signature.
12199 2000-01-23 Daniel Pittman <daniel@danann.net>
12201 * config.h.in: Added template for `HAVE_ATHENA_3D'
12203 2000-01-29 Andy Piper <andy@xemacs.org>
12205 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12207 * gutter.c (output_gutter): Don't output if the window isn't live.
12209 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12211 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12212 of 01/12/00: Moved SetFocus back here where it belongs.
12214 2000-01-23 Andy Piper <andy@xemacs.org>
12216 * s/cygwin32.h: declare printer things.
12218 2000-01-26 Andy Piper <andy@xemacs.org>
12220 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12223 2000-01-24 Andy Piper <andy@xemacs.org>
12225 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12226 (mswindows_button_instantiate): Make sure glyph is a pixmap.
12228 * glyphs-widget.c (widget_instantiate): Avoid shadows.
12230 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12232 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12234 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12235 (mswindows_output_display_block): Avoid local shadows.
12237 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12238 (mswindows_enqueue_mouse_button_event): ditto.
12239 (mswindows_handle_gui_wm_command): remove declaration.
12241 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12244 * console-msw.h: Avoid shadows.
12245 (mswindows_get_toolbar_button_text):
12246 (emacs_mswindows_create_stream_pair):
12247 (emacs_mswindows_delete_stream_pair):
12248 (mswindows_handle_toolbar_wm_command): declare.
12250 * device-msw.c (build_syscolor_string): Avoid shadows.
12252 2000-01-23 Andy Piper <andy@xemacs.org>
12254 * glyphs-widget.c (widget_instantiate): reverse the items for
12255 layouts so that children are in the expected order.
12257 2000-01-28 Martin Buchholz <martin@xemacs.org>
12259 * ralloc.c: safe_bcopy ==> memmove
12260 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12261 * s/msdos.h: Remove BCOPY macros.
12262 * insdel.c (gap_right): Remove BCOPY conditional code.
12263 * insdel.c (gap_left): Remove BCOPY conditional code.
12264 XEmacs demands a working ANSI C compiler - hence memmove.
12266 * regex.c (regex_compile): Remove accidental use of trigraphs.
12268 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12270 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12273 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12275 * event-msw.c (mswindows_drain_windows_queue): Added the
12277 (mswindows_need_event): Commented the call to
12278 mswindows_drain_windows_queue().
12279 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12282 * console-msw.h: Moved a few function prototypes here from
12285 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12286 parameter from unsigned short to unsigned long.
12287 (Fmswindows_shell_execute): Added return value.
12289 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12291 * sysdep.c (init_system_name):
12292 process-unix.c (unix_canonicalized_host_name):
12293 Don't call freeaddrinfo() if getaddrinfo() fails.
12295 * process-unix.c (unix_open_unix_network_stream):
12296 Moved the code to get a port # into address loop.
12298 2000-01-27 Martin Buchholz <martin@xemacs.org>
12300 * buffer.c (reinit_vars_of_buffer):
12301 The right place to initialize conversion_in_dynarr and
12302 conversion_out_dynarr.
12304 * alloc.c (pdump): Use the real open() till sys_open() is functional.
12306 * process-unix.c (unix_canonicalize_host_name): Muleize.
12307 (unix_open_network_stream): Muleize.
12309 * buffer.h: Fix up prototypes for ralloc.c functions.
12311 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12312 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12313 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12314 instead of gethostbyname()
12315 * process-unix.c: In unix_canonicalize_host_name() and
12316 unix_open_network_stream(), add code to use getaddrinfo()
12317 instead of gethostbyname().
12319 2000-01-27 Daniel Pittman <daniel@danann.net>
12321 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12322 libs when built with flat Athena.
12324 2000-01-27 Martin Buchholz <martin@xemacs.org>
12326 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12327 Use coding standards for function prototypes.
12329 2000-01-25 Martin Buchholz <martin@xemacs.org>
12331 * dialog-msw.c (push_lisp_string_as_unicode):
12332 * doc.c (unparesseuxify_doc_string):
12333 * dired.c (Fuser_name_completion_1):
12334 * dired.c (Fuser_name_all_completions):
12335 * dired.c (free_user_cache):
12336 * dired.c (user_name_completion):
12337 * console-x.c (get_display_arg_connection):
12338 * minibuf.c (clear_echo_area_internal):
12339 * minibuf.c (echo_area_append):
12340 * eldap.c (Fldap_open):
12341 * eldap.c (Fldap_search_internal):
12342 * frame-x.c (x_set_frame_text_value):
12343 * frame-x.c (x_set_frame_properties):
12344 * frame-x.c (x_create_widgets):
12345 * redisplay-tty.c (term_get_fkeys_1):
12346 * objects-x.c (x_parse_nearest_color):
12347 * objects-x.c (x_valid_color_name_p):
12348 * objects-x.c (x_initialize_font_instance):
12349 * objects-x.c (x_list_fonts):
12350 * objects-x.c (x_find_charset_font):
12351 * tooltalk.c (Fadd_tooltalk_message_arg):
12352 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12353 * tooltalk.c (Fadd_tooltalk_pattern_arg):
12354 * process-unix.c (unix_create_process):
12355 * ntproc.c (sys_spawnve):
12356 * sound.c (Fplay_sound_file):
12357 * sound.c (Fplay_sound):
12358 * buffer.c (init_initial_directory):
12359 * buffer.c (init_buffer):
12360 * editfns.c (init_editfns):
12361 * editfns.c (Ftemp_directory):
12362 * editfns.c (Fuser_full_name):
12363 * editfns.c (uncache_home_directory):
12364 * editfns.c (get_home_directory):
12365 * editfns.c (Fuser_home_directory):
12366 * editfns.c (Fformat_time_string):
12367 * editfns.c (Fcurrent_time_string):
12368 * gui-x.c (button_item_to_widget_value):
12369 * database.c (Fopen_database):
12370 * event-Xt.c (x_to_emacs_keysym):
12371 * event-Xt.c (x_event_to_emacs_event):
12372 * event-Xt.c (describe_event_window):
12373 * event-msw.c (mswindows_wnd_proc):
12374 * glyphs-eimage.c (jpeg_instantiate):
12375 * glyphs-eimage.c (gif_instantiate):
12376 * glyphs-eimage.c (png_instantiate):
12377 * glyphs-eimage.c (tiff_instantiate):
12378 * glyphs-x.c (xbm_instantiate_1):
12379 * glyphs-x.c (x_xbm_instantiate):
12380 * glyphs-x.c (x_xface_instantiate):
12381 * glyphs-x.c (autodetect_instantiate):
12382 * glyphs-x.c (cursor_font_instantiate):
12383 * glyphs-x.c (x_widget_instantiate):
12384 * glyphs-x.c (x_widget_set_property):
12385 * glyphs-x.c (x_widget_property):
12386 * glyphs-x.c (BUILD_GLYPH_INST):
12387 * print.c (write_string_to_stdio_stream):
12388 * print.c (output_string):
12389 * print.c (Falternate_debugging_output):
12390 * print.c (Fexternal_debugging_output):
12391 * glyphs-msw.c (extract_xpm_color_names):
12392 * glyphs-msw.c (mswindows_xpm_instantiate):
12393 * glyphs-msw.c (bmp_instantiate):
12394 * glyphs-msw.c (resource_name_to_resource):
12395 * glyphs-msw.c (mswindows_resource_instantiate):
12396 * glyphs-msw.c (xbm_instantiate_1):
12397 * glyphs-msw.c (mswindows_xbm_instantiate):
12398 * glyphs-msw.c (mswindows_xface_instantiate):
12399 * glyphs-msw.c (mswindows_widget_instantiate):
12400 * glyphs-msw.c (add_tree_item):
12401 * glyphs-msw.c (add_tab_item):
12402 * glyphs-msw.c (mswindows_combo_box_instantiate):
12403 * glyphs-msw.c (mswindows_widget_property):
12404 * glyphs-msw.c (mswindows_combo_box_property):
12405 * glyphs-msw.c (mswindows_widget_set_property):
12406 * console.c (stuff_buffered_input):
12407 * objects-msw.c (mswindows_initialize_color_instance):
12408 * objects-msw.c (mswindows_valid_color_name_p):
12409 * objects-msw.c (mswindows_list_fonts):
12410 * objects-msw.c (mswindows_font_instance_truename):
12411 * bytecode.c (optimize_compiled_function):
12412 * select-x.c (symbol_to_x_atom):
12413 * select-x.c (x_atom_to_symbol):
12414 * select-x.c (hack_motif_clipboard_selection):
12415 * select-x.c (selection_data_to_lisp_data):
12416 * select-x.c (lisp_data_to_selection_data):
12417 * select-x.c (Fx_get_cutbuffer_internal):
12418 * select-x.c (Fx_store_cutbuffer_internal):
12419 * buffer.h (TO_EXTERNAL_FORMAT): New function.
12420 * buffer.h (TO_INTERNAL_FORMAT): New function.
12421 * emacs.c (make_arg_list_1):
12422 * emacs.c (make_argc_argv):
12423 * emacs.c (main_1):
12424 * emacs.c (Fdump_emacs):
12425 * emacs.c (split_string_by_emchar_1):
12430 * device-x.c (x_init_device):
12431 * device-x.c (Fx_valid_keysym_name_p):
12432 * device-x.c (Fx_get_font_path):
12433 * device-x.c (Fx_set_font_path):
12434 * glyphs.c (bitmap_to_lisp_data):
12435 * glyphs.c (pixmap_to_lisp_data):
12436 * alloc.c (make_ext_string): Use coding system arguments. Update
12438 * alloc.c (build_string):
12439 * callproc.c (child_setup):
12440 * callproc.c (init_callproc):
12441 * fileio.c (lisp_strerror):
12442 * fileio.c (directory_file_name):
12443 * fileio.c (Fexpand_file_name):
12444 * fileio.c (Ffile_truename):
12445 * fileio.c (Fsysnetunam):
12446 * fileio.c (Fdo_auto_save):
12447 * sysdep.c (sys_readdir):
12448 * tests.c: New file. Allow adding C tests.
12449 Replace GET_* macros with a more comprehensible and flexible
12450 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12452 Any coding system can be used to do format conversion.
12453 Eliminate enum external_data_format.
12454 Eliminate convert_to_external_format.
12455 Eliminate convert_to_internal_format.
12456 Make sure file-name, keyboard, terminal, and ctext are always
12457 defined as coding systems or aliases. Make
12458 file-name-coding-system, terminal-coding-system, and
12459 keyboard-coding-system magical variables that are equivalent to
12460 defining the corresponding coding system aliases.
12462 * file-coding.c (Fcoding_system_canonical_name_p): New function.
12463 * file-coding.c (Fcoding_system_alias_p): New function.
12464 * file-coding.c (Fcoding_system_aliasee): New function.
12465 * file-coding.c (append_suffix_to_symbol): New function.
12466 * file-coding.c (dangling_coding_system_alias_p): New function.
12467 * file-coding.c (Ffind_coding_system):
12468 * file-coding.c (Fcopy_coding_system):
12469 * file-coding.c (encode_coding_no_conversion):
12470 * file-coding.c (syms_of_file_coding):
12471 * file-coding.c (vars_of_file_coding):
12472 Rewrite coding system alias code.
12473 Allow nested aliases, like symbolic links.
12474 Allow redefinition of coding system aliases.
12475 Prevent existence of dangling coding system aliases.
12477 * dired.c (Fuser_name_completion_1):
12478 * dired.c (Fuser_name_all_completions):
12479 A crash would happen if user did QUIT in the middle of building
12480 user_name_cache. Remove redundant code in mainline and unwind_protect.
12483 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
12485 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12486 an unsigned char *. Update all callers.
12488 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12490 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12492 2000-01-25 Martin Buchholz <martin@xemacs.org>
12494 * elhash.c (hentry_description): Use more portable definition.
12495 (resize_hash_table): Initialize new hentries using
12496 xnew_array_and_zero, thereby simplifying the code.
12498 * mule-charset.c (make_charset): Make sure entire object is
12499 initialized, to avoid Purify warnings.
12501 * alloc.c (resize_string): Fix unlikely crash with big strings.
12503 2000-01-24 Martin Buchholz <martin@xemacs.org>
12505 * realpath.c (xrealpath):
12506 Don't call getwd().
12508 2000-01-25 Martin Buchholz <martin@xemacs.org>
12510 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12512 1999-12-28 Max Matveev <max@melbourne.sgi.com>
12514 * unexelfsgi.c (unexec): Change the way we decide which segment
12515 should be extended.
12517 Assumption that .bss section should be outside the PT_LOADable
12518 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12519 it's present) is inside the 'data' segment. This would fail the
12520 test which was used to find a segment to grow and cover new
12521 heap. Instead of this assumption, I created another one - on IRIX
12522 the segment to grow should start below .bss and it's address
12523 should extent above the end of .bss. Once this segment is
12524 identified, it's grown to accommodate the new heap and new
12525 zero-length .bss section is added at the end of .data2.
12527 2000-01-25 Martin Buchholz <martin@xemacs.org>
12529 * eval.c (Feval): Wrong number of arguments should use original
12530 function, not the indirect_function version of it.
12532 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12534 * glyphs-x.c (x_button_instantiate): Don't add image if
12535 it is not a pixmap.
12536 (x_locate_pixmap_file): Call Fexpand_file_name when file name
12539 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
12541 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12543 (DEFVAR_INT_MAGIC): Ditto.
12544 (DEFVAR_BOOL_MAGIC): Ditto.
12545 * glyphs.h: Reindent backslash.
12547 2000-01-24 Martin Buchholz <martin@xemacs.org>
12549 * glyphs-widget.c (layout_query_geometry):
12550 (layout_layout): Use correct types for gheight, gwidth.
12552 2000-01-24 Martin Buchholz <martin@xemacs.org>
12554 * EmacsManager.c (QueryGeometry): Purified.
12556 2000-01-23 Martin Buchholz <martin@xemacs.org>
12558 * alloc.c (make_float): Make sure entire object is initialized, to
12559 avoid Purify warnings.
12560 (pdump_register_sub): Remove useless assignment.
12561 (pdump): Use xmalloc, not malloc.
12562 (pdump_load): Use xmalloc, not malloc.
12564 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12571 * sysdep.c: Removed redundant #include <windows.h>
12573 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12575 * frame.c (delete_frame_internal): Do not delete device when its
12576 implementation so declares.
12577 (delete_frame_internal): Set device selected frame to nil when
12578 last frame goes away.
12580 * device-msw.c (msprinter_device_system_metrics): Implemented.
12581 (mswindows_device_system_metrics): Added 'device-dpi property.
12583 * device.c: (Fdevice_printer_p): Added.
12584 Added 'offset-workspace device metric.
12586 * console.h (device_metrics): Declared DM_offset_workspace.
12588 2000-01-23 Martin Buchholz <martin@xemacs.org>
12590 * fileio.c (Ffile_truename): Remove pointless and confusing
12591 initialization of elen.
12593 * glyphs-widget.c: Compiler warning fixes.
12595 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
12597 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12598 instead of a Lisp_Object as argument to make it consistent with
12599 the other LIVE_P macros.
12600 (CHECK_LIVE_PROCESS): New macro.
12602 * process.c: Declare Qprocess_live_p.
12603 (Fprocess_live_p): New function.
12604 (create_process): Use PROCESS_LIVE_P.
12605 (read_process_output): Ditto.
12606 (set_process_filter): Ditto.
12607 (Fdelete_process): Ditto.
12608 (kill_buffer_processes): Ditto
12609 (process_send_signal): Use CHECK_LIVE_PROCESS.
12610 (Fprocess_input_coding_system): Check whether process is still
12611 alive (fix PR#1061).
12612 (Fprocess_output_coding_system): Ditto.
12613 (Fprocess_coding_system): Ditto.
12614 (Fset_process_input_coding_system): Ditto.
12615 (Fset_process_output_coding_system): Ditto.
12617 2000-01-23 Andy Piper <andy@xemacs.org>
12619 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12622 * glyphs.c (mark_image_instance): take into account changed
12623 image_instance format.
12624 (image_instance_equal): ditto.
12625 (image_instance_hash): ditto.
12627 * glyphs-widget.c (widget_instantiate): Incorporate layout
12628 instantiation here. Delay layout of the layout until later.
12629 (layout_instantiate): deleted.
12630 (layout_query_geometry): new function. get the geometry of a
12632 (layout_layout): layout a layout dynamically.
12633 (image_instantiator_widget): New function - splitting up
12634 image_instantiator_format_create_glyphs_widget for netwinder
12636 (image_instantiator_buttons):
12637 (image_instantiator_edit_fields):
12638 (image_instantiator_combo_box):
12639 (image_instantiator_scrollbar):
12640 (image_instantiator_progress_guage):
12641 (image_instantiator_tree_view):
12642 (image_instantiator_tab_control):
12643 (image_instantiator_labels):
12644 (image_instantiator_layout): ditto.
12645 (image_instantiator_format_create_glyphs_widget): Call preceding
12648 2000-01-22 Martin Buchholz <martin@xemacs.org>
12650 * process.c (Fset_process_coding_system):
12651 * device-x.c (Fx_keysym_hash_table):
12654 * lstream.c (Lstream_write): Return documented value, not 0.
12656 * fileio.c (directory_file_name):
12657 (Fsubstitute_in_file_name):
12658 (Fsubstitute_insert_file_contents_internal):
12659 (Fwrite_region_internal):
12664 Remove vestigial APOLLO-conditional code.
12666 2000-01-21 Martin Buchholz <martin@xemacs.org>
12668 * getpagesize.h: Add guard macros.
12669 * libsst.h: Add guard macros.
12670 * libst.h: Add guard macros.
12671 * line-number.h: Add guard macros.
12672 * ndir.h: Add guard macros.
12673 * sysfloat.h: Add guard macros.
12674 * sysfile.h: Add guard macros.
12675 * sysproc.h: Add guard macros.
12676 * syswait.h: Add guard macros.
12677 * xintrinsic.h: Add guard macros.
12678 * xintrinsicp.h: Add guard macros.
12679 * xmmanager.h: Add guard macros.
12680 * xmmanagerp.h: Add guard macros.
12681 * xmprimitive.h: Add guard macros.
12682 * xmu.h: Add guard macros.
12683 * gpmevent.h: Add copyright statement. Add guard macros.
12684 * miscplay.h: Add guard macros.
12685 * *.h: Use consistent C-standards-approved guard macro names.
12687 * opaque.c (make_opaque): Switch parameter order.
12688 * opaque.h (make_opaque): Switch parameter order.
12689 Update all callers.
12690 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12692 * config.h.in (type_checking_assert): Added.
12693 (bufpos_checking_assert): Added.
12695 2000-01-21 Martin Buchholz <martin@xemacs.org>
12697 * alloc.c: Harmless pdump changes.
12699 - spell alignment correctly.
12700 * sysdep.c: Use countof()
12702 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12704 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12705 initially_selected_for_input() console method, default to 0.
12706 (semi_canonicalize_console_connection): Try to delegate to
12707 canonicalize_console_connection if no such console method.
12708 (canonicalize_console_connection): Vice versa.
12709 (print_console): Do not print nil connection.
12711 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12712 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12713 (XDEVIMPF_FRAMELESS_OK): Added.
12714 (CONSOLE_INHERITS_METHOD): Added.
12716 * console-msw.c (mswindows_canonicalize_console_connection):
12718 (mswindows_canonicalize_device_connection): Added.
12720 * console-msw.h (struct msprinter_device): Added this struct and
12722 (mswindows_device): Made fontlist a lisp object.
12724 * device.c (semi_canonicalize_device_connection): Try to delegate
12725 to canonicalize_device_connection if no such console method.
12726 (canonicalize_device_connection): Vice versa.
12727 (print_device): Do not print nil connection.
12729 * device-msw.c (mswindows_init_device): Call InitCommonControls
12731 (mswindows_delete_device): Removed fontlist deallocation.
12732 (mswindows_mark_device): Added.
12734 * events.c (event_equal): Added abort() at unreached code.
12735 (event_hash): Ditto.
12737 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12738 fallback tags of Windows devices.
12740 * general.c (syms_of_general): Initialized Qmsprinter.
12742 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12743 of fallback tags of Windows devices.
12745 * lisp.h: Declared Qmsprinter.
12747 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12749 (mswindows_list_fonts): Ditto.
12750 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12751 that it can be used by both mswindows and msprinter devices.
12752 (initialize_font_instance): Added.
12753 (mswindows_initialize_font_instance): Use it.
12754 (msprinter_initialize_font_instance): Added.
12756 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12757 and implementation flags check.
12758 (redisplay_without_hooks): Changed the call to the above.
12759 (Fredraw_device): Ditto.
12760 (Fredisplay_device): Ditto.
12762 * redisplay-msw.c (get_frame_dc): Implemented.
12763 (get_frame_compdc): Implemented.
12764 (many functions): Use the two functions above to get device
12765 contexts, ether for a window or a printer.
12767 2000-01-21 Olivier Galibert <galibert@pobox.com>
12769 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12770 initialization here.
12771 (init_symbols_once_early): Call it.
12772 * emacs.c (main_1): Call it.
12773 * symsinit.h: Declare it.
12775 2000-01-19 Olivier Galibert <galibert@pobox.com>
12777 * alloc.c: Use a lrecord_header * in the backtrace instead of a
12779 (pdump_backtrace): Ditto.
12780 (pdump_register_object): Ditto. Cleanup use of the pointers.
12781 (pdump_get_entry): Abort if trying to register a null pointer.
12782 (pdump_dump_data): Cleanup types when relocating.
12783 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12784 (pdump_dump_rtables): Remove bad casts.
12785 (pdump_load): Cleanup relocation w.r.t union type. Use a
12786 Lisp_Object instead of a EMACS_INT for the hashtable
12789 2000-01-20 Martin Buchholz <martin@xemacs.org>
12791 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12793 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12795 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12797 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12799 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12801 * faces.h (FACE_STRIKETHRU_P): Added.
12803 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12806 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12807 (mswindows_set_dc_font): New function, aware of font variants,
12808 separated from mswindows_update_dc.
12810 * objects-msw.h (struct mswindows_font_instance_data): Added
12813 * objects-msw.c (mswindows_finalize_font_instance): Delete all
12814 cached fonts and the data structure.
12815 (mswindows_initialize_font_instance): Added creation of font data
12817 (mswindows_print_font_instance): Print at least something.
12818 (mswindows_create_font_variant): Implemented.
12819 (mswindows_get_hfont): Implemented.
12821 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
12823 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12824 prototyping problem with msvc.
12826 * emacs.c (main_1): added syms_of_gui_mswindows() call
12828 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12829 syms_of_gui_mswindows() function
12831 * symsinit.h: added the prototype for syms_of_gui_mswindows()
12833 2000-01-18 Martin Buchholz <martin@xemacs.org>
12835 * XEmacs 21.2.27 is released.
12837 2000-01-18 Martin Buchholz <martin@xemacs.org>
12839 * glyphs-eimage.c (struct tiff_error_struct):
12841 (tiff_warning_func):
12842 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12847 * unexec.c: Remove vestigial Lucid C code.
12851 * libsst.c: Ansify.
12852 Remove declarations of errno and strerror().
12854 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
12856 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12858 2000-01-16 Martin Buchholz <martin@xemacs.org>
12860 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12863 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12868 Change enum eol_type to eol_type_t.
12870 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12872 * gui.c (get_gui_callback): Check cons before accessing car.
12874 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12876 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12877 (XSETSPECIFIER_TYPE): Ditto.
12879 2000-01-17 Didier Verna <didier@xemacs.org>
12881 * redisplay.c (generate_fstring_runes): compute string size in
12882 characters, not bytes.
12884 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12886 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12888 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
12890 * print.c (print_error_message): Call print_prepare().
12892 2000-01-14 Martin Buchholz <martin@xemacs.org>
12894 * .dbxrc: Renamed from dbxrc.
12896 * events.c (event_to_character):
12897 Use `assert (foo)' instead of `if (!foo) abort()'
12899 * .gdbinit (xtype): Add documentation.
12900 * .gdbinit (check-temacs): New function.
12901 * .gdbinit (check-xemacs): New function.
12902 * dbxrc (check-xemacs): New function.
12903 * dbxrc (check-xemacs): New function.
12905 2000-01-14 Andy Piper <andy@xemacs.org>
12907 * glyphs-widget.c (widget_query_geometry): Make sure that we
12908 calculate default dimensions correctly.
12910 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12912 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12914 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12915 pdump_wire'd variable.
12917 * emacs.c: (main_1): Conditionalized calls to
12918 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12920 2000-01-13 Martin Buchholz <martin@xemacs.org>
12922 * window.c (Fset_window_configuration):
12923 * sysdep.c (_start):
12924 * input-method-motif.c (res):
12925 * event-Xt.c (Xt_process_to_emacs_event):
12926 Simple compiler warning fixes.
12928 * bytecode.c (funcall_compiled_function): Use the original
12929 function symbol on the backtrace list in preference to the
12930 compiled_function object in error messages.
12932 2000-01-13 Andy Piper <andy@xemacs.org>
12934 * glyphs-x.c (update_widget_face): Make sure we update the widget
12935 background as well as foreground.
12937 2000-01-13 Andy Piper <andy@xemacs.org>
12939 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12940 fields to subwindow.
12941 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12942 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12943 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12944 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12946 * glyphs-widget.c (check_valid_tab_orientation): new function.
12947 (initialize_widget_image_instance): zero orientation and
12949 (widget_instantiate): pick up orientation.
12950 (tab_control_query_geometry): return appropriate values for
12953 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12954 appropriate creation flags for left, right and bottom tabs.
12956 * s/cygwin32.h: add tab definitions.
12958 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12960 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12961 frame upon hiding a subwindow.
12962 (mswindows_button_instantiate): Changed the push button style to
12964 (mswindows_button_instantiate): Removed button BS_NOTIFY
12966 (mswindows_button_instantiate): Removed redundant check for
12967 a disabled gui item.
12968 (mswindows_button_instantiate): Made use of WS_TABSTOP
12969 consistent: "operable" controls (edit, button, tree, scroll) have
12970 this style, "display-only" ones (static, progress gauge) do
12971 not. This style is currently ignored by XEmacs though. Also,
12972 removed the WS_EX_CONTROLPARENT style - it is not for children,
12973 it is for their parents!
12974 (mswindows_edit_field_instantiate): Ditto.
12975 (mswindows_progress_gauge_instantiate): Ditto.
12976 (mswindows_tree_view_instantiate): Ditto.
12977 (mswindows_tab_control_instantiate): Ditto.
12978 (mswindows_scrollbar_instantiate): Ditto.
12979 (mswindows_combo_box_instantiate): Ditto.
12980 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12981 style to the "clip" window.
12982 (mswindows_button_instantiate): Removed compilation warning by
12983 equally typing terms of the ?: operator.
12985 2000-01-12 Didier Verna <didier@xemacs.org>
12987 * redisplay.c (generate_fstring_runes): new parameter holding the
12988 last modeline-format extent.
12989 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12990 extent, fill the glyph block with it.
12991 (generate_fstring_runes): handle these parameters.
12992 (generate_formatted_string_db): ditto.
12994 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12995 glyphs'extents in the modeline.
12997 1999-01-11 Mike Woolley <mike@bulsara.com>
12999 * ntheap.c: Reduced the reserved heap space from 1Gb down to
13000 256Mb, as a workaround for the non-starting problem many people
13003 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13005 * console-tty.c (Fset_console_tty_output_coding_system):
13006 Force redrawing tty frame.
13008 2000-01-10 Didier Verna <didier@xemacs.org>
13010 * redisplay.c (generate_fstring_runes): fix size computation bug.
13012 2000-01-09 William M. Perry <wmperry@aventail.com>
13014 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13016 2000-01-09 Andy Piper <andy@xemacs.org>
13018 * glyphs-msw.c: index -> i to avoid shadows.
13019 (xbm_create_bitmap_from_data): make static.
13020 (check_valid_string_or_int): deleted.
13021 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13023 * glyphs-x.c (x_update_subwindow): remove unused args.
13025 * glyphs.c (glyph_image_instance): return the thing. Don't set the
13026 back pointer - this is done in allocate_image_instance.
13027 (query_string_font): return Qnil to make the compiler happy.
13028 (unmap_subwindow): set to ~0 to make the compiler happy.
13029 (glyph_query_geometry): comment out until used.
13030 (glyph_layout): ditto.
13032 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
13034 * insdel.c (signal_after_change): Remove extraneous unbind_to().