1 2003-07-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * mule-charset.c (charset_code_point): Fix problem when searching
4 in mother CCS fails with `defined_only' mode.
6 2003-06-29 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
8 * chartab.c (Q_ucs): Deleted.
9 (Fput_char_attribute): Don't refer `->ucs'.
10 (Fdefine_char): Likewise.
11 (Ffind_char): Likewise.
12 (syms_of_chartab): Delete `->ucs'.
14 2003-04-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
16 * mule-charset.c (Qmap_cns11643_2): Renamed from
17 `Qchinese_cns11643_2'.
18 (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
20 (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
23 2003-04-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
25 * mule-charset.c (Qmap_cns11643_1): Renamed from
26 `Qchinese_cns11643_1'.
27 (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
29 (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
32 2003-04-24 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
34 * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
35 (syms_of_mule_charset): Add new symbol `=gb12345' instead of
37 (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
40 2003-04-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
42 * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
43 (syms_of_mule_charset): Add new symbol `=gb2312' instead of
45 (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
48 2003-04-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
50 * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
51 (syms_of_mule_charset): Add new symbol `=big5' instead of
53 (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
55 2003-04-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
57 * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
58 (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
60 (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
63 2003-04-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
65 * mule-charset.c (Qmap_jis_x0212): Renamed from
67 (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
69 (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
72 2003-04-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
74 * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
76 (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
77 of `japanese-jisx0208'.
78 (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
81 2003-04-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
83 * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
84 `Qjapanese_jisx0208_1978'.
85 (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
86 of `japanese-jisx0208-1978'.
87 (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
90 2003-04-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
92 * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
93 only for XEmacs CHISE.
95 2003-04-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
97 * char-ucs.h: Compact non-ISO-IR charset-ids.
98 (LEADING_BYTE_UCS): Changed to -177.
99 (LEADING_BYTE_CONTROL_1): Changed to -77.
100 (LEADING_BYTE_UCS_BMP): Changed to -176.
101 (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
103 2003-04-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
105 * mule-charset.c (Qiso_ir): New variable.
106 (Fmake_charset): Recognise new property `iso-ir'.
107 (syms_of_mule_charset): Add new symbol `iso-ir'.
109 2003-04-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
111 * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
112 n to -n; charset-id of non ISO-IR sets are changed to positive
115 2003-03-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
117 * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
119 (Qmap_ucs): New variable.
120 (syms_of_mule_charset): Add new symbol `=ucs'.
121 (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
123 * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
125 * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
127 * char-ucs.h (Qmap_ucs): New extern variable.
129 2003-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
131 * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
132 (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
133 don't define it when UTF2000 is not defined.
134 (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
135 `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
136 when UTF2000 is not defined.
137 (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
138 rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
140 2003-03-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
142 * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
144 * mule-charset.c (Vcharset_ucs_gb): Deleted.
146 (syms_of_mule_charset): Delete `ucs-gb'.
147 (complex_vars_of_mule_charset): Likewise.
149 2003-03-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
151 * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
153 * mule-charset.c (Vcharset_ucs_cns): Deleted.
155 (syms_of_mule_charset): Delete `ucs-cns'.
156 (complex_vars_of_mule_charset): Likewise.
158 2003-03-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
160 * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
162 * mule-charset.c (Vcharset_ucs_jis): Deleted.
164 (syms_of_mule_charset): Delete `ucs-jis'.
165 (complex_vars_of_mule_charset): Likewise.
167 2003-03-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
169 * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
171 * mule-charset.c (Vcharset_ucs_ks): Deleted.
173 (syms_of_mule_charset): Delete `ucs-ks'.
174 (complex_vars_of_mule_charset): Likewise.
176 2003-03-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
178 * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
179 (Qideograph_daikanwa_2): Deleted.
180 (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
181 (complex_vars_of_mule_charset): Likewise.
183 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
184 (LEADING_BYTE_DAIKANWA_1): Deleted.
185 (LEADING_BYTE_DAIKANWA_2): Deleted.
186 (MIN_CHAR_DAIKANWA): Deleted.
187 (MAX_CHAR_DAIKANWA): Deleted.
189 2003-02-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
191 * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
192 (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
193 ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
195 * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
196 (Vcharset_ideograph_daikanwa): Deleted.
197 (Qideograph_hanziku_{1..12}): Deleted.
198 (Qideograph_daikanwa): Deleted.
199 (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
200 Vcharset_ideograph_daikanwa.
201 (syms_of_mule_charset): Delete `ideograph-daikanwa' and
202 `ideograph-hanziku-{1..12}'.
203 (complex_vars_of_mule_charset): Likewise.
205 2003-02-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
207 * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
209 * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
210 (Qideograph_gt_pj_{1..11}): Deleted.
211 (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
212 (complex_vars_of_mule_charset): Likewise.
214 2003-02-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
216 * mule-charset.c (Vcharset_ucs_big5): Deleted.
217 (Vcharset_ideograph_gt): Deleted.
218 (Qucs_big5): Deleted.
219 (Qideograph_gt): Deleted.
220 (syms_of_mule_charset): Delete symbol `ucs-big5' and
222 (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
225 * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
226 (LEADING_BYTE_GT): Deleted.
227 (GC_CHARSETP): Deleted.
228 (MIN_CHAR_GT): Deleted.
229 (MAX_CHAR_GT): Deleted.
231 2003-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
233 * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
235 2003-01-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
237 * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
238 (Qideograph_cbeta): Deleted.
239 (syms_of_mule_charset): Don't define `ideograph-cbeta'.
240 (complex_vars_of_mule_charset): Likewise.
242 * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
243 (MIN_CHAR_CBETA): Comment out.
244 (MAX_CHAR_CBETA): Likewise.
246 2002-12-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
248 * mule-charset.c (charset_lookup_description_1): Use
249 `NUM_LEADING_BYTES' in UTF-2000.
251 2002-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
253 * mule-charset.c (Vcharset_china3_jef): Deleted.
254 (Qchina3_jef): Deleted.
255 (syms_of_mule_charset): Don't define `china3-jef'.
256 (complex_vars_of_mule_charset): Likewise.
258 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
259 (MIN_CHAR_CHINA3_JEF): Comment out.
260 (MAX_CHAR_CHINA3_JEF): Comment out.
262 2002-11-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
264 * mule-charset.c (Vcharset_ucs_gb): New variable.
265 (Qucs_gb): New variable.
266 (syms_of_mule_charset): Add new symbol `ucs-gb'.
267 (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
269 * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
271 2002-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
273 * mule-charset.c (charset_code_point): if a coded-charset has a
274 final-byte, don't inherit the builtin range of the mother CCS.
276 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
278 * mule-charset.c (charset_code_point): Fix problem about
281 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
283 * mule-charset.c (decode_builtin_char): Reorganized.
285 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
287 * text-coding.c (char_encode_shift_jis): Modify for
288 `charset_code_point'.
289 (char_encode_big5): Likewise.
290 (char_encode_utf8): Likewise.
291 (char_encode_iso2022): Likewise.
293 * mule-charset.c (charset_code_point): Add new argument
295 (Fencode_char): Add new optional argument `defined_only'.
297 * chartab.c (put_char_table): Modify for `charset_code_point'.
298 (map_char_table): Likewise.
300 * char-ucs.h (charset_code_point): Add new argument
302 (encode_char_1): Modify for `charset_code_point'.
304 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
306 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
307 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
309 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
311 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
312 (Qjis_x0208): Likewise.
313 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
314 XCHARSET_FINAL(charset).
315 (charset_code_point): Modify condition for final-byte based
317 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
318 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
319 in UTF-2000; specify `=jis-x0208' as the mother of
320 `japanese-jisx0208-1978', `japanese-jisx0208' and
321 `japanese-jisx0208-1990' in UTF-2000.
323 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
325 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
327 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
329 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
330 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
331 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
332 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
333 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
334 CONVERSION_96x96x96x96 are introduced.
335 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
336 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
337 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
339 * char-ucs.h (CONVERSION_94): New macro.
340 (CONVERSION_96): New macro.
341 (CONVERSION_94x94): New macro.
342 (CONVERSION_96x96): New macro.
343 (CONVERSION_94x94x94): New macro.
344 (CONVERSION_96x96x96): New macro.
345 (CONVERSION_94x94x94x60): New macro.
346 (CONVERSION_94x94x94x94): New macro.
347 (CONVERSION_96x96x96x96): New macro.
349 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
351 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
353 * fns.c (Qideographic_structure): New variable.
354 (Qkeyword_char): New variable.
355 (ids_format_unit): New function.
356 (Fideographic_structure_to_ids): New function.
357 (syms_of_fns): Add new symbols `ideographic-structure' and
358 `:char'; add new builtin function `ideographic-structure-to-ids'.
360 * data.c (Fchar_ref_p): New function.
361 (syms_of_data): Add new builtin function `char-ref-p'.
363 * chartab.h: Add an EXFUN for `Ffind_char'.
365 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
367 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
368 and `COMPOSE_ADD_CHAR'.
369 (decode_coding_iso2022): Use `decode_flush_er_chars'.
371 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
373 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
374 instead of `DECODE_ADD_UCS_CHAR'.
375 (COMPOSE_ADD_CHAR): Likewise.
377 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
379 * text-coding.c (decode_flush_er_chars): New inline function.
380 (decode_add_er_char): New function.
381 (decode_coding_utf8): Use `decode_flush_er_chars' and
382 `decode_add_er_char'.
384 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
386 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
387 done before `decode_output_utf8_partial_char'.
389 * mule-charset.c (complex_vars_of_mule_charset): Specify
390 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
391 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
393 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
395 * mule-charset.c (decode_defined_char): New function; search
397 (decode_builtin_char): Don't search mother if
398 XCHARSET_MAX_CODE(charset) == 0.
399 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
400 == 0 even if code >= XCHARSET_MAX_CODE(charset).
401 (Fdecode_char): Use `decode_defined_char' instead of
402 `DECODE_DEFINED_CHAR'.
403 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
404 mother of `Vcharset_ucs_jis'.
406 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
407 instead of `DECODE_DEFINED_CHAR'.
409 * char-ucs.h (decode_defined_char): Renamed from
410 `DECODE_DEFINED_CHAR'; changed to normal function.
411 (DECODE_CHAR): Use `decode_defined_char' instead of
412 `DECODE_DEFINED_CHAR'.
414 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
416 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
418 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
420 * text-coding.c (Vcoded_charset_entity_reference_alist): New
422 (Quse_entity_reference): New variable.
426 (coding_system_description): Add description for
428 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
429 (allocate_coding_system): Initialize `ccs_priority_list' in
431 (Fmake_coding_system): Add description about
432 'use-entity-reference; setup
433 CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
434 (Fcoding_system_property): Accept `disable-composition' and
435 `use-entity-reference' in UTF-2000.
436 (struct decoding_stream): Add new member `er_counter' and `er_buf'
438 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
439 (decode_coding_utf8): Decode entity-reference if
440 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
441 (char_encode_utf8): Encode non-Unicode characters as
442 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
444 (syms_of_file_coding): Add new symbols `use-entity-reference',
446 (vars_of_file_coding): Add new variable
447 `coded-charset-entity-reference-alist'.
448 (complex_vars_of_file_coding): Declare `disable-composition' and
449 `use-entity-reference' to be coding-system-properties in UTF-2000.
451 * file-coding.h (struct Lisp_Coding_System): Add new member
452 `use_entity_reference' and `ccs_priority_list'.
453 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
454 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
455 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
457 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
459 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
461 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
463 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
464 `XCHARSET_GRAPHIC(ccs)'.
466 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
468 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
471 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
473 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
474 instead of `XCHARSET_CHARS'.
476 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
478 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
479 (XCHARSET_BYTE_SIZE): Likewise.
481 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
483 (XCHARSET_BYTE_SIZE): Likewise.
485 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
487 * char-ucs.h (decoding_table_check_elements): Delete prototype.
488 (get_ccs_octet_table): New inline function.
489 (put_ccs_octet_table): Likewise.
490 (decoding_table_put_char): Use `get_ccs_octet_table' and
491 `put_ccs_octet_table'.
492 (decoding_table_remove_char): Use `decoding_table_put_char'.
493 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
495 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
497 (make_charset): Use Qunbound instead Qnil as initial value of
500 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
502 * mule-charset.c (put_char_ccs_code_point): Modify for
503 `decoding_table_remove_char' and `decoding_table_put_char'.
504 (remove_char_ccs): Modify for `decoding_table_remove_char'.
506 * char-ucs.h (decoding_table_remove_char): Change arguments to
507 hide decoding_table vector.
508 (decoding_table_put_char): Likewise.
510 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
512 * mule-charset.c (decoding_table_remove_char): Moved to
514 (decoding_table_put_char): Likewise.
516 * char-ucs.h (decoding_table_check_elements): New prototype [moved
517 from mule-charset.c].
518 (decoding_table_remove_char): New inline function [moved from
520 (decoding_table_put_char): Likewise.
522 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
524 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
525 instead of `DECODE_CHAR' for mother; don't use special code for
526 chinese-big5 to use code space of chinese-big5-1 and
528 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
529 `MAX_CHAR_BIG5_CDP' for chinese-big5.
531 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
532 (MAX_CHAR_BIG5_CDP): Revival.
534 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
536 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
537 the XLFD registry-encoding name of `chinese-big5'.
539 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
541 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
542 (Qchinese_big5_cdp): Deleted.
543 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
544 (complex_vars_of_mule_charset): Delete coded-charset
547 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
548 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
549 `CHARSET_ID_OFFSET - n' for private CCS.
550 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
551 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
552 of `MIN_LEADING_BYTE'.
553 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
554 `(CHARSET_ID_OFFSET - 97)'.
555 (MIN_CHAR_BIG5_CDP): Deleted.
556 (MAX_CHAR_BIG5_CDP): Deleted.
558 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
560 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
563 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
565 * mule-charset.c (decode_builtin_char): Support mother charsets.
567 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
569 * mule-charset.c (Q94x94x60): New variable.
570 (charset_code_point): Support conversion `94x94x60'.
571 (Fmake_charset): Likewise.
572 (syms_of_mule_charset): Add new symbol `94x94x60'.
574 * char-ucs.h (CONVERSION_94x94x60): New macro.
576 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
578 * mule-charset.c (charset_code_point): Unify code about
581 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
583 * mule-charset.c (charset_code_point): Merge code about builtin
584 characters into code about mother charsets; don't use
585 `range_charset_code_point'.
586 (range_charset_code_point): Deleted.
588 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
590 * mule-charset.c (Qcode_offset): New variable.
591 (Fmake_charset): Use `XUINT' to get value of `min-code' and
592 `max-code'; accept new property `code-offset'.
593 (syms_of_mule_charset): Add new symbol `code-offset'.
595 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
597 * mule-charset.c (range_charset_code_point): Fixed.
599 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
601 * mule-charset.c (decode_builtin_char): Change semantics of
602 code-offset of coded-charset.
603 (charset_code_point): Likewise.
604 (range_charset_code_point): Likewise.
605 (complex_vars_of_mule_charset): Modify for the change.
607 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
609 * mule-charset.c (Fencode_char): Reverse arguments.
611 * mule-charset.c (charset_code_point): Fixed.
613 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
615 * mule-charset.c (Vcharset_mojikyo): Deleted.
616 (Vcharset_mojikyo_2022_1): Deleted.
617 (Vcharset_mojikyo_pj_{1..21}): Deleted.
618 (Qmin_code): New variable in UTF-2000.
619 (Qmax_code): Likewise.
621 (Qconversion): Likewise.
624 (Qmojikyo_2022_1): Deleted.
625 (Qmojikyo_pj_{1..22}): Deleted.
626 (mark_charset): Mark `cs->mother'.
627 (charset_description): Add description for `mother'.
628 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
629 new arguments `mother' and `conversion'; use
630 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
631 (charset_code_point): Moved from char-ucs.h; support `mother'
633 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
634 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
635 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
636 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
637 allow 2 as the value of `graphic' in UTF-2000; add new properties
638 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
639 require `final' in UTF-2000; modify for `make_charset'.
640 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
641 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
642 (Fcharset_property): Support `mother', `min-code' and `max-code'.
643 (Fencode_char): New function.
644 (syms_of_mule_charset): Add new builtin function `encode-char' in
645 UTF-2000; add new symbols `min-code', `max-code', `mother',
646 `conversion' and `94x60'; delete symbols `mojikyo',
647 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
648 (complex_vars_of_mule_charset): Modify for `make_charset' change;
649 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
650 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
652 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
653 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
655 * char-ucs.h (Vcharset_mojikyo): Deleted.
656 (Vcharset_mojikyo_2022_1): Deleted.
657 (LEADING_BYTE_MOJIKYO): Deleted.
658 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
659 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
660 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
661 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
662 add new member `mother'; add new member `conversion'.
663 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
664 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
665 (CHARSET_MOTHER): New macro.
666 (CHARSET_CONVERSION): New macro.
667 (CONVERSION_IDENTICAL): New macro.
668 (CONVERSION_94x60): New macro.
669 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
670 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
671 (XCHARSET_MOTHER): New macro.
672 (XCHARSET_CONVERSION): New macro.
673 (MIN_CHAR_MOJIKYO): Deleted.
674 (MAX_CHAR_MOJIKYO): Deleted.
675 (DECODE_MOJIKYO_2022): Deleted.
676 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
677 (charset_code_point): Changed to non-inline function.
678 (encode_char_1): Use `charset_code_point'.
679 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
681 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
683 * lread.c (read_compiled_function): Fix prototype.
684 (read_vector): Likewise.
686 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
688 * lrecord.h (struct lrecord_header): Delete `older'.
689 (set_lheader_implementation): Delete code for `older'.
690 (set_lheader_older_implementation): Deleted.
691 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
692 (OLDER_RECORD_P): Deleted.
693 (OLDER_RECORD_HEADER_P): Deleted.
694 (alloc_older_lcrecord): Deleted.
695 (alloc_older_lcrecord_type): Deleted.
697 * alloc.c (all_older_lcrecords): Deleted.
698 (alloc_older_lcrecord): Deleted.
699 (disksave_object_finalization_1): Delete code for older objects.
700 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
701 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
703 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
705 * mule-charset.c (decoding_table_put_char): Use `make_vector'
706 instead of `make_older_vector'.
707 (put_char_ccs_code_point): Likewise.
708 (mark_charset): Mark `cs->decoding_table'.
709 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
711 * lisp.h (make_older_vector): Deleted.
712 (make_vector_newer): Deleted.
714 * config.h.in (HAVE_GGC): Deleted.
716 * alloc.c (make_older_vector): Deleted.
717 (make_vector_newer_1): Deleted.
718 (make_vector_newer): Deleted.
720 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
722 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
723 (Qideograph_daikanwa_2): New variable.
724 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
725 (complex_vars_of_mule_charset): Add new coded-charset
726 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
727 `LEADING_BYTE_DAIKANWA'.
729 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
730 (LEADING_BYTE_DAIKANWA_1): New macro.
731 (LEADING_BYTE_DAIKANWA_2): New macro.
732 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
734 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
736 * mule-charset.c (complex_vars_of_mule_charset): Change
737 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
738 the second revised version.
740 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
742 * mule-charset.c (Vcharset_ucs_smp): New variable.
743 (Vcharset_ucs_sip): New variable.
744 (Qucs_smp): New variable.
745 (Qucs_sip): New variable.
746 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
747 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
748 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
749 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
750 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
751 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
753 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
754 (LEADING_BYTE_UCS_SIP): New macro.
755 (MIN_CHAR_SMP): New macro.
756 (MAX_CHAR_SMP): New macro.
757 (MIN_CHAR_SIP): New macro.
758 (MAX_CHAR_SIP): New macro.
760 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
762 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
765 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
767 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
768 value; don't store value into `encoding_table' of `Lisp_Charset'.
769 (mark_charset): `encoding_table' was deleted.
770 (charset_description): Likewise.
771 (make_charset): Likewise.
772 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
773 `put_char_ccs_code_point'.
775 * chartab.h (Fput_char_attribute): New EXFUN.
777 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
778 is unified with normal symbol space.
779 (Fget_char_attribute): Likewise.
780 (Fput_char_attribute): Likewise; behavior of
781 `put_char_ccs_code_point' is changed.
783 * char-ucs.h: Include "elhash.h".
784 (Vchar_attribute_hash_table): New external variable.
785 (struct Lisp_Charset): Delete `encoding_table'.
786 (CHARSET_ENCODING_TABLE): New implementation; refer
787 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
790 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
792 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
795 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
797 * text-coding.c (char_encode_big5): Prefer charset-g1 than
800 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
802 * chartab.c (uint8_byte_table_description): New constant.
803 (uint8-byte-table): Use `uint8_byte_table_description'.
804 (uint16_byte_table_description): New constant.
805 (uint16-byte-table): Use `uint16_byte_table_description'.
807 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
809 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
810 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
812 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
814 * mule-charset.c (Vcharset_ucs_ks): New variable.
815 (Qucs_ks): New variable.
816 (syms_of_mule_charset): Add new symbol `ucs-ks'.
817 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
819 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
821 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
823 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
824 (Fdecode_char): Likewise.
826 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
828 (Fdefine_char): Modify for Fdecode_char.
829 (Ffind_char): Likewise.
831 * mule-charset.c (Fdecode_char): Add new optional argument
833 (Fdecode_builtin_char): Modify for `Fdecode_char'.
835 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
837 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
838 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
839 (allocate_coding_system): Initialize initial-charsets of
840 CODESYS_BIG5 in XEmacs UTF-2000.
841 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
842 CODESYS_BIG5 in XEmacs UTF-2000.
843 (decode_coding_big5): Use initial-charset-g0 and -g1 of
844 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
846 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
848 (Qideograph_hanziku_{1 .. 12}): Likewise.
849 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
851 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
852 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
853 `ideograph-hanziku-{1 .. 12}'.
855 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
856 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
857 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
858 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
859 (DECODE_DEFINED_CHAR): New inline function.
860 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
862 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
864 * mule-charset.c (Vcharset_china3_jef): Renamed from
865 `Vcharset_japanese_jef_china3'.
866 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
867 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
868 `{MIN|MAX}_CHAR_JEF_CHINA3'..
869 (syms_of_mule_charset): Rename `china3-jef' from
870 `japanese-jef-china3'.
871 (complex_vars_of_mule_charset): Likewise; rename
872 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
874 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
875 `LEADING_BYTE_JEF_CHINA3'.
876 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
877 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
879 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
881 * mule-charset.c (encode_builtin_char_1): Comment out special code
882 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
884 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
885 (MAX_CHAR_MOJIKYO_0): Comment out.
886 (MIN_CHAR_CBETA): Changed to 0x00E20000.
887 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
888 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
889 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
891 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
893 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
894 (Qideograph_cbeta): New variable.
895 (encode_builtin_char_1): Comment out special code for
896 coded-charset `mojikyo' and `japanese-jef-china3'.
897 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
898 (complex_vars_of_mule_charset): Add new coded-charset
901 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
902 (MIN_CHAR_CBETA): New macro.
903 (MAX_CHAR_CBETA): New macro.
905 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
907 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
908 (LEADING_BYTE_JEF_CHINA3): New macro.
909 (MIN_CHAR_JEF_CHINA3): New macro.
910 (MAX_CHAR_JEF_CHINA3): Likewise.
911 (DECODE_CHAR): Fixed.
913 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
915 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
916 (Qjapanese_jef_china3): New variable.
917 (encode_builtin_char_1): Support `japanese-jef-china3'.
918 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
919 (complex_vars_of_mule_charset): Add new coded-charset
920 `japanese-jef-china3'.
922 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
924 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
925 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
926 94^4, 96^3, 96^4, 128^n and 256^n set.
927 (put_char_table): Use `XCHARSET_CELL_RANGE'.
928 (map_char_table): Likewise.
930 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
932 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
935 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
937 * chartab.h (get_char_id_table): New inline function.
939 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
942 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
944 * chartab.h (decode_char_table_range): New prototype in XEmacs
946 (put_char_id_table): New inline function in XEmacs UTF-2000.
948 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
950 (decode_char_table_range): Delete static declaration in XEmacs
953 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
955 * chartab.c (put_char_id_table): Use `put_char_table'.
957 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
959 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
960 (map_over_uint16_byte_table): Likewise.
961 (map_over_byte_table): Likewise.
962 (map_char_table): Modify for `map_over_uint8_byte_table',
963 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
966 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
968 * chartab.c (struct map_char_table_for_charset_arg): New
970 (map_char_table_for_charset_fun): New function.
971 (map_char_table): Use `map_char_table' for encoding_table of
974 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
976 * chartab.c (map_char_table): Check a character is found in
977 range->charset instead of non default value is defined in
978 char-table when range is CHARTAB_RANGE_ROW.
980 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
982 * chartab.c (map_char_id_table): Deleted.
983 (Fmap_char_attribute): Use `map_char_table' instead of
986 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
988 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
990 (update_syntax_table): Deleted in XEmacs UTF-2000.
992 * syntax.c (find_defun_start): Use `syntax_table' instead of
993 `mirror_syntax_table' in XEmacs UTF-2000.
994 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
996 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
998 (Fmatching_paren): Likewise.
999 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1001 (find_start_of_comment): Likewise.
1002 (find_end_of_comment): Likewise.
1003 (Fforward_comment): Likewise.
1004 (scan_lists): Likewise.
1005 (char_quoted): Likewise.
1006 (Fbackward_prefix_chars): Likewise.
1007 (scan_sexps_forward): Likewise.
1008 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1009 (update_syntax_table): Likewise.
1011 * search.c (skip_chars): Use `syntax_table' instead of
1012 `mirror_syntax_table' in XEmacs UTF-2000.
1013 (wordify): Likewise.
1014 (Freplace_match): Likewise.
1016 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1017 `mirror_syntax_table' in XEmacs UTF-2000.
1018 (WORDCHAR_P_UNSAFE): Likewise.
1019 (re_match_2_internal): Likewise.
1021 * font-lock.c (find_context): Use `buf->syntax_table' instead of
1022 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1024 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1025 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1027 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1030 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1032 (print_char_table): Print `default_value' in XEmacs UTF-2000.
1033 (char_table_description): Delete `mirror_table' in XEmacs
1035 (fill_char_table): Don't call `update_syntax_table' in XEmacs
1037 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1038 (Fcopy_char_table): Likewise.
1039 (put_char_table): Don't call `update_syntax_table' in XEmacs
1042 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1043 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1044 (casify_region_internal): Likewise.
1046 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1048 * buffer.c (common_init_complex_vars_of_buffer): Don't use
1049 `mirror_syntax_table' in XEmacs UTF-2000.
1051 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1052 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1053 (Fexpand_abbrev): Likewise.
1055 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1057 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1059 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1061 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1062 (map_over_uint16_byte_table): Likewise.
1063 (map_over_byte_table): Likewise.
1064 (get_char_id_table): Refer `cit->default_value'.
1065 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1066 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1067 of character-id ranges.
1068 (mark_char_table): Mark `ct->default_value'.
1069 (char_table_description): Add `default_value'.
1070 (fill_char_table): Use `default_value'.
1071 (decode_char_table_range): Decode `nil' as
1072 `CHARTAB_RANGE_DEFAULT'.
1073 (get_char_id_table): Refer `cit->default_value'.
1074 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1075 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1076 temporary hack; check value of char-table is bound or not.
1077 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1079 * chartab.h (struct Lisp_Char_Table): Add new member
1080 `default_value' in XEmacs UTF-2000.
1081 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1082 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1085 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1087 * chartab.h (Lisp_Char_ID_Table): Deleted.
1089 * chartab.c (char_table_description): Fix typo.
1090 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1091 `Lisp_Char_ID_Table'.
1093 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1095 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1098 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1101 * chartab.h (XCHAR_ID_TABLE): Deleted.
1102 (XSETCHAR_ID_TABLE): Deleted.
1103 (CHAR_ID_TABLE_P): Deleted.
1105 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1107 (Fget_composite_char): Likewise.
1108 (put_char_table): Likewise.
1109 (add_char_attribute_alist_mapper): Fixed.
1110 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1112 (Fget_char_attribute): Likewise.
1113 (Fget_char_attribute): Likewise.
1114 (Fmap_char_attribute): Likewise.
1116 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1118 (encode_char_1): Likewise.
1120 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1122 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1125 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1126 instead of `XCHAR_ID_TABLE'.
1127 (remove_char_ccs): Likewise.
1129 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1131 (Fget_composite_char): Likewise.
1132 (Fchar_variants): Likewise.
1133 (put_char_table): Likewise.
1134 (add_char_attribute_alist_mapper): Likewise.
1135 (Fchar_attribute_alist): Likewise.
1136 (Fget_char_attribute): Likewise.
1137 (Fput_char_attribute): Likewise.
1138 (Fmap_char_attribute): Likewise.
1139 (Fmap_char_attribute): Likewise.
1141 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1143 (encode_char_1): Likewise.
1145 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1147 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1148 `Lisp_Char_ID_Table'.
1149 (mark_char_id_table): Deleted.
1150 (print_char_id_table): Likewise.
1151 (char_id_table_equal): Likewise.
1152 (char_id_table_hash): Likewise.
1153 (char_id_table_description): Likewise.
1154 (char_id_table): Likewise.
1155 (make_char_id_table): Use `Fmake_char_table' and
1157 (get_char_id_table): Use `Lisp_Char_Table' instead of
1158 `Lisp_Char_ID_Table'.
1159 (put_char_id_table): Likewise.
1160 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1162 (Fremove_char_attribute): Likewise.
1163 (syms_of_chartab): Don't define type `char-id-table'.
1165 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1166 (char_id_table): Likewise.
1167 (GC_CHAR_ID_TABLE_P): Likewise.
1168 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1169 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1170 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1171 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1172 (get_char_id_table): Use `Lisp_Char_Table' instead of
1173 `Lisp_Char_ID_Table'.
1174 (put_char_id_table_0): Likewise.
1175 (put_char_id_table): Likewise.
1177 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1179 * chartab.h: Lisp_Byte_Table related codes are moved from
1182 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1184 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1186 * chartab.h: Don't include "chartab.h".
1187 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1188 (Lisp_Char_ID_Table): Likewise.
1189 (char_id_table): Likewise.
1190 (XCHAR_ID_TABLE): Likewise.
1191 (XSETCHAR_ID_TABLE): Likewise.
1192 (CHAR_ID_TABLE_P): Likewise.
1193 (GC_CHAR_ID_TABLE_P): Likewise.
1194 (get_char_id_table): Likewise.
1196 * char-ucs.h: Include "chartab.h".
1197 (struct Lisp_Char_ID_Table): Moved to chartab.h.
1198 (Lisp_Char_ID_Table): Likewise.
1199 (char_id_table): Likewise.
1200 (XCHAR_ID_TABLE): Likewise.
1201 (XSETCHAR_ID_TABLE): Likewise.
1202 (CHAR_ID_TABLE_P): Likewise.
1203 (GC_CHAR_ID_TABLE_P): Likewise.
1204 (get_char_id_table): Likewise.
1206 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1208 * chartab.c (copy_uint8_byte_table): New function.
1209 (copy_uint16_byte_table): New function.
1210 (copy_byte_table): New function.
1211 (map_over_uint8_byte_table): Modify to avoid huge numbers of
1213 (map_over_uint16_byte_table): Likewise.
1214 (map_over_byte_table): Likewise.
1215 (get_byte_table): Move prototype to chartab.h.
1216 (put_byte_table): Likewise.
1217 (put_char_id_table_0): Moved to chartab.h.
1218 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1219 (char_table_entry_equal): Likewise.
1220 (char_table_entry_hash): Likewise.
1221 (char_table_entry_description): Likewise.
1222 (char_table_entry): Likewise.
1223 (make_char_table_entry): Likewise.
1224 (copy_char_table_entry): Likewise.
1225 (get_non_ascii_char_table_value): Likewise.
1226 (map_over_charset_ascii): Likewise.
1227 (map_over_charset_control_1): Likewise.
1228 (map_over_charset_row): Likewise.
1229 (map_over_other_charset): Likewise.
1230 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1231 (print_char_table): Likewise.
1232 (char_table_equal): Likewise.
1233 (char_table_hash): Likewise.
1234 (char_table_description): Likewise.
1235 (fill_char_table): Likewise.
1236 (Fcopy_char_table): Likewise.
1237 (get_char_table): Likewise.
1238 (Fget_range_char_table): Likewise.
1239 (put_char_table): Likewise.
1240 (map_char_table): Likewise.
1241 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1244 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1246 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1247 `Vauto_fill_chars' in XEmacs UTF-2000.
1249 * chartab.h (get_byte_table): New prototype [moved from
1251 (put_byte_table): Likewise [moved from chartab.c].
1252 (put_char_id_table_0): New inline function [moved from chartab.c].
1253 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1254 (Lisp_Char_Table_Entry): Likewise.
1255 (char_table_entry): Likewise.
1256 (XCHAR_TABLE_ENTRY): Likewise.
1257 (XSETCHAR_TABLE_ENTRY): Likewise.
1258 (CHAR_TABLE_ENTRYP): Likewise.
1259 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1260 (NUM_ASCII_CHARS): Likewise.
1261 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1262 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1264 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1266 * chartab.c (get_char_id_table): Change interface.
1267 (put_char_id_table_0): New function.
1268 (put_char_id_table): Change interface; new implementation.
1269 (Fget_composite_char): Modify for interface change of
1270 `get_char_id_table'.
1271 (Fchar_variants): Likewise.
1272 (add_char_attribute_alist_mapper): Likewise.
1273 (Fchar_attribute_alist): Likewise.
1274 (Fget_char_attribute): Likewise.
1275 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1276 as same as character as the first argument like `put-char-table';
1277 modify for interface change of `put_char_id_table'.
1278 (Fremove_char_attribute): Modify for interface change of
1279 `put_char_id_table'.
1281 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1283 * text-coding.c: Sync up with XEmacs 21.2.41.
1284 (COMPOSE_ADD_CHAR): Modify for interface change of
1285 `get_char_id_table'.
1287 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1288 change of `put_char_id_table'.
1289 (remove_char_ccs): Likewise.
1291 * chartab.h (put_char_id_table): Change interface.
1293 * char-ucs.h (get_char_id_table): Change interface.
1294 (charset_code_point): Modify for interface change of
1295 `get_char_id_table'.
1296 (encode_char_1): Likewise.
1298 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1300 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1302 (map_over_uint16_byte_table): Likewise.
1303 (map_over_byte_table): Likewise.
1304 (map_char_id_table): Add new argument `range' like
1306 (Fmap_char_attribute): Add new argument `range' like
1309 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1311 * chartab.c (map_over_uint8_byte_table): Change interface of
1312 mapping function to use struct chartab_range instead of Emchar.
1313 (map_over_uint16_byte_table): Likewise.
1314 (map_over_byte_table): Likewise.
1315 (map_char_id_table): Likewise.
1316 (struct slow_map_char_id_table_arg): Deleted.
1317 (slow_map_char_id_table_fun): Deleted.
1318 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1319 function `slow_map_char_table_fun' instead of struct
1320 `slow_map_char_id_table_arg' and function
1321 `slow_map_char_id_table_fun'.
1323 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1325 * mule-charset.c: Move char-it-table related codes to chartab.c.
1326 (Vutf_2000_version): Moved to chartab.c.
1327 (Fdefine_char): Likewise.
1328 (Ffind_char): Likewise.
1329 (syms_of_mule_charset): Move types `uint8-byte-table',
1330 `uint16-byte-table', `byte-table' and `char-id-table' to
1331 chartab.c; move functions `char_attribute_list,
1332 `find_char_attribute_table, `char_attribute_alist,
1333 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1334 `map_char_attribute, `define_char, `find_char, `char_variants and
1335 `get_composite_char to chartab.c; move symbols `=>ucs',
1336 `->decomposition', `compat', `isolated', `initial', `medial',
1337 `final', `vertical', `noBreak', `fraction', `super', `sub',
1338 `circle', `square', `wide', `narrow', `small' and `font' to
1340 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1341 setting codes for `Vcharacter_composition_table' and
1342 `Vcharacter_variant_table' to chartab.c.
1343 (complex_vars_of_mule_charset): Move setting code for
1344 `Vchar_attribute_hash_table' to chartab.c.
1346 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1347 (make_char_id_table): New prototype.
1348 (put_char_id_table): Likewise.
1349 (Fget_char_attribute): Likewise.
1351 * chartab.c: Move char-id-table related code from mule-charset.c.
1352 (Vutf_2000_version): Moved from mule-charset.c.
1354 * char-ucs.h (Qucs): New external variable.
1355 (put_char_ccs_code_point): New prototype.
1356 (remove_char_ccs): Likewise.
1358 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1360 * mule-charset.c (Vcharset_ucs_jis): New variable.
1361 (Qucs_jis): Likewise.
1362 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1363 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1365 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1367 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1369 * mule-charset.c (map_over_uint8_byte_table): New function.
1370 (map_over_uint16_byte_table): Likewise.
1371 (map_over_byte_table): Likewise.
1372 (map_char_id_table): Likewise.
1373 (slow_map_char_id_table_fun): Likewise.
1374 (Fmap_char_attribute): Likewise.
1375 (syms_of_mule_charset): Add new function `map-char-attribute'.
1377 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1380 (syms_of_mule_charset): Add new function `find-char'.
1382 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1384 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1386 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1387 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1389 (complex_vars_of_mule_charset): Add new coded-charset
1390 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1391 `ideograph-gt-pj-*'.
1393 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1395 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397 * mule-charset.c (encode_builtin_char_1): Purge codes about
1398 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1399 {MIN|MAX}_CHAR_HEBREW.
1400 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1401 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1403 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1404 (MAX_CHAR_GREEK): Purged.
1405 (MIN_CHAR_CYRILLIC): Purged.
1406 (MAX_CHAR_CYRILLIC): Purged.
1407 (MIN_CHAR_HEBREW): Commented out.
1408 (MAX_CHAR_HEBREW): Likewise.
1410 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1412 * mule-charset.c (Qto_ucs): New variable.
1413 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1414 (Fdefine_char): Likewise.
1415 (syms_of_mule_charset): Add new symbol `=>ucs'.
1417 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1419 * mule-charset.c (Fdecode_char): Fixed.
1421 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1423 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1424 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1427 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1429 * mule-charset.c (Vcharset_ucs_big5): New variable.
1430 (Qucs_big5): Likewise.
1431 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1432 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1434 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1436 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1438 * mule-charset.c (decode_builtin_char): Check Big5 code range
1439 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1441 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1443 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1444 (Qchinese_gb12345): Likewise.
1445 (Fdecode_builtin_char): Fixed.
1446 (syms_of_mule_charset): Add `chinese-gb12345'.
1447 (complex_vars_of_mule_charset): Add coded-charset
1450 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1451 (LEADING_BYTE_CHINESE_GB12345): New macro.
1453 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1455 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1456 and `latin-viscii-upper' for `latin-viscii'.
1458 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1460 * mule-charset.c (Fdecode_builtin_char): Comment out
1461 regularization code for ISO-IR GR representation.
1463 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1465 * mule-charset.c (decode_builtin_char): New function; renamed from
1466 `make_builtin_char'; return -1 instead of signal.
1467 (Fdecode_builtin_char): Use `decode_builtin_char'.
1469 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1470 `make_builtin_char'.
1471 (DECODE_CHAR): Use `decode_builtin_char' instead of
1472 `make_builtin_char'; use mapping table of `chinese-big5' for
1473 `chinese-big5-{1,2}'.
1475 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1477 * text-coding.c (char_encode_big5): New function.
1478 (char_finish_big5): Likewise.
1479 (reset_encoding_stream): Use `char_encode_big5' and
1480 `char_finish_big5' for CODESYS_BIG5.
1481 (mule_encode): Don't use `encode_coding_big5'.
1482 (encode_coding_big5): Deleted.
1484 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1486 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1487 0x81- in XEmacs UTF-2000.
1488 (detect_coding_big5): Likewise.
1490 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1492 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1493 generate character-id if the CCS property does not have
1494 corresponding predefined character.
1495 (make_builtin_char): Return -1 if corresponding predefined
1496 character is not found.
1497 (Fdecode_char): Return nil if corresponding character is not
1499 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1500 don't map to builtin ucs space.
1502 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1504 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1505 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1507 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1509 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1510 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1511 (Qideograph_gt): Likewise.
1512 (Qideograph_gt_pj_{1..11}): Likewise.
1513 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1514 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1515 `ideograph-gt-pj-11'.
1516 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1517 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1518 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1520 * char-ucs.h (LEADING_BYTE_GT): New macro.
1521 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1522 (MIN_CHAR_GT): Likewise.
1523 (MAX_CHAR_GT): Likewise.
1525 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1527 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1528 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1530 * doprnt.c (unsigned_int_converters): Add `c'.
1531 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1533 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1534 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1536 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1537 (MAX_CHAR_MOJIKYO_0): New macro.
1538 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1540 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1542 * mule-charset.c (Fdefine_char): Delete cemented out code.
1543 (encode_builtin_char_1): Modify for new allocation of builtin
1546 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1548 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1550 * mule-charset.c (Vcharset_ucs_cns): New variable.
1551 (Qucs_cns): New variable.
1552 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1553 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1555 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1557 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1559 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1561 * search.c (search_buffer): Make `charset_base_code' as
1562 character-id >> 6 to eliminate the corresponding last byte in
1563 UTF-8 representation [I'm not sure it is right thing].
1564 (boyer_moore): Likewise.
1566 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1568 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1569 representation in MULE.
1571 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1573 * text-coding.c (Fmake_coding_system): Use
1574 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1575 `EXTERNAL_PROPERTY_LIST_LOOP'.
1577 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1579 * text-coding.c (decode_output_utf8_partial_char): New function.
1580 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1582 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1584 * text-coding.c (decode_coding_utf8): Output original byte
1585 sequence if it is broken; change order of conditions.
1587 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1590 * mb-multibyte.h (BYTE_ASCII_P):
1591 Use bit ops for char-signedness safety.
1592 (BYTE_C0_P): Use bit ops for char-signedness safety.
1593 (BYTE_C1_P): Use bit ops for char-signedness safety.
1595 * character.h: (XCHAR_OR_CHAR_INT):
1596 Always use inline function.
1597 Remove redundant type checking assert() - XINT will abort quite
1600 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1602 * text-coding.c: (Fencode_shift_jis_char):
1603 (Fencode_big5_char):
1604 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1605 Replace 0 with '\0' when working with bytes.
1606 Replace initial "(" with "\(" in docstrings.
1608 (Fmake_coding_system):
1609 When type is ccl and value is vector, register it with a proper
1610 symbol. And checks whether the given ccl program is valid.
1611 (mule_decode): When calling ccl_driver, if src indicates
1612 NULL pointer, set an empty string instead.
1613 (mule_encode): Likewise.
1616 (detect_coding_sjis):
1617 (decode_coding_sjis):
1618 (detect_coding_big5):
1619 (decode_coding_big5):
1620 (detect_coding_ucs4):
1621 (decode_coding_ucs4):
1622 (detect_coding_utf8):
1623 (decode_coding_utf8):
1624 (detect_coding_iso2022):
1625 (decode_coding_iso2022):
1626 (decode_coding_no_conversion):
1628 Make all detecting and decoding functions take an Extbyte * arg.
1629 (text_encode_generic):
1630 (encode_coding_big5):
1631 (encode_coding_no_conversion):
1633 Make all encoding functions take a Bufbyte * arg.
1634 Use size_t instead of unsigned int for memory sizes.
1635 Only cast to unsigned char whenever dereferencing Extbyte *.
1637 (struct lrecord_description fcd_description_1): Use countof.
1638 (complex_vars_of_file_coding):
1639 Use countof instead of sizeof.
1640 Use CHECK_NATNUM instead of CHECK_INT.
1642 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1644 * mule-charset.c (Fget_char_attribute): Add new optional argument
1646 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1647 (remove_char_ccs): Likewise.
1649 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1651 * text-coding.c (char_encode_shift_jis): New implementation in
1653 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1656 * mule-charset.c (Vcharset_chinese_big5): New variable in
1658 (Qchinese_big5): New variable in UTF-2000.
1659 (BIG5_SAME_ROW): New macro in UTF-2000.
1660 (make_builtin_char): Use builtin characters of
1661 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1662 characters of `Vcharset_chinese_big5'.
1663 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1664 (complex_vars_of_mule_charset): Add new coded-charset
1665 `chinese-big5' in UTF-2000.
1667 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1668 (Vcharset_chinese_big5): New external variable declaration.
1669 (Vcharset_japanese_jisx0208_1990): Likewise.
1671 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1673 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1675 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1677 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1679 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1680 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1681 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1684 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1686 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1688 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1690 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1693 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1695 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1696 for `CHARSET_BY_ATTRIBUTES'.
1697 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1698 `CHARSET_BY_ATTRIBUTES'.
1700 * text-coding.c (struct decoding_stream): Rename member `CH' to
1702 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1703 (decode_coding_sjis): Likewise.
1704 (decode_coding_big5): Likewise.
1705 (decode_coding_ucs4): Likewise.
1706 (decode_coding_utf8): Likewise.
1707 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1708 `CHARSET_BY_ATTRIBUTES'.
1709 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1710 `str->counter'; decode 3, 4 bytes sets.
1711 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1713 (decode_coding_no_conversion): Use `str->cpos' instead of
1716 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1717 (Qmojikyo_2022_1): New variable.
1718 (make_charset): Don't use `CHARSET_TYPE_*'.
1719 (range_charset_code_point): Support coded-charset
1721 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1722 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1723 `CHARSET_BY_ATTRIBUTES'.
1724 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1725 `CHARSET_BY_ATTRIBUTES'.
1726 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1727 (complex_vars_of_mule_charset): Add new coded-charset
1730 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1731 interface; changed to inline function.
1733 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1734 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1735 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1736 (CHARSET_TYPE_94): Deleted.
1737 (CHARSET_TYPE_94X94): Deleted.
1738 (CHARSET_TYPE_96): Deleted.
1739 (CHARSET_TYPE_96X96): Deleted.
1740 (CHARSET_TYPE_128): Deleted.
1741 (CHARSET_TYPE_128X128): Deleted.
1742 (CHARSET_TYPE_256): Deleted.
1743 (CHARSET_TYPE_256X256): Deleted.
1744 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1746 (DECODE_MOJIKYO_2022): New inline function.
1747 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1748 `Vcharset_mojikyo_2022_1'.
1750 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1752 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1754 (put_byte_table): Likewise.
1755 (char_id_table_equal): Use `get_byte_table' [new implementation].
1757 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1759 * mule-charset.c: Include <limits.h> in UTF-2000.
1760 (BT_UINT8_MIN): New macro in UTF-2000.
1761 (BT_UINT8_MAX): New macro in UTF-2000.
1762 (BT_UINT8_t): New macro in UTF-2000.
1763 (BT_UINT8_nil): New macro in UTF-2000.
1764 (BT_UINT8_unbound): New macro in UTF-2000.
1765 (INT_UINT8_P): New inline function in UTF-2000.
1766 (UINT8_VALUE_P): New inline function in UTF-2000.
1767 (UINT8_ENCODE): New inline function in UTF-2000.
1768 (UINT8_DECODE): New inline function in UTF-2000.
1769 (mark_uint8_byte_table): New function in UTF-2000.
1770 (print_uint8_byte_table): New function in UTF-2000.
1771 (uint8_byte_table_equal): New function in UTF-2000.
1772 (uint8_byte_table_hash): New function in UTF-2000.
1773 (make_uint8_byte_table): New function in UTF-2000.
1774 (uint8_byte_table_same_value_p): New function in UTF-2000.
1775 (BT_UINT16_MIN): New macro in UTF-2000.
1776 (BT_UINT16_MAX): New macro in UTF-2000.
1777 (BT_UINT16_t): New macro in UTF-2000.
1778 (BT_UINT16_nil): New macro in UTF-2000.
1779 (BT_UINT16_unbound): New macro in UTF-2000.
1780 (INT_UINT16_P): New inline function in UTF-2000.
1781 (UINT16_VALUE_P): New inline function in UTF-2000.
1782 (UINT16_ENCODE): New inline function in UTF-2000.
1783 (UINT16_DECODE): New inline function in UTF-2000.
1784 (UINT8_TO_UINT16): New inline function in UTF-2000.
1785 (mark_uint16_byte_table): New function in UTF-2000.
1786 (print_uint16_byte_table): New function in UTF-2000.
1787 (uint16_byte_table_equal): New function in UTF-2000.
1788 (uint16_byte_table_hash): New function in UTF-2000.
1789 (make_uint16_byte_table): New function in UTF-2000.
1790 (uint16_byte_table_same_value_p): New function in UTF-2000.
1791 (print_byte_table): New function in UTF-2000.
1792 (byte-table): Use `print_byte_table' as printer.
1793 (make_byte_table): Delete second argument `older'.
1794 (byte_table_same_value_p): New function in UTF-2000.
1795 (copy_byte_table): Deleted.
1796 (get_byte_table): New function in UTF-2000.
1797 (put_byte_table): New function in UTF-2000.
1798 (print_char_id_table): New function in UTF-2000.
1799 (char-id-table): Use `print_char_id_table' as printer.
1800 (make_char_id_table): Delete second argument `older'.
1801 (get_char_id_table): Use `get_byte_table [new implementation].
1802 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1804 (Ffind_char_attribute_table): New function in UTF-2000.
1805 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1806 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1807 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1808 (syms_of_mule_charset): Add new function
1809 `find-char-attribute-table' in UTF-2000.
1811 * lrecord.h (enum lrecord_type): Add
1812 `lrecord_type_uint16_byte_table' and
1813 `lrecord_type_uint8_byte_table'.
1815 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1816 (Lisp_Uint8_Byte_Table): New type.
1817 (XUINT8_BYTE_TABLE): New macro.
1818 (XSETUINT8_BYTE_TABLE): New macro.
1819 (UINT8_BYTE_TABLE_P): New macro.
1820 (GC_UINT8_BYTE_TABLE_P): New macro.
1821 (struct Lisp_Uint16_Byte_Table): New structure.
1822 (Lisp_Uint16_Byte_Table): New type.
1823 (XUINT16_BYTE_TABLE): New macro.
1824 (XSETUINT16_BYTE_TABLE): New macro.
1825 (UINT16_BYTE_TABLE_P): New macro.
1826 (GC_UINT16_BYTE_TABLE_P): New macro.
1828 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1830 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1831 (Vcharacter_ideographic_strokes_table): Deleted.
1832 (Vcharacter_total_strokes_table): Deleted.
1833 (Vcharacter_morohashi_daikanwa_table): Deleted.
1834 (Vcharacter_decomposition_table): Deleted.
1835 (Qname): Deleted because it is duplicated.
1836 (Qideographic_radical): Deleted.
1837 (Qideographic_strokes): Deleted.
1838 (Qtotal_strokes): Deleted.
1839 (Qmorohashi_daikanwa): Deleted.
1840 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1841 `ideographic-radical', `ideographic-strokes', `total-strokes',
1842 `morohashi-daikanwa' and `->decomposition'.
1843 (Fget_char_attribute): Likewise.
1844 (Fput_char_attribute): Likewise; use `make-vector' instead of
1845 `make_older_vector' for `->decomposition' value.
1846 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1847 `ideograph-daikanwa'.
1848 (syms_of_mule_charset): Delete builtin symbols `name',
1849 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1850 `morohashi-daikanwa'.
1851 (vars_of_mule_charset): Don't setup
1852 `Vcharacter_ideographic_radical_table',
1853 `Vcharacter_ideographic_strokes_table',
1854 `Vcharacter_total_strokes_table',
1855 `Vcharacter_morohashi_daikanwa_table' and
1856 `Vcharacter_decomposition_table'.
1858 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1860 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1861 `make_older_vector', `make_vector_newer_1' and
1862 `make_vector_newer'.
1864 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1865 `make_older_vector' and `make_vector_newer'.
1867 * config.h.in (HAVE_GGC): New macro.
1869 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1871 * mule-charset.c (struct char_attribute_list_closure): New
1872 structure in UTF-2000.
1873 (add_char_attribute_to_list_mapper): New function in UTF-2000.
1874 (Fchar_attribute_list): Likewise.
1875 (Fset_charset_mapping_table): Use `make_vector_newer'.
1876 (Fdecode_builtin_char): New function in UTF-2000.
1877 (syms_of_mule_charset): Add new function `char-attribute-list' and
1878 `decode-builtin-char' in UTF-2000.
1880 * lisp.h (make_vector_newer): New prototype.
1882 * alloc.c (make_vector_newer_1): New function.
1883 (make_vector_newer): New function.
1885 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1887 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1890 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1892 * mule-charset.c (Vchar_attribute_hash_table): New variable.
1893 (Vcharacter_attribute_table): Deleted.
1894 (Vcharacter_name_table): Deleted.
1895 (put_char_attribute): Deleted.
1896 (remove_char_attribute): Deleted.
1897 (struct char_attribute_alist_closure): New structure.
1898 (add_char_attribute_alist_mapper): New function.
1899 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1900 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1901 (Fget_char_attribute): Likewise.
1902 (Fput_char_attribute): Likewise.
1903 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1904 of `remove_char_attribute'.
1905 (Fdefine_char): Return character.
1906 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1907 and `Vcharacter_name_table'.
1908 (complex_vars_of_mule_charset): Likewise
1909 `Vchar_attribute_hash_table'.
1911 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1913 * character.h (CHARC_CHARSET): New macro.
1914 (CHARC_CHARSET_ID): New macro.
1915 (CHARC_CODE_POINT): New macro.
1916 (CHARC_COLUMNS): New macro.
1917 (CHARC_TO_CHAR): New inline function.
1918 (CHARC_EQ): New inline function.
1919 (CHARC_ASCII_EQ): New inline function.
1920 (CHARC_IS_SPACE): New inline function.
1921 (ASCII_TO_CHARC): New inline function.
1923 * char-ucs.h (encode_char_2): Deleted.
1924 (ENCODE_CHAR): Use `encode_char_1' again.
1925 (breakup_char_1): Likewise.
1926 (CHAR_TO_CHARC): New inline function.
1928 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1930 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1932 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1933 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1934 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1935 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1936 (create_string_text_block): Use `CHARC_ASCII_EQ' and
1938 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1940 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1942 (x_output_display_block): Use `CHARC_CHARSET' and
1945 * redisplay-tty.c (tty_output_display_block): Use
1947 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1949 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1951 * insdel.c (find_charsets_in_charc_string): Use
1953 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1954 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1955 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1956 (convert_charc_string_into_malloced_string): Likewise.
1958 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1960 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1961 instead of <Emchar_dynarr *> for buf; use
1962 `convert_bufbyte_string_into_charc_dynarr' instead of
1963 `convert_bufbyte_string_into_emchar_dynarr'; use
1964 `find_charsets_in_charc_string' instead of
1965 `find_charsets_in_emchar_string'.
1968 - Include "character.h".
1969 (struct rune): New member `cglyph'; delete member `chr'.
1971 * redisplay.c (redisplay_text_width_charc_string): New function;
1972 delete `redisplay_text_width_emchar_string'.
1973 (rtw_charc_dynarr): New variable; renamed from
1974 `rtw_emchar_dynarr'.
1975 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1976 `rtw_emchar_dynarr'; use
1977 `convert_bufbyte_string_into_charc_dynarr' instead of
1978 `convert_bufbyte_string_into_emchar_dynarr'; use
1979 `redisplay_text_width_charc_string' instead of
1980 `redisplay_text_width_emchar_string'.
1981 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1982 instead of `rtw_emchar_dynarr'; use
1983 `convert_bufbyte_string_into_charc_dynarr' instead of
1984 `convert_bufbyte_string_into_emchar_dynarr'.
1985 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1986 `redisplay_text_width_charc_string' instead of
1987 `redisplay_text_width_emchar_string'.
1988 (create_text_block): Modify for <struct rune> change.
1989 (generate_formatted_string_db): Likewise.
1990 (create_string_text_block): Likewise.
1991 (pixel_to_glyph_translation): Likewise.
1993 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1994 instead of <const Emchar *>.
1995 (x_text_width): Likewise.
1996 (x_output_display_block): Use <Charc_dynarr *> instead
1997 <Emchar_dynarr *>; modify for <structure rune> change.
1998 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2001 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2002 <const Emchar *>; use `charc_string_displayed_columns' instead of
2003 `emchar_string_displayed_columns'.
2004 (tty_output_display_block): Use <Charc_dynarr *> instead of
2005 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2006 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2007 (tty_output_charc_dynarr_dynarr): New variable; renamed from
2008 `tty_output_emchar_dynarr_dynarr'.
2009 (tty_output_charc_dynarr): New function; delete
2010 `tty_output_charc_dynarr'.
2012 * redisplay-output.c (compare_runes): Modify for `struct rune'.
2013 (redisplay_output_layout): Use <Charc_dynarr *> instead of
2014 <Emchar_dynarr *> for buf; use
2015 `convert_bufbyte_string_into_charc_dynarr' instead of
2016 `convert_bufbyte_string_into_emchar_dynarr'.
2018 * frame.c (title_string_charc_dynarr): New variable; renamed from
2019 `title_string_emchar_dynarr'.
2020 (generate_title_string): Use `title_string_charc_dynarr' instead
2021 of `title_string_emchar_dynarr'; use
2022 `convert_charc_string_into_malloced_string' instead of
2023 `convert_emchar_string_into_malloced_string'.
2024 (init_frame): Use `title_string_charc_dynarr' instead of
2025 `title_string_emchar_dynarr'.
2028 - Include "character.h".
2029 (struct console_methods): Use <const Charc *> instead of <const
2030 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2031 <Emchar_dynarr *> in output_string_method.
2033 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2036 * console-stream.c (stream_text_width): Use <const Charc *>
2037 instead of <const Emchar *>.
2039 * character.h (Charc_dynarr): New type.
2041 * char-ucs.h (structure Charc): New structure; define new type
2044 * char-lb.h (DECODE_CHAR): New inline function.
2045 (encode_char_1): New inline function.
2046 (ENCODE_CHAR): New macro.
2047 (structure Charc): New structure; define new type `Charc'.
2049 * char-1byte.h (Vcharset_control_1): New macro.
2050 (Vcharset_latin_iso8859_1): New macro.
2051 (DECODE_CHAR): New inline function.
2052 (encode_char_1): New inline function.
2053 (ENCODE_CHAR): New macro.
2054 (structure Charc): New structure; define new type `Charc'.
2056 * insdel.c (find_charsets_in_charc_string): New function; delete
2057 `find_charsets_in_emchar_string'.
2058 (charc_string_displayed_columns): New function; delete
2059 `emchar_string_displayed_columns'.
2060 (convert_bufbyte_string_into_charc_dynarr): New function; delete
2061 `convert_bufbyte_string_into_emchar_dynarr'.
2062 (convert_charc_string_into_bufbyte_dynarr): New function; delete
2063 `convert_charc_string_into_bufbyte_dynarr'.
2064 (convert_charc_string_into_malloced_string): New function; delete
2065 `convert_charc_string_into_malloced_string'.
2067 * buffer.h (find_charsets_in_charc_string): New prototype; delete
2068 `find_charsets_in_emchar_string'.
2069 (charc_string_displayed_columns): New prototype; delete
2070 `emchar_string_displayed_columns'.
2071 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2072 `convert_charc_string_into_bufbyte_dynarr'.
2073 (convert_charc_string_into_malloced_string): New prototype; delete
2074 `convert_charc_string_into_malloced_string'.
2076 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2078 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2080 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2082 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2084 * char-ucs.h: Use <short> for <Charset_ID>.
2086 * mule-charset.h, char-1byte.h: Use <unsigned char> for
2089 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2091 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2094 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2096 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2098 (Qmorohashi_daikanwa): New variable.
2099 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2100 for `morohashi-daikanwa' attribute.
2101 (Fget_char_attribute): Likewise.
2102 (Fput_char_attribute): Likewise.
2103 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2104 has the same value of `ideograph-daikanwa'.
2105 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2106 (vars_of_mule_charset): Setup
2107 `Vcharacter_morohashi_daikanwa_table'.
2109 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2111 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2113 (add_charset_to_list_mapper): Add `key' instead of
2114 `XCHARSET_NAME (value)' to return aliases.
2116 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118 * mule-charset.c (Vcharacter_ideographic_radical_table): New
2120 (Vcharacter_ideographic_strokes_table): New variable.
2121 (Qideographic_radical): New variable.
2122 (Qideographic_strokes): New variable.
2123 (Fchar_attribute_alist): Use
2124 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2125 attribute; use `Vcharacter_ideographic_strokes_table' for
2126 `ideographic-strokes' attribute.
2127 (Fget_char_attribute): Likewise.
2128 (Fput_char_attribute): Likewise.
2129 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2130 `ideographic-strokes'.
2131 (vars_of_mule_charset): Setup
2132 `Vcharacter_ideographic_radical_table' and
2133 `Vcharacter_ideographic_strokes_table'.
2135 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2137 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2138 (Qtotal_strokes): New variable.
2139 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2140 `total-strokes' attribute.
2141 (Fget_char_attribute): Likewise.
2142 (Fput_char_attribute): Likewise.
2143 (syms_of_mule_charset): Add new symbol `total-strokes'.
2144 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2146 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2148 * mule-charset.c (Vcharacter_decomposition_table): New variable.
2149 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2151 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2152 `->decomposition' attribute.
2153 (Fput_char_attribute): Likewise.
2154 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2156 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2158 * mule-charset.c (decoding_table_check_elements): New function.
2159 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2161 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2163 * mule-charset.c (Fset_charset_mapping_table): Use
2164 `put_char_ccs_code_point'.
2166 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2168 * mule-charset.c (decoding_table_put_char): New inline function.
2169 (put_char_ccs_code_point): Use `decoding_table_put_char'.
2171 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2173 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2174 (XCHARSET_BYTE_SIZE): New macro.
2175 (decoding_table_remove_char): New inline function.
2176 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2177 `decoding_table_remove_char'.
2178 (remove_char_ccs): Use `decoding_table_remove_char'.
2179 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2181 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2183 * mule-charset.c (Vcharacter_name_table): New variable.
2184 (Qname): New variable.
2185 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2187 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2188 `Vcharacter_name_table' for `name' attribute.
2189 (Fremove_char_attribute): Use function `remove_char_ccs'.
2190 (put_char_ccs_code_point): New function.
2191 (remove_char_ccs): New function.
2192 (syms_of_mule_charset): Add new symbol `name'.
2193 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2195 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2197 * mule-charset.c (make_byte_table): Add new argument `older'.
2198 (make_char_id_table): Likewise.
2199 (copy_char_id_table): Comment out because it is not used.
2200 (put_char_id_table): Modify for `make_byte_table'.
2201 (Fput_char_attribute): Make encoding_table as older object;
2202 inherit older bit of `Vcharacter_composition_table'.
2203 (mark_charset): Don't mark `cs->encoding_table'.
2204 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2205 normal object; make `Vcharacter_composition_table' as an older
2206 object; delete staticpro for `Vcharacter_composition_table'; make
2207 `Vcharacter_variant_table' as a normal object.
2209 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2210 (mark_object): Don't check older object in UTF-2000.
2212 * lrecord.h (struct lrecord_header): Add new member `older' in
2214 (set_lheader_implementation): Setup `SLI_header->older' in
2216 (set_lheader_older_implementation): New macro in UTF-2000.
2217 (OLDER_RECORD_P): New macro in UTF-2000.
2218 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2219 (alloc_older_lcrecord): New prototype in UTF-2000.
2220 (alloc_older_lcrecord_type): New macro in UTF-2000.
2222 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2224 * mule-charset.c (byte_table_description): Use
2225 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2226 (char_id_table_description): Delete bogus `, 1'.
2227 (Fget_char_attribute): Refer encoding_table of each coded-charset
2228 to get value of coded-charset attribute of a character.
2229 (Fput_char_attribute): Use `make_older_vector' instead of
2230 `make_vector'; use encoding_table of each coded-charset to store
2231 value of coded-charset attribute of a character.
2232 (Fremove_char_attribute): Use encoding_table of each coded-charset
2233 to store value of coded-charset attribute of a character.
2234 (mark_charset): Mark `cs->encoding_table'; don't mark
2235 `cs->decoding_table'.
2236 (charset_description): Add description of new member
2238 (make_charset): Initialize `encoding_table'.
2240 * char-ucs.h (struct Lisp_Charset): Add new member
2242 (CHARSET_ENCODING_TABLE): New macro.
2243 (XCHARSET_ENCODING_TABLE): New macro.
2244 (charset_code_point): New implementation.
2245 (encode_char_1): Likewise.
2247 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2248 (disksave_object_finalization_1): Call finalizers of
2249 `all_older_lcrecords' in UTF-2000.
2250 (make_older_vector): New function in UTF-2000.
2251 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2254 * lisp.h (make_older_vector): New prototype in UTF-2000.
2256 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2258 * lrecord.h (enum lrecord_type): Rename
2259 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2261 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2262 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2263 `get_char_code_table'.
2265 * mule-charset.c (mark_char_id_table): Renamed from
2266 `mark_char_code_table'.
2267 (char_id_table_equal): Renamed from `char_code_table_equal'.
2268 (char_id_table_hash): Renamed from `char_code_table_hash'.
2269 (make_char_id_table): Renamed from `make_char_code_table'.
2270 (copy_char_id_table): Renamed from `copy_char_code_table'.
2271 (get_char_id_table): Renamed from `get_char_code_table'.
2272 (put_char_id_table): Renamed from `put_char_code_table'.
2273 (to_char_id): Renamed from `to_char_code'.
2275 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2276 `Lisp_Char_Code_Table'.
2277 (char_id_table): Renamed from `char_code_table'.
2278 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2279 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2280 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2281 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2282 (get_char_id_table): Renamed from `get_char_code_table'.
2284 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2286 * lrecord.h (enum lrecord_type): Rename
2287 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2289 * mule-charset.c (mark_byte_table): Renamed from
2290 `mark_char_byte_table'.
2291 (byte_table_equal): Renamed from `char_byte_table_equal'.
2292 (byte_table_hash): Renamed from `byte_table_hash'.
2293 (make_byte_table): Renamed from `make_byte_table'.
2294 (copy_byte_table): Renamed from `copy_char_byte_table'.
2296 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2297 `Lisp_Char_Byte_Table'.
2298 (byte_table): Renamed from `char_byte_table'.
2299 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2300 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2301 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2302 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2304 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2306 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2307 (dfc_convert_to_internal_format): Likewise.
2309 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2310 * text-coding.c (Fcoding_system_alias_p): New function.
2311 * text-coding.c (Fcoding_system_aliasee): New function.
2312 * text-coding.c (append_suffix_to_symbol): New function.
2313 * text-coding.c (dangling_coding_system_alias_p): New function.
2314 * text-coding.c (Ffind_coding_system):
2315 * text-coding.c (Fcopy_coding_system):
2316 * text-coding.c (encode_coding_no_conversion):
2317 * text-coding.c (syms_of_file_coding):
2318 * text-coding.c (vars_of_file_coding):
2319 Rewrite coding system alias code.
2320 Allow nested aliases, like symbolic links.
2321 Allow redefinition of coding system aliases.
2322 Prevent existence of dangling coding system aliases.
2323 Eliminate convert_to_external_format.
2324 Eliminate convert_to_internal_format.
2326 * text-coding.c: Change enum eol_type to eol_type_t.
2328 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2330 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2331 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2333 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2334 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2336 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2338 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2339 `ideograph-daikanwa'.
2341 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2342 (Vcharset_ucs_bmp): Likewise.
2343 (Vcharset_mojikyo): Add new extern variable definition.
2344 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2345 (Vcharset_latin_iso8859_3): Likewise.
2346 (Vcharset_latin_iso8859_4): Likewise.
2347 (Vcharset_latin_iso8859_9): Likewise.
2348 (Vcharset_latin_viscii_lower): Likewise.
2349 (Vcharset_latin_viscii_upper): Likewise.
2350 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2351 `mojikyo' code-point is used to decode.
2352 (encode_char_2): New function [to convert `mojikyo' code-point to
2353 Mojikyo font encoding].
2354 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2355 (breakup_char_1): Likewise.
2356 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2358 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2360 * text-coding.c (Fmake_coding_system): Add document about
2361 `disable-composition' property.
2363 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2365 * text-coding.c (Qdisable_composition): New variable; delete
2367 (Fmake_coding_system): Add new property `disable-composite';
2368 delete property `composite'.
2369 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2370 instead of `!CODING_SYSTEM_COMPOSITE'.
2371 (syms_of_file_coding): Add new symbol `disable-composition';
2372 delete symbol `composite'.
2374 * file-coding.h (struct Lisp_Coding_System): Add
2375 `disable_composition'; delete `enable_composition'.
2376 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2377 `CODING_SYSTEM_COMPOSITE'.
2378 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2379 `XCODING_SYSTEM_COMPOSITE'.
2381 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2383 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2386 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2388 * text-coding.c (Qcomposite): New variable.
2389 (Fmake_coding_system): Add new property `composite'.
2390 (struct decoding_stream): Add `combined_char_count',
2391 `combined_chars' and `combining_table' in UTF-2000.
2392 (COMPOSE_FLUSH_CHARS): New macro.
2393 (COMPOSE_ADD_CHAR): New macro.
2394 (reset_decoding_stream): Reset `str->combined_char_count' and
2395 `str->combining_table' in UTF-2000.
2396 (decode_coding_iso2022): Modify for character-decomposition.
2397 (syms_of_file_coding): Add new symbol `composite'.
2399 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2401 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2402 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2403 of `Vcharacter_composition_table' if `->decomposition' property
2405 (Qlatin_tcvn5712): New variable.
2406 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2407 (complex_vars_of_mule_charset): Add new coded-charset
2410 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2412 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2414 * file-coding.h (struct Lisp_Coding_System): Add
2415 `enable_composition'.
2416 (CODING_SYSTEM_COMPOSITE): New macro.
2417 (XCODING_SYSTEM_COMPOSITE): New macro.
2419 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2421 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2423 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2425 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2426 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2428 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2430 * mule-charset.c (Vcharset_mojikyo): New variable.
2431 (Fdefine_char): Don't use coded-charset which does not have
2432 non-builtin character range to allocate character-id.
2433 (Qmojikyo): New variable.
2434 (syms_of_mule_charset): Add new symbol `mojikyo'.
2435 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2437 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2438 (LEADING_BYTE_MOJIKYO): New macro.
2439 (MIN_CHAR_MOJIKYO): New macro.
2440 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2441 (MAX_CHAR_MOJIKYO): New macro.
2443 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2445 * mule-charset.c (remove_char_attribute): Fixed.
2447 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2449 * mule-charset.c (remove_char_attribute): New function.
2450 (Fremove_char_attribute): New function.
2451 (encode_builtin_char_1): Comment out builtin-support for
2452 greek-iso8859-7 and cyrillic-iso8859-5.
2453 (Fdecode_char): Check `code' is an integer.
2454 (syms_of_mule_charset): Add `remove-char-attribute'.
2455 (MIN_CHAR_GREEK): Deleted.
2456 (MAX_CHAR_GREEK): Likewise.
2457 (MIN_CHAR_CYRILLIC): Likewise.
2458 (MAX_CHAR_CYRILLIC): Likewise.
2459 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2460 MAX_CHAR_GREEK for `greek-iso8859-7'.
2462 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2463 (MAX_CHAR_GREEK): Likewise.
2464 (MIN_CHAR_CYRILLIC): Likewise.
2465 (MAX_CHAR_CYRILLIC): Likewise.
2467 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2469 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2470 format is used without `ucs' property.
2471 (Fdecode_char): Fix problem with GR representation.
2472 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2473 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2475 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2477 * mule-charset.c (make_builtin_char): New function.
2478 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2479 (Fset_charset_mapping_table): Modify for new representation of
2481 (Fdecode_char): New function.
2482 (syms_of_mule_charset): Add new builtin function `decode-char' in
2485 * char-ucs.h (make_builtin_char): New prototype.
2486 (DECODE_CHAR): New inline function.
2487 (MAKE_CHAR): Use `DECODE_CHAR'.
2489 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2491 * text-coding.c (parse_charset_conversion_specs): Use
2492 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2494 (iso2022_designate): Likewise.
2496 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2497 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2499 * mule-charset.c (Vcharset_ucs): New variable.
2500 (print_charset): Change design; use `CHARSET_CHARS' and
2501 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2502 (make_charset): Change signature to specify `chars' and
2503 `dimension' instead of `type'.
2504 (range_charset_code_point): Modify for 256^n-set.
2505 (encode_builtin_char_1): Encode as `ucs' in default.
2506 (Fmake_charset): Modify for `make_charset'.
2507 (Fmake_reverse_direction_charset): Likewise.
2508 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2510 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2513 * char-ucs.h (Vcharset_ucs): New variable.
2514 (LEADING_BYTE_UCS): New macro.
2515 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2516 and `chars' to `unsigned short' from `unsigned int'.
2517 (CHARSET_TYPE): Deleted.
2518 (XCHARSET_TYPE): Deleted.
2520 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2522 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2524 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2525 (ENCODE_CHAR): New macro.
2527 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2529 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2530 to 0.14 (Kawachi-Katakami).
2532 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2534 * text-coding.c (char_encode_shift_jis): Modify for
2535 `charset_code_point'.
2536 (char_encode_iso2022): Likewise.
2538 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2539 (integer) instead of list of <Lisp_Object>s (integers) as the
2540 format of code-point of a coded-charset.
2541 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2542 (encode_builtin_char_1): New function; delete
2543 `split_builtin_char'.
2544 (charset_code_point): Return <int> instead of <Lisp_Object>.
2545 (Fsplit_char): Don't use `SPLIT_CHAR'.
2547 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2548 prototype for `split_builtin_char'.
2549 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2550 (charset_code_point): Likewise.
2551 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2552 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2554 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2556 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2557 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2559 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2561 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2563 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2564 (MAX_CHAR_OBS_94x94): Deleted.
2566 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2568 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2570 * char-ucs.h (MAX_CHAR_BMP): New macro.
2572 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2574 * text-coding.c: Sync with r21-2-24.
2576 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2578 * file-coding.c: Modify for UTF-2000.
2580 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2582 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2585 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2587 * mule-charset.c (split_builtin_char): Delete builtin support for
2588 `katakana-jisx0201'.
2589 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2590 BMP area in builtin representation.
2592 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2593 `Vcharset_katakana_jisx0201'.
2595 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2597 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2598 (Qisolated): New variable.
2599 (Qinitial): New variable.
2600 (Qmedial): New variable.
2601 (Qfinal): New variable.
2602 (Qvertical): New variable.
2603 (Qsmall): New variable.
2604 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2605 `Qvertical' and `Qsmall'.
2606 (Qmojikyo_pj_[1 .. 21]): New variable.
2607 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2608 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2609 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2612 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2614 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2615 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2616 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2618 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2620 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2621 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2623 (Qjapanese_jisx0208_1990): New variable.
2624 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2625 (complex_vars_of_mule_charset): Add new coded-charset
2626 `japanese-jisx0208-1990'.
2628 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2629 (MIN_CHAR_JIS_X0208_1990): New macro.
2630 (MAX_CHAR_JIS_X0208_1990): New macro.
2632 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2634 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2635 coded-charset is not found.
2637 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2639 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2640 (Fdefine_char): Use `Fmake_char'.
2642 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2644 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2645 (Vcharset_hiragana_jisx0208): Deleted.
2646 (Vcharset_katakana_jisx0208): Deleted.
2647 (Qideograph_daikanwa): New variable.
2648 (Qhiragana_jisx0208): Deleted.
2649 (Qkatakana_jisx0208): Deleted.
2650 (split_builtin_char): Split `ideograph-daikanwa'.
2651 (Fsplit_char): New implementation for UTF-2000.
2652 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2653 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2654 (complex_vars_of_mule_charset): Add new coded-charset
2655 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2656 `katakana-jisx0208'.
2658 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2659 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2660 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2661 (MIN_CHAR_DAIKANWA): New macro.
2662 (MAX_CHAR_DAIKANWA): New macro.
2664 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2666 * data.c (Fstring_to_number): Don't recognize floating point if
2669 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2671 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2673 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2675 * mule-charset.c (Qsquare): New variable.
2676 (to_char_code): Add `Qsquare'.
2677 (syms_of_mule_charset): Add new symbol `square'.
2679 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2681 * mule-charset.c (Qcircle): New variable.
2682 (to_char_code): Add `Qcircle'.
2683 (syms_of_mule_charset): Add new symbol `circle'.
2685 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2687 * mule-charset.c (Qfont): New variable.
2688 (to_char_code): Add `Qfont'.
2689 (syms_of_mule_charset): Add new symbol `font'.
2691 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2693 * mule-charset.c (Qsub): New variable.
2694 (to_char_code): Add `Qsub'.
2695 (syms_of_mule_charset): Add new symbol `sub'.
2697 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2699 * mule-charset.c (Fput_char_attribute): Convert each element of
2700 VALUE to GL position if ATTRIBUTE is a GR-set,
2702 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2704 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2705 coded-charset is a GR-set.
2707 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2709 * mule-charset.c (Fput_char_attribute): Check each element of
2710 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2712 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2714 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2716 (Qethiopic_ucs): New variable in UTF-2000.
2717 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2718 (complex_vars_of_mule_charset): Add new coded-charset
2719 `ethiopic-ucs' in UTF-2000.
2721 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2722 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2724 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2726 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2728 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2730 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2733 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2735 * mule-charset.c (Vcharacter_variant_table): New variable.
2736 (Q_ucs): New variable.
2737 (Fchar_variants): New function.
2738 (Fput_char_attribute): Register `->ucs' value to
2739 `Vcharacter_variant_table'.
2740 (syms_of_mule_charset): Add new function `char-variants' and new
2742 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2744 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2746 * mule-charset.c (get_char_code_table): Allow negative character
2748 (put_char_code_table): Likewise.
2749 (Vcharacter_composition_table): New variable.
2750 (Q_decomposition): New variable.
2751 (Qwide): New variable.
2752 (Qnarrow): New variable.
2753 (Qcompat): New variable.
2754 (QnoBreak): New variable.
2755 (Qsuper): New variable.
2756 (Qfraction): New variable.
2757 (to_char_code): New function.
2758 (Fget_composite_char): New function.
2759 (Fput_char_attribute): Register `->decomposition' value to
2760 `Vcharacter_composition_table'.
2761 (syms_of_mule_charset): Add new function `get-composite-char', new
2762 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2763 `super' and `fraction'.
2764 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2766 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2768 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2769 character; copy the return value.
2771 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2773 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2775 * mule-charset.c (range_charset_code_point): Must use make_int.
2776 (split_builtin_char): New function.
2778 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2780 * mule-charset.c (char_byte_table): Change name from
2781 "char-code-table" to "char-byte-table".
2782 (mark_char_code_table): New function.
2783 (char_code_table_equal): New function.
2784 (char_code_table_hash): New function.
2785 (char_code_table_description): New constant.
2786 (char_code_table): New type.
2787 (make_char_code_table): New function.
2788 (copy_char_code_table): New function.
2789 (get_char_code_table): Modify for `char_code_table' type.
2790 (put_char_code_table): Likewise.
2791 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2794 * char-ucs.h (char_code_table): New type.
2795 (XCHAR_CODE_TABLE): New macro.
2796 (XSETCHAR_CODE_TABLE): New macro.
2797 (CHAR_CODE_TABLE_P): New macro.
2798 (GC_CHAR_CODE_TABLE_P): New macro.
2799 (struct Lisp_Char_Code_Table): New structure.
2801 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2803 * mule-charset.c (Fmake_charset): Setup byte_offset for
2806 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2808 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2811 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2813 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2816 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2818 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2819 charset, it is regarded as a charset.
2820 (put_char_attribute): New function in UTF-2000.
2821 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2822 charset, mapping-table of the charset is modified.
2823 (Fdefine_char): New function in UTF-2000.
2824 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2825 `Fput_char_attribute'.
2826 (syms_of_mule_charset): Add new function `define-char' and new
2827 symbol `ucs' in UTF-2000.
2828 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2830 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2832 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2833 non-UTF-2000 configuration.
2835 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2837 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2838 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2840 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2842 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2843 (Fset_charset_mapping_table): Likewise.
2845 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2846 (CHARSET_ENCODING_TABLE): Delete.
2847 (XCHARSET_ENCODING_TABLE): Delete.
2848 (charset_code_point): New interface.
2850 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2852 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2853 instead of `charset_get_byte1' and `charset_get_byte2'.
2855 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2856 (charset_get_byte2): Deleted.
2858 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2860 * char-ucs.h (SPLIT_CHAR): New inline function.
2861 (breakup_char_1): Use `SPLIT_CHAR'.
2863 * mule-charset.c (range_charset_code_point): New function.
2864 (charset_code_point): New function.
2866 * char-ucs.h (range_charset_code_point): New interface.
2867 (breakup_char_1): Use `range_charset_code_point'.
2869 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2871 * mule-charset.c (Fmake_charset): Delete unused local variable
2874 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2875 (breakup_char_1): Find a charset and code-point in
2876 `Vcharacter_attribute_table'.
2878 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2880 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2883 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2885 * mule-charset.c (Vcharacter_attribute_table): New variable.
2886 (Fchar_attribute_alist): New function.
2887 (Fget_char_attribute): New function.
2888 (Fput_char_attribute): New function.
2889 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2891 (syms_of_mule_charset): Add new function `char-attribute-alist',
2892 `get-char-attribute' and `put-char-attribute'.
2893 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2895 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
2897 * mule-charset.c (Fmake_charset): Just use
2898 `get_unallocated_leading_byte'.
2900 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2901 sets; don't use final-byte based number for private sets.
2903 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2905 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2908 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2910 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2913 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2915 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2916 of `CHAR_LEADING_BYTE' in UTF-2000.
2918 * insdel.c (find_charsets_in_bufbyte_string): Use
2919 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2920 (find_charsets_in_emchar_string): Likewise.
2922 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2923 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2925 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2926 (CHAR_CHARSET_ID): New macro.
2928 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2930 * chartab.c (get_char_table): Don't use type `Charset_ID' for
2931 charset-id - MIN_LEADING_BYTE.
2932 (put_char_table): Likewise.
2934 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2936 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2937 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2938 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2939 (CHARSET_ID_OFFSET): New macro.
2940 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2941 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2942 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2943 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2945 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2947 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2948 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2949 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2950 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2951 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2953 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2955 * mule-charset.c (next_allocated_leading_byte): New variable in
2957 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2958 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2959 (get_unallocated_leading_byte): Simply use
2960 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2961 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2964 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2965 (MAX_LEADING_BYTE_PRIVATE): New macro.
2966 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2967 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2969 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2971 * mule-charset.c (Fmake_charset): Allocate final-byte based
2972 charset-id for 94-set, 96-set and 94x94-set.
2974 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2976 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2978 (Fmake_charset): Likewise.
2979 (complex_vars_of_mule_charset): Modify the font registry of
2980 `ucs-bmp' not to match `Ethiopic-Unicode'.
2982 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2984 * mule-charset.c (complex_vars_of_mule_charset): Add font
2985 registory of `ucs-bmp'.
2987 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2989 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2990 coded-charsets in `default-coded-charset-priority-list' when
2991 breaking up a character.
2993 * mule-charset.c (Vcharset_latin_viscii): New variable.
2994 (Qlatin_viscii): New variable.
2995 (make_charset): Don't use `decoding_table'.
2996 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2998 (Fset_charset_mapping_table): New implementation.
2999 (syms_of_mule_charset): Add new symbol `latin-viscii'.
3000 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3001 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3002 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3003 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3004 charset `latin_viscii'.
3006 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3007 (CHARSET_TYPE_94X94): Change to 1 from 2.
3008 (CHARSET_TYPE_96): Change to 2 from 1.
3009 (CHARSET_TYPE_128): New macro.
3010 (CHARSET_TYPE_128X128): Change to 5 from 4.
3011 (CHARSET_TYPE_256): New macro.
3012 (CHARSET_TYPE_256X256): Change to 7 from 5.
3013 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3015 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3017 * text-coding.c (char_encode_shift_jis): Refer
3018 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3019 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3021 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3022 (char_byte_table_equal): New function in UTF-2000.
3023 (char_byte_table_hash): New function in UTF-2000.
3024 (char_byte_table_description): New constant in UTF-2000.
3025 (char_byte_table): New type in UTF-2000.
3026 (make_char_byte_table): New function in UTF-2000.
3027 (copy_char_byte_table): New function in UTF-2000.
3028 (make_char_code_table): New macro in UTF-2000.
3029 (get_char_code_table): New function in UTF-2000.
3030 (put_char_code_table): New function in UTF-2000.
3031 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3032 (charset_description): Add setting in UTF-2000.
3033 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3034 `CHARSET_TO_BYTE1_TABLE(cs)'.
3035 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3036 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3037 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3038 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3039 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3040 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3041 `CHARSET_TO_BYTE2_TABLE(cs)'.
3043 * char-ucs.h (char_byte_table): New type.
3044 (XCHAR_BYTE_TABLE): New macro.
3045 (XSETCHAR_BYTE_TABLE): New macro.
3046 (CHAR_BYTE_TABLE_P): New macro.
3047 (GC_CHAR_BYTE_TABLE_P): New macro.
3048 (struct Lisp_Char_Byte_Table): New structure.
3049 (get_char_code_table): New interface.
3050 (Emchar_to_byte_table): Deleted.
3051 (get_byte_from_character_table): Deleted.
3052 (struct Lisp_Charset): Add `encoding_table'; delete
3053 `to_byte1_table' and `to_byte2_table'.
3054 (CHARSET_ENCODING_TABLE): New macro.
3055 (CHARSET_TO_BYTE1_TABLE): Deleted.
3056 (CHARSET_TO_BYTE2_TABLE): Deleted.
3057 (XCHARSET_ENCODING_TABLE): New macro.
3058 (XCHARSET_TO_BYTE1_TABLE): Deleted.
3059 (XCHARSET_TO_BYTE2_TABLE): Deleted.
3061 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3063 * mule-charset.c (syms_of_mule_charset): Delete charset alias
3064 `vietnamese-viscii-*'.
3066 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3068 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3069 (Qvietnamese_viscii_upper): New variable.
3070 (Fdefine_charset_alias): New function.
3071 (syms_of_mule_charset): Add new function `define-charset-alias'.
3072 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3073 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3076 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
3078 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3079 (MAX_CHAR_OBS_94x94): New macro.
3080 (breakup_char_1): Support obsolete XEmacs-UCS private code space
3083 * mule-charset.c (put_byte_from_character_table): Change unit size
3085 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3087 (Fmake_reverse_direction_charset): Modify dummy argument of
3088 `make_charset' for non-UTF-2000 environment.
3090 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3092 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3094 * mule-charset.c (destroy_byte_from_character_table): New macro.
3095 (latin_jisx0201_to_ucs): Deleted.
3096 (latin_iso8859_2_to_ucs): Deleted.
3097 (latin_iso8859_3_to_ucs): Deleted.
3098 (latin_iso8859_4_to_ucs): Deleted.
3099 (latin_iso8859_9_to_ucs): Deleted.
3100 (latin_viscii_lower_to_ucs): Deleted.
3101 (latin_viscii_upper_to_ucs): Deleted.
3102 (mark_charset): Mark `cs->decoding_table'.
3103 (Fcharset_mapping_table): Fix DOC-string.
3104 (Fset_charset_mapping_table): New function.
3105 (syms_of_mule_charset): Add nwe function
3106 `set-charset-mapping-table'.
3107 (complex_vars_of_mule_charset): Don't setup and use
3110 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
3112 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3115 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
3117 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3118 (Vcharset_katakana_jisx0208): New variable.
3119 (Qhiragana_jisx0208): New variable.
3120 (Qkatakana_jisx0208): New variable.
3121 (make_charset): Add new argument `byte_offset'.
3122 (charset_get_byte1): Modify for new coded-charset definition; use
3123 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3124 `XCHARSET_BYTE_OFFSET'.
3125 (Fmake_charset): Modify for `make_charset'.
3126 (Fmake_reverse_direction_charset): Likewise.
3127 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3128 `katakana-jisx0208'.
3129 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3130 `.' in font registry of charset `katakana-jisx0201',
3131 `latin-jisx0201', `vietnamese-viscii-lower' and
3132 `vietnamese-viscii-upper'; modify DOC-string of charset
3133 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3134 registry of charset `japanese-jisx0208' not to use font for JIS
3135 X0208:1990; add new charset `hiragana-jisx0208' and
3136 `katakana-jisx0208'.
3138 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3139 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3140 (struct Lisp_Charset): Add `byte_offset'.
3141 (CHARSET_BYTE_OFFSET): New macro.
3142 (XCHARSET_UCS_MIN): New macro.
3143 (XCHARSET_UCS_MAX): New macro.
3144 (XCHARSET_CODE_OFFSET): New macro.
3145 (XCHARSET_BYTE_OFFSET): New macro.
3146 (MIN_CHAR_HIRAGANA): New macro.
3147 (MAX_CHAR_HIRAGANA): New macro.
3148 (MIN_CHAR_KATAKANA): New macro.
3149 (MAX_CHAR_KATAKANA): New macro.
3150 (MAKE_CHAR): Modify for new coded-charset definition; use
3151 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3152 `XCHARSET_BYTE_OFFSET'.
3154 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3156 * mule-charset.c (CHAR96): Deleted.
3157 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3159 (latin_iso8859_2_to_ucs): Likewise.
3160 (latin_iso8859_3_to_ucs): Likewise.
3161 (latin_iso8859_4_to_ucs): Likewise.
3162 (latin_iso8859_9_to_ucs): Likewise.
3163 (latin_viscii_lower_to_ucs): Likewise.
3164 (latin_viscii_upper_to_ucs): Likewise.
3165 (latin_tcvn5712_to_ucs): Commented out.
3166 (make_charset): Change type of argument `decoding_table' from
3167 <Emchar*> to <Lisp_Object> [vector of characters].
3168 (Fmake_charset): Modify for `make_charset'.
3169 (Fmake_reverse_direction_charset): Likewise.
3170 (Fcharset_mapping_table): New function in UTF-2000.
3171 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3173 (complex_vars_of_mule_charset): Modify for type change of
3174 `*_to_ucs'; modify for `make_charset'.
3176 * char-ucs.h (struct Lisp_Charset): Change type of
3177 `decoding_table' from <Emchar*> to <Lisp_Object>.
3178 (MAKE_CHAR): Modify for new specification of `decoding_table'.
3180 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3182 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3183 error with non-UTF-2000-Mule.
3185 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
3187 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3189 (Vcharset_chinese_cns11643_4): Likewise.
3190 (Vcharset_chinese_cns11643_5): Likewise.
3191 (Vcharset_chinese_cns11643_6): Likewise.
3192 (Vcharset_chinese_cns11643_7): Likewise.
3193 (Qchinese_cns11643_3): Likewise.
3194 (Qchinese_cns11643_4): Likewise.
3195 (Qchinese_cns11643_5): Likewise.
3196 (Qchinese_cns11643_6): Likewise.
3197 (Qchinese_cns11643_7): Likewise.
3198 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3199 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3200 and `chinese-cns11643-7' to lisp/mule/chinese.el.
3201 (complex_vars_of_mule_charset): Likewise.
3203 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3205 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3207 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3208 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3210 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3212 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3214 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3215 (breakup_char_1): Likewise.
3217 * text-coding.c (char_encode_iso2022): Keep designated charsets if
3218 one of them includes the specified character.
3220 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3222 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3224 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3226 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3228 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3230 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3231 definition for non-UTF-2000 Mule.
3232 (latin_iso8859_3_to_ucs): Likewise.
3233 (latin_iso8859_4_to_ucs): Likewise.
3234 (latin_iso8859_9_to_ucs): Likewise.
3235 (latin_jisx0201_to_ucs): Likewise.
3236 (MIN_CHAR_THAI): Likewise.
3237 (MAX_CHAR_THAI): Likewise.
3238 (MIN_CHAR_GREEK): Likewise.
3239 (MAX_CHAR_GREEK): Likewise.
3240 (MIN_CHAR_HEBREW): Likewise.
3241 (MAX_CHAR_HEBREW): Likewise.
3242 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3243 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3244 (MIN_CHAR_CYRILLIC): Likewise.
3245 (MAX_CHAR_CYRILLIC): Likewise.
3247 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3249 * char-ucs.h (breakup_char_1): Use
3250 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3251 thai-tis620 and katakana-jisx0201 area.
3253 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3255 * char-ucs.h (breakup_char_1): Use
3256 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3259 * text-coding.c (reset_encoding_stream): Fixed.
3260 (char_encode_ucs4): Delete `& 255'.
3262 * char-ucs.h (breakup_char_1): Use
3263 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3265 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3267 * file-coding.c (Fmake_coding_system): Don't set up
3268 `codesys->fixed.size'.
3269 (encode_coding_no_conversion): Don't refer
3270 `str->codesys->fixed.size'.
3272 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3274 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3275 (latin_a_char_to_byte1): Deleted.
3276 (latin_a_char_to_byte2): Deleted.
3278 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3280 * mule-charset.c (make_charset): Add new argument `ucs_min',
3281 `ucs_max' and `code_offset'.
3282 (charset_get_byte1): New implementation [delete specific charset
3283 depended implementations].
3284 (Fmake_charset): Modify for `make_charset'.
3285 (Fmake_reverse_direction_charset): Likewise.
3286 (complex_vars_of_mule_charset): Likewise.
3288 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3290 (CHARSET_UCS_MIN): New macro.
3291 (CHARSET_UCS_MAX): New macro.
3292 (CHARSET_CODE_OFFSET): New macro.
3293 (MAKE_CHAR): Delete charset depended definitions [except
3296 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3298 * char-ucs.h (breakup_char_1): Use
3299 `Vdefault_coded_charset_priority_list' for C0-Controls,
3300 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3302 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3304 * char-ucs.h (charset_get_byte1): New function.
3305 (XCHARSET_GET_BYTE1): Deleted.
3306 (charset_get_byte2): New function.
3307 (XCHARSET_GET_BYTE2): Deleted.
3308 (Vdefault_coded_charset_priority_list): New external variable.
3309 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3310 `Vdefault_preferred_coded_charset_list'.
3312 * mule-charset.c (charset_get_byte1): New function.
3313 (charset_get_byte2): New function.
3314 (Vdefault_coded_charset_priority_list): New variable.
3315 (vars_of_mule_charset): Add new variable
3316 `default-coded-charset-priority-list'.
3318 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3320 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3321 (XCHARSET_GET_BYTE2): New inline function.
3322 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3323 `XCHARSET_GET_BYTE2'.
3325 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3327 * mule-charset.c (make_charset): Initialize
3328 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3329 NULL if table is not defined.
3331 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3333 * text-coding.c (char_encode_shift_jis): Use
3334 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3335 `ucs_to_latin_jisx0201'.
3337 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3338 (ucs_to_latin_iso8859_2): Deleted.
3339 (ucs_to_latin_iso8859_3): Deleted.
3340 (ucs_to_latin_iso8859_4): Deleted.
3341 (ucs_to_latin_iso8859_9): Deleted.
3342 (ucs_to_latin_viscii_lower): Deleted.
3343 (ucs_to_latin_viscii_upper): Deleted.
3344 (ucs_to_latin_tcvn5712): Deleted.
3345 (make_charset): Add new argument `decoding_table'; set up
3346 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3347 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3348 `decoding_table' is defined in UTF-2000.
3349 (Fmake_charset): Modify for `make_charset'.
3350 (Fmake_reverse_direction_charset): Likewise.
3351 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3352 and `GENERATE_96_SET'.
3354 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3355 (ucs_to_latin_jisx0201): Deleted.
3356 (latin_iso8859_2_to_ucs): Deleted.
3357 (ucs_to_latin_iso8859_2): Deleted.
3358 (latin_iso8859_3_to_ucs): Deleted.
3359 (ucs_to_latin_iso8859_3): Deleted.
3360 (latin_iso8859_4_to_ucs): Deleted.
3361 (ucs_to_latin_iso8859_4): Deleted.
3362 (latin_iso8859_9_to_ucs): Deleted.
3363 (ucs_to_latin_iso8859_9): Deleted.
3364 (latin_viscii_lower_to_ucs): Deleted.
3365 (ucs_to_latin_viscii_lower): Deleted.
3366 (latin_viscii_upper_to_ucs): Deleted.
3367 (ucs_to_latin_viscii_upper): Deleted.
3368 (struct Lisp_Charset): Renamed `encoding_table' to
3369 `to_byte1_table'; add `to_byte2_table'.
3370 (CHARSET_DECODING_TABLE): New macro.
3371 (CHARSET_TO_BYTE1_TABLE): New macro.
3372 (CHARSET_TO_BYTE2_TABLE): New macro.
3373 (XCHARSET_DECODING_TABLE): New macro.
3374 (XCHARSET_TO_BYTE1_TABLE): New macro.
3375 (XCHARSET_TO_BYTE2_TABLE): New macro.
3376 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3378 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3379 don't use `ucs_to_*' tables.
3381 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3383 * text-coding.c (Fmake_coding_system): Don't set up
3384 `codesys->fixed.size'.
3385 (encode_coding_no_conversion): Use `if' instead of `switch'.
3387 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3389 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3391 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3392 (Fmake_charset): Modify for `make_charset'.
3393 (Fmake_reverse_direction_charset): Likewise.
3394 (complex_vars_of_mule_charset): Likewise.
3396 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3398 * text-coding.c (char_encode_shift_jis): Use table
3399 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3401 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3403 * text-coding.c (text_encode_generic): Use `if' instead of
3405 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3408 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3410 * text-coding.c (encode_coding_sjis): Deleted.
3411 (char_encode_shift_jis): New function.
3412 (char_finish_shift_jis): New function.
3413 (reset_encoding_stream): Set up `encode_char' and `finish' for
3414 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3415 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3416 (char_encode_utf8): Treat `eol_type'.
3418 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3420 * file-coding.c (decode_coding_iso2022): Use
3421 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3423 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3425 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3428 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3430 * char-lb.h (CHAR_COLUMNS): New macro.
3432 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3434 * text-coding.c (char_encode_ucs4): New function.
3435 (char_finish_ucs4): New function.
3436 (encode_coding_ucs4): Deleted.
3437 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3438 (text_encode_generic): Delete local variable `charset' and `half'.
3439 (ucs_to_mule_table): Deleted.
3440 (mule_to_ucs_table): Deleted.
3441 (Fset_ucs_char): Deleted.
3442 (ucs_to_char): Deleted.
3443 (Fucs_char): Deleted.
3444 (Fset_char_ucs): Deleted.
3445 (Fchar_ucs): Deleted.
3446 (decode_ucs4): Deleted.
3447 (mule_char_to_ucs4): Deleted.
3448 (encode_ucs4): Deleted.
3449 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3450 (decode_coding_utf8): Likewise.
3451 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3452 (char_encode_iso2022): Fixed.
3453 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3454 `Fset_char_ucs' and `Fchar_ucs'.
3455 (complex_vars_of_file_coding): Don't initialize
3456 `ucs_to_mule_table'.
3458 * objects-tty.c (tty_initialize_font_instance): Don't use
3461 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3464 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3465 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3467 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3468 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3469 (emchar_string_displayed_columns): Likewise.
3471 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3472 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3473 (string_column_at_point): Likewise.
3474 (Fmove_to_column): Likewise.
3476 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3477 `encoding_table' and `decoding_table'.
3478 (CHARSET_REP_BYTES): Deleted.
3479 (XCHARSET_REP_BYTES): Deleted.
3480 (XCHARSET_COLUMNS): Deleted.
3481 (CHAR_COLUMNS): New macro.
3482 (lookup_composite_char): Deleted unconditionally.
3483 (composite_char_string): Likewise.
3485 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3487 * char-ucs.h (Emchar_to_byte_table): New type.
3488 (get_byte_from_character_table): New function interface.
3489 (Vcharset_latin_jisx0201): New variable.
3490 (latin_jisx0201_to_ucs): New variable.
3491 (ucs_to_latin_jisx0201): New variable.
3492 (Vcharset_latin_iso8859_2): New variable.
3493 (latin_iso8859_2_to_ucs): New variable.
3494 (ucs_to_latin_iso8859_2): New variable.
3495 (Vcharset_latin_iso8859_3): New variable.
3496 (latin_iso8859_3_to_ucs): New variable.
3497 (ucs_to_latin_iso8859_3): New variable.
3498 (Vcharset_latin_iso8859_4): New variable.
3499 (latin_iso8859_4_to_ucs): New variable.
3500 (ucs_to_latin_iso8859_4): New variable.
3501 (Vcharset_latin_iso8859_9): New variable.
3502 (latin_iso8859_9_to_ucs): New variable.
3503 (ucs_to_latin_iso8859_9): New variable.
3504 (Vcharset_latin_viscii_lower): New variable.
3505 (latin_viscii_lower_to_ucs): New variable.
3506 (ucs_to_latin_viscii_lower): New variable.
3507 (Vcharset_latin_viscii_upper): New variable.
3508 (latin_viscii_upper_to_ucs): New variable.
3509 (ucs_to_latin_viscii_upper): New variable.
3510 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3511 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3512 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3513 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3514 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3515 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3516 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3517 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3518 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3519 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3521 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3522 (Vcharset_latin_viscii_upper): New variable.
3523 (make_byte_from_character_table): New function.
3524 (put_byte_from_character_table): New function.
3525 (get_byte_from_character_table): New function.
3526 (CHAR96): New macro.
3527 (ucs_to_latin_jisx0201): New variable.
3528 (latin_jisx0201_to_ucs): New variable.
3529 (ucs_to_latin_iso8859_2): New variable.
3530 (latin_iso8859_2_to_ucs): New variable.
3531 (ucs_to_latin_iso8859_3): New variable.
3532 (latin_iso8859_3_to_ucs): New variable.
3533 (ucs_to_latin_iso8859_4): New variable.
3534 (latin_iso8859_4_to_ucs): New variable.
3535 (ucs_to_latin_iso8859_9): New variable.
3536 (latin_iso8859_9_to_ucs): New variable.
3537 (ucs_to_latin_viscii_lower): New variable.
3538 (latin_viscii_lower_to_ucs): New variable.
3539 (ucs_to_latin_viscii_upper): New variable.
3540 (latin_viscii_upper_to_ucs): New variable.
3541 (ucs_to_latin_tcvn5712): New variable.
3542 (latin_tcvn5712_to_ucs): New variable.
3543 (Qlatin_viscii_lower): New variable.
3544 (Qlatin_viscii_upper): New variable.
3545 (syms_of_mule_charset): Set up new symbol
3546 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3547 (complex_vars_of_mule_charset): Set up new charset
3548 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3549 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3550 `ucs_to_<CHARSET>' tables.
3552 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3554 * text-coding.c: New file.
3556 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3558 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3560 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3561 (MAKE_CHAR): Modify for `ucs-bmp'.
3562 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3563 non-MULE characters of BMP.
3565 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3567 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3570 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3573 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3574 - Include character.h for `CHAR_ASCII_P'.
3576 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3578 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3579 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3581 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3582 (BYTE_C0_P): Likewise.
3583 (BYTE_C1_P): Likewise.
3584 (Lstream_get_emchar_1): Likewise.
3585 (Lstream_fput_emchar): Likewise.
3586 (Lstream_funget_emchar): Likewise.
3587 (copy_internal_to_external): Likewise.
3588 (copy_external_to_internal): Likewise.
3590 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3591 (BYTE_C0_P): Likewise.
3592 (BYTE_C1_P): Likewise.
3593 (Lstream_get_emchar_1): Likewise.
3594 (Lstream_fput_emchar): Likewise.
3595 (Lstream_funget_emchar): Likewise.
3596 (copy_internal_to_external): Likewise.
3597 (copy_external_to_internal): Likewise.
3599 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3600 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3602 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3603 (BYTE_ASCII_P): Moved to mb-1byte.h.
3605 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3607 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3609 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3610 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3611 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3612 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3613 (VALIDATE_CHARPTR_FORWARD): Likewise.
3614 (simple_charptr_emchar): Moved to mb-multibyte.h.
3615 (simple_set_charptr_emchar): Likewise.
3616 (simple_charptr_copy_char): Likewise.
3617 (non_ascii_charptr_emchar): Likewise.
3618 (non_ascii_set_charptr_emchar): Likewise.
3619 (non_ascii_charptr_copy_char): Likewise.
3620 (charptr_emchar): Moved to mb-*byte.h.
3621 (set_charptr_emchar): Likewise.
3622 (charptr_copy_char): Likewise.
3624 * mb-1byte.h, mb-multibyte.h: New files.
3626 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3628 * mb-utf-8.h (MULTIBYTE): New macro.
3629 (MAX_EMCHAR_LEN): Moved from buffer.h.
3630 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3632 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3634 * mb-lb.h, multibyte.h: New files.
3636 * char-1byte.h (Charset_ID): Moved from buffer.h.
3637 (MIN_LEADING_BYTE): Likewise.
3638 (LEADING_BYTE_ASCII): Likewise.
3639 (NUM_LEADING_BYTES): Likewise.
3640 (CHARSETP): Likewise.
3641 (CHARSET_BY_LEADING_BYTE): Likewise.
3642 (XCHARSET_LEADING_BYTE): Likewise.
3643 (XCHARSET_GRAPHIC): Likewise.
3644 (XCHARSET_COLUMNS): Likewise.
3645 (XCHARSET_DIMENSION): Likewise.
3646 (CHAR_CHARSET): Likewise.
3647 (CHAR_LEADING_BYTE): Likewise.
3648 (BREAKUP_CHAR): Likewise.
3649 (Vcharset_ascii): Likewise.
3651 * buffer.h: Include multibyte.h unconditionally.
3652 (VALID_CHARPTR_P): Moved to multibyte.h.
3653 (ASSERT_VALID_CHARPTR): Likewise.
3654 (REAL_INC_CHARPTR): Likewise.
3655 (REAL_INC_CHARBYTIND): Likewise.
3656 (REAL_DEC_CHARPTR): Likewise.
3657 (INC_CHARPTR): Likewise.
3658 (INC_CHARBYTIND): Likewise.
3659 (DEC_CHARPTR): Likewise.
3660 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3661 (VALIDATE_CHARPTR_FORWARD): Likewise.
3662 (charptr_n_addr): Likewise.
3663 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3664 (simple_charptr_emchar): Moved to multibyte.h.
3665 (simple_set_charptr_emchar): Likewise.
3666 (simple_charptr_copy_char): Likewise.
3667 (non_ascii_charptr_emchar): Likewise.
3668 (non_ascii_set_charptr_emchar): Likewise.
3669 (non_ascii_charptr_copy_char): Likewise.
3670 (charptr_emchar): Likewise.
3671 (set_charptr_emchar): Likewise.
3672 (charptr_copy_char): Likewise.
3673 (charptr_emchar_n): Likewise.
3674 (Charset_ID): Moved to char-1byte.h.
3675 (Vcharset_ascii): Likewise.
3676 (CHAR_CHARSET): Likewise.
3677 (CHAR_LEADING_BYTE): Likewise.
3678 (LEADING_BYTE_ASCII): Likewise.
3679 (NUM_LEADING_BYTES): Likewise.
3680 (MIN_LEADING_BYTE): Likewise.
3681 (CHARSETP): Likewise.
3682 (CHARSET_BY_LEADING_BYTE): Likewise.
3683 (XCHARSET_LEADING_BYTE): Likewise.
3684 (XCHARSET_GRAPHIC): Likewise.
3685 (XCHARSET_COLUMNS): Likewise.
3686 (XCHARSET_DIMENSION): Likewise.
3687 (BREAKUP_CHAR): Likewise.
3689 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3691 * character.h: Add document about interface for characters.
3693 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3694 (MAKE_CHAR): Delete comment about
3695 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3696 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3697 (BREAKUP_CHAR): Modify name of arguments.
3698 (CHAR_CHARSET): Modify name of argument.
3700 * buffer.h: Delete document about Emchar accessors.
3702 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3704 * character.h (CHAR_INTP): Moved from buffer.h
3705 (CHAR_OR_CHAR_INTP): Likewise.
3706 (XCHAR_OR_CHAR_INT): Likewise.
3707 (CHECK_CHAR_COERCE_INT): Likewise.
3709 * buffer.h (CHAR_INTP): Moved to character.h
3710 (CHAR_OR_CHAR_INTP): Likewise.
3711 (XCHAR_OR_CHAR_INT): Likewise.
3712 (CHECK_CHAR_COERCE_INT): Likewise.
3714 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3717 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3718 - Include char-1byte.h, char-lb.h or char-ucs.h.
3720 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3722 * buffer.h: Include character unconditionally.
3723 (valid_char_p): Moved to char-*.h.
3724 (non_ascii_valid_char_p): Moved to char-lb.h.
3726 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3728 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3730 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3731 in UTF-2000 because it is not ported yet and not to use
3732 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3733 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3734 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3736 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3737 (CHAR_ASCII_P): Moved from character.h.
3739 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3740 (CHAR_ASCII_P): Likewise.
3741 (CHAR_FIELD1_MASK): Deleted.
3742 (CHAR_FIELD2_MASK): Deleted.
3743 (CHAR_FIELD3_MASK): Deleted.
3744 (MAX_CHAR_BASIC_LATIN): New macro.
3745 (CHAR_FIELD1): Deleted.
3746 (CHAR_FIELD2_INTERNAL): Deleted.
3747 (CHAR_FIELD3_INTERNAL): Deleted.
3748 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3749 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3750 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3751 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3752 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3753 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3754 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3755 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3756 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3757 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3758 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3759 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3760 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3761 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3762 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3763 (MIN_CHAR_COMPOSITION): Deleted.
3764 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3765 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3767 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
3769 * buffer.h: Include mb-utf-8.h in UTF-2000.
3771 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3773 * mb-utf-8.h: New file.
3775 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
3777 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3780 * mule-charset.h, buffer.h (Charset_ID): New type.
3782 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3784 * mule-canna.c (c2mu): Use `MAKE_CHAR',
3785 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3786 instead of `MULE_CHAR_PRIVATE_OFFSET',
3787 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3788 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3789 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3791 * character.h (Vcharset_japanese_jisx0212): New variable
3794 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3796 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3797 (charset_by_attributes): Delete array about direction.
3798 (latin_a_char_to_charset): New variable in UTF-2000.
3799 (latin_a_char_to_byte1): New variable in UTF-2000.
3800 (latin_a_char_to_byte2): New variable in UTF-2000.
3801 (Qucs_bmp): New variable.
3802 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3804 (next_allocated_2_byte_leading_byte): Likewise.
3805 (non_ascii_set_charptr_emchar): Likewise.
3806 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3807 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3808 `charset_by_attributes'.
3809 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3810 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3811 and `CHARSET_BY_LEADING_BYTE'.
3812 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3813 `utf-2000-version' to `vars_of_mule_charset'.
3814 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3815 define `leading-code-private-11' in UTF-2000; move setting of
3816 `utf-2000-version' from `syms_of_mule_charset'.
3817 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3820 * character.h (Charset_ID): New type.
3821 (LEADING_BYTE_UCS_BMP): New macro.
3822 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3823 (CHARSET_ID_OFFSET_94): New macro.
3824 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3825 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3826 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3828 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3829 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3830 (CHARSET_ID_OFFSET_96): New macro.
3831 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3832 CHARSET_ID_OFFSET_96 and final-byte.
3833 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3834 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3835 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3836 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3837 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3838 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3839 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3840 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3841 (LEADING_BYTE_THAI_TIS620): Likewise.
3842 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3843 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3844 (CHARSET_ID_OFFSET_94x94): New macro.
3845 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3846 CHARSET_ID_OFFSET_94x94 and final-byte.
3847 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3848 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3849 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3850 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3851 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3852 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3853 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3854 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3855 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3856 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3857 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3858 (CHARSET_TYPE_128X128): New macro.
3859 (CHARSET_TYPE_256X256): New macro.
3860 (XCHARSET_PRIVATE_P): Delete unconditionally.
3861 (charset_by_attributes): Delete array about direction.
3862 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3863 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3864 (MIN_CHAR_94): New macro.
3865 (MAX_CHAR_94): New macro.
3866 (MIN_CHAR_96): New macro.
3867 (MAX_CHAR_96): New macro.
3868 (MIN_CHAR_94x94): New macro.
3869 (MAX_CHAR_94x94): New macro.
3870 (MIN_CHAR_96x96): New macro.
3871 (MAX_CHAR_96x96): New macro.
3872 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3873 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3874 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3876 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3877 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3878 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3879 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3880 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3881 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3882 `XCHARSET_LEADING_BYTE' to make code-point.
3883 (latin_a_char_to_charset): New variable.
3884 (latin_a_char_to_byte1): New variable.
3885 (latin_a_char_to_byte2): New variable.
3886 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3887 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3888 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3890 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3891 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3892 (find_charsets_in_emchar_string): Likewise.
3893 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3895 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3897 (decode_coding_iso2022): Likewise.
3899 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3902 * redisplay.c (redisplay_text_width_emchar_string): Use
3903 `Charset_ID' instead of `unsigned char'.
3904 (redisplay_frame_text_width_string): Likewise.
3906 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3909 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3910 instead of `unsigned char'.
3911 (face_cachel_charset_font_metric_info): Likewise.
3913 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3914 (get_non_ascii_char_table_value): Likewise.
3915 (get_char_table): Likewise.
3916 (put_char_table): Likewise.
3917 (map_over_other_charset): Likewise.
3918 (map_char_table): Likewise.
3920 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3921 instead of `unsigned char'.
3923 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
3925 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3926 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3928 * mule-charset.c (leading_code_private_11): Don't define in
3931 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3932 in UTF-2000 because it is not ported yet and not to use
3933 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3935 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
3937 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3939 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3941 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3944 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3945 of unsigned char to store leading-byte.
3947 * chartab.c (get_non_ascii_char_table_value): Don't use
3948 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3950 * file-coding.c (encode_coding_big5): Delete bogus implementation
3953 * character.h (LEADING_BYTE_*): Delete definition for
3955 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3956 (LEADING_BYTE_PREFIX_P): Deleted.
3957 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3958 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3959 (BUFBYTE_LEADING_BYTE_P): Deleted.
3960 (CHARSET_PRIVATE_P): Deleted unconditionally.
3961 (rep_bytes_by_first_byte): Deleted unconditionally.
3962 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3963 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3964 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3965 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3966 (CHAR_FIELD2): Deleted.
3967 (CHAR_FIELD3): Deleted.
3968 (MAKE_CHAR): Delete definition for non-UTF-2000.
3969 (BREAKUP_CHAR_1_UNSAFE): Deleted.
3970 (breakup_char_1): New implementation.
3971 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3972 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3974 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3976 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3979 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3981 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3982 (CHARSET_PRIVATE_P): Likewise.
3983 (XCHARSET_PRIVATE_P): Likewise.
3984 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3986 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3988 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3990 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3992 * character.h (LEADING_BYTE_*): Changed in UTF2000.
3993 (NUM_LEADING_BYTES): Changed from 128 to 256.
3994 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3995 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3997 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3999 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4001 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4002 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4003 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4004 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4005 (Qchinese_cns11643_3): New variable in UTF2000.
4006 (Qchinese_cns11643_4): New variable in UTF2000.
4007 (Qchinese_cns11643_5): New variable in UTF2000.
4008 (Qchinese_cns11643_6): New variable in UTF2000.
4009 (Qchinese_cns11643_7): New variable in UTF2000.
4010 (syms_of_mule_charset): Define `chinese-cns11643-3',
4011 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4012 and `chinese-cns11643-7' in UTF2000.
4013 (vars_of_mule_charset): Initialize
4014 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4016 (complex_vars_of_mule_charset): Setup charset
4017 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4018 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4020 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4022 * mule-charset.c: Move setting for `leading-code-private-11' from
4023 `syms_of_mule_charset' to `vars_of_mule_charset'.
4025 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4027 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4028 and `NUM_LEADING_BYTES' in assert.
4030 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4032 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4034 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4035 `NUM_LEADING_BYTES' instead of 128.
4037 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
4039 * mule-charset.h (charset_by_leading_byte): Use
4040 `NUM_LEADING_BYTES' instead of 128.
4041 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4043 * mule-charset.c (charset_by_leading_byte): Use
4044 `NUM_LEADING_BYTES' instead of 128.
4045 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4047 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4050 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4052 * mule-charset.c (syms_of_mule_charset): Update to
4055 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4057 * file-coding.c (encode_coding_sjis): New implementation for
4058 UTF2000. (decode_coding_sjis): Ditto.
4060 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4062 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4063 Don't define in UTF2000.
4065 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4068 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4069 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4072 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4074 * config.h.in (CHAR_IS_UCS4): New macro.
4076 * mule-charset.c (rep_bytes_by_first_byte): Modify for
4077 conventional MULE representation.
4078 (syms_of_mule_charset): Update to 0.3 (Imamiya).
4080 * mule-charset.h: Reverted to original.
4082 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4083 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4084 "mule-charset.h" if CHAR_IS_UCS4 is defined.
4086 * character.h: New file.
4088 * file-coding.c (Fmake_coding_system): Set 1 to
4089 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4091 (encode_coding_no_conversion): New implementation for UTF2000.
4093 * file-coding.h (struct Lisp_Coding_System): Add new member
4096 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
4098 * file-coding.c (decode_coding_iso2022): Code-point arguments of
4099 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4100 (encode_coding_iso2022): New implementation for UTF2000.
4102 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4104 * mule-canna.c (c2mu): New implementation for UTF2000.
4107 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4109 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4111 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4113 * file-coding.c (reset_encoding_stream): Set 0 to
4114 `str->iso2022.current_char_boundary' in UTF2000.
4115 (encode_utf8): Don't define in UTF2000.
4116 (encode_coding_utf8): New implementation for UTF-8 representation
4118 (complex_vars_of_file_coding): Define coding-system `utf-8'.
4120 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4122 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4124 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4126 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4128 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4130 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4131 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4132 as UTF-8 in UTF2000.
4133 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4134 (non_ascii_valid_char_p): Don't define in UTF2000.
4135 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4136 (Lstream_get_emchar_1): Likewise.
4137 (utf-2000-version): New variable in UTF2000.
4139 * lread.c (read_escape): Add new reader `u'.
4141 * insdel.c (three_to_one_table): Don't define in UTF2000.
4142 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4143 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4145 (bytind_to_bufpos_func): Likewise.
4146 (buffer_mule_signal_inserted_region): Likewise.
4147 (vars_of_insdel): Don't initialize `three_to_one_table'.
4148 (init_buffer_text): Use `buf->text->mule_size' instead of
4149 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4152 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4153 UTF-8 representation in UTF2000.
4154 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4155 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4156 (decode_coding_iso2022): Don't define local variable `lb' in
4157 UTF2000; don't use LEADING_BYTE in UTF2000; use
4158 `DECODE_ADD_UCS_CHAR' in UTF2000.
4159 (convert_to_external_format): Decode as UTF-8 in UTF2000.
4161 * config.h.in (UTF2000): New macro.
4163 * buffer.h (struct buffer_text): Add new member `mule_size' and
4164 don't add `mule_shifter' and `mule_three_p' in UTF2000.
4165 (valid_char_p): Return always 1 in UTF2000.
4166 (MAX_EMCHAR_LEN): 6 in UTF2000.
4167 (three_to_one_table): Don't define in UTF2000.
4168 (real_bufpos_to_bytind): Modify for UTF-8 representation in
4170 (real_bytind_to_bufpos): Likewise.
4172 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4174 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4176 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4177 representation change.
4178 (Vutf_2000_version): New variable.
4179 (leading_code_private_11): New variable.
4180 (syms_of_mule_charset): Add new variables `utf-2000-version' and
4181 `leading-code-private-11'.
4183 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4184 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4185 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4186 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4187 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4188 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4189 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4190 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4191 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4192 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4193 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4194 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4195 (MIN_CHAR_GREEK): New macro.
4196 (MAX_CHAR_GREEK): New macro.
4197 (MIN_CHAR_CYRILLIC): New macro.
4198 (MAX_CHAR_CYRILLIC): New macro.
4199 (MIN_CHAR_HEBREW): New macro.
4200 (MAX_CHAR_HEBREW): New macro.
4201 (MIN_CHAR_THAI): New macro.
4202 (MAX_CHAR_THAI): New macro.
4203 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4204 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4205 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4206 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4207 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4208 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4209 (CHAR_FIELD2): New inline function.
4210 (CHAR_FIELD3): New inline function.
4211 (MULE_CHAR_PRIVATE_OFFSET): New macro.
4212 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4213 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4214 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4215 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4216 (MIN_CHAR_COMPOSITION): Likewise.
4217 (CHAR_LEADING_BYTE): Modified for character representation change.
4218 (MAKE_CHAR): Likewise.
4220 * lisp.h (Vcharset_latin_iso8859_1): New variable.
4221 (Vcharset_greek_iso8859_7): Likewise.
4222 (Vcharset_cyrillic_iso8859_5): Likewise.
4223 (Vcharset_hebrew_iso8859_8): Likewise.
4224 (Vcharset_thai_tis620): Likewise.
4225 (Vcharset_katakana_jisx0201): Likewise.
4227 2001-02-08 Martin Buchholz <martin@xemacs.org>
4229 * XEmacs 21.2.44 "Thalia" is released.
4231 2001-02-06 Martin Buchholz <martin@xemacs.org>
4233 Fixes crashes in kill-emacs on some systems.
4234 * process-unix.c (unix_kill_child_process):
4235 It's OK for kill() to fail with ESRCH.
4237 2001-02-07 Martin Buchholz <martin@xemacs.org>
4239 Contortions to make .gdbinit tricks work on most systems.
4240 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4241 * alloc.c (dbg_valmask): Make non-const.
4242 * alloc.c (dbg_typemask): Make non-const.
4243 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4244 * alloc.c (dbg_valbits): Make non-const.
4245 * alloc.c (dbg_gctypebits): Make non-const.
4246 * .gdbinit (decode_object): Make it work with AIX cc.
4248 2001-02-06 Martin Buchholz <martin@xemacs.org>
4250 * elhash.c (make_general_lisp_hash_table):
4251 Use simpler and more efficient calloc to clear entries.
4253 2001-02-07 Martin Buchholz <martin@xemacs.org>
4255 * window.c (window_scroll): Work around an AIX C compiler bug.
4256 Fixes 'scroll-up' does nothing problem with xlC.
4258 2001-02-05 Martin Buchholz <martin@xemacs.org>
4260 * .gdbinit: Remove obsolete comment.
4262 2001-01-31 Mike Alexander <mta@arbortext.com>
4264 * select.c (Fown_selection_internal): Set owned_p for device
4267 2001-02-01 Martin Buchholz <martin@xemacs.org>
4270 "not" cannot be used as a macro name as it is an operator in C++
4271 * config.h.in: Stop #defining `not'.
4272 * chartab.c (check_category_char): not ==> not_p
4273 * chartab.h: Likewise.
4274 * regex.c (re_match_2_internal): Likewise.
4276 2001-02-02 Martin Buchholz <martin@xemacs.org>
4278 * lisp-disunion.h: Fix up comments.
4280 2001-01-31 Martin Buchholz <martin@xemacs.org>
4282 * keymap.c (define_key_check_and_coerce_keysym):
4284 Support mouse-6 and mouse-7 bindings in the obvious way.
4286 2001-02-01 Martin Buchholz <martin@xemacs.org>
4288 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4290 2001-01-30 Martin Buchholz <martin@xemacs.org>
4292 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4293 Previous patch missed DEFVAR_INT_MAGIC.
4294 Make sure future DEFVAR_foo use correct types.
4295 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4296 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4297 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4298 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4299 * (DEFVAR_INT): Likewise.
4300 * redisplay.c (vertical_clip): Should be of type Fixnum.
4301 * redisplay.c (horizontal_clip): Likewise.
4302 * lisp.h (dump_add_opaque_int): New.
4303 (dump_add_opaque_fixnum): New.
4305 2001-01-29 Andy Piper <andy@xemacs.org>
4307 * glyphs-widget.c (check_valid_int_or_function): allow symbols
4308 since they can be eval'ed
4310 2001-01-29 Martin Buchholz <martin@xemacs.org>
4312 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4313 Oops, XEmacs redefines `class'. Use `typename' instead.
4315 2001-01-28 Martin Buchholz <martin@xemacs.org>
4317 * dumper.c: Fix C++ compile errors.
4319 2001-01-29 Martin Buchholz <martin@xemacs.org>
4321 * tparam.c: Use correct prototypes.
4323 2001-01-28 Martin Buchholz <martin@xemacs.org>
4325 * sysproc.h: #include util.h for NetBSD's openpty.
4327 2001-01-27 Martin Buchholz <martin@xemacs.org>
4329 More 64-bit correctness.
4330 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4331 Use a typedef `fixnum' for the type used for DEFVAR_INT.
4333 This finally finishes the 64-bit SGI port.
4334 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4335 * symbols.c: Fix up comments and type casts.
4336 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4337 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4338 * symeval.h (Fixnum): New type.
4339 * symeval.h (symbol_value_type): Fix up comment.
4355 * mule-canna.c: A million DEFVAR_INTs here...
4356 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4369 s/int/Fixnum/g in DEFVAR_INT declarations.
4371 2001-01-26 Martin Buchholz <martin@xemacs.org>
4373 Port pdump to SGI alignment-sensitive environment.
4374 Lisp Object sizeof methods now return aligned sizes. Rely on that.
4375 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4377 Define and use aligned reading and writing macros.
4378 Use buffered stdio instead of posix i/o for faster dumping.
4379 Eliminate kludgy 256 byte space for header.
4380 Read and write from dump file using structs for alignment safety.
4381 * dumper.c (pdump_align_stream): New.
4382 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4383 * dumper.c (PDUMP_READ_ALIGNED): New.
4384 * dumper.c (PDUMP_WRITE_ALIGNED): New.
4385 * dumper.c (pdump_static_Lisp_Object): New struct.
4386 * dumper.c (pdump_static_pointer): New struct.
4387 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4388 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4389 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4390 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4392 * dumper.c (pdump_backtrace):
4393 * dumper.c (pdump_get_indirect_count):
4394 * dumper.c (pdump_register_object):
4395 * dumper.c (pdump_register_struct):
4396 * dumper.c (pdump_reloc_one):
4397 * dumper.c (pdump_scan_by_alignment):
4398 * dumper.c (pdump_dump_from_root_struct_ptrs):
4399 * dumper.c (pdump_dump_opaques):
4400 * dumper.c (pdump_dump_rtables):
4401 * dumper.c (pdump_dump_from_root_objects):
4403 * dumper.c (pdump_load_finish):
4404 Use aligned reading and writing.
4406 * dumper.c (pdump_free): Make static.
4407 * dumper.c (pdump_hFile): Likewise.
4408 * dumper.c (pdump_hMap): Likewise.
4410 2001-01-26 Martin Buchholz <martin@xemacs.org>
4412 * XEmacs 21.2.43 "Terspichore" is released.
4414 2001-01-25 Martin Buchholz <martin@xemacs.org>
4416 Type fiddling for window_config.saved_windows_count
4417 * window.c (struct window_config):
4418 Make saved_windows_count member unsigned.
4419 * window.c (sizeof_window_config_for_n_windows):
4420 Make parameter unsigned.
4421 * window.c (mark_window_config):
4422 * window.c (window_config_equal):
4423 * window.c (free_window_configuration):
4424 * window.c (Fset_window_configuration):
4425 * window.c (count_windows):
4426 * window.c (Fcurrent_window_configuration):
4427 * window.c (reinit_vars_of_window):
4428 Update all callers and users.
4430 2001-01-25 Martin Buchholz <martin@xemacs.org>
4432 Alignment correctness for flexible arrays.
4433 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4434 Make alignment-correct. Add interesting comments.
4435 * alloc.c (size_vector):
4436 * alloc.c (make_vector_internal):
4437 * alloc.c (make_bit_vector_internal):
4438 * alloc.c (sweep_bit_vectors_1):
4439 * fns.c (size_bit_vector):
4440 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4441 * window.c (sizeof_window_config_for_n_windows):
4442 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4444 2001-01-24 Martin Buchholz <martin@xemacs.org>
4446 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4448 2001-01-23 Andy Piper <andy@xemacs.org>
4450 * select.c (Fown_selection_internal): pass owned_p
4452 * select-msw.c (mswindows_own_selection): New Signature.
4454 * console.h (struct console_methods): add owned_p to
4457 * select-x.c (x_own_selection): pass owned_p
4458 (hack_motif_clipboard_selection): use owned_p
4459 (vars_of_select_x): new variable -
4460 x_selection_strict_motif_ownership.
4462 2001-01-23 Martin Buchholz <martin@xemacs.org>
4464 * specifier.h (specifier_data_offset): Remove pointless parens.
4465 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4467 2001-01-24 Martin Buchholz <martin@xemacs.org>
4469 Make Lisp_Object sizeof methods be alignment-correct.
4470 pdump must restore objects to the same alignment as the C compiler
4471 assumes. It really matters on SGIs.
4472 * lstream.c (aligned_sizeof_lstream): New.
4473 (sizeof_lstream): Use aligned_sizeof_lstream.
4474 (Lstream_new): Likewise.
4475 * opaque.c (aligned_sizeof_opaque): New.
4476 (sizeof_opaque): Use aligned_sizeof_opaque.
4477 (make_opaque): Likewise.
4478 * specifier.c (aligned_sizeof_specifier): New.
4479 (sizeof_specifier): Use aligned_sizeof_specifier.
4480 (make_specifier_internal): Likewise.
4482 2001-01-23 Martin Buchholz <martin@xemacs.org>
4484 * lstream.h (struct lstream): Use max_align_t for trailing data.
4485 * specifier.h (struct Lisp_Specifier): Likewise.
4487 2001-01-22 Martin Buchholz <martin@xemacs.org>
4489 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4490 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4491 (CCL_SUSPEND): Likewise.
4492 (CCL_INVALID_CMD): Likewise.
4493 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4494 (ccl_driver): Likewise.
4495 (CCL_WRITE_CHAR): Macro hygiene.
4496 (CCL_WRITE_STRING): Macro hygiene.
4498 2001-01-22 Martin Buchholz <martin@xemacs.org>
4500 Port "portable" dumper to SunOS 4 and HP-UX.
4501 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4502 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4503 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4505 2001-01-22 Martin Buchholz <martin@xemacs.org>
4507 * lisp.h (ALIGNOF): A better definition for C++.
4509 2001-01-20 Martin Buchholz <martin@xemacs.org>
4512 Fix printf warnings: int format, long int arg.
4513 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4514 (PUSH_FAILURE_POINT): Use correct printf formats.
4515 (POP_FAILURE_POINT): Use correct printf formats.
4516 Use do {...} while (0)
4518 2001-01-20 Martin Buchholz <martin@xemacs.org>
4520 * XEmacs 21.2.42 "Poseidon" is released.
4522 2001-01-20 Martin Buchholz <martin@xemacs.org>
4524 * console-x.h: typo fix du jour. Remove #if 0'ed code.
4526 2001-01-19 Martin Buchholz <martin@xemacs.org>
4528 De-kludgify FIXED_TYPE free list frobbing.
4529 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4530 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4531 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4532 * alloc.c (Lisp_Free): New pseudo lisp object definition.
4533 * alloc.c (LRECORD_FREE_P): New.
4534 * alloc.c (MARK_LRECORD_AS_FREE): New.
4535 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4536 * alloc.c (STRUCT_FREE_P): Deleted.
4537 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4538 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4539 * alloc.c (STRING_CHARS_FREE_P): New.
4540 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4541 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4542 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4543 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4544 * alloc.c (resize_string): Use new definitions.
4545 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4546 * alloc.c (verify_string_chars_integrity): Use new definitions.
4547 * alloc.c (compact_string_chars): Use new definitions.
4548 * alloc.c: Update monster comments.
4549 * lrecord.h (lrecord_type): Add some new lrecord types for
4552 2001-01-18 Martin Buchholz <martin@xemacs.org>
4554 Improve alignment hackery.
4555 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4556 (max_align_t): Moved from opaque.h - general purpose.
4557 (ALIGN_PTR): Use size_t, not long.
4558 * opaque.h (max_align_t): Move to lisp.h.
4560 2001-01-18 Norbert Koch <nk@LF.net>
4562 * gui.h: Fix and add prototypes to fix build problems.
4564 2001-01-18 Martin Buchholz <martin@xemacs.org>
4566 temacs is going away, so `dump-temacs' is now a bad name.
4567 * .dbxrc (dump-temacs): Rename to `dmp'.
4568 * .gdbinit (dump-temacs): Rename to `dmp'.
4570 2001-01-17 Andy Piper <andy@xemacs.org>
4572 * glyphs.c (print_image_instance): comment to make martin happy.
4574 * glyphs-x.c (x_redisplay_widget): update faces after a frame
4577 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4579 (mswindows_tab_control_redisplay): warning suppression.
4581 * glyphs-widget.c (widget_update): re-write to cope with updated
4583 (widget_instantiate): use new gui_item functions.
4584 (tab_control_update): deleted.
4585 (progress_gauge_update): deleted.
4586 (image_instantiator_progress_guage): take out update reference.
4587 (image_instantiator_tree_view): ditto.
4588 (image_instantiator_tab_control): ditto.
4590 * gui.c (widget_gui_parse_item_keywords): new function. Do things
4592 (gui_item_add_keyval_pair): re-write to cope with descriptors and
4593 return whether anything was changed.
4594 (update_gui_item_keywords): as it sounds.
4596 * gui.h: declare widget_gui_parse_item_keywords.
4598 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4599 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4601 2001-01-17 Martin Buchholz <martin@xemacs.org>
4603 * XEmacs 21.2.41 "Polyhymnia" is released.
4605 2001-01-16 Didier Verna <didier@xemacs.org>
4607 * glyphs.c (image_instantiate): don't use fallbacks when
4608 instantiating a face's background pixmap by inheritance.
4610 2001-01-14 Mike Sperber <mike@xemacs.org>
4612 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4613 Conditionalize accordingly.
4615 2001-01-16 Martin Buchholz <martin@xemacs.org>
4617 * dumper.c (pdump_file_get): Fix a compiler warning.
4619 2001-01-15 Martin Buchholz <martin@xemacs.org>
4621 Make Purify happy when pdumping.
4622 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4623 iniitalizing all bits of new lisp object memory.
4624 * symbols.c (Fmake_local_variable): Likewise.
4625 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4626 * symbols.c (Fdefvaralias): Likewise.
4627 * mule-charset.c (vars_of_mule_charset): Likewise.
4629 2001-01-15 Martin Buchholz <martin@xemacs.org>
4630 Add the `-nd' flag when running pre-dump operations under the debugger.
4631 * .dbxrc (run-temacs): Add `-nd'.
4632 * .dbxrc (update-elc): Likewise.
4633 * .dbxrc (dump-temacs): Likewise.
4634 * .gdbinit (run-temacs): Likewise.
4635 * .gdbinit (check-temacs): Likewise.
4636 * .gdbinit (update-elc): Likewise.
4637 * .gdbinit (dump-temacs): Likewise.
4639 2001-01-14 Martin Buchholz <martin@xemacs.org>
4641 Allow building 64-bit executables on AIX with GNU malloc, e.g.
4642 export OBJECT_MODE=64
4643 configure --pdump --use-union-type=no
4644 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4645 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4647 * miscplay.c (sndcnv8U_2mono):
4648 Avoid two uses of `++' in the same expression.
4649 Suppresses a GCC warning.
4651 2001-01-13 Martin Buchholz <martin@xemacs.org>
4653 Make sure future compilers don't miscompile alloc.c.
4655 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4656 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4658 2001-01-12 Martin Buchholz <martin@xemacs.org>
4660 * dumper.c: A little post-pdump-rename comment fixup.
4662 2001-01-09 Jerry James <james@eecs.ku.edu>
4664 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4666 2001-01-13 Martin Buchholz <martin@xemacs.org>
4668 * *.[ch]: Globally rename symbols using the following `pdump-rename'
4672 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4675 replace_symbol pdump_wire_lists pdump_weak_object_chains
4676 replace_symbol pdump_wire_list dump_add_weak_object_chain
4678 replace_symbol pdump_wires pdump_root_objects
4679 replace_symbol pdump_wire dump_add_root_object
4681 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4682 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4684 replace_symbol dumpstructinfos pdump_root_struct_ptrs
4685 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4686 replace_symbol dumpstructinfo pdump_root_struct_ptr
4687 replace_symbol dumpstruct dump_add_root_struct_ptr
4689 replace_symbol dumpopaque dump_add_opaque
4690 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4691 replace_symbol dumpopaqueinfos pdump_opaques
4692 replace_symbol dumpopaqueinfo pdump_opaque
4694 replace_symbol nb_structdump nb_root_struct_ptrs
4695 replace_symbol nb_opaquedump nb_opaques
4697 replace_symbol align_table pdump_align_table
4698 replace_symbol dump_header pdump_header
4700 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4701 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4704 2001-01-12 Martin Buchholz <martin@xemacs.org>
4706 * s/aix4.h: Keep the C for AIX compiler from overaggressively
4707 optimizing bytecount_to_charcount().
4709 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4712 (HAVE_DLFCN_H): Removed.
4713 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4715 2001-01-06 Martin Buchholz <martin@xemacs.org>
4717 Portable dumper maintainability improvements.
4718 * alloc.c (staticpro):
4719 * alloc.c (staticpro_nodump):
4720 * alloc.c (garbage_collect_1):
4721 * alloc.c (reinit_alloc_once_early):
4722 * alloc.c (init_alloc_once_early):
4723 * alloc.c: Move dumper functions to alloc.c.
4724 * dumper.c (pdump_backtrace):
4725 * dumper.c (pdump_dump_structs):
4726 * dumper.c (pdump_dump_opaques):
4727 * dumper.c (pdump_dump_rtables):
4728 * dumper.c (pdump_dump_wired):
4730 * dumper.c (pdump_load_check):
4731 * dumper.c (pdump_load_finish):
4732 * dumper.c (pdump_file_unmap):
4733 * dumper.c (pdump_file_get):
4734 * dumper.c (pdump_resource_free):
4735 * dumper.c (pdump_resource_get):
4736 * dumper.c (pdump_file_free):
4737 * dumper.c (pdump_file_try):
4738 * dumper.c (pdump_load):
4739 Remove fixed size limits on staticpro(), staticpro_nodump(),
4740 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4741 Remove custom code for dumping lrecord_implementations_table - use
4743 Remove (most of the) custom code for dumping staticpros - dump it
4744 like any other dynarr.
4746 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
4747 * dumper.c: Moved functions from alloc.c.
4748 * alloc.c (dumpstruct): Moved to dumper.c.
4749 * alloc.c (dumpopaque): Likewise.
4750 * alloc.c (pdump_wire): Likewise.
4751 * alloc.c (pdump_wire_list): Likewise.
4753 * lisp.h (Dynarr_sizeof): New.
4754 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
4755 * lisp.h (Dynarr_end): New. Very slightly C++oid.
4756 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
4758 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4759 * lisp.h (dumpopaque): ditto.
4760 * lisp.h (pdump_wire): ditto.
4761 * lisp.h (pdump_wire_list): ditto.
4763 2001-01-09 Martin Buchholz <martin@xemacs.org>
4765 * make-src-depend (PrintPatternDeps):
4766 Use `sort' to make output independent of perl version.
4768 2001-01-08 Martin Buchholz <martin@xemacs.org>
4771 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4772 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4774 2001-01-03 Didier Verna <didier@xemacs.org>
4776 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4777 that `focus_frame' is alive before thinking of calling
4778 `redisplay_redraw_cursor' on it.
4780 2001-01-08 Martin Buchholz <martin@xemacs.org>
4782 * XEmacs 21.2.40 is released.
4784 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4786 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4788 2001-01-06 Martin Buchholz <martin@xemacs.org>
4790 * alloc.c (dbg_valmask): Make const.
4791 * alloc.c (dbg_typemask): Make const.
4792 * alloc.c (dbg_USE_UNION_TYPE): Make const.
4793 * alloc.c (dbg_valbits): Make const.
4794 * alloc.c (dbg_gctypebits): Make const.
4796 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
4798 * redisplay-x.c (x_bevel_area):
4799 redisplay.h (struct rune):
4800 Typo fixes in comments.
4802 2001-01-05 Andy Piper <andy@xemacs.org>
4804 * glyphs-x.c (x_redisplay_widget): use size changed for offset
4807 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4809 2001-01-05 Martin Buchholz <martin@xemacs.org>
4811 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4813 * mule-ccl.c (stack_idx_of_map_multiple):
4814 Non const global data must not be initialized!
4815 Found by MIYASHITA Hisashi.
4817 2001-01-02 Andy Piper <andy@xemacs.org>
4819 * frame.c (change_frame_size): make sure frame size is always
4822 * glyphs.c (image_instance_layout): minor code reuse.
4824 * window.c (Fcurrent_window_configuration): revert previous
4827 2001-01-02 Martin Buchholz <martin@xemacs.org>
4830 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4832 2000-12-31 Andy Piper <andy@xemacs.org>
4834 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4835 when widget gets unmapped.
4837 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4838 function. Make sure widgets losing focus don't just drop it.
4839 (handle_focus_event_1): record the widget with focus.
4841 2000-12-31 Andy Piper <andy@xemacs.org>
4843 * window.c (allocate_window): use
4844 make_image_instance_cache_hash_table.
4845 (make_dummy_parent): ditto.
4846 (Fset_window_configuration): ditto.
4848 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
4850 * glyphs.c (process_image_string_instantiator): use
4852 (get_image_instantiator_governing_domain): ditto.
4853 (normalize_image_instantiator): ditto.
4854 (instantiate_image_instantiator): ditto.
4855 (make_image_instance_1): ditto.
4856 (image_instantiate): ditto. Key on glyph *and* instantiator type.
4857 (instantiator_eq_equal): new function for use with instance hash
4859 (instantiator_eq_hash): ditto.
4860 (make_image_instance_cache_hash_table): create a suitable hash
4861 table for storing image instances.
4863 * elhash.h (hash_table_weakness): new internal weakness type
4864 HASH_TABLE_KEY_CAR_VALUE_WEAK.
4865 declare new functions.
4867 * elhash.c (finish_marking_weak_hash_tables): introduce yet
4868 another weakness type for glyphs.
4869 (make_standard_lisp_hash_table): new function split out from
4870 make_general_lisp_hash_table.
4871 (make_lisp_hash_table): call make_standard_lisp_hash_table.
4872 (hash_table_instantiate): ditto.
4873 (Fmake_hash_table): ditto.
4875 2000-12-31 Martin Buchholz <martin@xemacs.org>
4877 * XEmacs 21.2.39 is released.
4879 2000-12-29 Andy Piper <andy@xemacs.org>
4881 * menubar.c (menubar_visible_p_changed): signal the frame changed.
4883 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4884 the frame has changed so that we pick up geometry changes such as
4887 2000-12-28 Andy Piper <andy@xemacs.org>
4889 * lastfile.c (my_ebss): make a char array so we can pad the
4890 bss. Fixes cygwin unexec.
4892 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4894 2000-12-26 Andy Piper <andy@xemacs.org>
4896 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4897 comments and try and be more precise about a non-/SIGIO world.
4898 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4901 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4902 we don't normalize to zero width or height.
4904 2000-12-24 Andy Piper <andy@xemacs.org>
4906 * Makefile.in.in (ldflags): add -mwindows when appropriate.
4908 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
4910 * s/sco5.h: SCO 5 has pty support.
4912 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
4914 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4915 input-method-xlib.c contains whole contents of input-method-xfs.c,
4916 so we can use input-method-xlib.c's code for USE_XFONTSET
4918 * input-method-xfs.c: removed.
4920 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
4922 * file-coding.h (enum coding_category_type): reorder enumerators to
4923 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
4924 (now one greater than largest real coding_category_type enumerator).
4925 * file-coding.c (coding_category_symbol, coding_category_by_priority,
4926 coding_category_system, fcd_descriptihon_1, decode_coding_category,
4927 Fcoding_category_list, Fset_coding_priority_list,
4928 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4929 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4931 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4933 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4934 * redisplay-output.c (redisplay_output_window): Clear top of window
4935 when face is changed.
4936 * redisplay-x.c (x_redraw_exposed_window): Call
4937 redisplay_clear_top_of_window.
4938 * redisplay.h: Publish redisplay_clear_top_of_window.
4940 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4942 * buffer.c (Fkill_buffer): Map over all devices.
4943 * window.c (window_loop): Remove UNSHOW_BUFFER code.
4944 (list_windows): New function.
4945 (list_all_windows): Ditto.
4946 (Freplace_buffer_in_windows): Use them.
4948 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4950 * database.c (berkdb_subtype): Recognize new subtype `queue'.
4951 (Fopen_database): Use `db_create' instead of `db_open'.
4952 (syms_of_database): Initialize Qqueue.
4954 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4956 * buffer.c (common_init_complex_vars_of_buffer): Initialize
4957 buffer_local_face_property.
4958 * buffer.h (struct buffer): New member buffer_local_face_property.
4959 * window.c (Fset_window_buffer): Mark window's face as changed
4960 when buffer has buffer local face.
4961 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4962 * objects.c (color_after_change): Set buffer_local_face_property
4963 when locale of face specifier is buffer.
4964 * objects.c (font_after_change): Ditto.
4965 * objects.c (face_boolean_after_change): Ditto.
4966 * glyphs.c (image_after_change): Ditto.
4968 2000-12-09 Dan Holmsand <dan@eyebee.com>
4970 * nt.c (mswindows_fstat): Report file permissions, volume serial
4971 number, etc. Code adapted from FSF Emacs 20.7.
4973 2000-12-09 Dan Holmsand <dan@eyebee.com>
4975 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4976 of stat when we don't have symbolic links, to make sure
4977 mswindows_stat is called on mswindows.
4979 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
4981 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4983 2000-12-12 Martin Buchholz <martin@xemacs.org>
4985 * doprnt.c (emacs_doprnt_1): More printing fixes.
4986 Make printing of numbers compatible with libc and FSF Emacs.
4987 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4988 Use the system printf to do most of the hard work of formatting,
4989 instead of doprnt_1().
4990 Calculate memory to allocate for format string.
4991 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4992 (doprnt_1): Cleaner code and documentation.
4994 2000-12-01 Jerry James <james@eecs.ukans.edu>
4996 * Makefile.in.in: Use the loop variable to install headers.
4998 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
5000 * window.c (Fsplit_window): Don't invalidate face cache.
5002 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
5004 * minibuf.c (Fall_completions): Undo the previous change
5005 which removed checking elements start with space.
5007 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
5009 * mule-canna.c: Didier suppression.
5011 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
5013 * mule-canna.c: rename static unsigned char buf[] to key_buffer
5014 (warning suppression). Add English comment translations.
5016 2000-12-05 Martin Buchholz <martin@xemacs.org>
5018 * unexelfsgi.c (unexec): Better test for mmap failure.
5020 2000-12-05 Martin Buchholz <martin@xemacs.org>
5022 * XEmacs 21.2.38 is released.
5024 2000-12-05 Martin Buchholz <martin@xemacs.org>
5026 * redisplay.c (bar-cursor): Make a user variable.
5028 * symsinit.h: Add init_postgresql_from_environment.
5030 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
5032 * regex.c: Convert to clean C.
5034 2000-12-05 Dan Holmsand <dan@eyebee.com>
5037 Don't #include sysfile.h. Revert to duplicating PATH_MAX
5039 (sys_readlink): renamed to system_readlink to avoid conflict with
5040 the other sys_readlink.
5042 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
5044 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
5046 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
5048 * postgresql.c (init_postgresql_from_environment): new function.
5049 (vars_of_postgresql): Move code initializing Lisp variables out and
5050 into init_postgresql_from_environment.
5051 emacs.c (main_1): Call init_postgresql_from_environment if and only
5052 if running a dumped XEmacs.
5054 2000-08-31 Dan Holmsand <dan@eyebee.com>
5056 * buffer.c: Make find-file-compare-truenames default to true on
5059 * realpath.c (win32_abs_start):
5061 (win32_readlink): New functions.
5062 (xrealpath): Return really real filenames on windows.
5064 * fileio.c (Ffile_truename): Make file-truename work on windows.
5066 2000-11-29 Didier Verna <didier@xemacs.org>
5068 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
5069 * faces.c (update_face_cachel_data): use it.
5070 * faces.c (add_face_cachel): use it. Complete background pixmap
5071 frobbing in face cache if `update_face_cachel_data' has not done so.
5073 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
5075 * search.c (string_match_1): Don't set last_thing_searched
5078 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
5080 * buffer.c: Include casetab.h
5081 (common_init_complex_vars_of_buffer): Use new case-table object.
5082 * buffer.h: Include casetab.h
5083 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5084 (DOWNCASE_TABLE_OF): Ditto.
5085 * bufslots.h: Remove char-tables and add case-table.
5086 * casetab.c: Include casetab.h
5087 (CASE_TABLE_P): Removed.
5088 (mark_case_table): New function.
5089 (allocate_case_table): New function.
5090 (Fcase_table_p): Use new case-table.
5091 (case_table_char): New function.
5092 (Fget_case_table): Ditto.
5093 (Fput_case_table): Ditto.
5094 (Fput_case_table_pair): Ditto.
5095 (Fcopy_case_table): Ditto.
5096 (Fcurrent_case_table): Return case-table.
5097 (Fstandard_case_table): Return case-table.
5098 (Fset_case_table): Fix doc-string.
5099 (set_case_table): Use case-table
5100 (syms_of_casetab): DEFSUBR new functions.
5101 (complex_vars_of_casetab): Set up standard case-table.
5102 * casetab.h: New file.
5103 * editfns.c: Include casetab.h
5104 (Fcompare_buffer_substrings): Use case-table.
5105 * inline.c: Include casetab.h
5106 * lisp.h: Remove bogus extern.
5107 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5108 * search.c: Include casetab.h
5109 (TRANSLATE_ASCII): Removed.
5110 (TRANSLATE): Unconditionally translate character.
5111 (looking_at_1): Use case-table.
5112 (string_match_1): Ditto.
5113 (fast_string_match): Ditto.
5114 (search_command): Ditto.
5115 (search_buffer): Separate boyer_moore. Check whether
5116 boyer_moore is possible.
5117 (simple_search): New function.
5118 (boyer_moore): Separated from search_buffer. Translate char.
5120 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
5122 * regex.c (RE_TR_ASCII): Removed.
5123 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5124 (PATFETCH): Call PATFETCH_RAW.
5125 (PATFETCH_RAW): Fetch Emchar.
5126 (PATUNFETCH): Decrement charptr.
5127 (GET_BUFFER_SPACE): Rename b to buf_end.
5129 (BUF_PUSH_2): Ditto.
5130 (BUF_PUSH_3): Ditto.
5131 (EXTEND_BUFFER): Ditto.
5132 (SET_LIST_BIT): Ditto.
5133 (regex_compile): Ditto. Translate non ASCII char.
5134 (compile_range): Ditto.
5135 (re_search_2): Ditto.
5136 (re_match_2_internal): Compare Emchar.
5137 (bcmp_translate): Ditto.
5139 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
5141 * lisp.h (basic char/int typedefs): comment improvement.
5143 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
5145 * emacs.c (main_1): unconditional pdump unstomping; don't save and
5146 unstomp inhibit_site_lisp. Improve comments.
5148 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
5150 * mule-charset.c (Fcharset_property): improve type checking, comments.
5152 2000-11-28 Andy Piper <andy@xemacs.org>
5154 * redisplay-output.c (redisplay_output_subwindow): make sure we do
5155 clipped display for windows in the gutter also.
5156 (redisplay_display_boxes_in_window_p): change semantics of return
5157 codes to be more intuitive.
5159 * gutter.h: declare display_boxes_in_gutter_p.
5161 * gutter.c (display_boxes_in_gutter_p): new function for
5164 2000-11-22 Andy Piper <andy@xemacs.org>
5166 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5169 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
5171 * callproc.c (Fold_call_process_internal):
5172 * gpm.c (Freceive_gpm_event):
5173 (tty_get_foreign_selection): Might be just warning supression.
5174 * fileio.c (Fwrite_region_internal):
5175 (Fset_visited_file_modtime):
5176 * keymap.c (event_matches_key_specifier_p):
5177 Initialize GCPROed variable.
5179 * menubar-x.c (command_builder_find_menu_accelerator):
5180 Initialize before use.
5182 2000-11-23 Andy Piper <andy@xemacs.org>
5184 * unexcw.c (unexec): make the resulting executable executable.
5186 2000-11-21 Martin Buchholz <martin@xemacs.org>
5188 * doc.c (get_doc_string):
5189 Use size_t, not int, for result of XSTRING_LENGTH.
5191 * cmds.c (Fdelete_char):
5192 * cmds.c (Fpoint_at_eol):
5193 * cmds.c (Fself_insert_command):
5194 Use EMACS_INT, not int, for result of XINT.
5195 Someday, someone will want to insert more than 2**31 identical characters.
5197 * cmds.c (Fdelete_char):
5198 * cmds.c (Fdelete_backward_char):
5199 * syntax.c (Fforward_word):
5200 * syntax.c (Fforward_comment):
5201 Make COUNT argument optional, for consistency with forward-char et al.
5203 2000-11-22 Martin Buchholz <martin@xemacs.org>
5206 * print.c (long_to_string):
5207 Return a useful value: the pointer at end of data written.
5210 Use `static const char * const' for constant strings.
5211 (union printf_arg): Delete `i', `ui' members.
5214 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5215 Do all printf-ing via the `l' specifier.
5216 Use EMACS_INT instead of int.
5219 2000-11-20 Didier Verna <didier@xemacs.org>
5221 * faces.c (update_face_cachel_data): don't frob the background
5222 pixmap when the window is being created. The face is needed but
5225 2000-11-20 Andy Piper <andy@xemacs.org>
5227 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5228 messing with a debug environment.
5230 2000-11-20 Martin Buchholz <martin@xemacs.org>
5232 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5234 2000-11-20 Martin Buchholz <martin@xemacs.org>
5236 * casetab.c (Fcase_table_p): Fix compile error and crash.
5238 2000-11-18 Philip Aston <philipa@mail.com>
5240 * s/cygwin32.h: Cygwin has SVR4-like pty support.
5242 2000-11-18 Martin Buchholz <martin@xemacs.org>
5244 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
5245 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5247 2000-11-17 Martin Buchholz <martin@xemacs.org>
5249 * config.h.in: Define HAVE_ELF_H if elf.h exists.
5250 * unexelf.c: Use HAVE_ELF_H.
5251 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5252 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5253 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5254 Greg Harrington <greg_harrington@hotmail.com> provided a machine
5256 So this is an unexelfsgi.c from a different line of development.
5258 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5260 * regex.c (RE_TR_ASCII): New function.
5261 (RE_TRANSLATE): Call it.
5263 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5265 * buffer.h (TRT_TABLE_OF): Remove assert.
5266 (IN_TRT_TABLE_DOMAIN): Removed.
5268 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
5270 * free-hook.c (log_gcpro):
5271 (show_gcprohist): Add support for GCPRO5.
5273 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
5275 * emacs.c (main_1): Improve -sd error message when --pdump=no.
5277 2000-11-16 Olivier Galibert <galibert@xemacs.org>
5279 * symeval.h: Declare flush_all_buffer_local_cache.
5281 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5282 (flush_buffer_local_cache): Added.
5283 (flush_all_buffer_local_cache): Added.
5285 * lrecord.h: Remove unused XD_LO_RESET_NIL.
5287 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5288 (pdump_dump_data): Ditto.
5289 (pdump_reloc_one): Ditto.
5290 (pdump): Remove unused pdump_qnil. Flush buffer local caches
5294 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5296 * buffer.c: Remove if 0'ed entry.
5297 * buffer.h: Rewrite TRT to use char-table.
5298 * bufslots.h: Remove mirror tables.
5299 * casetab.c: Remove mirror tables.
5300 (CASE_TABLE_P): New macro.
5301 (Fcase_table_p): Element of a case table is string or char-table.
5302 (make_mirror_trt_table): Removed.
5303 (set_case_table): Setup char-table from strings for backward
5305 * dired.c (Fdirectory_files):
5306 * dired-msw.c: (mswindows_get_files):
5307 * lisp.h: Change prototype of re_pattern_buffer.
5308 * regex.c: (RE_TRANSLATE): New macro.
5309 (TRANSLATE_P): Ditto.
5310 Change translate to type RE_TRANSLATE_TYPE.
5311 * regex.h: Define RE_TRANSLATE_TYPE
5312 * search.c (TRANSLATE): New macro.
5313 (TRANSLATE_ASCII): New macro.
5314 Translate table is changed to Lisp_Object.
5315 (signal_failure): Inhibit return.
5317 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5324 Do UNGCPRO before return.
5326 2000-11-14 Martin Buchholz <martin@xemacs.org>
5328 * XEmacs 21.2.37 is released.
5330 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
5332 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5333 Add comments about discarded return value.
5335 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5338 * event-stream.c: Fix comments. Remove some #if 0'ed part.
5340 2000-10-27 Andy Piper <andy@xemacs.org>
5342 * gutter.c (Fset_default_gutter_position): default left and right
5344 (calculate_gutter_size): calculate resonable heuristic for left
5345 and right gutter sizes.
5346 (specifier_vars_of_gutter): change left and right gutter sizes to
5348 (calculate_gutter_size_from_display_lines): new function.
5349 (output_gutter): check for resizing on left and right gutters.
5350 (clear_gutter): don't special case top and left gutters.
5351 (specifier_vars_of_gutter): use new signature for
5352 set_specifier_caching.
5354 * glyphs-x.c (x_redisplay_widget): spelling fix.
5355 * glyphs.c (specifier_vars_of_glyphs):
5356 * menubar.c (specifier_vars_of_menubar):
5357 * redisplay.c (specifier_vars_of_redisplay):
5358 * toolbar.c (specifier_vars_of_toolbar):
5359 * window.c (specifier_vars_of_window):
5360 * scrollbar.c (specifier_vars_of_scrollbar):
5361 (complex_vars_of_scrollbar): use new signature for
5362 set_specifier_caching.
5364 * specifier.c (set_specifier_caching): include recompute flag.
5365 (recompute_one_cached_specifier_in_window): always recompute if
5367 (recompute_one_cached_specifier_in_frame): ditto.
5369 * specifier.h (struct specifier_caching): add recompute flag.
5371 2000-10-24 Andy Piper <andy@xemacs.org>
5373 * unexcw.c (copy_executable_and_dump_data_section): add new
5374 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5377 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5379 * console-x.h (x_device): New member modifier_release_time.
5380 * event-Xt.c (x_handle_sticky_modifiers):
5381 Bound interval modifier keys are sticky.
5382 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5383 * events.h: extern it.
5385 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5387 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5389 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5391 * event-stream.c (execute_command_event): Preserve current_events
5392 and the like when event is misc-user-event.
5393 Inhibit quit during the call to maybe_echo_keys.
5395 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
5397 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5398 symlink when buffer is killed.
5399 (inhibit_clash_detection): New variable.
5401 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5403 * console.c (Fset_input_method): Trigger redisplay on tty.
5405 2000-11-07 Martin Buchholz <martin@xemacs.org>
5407 * process.c (Fprocess_status): Revert to previous behavior:
5408 (process-status "nosuchprocess") ==> nil
5410 2000-11-06 Martin Buchholz <martin@xemacs.org>
5412 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5413 Work around another GCC 2.95.2 optimizer bug.
5415 2000-11-02 Martin Buchholz <martin@xemacs.org>
5417 * process.c (Fget_process): Use LIST_LOOP_2.
5418 (kill_buffer_processes): Use LIST_LOOP_2.
5420 * minibuf.c (Fall_completions):
5421 Delete old non-functional code for FSF fourth argument.
5423 * frame.c (frame_matches_frame_spec):
5424 Renamed from `frame_matches_frametype'. Update all callers.
5425 (device_matches_device_spec):
5426 Renamed from 'device_matches_console_spec'. Update all callers.
5428 * doc.c (Fsubstitute_command_keys):
5429 Remove buffer overflow crash. Small code cleanups.
5431 * casetab.c (check_case_table): Simpler code.
5433 * window.c (Freplace_buffer_in_windows):
5434 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5435 (and similar implementation) as Fdelete_windows_on.
5438 * alloc.c (Fmake_list):
5439 * alloc.c (make_vector):
5440 * alloc.c (Fmake_vector):
5441 * alloc.c (make_bit_vector):
5442 * alloc.c (Fmake_bit_vector):
5443 * alloc.c (Fbit_vector):
5444 * alloc.c (Fmake_string):
5445 * alloc.c (Fpurecopy):
5446 * alloc.c (Fmemory_limit):
5448 * buffer.c (Fget_buffer):
5449 * buffer.c (Fkill_buffer):
5450 * buffer.c (complex_vars_of_buffer):
5451 * bytecode.c (Fcompiled_function_stack_depth):
5452 * callint.c (Fprefix_numeric_value):
5454 * event-stream.c (Fread_key_sequence):
5456 * casetab.c (Fcase_table_p):
5457 * casetab.c (check_case_table):
5458 * casetab.c (Fset_case_table):
5459 * casetab.c (Fset_standard_case_table):
5461 * chartab.c (Fchar_table_type):
5462 * chartab.c (Freset_char_table):
5463 * chartab.c (Fget_char_table):
5464 * chartab.c (Fget_range_char_table):
5465 * chartab.c (Fput_char_table):
5466 * chartab.c (Fmap_char_table):
5467 * chartab.c (Fcategory_table_p):
5468 * chartab.c (Fcheck_category_at):
5469 * chartab.c (Fchar_in_category_p):
5470 * chartab.c (Fcategory_table):
5471 * chartab.c (Fcopy_category_table):
5472 * chartab.c (Fset_category_table):
5473 * chartab.c (Fcategory_designator_p):
5474 * chartab.c (Fcategory_table_value_p):
5475 * cmds.c (Fdelete_char):
5476 * cmds.c (Fdelete_backward_char):
5477 * cmds.c (Fself_insert_command):
5478 * cmds.c (Fself_insert_internal):
5479 * console.c (Fvalid_console_type_p):
5480 * console.c (Fcdfw_console):
5481 * console.c (Fconsole_type):
5482 * console.c (Fconsole_name):
5483 * console.c (Fconsole_device_list):
5484 * console.c (Fconsole_on_window_system_p):
5488 * data.c (Fsubr_interactive):
5489 * data.c (Fchar_to_int):
5490 * data.c (Fint_to_char):
5493 * data.c (Fnumber_to_string):
5494 * data.c (Fstring_to_number):
5496 * database.c (mark_database):
5497 * database.c (finalize_database):
5498 * database.c (Fdatabase_live_p):
5499 * database.c (Fdatabasep):
5500 * device-x.c (Fx_get_resource):
5501 * device.c (Fdfw_device):
5503 * dired.c (Ffile_name_completion):
5504 * dired.c (Ffile_name_all_completions):
5505 * dired.c (Fuser_name_completion):
5506 * dired.c (Fuser_name_completion_1):
5507 * dired.c (Fuser_name_all_completions):
5508 * doc.c (Fdocumentation):
5509 * doc.c (Fdocumentation_property):
5510 * doc.c (Fsubstitute_command_keys):
5512 * editfns.c (Fchar_to_string):
5513 * editfns.c (Fstring_to_char):
5514 * editfns.c (Ftemp_directory):
5515 * editfns.c (Finsert_char):
5516 * editfns.c (Fbuffer_substring_no_properties):
5517 * editfns.c (Fnarrow_to_region):
5518 * editfns.c (Fchar_equal):
5519 * editfns.c (Fchar_Equal):
5520 * editfns.c (Ftranspose_regions):
5521 * emacs.c (Fdump_emacs):
5523 * eval.c (Fcommand_execute):
5524 * eval.c (Fautoload):
5525 * eval.c (Fbacktrace):
5526 * eval.c (Fbacktrace_frame):
5528 * events.c (Fcopy_event):
5529 * events.c (Fcharacter_to_event):
5530 * events.c (Fevent_button):
5531 * events.c (Fevent_process):
5533 * extents.c (Fnext_extent_change):
5534 * extents.c (Fextent_property):
5536 * faces.c (Fmake_face):
5538 * file-coding.c (Fencode_shift_jis_char):
5539 * file-coding.c (Fencode_big5_char):
5540 * fileio.c (Ffile_name_directory):
5541 * fileio.c (Ffile_name_nondirectory):
5542 * fileio.c (Ffile_name_as_directory):
5543 * fileio.c (Fdirectory_file_name):
5544 * fileio.c (Ffile_truename):
5545 * fileio.c (Fsubstitute_in_file_name):
5546 * fileio.c (Ffile_modes):
5547 * fileio.c (Fset_file_modes):
5548 * fileio.c (Fset_default_file_modes):
5549 * fileio.c (Fverify_visited_file_modtime):
5550 * floatfns.c (Facos):
5551 * floatfns.c (Fasin):
5552 * floatfns.c (Fatan):
5553 * floatfns.c (Fcos):
5554 * floatfns.c (Fsin):
5555 * floatfns.c (Ftan):
5556 * floatfns.c (Fbessel_j0):
5557 * floatfns.c (Fbessel_j1):
5558 * floatfns.c (Fbessel_jn):
5559 * floatfns.c (Fbessel_y0):
5560 * floatfns.c (Fbessel_y1):
5561 * floatfns.c (Fbessel_yn):
5562 * floatfns.c (Ferf):
5563 * floatfns.c (Ferfc):
5564 * floatfns.c (Flog_gamma):
5565 * floatfns.c (Fexp):
5566 * floatfns.c (Fexpt):
5567 * floatfns.c (Flog):
5568 * floatfns.c (Flog10):
5569 * floatfns.c (Fsqrt):
5570 * floatfns.c (Fcube_root):
5571 * floatfns.c (Facosh):
5572 * floatfns.c (Fasinh):
5573 * floatfns.c (Fatanh):
5574 * floatfns.c (Fcosh):
5575 * floatfns.c (Fsinh):
5576 * floatfns.c (Ftanh):
5577 * floatfns.c (Fabs):
5578 * floatfns.c (Ffloat):
5579 * floatfns.c (Flogb):
5580 * floatfns.c (Fceiling):
5581 * floatfns.c (Ffloor):
5582 * floatfns.c (Fround):
5583 * floatfns.c (Ftruncate):
5584 * floatfns.c (Ffceiling):
5585 * floatfns.c (Fffloor):
5586 * floatfns.c (Ffround):
5587 * floatfns.c (Fftruncate):
5588 * fns.c (Fstring_equal):
5589 * fns.c (Fstring_lessp):
5594 * fns.c (Fsubstring):
5596 * fns.c (Fold_assoc):
5597 * fns.c (assoc_no_quit):
5599 * fns.c (Fold_assq):
5600 * fns.c (assq_no_quit):
5602 * fns.c (Fold_rassoc):
5604 * fns.c (Fold_rassq):
5605 * fns.c (rassq_no_quit):
5606 * fns.c (Fremassoc):
5607 * fns.c (remassoc_no_quit):
5609 * fns.c (remassq_no_quit):
5610 * fns.c (Fremrassoc):
5611 * fns.c (Fremrassq):
5612 * fns.c (remrassq_no_quit):
5614 * fns.c (Fplist_get):
5615 * fns.c (Fplist_put):
5616 * fns.c (Fplist_remprop):
5617 * fns.c (Fplist_member):
5618 * fns.c (Flax_plist_get):
5619 * fns.c (Flax_plist_put):
5620 * fns.c (Flax_plist_remprop):
5621 * fns.c (Flax_plist_member):
5623 * fns.c (Fold_equal):
5625 * fns.c (Fbase64_encode_region):
5626 * fns.c (Fbase64_encode_string):
5627 * fns.c (Fbase64_decode_region):
5629 * frame.c (frame_matches_frame_spec):
5630 * frame.c (device_matches_device_spec):
5631 * frame.c (next_frame):
5632 * frame.c (previous_frame):
5633 * frame.c (Fnext_frame):
5634 * frame.c (Fprevious_frame):
5635 * frame.c (Fframe_property):
5636 * frame.c (Fset_frame_height):
5637 * frame.c (Fset_frame_size):
5641 * glyphs.c (decode_error_behavior_flag):
5642 * glyphs.c (Fmake_image_instance):
5643 * indent.c (Findent_to):
5644 * intl.c (Fignore_defer_gettext):
5645 * keymap.c (Fkeymapp):
5646 * keymap.c (Flookup_key):
5648 * lread.c (Fload_internal):
5649 * lread.c (Feval_buffer):
5650 * lread.c (Feval_region):
5651 * macros.c (Fexecute_kbd_macro):
5652 * marker.c (set_marker_internal):
5653 * marker.c (Fset_marker):
5654 * marker.c (set_marker_restricted):
5655 * marker.c (Fcopy_marker):
5656 * marker.c (noseeum_copy_marker):
5658 * menubar.c (Fpopup_menu):
5660 * mule-charset.c (Fcharset_name):
5661 * mule-charset.c (Fchar_charset):
5662 * mule-charset.c (Fchar_octet):
5663 * mule-charset.c (Fsplit_char):
5664 * mule-wnnfns.c (Fwnn_open):
5665 * mule-wnnfns.c (Fwnn_dict_comment):
5666 * mule-wnnfns.c (Fwnn_quit_henkan):
5667 * mule-wnnfns.c (Fwnn_word_toroku):
5668 * mule-wnnfns.c (Fwnn_word_sakujo):
5669 * mule-wnnfns.c (Fwnn_word_use):
5670 * mule-wnnfns.c (Fwnn_hindo_set):
5672 * objects.c (Fmake_color_instance):
5673 * objects.c (Fmake_font_instance):
5674 * print.c (Fwrite_char):
5676 * process.c (mark_process):
5677 * process.c (print_process):
5678 * process.c (get_process_from_usid):
5679 * process.c (Fprocessp):
5680 * process.c (Fprocess_live_p):
5681 * process.c (Fget_process):
5682 * process.c (Fget_buffer_process):
5683 * process.c (get_process):
5684 * process.c (Fprocess_id):
5685 * process.c (Fprocess_name):
5686 * process.c (Fprocess_command):
5687 * process.c (init_process_io_handles):
5688 * process.c (start_process_unwind):
5689 * process.c (Fstart_process_internal):
5690 * process.c (Fopen_multicast_group_internal):
5691 * process.c (Fset_process_window_size):
5692 * process.c (read_process_output):
5693 * process.c (send_process):
5694 * process.c (Fprocess_tty_name):
5695 * process.c (Fset_process_buffer):
5696 * process.c (Fprocess_buffer):
5697 * process.c (Fprocess_mark):
5698 * process.c (set_process_filter):
5699 * process.c (Fset_process_filter):
5700 * process.c (Fprocess_filter):
5701 * process.c (Fprocess_send_region):
5702 * process.c (Fprocess_send_string):
5703 * process.c (exec_sentinel):
5704 * process.c (Fset_process_sentinel):
5705 * process.c (Fprocess_sentinel):
5706 * process.c (status_notify):
5707 * process.c (Fprocess_status):
5708 * process.c (Fprocess_exit_status):
5709 * process.c (process_send_signal):
5710 * process.c (Fprocess_send_eof):
5711 * process.c (deactivate_process):
5712 * process.c (remove_process):
5713 * process.c (Fdelete_process):
5714 * process.c (kill_buffer_processes):
5715 * process.c (Fprocess_kill_without_query):
5716 * process.c (Fprocess_kill_without_query_p):
5718 * rangetab.c (Fget_range_table):
5719 * rangetab.c (Fput_range_table):
5720 * rangetab.c (Fremove_range_table):
5721 * rangetab.c (Fclear_range_table):
5723 * search.c (Fskip_chars_forward):
5724 * search.c (Fskip_chars_backward):
5725 * search.c (Fskip_syntax_forward):
5726 * search.c (Fskip_syntax_backward):
5727 * search.c (search_command):
5728 * search.c (Freplace_match):
5729 * search.c (Fregexp_quote):
5730 * select.c (Fown_selection_internal):
5731 * select.c (Fselection_owner_p):
5732 * select.c (Fselection_exists_p):
5733 * select.c (Fget_selection_internal):
5736 * symbols.c (Fintern):
5737 * symbols.c (Fintern_soft):
5738 * symbols.c (Funintern):
5739 * symbols.c (Fapropos_internal):
5740 * symbols.c (Fset_default):
5742 * syntax.c (Fsyntax_table_p):
5743 * syntax.c (Fcopy_syntax_table):
5744 * syntax.c (Fset_syntax_table):
5745 * syntax.c (Fchar_syntax):
5746 * syntax.c (syntax_match):
5747 * syntax.c (Fmatching_paren):
5748 * syntax.c (Fforward_word):
5749 * syntax.c (scan_lists):
5750 * syntax.c (Fscan_lists):
5751 * syntax.c (Fscan_sexps):
5752 * syntax.c (Fparse_partial_sexp):
5753 * toolbar.c (Fcheck_toolbar_button_syntax):
5756 * window.c (Fwindowp):
5757 * window.c (Fwindow_live_p):
5758 * window.c (Fwindow_point):
5759 * window.c (Fdelete_window):
5760 * window.c (Fnext_window):
5761 * window.c (Fprevious_window):
5762 * window.c (Fother_window):
5763 * window.c (window_loop):
5764 * window.c (Fget_lru_window):
5765 * window.c (Fsplit_window):
5766 * window.c (Fenlarge_window):
5767 * window.c (Fenlarge_window_pixels):
5768 * window.c (Fshrink_window):
5769 * window.c (Fshrink_window_pixels):
5770 * window.c (change_window_height):
5771 * window.c (Fwindow_configuration_p):
5772 * window.c (Fcurrent_window_configuration):
5774 * casefiddle.c (casify_object):
5775 * casefiddle.c (Fupcase):
5776 * casefiddle.c (Fdowncase):
5777 * casefiddle.c (Fcapitalize):
5778 * casefiddle.c (Fupcase_initials):
5779 * casefiddle.c (casify_region_internal):
5780 * casefiddle.c (casify_region):
5781 * casefiddle.c (Fupcase_region):
5782 * casefiddle.c (Fdowncase_region):
5783 * casefiddle.c (Fcapitalize_region):
5784 * casefiddle.c (Fupcase_initials_region):
5785 * casefiddle.c (Fupcase_word):
5786 * casefiddle.c (Fdowncase_word):
5787 * casefiddle.c (Fcapitalize_word):
5788 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
5789 Replace 0 with '\0' when working with bytes.
5790 Replace initial "(" with "\(" in docstrings.
5792 2000-11-01 Martin Buchholz <martin@xemacs.org>
5794 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5796 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5798 2000-10-31 Martin Buchholz <martin@xemacs.org>
5800 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
5802 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5804 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5807 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5809 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5810 (inhibit_auto_save_session): New variable.
5811 (vars_of_fileio): Declare and initialize them.
5812 * fileio.c (Fdo_auto_save): Don't create session file if
5813 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5815 2000-10-31 Martin Buchholz <martin@xemacs.org>
5817 * sgiplay.c (play_internal): C++ compilability.
5818 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5819 * callproc.c (Fold_call_process_internal):
5820 Remove unused vars `env', `first'.
5821 * scrollbar.c (update_scrollbar_instance):
5822 #### unused var `current_window'.
5823 * redisplay-tty.c: Put currently unused vars insert_mode_on,
5824 etc. within #ifdef NOT_YET.
5825 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5826 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5827 * specifier.c (specifier_instance):
5828 #### unused var `tag'.
5829 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5831 2000-10-27 Martin Buchholz <martin@xemacs.org>
5834 * fns.c (list_sort):
5835 * fns.c (Ffillarray):
5836 * fns.c (bytecode_nconc2):
5839 * fns.c (Fmapconcat):
5840 Be pedantically 64-bit correct. For the time when someone will
5841 want to have a list with length > 2**32.
5843 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5844 Work around MIPSpro compiler bug.
5846 * process-unix.c (unix_kill_child_process): Add snarky comment.
5847 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
5849 * config.h.in: Oops, _getpt ==> _getpty
5851 2000-10-26 Martin Buchholz <martin@xemacs.org>
5855 Use void*, not char*, as return type of alloca().
5857 * alloc.c (free_marker): Side effect inside assert expression!
5859 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
5861 * mule-charset.c (Fset_charset_ccl_program): To check
5862 if the given ccl program is valid, use setup_ccl_program()
5863 instead of CHECK_VECTOR().
5864 (Fmake_charset): Likewise.
5866 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
5868 * faces.c (get_extent_fragment_face_cache_index):
5869 Fix cachel.merged_faces memory leak.
5871 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
5873 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5874 Reset MSB of octets obtained by DECODE_SJIS
5875 because of the incompatibility with Emacs.
5876 (ccl_driver)<CCL_ENCODE_SJIS>:
5877 Set MSB of octets before passing them to
5878 ENCODE_SJIS because of the incompatibility
5881 2000-10-18 Daiki Ueno <ueno@unixuser.org>
5883 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5884 (DECLARE_LRECORD): Undo the last change.
5885 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5887 2000-10-17 Daiki Ueno <ueno@unixuser.org>
5889 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5890 the implementation to lrecord_implementations_table.
5892 2000-10-14 Daiki Ueno <ueno@unixuser.org>
5894 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5895 initial value of `lrecord_type_##c_name' and
5896 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5897 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5898 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5899 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5900 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5902 2000-10-17 Martin Buchholz <martin@xemacs.org>
5904 * miscplay.c (sndcnv8S_2mono):
5905 (sndcnv2monounsigned):
5906 (sndcnvULaw_2linear):
5908 Remove implementation-defined behavior.
5910 2000-10-12 Martin Buchholz <martin@xemacs.org>
5912 * input-method-xlib.c: Warning suppression.
5914 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
5916 * mule-ccl.c: Sync up with Emacs 21.0.90.
5917 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5919 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5921 (ccl_driver[WriteMultibyteChar2]): Bug fix.
5922 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5923 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5924 leading char belongs to official 2-dimensional charset.
5925 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5926 write the given character as is. Otherwise,
5927 if it is a multibyte char, convert it by
5928 non_ascii_set_charptr_emchar, then write it.
5929 (CCL_WRITE_STRING): Likewise.
5930 (ccl_get_compiled_code): New function.
5931 (setup_ccl_program): When ccl_prog is invalid,
5933 (Fregister_code_conversion_map): New function.
5934 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5936 * mule-ccl.h: Sync up with Emacs 21.0.90.
5937 (Fregister_ccl_program): export it.
5939 * redisplay-msw.c (separate_textual_runs):
5940 If ccl program is not valid, don't do ccl conversion.
5942 * redisplay-x.c (separate_textual_runs): Ditto.
5944 * file-coding.c (Fmake_coding_system):
5945 When type is ccl and value is vector, register it
5946 with a proper symbol. And checks whether the
5947 given ccl program is valid.
5948 (mule_decode): When calling ccl_driver, if src indicates
5949 NULL pointer, set an empty string instead.
5950 (mule_encode): Likewise.
5952 2000-10-11 Martin Buchholz <martin@xemacs.org>
5954 The following large batch of changes gets us back to a state of
5955 C++ compilability. Extbyte is now a char, which means that
5956 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5958 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5960 * sound.c (Fplay_sound): Type correctness.
5962 * select-x.c (hack_motif_clipboard_selection): Type correctness.
5963 (x_get_window_property): Type correctness.
5964 (receive_incremental_selection): unsigned char ==> Extbyte
5965 (selection_data_to_lisp_data): unsigned char ==> Extbyte
5966 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5967 (Fx_store_cutbuffer_internal): Type correctness.
5969 * process-unix.c (try_to_initialize_subtty): Type correctness.
5971 * objects-x.c (x_print_color_instance): Type correctness.
5972 (x_print_font_instance): Type correctness.
5973 (x_list_fonts): SExtbyte ==> Extbyte.
5974 (valid_x_font_name_p): SExtbyte ==> Extbyte.
5975 (x_find_charset_font): SExtbyte ==> Extbyte.
5976 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
5977 (truename_via_XListFonts): SExtbyte ==> Extbyte.
5978 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5981 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5982 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5983 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5984 (BYTE_C0_P): Use bit ops for char-signedness safety.
5985 (BYTE_C1_P): Use bit ops for char-signedness safety.
5986 (CHARSET_BY_LEADING_BYTE):
5987 (CHARSET_BY_ATTRIBUTES):
5988 Always use inline function.
5989 Use type_checking_assert.
5992 * mule-charset.c (non_ascii_charptr_copy_char):
5993 Modify to work with both ASCII and non-ASCII characters.
5994 Improve docs and variable names.
5995 Replace over-clever fall-through switch with a simple loop.
5996 (Lstream_get_emchar_1):
5997 Replace over-clever fall-through switch with a simple loop.
5999 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6000 Warning suppression.
6002 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
6003 the return value of Lstream_getc, which could be EOF as well.
6005 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
6007 * lisp.h: Make Extbyte a char, not unsigned char, so that external
6008 APIs can be used on Extbytes without casts. Risky!
6012 * input-method-xlib.c (XIM_init_device):
6013 Use Xlib.h instead of IntrinsicP.h.
6014 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
6015 which will break in X11R7.
6016 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
6017 to call XRegisterIMInstantiateCallback with correct types.
6019 * gui-x.c (button_item_to_widget_value): Type correctness.
6021 * glyphs.c (bitmap_to_lisp_data): Type correctness.
6023 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
6024 (xbm_instantiate_1): Type correctness.
6025 (BUILD_GLYPH_INST): Type correctness.
6027 * fileio.c (Fsubstitute_in_file_name): Type correctness.
6030 (decode_coding_sjis):
6031 (decode_coding_big5):
6032 (decode_coding_ucs4):
6033 (decode_coding_utf8):
6034 (decode_coding_iso2022):
6035 (decode_coding_no_conversion):
6036 Make all decoding functions take an Extbyte * arg.
6037 (encode_coding_sjis):
6038 (encode_coding_big5):
6039 (encode_coding_ucs4):
6040 (encode_coding_utf8):
6041 (encode_coding_iso2022):
6042 (encode_coding_no_conversion):
6043 Make all encoding functions take a Bufbyte * arg.
6044 Use size_t instead of unsigned int for memory sizes.
6045 Only cast to unsigned char whenever dereferencing Extbyte *.
6047 * doc.c (unparesseuxify_doc_string): Type correctness.
6049 * console-x.c (split_up_display_spec):
6050 Rewrite without using details of internal string representation.
6051 (x_semi_canonicalize_device_connection): Type correctness.
6054 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
6055 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
6056 (HAVE_XFREE386): Removed.
6058 * buffer.h (DEC_CHARPTR): `const' correctness.
6059 (bufbyte_strcmp): New.
6060 (bufbyte_memcmp): New.
6062 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
6064 * buffer.h (XCHAR_OR_CHAR_INT):
6065 Always use inline function.
6066 Remove redundant type checking assert() - XINT will abort quite nicely.
6068 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6070 * search.c (Freplace_match): Set newtext to an empty string.
6072 2000-10-10 Martin Buchholz <martin@xemacs.org>
6074 * s/decosf1-3.h: Remove #include of stropts.h
6075 * s/ptx.h: Remove #include of stropts.h
6076 * s/usg5-4.h: Remove #include of stropts.h
6079 Use stropts.h, not sys/stropts.h.
6080 Use strtio.h, not sys/strtio.h.
6082 2000-10-04 Martin Buchholz <martin@xemacs.org>
6084 * XEmacs 21.2.36 is released.
6086 2000-09-21 Andy Piper <andy@xemacs.org>
6088 * glyphs-x.c (x_redisplay_widget): make sure non-structural
6089 changes still involve copying the widget tree.
6090 (update_widget_face): make sure a change is register in the widget
6091 tree. Call update_tab_widget_face appropriately.
6092 (update_tab_widget_face): ditto.
6093 (x_tab_control_redisplay): make sure non-structural changes still
6094 involve copying the widget tree.
6096 2000-08-31 Daiki Ueno <ueno@unixuser.org>
6098 * lread.c (locate_file): Check the path element is non-nil.
6100 2000-10-02 Martin Buchholz <martin@xemacs.org>
6102 * lisp.h: Warning suppression for SCO compilers.
6104 * redisplay-tty.c (reset_tty_modes): Fix crash.
6105 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6107 2000-09-27 Martin Buchholz <martin@xemacs.org>
6109 Big signal/process handling overhaul. Bugs fixed:
6110 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6111 M-x comint-kill-subjob should work for both values nil and t of
6112 process-connection-type. It was broken on most platforms.
6113 Testing on Irix and Cygwin still needed. Other plaforms tested.
6114 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
6115 * process-unix.c: Signal/Process handling overhaul.
6116 (pty_name): make 64 bytes, as `expect' does, for paranoia.
6117 (allocate_pty): Use all available modern methods of allocating
6118 ptys, falling back to old style BSD allocation as a last resort.
6119 Use allegedly more secure Unix98 pty allocation by default.
6120 (allocate_pty_the_old_fashioned_way): New. the last resort.
6121 (unix_create_process): Push ptem, ldterm, ttcompat where
6122 available. Autoconfiscate.
6123 (try_to_initialize_subtty): New.
6124 (unix_kill_child_process): Proper signal handling for ptys on most
6125 platforms, using special knowledge of AIX, BSD, etc...
6126 (unix_create_process): Always disconnect_controlling_terminal() for
6127 subprocesses, whether using ptys or not.
6128 * process.h: Remove old getpt-dependent PTY code.
6129 * process.c (Fprocess_send_signal): New, obvious generic function.
6130 (decode_signal): New.
6131 (Finterrupt_process):
6135 (Fcontinue_process):
6136 (Fsignal_process): Use decode_signal.
6137 (process_send_signal):
6138 Many docstring corrections.
6139 Allow any signal to be sent to a process object.
6140 * config.h.in: Add symbols for big signal/process overhaul.
6141 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6142 * sysproc.h: Include process-related headers, where available:
6143 sys/stropts.h sys/strtio.h pty.h libutil.h
6151 Remove old S&M pty stuff.
6152 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6153 * systty.h: Simplify cpp hackery, improve comments.
6154 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6156 * editfns.c (Fformat_time_string):
6157 Be a little more paranoid with the return value of ctime.
6159 * fileio.c (check_executable):
6161 Use symbolic constants X_OK, W_OK.
6163 * console-x.c (split_up_display_spec): Fix a warning.
6165 2000-10-02 Martin Buchholz <martin@xemacs.org>
6167 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6168 * ntproc.c (sys_spawnve): make_string ==> build_string
6169 Small clarity improvements.
6171 2000-09-30 Martin Buchholz <martin@xemacs.org>
6173 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6175 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6177 * config.h.in (HAVE_STRCASECMP): Remove.
6179 2000-09-29 Martin Buchholz <martin@xemacs.org>
6181 * redisplay-output.c (redisplay_output_pixmap):
6182 Cleaner and possibly more 64-bit correct code.
6184 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
6186 * dumper.c (pdump_load_finish): move restoration of
6187 `noninteractive1' to emacs.c (main_1).
6188 * emacs.c (main_1): protect LISP-visible command-line flags
6191 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
6193 * Makefile.in.in (versionclean): Use EXE_TARGET and
6194 DUMP_TARGET instead of literal program names.
6196 2000-09-20 Martin Buchholz <martin@xemacs.org>
6198 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6200 2000-09-19 Martin Buchholz <martin@xemacs.org>
6202 * *: Spelling mega-patch
6204 2000-09-19 Martin Buchholz <martin@xemacs.org>
6206 * fns.c (bad_bad_turtle):
6207 Delete "Eek!" comment, since we fixed the bug to which it refers.
6209 2000-09-16 Martin Buchholz <martin@xemacs.org>
6211 * alloca.c: Replace REGISTER with register.
6213 2000-09-16 Daiki Ueno <ueno@unixuser.org>
6215 * file-coding.c (ucs_to_char): Use countof.
6217 2000-09-16 Martin Buchholz <martin@xemacs.org>
6219 * file-coding.c: (ucs_to_char):
6220 (complex_vars_of_file_coding):
6221 Use countof instead of sizeof.
6222 Use CHECK_NATNUM instead of CHECK_INT.
6224 * sysdep.c (strcasecmp): Remove.
6225 * device-x.c (ascii_strcasecmp): New.
6226 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6227 Avoid using non-standard non-portable strcasecmp.
6229 2000-09-16 Martin Buchholz <martin@xemacs.org>
6231 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6232 * font-lock.c: remove reference to emacsfns.h.
6233 * search.c: small doc improvement.
6234 * event-Xt.c: correct file names in comments.
6235 * console-x.h Correct file names in comments.
6236 * frame.c: Correct file names in comments.
6237 * event-stream.c: remove Energize from comments.
6239 2000-09-15 Martin Buchholz <martin@xemacs.org>
6241 * symeval.h (DEFERROR_STANDARD):
6244 (DEFSYMBOL_NO_DUMP):
6245 (DEFSYMBOL_MULTIWORD_PREDICATE):
6246 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6248 The construct &##name is not sensible C.
6249 Fixes compilation errors with Unixware native compiler.
6251 2000-09-14 Martin Buchholz <martin@xemacs.org>
6253 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6254 (next_frame_internal): Removed. We now just have next_frame.
6256 Write a simpler and cleaner one-pass algorithm.
6257 Remove called_from_delete_device arg and #ifdefed-out code.
6259 Renamed from prev_frame. Update callers.
6260 Cleaned up to have an analogous implementation to next_frame.
6261 (other_visible_frames_internal): Remove the
6262 called_from_delete_device bogus arg, and hence, remove this
6263 function. Just use other_visible_frames().
6265 * window.c (Fnext_window):
6267 Since next_frame() is guaranteed to return a frame, remove check
6268 for nil inserted in previous patch.
6271 Make code look more like Fnext_window.
6273 Respect the `console' arg when iterating through windows.
6274 Fixes bug: (get-buffer-window buffer t device) not respecting
6276 This function needs more work, as others have pointed out.
6278 * frame.h: Rename prev_frame to previous_frame.
6279 device_matches_console_spec no longer takes a `frame' arg.
6284 Use EMACS_BLOCK_SIGNAL instead of sigblock.
6285 From "Golubev I. N." <gin@mo.msk.ru>.
6287 * make-src-depend: Fix typo.
6289 2000-09-13 Martin Buchholz <martin@xemacs.org>
6291 * window.c (Fnext_window):
6292 next_frame() might return nil, not a frame.
6294 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6296 * frame.c (next_frame_internal):
6297 We've passed a frame if we've passed its device.
6299 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6300 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6302 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
6304 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6305 Allow option to suppress accelerators in menu/dialog items.
6306 (populate_or_checksum_helper): Pass dialog title through above.
6308 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
6310 * event-msw.c (mswindows_key_to_emacs_keysym):
6311 Add "pause" key, fix "menu" key.
6313 2000-09-09 Martin Buchholz <martin@xemacs.org>
6315 * eval.c (reinit_vars_of_eval):
6316 Increase max_lisp_eval_depth to 1000,
6317 required for thai-xtis.el to byte-compile under some circumstances.
6319 2000-09-04 Martin Buchholz <martin@xemacs.org>
6321 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6324 2000-09-01 Martin Buchholz <martin@xemacs.org>
6326 * make-src-depend: Make the generated Makefiles smaller.
6328 * s/hpux.h (SETUP_SLAVE_PTY):
6329 Provide a %d in the format string for the errno argument.
6331 * editfns.c (Ftemp_directory):
6333 Avoid buffer overrun on very long file name.
6335 * input-method-xlib.c (XIM_init_device):
6336 6th parameter of XRegisterIMInstantiateCallback has different
6337 pointer types on different OSes, so simply cast to (void *).
6339 * unexhp9k800.c: Warning fixes. Fiddly changes.
6341 * sysdll.c (dll_open):
6342 shl_load will hang hard if passed a NULL filename.
6343 Simply return NULL for compatibility with dlopen.
6344 * sysdll.c: Conform to XEmacs coding standards.
6346 * sysdep.c (get_pty_max_bytes):
6347 Support pty input lines longer than 512 bytes on HP-UX 10.20.
6349 2000-08-31 Martin Buchholz <martin@xemacs.org>
6351 * tooltalk.c: Add #include <syssignal.h>
6353 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
6355 * s/hpux.h: Don't use undefined function sigunblock().
6357 2000-08-31 Martin Buchholz <martin@xemacs.org>
6359 * config.h.in: Add HAVE_BALLOON_HELP.
6360 * emacs.c: Use HAVE_BALLOON_HELP.
6361 * Makefile.in.in (x_objs):
6362 Make Balloon Help conditional on finding shape.h.
6364 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
6366 * syntax.c (regex_emacs_buffer_p): New variable.
6367 * syntax.h (regex_emacs_buffer_p): extern.
6368 * search.c (looking_at_1):
6370 (fast_string_match):
6371 (search_buffer): Set regex_emacs_buffer_p.
6372 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6373 when before_dot, at_dot, after_dot.
6375 2000-08-23 Andy Piper <andy@xemacs.org>
6377 * gui-x.c (popup_selection_callback): Only set action_occurred
6378 when we really have an image instance.
6379 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6381 2000-08-23 Andy Piper <andy@xemacs.org>
6383 * gui-msw.c (mswindows_handle_gui_wm_command): set
6385 * gui-x.c (popup_selection_callback): ditto.
6387 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6388 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6389 (struct Lisp_Image_Instance): add action_occurred flag.
6391 * glyphs.c (redisplay_subwindow): use action_occurred flag.
6392 (image_instance_changed): ditto.
6393 (reset_frame_subwindow_instance_cache): only unmap windows - do
6394 not remove them from the cache also.
6396 * glyphs-widget.c (tab_control_update): better debug.
6397 (progress_gauge_update): ditto.
6398 (layout_update): ditto.
6399 (layout_instantiate): ditto.
6400 (tab_control_order_only_changed): cope with null pending items.
6402 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6403 debug. Force selection of an item when an action occurred. Cope
6404 with null pending_items.
6405 (mswindows_progress_gauge_redisplay): better debug.
6406 * glyphs-x.c (x_tab_control_redisplay): ditto.
6408 * redisplay.c (redisplay_frame): reset the frame cache if the
6411 * window.c (Fset_window_configuration): potentially re-enable
6413 (window_unmap_subwindows): need to finalize instances here since
6414 it is only used in mark_window_as_deleted.
6416 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
6418 * nas.c (SndOpenDataForReading):
6419 nas.c (WaveOpenDataForReading):
6420 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6421 Somehow escaped from the 2000-08-14 patch.
6423 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6425 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6426 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6428 2000-08-21 Andy Piper <andy@xemacs.org>
6430 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6431 window if it is not already displayed.
6433 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6434 it is not already displayed.
6436 * window.c (Fset_window_configuration): don't reset the frame
6439 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6440 instances from the frame cache if we are actually finalizing them.
6441 (reset_frame_subwindow_instance_cache): reset frame cache only
6442 after unmapping everything.
6443 (map_subwindow): set displayed flag after mapping.
6445 2000-08-21 Martin Buchholz <martin@xemacs.org>
6447 * data.c (indirect_function):
6448 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6450 * eval.c (function_argcount):
6451 Use original function when signaling errors.
6453 2000-08-18 Andy Piper <andy@xemacs.org>
6455 * frame.c (delete_frame_internal): use new
6456 free_frame_subwindow_instances name.
6458 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6459 (add_tab_item): make return type correct.
6460 (mswindows_tab_control_instantiate): assert index of tab.
6461 (mswindows_tab_control_redisplay): Re-code to use
6462 gui_item_equal_sans_selected and gui_item_list_find_selected.
6464 * glyphs-widget.c (tab_control_update): Correct comment.
6466 * window.c (window_unmap_subwindows): use new
6467 unmap_subwindow_instance_cache_mapper.
6468 (window_unmap_subwindows_cache_mapper): deleted.
6469 (Fset_window_configuration): comparisons should now be with
6470 EQ. Preserve the subwindow instance cache across configuration
6472 (allocate_window): ditto.
6473 (make_dummy_parent): ditto.
6475 * glyphs.c (free_frame_subwindow_instances): rename from
6476 free_frame_subwindow_instance_cache. finalize all instances rather
6477 than just those in the display cache.
6478 (finalize_all_subwindow_instances): walk windows unmapping and
6479 finalizing subwindows.
6480 (unmap_subwindow_instance_cache_mapper): moved from
6481 window.c. Allow finalization as well as unmapping.
6483 * gui.c (gui_item_list_find_selected): new function.
6485 * gui.h (gui_item_list_find_selected): declare.
6487 * glyphs-x.c (x_tab_control_redisplay): pick tab
6488 explicitly. Re-code to use gui_item_equal_sans_selected and
6489 gui_item_list_find_selected.
6491 * glyphs-x.h: add lwlib-utils.h
6493 * buffer.c (Frecord_buffer): undo previous change.
6495 2000-08-09 Vin Shelton <acs@xemacs.org>
6497 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6498 possible. Create temporary files more securely. The patch was
6499 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6500 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
6501 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6504 2000-08-07 Ben Wing <ben@xemacs.org>
6506 * getloadavg.c: remove duplicate (and windows-breaking)
6507 includes of fcntl.h and sys/file.h.
6509 * nt.c: remove duplicate getloadavg() definition.
6511 * sysdll.h (Qdll_filename_encoding): add missing stand-in
6514 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
6516 * eval.c (function_argcount): If function needs to be autoloaded
6517 actually use the loaded definition.
6520 2000-08-05 Ben Wing <ben@xemacs.org>
6522 * getloadavg.c: add prototype for getloadavg(). remove
6523 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6524 of the code). remove duplicate header includes.
6526 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6528 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6529 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6530 useful load average.
6532 * alloc.c (reinit_alloc_once_early): removed references to
6533 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6534 the lisp vars are the only things referencing the malloc_sbrk_*
6535 vars, and they were already if 0'd out. these vars only exist
6536 in the older malloc.c, which is basically unused, and they're
6537 only for informational purposes.
6539 * m\*.h: removed useless VIRT_ADDR_VARIES.
6541 * m\powerpc.h: removed stray NO_ARG_ARRAY.
6543 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
6545 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6546 color if the image is a mono pixmap.
6548 2000-07-30 Ben Wing <ben@xemacs.org>
6550 * Makefile.in.in (release):
6553 * buffer.c (directory_is_current_directory):
6554 * dired-msw.c (mswindows_get_files):
6556 * dired.c (Fdirectory_files):
6557 * dired.c (file_name_completion_stat):
6558 * dired.c (Ffile_attributes):
6559 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6560 preprocessor tricks, to avoid problems on some machines
6563 * callproc.c (egetenv): GC docs.
6566 * console-msw.h (struct mswindows_dialog_id):
6567 * lrecord.h (lrecord_type):
6568 New object for use with MSW dialogs.
6570 * console.h (struct console_methods):
6571 New enable/disable frame methods, for proper modal dialogs.
6573 * device-msw.c (msprinter_default_printer): Fix to follow
6574 proper Mule conventions.
6577 * device-msw.c (signal_open_printer_error):
6578 * device-msw.c (msprinter_init_device):
6579 * device-msw.c (ensure_not_printing):
6580 * device-msw.c (plist_get_margin):
6581 * device-msw.c (Fmsprinter_select_settings):
6582 * device-msw.c (finalize_devmode):
6583 * device-msw.c (Fmsprinter_settings_despecialize):
6584 * device-msw.c (signal_enum_priner_error):
6585 * extents.c (decode_extent):
6586 * extents.c (decode_map_extents_flags):
6587 * extents.c (decode_extent_at_flag):
6588 * extents.c (Fextent_at):
6589 * extents.c (Fextents_at):
6590 * extents.c (symbol_to_glyph_layout):
6591 [[[[2]]]] Use structured errors.
6594 * dialog-msw.c (mswindows_is_dialog_msg):
6595 * dialog-msw.c (mark_mswindows_dialog_id):
6596 * dialog-msw.c (dialog_proc):
6597 * dialog-msw.c (handle_question_dialog_box):
6598 * dialog-msw.c (syms_of_dialog_mswindows):
6599 Define new object to clean up marking; use it as a dialog identifier.
6600 Call new delete-dialog-box-hook.
6602 * dialog-x.c (dbox_selection_callback):
6603 * dialog-x.c (dbox_descriptor_to_widget_value):
6604 * dialog-x.c (x_make_dialog_box_internal):
6605 Call new delete-dialog-box-hook.
6609 * dialog.c (syms_of_dialog):
6610 * dialog.c (vars_of_dialog):
6611 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6614 * eval.c (signal_call_debugger):
6615 when noninteractive, output stack traces on the console instead
6616 of in a (never-seen) buffer.
6618 * eval.c (signal_type_error):
6619 * eval.c (invalid_argument_2):
6621 new funs for use w/structured errors.
6624 * event-Xt.c (x_to_emacs_keysym):
6625 * event-Xt.c (describe_event):
6626 * event-Xt.c (emacs_Xt_event_handler):
6627 * event-Xt.c (vars_of_event_Xt):
6629 * event-msw.c (mswindows_wnd_proc):
6630 * event-msw.c (vars_of_event_mswindows):
6631 rename {x,mswindows}-debug-events to debug-{}-events for
6632 consistency with other debug-foo variables.
6635 document next-event more clearly.
6637 * fileio.c (Ffile_name_directory):
6638 * fileio.c (Ffile_name_nondirectory):
6639 * fileio.c (Funhandled_file_name_directory):
6640 * fileio.c (file_name_as_directory):
6641 * fileio.c (Ffile_name_as_directory):
6642 * fileio.c (directory_file_name):
6643 * fileio.c (Fdirectory_file_name):
6644 * fileio.c (Fmake_temp_name):
6645 * fileio.c (Ffile_truename):
6646 * fileio.c (Fsubstitute_in_file_name):
6647 * fileio.c (expand_and_dir_to_file):
6648 * fileio.c (barf_or_query_if_file_exists):
6649 * fileio.c (check_executable):
6650 * fileio.c (Ffile_exists_p):
6651 * fileio.c (Ffile_writable_p):
6652 * fileio.c (Ffile_directory_p):
6653 * fileio.c (Ffile_regular_p):
6654 * fileio.c (Ffile_modes):
6655 * fileio.c (Ffile_newer_than_file_p):
6656 * fileio.c (Fverify_visited_file_modtime):
6657 * fileio.c (Fset_visited_file_modtime):
6658 * fileio.c (auto_save_1):
6663 * frame-msw.c (mswindows_init_frame_1):
6664 * frame-msw.c (mswindows_enable_frame):
6665 * frame-msw.c (error_frame_unsizable):
6666 * frame-msw.c (msprinter_init_frame_1):
6667 * frame-msw.c (msprinter_init_frame_3):
6668 * frame-msw.c (console_type_create_frame_mswindows):
6670 implement new enable/disable frame methods.
6673 * frame-x.c (x_enable_frame):
6674 * frame-x.c (console_type_create_frame_x):
6675 implement new enable/disable frame methods.
6678 * frame.c (Fdisable_frame):
6679 * frame.c (syms_of_frame):
6680 * frame.h (struct frame):
6681 implement new enable/disable frame methods/functions.
6686 * glyphs-msw.c (mswindows_widget_instantiate):
6687 comment that initial-focus should be implemented.
6690 * glyphs-widget.c (check_valid_instantiator):
6691 * glyphs-widget.c (check_valid_orientation):
6692 * glyphs-widget.c (check_valid_tab_orientation):
6693 * glyphs-widget.c (check_valid_justification):
6694 * glyphs-widget.c (check_valid_border):
6695 * glyphs-widget.c (check_valid_callback):
6696 * glyphs-widget.c (check_valid_int_or_function):
6697 * glyphs-widget.c (check_valid_string_or_vector):
6698 * glyphs-widget.c (check_valid_item_list_1):
6699 * glyphs-widget.c (widget_validate):
6700 * glyphs-widget.c (combo_box_validate):
6701 * glyphs-widget.c (widget_instantiate):
6702 * glyphs-widget.c (syms_of_glyphs_widget):
6703 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6704 * glyphs-widget.c (image_instantiator_combo_box):
6705 * glyphs-widget.c (image_instantiator_scrollbar):
6706 * glyphs-widget.c (image_instantiator_tab_control):
6707 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6709 support (unimplemented) keyword initial-focus.
6710 reindent long macros.
6712 * glyphs-x.c (x_redisplay_widget):
6713 * glyphs-x.c (x_button_instantiate):
6714 * glyphs-x.c (x_button_redisplay):
6715 * glyphs-x.c (x_progress_gauge_instantiate):
6716 * glyphs-x.c (x_edit_field_instantiate):
6717 * glyphs-x.c (x_combo_box_instantiate):
6718 * glyphs-x.c (x_tab_control_instantiate):
6719 * glyphs-x.c (x_label_instantiate):
6721 * gui-x.c (button_item_to_widget_value):
6722 * gui-x.c (gui_items_to_widget_values_1):
6723 * gui-x.c (gui_item_children_to_widget_values):
6724 * gui-x.c (gui_items_to_widget_values):
6726 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6727 add new flag to gui-parsing routines to indicate whether
6728 accelerator specs should be supported.
6730 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6732 * glyphs.h (struct Lisp_Image_Instance):
6733 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6734 add initial-focus flag.
6737 * gui.c (syms_of_gui):
6738 * gui.c (vars_of_gui):
6739 clean up menu-no-selection-hook.
6742 support delete-dialog-box-hook.
6744 * lread.c (Fload_internal):
6745 * lread.c (locate_file_in_directory_mapper):
6749 * lrecord.h (struct toolbar_button):
6750 * lrecord.h (syms_of_toolbar):
6751 document how to create a new object.
6753 * menubar-msw.c (mswindows_char_is_accelerator):
6754 may be called on frames w/o menus.
6756 * menubar.c (vars_of_menubar):
6757 clean up :filter docs.
6764 * process-nt.c (validate_signal_number):
6765 * process-nt.c (signal_cannot_launch):
6766 * process-nt.c (nt_create_process):
6767 * process-nt.c (nt_send_process):
6768 * process-nt.c (nt_kill_child_process):
6769 * process-nt.c (nt_open_network_stream):
6770 * process-nt.c (syms_of_process_nt):
6772 delete quote-handling. call new lisp code that does it better.
6774 * process-unix.c (connect_to_file_descriptor):
6775 * process-unix.c (allocate_pty):
6776 * process-unix.c (unix_send_process):
6777 * process-unix.c (unix_kill_child_process):
6778 * process-unix.c (unix_open_network_stream):
6779 * process-unix.c (unix_open_multicast_group):
6783 * process.c (Fstart_process_internal):
6784 (2). need to canonicalize process path even if absolute.
6786 * select-msw.c (symbol_to_ms_cf):
6787 * select-msw.c (ms_cf_to_symbol):
6788 * select-msw.c (cf_is_autofreed):
6789 * select-msw.c (mswindows_destroy_selection):
6791 * select.c (syms_of_select):
6793 support dibv5, fix bugs. (from Mike Alexander)
6795 * select.c (Fget_selection_internal):
6796 * select.c (select_convert_out):
6799 * sysdep.c (xemacs_stat):
6804 but keep original stat() here because we provide encapsulation
6808 * sysfile.h (fstat):
6809 remove stat garbage.
6813 don't include tchar.h. it's inappropriate because it makes
6814 compile-time distinctions when we want runtime distinctions.
6815 (we provide our own tchar replacements)
6818 use default object printer for toolbar-button.
6821 make sure we don't encapsulate.
6823 * window.c (vars_of_window):
6824 emphasize that temp-buffer-show-hook is obsolete.
6826 2000-08-05 Martin Buchholz <martin@xemacs.org>
6828 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6829 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6831 * events.c (Fevent_timestamp_lessp):
6832 Not 64-bit clean. Use EMACS_INT, not int.
6834 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
6836 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6837 unsigned int and changed the last enum to
6838 lrecord_type_last_built_in_type.
6839 (lrecord_implementations_table): changed prototype to know how
6840 long the array is supposed to be.
6841 (lrecord_type_count): new unsigned int to keep track of the
6842 current number of lisp lrecord types.
6843 (DEFINE_EXTERNAL_LRECORD):
6844 (DECLARE_EXTERNAL_LRECORD): Added these two for external
6845 dynamic-modules to declare new lisp types. They are the same
6846 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6847 int for each new type, and increment lrecord_type_count by 1.
6849 * alloc.c (lrecord_implementations_table): Changed to reference
6850 lrecord_type_last_built_in_type for the size of the array.
6851 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6853 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6855 * glyphs.h (check_valid_item_list): Renamed from
6856 check_valid_item_list_1.
6858 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6860 * select.c (Qselect_coerce): New.
6861 * select.c (Vselection_coercion_alist): New.
6862 * select.c (syms_of_select): Declare.
6863 * select.c (get-selection-internal): Use it.
6864 Use the new select-coerce functionality.
6866 * select.c (select_coerce): New.
6867 * select.h (select_coerce): Declare.
6868 New function to coerce one type of data into another.
6870 2000-08-03 Martin Buchholz <martin@xemacs.org>
6872 * callproc.c (Fcall_process_internal):
6873 (Fcall_process_internal):
6874 * process-unix.c (unix_create_process):
6875 Save and restore the value of errno, so that error messages are accurate.
6877 2000-08-01 Martin Buchholz <martin@xemacs.org>
6879 * elhash.c (print_hash_table):
6880 Fix printing of hash tables to also use `key-and-value' instead of `t'.
6881 Prettify docstrings and indentation.
6883 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
6885 * window.c (Fwindow_pixel_edges): Subtract frame border and
6888 2000-07-31 Andy Piper <andy@xemacs.org>
6890 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6891 will acknowledge the change.
6893 * glyphs.h: declare tab_control_order_only_changed.
6895 * glyphs-x.c (x_tab_control_redisplay): use
6896 tab_control_order_only_changed.
6898 * glyphs-widget.c (tab_control_order_only_changed): new function.
6900 * glyphs-msw.c (mswindows_tab_control_redisplay): use
6901 tab_control_order_only_changed.
6903 * gui.c (gui_item_equal_sans_selected): new function.
6904 (gui_item_equal): use it.
6906 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6907 :properties in favor of :items..
6909 * glyphs-widget.c (check_valid_item_list): rename from
6910 check_valid_item_list_1.
6911 (check_valid_item_list_1): renamed.
6912 (combo_box_validate): deprecate :properties in favor of :items.
6913 (widget_instantiate): ditto.
6914 (tab_control_update): ditto.
6915 (image_instantiator_combo_box): ditto.
6916 (image_instantiator_tree_view): ditto.
6917 (image_instantiator_tab_control): ditto.
6918 (layout_post_instantiate): remove dead code.
6920 * print.c (debug_print_no_newline): only write to debugger if in
6923 * elhash.c (Fmake_hash_table): update doc string.
6925 * event-msw.c (mswindows_wnd_proc): don't allow processing of
6926 messages whilst in GC. This at least stops XEmacs crashing but has
6927 the potential for wierd behaviour.
6929 2000-07-31 Martin Buchholz <martin@xemacs.org>
6932 Make existence of s&m files optional.
6934 * s/bsd386.h: Remove HAVE_GETLOADAVG.
6935 * s/freebsd.h: Remove HAVE_GETLOADAVG.
6936 * s/gnu.h: Remove HAVE_GETLOADAVG.
6937 * s/netbsd.h: Remove HAVE_GETLOADAVG.
6938 * s/sol2.h: Remove HAVE_GETLOADAVG.
6939 * lisp.h: Remove getloadavg() declaration.
6941 Include <sys/loadavg.h> if available.
6942 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6943 * config.h.in: Group together getloadavg()-related macros.
6944 Use only configure-time tests to detect getloadavg().
6946 2000-07-30 Martin Buchholz <martin@xemacs.org>
6948 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6950 2000-07-25 Andy Piper <andy@xemacs.org>
6952 * syswindows.h: add tchar.h for native builds.
6954 * frame.c (syms_of_frame): remove set-glyph-image.
6956 * general-slots.h: add Qset_glyph_image.
6958 * glyphs-widget.c (layout_update): add domain arg to
6960 (syms_of_glyphs_widget): remove set-glyph-image.
6962 2000-07-23 Ben Wing <ben@xemacs.org>
6964 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6967 2000-07-22 Andy Piper <andy@xemacs.org>
6969 * symsinit.h: add syms_of_win32().
6971 * gui-msw.c (syms_of_gui_mswindows): remove
6972 Fmswindows_shell_execute.
6973 (Fmswindows_shell_execute): moved to win32.c.
6975 * emacs.c (main_1): add syms_of_win32 ().
6977 * win32.c (init_potentially_nonexistent_functions): rewrite in
6978 compiler-friendly terms.
6979 (Fmswindows_shell_execute): move here from gui-msw.c.
6980 (syms_of_win32): new.
6982 * device-msw.c (Fmswindows_printer_list): clean up args to
6984 Don't include tchar under cygwin or mingw.
6985 (msprinter_default_printer): make cygwin-friendly.
6987 2000-07-21 Andy Piper <andy@xemacs.org>
6989 * glyphs-widget.c (image_instantiator_tree_view): use tab
6990 control's update function.
6991 (layout_property): new function. Retrieve items.
6993 * glyphs-msw.c (mswindows_tree_view_redisplay): new
6994 function. Re-populate the tree view from the pending items.
6996 * glyphs.c (instantiate_image_instantiator): Make sure the domain
6997 is designated the parent if the domain is an image instance. This
6998 is needed so that dirtiness can be cascade up the hierarchy and
6999 thus for layout children to be redisplayed correctly.
7000 (allocate_image_instance): rename glyph -> parent.
7002 * redisplay.h: change redisplay_output_layout signature.
7004 * redisplay-msw.c (mswindows_output_display_block): use domain
7007 * redisplay-x.c (x_output_display_block): use domain arg.
7009 2000-07-10 Andy Piper <andy@xemacs.org>
7011 * window.c (Fset_window_configuration): add comment.
7013 * redisplay-output.c (compare_runes):
7014 (redisplay_output_subwindow): redisplay rather than update subwindow.
7015 (redisplay_output_layout): ditto.
7017 * redisplay-msw.c (mswindows_frame_output_end):
7018 (mswindows_frame_output_end): make defer window pos optional.
7020 * lisp.h: add Flast.
7022 * glyphs.h (struct image_instantiator_methods): add dest_mask top
7023 normalize method. Change update method to be for changed
7024 instantiators. Add redisplay method. Change signature of layout
7026 (struct Lisp_Image_Instance): add instantiator.
7027 (IMAGE_INSTANCE_INSTANTIATOR): new.
7028 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
7029 (XIMAGE_INSTANCE_INSTANTIATOR): new.
7030 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
7033 (find_instantiator_differences): new function.
7034 (Fset_instantiator_property): new convenience function.
7035 (check_image_instance_structure): strictly check for vector
7037 (normalize_image_instantiator): make non-static.
7038 (instantiate_image_instantiator): pass on dest_mask and use new
7039 signatures for image_instance_layout and friends.
7040 (mark_image_instance): mark the instantiator. Mark the subwindow
7041 face not the widget face.
7042 (image_instance_equal): add instantiator.
7043 (image_instance_hash): ditto.
7044 (allocate_image_instance): ditto.
7045 (Fset_image_instance_property): removed.
7046 (Fimage_instance_file_name): ditto.
7047 (Fcolorize_image_instance): ditto.
7048 (image_instance_layout): add offsets to be set.
7049 (update_image_instance): new function. update an image instance
7050 from its changed instantiator.
7051 (inherit_normalize): add dest_mask.
7052 (xbm_normalize): ditto.
7053 (xface_normalize): ditto.
7054 (xpm_normalize): ditto.
7055 (text_update): set_property -> update.
7056 (image_instantiate): use the glyph identity as a hash key, not the
7058 (glyph_width): use new image_instance_layout signature.
7059 (glyph_ascent): ditto.
7060 (glyph_descent): ditto.
7061 (glyph_height): ditto.
7062 (glyph_query_geometry): ressurrect.
7063 (glyph_layout): ditto.
7064 (redisplay_subwindow): update -> redisplay.
7065 (syms_of_glyphs): add Fset_instantiator_property.
7066 (image_instantiator_format_create): set_property -> update.
7069 (autodetect_normalize): add dest_maks to signature.
7070 (x_redisplay_subwindow): update -> redisplay.
7071 (x_redisplay_widget): ditto.
7072 (x_button_redisplay): ditto.
7073 (x_progress_gauge_redisplay): ditto.
7074 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7076 (console_type_create_glyphs_x): update -> redisplay.
7077 (image_instantiator_format_create_glyphs_x): ditto.
7080 (check_valid_instantiator): disallow glyphs in the instantiator,
7081 they must now be vectors.
7082 (check_valid_instantiator_list): ditto.
7083 (glyph_instantiator_to_glyph): use internal symbol rather than
7085 (widget_update): renamed from widget_set_property. Call cascaded
7087 (redisplay_widget): renamed from update_widget.
7088 (widget_layout): image_instance_layout now takes position as well
7090 (widget_normalize): ditto.
7091 (widget_instantiate): ditto.
7092 (tab_control_query_geometry) ditto.:
7093 (tab_control_update): renamed from tab_control_set_property.
7094 (progress_gauge_update): set_property -> update.
7095 (layout_normalize): rewrite so that child instantiators are
7097 (layout_update): new function. Create glyphs from the normalized
7098 children and cope with any other layout keywords. We do not
7099 instantiate children here that will be take care of by
7100 redisplay_output_layout.
7101 (layout_instantiate): call layout_update and not much else.
7102 (layout_post_instantiate): not sure whether this is needed
7104 (layout_query_geometry): query glyph geometry rather than
7105 image_instance geometry.
7106 (layout_layout): set offsets from pass in parameters. Use glyph
7107 geometry and layout functions rather than image instance ones.
7108 (native_layout_layout): ditto.
7109 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7110 (image_instantiator_widget): set_property -> update.
7111 (image_instantiator_buttons): ditto.
7112 (image_instantiator_progress_guage): ditto.
7113 (image_instantiator_tab_control): ditto.
7114 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7115 (image_instantiator_layout): add update method.
7117 * glyphs-msw.c (bmp_normalize):
7118 (mswindows_resource_normalize): add dest_mask so that it can be
7119 proprogated by layout_normalize.
7120 (begin_defer_window_pos): make optional because it may not be the
7121 right thing to do and it introduces differences with X.
7122 (mswindows_unmap_subwindow): ditto.
7123 (mswindows_map_subwindow): ditto.
7124 (mswindows_redisplay_subwindow): renamed from
7125 mswindows_update_subwindow.
7126 (mswindows_redisplay_widget): ditto.
7127 (mswindows_button_redisplay): renamed from
7128 mswindows_button_update. Update is now what the instantiation
7129 function does for a changed instantiator.
7130 (mswindows_progress_gauge_instantiate): set the progress value
7131 here if appropriate.
7132 (mswindows_tab_control_redisplay): cope with re-ordering of the
7133 members of the tab widget by simply selecting the new top
7134 widget. This makes things appear ok if you click on a tab.
7135 (mswindows_combo_box_instantiate): image_instance_layout now takes
7136 position as well as size.
7137 (mswindows_progress_gauge_redisplay): renamed from
7138 mswindows_progress_gauge_update.
7139 (console_type_create_glyphs_mswindows): fix update -> redisplay.
7140 (image_instantiator_format_create_glyphs_mswindows): ditto.
7142 * glyphs-eimage.c (jpeg_normalize):
7145 (tiff_normalize): add dest_mask so that it can be proprogated by
7150 (hash_table_weakness_validate):
7151 (decode_hash_table_weakness):
7152 (Fhash_table_weakness):
7154 (syms_of_elhash): use Ben's naming scheme for hashtable types..
7156 * console.h (struct console_methods): move update_* to
7159 2000-07-20 Ben Wing <ben@xemacs.org>
7161 * *.[ch] (XSETOBJ): remove unused middle argument.
7162 lisp-disunion.h: correct wrap_object() to one argument.
7164 2000-07-15 Ben Wing <ben@xemacs.org>
7167 * s/cygwin32.h (CYGWIN_CONV_PATH):
7168 Add missing logb prototype for v1.1.
7169 Use post-b20 names and alias to pre-b20 names when pre-b20.
7171 * s/windowsnt.h: [5].
7173 2000-07-15 Ben Wing <ben@xemacs.org>
7175 * Makefile.in.in (x_objs):
7176 * Makefile.in.in (sheap_objs):
7177 * Makefile.in.in (objs):
7178 added win32.o, cosmetic cleanups.
7180 * alloc.c (Fmake_byte_code):
7181 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7182 etc. macros which declare their own args now.
7184 * alloc.c (syms_of_alloc):
7185 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7188 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7190 * buffer.c (Fget_file_buffer):
7191 Fixed GCPRO problem.
7193 * buffer.c (get_truename_buffer):
7194 Fixed comment about GC checking.
7196 * buffer.c (syms_of_buffer):
7197 Undeclared those dedicated frame funs.
7201 Define convenience macros for internal/external conversions.
7202 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7203 and Qenvironment_variable_encoding for cleaner code.
7206 Remove dedicated-frame; in lisp.
7208 * bytecode.c (funcall_compiled_function):
7211 * bytecode.c (syms_of_bytecode):
7215 * console-msw.c (mswindows_show_console): Rewrote.
7217 * console-msw.c (Fmswindows_debugging_output): New.
7218 Sends to OutputDebugString (special MSWin debugger interface).
7220 * console-msw.c (Fmswindows_message_box):
7221 Fixed stupid bugs so it works when called from kill-emacs.
7223 * console-msw.c (syms_of_console_mswindows):
7224 Declare Fmswindows_debugging_output.
7227 New MSWin prototypes.
7229 * console-msw.h (struct mswindows_frame):
7230 New entry last-click-mods for improved button-modifier support.
7232 * console-msw.h (FRAME_MSWINDOWS_POPUP):
7233 New struct entry `popup' with corresponding accessor.
7236 * console-x.c (split_up_display_spec):
7237 * console-x.c (get_display_arg_connection):
7238 * console-x.c (x_semi_canonicalize_console_connection):
7239 * console-x.c (x_canonicalize_device_connection):
7240 [[[6]]]: Change char to more specific type.
7241 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7243 * console-x.c (x_semi_canonicalize_console_connection):
7244 * console-x.c (x_canonicalize_device_connection):
7245 [[[9]]]: Fix up error signalling to use new structured error system.
7248 [[[4]]]: Define codesys aliases:
7249 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7250 Qx_color_name_encoding, Qx_display_name_encoding.
7252 * console.h (struct console_methods):
7253 New method make_dialog_box_internal supersedes older
7254 popup_dialog_box method.
7257 Define many new errors, part of new structured errors.
7259 * data.c (init_errors_once_early):
7260 * data.c (syms_of_data):
7263 * device-msw.c (mswindows_init_device):
7264 [[[5]]]: Cleanup to support NT 3.51.
7266 * device-msw.c (decode_devmode): Cleanup.
7268 * device-msw.c (mswindows_handle_print_setup_dialog_box):
7269 * device-msw.c (mswindows_handle_print_dialog_box):
7270 * device-msw.c (mswindows_handle_page_setup_dialog_box):
7271 * device-msw.c (syms_of_device_mswindows):
7272 Delete the dialog box primitives recently introduced by Kirill and
7273 instead interface to general dialog box interface.
7276 * device-x.c (compute_x_app_name):
7277 * device-x.c (x_init_device):
7278 * device-x.c (Fx_valid_keysym_name_p):
7279 * device-x.c (Fx_set_font_path):
7283 * device.h (wrap_device): New.
7284 First of its kind; meant to replace XSETDEVICE.
7286 * dialog-msw.c: Many file-dialog symbols.
7288 * dialog-msw.c (mswindows_register_popup_frame): New.
7289 * dialog-msw.c (mswindows_is_dialog_msg): New.
7290 For supporting kbd traversal in dialog boxes.
7292 * dialog-msw.c (dialog_proc):
7293 Support hitting ESC in dialogs.
7295 * dialog-msw.c (struct):
7296 Common dialog box errors.
7298 * dialog-msw.c (handle_file_dialog_box): New.
7299 Add file dialog code.
7301 * dialog-msw.c (handle_question_dialog_box):
7302 Redo existing code to support new question dialog syntax.
7304 * dialog-msw.c (console_type_create_dialog_mswindows):
7305 We support new dialog console method.
7307 * dialog-msw.c (syms_of_dialog_mswindows):
7308 * dialog-msw.c (vars_of_dialog_mswindows):
7309 New file dialog symbols, vars.
7312 * dialog-x.c (maybe_run_dbox_text_callback):
7313 * dialog-x.c (dbox_descriptor_to_widget_value):
7314 * dialog-x.c (x_make_dialog_box_internal):
7315 * dialog-x.c (console_type_create_dialog_x):
7316 Mule-ize entire file.
7317 Redo to support question dialog syntax.
7321 * dialog.c (Fmake_dialog_box_internal):
7322 * dialog.c (syms_of_dialog):
7323 Kill old popup-dialog-box, replace with new primitive.
7324 Just call device method or signal error.
7326 * eldap.c (Fldap_open):
7327 * eldap.c (Fldap_search_basic):
7328 * eldap.c (Fldap_add):
7329 * eldap.c (Fldap_modify):
7334 * emacs.c (make_arg_list_1):
7335 * emacs.c (make_arg_list):
7336 Mule-ize call to dll_init().
7340 * emacs.c (make_argc_argv):
7341 * emacs.c (free_argc_argv):
7342 * emacs.c (init_cmdargs):
7344 * emacs.c (Fkill_emacs):
7345 * emacs.c (Fdump_emacs):
7346 Update comments about what can be used in syms_* etc.
7347 Call init_win32() when necessary.
7348 Fix up MS Win dialog box in kill-buffer to actually work right.
7359 * eval.c (condition_case_3):
7361 * eval.c (function_argcount):
7362 * eval.c (funcall_lambda):
7365 * eval.c (type_error): New.
7366 * eval.c (maybe_type_error): New.
7367 * eval.c (continuable_type_error): New.
7368 * eval.c (maybe_continuable_type_error): New.
7369 * eval.c (type_error_with_frob): New.
7370 * eval.c (maybe_type_error_with_frob): New.
7371 * eval.c (continuable_type_error_with_frob): New.
7372 * eval.c (maybe_continuable_type_error_with_frob): New.
7373 New functions for use with structured errors.
7376 * event-Xt.c (x_event_to_emacs_event):
7377 Buttons are now modifiers too.
7379 * event-Xt.c (emacs_Xt_current_event_timestamp):
7380 Implement new event method.
7381 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7384 * event-msw.c (ntpipe_shove_writer): [5].
7385 * event-msw.c (mswindows_enqueue_mouse_button_event):
7386 * event-msw.c (mswindows_drain_windows_queue):
7387 * event-msw.c (mswindows_wnd_proc): [7].
7388 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7389 * event-msw.c (mswindows_modifier_state):
7390 Throughout: support new button modifiers.
7392 * event-msw.c (emacs_mswindows_current_event_timestamp):
7393 Implement new event method.
7394 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7397 * event-stream.c (event_stream_current_event_timestamp): New.
7398 * event-stream.c (maybe_kbd_translate): New functionality.
7399 * event-stream.c (vars_of_event_stream):
7400 Document new kbd-translate-table functionality.
7402 * event-stream.c (Fcurrent_event_timestamp): New.
7403 New primitive for use in fabricated events.
7404 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7406 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7409 * events.c (Fmake_event):
7410 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7414 * events.c (format_event_object): fix gcc warnings.
7416 * events.c (Fevent_timestamp): Document new primitives.
7418 * events.c (TIMESTAMP_HALFSPACE): New.
7420 * events.c (Fevent_timestamp_lessp): New. New primitive for
7421 comparing timestamps correctly (half-space algorithm).
7423 * events.c (Fevent_modifier_bits): Doc fix.
7425 * events.c (Fevent_modifiers): Major doc addition.
7426 * events.c (event_x_y_pixel_internal): Typo fix.
7427 * events.c (syms_of_events): Declare new primitives.
7430 Update long comment for button modifiers, timestamps.
7432 * events.h (struct event_stream):
7433 New current_event_timestamp method.
7436 * extents.c (extent_in_region_p):
7437 * extents.c (decode_extent):
7438 * extents.c (Fset_extent_parent):
7439 * extents.c (decode_map_extents_flags):
7443 * extents.c (struct extent_at_arg):
7444 * extents.c (decode_extent_at_flag):
7445 * extents.c (extent_at_mapper):
7446 * extents.c (extent_at_bytind):
7447 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7448 * extents.c (Fextents_at): New primitive. [9].
7449 * extents.c (symbol_to_glyph_layout): [9].
7450 Support new primitive `extents-at'.
7453 * extents.c (get_text_property_bytind):
7454 extent_at_bytind has another arg.
7457 * extents.c (syms_of_extents): New primitive.
7459 * file-coding.c (Fmake_coding_system): [1].
7460 * file-coding.c (subsidiary_coding_system): fix gcc warning
7461 * file-coding.c (syms_of_file_coding): [2].
7463 * fileio.c (Fexpand_file_name):
7464 * fileio.c (Fsysnetunam):
7465 * fileio.c (Ffile_exists_p):
7466 * fileio.c (Ffile_executable_p):
7467 * fileio.c (Fverify_visited_file_modtime):
7470 * fileio.c (syms_of_fileio): [2].
7472 * filelock.c (lock_file_1):
7473 * filelock.c (current_lock_owner):
7474 * filelock.c (lock_if_free):
7475 * filelock.c (lock_file):
7476 * filelock.c (unlock_file):
7479 * fns.c (concat): Fix gcc warning.
7482 * fns.c (Fold_member):
7484 * fns.c (Fold_memq):
7485 * fns.c (memq_no_quit):
7487 * fns.c (Fold_assoc):
7489 * fns.c (Fold_assq):
7490 * fns.c (assq_no_quit):
7492 * fns.c (Fold_rassoc):
7494 * fns.c (Fold_rassq):
7495 * fns.c (rassq_no_quit):
7497 * fns.c (Fold_delete):
7499 * fns.c (Fold_delq):
7500 * fns.c (delq_no_quit):
7501 * fns.c (Fremassoc):
7503 * fns.c (remassq_no_quit):
7504 * fns.c (Fremrassoc):
7505 * fns.c (Fremrassq):
7506 * fns.c (remrassq_no_quit):
7511 * frame-msw.c (mswindows_init_frame_1):
7512 * frame-msw.c (mswindows_delete_frame):
7513 Register popups with dialog code so keyboard traversing works.
7515 * frame-tty.c (tty_raise_frame_no_select): [1].
7518 * frame-x.c (x_set_frame_text_value):
7519 * frame-x.c (x_set_frame_properties):
7520 * frame-x.c (x_create_widgets):
7524 * frame.c (Fmouse_pixel_position): Minor doc fixes.
7526 * frame.h (wrap_frame): New.
7527 Macro like wrap_device.
7530 * general.c (SYMBOL):
7531 * general.c (syms_of_general):
7532 Major reorg. This is now just a wrapper and symbols themselves
7533 are listed in general-slots.h.
7535 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7536 * glyphs-msw.c (mswindows_resource_instantiate): [5].
7538 * glyphs-msw.c (mswindows_native_layout_instantiate):
7539 Add DS_CONTROL so keyboard traversal will work.
7542 * glyphs-widget.c (syms_of_glyphs_widget):
7543 Move some symbols to general-slots.h.
7546 * glyphs-x.c (xbm_instantiate_1):
7547 * glyphs-x.c (x_xbm_instantiate):
7548 * glyphs-x.c (x_xface_instantiate):
7549 * glyphs-x.c (autodetect_instantiate):
7550 * glyphs-x.c (cursor_font_instantiate):
7551 * glyphs-x.c (x_update_widget):
7552 * glyphs-x.c (x_widget_instantiate):
7553 * glyphs.c (bitmap_to_lisp_data):
7554 * glyphs.c (pixmap_to_lisp_data):
7557 * glyphs.c (syms_of_glyphs):
7561 * gui-x.c (print_widget_value):
7562 * gui-x.c (menu_separator_style_and_to_external):
7563 * gui-x.c (add_accel_and_to_external):
7564 * gui-x.c (button_item_to_widget_value):
7565 * gui-x.c (gui_items_to_widget_values_1):
7566 * gui-x.c (gui_items_to_widget_values):
7567 * gui-x.c (syms_of_gui_x):
7568 * gui-x.c (vars_of_gui_x):
7569 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
7573 Muleize, prototype changes matching gui-x.c.
7576 * gui.c (separator_string_p):
7577 * gui.c (gui_item_add_keyval_pair):
7578 * gui.c (make_gui_item_from_keywords_internal):
7579 * gui.c (signal_too_long_error):
7580 * gui.c (parse_gui_item_tree_item):
7581 * gui.c (syms_of_gui):
7582 * gui.c (vars_of_gui):
7584 menu-no-selection-hook moved here (used by MSWin).
7585 Move some symbols to general-slots.h.
7589 * insdel.c (get_buffer_pos_char):
7590 * insdel.c (get_buffer_range_char):
7593 * keymap.c (keymap_lookup_directly):
7594 * keymap.c (keymap_store):
7595 * keymap.c (ensure_meta_prefix_char_keymapp):
7596 * keymap.c (describe_map):
7598 Support new button modifiers.
7600 * lisp-disunion.h (wrap_object):
7601 * lisp-disunion.h (XSETOBJ):
7602 Rename make_obj to wrap_object.
7605 * lisp-union.h (make_int):
7606 * lisp-union.h (make_char):
7607 Support wrap_object.
7610 * lisp.h (LIST_LOOP):
7611 * lisp.h (EXTERNAL_LIST_LOOP):
7612 * lisp.h (LIST_LOOP_2):
7613 * lisp.h (EXTERNAL_LIST_LOOP_1):
7614 * lisp.h (EXTERNAL_LIST_LOOP_2):
7615 * lisp.h (EXTERNAL_LIST_LOOP_3):
7616 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7617 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7618 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7619 * lisp.h (EXTERNAL_ALIST_LOOP_5):
7620 * lisp.h (EXTERNAL_ALIST_LOOP_6):
7621 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7622 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7623 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7624 * lisp.h (struct Lisp_Symbol):
7625 * lisp.h (maybe_continuable_error_with_frob):
7626 Fix up section comments.
7627 Add new types for char to indicate usage.
7628 Delete symbols auto-generated from general-slots.h.
7629 Add prototypes for structured error functions.
7630 Add long comments describing looping macros and change interface
7631 so that lvalues are automatically declared.
7632 Add NO_DECLARE macro in case callers want to declare lvalues
7635 * lread.c (read_syntax_error):
7636 * lread.c (continuable_read_syntax_error):
7637 * lread.c (read_structure):
7638 * lread.c (sequence_reader):
7639 * lread.c (read_list_conser):
7640 * lread.c (read_compiled_function):
7641 Rename syntax_error and continuable_syntax_error to avoid clash
7642 with same-named structured error functions.
7644 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7645 * menubar-msw.c (populate_menu_add_item):
7646 * menubar-msw.c (populate_or_checksum_helper):
7651 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7652 Mule-ize whole file.
7654 * menubar.c (Fnormalize_menu_item_name): Add optimization.
7656 * mule-charset.c (Fmake_charset):
7657 * mule-wnnfns.c (Fwnn_set_param):
7660 * ntproc.c (create_child):
7661 * ntproc.c (Fwin32_set_current_locale):
7662 Add comments portending doom.
7665 * objects-msw.c (old_font_enum_callback_2):
7666 * objects-msw.c (font_enum_callback_1):
7667 * objects-msw.c (mswindows_enumerate_fonts):
7671 * objects-x.c (allocate_nearest_color):
7672 * objects-x.c (x_parse_nearest_color):
7673 * objects-x.c (x_initialize_color_instance):
7674 * objects-x.c (x_print_color_instance):
7675 * objects-x.c (x_finalize_color_instance):
7676 * objects-x.c (x_valid_color_name_p):
7677 * objects-x.c (x_initialize_font_instance):
7678 * objects-x.c (x_print_font_instance):
7679 * objects-x.c (valid_x_font_name_p):
7680 * objects-x.c (truename_via_FONT_prop):
7681 * objects-x.c (truename_via_random_props):
7682 * objects-x.c (truename_via_XListFonts):
7683 * objects-x.c (x_font_truename):
7684 * objects-x.c (x_font_instance_truename):
7685 * objects-x.c (x_font_instance_properties):
7686 * objects-x.c (x_list_fonts):
7687 * objects-x.c (x_find_charset_font):
7688 Mule-ize entire file.
7695 * print.c (std_handle_out_external):
7696 * print.c (debug_print_no_newline):
7697 * print.c (syms_of_print):
7698 Output to all debugger kinds in debug-print.
7699 Fix console-output code under MSWin to actually work.
7701 * process-nt.c (send_signal):
7702 * process-nt.c (nt_create_process):
7703 Use newer Unicode macros.
7705 * process-unix.c (unix_create_process):
7706 * process-unix.c (unix_canonicalize_host_name):
7707 * process-unix.c (unix_open_network_stream):
7713 * search.c (syms_of_search):
7716 * select-msw.c (mswindows_destroy_selection):
7719 * select-x.c (symbol_to_x_atom):
7722 * select.c (syms_of_select):
7725 * sound.c (Fplay_sound_file):
7729 * specifier.c (decode_specifier_type):
7730 * specifier.c (Fvalid_specifier_locale_type_p):
7731 * specifier.c (check_valid_locale_or_locale_type):
7732 * specifier.c (decode_locale):
7733 * specifier.c (decode_locale_type):
7734 * specifier.c (decode_locale_list):
7735 * specifier.c (check_valid_domain):
7736 * specifier.c (decode_specifier_tag_set):
7737 * specifier.c (Fcanonicalize_tag_set):
7738 * specifier.c (Fdefine_specifier_tag):
7739 * specifier.c (Fspecifier_tag_predicate):
7740 * specifier.c (check_valid_inst_list):
7741 * specifier.c (check_valid_spec_list):
7742 * specifier.c (decode_how_to_add_specification):
7743 * specifier.c (check_modifiable_specifier):
7744 * specifier.c (specifier_add_spec):
7745 * specifier.c (boolean_validate):
7746 * specifier.c (display_table_validate):
7749 * specifier.c (syms_of_specifier):
7750 Move some symbols to general-slots.h.
7754 * symbols.c (Fmapatoms):
7755 * symbols.c (Fapropos_internal):
7758 * symbols.c (set_default_buffer_slot_variable):
7759 * symbols.c (set_default_console_slot_variable):
7762 * symbols.c (defsymbol_massage_name_1):
7763 * symbols.c (defkeyword_massage_name):
7764 * symbols.c (deferror_1):
7765 * symbols.c (deferror):
7766 * symbols.c (deferror_massage_name_and_message):
7768 * symeval.h (DEFSYMBOL):
7769 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7771 * symbols.c (syms_of_symbols):
7775 * symsinit.h (init_win32): New.
7776 Also new is syms_of_dialog_mswindows.
7779 Add new Unicode macros, missing Cygwin wide-char functions,
7780 convenience conversion macros for Qmswindows_tstr, macros for
7781 encapsulating required MSWin <-> Cygwin filename conversions,
7782 prototype for dynamically-extracted (not in NT 3.51) functions.
7787 * tooltalk.c (Fadd_tooltalk_message_arg):
7788 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7789 * tooltalk.c (Fadd_tooltalk_pattern_arg):
7792 * tooltalk.c (syms_of_tooltalk):
7796 * unexnt.c (unexec):
7797 Fix up headers, declaration of unexec() to be more standard.
7799 2000-07-20 Martin Buchholz <martin@xemacs.org>
7801 * offix.h: Revert change to guard macros - they're used in offix.c!
7803 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7805 * lisp.h: Defsubred Fdelete.
7807 * console-msw.h: (msprinter_default_printer): Added.
7809 * console-msw.c (msprinter_canonicalize_console_connection):
7810 (msprinter_canonicalize_device_connection): Added.
7812 * device-msw.c (msprinter_default_printer):
7813 (Fmswingows_get_default_printer):
7814 (signal_enum_priner_error):
7815 (Fmswingows_printer_list): Added.
7817 2000-07-19 Martin Buchholz <martin@xemacs.org>
7819 * XEmacs 21.2.35 is released.
7821 2000-07-19 Martin Buchholz <martin@xemacs.org>
7823 * select-x.c (x_handle_selection_request):
7824 Text selected in xemacs and pasted into xterm failed to appear.
7825 Spelling fixes and cosmetic changes.
7827 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7829 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7830 XEmacs frame (fix for doubling chars in dialog boxes).
7832 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7834 * select.c (select_convert_in, select_convert_out):
7835 Don't call intern() every time.
7837 * select.c (Qselect_convert_in, Qselect_convert_out): New.
7838 * select.c (vars_of_select): Initialise them.
7840 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7842 * select.c (selection-coercible-types): New.
7844 * select.c (own-selection-internal):
7845 * select.c (get-selection-internal):
7846 MULE bug fix - these should default to COMPOUND_TEXT and not
7847 STRING for MULE. I think.
7849 * select.c (select_convert_out): Use selection-coercible-types
7850 to find types that we can attempt to perform coercions on.
7852 2000-07-18 Martin Buchholz <martin@xemacs.org>
7856 Add coding: cookie to identify encoding.
7858 * mule-canna.c (CANNA_mode_keys): make static.
7859 Use proper prototypes, even for functions of no arguments.
7860 Remove external prototype for Fding().
7862 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7864 * select.c (syms_of_select): Add missing DEFSUBR.
7866 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7868 * select.c (get_selection_internal, own_selection_internal):
7869 Make the type default to STRING, rather than placing a nil type
7870 into Vselection_alist.
7872 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7874 * gpmevent.c (tty_selection_exists_p):
7875 * gpmevent.c (tty_own_selection):
7876 Updated parameter lists.
7878 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7880 * select.h (selection-alist): Removed declaration.
7882 * select.h (get_local_selection):
7883 * select.c (get_local_selection):
7886 * select.h (convert_selection): Removed declaration.
7887 * select.c (convert_selection): Removed.
7888 This function belongs in Lisp.
7890 * select.h (select_convert_in): Declare.
7891 * select.h (select_convert_out): Declare.
7892 * select.c (select_convert_in): New.
7893 * select.c (select_convert_out): New.
7894 New conversion functions for other files to call.
7896 * select.h (select_notify_buffer_kill): Declare.
7897 * select.c (select_notify_buffer_kill): New.
7898 New functions that get called from kill-buffer.
7900 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7901 X-specific lisp code.
7903 * select.h: Declare some of the lisp-visible functions for
7906 * select.c (clean_local_selection_data): Removed. This was
7907 a disgusting function, and previously should have been in
7908 select-x.c in any case. The functionality is now provided
7909 in select-convert-from-integer (select.el).
7911 * select.c (available-selection-types): Fixed stupidity where
7912 INTEGER and ATOM got added twice. Also add STRING when we see an
7915 * select.c (get-selection-internal): Removed symbol stripping. No
7916 longer causes conversion when data comes from the internal cache.
7918 * select.c (syms_of_select): Added new functions.
7920 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7921 error checking - previously this called abort!
7923 * select-x.c (x_own_selection): Changed comment.
7925 * select-x.c (x_handle_selection_request): Use select_convert_out.
7926 Don't mess with selection-alist; it's an internal variable of select.c.
7928 * select-x.c (x_get_foreign_selection): Use select_convert_in.
7930 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7931 rather than messing with selection-alist.
7933 * select-msw.c (mswindows_get_foreign_selection):
7934 Use TO_INTERNAL_FORMAT rather than hacking.
7936 2000-07-14 Martin Buchholz <martin@xemacs.org>
7938 * process-unix.c (unix_open_multicast_group):
7939 (unix_open_multicast_group): Remove useless casts.
7941 2000-07-13 Martin Buchholz <martin@xemacs.org>
7943 * sound.c (Fplay_sound): Fix `unused variable' warning.
7945 * emacs.c (main): Use correct type for _environ on SCO5.
7947 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7949 * console.h (own_selection_method):
7950 * console.h (selection_exists_p_method):
7951 * console.h (available_selection_types_method): New.
7952 * console.h (register_selection_data_type_method): New.
7953 * console.h (selection_data_type_name): New.
7955 * console-msw.h (mswindows_destroy_selection): Declare it. New
7956 function & alist to track GlobalAlloc()'d handles that need
7957 releasing when the clipboard data gets replaced or emptied.
7959 * event-msw.c (mswindows_wnd_proc): Call it.
7961 * lisp.h, general.c (Qappend): New symbol representing a
7964 * select.c (own-selection-internal):
7965 * select.c (selection-exists-p):
7966 * select.c (available-selection-types): New.
7967 * select.c (register-selection-data-type): New.
7968 * select.c (selection-data-type-name): New. New functions to deal
7969 with device-specific selection data formats.
7970 * select.c (selection-converter-out-alist): Renamed.
7971 * select.c (selection-converter-in-alist): New.
7972 * select.c (selection-appender-alist): New. Added new alists.
7973 * select.c (syms_of_select, vars_of_select): Added new symbols &
7975 * select.c (get_local_selection): Split.
7976 * select.c: Removed spurious type checking - selections may now be
7977 of any type, not just strings.
7978 * select.c (own-selection-internal):
7980 * select.h, select.c (convert_selection): New. Created
7981 convert_selection() function based on get_local_selection().
7982 * select.h, select.c (QCF_*): New symbols representing mswindows
7984 * select.h, select.c (Qreplace_all, Qreplace_existing): New
7985 symbols representing `how-to-add' modes.
7987 * select-msw.c (x_sym_p): New.
7988 * select-msw.c (symbol_to_ms_cf): New.
7989 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7990 symbols & clipboard formats. Can also handle string names.
7991 * select-msw.c (mswindows_own_selection):
7992 * select-msw.c (mswindows_selection_exists_p):
7993 Added `data-type' parameter. Use it.
7994 * select-msw.c (mswindows_available_selection_types): New.
7995 * select-msw.c (mswindows_register_selection_data_type): New.
7996 * select-msw.c (mswindows_selection_data_type_name): New.
7997 * select-msw.c (mswindows_own_selection):
7998 * select-msw.c (mswindows_get_foreign_selection):
7999 * select-msw.c (mswindows_selection_exists_p): Rewrote.
8000 * select-msw.c (console_create_select_mswindows): Added new methods.
8001 * select-msw.c (mswindows_destroy_selection): New.
8002 * select-msw.c (Vhandle_alist): New list.
8003 * select-msw.c (mswindows_own_selection):
8005 * select-x.c (x_own_selection):
8006 * select-x.c (x_selection_exists_p):
8007 * select-x.c: Added some comments about maybe using new
8009 * select-x.c (x_own_selection):
8011 * specifier.c: Remove definition of Qappend (now in general.c)
8012 * specifier.c (syms_of_specifier): Remove Qappend.
8014 2000-07-12 Martin Buchholz <martin@xemacs.org>
8016 * config.h.in: Add socklen_t.
8018 * s/decosf4-0.h: No special compiler flags needed or desired.
8019 In particular, undefine _BSD for DEC OSF 4.0.
8021 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8023 * redisplay-msw.c (msprinter_frame_output_end): Added.
8024 (console_type_create_redisplay_mswindows): Referred the above.
8026 * frame.c (setup_frame_without_minibuffer): Do not create a
8027 default minibuffer frame on a printer device.
8029 * frame-msw.c (apply_dc_geometry): Added.
8030 (msprinter_start_page):
8031 (msprinter_init_frame_3):
8032 (msprinter_eject_page): Use it.
8034 * console-msw.h (struct msprinter_frame): Added pix_left and top,
8035 and removed residual duplex and orientation properties.
8037 2000-07-11 Martin Buchholz <martin@xemacs.org>
8039 * eval.c (function_argcount): Work around a DEC CC compiler bug.
8041 * unexalpha.c: Remove system prototypes from C sources!
8043 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
8045 * eval.c: Remove references to M-x edit-options in DEFUNs for
8046 `defvar' and `defconst'.
8048 2000-07-09 Martin Buchholz <martin@xemacs.org>
8050 * config.h.in: Remove SMART_INCLUDE hackery.
8053 * config.h.in: Don't use SMART_INCLUDE.
8055 * postgresql.h: Include libpq-fe.h here. Fix typo.
8056 * inline.c: Simply #include "postgresql.h"
8058 - Don't use SMART_INCLUDE
8059 - Use simply "const".
8060 - Use standard doc string conventions.
8061 - Use correct type for result of PQstatus.
8063 2000-07-09 Martin Buchholz <martin@xemacs.org>
8065 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
8067 C++ compilation changes.
8068 * config.h.in (EXTERN_C): Define.
8069 * config.h.in (not): This is also a C++ keyword.
8070 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8071 * cm.c: Use EXTERN_C.
8072 * redisplay-tty.c: Use EXTERN_C.
8073 * sysdep.c: Use EXTERN_C. Remove Gould support.
8075 2000-07-09 Martin Buchholz <martin@xemacs.org>
8077 * general.c: Remove duplicate definition for Qfunction.
8079 2000-07-08 Ben Wing <ben@xemacs.org>
8081 * device-msw.c (msprinter_init_device):
8082 * device-msw.c (sync_printer_with_devmode):
8083 * device-msw.c (handle_devmode_changes):
8084 * device-msw.c (print_dialog_worker):
8085 * device-msw.c (Fmsprinter_apply_settings):
8086 * device-msw.c (hash_devmode):
8087 * device-msw.c (Fmsprinter_settings_despecialize):
8088 use Qmswindows_tstr, not Qctext.
8090 * vm-limit.c (check_memory_limits):
8091 avoid infinite loop printing warning messages.
8093 2000-07-05 Craig Lanning <lanning@scra.org>
8095 * Makefile.in.in: Add support for including the Windows resources
8096 when building with the cygwin and mingw targets.
8098 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8099 not set or not correct.
8100 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8101 (init_initial_directory): Don't try to use $PWD on the
8102 WIN32_NATIVE target.
8105 [[Add -mwindows to eliminate console window.]] not required --ben
8106 (HAVE_NATIVE_SOUND): removed; now handled by configure.
8107 (MAIL_USE_POP): removed; now handled by configure.
8109 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8110 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8111 (HAVE_NATIVE_SOUND): removed; now handled by configure.
8112 (MAIL_USE_POP): removed; now handled by configure.
8113 (ENCAPSULATE_STAT): from Dan Holmsand, added.
8114 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8115 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8117 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8118 up from <winsock.h> via systime.h.
8119 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8120 (getpagesize): from Dan Holmsand, added.
8121 Added #endif which was left dangling by Ben's mega patch; added
8122 comment to help prevent this in the future.
8124 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8126 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8128 * console-msw.h (struct mswindows_device): Removed unnecessary
8129 cached device geometry values.
8130 Added update_tick and an accessor macro.
8131 (Lisp_Devmode): Added lrecord declaration.
8132 (struct msprinter_device): Contain devmode as a Lisp object.
8133 Added mswindows_get_selected_frame_hwnd();
8135 * console.h (struct console_methods): Indentation nitpicking.
8137 * device-msw.c (mswindows_init_device): Do not initialize geometry
8138 cache. Initialize update tick.
8139 (mswindows_device_system_metrics): Ask the device for its geometry.
8140 (global_free_2_maybe):
8141 (devmode_to_hglobal):
8142 (handle_printer_changes):
8143 (ensure_not_printing):
8144 (print_dialog_worker):
8145 (Fmsprinter_print_setup_dialog):
8146 (Fmsprinter_print_dialog):
8149 (Fmsprinter_page_setup_dialog): Added functions.
8150 (sync_printer_with_devmode):
8151 (handle_devmode_changes):
8152 (Fmsprinter_get_settings):
8153 (Fmsprinter_select_settings):
8154 (Fmsprinter_apply_settings):
8156 (Fmsprinter_settings_copy):
8157 (Fmsprinter_settings_despecialize):
8161 (hash_devmode): Added functions
8162 (syms_of_device_mswindows): Init devmode lrecord class.
8164 * device.h: Added an exfun for find-device.
8166 * event-msw.c (mswindows_wnd_proc): Do not update the cached
8167 geometry; although, recreate the device compatible DC.
8169 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8170 (msprinter_init_frame_3):
8171 (msprinter_frame_property):
8172 (msprinter_internal_frame_property_p):
8173 (msprinter_frame_properties):
8174 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8175 print job properties (will move to device settings).
8177 * lisp.h: Added symbols.
8179 * general.c (syms_of_general): Declared them.
8181 * hash.c (string_hash): Added.
8183 * lrecord.h (lrecord_type): Added devmode lrecord type.
8185 2000-07-02 Mike Sperber <mike@xemacs.org>
8187 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8190 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
8192 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8195 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
8197 * data.c (Fstring_to_number): Don't recognize floating point if
8200 2000-06-22 Martin Buchholz <martin@xemacs.org>
8202 * glyphs-widget.c (tab_control_query_geometry):
8203 (widget_query_geometry):
8204 (button_query_geometry):
8205 * glyphs.c (text_query_geometry):
8206 Enforce type correctness.
8208 2000-06-18 Martin Buchholz <martin@xemacs.org>
8210 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8211 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8213 2000-06-17 Martin Buchholz <martin@xemacs.org>
8215 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8216 conflicts with gcc's fixincluded version of FOO.h.
8218 * glyphs.h (image_instance_geometry): Remove trailing `,'
8220 2000-06-08 Mike Alexander <mta@arbortext.com>
8222 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8223 (shove_thread): Don't write the same output twice
8224 (make_ntpipe_output_stream): Increase priority of shove thread
8225 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8227 (ntpipe_shove_closer): Don't delete the pipe until we're done with
8230 2000-06-12 Ben Wing <ben@xemacs.org>
8232 * s\mingw32.h (sigset):
8233 * s\windowsnt.h (sigset):
8234 rename msw_ to mswindows_ for consistency with general convention.
8236 2000-06-12 Ben Wing <ben@xemacs.org>
8239 * console-msw.c (mswindows_get_console_hwnd):
8240 * console-msw.c (mswindows_ensure_console_allocated):
8241 * console-msw.c (mswindows_hide_console):
8242 * console-msw.c (mswindows_show_console):
8243 * console-msw.c (mswindows_ensure_console_buffered):
8244 * console-msw.c (mswindows_output_console_string):
8245 * console-msw.c (mswindows_windows9x_p):
8247 * device-msw.c (mswindows_get_workspace_coords):
8248 * device-msw.c (mswindows_device_system_metrics):
8249 * dialog-msw.c (mswindows_popup_dialog_box):
8250 * event-msw.c (mswindows_wnd_proc):
8251 * frame-msw.c (mswindows_size_frame_internal):
8252 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8253 * menubar-msw.c (displayable_menu_item):
8254 * menubar-msw.c (mswindows_char_is_accelerator):
8256 * nt.c (mswindows_sigset):
8257 * nt.c (mswindows_sigrelse):
8258 * nt.c (mswindows_sigpause):
8259 * nt.c (mswindows_raise):
8260 * nt.c (timer_proc):
8262 * ntproc.c (find_child_console):
8263 * ntproc.c (sys_kill):
8265 * print.c (std_handle_out_external):
8266 * process-nt.c (find_child_console):
8267 * process-nt.c (send_signal_the_95_way):
8268 * process-nt.c (ensure_console_window_exists):
8269 * process-nt.c (nt_create_process):
8271 rename msw_ to mswindows_ for consistency with general convention.
8275 include nt.h, not syswindows.h.
8277 * nt.c (mswindows_fstat):
8278 * nt.c (mswindows_stat):
8279 prefix mswindows_ instead of attempting to directly override the
8280 library functions. fix declarations.
8283 include syswindows.h. move some sysdep.h stuff here.
8286 include syswindows.h, not <windows.h>.
8294 * sysdep.c (sys_fstat):
8295 * sysdep.c (sys_stat):
8296 call mswindows versions when appropriate.
8299 move mswin decls to nt.h.
8302 add long comment describing appropriate use of the various windows
8305 2000-06-11 Ben Wing <ben@xemacs.org>
8307 * device-x.c: Correct doc string for sixth arg of x-get-resource.
8309 2000-06-10 Ben Wing <ben@xemacs.org>
8311 * Makefile.in.in (release):
8312 Correction to make sure xemacs.exe always dumped when correct.
8316 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8318 * buffer.c (set_buffer_internal):
8319 [[[[2]]]]: Remove HAVE_FEP code.
8321 * buffer.c (init_initial_directory):
8325 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8329 * callproc.c (call_process_cleanup):
8330 * callproc.c (Fold_call_process_internal):
8331 * callproc.c (child_setup):
8332 * callproc.c (getenv_internal):
8333 * callproc.c (init_callproc):
8334 * callproc.c (vars_of_callproc):
8335 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8336 __CYGWIN32__ -> CYGWIN.
8337 DOS_NT -> WIN32_NATIVE.
8338 Remove MSDOS support/references, converting to WIN32_NATIVE
8340 __MINGW32__ -> MINGW.
8341 Fix windows.h includes.
8342 Remove bogus HAVE_NTGUI.
8348 mswindows_message_outputted added for use in allowing startup
8349 errors on the console to be seen.
8351 * console-msw.c (msw_ensure_console_allocated):
8352 * console-msw.c (msw_output_console_string):
8353 * console-msw.c (DHEADER):
8354 * console-msw.c (DOPAQUE_DATA):
8355 * console-msw.c (DEVENT):
8356 * console-msw.c (DCONS):
8357 * console-msw.c (DCONSCDR):
8358 * console-msw.c (DSTRING):
8359 * console-msw.c (DVECTOR):
8360 * console-msw.c (DSYMBOL):
8361 * console-msw.c (DSYMNAME):
8364 * console-stream.c (stream_init_console):
8365 Fix text/binary problems.
8368 * device-msw.c (mswindows_finish_init_device):
8369 * device-msw.c (mswindows_delete_device):
8372 * device.c (handle_asynch_device_change):
8376 * dgif_lib.c (DGifOpenFileName):
8377 * dgif_lib.c (DGifOpenFileHandle):
8378 * dgif_lib.c (DGifGetLine):
8379 * dgif_lib.c (DGifGetPixel):
8380 Added config.h/lisp.h, fix up includes.
8387 * dired.c (file_name_completion):
8388 * dired.c (Ffile_attributes):
8389 * dired.c (syms_of_dired):
8393 * dumper.c (pdump_file_unmap):
8394 * dumper.c (pdump_load):
8398 * editfns.c (Ftemp_directory):
8399 * editfns.c (user_login_name):
8400 * editfns.c (Fuser_real_login_name):
8401 * editfns.c (get_home_directory):
8404 * elhash.c (finish_marking_weak_hash_tables):
8405 [[[[5]]]]: Fix GCC warnings.
8408 * emacs.c (mswindows_handle_hardware_exceptions):
8409 * emacs.c (make_arg_list_1):
8411 * emacs.c (Fkill_emacs):
8412 * emacs.c (Fdump_emacs):
8414 Fix problems with nested crashes, add long comment.
8416 * event-Xt.c (init_event_Xt_late):
8420 * event-msw.c (mswindows_dde_callback):
8421 * event-msw.c (mswindows_handle_sticky_modifiers):
8422 * event-msw.c (mswindows_wnd_proc):
8426 * events.c (character_to_event):
8430 * fileio.c (Ffile_name_directory):
8431 * fileio.c (Ffile_name_nondirectory):
8432 * fileio.c (directory_file_name):
8433 * fileio.c (Fexpand_file_name):
8434 * fileio.c (Fsubstitute_in_file_name):
8435 * fileio.c (Ffile_name_absolute_p):
8436 * fileio.c (check_executable):
8437 * fileio.c (Ffile_readable_p):
8438 * fileio.c (Ffile_accessible_directory_p):
8439 * fileio.c (Ffile_modes):
8440 * fileio.c (Funix_sync):
8441 * fileio.c (vars_of_fileio):
8444 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8446 Expand getdefdir defn.
8447 Fix bogus rename() comment.
8449 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
8450 to use standard XEmacs include files, e.g. sysfile.h, rather
8451 than system-specific includes.
8457 * frame.c (vars_of_frame):
8461 * getloadavg.c (getloadavg):
8463 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
8464 (We don't use it elsewhere in the code; just add a comment.)
8471 * glyphs-msw.c (mswindows_resource_instantiate):
8474 * glyphs-x.c (x_native_layout_instantiate):
8477 * gui-msw.c (Fmswindows_shell_execute):
8486 * lread.c (locate_file_in_directory_mapper):
8493 * mem-limits.h (get_lim_data):
8505 * nt.c (rva_to_section):
8506 * nt.c (mswindows_executable_type):
8508 Fix closedir() defn.
8511 [[[[8]]]]: *_OK defs moved to sysfile.h.
8520 * print.c (std_handle_out_external):
8524 * process-nt.c (nt_create_process):
8526 try to fix process quoting somewhat.
8528 * process-unix.c (unix_create_process):
8532 * process.c (vars_of_process):
8539 * realpath.c (xrealpath):
8542 * redisplay-tty.c (init_tty_for_redisplay):
8552 * sheap.c (more_static_core):
8553 * sheap.c (report_sheap_usage):
8557 * signal.c (alarm_signal):
8564 * strftime.c (zone_name):
8567 * symsinit.h (init_sunpro):
8571 commctrl.h not in Cygwin b20.1.
8575 * sysdep.c (sys_subshell):
8576 * sysdep.c (init_baud_rate):
8577 * sysdep.c (emacs_get_tty):
8578 * sysdep.c (emacs_set_tty):
8579 * sysdep.c (tty_init_sys_modes_on_device):
8580 * sysdep.c (init_system_name):
8581 * sysdep.c (sys_open):
8582 * sysdep.c (interruptible_open):
8583 * sysdep.c (sys_fopen):
8584 * sysdep.c (sys_mkdir):
8585 * sysdep.c (sys_rename):
8586 * sysdep.c (get_process_times_1):
8593 * sysdir.h (DIRENTRY_NONEMPTY):
8596 * sysdll.c (dll_init):
8602 added text/binary defs.
8608 * sysproc.h (EDESTADDRREQ):
8609 * sysproc.h (poll_fds_for_input):
8626 Always define WIN32_LEAN_AND_MEAN.
8628 * unexcw.c (unexec):
8632 * unexec.c (copy_text_and_data):
8633 * unexec.c (adjust_lnnoptrs):
8637 * unexnt.c (_start):
8640 2000-06-07 Ben Wing <ben@xemacs.org>
8642 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
8643 was used only as a model. We've long since extracted any useful
8644 logic or code out of this. (I just did an exhaustive search.)
8646 * s\msdos.h: Removed.
8648 * s\windows95.h: Removed.
8650 2000-06-10 Ben Wing <ben@xemacs.org>
8654 Don't use extern with fun defs.
8658 Remove nt\inc include.
8659 Remove getdisk, getdefdir. (The former is unused, the latter
8660 expanded in fileio.h.)
8663 * s\windowsnt.h (WIN32_NATIVE):
8664 * s\windowsnt.h (HAVE_STRCASECMP):
8666 Add long comment about preprocessor changes.
8667 Remove getdisk, getdefdir. (The former is unused, the latter
8668 expanded in fileio.h.)
8670 2000-06-10 Ben Wing <ben@xemacs.org>
8679 Remove bogus/unused NO_SOCK_SIGIO.
8681 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
8683 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8686 2000-06-04 Mike Sperber <mike@xemacs.org>
8688 * casetab.c (set_case_table): For `set-standard-case-table',
8689 actually deposit the new case tables where the rest of XEmacs can
8692 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
8694 * data.c (Faset): Don't cast XCHAR() to unsigned char.
8696 2000-06-05 Ben Wing <ben@xemacs.org>
8698 * callproc.c (child_setup): Don't do close_load_descs() under
8699 MS Windows. Put in a comment explaining why.
8701 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
8703 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8704 Toolkit shell" which breaks `kill-compilation' on Windows NT
8705 native, retaining STDERR handling improvements.
8707 2000-06-01 Andreas Jaeger <aj@suse.de>
8709 * s/s390.h: Support for S390, based on a patch by Martin
8710 Schwidefsky <schwidefsky@de.ibm.com>.
8712 2000-05-30 Andy Piper <andy@xemacs.org>
8714 * window.c (allocate_window):
8715 (make_dummy_parent):
8716 (Fset_window_configuration): use new hashtable type.
8718 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8719 (struct image_instantiator_methods):
8720 (struct Lisp_Image_Instance): make instance geometry signed.
8722 * glyphs.c (instantiate_image_instantiator):
8723 (image_instance_query_geometry):
8724 (image_instance_layout):
8725 (image_instance_layout):
8726 (query_string_geometry):
8727 (text_query_geometry):
8728 (image_instantiate):
8729 (image_instantiate):
8730 (cache_subwindow_instance_in_frame_maybe):
8731 (subwindow_query_geometry): make instance geometry signed.
8733 * glyphs-widget.c (widget_query_geometry):
8735 (button_query_geometry):
8736 (tree_view_query_geometry):
8737 (tab_control_query_geometry):
8738 (layout_query_geometry):
8740 (native_layout_layout): make instance geometry signed.
8742 2000-05-29 Olivier Galibert <galibert@pobox.com>
8744 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8747 * general.c (syms_of_general): Add Qfull_assoc symbol.
8749 * data.c (finish_marking_weak_lists): Mark full-assoc lists
8751 (decode_weak_list_type): Decode full-assoc type.
8752 (encode_weak_list_type): Encode full-assoc type.
8753 (Fmake_weak_list): Update doc string.
8755 2000-05-30 Andy Piper <andy@xemacs.org>
8757 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8759 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8760 (decode_hash_table_weakness): ditto.
8761 (Fhash_table_weakness): ditto.
8762 (Fhash_table_type): ditto.
8763 (finish_marking_weak_hash_tables): ditto.
8764 (hash_table_weakness_validate): ditto.
8765 (syms_of_elhash): ditto.
8767 2000-05-28 Martin Buchholz <martin@xemacs.org>
8769 * XEmacs 21.2.34 is released.
8771 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8773 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8775 (updating_line_start_cache): Gone.
8776 (regenerate_window): Replace resetting of VERTICAL_CLIP by
8777 generic code to force a minimum of 1 line laid out in the
8780 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8782 * glyphs.c (instantiate_image_instantiator): Check for initialized
8783 height & width no longer special cases IMAGE_NOTHING.
8784 (nothing_instantiate): Set height and width of instance.
8786 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8788 * unexelf.c (unexec): Search for ".data" section.
8789 Initialize new_data2_offset from old_data_index.
8790 Remove redundant check for ElfW.
8792 2000-05-23 Andy Piper <andy@xemacs.org>
8794 * glyphs.c (get_image_instantiator_governing_domain): allow more
8795 specific domains as the governing domain rather than expecting an
8796 exact match. This fixes problems with layouts.
8798 2000-05-22 Andy Piper <andy@xemacs.org>
8800 * redisplay-output.c (compare_runes): check for non-images
8802 * glyphs.c (set_glyph_dirty_p): ditto.
8803 (update_glyph_cachel_data): ditto.
8805 * glyphs-widget.c (layout_post_instantiate): ditto.
8806 (layout_post_instantiate): ditto.
8808 * event-msw.c (mswindows_wnd_proc): warning removal.
8810 2000-05-12 Craig Lanning <CraigL@DyCon.com>
8812 * s\mingw32.h: Added #undef for CLASH_DETECTION.
8814 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8816 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8818 * nt.c (rva_to_section): mingw32 needs rva_to_section.
8819 (mswindows_executable_type): mingw32 now has enough headers for
8822 2000-05-20 Andy Piper <andy@xemacs.org>
8824 * console-msw.c (mswindows_output_last_error): ; -> ,
8826 2000-05-12 Andy Piper <andy@xemacs.org>
8828 * console-msw.c (FROB): compare ints with ints.
8830 2000-05-11 Andy Piper <andy@xemacs.org>
8832 * glyphs-x.c (x_finalize_image_instance): make minimal build
8835 2000-05-20 Ben Wing <ben@xemacs.org>
8838 * event-Xt.c (vars_of_event_Xt):
8839 move modifier-keys-are-sticky to event-stream.c.
8842 * event-msw.c (mswindows_enqueue_mouse_button_event):
8843 * event-msw.c (key_needs_default_processing_p):
8844 * event-msw.c (XEMSW_LCONTROL):
8845 * event-msw.c (mswindows_handle_sticky_modifiers):
8846 * event-msw.c (FROB):
8847 * event-msw.c (clear_sticky_modifiers):
8848 * event-msw.c (output_modifier_keyboard_state):
8849 * event-msw.c (output_alt_keyboard_state):
8850 * event-msw.c (mswindows_wnd_proc):
8851 * event-msw.c (mswindows_modifier_state):
8852 * event-msw.c (emacs_mswindows_handle_magic_event):
8853 implement sticky modifiers.
8856 * event-stream.c (vars_of_event_stream):
8857 move modifier-keys-are-sticky here.
8863 implement map-range-table.
8866 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
8868 * redisplay-tty.c (reset_tty_modes):
8869 (tty_redisplay_shutdown): Adjust argument type to
8870 tty_frame_output_end.
8872 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8874 * eval.c (Fbacktrace): Don't output a line with only right
8877 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
8879 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8880 (Fpq_reset_poll): Ditto.
8882 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
8884 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8886 2000-05-16 Ben Wing <ben@xemacs.org>
8889 * buffer.c (dfc_convert_to/from_internal_format):
8890 * buffer.c (reinit_vars_of_buffer):
8891 Fix conversion functions to allow reentrancy.
8894 * console-msw.c (mswindows_output_last_error):
8895 New fun, generally useful -- output a human-readable
8896 version of GetLastError() on the console.
8899 * console-msw.h (struct mswindows_frame):
8900 Changes for DeferWindowPos. Declare mswindows_output_last_error().
8902 * console-stream.c (stream_output_begin):
8903 * console-stream.c (stream_output_end):
8904 * console-stream.c (stream_output_vertical_divider):
8905 * console-stream.c (stream_clear_region):
8906 * console-stream.c (stream_flash):
8907 * console-stream.c (console_type_create_stream):
8908 Delete blank stream methods, not needed.
8910 * console.h (struct console_methods):
8911 Split begin/end methods into window and frame.
8914 * event-msw.c (mswindows_handle_paint):
8915 * event-msw.c (output_alt_keyboard_state):
8916 * event-msw.c (mswindows_wnd_proc):
8917 * event-msw.c (vars_of_event_mswindows):
8918 Comment about problems with ignored-expose.
8919 Define mswindows-debug-events; not really implemented.
8921 * frame-msw.c (mswindows_init_frame_1):
8925 * glyphs-msw.c (begin_defer_window_pos):
8926 * glyphs-msw.c (mswindows_unmap_subwindow):
8927 * glyphs-msw.c (mswindows_map_subwindow):
8928 * glyphs-msw.c (mswindows_resize_subwindow):
8929 Use DeferWindowPos to reduce flashing when mapping/unmapping.
8931 * glyphs.c (make_image_instance_1):
8934 * gutter.c (Fredisplay_gutter_area):
8935 Use new begin/end methods.
8937 * lisp.h (Dynarr_new2):
8941 * redisplay-msw.c (mswindows_frame_output_begin):
8942 * redisplay-msw.c (mswindows_frame_output_end):
8943 * redisplay-msw.c (console_type_create_redisplay_mswindows):
8944 New begin/end methods -- handle DeferWindowPos.
8946 * redisplay-output.c (redisplay_move_cursor):
8947 * redisplay-output.c (redraw_cursor_in_window):
8948 * redisplay-output.c (redisplay_update_line):
8949 * redisplay-output.c (redisplay_output_window):
8950 New begin/end methods.
8953 * redisplay-tty.c (tty_frame_output_begin):
8954 * redisplay-tty.c (tty_frame_output_end):
8955 * redisplay-tty.c (console_type_create_redisplay_tty):
8956 New begin/end methods.
8959 * redisplay-x.c (x_window_output_begin):
8960 * redisplay-x.c (x_window_output_end):
8961 * redisplay-x.c (console_type_create_redisplay_x):
8962 New begin/end methods.
8964 * redisplay.c (redisplay_frame):
8965 * redisplay.c (Fredisplay_echo_area):
8966 New begin/end methods.
8967 use MAYBE_DEVMETH for clear_frame; it may not exist.
8969 * window.h (WINDOW_XFRAME):
8970 WINDOW_XFOO macros -- get locale and decode struct pointer.
8973 2000-05-12 Ben Wing <ben@xemacs.org>
8976 * emacs.c (ensure_no_quitting_from_now_on):
8977 * emacs.c (fatal_error_signal):
8978 * emacs.c (mswindows_handle_hardware_exceptions):
8980 * emacs.c (Fkill_emacs):
8981 * emacs.c (shut_down_emacs):
8982 * emacs.c (assert_failed):
8983 various improvements in fatal error handling.
8986 move preparing_for_armageddon to emacs.c.
8989 declare fatal_error_in_progress.
8992 * print.c (std_handle_out_external):
8993 * print.c (std_handle_out_va):
8994 * print.c (stderr_out):
8995 * print.c (stdout_out):
8996 use console under mswin when no standard output.
8997 don't do code conversion during fatal error.
8999 * scrollbar.c (Fscrollbar_page_up):
9000 * scrollbar.c (Fscrollbar_page_down):
9001 fix missing else. reindent.
9003 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
9007 * glyphs.h (GLYPH_CACHEL_DESCENT):
9008 (GLYPH_CACHEL_DESCENT):
9009 (GLYPH_CACHEL_DESCENT):
9010 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
9011 used in case these are inline functions.
9012 Use more absurd values to error check.
9014 include window.h for error check functions.
9016 2000-05-11 Ben Wing <ben@xemacs.org>
9018 * cmdloop.c (Freally_early_error_handler):
9019 Display message box under windows; otherwise, message will disappear
9020 before it can be viewed.
9023 * console-msw.c (Fmswindows_message_box):
9024 * console-msw.c (FROB):
9025 * console-msw.c (syms_of_console_mswindows):
9026 Define new fun `mswindows-message-box'.
9027 #### I will merge this into `popup-dialog-box'; just give me
9031 * general.c (syms_of_general):
9032 Some new symbols used in `mswindows-message-box'.
9035 * glyphs.c (Fset_image_instance_property):
9036 put warning in this fun.
9039 * glyphs.h (GLYPH_CACHEL_WIDTH):
9040 * glyphs.h (GLYPH_CACHEL_ASCENT):
9041 * glyphs.h (GLYPH_CACHEL):
9042 * glyphs.h (GLYPH_CACHEL_GLYPH):
9043 define error-checking versions to try to catch a bug i've seen --
9044 redisplay gets in an infinite loop because the glyph width of the
9045 continuation glyph is 65535.
9048 Extern message-box stuff.
9050 * window.c (allocate_window):
9051 * window.c (make_dummy_parent):
9052 * window.c (Fset_window_configuration):
9053 Use EQUAL not EQ for subwindow caches to make them work a bit
9054 better. (Something is still very broken.)
9057 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
9059 * glyphs.c (image_instantiate): Suppress gcc warnings.
9060 (Fmake_image_instance): Fix doc string.
9061 * specifier.c (Fmake_specifier): Ditto.
9063 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
9065 * paths.h.in (PATH_LOCK): Removed.
9066 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
9067 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
9069 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
9071 * fns.c (Ffeaturep): Update e-mail address in doc-string.
9072 Document (featurep '(and xemacs 21.02)).
9074 2000-05-09 Ben Wing <ben@xemacs.org>
9076 * buffer.c (complex_vars_of_buffer):
9077 update modeline-format doc.
9080 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9083 timeline of all released versions of Emacs, for use in creating
9084 authorship comments and in synching up.
9086 * glyphs-widget.c (image_instantiator_buttons):
9087 * glyphs-widget.c (image_instantiator_edit_fields):
9088 * glyphs-widget.c (image_instantiator_combo_box):
9089 * glyphs-widget.c (image_instantiator_scrollbar):
9090 * glyphs-widget.c (image_instantiator_progress_guage):
9091 * glyphs-widget.c (image_instantiator_tree_view):
9092 * glyphs-widget.c (image_instantiator_tab_control):
9093 * glyphs-widget.c (image_instantiator_labels):
9094 * glyphs-widget.c (image_instantiator_layout):
9095 * glyphs-widget.c (image_instantiator_native_layout):
9096 rename decode_domain method to governing_domain.
9099 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9100 * glyphs.c (add_entry_to_device_ii_format_list):
9101 make sure we don't put an entry more than once into the list.
9102 * glyphs.c (check_instance_cache_mapper):
9103 *************************************************************
9104 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9106 *************************************************************
9107 * glyphs.c (get_image_instantiator_governing_domain):
9108 clean up, expand on new concept of governing domain.
9109 * glyphs.c (instantiate_image_instantiator):
9110 * glyphs.c (allocate_image_instance):
9111 use governing_domain instead of cache_domain in naming.
9112 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9113 * glyphs.c (make_image_instance_1):
9114 * glyphs.c (Fmake_image_instance):
9115 allow for any domain (not just device), and process the
9116 governing domain correctly. very big doc fix.
9117 * glyphs.c (Fimage_instance_domain):
9118 new primitive, to retrieve the governing domain of an image instance.
9119 * glyphs.c (image_instantiate):
9120 use new governing_domain stuff. this fixes a crash you could get
9121 by instantiating certain widget glyphs in frame locales. (should
9122 signal an error instead of crashing.)
9123 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9124 * glyphs.c (Fglyphp): clean up doc.
9125 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9126 * glyphs.c (syms_of_glyphs):
9127 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9128 * glyphs.c (image_instantiator_format_create): add some comments about
9130 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9131 for current-display-table. (Apparently Hrjove implemented in 1998 a
9132 design I wrote up in 1996, but didn't update the doc string.)
9134 * glyphs.h: clean up a doc string.
9135 * glyphs.h (governing_domain):
9136 * glyphs.h (struct image_instantiator_methods):
9137 changes for governing_domain stuff.
9140 * gutter.c (Fgutter_specifier_p):
9141 * gutter.c (Fgutter_size_specifier_p):
9142 * gutter.c (Fgutter_visible_specifier_p):
9144 * objects.c (Fcolor_specifier_p):
9145 * objects.c (Ffont_specifier_p):
9146 * objects.c (Fface_boolean_specifier_p):
9147 doc strings moved to make-*-specifier.
9149 * redisplay.c (add_disp_table_entry_runes_1):
9150 * redisplay.c (generate_fstring_runes):
9151 * redisplay.c (screen):
9152 add random comments and doc strings.
9155 * specifier.c (Fmake_specifier):
9156 major overhaul of this doc string.
9158 * specifier.c (Fvalid_specifier_domain_p):
9159 comment about the bogosity of image instances being domains.
9160 * specifier.c (decode_domain):
9161 now non-static, used in glyphs.c.
9162 * specifier.c (specifier_instance):
9163 comment about the bogosity of image instances being domains.
9164 * specifier.c (Fgeneric_specifier_p):
9165 move doc string to make-generic-specifier.
9166 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9170 * specifier.h (DOMAIN_FRAME):
9171 * specifier.h (DOMAIN_LIVE_P):
9172 * specifier.h (DOMAIN_XDEVICE):
9174 add comments about problems with these macros.
9175 prototype for decode_domain.
9178 * toolbar.c (Ftoolbar_specifier_p):
9179 move doc string to `make-toolbar-specifier'.
9181 * window.c (window_unmap_subwindows_cache_mapper):
9182 *************************************************************
9183 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9185 *************************************************************
9187 2000-05-09 Andy Piper <andy@xemacs.org>
9189 * glyphs.h: declare reset_frame_subwindow_instance_cache.
9191 * window.c (Fset_window_configuration): reset the frame subwindow
9192 cache and re-initialize the window subwindow caches.
9194 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9196 2000-05-09 Ben Wing <ben@xemacs.org>
9198 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9201 2000-04-26 Mike Woolley <mike@bulsara.com>
9203 * ntheap.c: Changed recreate_heap to limit the amount reserved
9204 for the heap to that which is actually available. Also now
9205 displays a message box (with some dignostics) in the event that
9206 it still can't start.
9208 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
9210 * callproc.c (Fold_call_process_internal): GCPRO path
9212 2000-05-08 Jan Vroonhof <jan@xemacs.org>
9214 Patch by Bill Perry.
9216 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9217 back data instead of #ifdef.
9218 (Fscrollbar_page_down): ditto.
9220 2000-05-07 Ben Wing <ben@xemacs.org>
9223 Kludge for defining Qmswindows_tstr.
9226 * nt.c (open_input_file):
9227 * nt.c (open_output_file):
9228 * nt.c (rva_to_section):
9229 * nt.c (mswindows_executable_type):
9230 Move all memory-mapped-file routines here (some were in unexnt.c,
9231 which is bad because they are used by process-nt.c, and unexnt
9232 won't be around when portable dumping). Synched the above routines
9236 Removed ifdef'd out bogus code.
9237 Fixed some prototypes.
9240 * nt.h (OFFSET_TO_RVA):
9241 * nt.h (RVA_TO_OFFSET):
9242 * nt.h (RVA_TO_PTR):
9243 Moved the memory-mapped-file structures, macros and prototypes
9244 here, to parallel nt.c. ntheap.h should really be removed
9245 entirely, and it's a non-portable-dumper specific file.
9247 * ntheap.h (round_to_next):
9248 Moved the memory-mapped-file structures, macros and prototypes
9251 * ntproc.c (compare_env):
9252 Moved rva_to_section and mswindows_executable_type to nt.c.
9253 Moved compare_env to process-nt.c.
9254 ntproc.c will die, one day.
9256 * ntproc.c (sys_spawnve):
9257 Account for win32_ -> mswindows_.
9260 * process-nt.c (struct nt_process_data):
9261 * process-nt.c (ensure_console_window_exists):
9262 * process-nt.c (compare_env):
9263 * process-nt.c (nt_create_process):
9264 * process-nt.c (nt_kill_process_by_pid):
9265 * process-nt.c (syms_of_process_nt):
9266 * process-nt.c (vars_of_process_nt):
9267 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9268 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9269 changes). Eliminate our old `nt-quote-process-args' mechanism.
9270 Synch up nt_create_process with FSF 20.6 sys_spawnve.
9271 Move compare_env here from ntproc.c.
9273 * process.c (Fprocess_send_region):
9274 Takes an optional fourth argument, BUFFER, which should fix some
9275 problems with call-process.
9278 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9281 Move ICC_BAR_CLASSES to syscommctrl.h.
9282 Add preliminary macros for MSWindows/Mule. More to come.
9285 * unexnt.c (unexec):
9286 open_output_file moved to nt.c.
9289 2000-05-05 Andy Piper <andy@xemacs.org>
9291 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9292 instance from the frame cache also since GC may catch up too late
9293 to make frame deletion sane.
9295 2000-05-04 Andy Piper <andy@xemacs.org>
9297 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9298 (x_finalize_image_instance): ungcpro on deletion.
9300 * glyphs.c (image_instantiator_format_create): give pointers a
9301 query geometry method so that the geometry is at least set.
9303 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9304 initialize layouts if using widgets.
9306 2000-05-03 Andy Piper <andy@xemacs.org>
9308 * nt.c: remove bogus reference to sysmmsystem.h
9310 * gui-x.c (popup_selection_callback): fix no selection abort.
9312 2000-05-02 Andy Piper <andy@xemacs.org>
9314 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9315 (mswindows_widget_instantiate): ditto.
9317 * glyphs-widget.c (initialize_widget_image_instance): initialize
9319 (widget_instantiate): cope with children and items in the same
9322 * glyphs.c (mark_image_instance): cope with children as a first
9324 (image_instance_equal): ditto.
9325 (image_instance_hash): ditto.
9326 (image_instance_changed): ditto.
9328 2000-04-30 Andy Piper <andy@xemacs.org>
9330 * glyphs.c (subwindow_query_geometry): new function. Return some
9332 (subwindow_instantiate): don't assign dimensions if none have been
9334 (image_instantiator_format_create): add subwindow_query_geometry.
9335 (print_image_instance): cope with layouts as widgets.
9337 2000-04-29 Andy Piper <andy@xemacs.org>
9339 * frame.c (delete_frame_internal): call
9340 free_frame_subwindow_instance_cache so that all subwindows are
9341 finalized before their parent.
9342 (mark_frame): remove subwindow_cachels.
9343 (Fmake_frame): remove subwindow_cachel manipulation.
9344 (allocate_frame_core): subwindow_instance_cache is a weak list.
9345 (delete_frame_internal): set subwindow_instance_cache to nil.
9347 * glyphs-msw.c (mswindows_finalize_image_instance): make double
9349 (mswindows_finalize_image_instance): use the device
9350 not the domain as the domain may have died already.
9352 * glyphs-x.c (x_finalize_image_instance): ditto.
9353 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9356 * redisplay-output.c (redisplay_unmap_subwindows): update for
9357 subwindow instance cache as a weak list.
9358 (redisplay_unmap_subwindows_maybe): ditto.
9359 (redisplay_unmap_subwindows_except_us): ditto.
9361 * glyphs.c (unmap_subwindow): error checking will check the domain
9362 so don't deal with it here. Don't use cachels anymore.
9363 (map_subwindow): ditto.
9364 (update_subwindow_cachel_data): remove old accessor names.
9365 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9366 (Fresize_subwindow): don't update cachel.
9367 (mark_subwindow_cachels):
9368 (update_subwindow_cachel_data):
9369 (add_subwindow_cachel):
9370 (get_subwindow_cachel_index):
9371 (update_subwindow_cachel):
9372 (reset_subwindow_cachels):
9373 (mark_subwindow_cachels_as_not_updated): deleted.
9374 (cache_subwindow_instance_in_frame_maybe): new function. Add a
9375 subwindow instance to the frame cache.
9376 (find_matching_subwindow): update for subwindow instance cache as
9378 (update_widget_instances): ditto.
9379 (image_instance_type_to_mask):inlined.
9380 (free_frame_subwindow_instance_cache): new function. finalize all
9381 subwindows that are instantiated.
9383 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9384 of cachel information.
9385 (IMAGE_INSTANCE_DISPLAY_X):
9386 (IMAGE_INSTANCE_DISPLAY_Y):
9387 (IMAGE_INSTANCE_DISPLAY_WIDTH):
9388 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9389 (XIMAGE_INSTANCE_DISPLAY_X):
9390 (XIMAGE_INSTANCE_DISPLAY_Y):
9391 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9392 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9393 remove subwindow_cachel structure and function references.
9394 (image_instance_type_to_mask): inline from glyphs.c
9396 * redisplay.c (redisplay_frame): remove subwindow_cachel
9399 * frame.h (struct frame): remove subwindow_cachels.
9400 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9402 * frameslots.h: add subwindow_instance_cache.
9404 * window.c (replace_window): check subwindow cache of replacement.
9405 (window_unmap_subwindows_cache_mapper):
9406 (window_unmap_subwindows): new functions. Unmap all subwindows
9407 cached on this window.
9408 (mark_window_as_deleted): unmap all subwindows.
9410 2000-04-27 Andy Piper <andy@xemacs.org>
9412 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9414 * glyphs-widget.c (widget_layout): return something.
9415 (layout_layout): return something. Fail if not initialized.
9416 (layout_query_geometry): ditto.
9417 (image_instantiator_native_layout): new function. Initialized the
9419 (widget_instantiate): don't do layout stuff here.
9421 * glyphs.c (instantiate_image_instantiator): reorded calling or
9422 instantiate and post_instantiate with layout in between.
9423 (image_instance_layout): be more selective about deciding whether
9424 the layout has been done or not.
9426 * glyphs.h (struct image_instantiator_methods): return a value
9429 2000-04-26 Andy Piper <andy@xemacs.org>
9431 * glyphs.c (allocate_image_instance): make initial width and
9432 height unspecified. Set initialized to 0.
9434 * syscommctrl.h new file. Encapsulates commctrl.h.
9436 * syswindows.h new file. Encapsulates windows.h.
9438 * ntplay.c: use new syswindows.h and syscommctrl.h header.
9440 * console-msw.h: ditto.
9442 * redisplay-tty.c (tty_output_display_block): remove layout references.
9444 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9445 window handle rather than just the frame.
9447 * glyphs.c (mark_image_instance): remove layout references.
9448 (print_image_instance): ditto.
9449 (image_instance_equal): ditto.
9450 (image_instance_hash): ditto.
9451 (decode_image_instance_type): ditto.
9452 (encode_image_instance_type): ditto.
9453 (image_instantiate): ditto.
9454 (allocate_glyph): ditto.
9455 (Fimage_instance_height): ditto.
9456 (Fimage_instance_width): ditto.
9457 (update_subwindow): ditto.
9459 * redisplay-x.c (x_output_display_block): recode for layouts as
9462 * redisplay-output.c (redisplay_output_layout): recode for layouts
9464 (compare_runes): remove layout references.
9466 * redisplay-msw.c (mswindows_output_display_block): recode for
9469 * glyphs-widget.c (image_instantiator_layout): remove
9470 layout_possible_dest_types.
9471 (layout_possible_dest_types): deleted.
9473 * glyphs.h (image_instance_type): remove layout references.
9474 (struct Lisp_Image_Instance): ditto. Add initialized flag.
9475 (IMAGE_INSTANCE_INITIALIZED): new accessor.
9476 (XIMAGE_INSTANCE_INITIALIZED): ditto.
9478 2000-04-25 Andy Piper <andy@xemacs.org>
9480 * glyphs-widget.c (image_instantiator_buttons):
9481 (image_instantiator_edit_fields):
9482 (image_instantiator_combo_box):
9483 (image_instantiator_scrollbar):
9484 (image_instantiator_progress_guage):
9485 (image_instantiator_tree_view):
9486 (image_instantiator_tab_control):
9487 (image_instantiator_labels):
9488 (image_instantiator_layout): call default post_instantiate method.
9489 (widget_post_instantiate): new function. Simply lays out the
9492 * glyphs.h (struct image_instantiator_methods): add
9493 post_instantiate method.
9495 * glyphs.c (instantiate_image_instantiator): add post_instantiate
9498 2000-04-23 Andy Piper <andy@xemacs.org>
9500 * glyphs.h (struct image_instantiator_methods): add
9501 decode_domain_method.
9502 (struct Lisp_Image_Instance): remove subwindow frame - it can be
9503 derived from the domain.
9504 (IMAGE_INSTANCE_FRAME): new accessor.
9505 (XIMAGE_INSTANCE_FRAME): ditto.
9507 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9508 instead of _SUBWINDOW_FRAME.
9509 (finalize_image_instance): ditto.
9510 (Fimage_instance_foreground): ditto.
9511 (Fimage_instance_background): ditto.
9512 (image_instantiate): ditto.
9513 (update_subwindow_cachel): ditto.
9514 (update_subwindow): ditto.
9515 (unmap_subwindow): ditto.
9516 (map_subwindow): ditto
9517 (subwindow_instantiate): ditto.
9518 * glyphs-msw.c (mswindows_update_widget): ditto.
9519 (mswindows_progress_gauge_instantiate): ditto.
9520 (mswindows_tab_control_update): ditto.
9521 * glyphs-x.c (x_update_widget): ditto.
9522 (x_widget_instantiate): ditto.
9523 (x_tab_control_instantiate): ditto.
9524 (x_tab_control_update): ditto.
9525 * event-msw.c (mswindows_wnd_proc): ditto
9527 * glyphs-widget.c (image_instantiator_layout): use
9528 subwindow_decode_domain.
9529 (image_instantiator_buttons): ditto.
9530 (image_instantiator_edit_fields): ditto.
9531 (image_instantiator_combo_box): ditto.
9532 (image_instantiator_scrollbar): ditto.
9533 (image_instantiator_progress_guage): ditto.
9534 (image_instantiator_tree_view): ditto.
9535 (image_instantiator_tab_control): ditto.
9536 (image_instantiator_labels): ditto.
9537 (image_instantiator_layout): ditto.
9539 * glyphs.c: add instance error checking to many functions.
9540 (instantiate_image_instantiator): decode device from cache_domain.
9541 (image_instantiate): partially rewrite by using
9542 decode_image_instantiator_domain to determine what domain the
9543 instance needs to be cached in.
9544 (decode_image_instantiator_domain): new function. Determine what
9545 domain the image needs to be cached in.
9546 (check_window_subwindow_cache): new error checking function.
9547 (check_instance_cache_mapper): ditto.
9548 (check_image_instance_structure): ditto.
9549 (subwindow_decode_domain): new function. Encodes a window as a
9550 subwindow's cache domain.
9551 (image_instantiator_format_create): use it for text and
9554 2000-04-21 Andy Piper <andy@xemacs.org>
9556 * glyphs.c (image_instance_device): new function.
9557 (image_instance_frame): new function.
9558 (image_instance_window): new function.
9559 (image_instance_live_p): new function.
9561 * window.c (mark_window_as_deleted): reset the subwindow_instance_
9564 * glyphs.h (struct Lisp_Image_Instance): device->domain.
9565 (IMAGE_INSTANCE_DOMAIN): new accessor.
9566 (XIMAGE_INSTANCE_DOMAIN): ditto.
9568 * glyphs-x.c (x_finalize_image_instance): device->domain.
9570 * glyphs-msw.c (init_image_instance_geometry): device->domain.
9571 (mswindows_finalize_image_instance): ditto.
9573 * glyphs-eimage.c (jpeg_instantiate): device->domain.
9574 (gif_instantiate): ditto.
9575 (png_instantiate): ditto.
9576 (tiff_instantiate): ditto.
9578 * glyphs.c (instantiate_image_instantiator): use domain rather
9580 (mark_image_instance): device -> domain.
9581 (print_image_instance): ditto.
9582 (finalize_image_instance): ditto.
9583 (image_instance_equal): ditto.
9584 (allocate_image_instance): ditto.
9585 (Fcolorize_image_instance): ditto.
9586 (query_string_geometry): ditto.
9587 (image_instantiate): ditto
9588 (query_string_font): ditto.
9589 (image_instantiate): ditto.
9590 (update_subwindow): ditto.
9591 (unmap_subwindow): ditto.
9592 (map_subwindow): ditto.
9593 (subwindow_instantiate): ditto.
9595 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9596 (DOMAIN_FRAME): ditto.
9597 (DOMAIN_WINDOW): ditto.
9598 (DOMAIN_LIVE_P): ditto.
9599 (XDOMAIN_DEVICE): ditto.
9600 (XDOMAIN_FRAME): ditto.
9601 (XDOMAIN_WINDOW): ditto.
9603 * specifier.c (Fvalid_specifier_domain_p): add image instances as
9604 a valid specifier domain.
9606 2000-04-19 Andy Piper <andy@xemacs.org>
9608 * glyphs-widget.c (syms_of_glyphs_widget): remove
9609 widget-callback-current-channel.
9610 (vars_of_glyphs_widget): ditto.
9613 * gui.c (get_gui_callback): revert to previous behaviour.
9615 2000-04-18 Andy Piper <andy@xemacs.org>
9617 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9618 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9619 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9621 * glyphs.c (image_instance_equal): add margin_width.
9622 (image_instance_hash): ditto.
9624 * glyphs-widget.c (widget_instantiate): deal with margin-width.
9625 (layout_query_geometry): ditto.
9626 (layout_layout): ditto.
9627 (syms_of_glyphs_widget): add margin-width.
9628 (image_instantiator_layout): allow margin-width.
9630 * glyphs.c (update_widget_instances): make a normal function.
9631 (syms_of_glyphs): remove Qupdate_widget_instances.
9634 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9635 so that we don't corrupt ideas about the last event or
9636 command. Remove widget-callback-current-channel fiddling.
9637 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9639 2000-05-01 Martin Buchholz <martin@xemacs.org>
9641 * XEmacs 21.2.33 is released.
9643 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
9645 * make-src-depend: Allow dots in header file name.
9647 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
9649 * mule-charset.h (struct charset_lookup): Add
9650 next_allocated_1_byte_leading_byte and
9651 next_allocated_2_byte_leading_byte.
9652 * mule-charset.c: Move above two variables so that those values
9655 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
9657 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9658 when string length is zero.
9659 (find_charsets_in_emchar_string): Ditto.
9661 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
9663 * lisp.h: extern Qdialog and Qmenubar.
9665 * gui-x.c: added events.h.
9666 also fixed typo which made the file uncompilable.
9668 * general.c: Added Qmenubar and Qdialog
9670 2000-04-28 Ben Wing <ben@xemacs.org>
9672 * frame-msw.c (mswindows_init_frame_1):
9673 * frame-msw.c (mswindows_mark_frame):
9674 * event-msw.c (mswindows_enqueue_dispatch_event):
9676 * console-msw.h (struct mswindows_frame):
9677 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9678 there are now three hash tables for callbacks.
9679 mswindows_enqueue_dispatch_event is no longer static.
9681 * dialog-x.c (maybe_run_dbox_text_callback):
9682 * dialog-x.c (dbox_descriptor_to_widget_value):
9683 switch to new cons3 form for callbacks.
9685 * glyphs-msw.c (mswindows_register_gui_item):
9686 * glyphs-msw.c (mswindows_widget_instantiate):
9687 * glyphs-msw.c (add_tree_item):
9688 * glyphs-msw.c (add_tab_item):
9689 new image instance parameter, so it can be passed to callback-ex.
9690 respect :callback-ex as well as :callback.
9692 * glyphs-widget.c (VALID_GUI_KEYWORDS):
9695 * glyphs.c (print_image_instance):
9696 prettify, e.g. now prints widget type.
9699 certain funs have new image instance parameter.
9702 * gui.c (get_gui_callback):
9703 * gui.c (gui_item_add_keyval_pair):
9704 * gui.c (gui_item_init):
9705 * gui.c (gui_add_item_keywords_to_plist):
9706 * gui.c (mark_gui_item):
9707 * gui.c (gui_item_hash):
9708 * gui.c (gui_item_equal):
9709 * gui.c (copy_gui_item):
9710 * gui.c (syms_of_gui):
9711 recognize callback-ex in a number of places.
9712 also, fix the annoying "can't get out of yes-no dialog" bug.
9715 * gui.h (struct Lisp_Gui_Item):
9716 recognize callback-ex in a number of places.
9718 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9719 new parameter in button_item_to_widget_value.
9721 * glyphs-x.c (x_update_widget):
9722 * glyphs-x.c (x_button_instantiate):
9723 * glyphs-x.c (x_button_update):
9724 * glyphs-x.c (x_progress_gauge_instantiate):
9725 * glyphs-x.c (x_edit_field_instantiate):
9726 * glyphs-x.c (x_combo_box_instantiate):
9727 * glyphs-x.c (x_tab_control_instantiate):
9728 * glyphs-x.c (x_label_instantiate):
9729 new image instance parameter in various places.
9732 * event-Xt.c (enqueue_Xt_dispatch_event):
9733 this fun gets exported.
9736 * gui-msw.c (mswindows_handle_gui_wm_command):
9737 handle both :callback and :callback-ex, and generate our own
9738 event because it's one of the callback-ex arguments.
9741 * gui-x.c (popup_selection_callback):
9742 handle both :callback and :callback-ex, and generate our own
9743 event because it's one of the callback-ex arguments.
9744 * gui-x.c (button_item_to_widget_value):
9745 * gui-x.c (gui_items_to_widget_values_1):
9746 * gui-x.c (gui_item_children_to_widget_values):
9747 * gui-x.c (gui_items_to_widget_values):
9748 new image instance parameter in various places.
9750 * fns.c (Freplace_list):
9751 fix small typo in doc string.
9754 declare enqueue_Xt_dispatch_event.
9756 2000-04-28 Ben Wing <ben@xemacs.org>
9759 * buffer.c (Frecord_buffer):
9760 * buffer.c (syms_of_buffer):
9761 delete record-buffer-hook.
9764 * fns.c (Freplace_list):
9765 * fns.c (syms_of_fns):
9766 new primitive replace-list.
9769 slot for old buffer-alist.
9775 * redisplay.c (redisplay_frame):
9776 * redisplay.c (syms_of_redisplay):
9777 * redisplay.c (vars_of_redisplay):
9778 new hook buffer-list-changed-hook.
9781 2000-04-27 Ben Wing <ben@xemacs.org>
9783 * extents.h: extern in_modeline_generation.
9785 * redisplay.c (generate_formatted_string_db): set
9786 in_modeline_generation.
9788 * extents.c (extent_changed_for_redisplay): don't mark redisplay
9789 flags if in modeline generation. otherwise frame-modified-tick
9790 is ticked far too often.
9791 Declare in_modeline_generation.
9793 2000-04-26 Ben Wing <ben@xemacs.org>
9795 * emacs.c (vars_of_emacs): document quick-build "error-checking"
9797 (vars_of_emacs): add quick-build as an error-checking option.
9798 A bit kludgy, but there doesn't seem much point in creating
9799 a real var for this.
9801 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9803 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
9805 * redisplay.h (struct display_line): Add a new variable,
9808 * redisplay.c (create_text_block): Set dl->line_continuation if
9810 (create_string_text_block): Ditto.
9811 (regenerate_window_incrementally): Use line_continuation instead
9812 of searching continuation glyph.
9813 (add_margin_runes): Call add_glyph_rune.
9814 (add_glyph_rune): Handle margin glyph.
9816 2000-04-20 Martin Buchholz <martin@xemacs.org>
9818 * filelock.c (fill_in_lock_file_name):
9820 Check for IS_ANY_SEP instead of '/'.
9822 Avoid generating gratuitous garbage. Call user_login_name() directly.
9823 Never check errno without first seeing that system call failed.
9824 (unlock_file): Add GCPRO.
9825 (Flock_buffer): Fix docstring.
9826 (Ffile_locked_p): Fix docstring. Add GCPRO.
9828 2000-04-19 Martin Buchholz <martin@xemacs.org>
9830 * sysdep.c (get_pty_max_bytes):
9831 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9832 strings longer than 252 bytes.
9834 * md5.c: Unconditionally include ANSI header <limits.h>
9836 * glyphs-x.c (convert_EImage_to_XImage):
9837 * lisp-union.h (union Lisp_Object):
9838 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9840 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9842 * filelock.c (current_lock_owner): Remove unused variable o, p.
9844 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
9846 * callint.c: Remove multiply defined symbol Qlet
9847 (syms_of_callint): ditto.
9849 2000-04-14 Andy Piper <andy@xemacs.org>
9851 * general.c (syms_of_general): add last-command, this-command, let
9854 * lisp.h: declare various symbols.
9856 * glyphs.h: declare Qwidget_callback_current_channel;
9858 * glyphs-widget.c (syms_of_glyphs_widget): add
9859 Qgui_callback_current_channel.
9860 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9862 * gui-msw.c (mswindows_handle_gui_wm_command): bind
9863 widget-callback-current-channel when invoking the interactive
9864 arg. Also bind last-command and next-command when invoking the
9866 * gui-x.c (popup_selection_callback): ditto.
9868 * gui.c (get_gui_callback): massage args so that we are always
9869 calling eval. This allows us to add our own variable bindings
9872 * glyphs-x.c (x_button_instantiate): use
9873 gui_items_to_widget_values since this is GC safe.
9874 (x_progress_gauge_instantiate): ditto.
9875 (x_edit_field_instantiate): ditto.
9876 (x_label_instantiate): ditto.
9878 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9879 (emacs_Xt_event_widget_focus_out): new function
9880 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9882 (emacs_Xt_event_add_widget_actions): new function. add focus
9883 functions as actions.
9884 (init_event_Xt_late): use it.
9886 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
9888 * event-stream.c (Fdispatch_event): Doc fix.
9890 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
9892 * postgresql.c: Remove all references to PQsetenv*.
9894 * postgresql.h: Remove references to PGsetenvHandler object.
9895 * lrecord.h (lrecord_type): Ditto.
9897 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9899 * glyphs-msw.h (struct mswindows_image_instance_data): Added
9900 real_heigh and real_width members, and accessor macros for these.
9902 * glyphs-msw.c (init_image_instance_geometry): New function.
9903 (init_image_instance_from_dibitmap): Use it.
9904 (mswindows_resource_instantiate): Use it.
9905 (init_image_instance_from_xbm_inline): Use it.
9906 (mswindows_initialize_image_instance_mask): Use real bitmap
9908 (mswindows_create_resized_bitmap): Ditto.
9909 (mswindows_create_resized_mask): Ditto.
9911 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9912 and bitmap to their surface size.
9914 2000-04-11 Jan Vroonhof <jan@xemacs.org>
9916 * process-unix.c (unix_send_process): Guard against process MIA
9917 after Faccept_process_output.
9919 2000-04-11 Ben Wing <ben@xemacs.org>
9921 * eval.c (unbind_to_hairy): fix brokenness introduced by
9922 nanosecond speed improvements.
9924 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
9926 * sunplay.c (init_device): To play sounds correctly, the device
9927 apparently needs to be initialized at least once by XEmacs. Make
9930 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
9932 * redisplay.c (add_margin_runes): Add text image glyph
9935 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9937 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9938 gcc is newer than 2.5.
9940 2000-04-06 Colin Rafferty <colin@xemacs.org>
9942 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9944 * fns.c (size_bit_vector):
9945 * alloc.c (size_vector):
9946 (make_vector_internal):
9947 (make_bit_vector_internal):
9948 (sweep_bit_vectors_1):
9949 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9951 2000-04-06 Andy Piper <andy@xemacs.org>
9953 * gmalloc.c (malloc): undo previous change.
9958 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
9960 * line-number.c (buffer_line_number): Revert to former version.
9962 2000-04-06 Andy Piper <andy@xemacs.org>
9964 * gmalloc.c (malloc): add error checking.
9969 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9970 button_item_to_widget_value arg.
9972 * glyphs-x.c (x_button_instantiate): add extra
9973 button_item_to_widget_value arg.
9974 (x_progress_gauge_instantiate): ditto.
9975 (x_edit_field_instantiate): ditto.
9976 (x_label_instantiate): ditto.
9978 * gui-x.c (gui_items_to_widget_values_1): add extra
9979 button_item_to_widget_value arg.
9980 (button_item_to_widget_value): add extra menu_item_p arg.
9982 * gui-x.h: change signature of button_item_to_widget_value.
9984 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9985 button_item_to_widget_value arg.
9987 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9989 * buffer.h (struct buffer): auto_save_modified should be long.
9991 2000-04-05 Andy Piper <andy@xemacs.org>
9993 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9995 (button_query_geometry): give a little more room so that athena
9998 2000-04-05 Andy Piper <andy@xemacs.org>
10000 * faces.c (complex_vars_of_faces): The widget face should inherit
10001 the font of the gui-element face.
10003 2000-04-04 Andy Piper <andy@xemacs.org>
10005 * glyphs-x.c (x_button_update): new function. unconditionally
10006 update a button's state when the instance is dirty.
10007 (image_instantiator_format_create_glyphs_x): add x_button_update.
10008 (x_widget_instantiate): remove old resize cruft.
10010 2000-04-02 Andy Piper <andy@xemacs.org>
10012 * frame.c (change_frame_size_1): The introduction of gutters means
10013 that we need to allow 0 as a potential frame dimension.
10015 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
10017 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
10018 image glyph if allow_cursor.
10019 (add_hscroll_rune): Don't allow cursor to border glyph.
10020 (create_text_block): Ditto.
10022 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
10023 text not in buffer.
10024 (redisplay_output_layout): Call ensure_face_cachel_complete for
10028 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
10030 * redisplay.c (add_glyph_rune): Adding text image as text runes.
10032 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
10035 * redisplay-tty.c (tty_output_display_block): Delete the routine
10036 for text image glyph
10037 * redisplay-x.c (x_output_display_block): ditto
10038 * redisplay-msw.c (mswindows_output_display_block): ditto
10040 2000-02-02 Mike Alexander <mta@arbortext.com>
10042 Note: Some of these were committed by accident as part of other
10045 * regex.c (regex_compile): Avoid compiler warnings.
10047 * ntproc.c (sys_spawnve): Avoid compiler warnings.
10049 * nt.h: Declare term_ntproc correctly.
10051 * nt.c: Remove incorrect declaration of get_home_directory which
10052 is declared correctly in lisp.h.
10054 * keymap.c (get_keyelt): Avoid compiler warnings.
10055 (raw_lookup_key_mapper): Avoid compiler warnings.
10057 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
10059 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
10061 * filemode.c (mode_string): Avoid compiler warnings.
10063 * file-coding.c (Fcoding_system_aliasee): Add return statement to
10066 * events-mod.h: Undef some things that winuser.h defines differently.
10068 * data.c (Faset): Avoid compiler warnings.
10070 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10072 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10074 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10075 Fall through to simple beep on error.
10076 Replace "extern" by real header file.
10078 * linuxplay.c: Use nativesound.h
10079 (play_sound_data): Return error code. Be less verbose on error.
10081 * sunplay.c: Use nativesound.h
10082 (play_sound_data): Return error code. Be less verbose on error.
10084 * ntplay.c: Use nativesound.h
10085 (play_sound_data): Return fake error code
10087 * sgiplay.c: Use nativesound.h
10088 (play_sound_data): Return error code
10090 * hpplay.c: Use nativesound.h, partially implement
10091 new error code. Break compilation until finished.
10092 (play_sound_data): error code.
10094 * nativesound.h (play_sound_file):
10095 (play_sound_data): Prototype in new header.
10097 2000-03-31 Andy Piper <andy@xemacs.org>
10099 * glyphs-widget.c: (button_query_geometry): new function. Adjust
10100 for toggle and radio buttons.
10101 (image_instantiator_buttons): use it.
10103 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10105 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10106 (x_update_horizontal_scrollbar_callback): Return if no mirror was
10107 found. Scrollbar event probably belonged to some old config.
10109 2000-03-31 Andy Piper <andy@xemacs.org>
10111 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10113 (initialize_widget_image_instance): default layout to
10114 LAYOUT_HORIZONTAL rather than 0.
10115 (widget_instantiate): reverse the item list at the end rather than
10117 (layout_layout): re-code for the border text at the front of the
10118 item list rather than at the end.
10119 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10120 provided by the user.
10121 (widget_query_geometry): comment.
10123 2000-03-30 Andy Piper <andy@xemacs.org>
10125 * glyphs-widget.c (image_instantiator_layout): allow standard
10126 widget keywords in layouts.
10128 * gutter.c (output_gutter): cope with nil gutter contents.
10130 * frame.c (Fset_frame_properties): add gutter docs.
10132 2000-03-29 Andy Piper <andy@xemacs.org>
10134 * toolbar-msw.c (TBSTYLE_FLAT): add.
10135 (mswindows_output_toolbar): minor fiddling.
10137 2000-03-29 Andy Piper <andy@xemacs.org>
10139 * gutter.c (output_gutter): force gutter size recalculation if
10140 what we are trying to display won't fit.
10141 (update_gutter_geometry): new function. A per-gutter version of
10142 update_frame_gutter_geometry.
10143 (update_frame_gutter_geometry): use it.
10144 (redraw_exposed_gutter): add extra debugging output.
10146 2000-03-28 Mike Alexander <mta@arbortext.com>
10148 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10149 (pdump_file_unmap): Implement it on Windows
10150 (pdump_file_get): Save alocated handles for pdump_file_unmap
10152 2000-03-28 Andy Piper <andy@xemacs.org>
10154 * gui.c (get_gui_callback): treat Quit specially.
10156 2000-03-27 Andy Piper <andy@xemacs.org>
10158 * glyphs.c (image_instantiate): be careful to check in the same
10161 2000-03-27 Didier Verna <didier@xemacs.org>
10163 * config.h.in: define the proper SMART_INCLUDE macro.
10164 handle renaming of `foo_h_path' to `foo_h_file'.
10166 * database.c: ditto.
10170 * linuxplay.c: ditto.
10172 * terminfo.c: ditto.
10174 * tooltalk.h: ditto.
10176 2000-03-27 Andy Piper <andy@xemacs.org>
10178 * glyphs-msw.c (mswindows_update_widget): make sure the widget
10179 gets updated whenever the face might have changed.
10181 2000-03-26 Mike Alexander <mta@arbortext.com>
10183 * dumper.c (pdump_resource_free): Fix the comment.
10185 2000-03-21 Olivier Galibert <galibert@pobox.com>
10187 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10189 2000-03-22 Mike Alexander <mta@arbortext.com>
10191 * dumper.c: Include Windows headers on Windows
10192 (pdump_resource_free): Add a body to the function
10193 (pdump_load): exe_name -> exe_path and add some comments.
10195 2000-03-25 Mike Alexander <mta@arbortext.com>
10197 * gui.c (copy_gui_item_tree): Return a value in all cases
10199 2000-03-21 Didier Verna <didier@xemacs.org>
10201 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10203 (SMART_INCLUDE): new macro.
10204 (POSTGRES_INCLUDE): new macro to include postgresql headers from
10205 the proper location.
10207 * postgresql.c: use it.
10211 2000-03-24 Andy Piper <andy@xemacs.org>
10213 * gutter.c (redraw_exposed_gutters): must be "in display" when we
10216 2000-03-24 Andy Piper <andy@xemacs.org>
10218 * redisplay-output.c (compare_runes): use image_instance_changed
10219 to detect changes. Do not depend on glyphs_changed, only depend on
10221 (redisplay_output_layout): add debug messages.
10222 (compare_runes): ditto.
10224 * glyphs.h: declare new functions.
10225 (struct Lisp_Image_Instance): remove percent and associated
10228 * gui.h: declare new copying functions.
10230 * gui.c (copy_gui_item_tree): new function.
10231 (copy_gui_item): new function.
10232 (gui_item_id_hash): revert to standard hash.
10233 (gui_item_hash): ditto.
10234 (gui_item_hash_internal): deleted.
10235 (mark_gui_item): mark value.
10236 (gui_item_add_keyval_pair): add value.
10237 (gui_item_init): ditto.
10238 (gui_add_item_keywords_to_plist): ditto.
10239 (gui_item_equal): ditto.
10240 (syms_of_gui): add Q_value.
10242 * glyphs-x.c (x_progress_gauge_update): use pending items and
10243 value for setting the state.
10244 (x_update_widget): don't set items from pending here.
10246 * glyphs-widget.c (update_widget): update items here.
10247 (progress_gauge_set_property): use items for storing value. Put
10248 new value in pending items.
10250 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10251 items for new value. Convert percent -> value.
10252 (mswindows_tab_control_update): don't update items here.
10254 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10255 (update_subwindow): ditto.
10256 (image_instance_changed): new function. Compare hash values and
10257 past and present widget items.
10258 (image_instantiate): We more careful about where we instantiate
10260 (image_instantiate): add error checking.
10262 * gutter.c (syms_of_gutter): use -hook.
10264 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
10266 * console-tty.c (Fset_console_tty_input_coding_system): Use
10268 (Fset_console_tty_output_coding_system): Use Qterminal.
10269 (tty_init_console): Use Qkeyboard and Qterminal.
10271 2000-03-21 Ben Wing <ben@xemacs.org>
10273 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10274 From Mike Alexander <mta@arbortext.com>.
10276 2000-03-21 Ben Wing <ben@xemacs.org>
10278 * event-msw.c (mswindows_need_event): Horrible kludge to fix
10279 process brokenness. Proper implementation to come.
10281 Rename call-process-internal to old-call-process-internal.
10282 New impl. in process.el.
10284 2000-03-21 Martin Buchholz <martin@xemacs.org>
10286 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10288 2000-03-20 Andy Piper <andy@xemacs.org>
10290 * glyphs.c (full_list_hash): make hashes of the same elements in
10291 different orders return different values.
10293 2000-03-20 Martin Buchholz <martin@xemacs.org>
10295 * XEmacs 21.2.32 is released.
10297 2000-03-20 Martin Buchholz <martin@xemacs.org>
10299 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10300 (DFC_MALLOC_USE_CONVERTED_DATA):
10301 Add aliasing-safe casts to allow use with char* or unsigned char*
10304 * eldap.c (Fldap_open):
10305 (Fldap_search_basic):
10308 Make C++-compilable.
10309 Make sure GCPRO'ed variables are initialized.
10310 Use temp variables to avoid repeated calls to Flength.
10312 2000-03-16 Martin Buchholz <martin@xemacs.org>
10315 Make sure PATH_MAX is always defined.
10316 Include limits.h for PATH_MAX.
10317 Deprecate use of MAXPATHLEN.
10319 2000-03-10 Martin Buchholz <martin@xemacs.org>
10321 * emacs.c: Add reinit_vars_of_fileio.
10322 * symsinit.h: Add reinit_vars_of_fileio.
10323 * fileio.c (reinit_vars_of_fileio): New.
10324 * fileio.c (Fmake_temp_name):
10325 Initialize temp_name random number from microseconds to make
10326 collisions even less likely. Initialize always at process startup
10327 time. (make-temp-name) used to return the same file name twice in
10329 Random stylistic fiddling.
10332 2000-03-20 Andy Piper <andy@xemacs.org>
10334 * glyphs.c (image_instantiate): allow text glyphs to be
10335 instantiated in the minibuffer window.
10337 2000-03-19 Andy Piper <andy@xemacs.org>
10339 * glyphs.c (image_instance_hash): be careful about which items we
10342 * glyphs-widget.c (tab_control_set_property): record into pending
10343 items rather than the actual items.
10345 * glyphs-x.c (x_update_widget): use pending items to update with.
10347 * glyphs-msw.c (mswindows_tab_control_update): use pending items
10350 * glyphs.c (mark_image_instance): mark pending items.
10352 * window.c (Fset_window_configuration): record the buffer.
10353 (Fselect_window): totally revert previous change which breaks many
10356 2000-03-18 Andy Piper <andy@xemacs.org>
10358 * glyphs-msw.c (mswindows_tab_control_update): force selected
10361 * glyphs.c (image_instantiate): don't allow the minibuffer as a
10362 window domain cache, otherwise we get inconsistencies at
10363 startup. There is something fishy at startup which can lead to the
10364 minibuffer being the selected window when the gutter content is
10367 * gui.c (parse_gui_item_tree_list): add probably unnecessary
10369 (parse_gui_item_tree_children): ditto.
10370 (parse_gui_item_tree_item): ditto.
10372 * glyphs.c (Fupdate_widget_instances): return something.
10374 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
10376 * window.c (Fselect_window): Undo 2000-03-17 change.
10378 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
10380 * postgresql.c (Fpq_setenv): Remove this turkey when linking
10381 against v7.0 libraries. Insta-coredump city until the postgres
10384 2000-03-17 Andy Piper <andy@xemacs.org>
10386 * faces.c (complex_vars_of_faces): don't give the widget face an
10387 inherited background pixmap.
10389 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10392 * event-stream.c (Fdispatch_non_command_events): return something.
10394 * gutter.c (output_gutter): use widget face.
10395 (clear_gutter): ditto.
10397 * NEWS: adjust again.
10399 * window.c (Fselect_window): make sure this runs to completion to
10400 avoid oddities with Fset_window_configuration.
10401 (Fcurrent_window_configuration): in general do not save the
10402 minibuffer as the selected window.
10404 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10406 2000-03-16 Olivier Galibert <galibert@pobox.com>
10408 * emacs.c (Frunning_temacs_p): Revert previous patch.
10409 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10411 2000-03-16 Andy Piper <andy@xemacs.org>
10413 * glyphs-x.c (x_tab_control_update): if no widget values then
10416 * NEWS: update for new features.
10418 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10419 synthetic event to the native system.
10420 (reinit_vars_of_event_Xt): set force_event_pending to
10421 emacs_Xt_force_event_pending.
10423 * events.h (struct event_stream): add force_event_pending.
10425 * specifier.c (recompute_one_cached_specifier_in_window): add
10428 * redisplay.c (redisplay_frame): don't call
10429 update_frame_subwindows. Reset subwindow cachels when
10430 subwindows_changed, removing this was an optimization too far.
10432 * redisplay-output.c (compare_runes): reorganize so that we catch
10433 glyph changes when we want them. Set optimize_output when this
10434 would help layouts.
10435 (redisplay_output_layout): remove frame_really_changed, use
10436 optimize_output instead.
10438 * redisplay-msw.c (mswindows_output_display_block): reset
10439 optimize_output after outputting a glyph.
10440 * redisplay-x.c (x_output_display_block): ditto.
10441 * redisplay-tty.c (tty_output_display_block): ditto.
10443 * gutter.c: (specifier_vars_of_gutter): use new spec changed
10445 (gutter_specs_changed): do specific gutter positions.
10446 (top_gutter_specs_changed): new function. Only update the
10447 specified gutter specs.
10448 (bottom_gutter_specs_changed): ditto.
10449 (left_gutter_specs_changed): ditto.
10450 (right_gutter_specs_changed): ditto.
10452 * gui.c (gui_item_hash_internal): new function, does a real hash.
10453 (gui_item_id_hash): use it.
10454 (gui_item_hash): hash the eval'ed gui_item.
10456 * gui-x.c (popup_selection_callback): send an eval event to call
10457 Fupdate_widget_instances.
10459 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10460 to call Fupdate_widget_instances.
10462 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10463 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10465 * glyphs.c: (update_frame_subwindows): deleted.
10466 (Fupdate_widget_instances): new function for updating the dirty
10467 state of widgets that might have changed.
10468 (syms_of_glyphs): add Qupdate_widget_instances.
10469 (full_list_hash): hash a list completely.
10470 (image_instance_hash): use it for items and properties.
10472 * frame-msw.c (mswindows_size_frame_internal): remove unused
10475 * faces.h (struct face_cachel): fix comment.
10477 * event-stream.c (Fdispatch_non_command_events): new
10478 function. Process non-command events, forcing an event cycle
10480 (syms_of_event_stream): declare.
10481 (event_stream_force_event_pending): new function. Force an event
10482 on the native event queue so that an event cycle will occur next
10486 (struct ntpipe_shove_stream):
10487 (mswindows_enqueue_dispatch_event):
10488 (mswindows_dequeue_dispatch_event):
10489 (mswindows_cancel_dispatch_event):
10490 (mswindows_pump_outstanding_events):
10491 (mswindows_drain_windows_queue):
10492 (mswindows_handle_paint):
10493 (mswindows_wnd_proc):
10494 (mswindows_key_to_emacs_keysym):
10495 (get_process_input_waitable):
10496 (emacs_mswindows_delete_stream_pair): re-indent file.
10497 (mswindows_need_event): do not process further fds if the windows
10498 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10499 fixes the 100% cpu problem.
10500 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10502 2000-03-15 Olivier Galibert <galibert@pobox.com>
10508 * emacs.c: Moved dump file searching to dumper.c.
10509 (Frunning_temacs_p): Fixed.
10511 * alloc.c: Moved everything pdump-related to dumper.c. Removed
10512 last_lrecord_type_index_assigned.
10514 2000-02-20 Olivier Galibert <galibert@pobox.com>
10516 * symsinit.h: Added reinit parameter to init_console_stream
10519 * lisp.h: Added file parameter to pdump_load declaration.
10521 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10522 support. Added dump file searching.
10524 * config.h.in: Added EMACS_PROGNAME.
10526 * console-stream.c (init_console_stream): Fix reinitialisation
10527 when running from temacs.
10529 * alloc.c (pdump): Add id support.
10530 (pdump_load): Add file parameter and signature/id support.
10532 * Makefile.in.in: Add full pdump support.
10534 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
10536 * postgresql.c: Update documentation to reflect latest code
10538 (print_result): Show tuple counts in printed representation when
10540 (Fpq_put_nbytes): MULE-ize.
10541 (Fpq_get_line_async): Ditto.
10543 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10545 * postgresql.c (Fpq_lo_import): Fix return value.
10546 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10548 2000-03-13 Ben Wing <ben@xemacs.org>
10550 * alloc.c (pdump_load):
10551 Fix compile warning under mswin.
10553 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10555 * postgresql.c: Mule-ization, bug fixes.
10556 Use PG_CODING to encapsulate coding system name changes.
10557 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10558 (pg-coding-system): Create.
10560 (Fpq_conn_defaults): Mule-ize.
10561 (Fpq_connectdb): Mule-ize & bug fix.
10562 (Fpq_connect_start): Mule-ize.
10563 (Fpq_set_client_encoding): Mule-ize.
10564 (Fpq_finish): Document `DEAD' connection status.
10565 (Fpq_clear): Ditto.
10566 (Fpq_pgconn): Mule-ize.
10567 (Fpq_exec): Mule-ize & bug fix.
10568 (Fpq_send_query): Ditto.
10569 (Fpq_get_result): Ditto.
10570 (Fpq_res_status): Mule-ize.
10571 (Fpq_result_error_message): Mule-ize.
10572 (Fpq_ntuples): fix comments.
10573 (Fpq_fname): Mule-ize.
10574 (Fpq_fnumber): Mule-ize.
10575 (Fpq_ftype): fix comments.
10576 (Fpq_get_value): Mule-ize.
10577 (Fpq_cmd_status): Ditto.
10578 (Fpq_cmd_tuples): Ditto.
10579 (Fpq_oid_value): Ditto.
10580 (Fpq_notifies): Ditto.
10581 (Fpq_lo_import): Ditto.
10582 (Fpq_lo_export): Ditto.
10583 (Fpq_get_line): Ditto.
10584 (Fpq_put_line): Mule-ize and bug fix.
10585 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10587 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10589 * postgresql.c (vars_of_postgresql): Mule-ize.
10590 (Fpq_conn_defaults): Ditto.
10592 2000-03-12 Ben Wing <ben@xemacs.org>
10594 * alloc.c (Fmake_byte_code):
10595 * alloc.c (debug_string_purity_print):
10596 * alloc.c (pdump_backtrace):
10597 * alloc.c (pdump_get_indirect_count):
10598 * alloc.c (pdump_register_sub):
10599 * alloc.c (pdump_register_object):
10600 * alloc.c (pdump_register_struct):
10601 * alloc.c (pdump_dump_data):
10602 * alloc.c (pdump_reloc_one):
10606 * console-msw.c (GetConsoleHwnd):
10607 * console-msw.c (msw_hide_console):
10608 * console-msw.c (msw_show_console):
10609 * console-msw.c (msw_ensure_console_buffered):
10610 * console-msw.c (msw_output_console_string):
10611 * console-msw.c (console_type_create_mswindows):
10613 a) Added functions to manipulate the console window for use with
10616 b) Added support for writing text to the console, which is now
10617 used under Windows when xemacs is not being run non-interactively,
10618 to write text that would otherwise be destined for stdout because
10619 under these circumstances, text written to stdout tends to
10620 disappear and not be seen.
10624 * event-Xt.c (x_event_to_emacs_event):
10625 * event-Xt.c (describe_event_window):
10626 * events-mod.h (XEMACS_MOD_CONTROL):
10628 * events.c (Fmake_event):
10629 * events.c (character_to_event):
10630 * events.c (event_to_character):
10631 * events.c (format_event_object):
10632 * events.c (Fevent_modifiers):
10634 * events.h (struct key_data):
10635 * events.h (struct button_data):
10636 * events.h (struct misc_user_data):
10637 * frame-x.c (Fcde_start_drag_internal):
10638 * frame-x.c (Foffix_start_drag_internal):
10639 * gpmevent.c (Freceive_gpm_event):
10641 * keymap.c (bucky_sym_to_bucky_bit):
10642 * keymap.c (control_meta_superify):
10643 * keymap.c (make_key_description):
10644 * keymap.c (keymap_lookup_directly):
10645 * keymap.c (create_bucky_submap):
10646 * keymap.c (keymap_store):
10647 * keymap.c (define_key_check_and_coerce_keysym):
10648 * keymap.c (define_key_parser):
10649 * keymap.c (define_key_alternate_name):
10650 * keymap.c (Fdefine_key):
10651 * keymap.c (raw_lookup_key_mapper):
10652 * keymap.c (struct map_keymap_unsorted_closure):
10653 * keymap.c (map_keymap_unsorted_mapper):
10654 * keymap.c (map_keymap_sort_predicate):
10655 * keymap.c (map_keymap_sorted):
10656 * keymap.c (accessible_keymaps_mapper_1):
10657 * keymap.c (where_is_recursive_mapper):
10658 * keymap.c (describe_map_mapper):
10659 * keymap.c (describe_map_sort_predicate):
10660 * keymap.c (describe_map):
10661 * keymap.c (complex_vars_of_keymap):
10662 And a number of other files, the key modifier preprocessor
10663 constants that xemacs uses have names that conflict with constants
10664 defined under MS Windows for other purposes, so they were renamed
10665 to begin with the prefix XEMACS_. The variables that hold such
10666 modifiers were changed to consistently be of type int to fix
10667 various compile warnings.
10669 * console.c (complex_vars_of_console):
10672 * device-msw.c (mswindows_finish_init_device):
10673 * device-msw.c (msw_get_workspace_coords):
10674 * device-msw.c (mswindows_device_system_metrics):
10675 and various other files, added support for a new
10676 device property called offset-workspace which returns the position
10677 of the upper left corner of the workspace area and goes along with
10678 the existing size-workspace property.
10681 * dialog-msw.c (push_bufbyte_string_as_unicode):
10682 * dialog-msw.c (mswindows_popup_dialog_box):
10683 Added support for XEmacs-style accelerator specifications in
10684 button text. Note: I didn't add support for this under X Windows,
10685 and somebody needs to do this.
10688 * dialog.c (Fpopup_dialog_box):
10689 Documented the support for accelerators that was just mentioned.
10691 editfns.c (get_home_directory): Changed behavior under Windows
10692 when HOME not defined; former behavior was irretrievably broken.
10695 * emacs.c (main_1):
10697 * minibuf.c (clear_echo_area_internal):
10698 * minibuf.c (echo_area_append):
10700 * print.c (std_handle_out_external):
10701 * print.c (std_handle_out_va):
10703 * print.c (write_string_to_stdio_stream):
10704 * print.c (output_string):
10705 * print.c (debug_print):
10706 * print.c (debug_backtrace):
10707 * print.c (debug_short_backtrace):
10708 Cleaned up the code that prints text to stdout so that this can be
10709 changed to output into a console window instead under MS Windows,
10710 as described above.
10713 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10714 * eval.c (internal_catch):
10715 * eval.c (unwind_to_catch):
10716 * eval.c (throw_or_bomb_out):
10717 * eval.c (condition_case_1):
10718 * eval.c (signal_1):
10719 * eval.c (check_error_state_sanity):
10720 * eval.c (call_with_suspended_errors_1):
10721 * eval.c (call_with_suspended_errors):
10722 * eval.c (reinit_vars_of_eval):
10723 Added code to catch throw loops and check for a pesky bug that may
10727 * event-msw.c (key_needs_default_processing_p):
10728 * event-msw.c (mswindows_wnd_proc):
10729 * event-msw.c (mswindows_modifier_state):
10730 * event-msw.c (emacs_mswindows_quit_p):
10731 * event-msw.c (vars_of_event_mswindows):
10732 a) Added support for using the alt key to select menu items as is
10733 standard under MS Windows. This is controlled using the variable
10734 menu-accelerator-enabled, just like under X Windows. There is an
10735 option on the options menu to turn this support on. I really
10736 think that it should be on by default under Windows, but I'm not
10737 going to make this change yet.
10739 b) Added support for dynamic display size changes under Windows.
10742 * event-stream.c (maybe_echo_keys):
10743 * event-stream.c (Fnext_event):
10744 * event-stream.c (command_builder_find_leaf):
10745 * event-stream.c (lookup_command_event):
10746 * event-stream.c (execute_command_event):
10747 * event-stream.c (pre_command_hook):
10748 * event-stream.c (post_command_hook):
10749 * event-stream.c (syms_of_event_stream):
10750 * event-stream.c (vars_of_event_stream):
10751 * event-stream.c (complex_vars_of_event_stream):
10752 * events.h (struct command_builder):
10754 a) Tried to clean up a little bit the horribly written x-specific
10755 accelerator code that crept into this file. I moved this code
10756 into menubar-x.c where it belongs. I also needed to move the
10757 command builder structure into the file events.h because it is
10758 accessed directly by this accelerator code. What I didn't do, but
10759 which should be done at some point, is to properly abstract this
10760 code using device methods instead of the kludgy way that it
10761 currently hooks into the event code.
10763 b) Added the lisp variables this-command-properties and
10764 last-command- properties, which should be used to synchronize two
10765 adjacent commands in preference to playing games with the variable
10766 this-command, which is typically what happens.
10768 c) Added some slightly nasty code to hook into the lisp support
10769 for shifted- motion-key selection. This is actually necessary for
10770 somewhat complicated reasons, which are described in
10771 simple.el. (NB: I think the proper thing would be to have the code
10772 that calls the pre and post command hooks also call out to generic
10773 lisp functions in simple.el, where all built-in stuff could be
10774 added. I will think about this more.)
10776 * event-unixoid.c (poll_fds_for_input):
10777 * lread.c (readchar):
10778 * redisplay-tty.c (tty_clear_frame):
10779 * redisplay-x.c (x_get_gc):
10780 * signal.c (interrupt_signal):
10781 And a whole bunch of other files: fixed up places that printed
10782 directly to stderr to instead call the function stderr_out so that
10783 the changes I made under Windows work correctly.
10785 * filemode.c (mode_string):
10789 * frame-msw.c (mswindows_size_frame_internal):
10790 Fixed the computation of frame size and position to keep the frame
10791 within the workspace area, rather than within the physical
10792 dimensions of the screen, so that the frame doesn't overlap window
10793 manager decorations, such as the start menu and toolbar, typically
10794 at the bottom of the screen.
10796 * frame.c (vars_of_frame):
10797 Changed the default frame title format under MS Windows to consist
10798 of buffername-XEmacs, which is standard under MS Windows. I think
10799 it might be a good idea to change this everywhere because I think
10800 it is superior to the current frame title format, but this is the
10801 kind of change that is likely to cause some people to get annoyed,
10802 so I'm not making it.
10804 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10806 * gui-msw.c (mswindows_handle_gui_wm_command):
10807 Fixed compile warnings.
10810 * gui-x.c (strdup_and_add_accel):
10811 * gui-x.c (button_item_to_widget_value):
10813 Added code to automatically put an accelerator onto the beginning
10814 of menu items that don't have one as is now the standard, and is
10815 described more later. Also fixed things so that the menu item
10816 name can be an evaluated expression, again a new standard.
10819 * gui.c (gui_item_add_keyval_pair):
10820 * gui.c (make_gui_item_from_keywords_internal):
10821 * gui.c (gui_add_item_keywords_to_plist):
10822 * gui.c (gui_item_accelerator):
10823 * gui.c (gui_name_accelerator):
10824 * gui.c (gui_item_included_p):
10825 * gui.c (gui_item_display_flush_left):
10826 * gui.c (gui_item_display_flush_right):
10827 * gui.c (parse_gui_item_tree_item):
10828 * gui.c (parse_gui_item_tree_children):
10829 * gui.c (parse_gui_item_tree_list):
10830 Mule-ized. Cleanup. GCPRO addition.
10832 * line-number.c (buffer_line_number):
10834 * lisp.h (EMACS_INT_MAX):
10835 Added the manifest constant EMACS_INT_MIN corresponding to the
10836 existing constant EMACS_INT_MAX. This is partially to fix compile
10837 warnings under Windows, and partly for cleanliness.
10840 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10841 * menubar-msw.c (msw_translate_menu_or_dialog_item):
10842 * menubar-msw.c (displayable_menu_item):
10843 * menubar-msw.c (populate_menu_add_item):
10844 * menubar-msw.c (populate_or_checksum_helper):
10845 * menubar-msw.c (populate_menu):
10846 * menubar-msw.c (update_frame_menubar_maybe):
10847 * menubar-msw.c (prune_menubar):
10848 * menubar-msw.c (msw_char_is_accelerator):
10849 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10850 * menubar-msw.c (mswindows_handle_wm_command):
10851 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10852 * menubar-msw.c (mswindows_handle_wm_initmenu):
10853 * menubar-msw.c (mswindows_update_frame_menubars):
10854 * menubar-msw.c (mswindows_free_frame_menubars):
10855 * menubar-msw.c (mswindows_popup_menu):
10856 Fixed a bug in handling accelerators where an extra character
10857 would be displayed in the menu item. Also generalized the
10858 function displayable_menu_item because it is now used by the
10859 dialog box code as well. And finally, added code in the functions
10860 that create the menubar to extract a list of accelerators for the
10861 top level menubar, which is used in the event code to determine
10862 whether a particular alt-key combination should be used to invoke
10863 a menu item, or should be passed through to access the standard
10864 XEmacs keymap binding for this key combination.
10866 Much needed GCPROing.
10869 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10870 * menubar-x.c (menu_item_descriptor_to_widget_value):
10871 * menubar-x.c (restore_in_menu_callback):
10872 * menubar-x.c (x_popup_menu):
10873 * menubar-x.c (menu_move_up):
10874 * menubar-x.c (menu_move_down):
10875 * menubar-x.c (menu_move_left):
10876 * menubar-x.c (menu_move_right):
10877 * menubar-x.c (menu_select_item):
10878 * menubar-x.c (command_builder_operate_menu_accelerator):
10879 * menubar-x.c (menu_accelerator_junk_on_error):
10880 * menubar-x.c (command_builder_find_menu_accelerator):
10881 * menubar-x.c (Faccelerate_menu):
10883 Moved a whole bunch of code here that was previously in
10884 event-stream.c as described above. There is also code connected
10885 to the new standard of adding an accelerator to the beginning of
10886 menu items that don't have one as described above and below.
10889 * menubar.c (menu_parse_submenu_keywords):
10890 * menubar.c (Fmenu_find_real_submenu):
10891 * menubar.c (Fnormalize_menu_item_name):
10892 * menubar.c (syms_of_menubar):
10893 * menubar.c (vars_of_menubar):
10894 * menubar.c (complex_vars_of_menubar):
10896 a) Cleaned up a bunch of documentation and improved it.
10898 b) XEmacs now automatically adds an accelerator onto the beginning
10899 of any menu items that don't have one. I did this because there
10900 will inevitably be some menu items on the main menubar that don't
10901 have accelerators on them because the package that adds that
10902 particular menu item hasn't yet been fixed up to have accelerators
10903 in them and it looked rather strange to have some items with and
10904 some items without accelerators, especially since even in items
10905 without accelerators, you can, at least under windows, still
10906 access the item through an accelerator corresponding to the first
10907 character in the item's name. If people don't like this behavior,
10908 I can add a variable to turn it off optionally, but I'm not sure
10909 this is a good idea because we really do need to have accelerators
10910 on all of the menu items, and if a package doesn't like the
10911 accelerators being put on the first character, then it should put
10912 the accelerators where they belong.
10914 c) I made a behavior change, which is that the descriptor that
10915 specifies the text of the menu item, which formerly was just a
10916 string, can now also be an evaluated expression. This makes this
10917 descriptor parallel with all of the others, which could also be
10918 evaluated expressions. This also obviates the need for the
10919 keyword :label, which was previously listed in the documentation
10920 as unimplemented, and which was for the same purpose.
10925 * ntproc.c (new_child):
10926 * ntproc.c (sys_spawnve):
10927 * ntproc.c (find_child_console):
10928 * ntproc.c (sys_kill):
10929 Fixed compile warnings. By the way, this file should really go
10930 away entirely, and this will happen as soon as Kirill makes his
10931 final round of process cleanups, which affect the function
10935 * process-nt.c (struct nt_process_data):
10936 * process-nt.c (find_process_from_pid):
10937 * process-nt.c (send_signal_the_nt_way):
10938 * process-nt.c (enable_child_signals):
10939 * process-nt.c (find_child_console):
10940 * process-nt.c (send_signal_the_95_way):
10941 * process-nt.c (nt_finalize_process_data):
10942 * process-nt.c (ensure_console_window_exists):
10943 * process-nt.c (nt_create_process):
10944 * process-nt.c (nt_kill_child_process):
10945 * process-nt.c (nt_kill_process_by_pid):
10946 * process-nt.c (nt_open_network_stream):
10947 * process-nt.c (vars_of_process_nt):
10948 Copied over code from Emacs 20.5 to correctly send signals to sub-
10949 processes under Windows 95. Also added code to automatically
10950 create and hide console window when a sub-process is created under
10951 Windows 95, which obviates the need for the separate runemacs.exe
10952 executable, and finally implemented some variables that were
10953 implemented in Emacs 20.5, but previously not in XEmacs. These
10954 include mswindows- start-process-share-console and
10955 mswindows-start-process-inherit-error-mode. (Both of these only
10956 apply to Windows 95.)
10958 * regex.c (regex_compile): Fixed a compile warning.
10961 * select-msw.c (mswindows_own_selection):
10962 * select-msw.c (mswindows_get_foreign_selection):
10963 * select-msw.c (mswindows_disown_selection):
10964 * select-msw.c (console_type_create_select_mswindows):
10965 * select-msw.c (syms_of_select_mswindows):
10966 Cleaned up the file and implemented the device method
10967 selection_exists_p, which had accidentally been left out. Also
10968 removed four lisp functions that were remnants from before the
10969 time when the selection code was properly device abstracted.
10970 These functions are no longer needed because there are generic
10971 equivalents, and because they were added recently and don't exist
10972 in FSF Emacs, I don't think there's any problem with just deleting
10976 * sysdep.c (sys_subshell):
10977 Fixed a compile warning, although in this case there's probably
10978 something wrong with this code, and it ought to be looked into
10979 more thoroughly by somebody who understands it.
10982 * window.c (Fwindow_text_area_height):
10983 * window.c (Fwindow_width):
10984 * window.c (Fwindow_full_width):
10985 * window.c (Fwindow_pixel_width):
10986 * window.c (debug_print_window):
10987 * window.c (syms_of_window):
10988 Added functions window-text-area-height and window-full-width,
10989 which are functions for returning various width and height
10990 characteristics of a window. (One of these functions is necessary
10991 for making the file dialog box work correctly, and the other one
10992 was added for completeness.) Also added a table to the
10993 documentation for window-height which describes the entire scheme
10994 for accessing width and height characteristics of a window.
10996 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10998 * nt.c (fstat): Added a comment for another problem with
10999 non-encapsulated [f]stat(), reported by Adrian Aichner
11000 <aichner@ecf.teradyne.com>.
11002 2000-03-11 Andy Piper <andy@xemacs.org>
11004 * window.c (make_dummy_parent): initialize subwindow instance
11006 (Fset_window_configuration): zero extent_modiff.
11008 2000-03-10 Andy Piper <andy@xemacs.org>
11010 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
11011 more changes can be triggered.
11012 (Fredisplay_frame): ditto.
11013 (Fredraw_device): ditto.
11014 (Fredisplay_device): ditto.
11015 (redisplay_frame): make non-static.
11016 (redisplay_frame): call update_frame_gutter_geometry outside of
11019 * gutter.h: declare update_frame_gutter_geometry.
11021 * redisplay.h: declare redisplay_frame.
11023 * gutter.c (update_frame_gutter_geometry): move geometry changes
11024 in update_frame_gutters here. Geometry changes can only occur
11025 outside of redisplay.
11026 (update_frame_gutters): remove geometry change code.
11027 (Fredisplay_gutter_area): make sure that we are in display when we
11028 update and that we have flushed any size changes.
11030 2000-03-11 Andy Piper <andy@xemacs.org>
11032 * alloc.c (pdump_dump_data): remove i & count shadows.
11034 2000-02-27 Mike Alexander <mta@arbortext.com>
11036 * sysdep.h: Declare pdump_read_file
11038 * sysdep.c (pdump_read_file): New function
11040 * alloc.c (pdump_load): Call pdump_read_file to get the portable
11043 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
11045 * lrecord.h: add `lrecord_type_pgsetenv'.
11047 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
11049 * symsinit.h: declare (vars|syms)_of* functions.
11050 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
11052 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
11054 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
11056 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
11059 * emacs.c (main_1): Call postgres initialization code.
11061 * postgresql.h: New file. PostgreSQL RDBMS support.
11062 * postgresql.c: New file.
11064 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
11066 * redisplay-output.c (redisplay_output_display_block): Disable
11069 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11071 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11072 (Fcanna_henkan_next): Ditto.
11073 (Fcanna_bunsetu_henkou): Ditto.
11074 (Fcanna_henkan_kakutei): Ditto.
11075 (Fcanna_henkan_end): Ditto.
11076 (Fcanna_henkan_quit): Ditto.
11077 (Fcanna_henkan_next): Set retun value correctly.
11078 (c2mu): Use unsigned char instead of signed char.
11080 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11082 * emacs.c (main_1): Always call syms_of_gui.
11083 * inline.c: include gui.h
11085 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11087 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11088 converted to Lisp_Object.
11089 (Qtop_bottom): New variable.
11090 (syms_of_redisplay): Initialize it.
11091 * redisplay.h (Vvisible_bell): Ditto.
11092 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11093 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11094 only flash top and bottom.
11096 2000-03-08 Andy Piper <andy@xemacs.org>
11098 * buffer.c (Frename_buffer): record new buffer name the right way.
11100 2000-03-08 Andy Piper <andy@xemacs.org>
11102 * glyphs.c (update_subwindow): increase hash depth so that widget
11103 items get picked up properly.
11105 * redisplay-output.c (compare_runes): increase hash depth so that
11106 widget items get picked up properly.
11108 2000-03-08 Andy Piper <andy@xemacs.org>
11110 * gutter.c (output_gutter): add some debug.
11112 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11113 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11114 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11116 * redisplay-output.c (compare_runes): use display_hash to
11117 determine if glyphs really are not the same.
11119 * glyphs.c (update_subwindow): check display_hash to see if
11120 anything really needs to be updated. If not then do
11121 nothing. Record the display_hash after updating.
11122 (image_instance_equal): compare the image_instance face also.
11124 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
11126 * redisplay.h: Fix comment style.
11128 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
11130 * consle-msw.h (struct mswindows_frame):
11131 Added new member paint_pending to indicate whether a WM_PAINT
11132 magic event has been queued for this frame.
11134 * event-msw.c (mswindows_drain_windows_queue):
11135 Don't queue a WM_PAINT magic event if one is already queued.
11136 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11138 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11140 2000-03-07 Didier Verna <didier@xemacs.org>
11142 * dired.c: #include `regex.h' after `sysfile.h'.
11144 2000-03-06 Martin Buchholz <martin@xemacs.org>
11146 * sound.c (init_nas_sound): Fix compiler warning.
11148 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11150 (MARK_STRUCT_AS_FREE):
11151 (MARK_STRUCT_AS_NOT_FREE):
11152 Make `gcc -fstrict-aliasing' work properly.
11154 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
11156 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11157 (mswindows_delete_device): Call CoUnnitialize().
11159 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11161 2000-02-25 <CraigL@DyCon.com>
11163 * process-nt.c: MinGW now has <shellapi.h>, but still needs
11166 * sysdep.c: This extern declaration for environ prevents MinGW
11167 from finding the variable in CRTDLL.DLL.
11169 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11171 (SHGFI_EXETYPE): ..
11172 (WM_MOUSEWHEEL): ..
11173 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11175 (MMRESULT): Removed, now defined in cygwin's windows headers.
11177 (uid_t,gid_t,pid_t,ssize_t): ..
11178 (_timeb): Removed, MinGW defines both _timeb and timeb.
11179 (HAVE_H_ERRNO): Added.
11180 (HAVE_TZNAME): Added, configure is not detecting this.
11182 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
11184 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11185 * syntax.c (syntax_match): Use it.
11187 * cmds.c: Import auto-fill-chars from FSF Emacs.
11188 (Vauto_fill_chars): New variables.
11189 (internal_self_insert): Check Vauto_fill_chars.
11191 Declare auto-fill-chars as a Lisp variable and initialize it.
11193 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
11195 * fileio.c (Fmake_symbolic_link):
11197 Run handlers even if local machine doesn't have symlinks.
11199 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
11201 * event-msw.c (mswindows_drain_windows_queue):
11202 Don't generate paint magic events for non-XEmacs frames.
11204 2000-03-05 Andy Piper <andy@xemacs.org>
11206 * redisplay.c (redisplay_frame): generate_displayable_area and
11207 friends assumes that we are not in GC, we therefore have to make
11208 sure that this doesn't happen.
11210 * gutter.c (calculate_gutter_size): generate_displayable_area
11211 assumes that we are not in GC, we therefore have to make sure that
11212 this doesn't happen.
11214 2000-03-05 Martin Buchholz <martin@xemacs.org>
11216 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11218 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
11220 * redisplay.c (regenerate_window): Make sure we set a sane value
11221 for end_pos even if we jump out of the loop.
11222 (regenerate_window): Answer Ben's question :-).
11223 (start_end_of_last_line): Add may_error argument.
11224 (start_of_last_line):
11225 (end_of_last_line): Pass may_error = 0.
11226 (end_of_last_line_may_error): New function.
11227 (pixel_to_glyph_translation): Use it, so we don't crash in
11230 2000-03-04 Andy Piper <andy@xemacs.org>
11232 * window.h (struct window): add gutter_extent_modiff.
11234 * window.c (allocate_window): zero out gutter_extent_modiff.
11236 * redisplay.h: declare sync_display_line_structs.
11238 * redisplay.c (add_glyph_rune): add a better comment.
11240 * redisplay-output.c (sync_display_line_structs): made non-static.
11241 (compare_runes): remove unneccesary glyph cachel access.
11243 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11245 * gutter.c (output_gutter): don't output the gutter if extent
11246 changes only involve extents in buffers. use 4 sets of display
11248 (gutter_extent_signal_changed_region_maybe): new function. Mark
11249 extents in gutters as changed.
11250 (update_frame_gutters): use 4 sets of display lines.
11251 (reset_gutter_display_lines): ditto.
11252 (free_frame_gutters): ditto.
11253 (redraw_exposed_gutter): force output of gutters.
11255 * frame.h (struct frame): add 4 sets of gutter display lines.
11257 * extents.c: (extent_changed_for_redisplay): signal changes to
11258 extents in strings in the gutter as well as extents in buffers.
11260 2000-03-02 Andy Piper <andy@xemacs.org>
11262 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11264 * frame.c (Fmake_frame): make sure the gutters get initialized
11265 after the frame is visible.
11266 (set_frame_selected_window): re-arrange compilation macros a
11268 (change_frame_size_1): mark gutters changed.
11270 * device.c (Fset_device_class): mark gutters changed.
11272 2000-03-01 Andy Piper <andy@xemacs.org>
11274 * window.c (window_top_frame_gutter_height): deleted.
11275 (window_bottom_frame_gutter_height): ditto.
11276 (window_left_frame_gutter_height): ditto.
11277 (window_right_frame_gutter_height): ditto.
11278 (window_top_gutter_height): don't use them.
11279 (window_bottom_gutter_height): ditto.
11280 (window_left_gutter_width): ditto.
11281 (window_right_gutter_width): ditto.
11282 (Fsplit_window): ditto.
11283 (Fwindow_pixel_edges): don't use border dimensions here.
11285 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11286 (update_scrollbar_instance): ditto.
11288 * redisplay.c (generate_modeline): don't take gutters into account.
11289 (generate_modeline): ditto.
11290 (redisplay_frame): small gutter display optimization.
11292 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11294 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11295 gutters into account.
11297 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11298 for window position and type.
11300 * gutter.c (get_gutter_coords): fix for frame gutters.
11301 (update_frame_gutters): update frame geometry if the gutters have
11303 (init_frame_gutters): record current gutter geometries.
11305 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11307 (mswindows_widget_instantiate): ditto.
11309 * frame.h (struct frame): add current_gutter_bounds.
11311 * frame.c (change_frame_size_1): position window and minibuffer
11312 appropriately taking into account the frame gutters.
11314 * frame-x.c: (x_initialize_frame_size): take into account the
11317 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11319 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
11321 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11323 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11325 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11327 * file-coding.c (reset_decoding_stream): Clear previous
11328 detection state when autodetect.
11330 2000-02-29 Didier Verna <didier@xemacs.org>
11332 * extents.c (set_extent_glyph_1): don't require extents to be
11335 2000-02-27 Andy Piper <andy@xemacs.org>
11337 * gutter.c (Fset_default_gutter_position): don't default left and
11338 right gutter visibility to t.
11339 (Fset_default_gutter_position): run
11340 default-gutter-position-changed-hook.
11341 (syms_of_gutter): add default-gutter-position-changed-hook.
11343 2000-02-26 Andy Piper <andy@xemacs.org>
11345 * specifier.c (Fmake_specifier): add gutter references.
11347 * gutter.h (RAW_WINDOW_GUTTER): new macro.
11349 * lisp.h: declare Fvalid_plist_p.
11351 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11353 (default_gutter_visible_p_changed_in_window): invalidate gutter as
11354 well as its visibility so that it gets reconstructed.
11355 (construct_window_gutter_spec): new function. Construct a string
11356 to be displayed in the gutter from a plist of strings. Take care
11357 to only use elements that are declared as visible.
11358 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11360 (gutter_validate): allow plists of strings in the specifier.
11361 (gutter_specs_changed): construct the real_gutter from the gutter
11362 specs using construct_window_gutter_spec.
11363 (gutter_visible_validate): gutter-visible is a new specifier type.
11364 (Fgutter_visible_specifier_p): new function for the new specifier.
11365 (syms_of_gutter): declare gutter-visible and
11366 Fgutter_visible_specifier_p.
11367 (specifier_type_create_gutter): intitalize new gutter-visible
11369 (reinit_specifier_type_create_gutter): ditto.
11370 (specifier_vars_of_gutter): use new specifier type for gutter
11372 (init_frame_gutters): construct real_gutter correctly.
11373 (Fgutter_specifier_p): beef up documentation.
11374 (Fgutter_size_specifier_p): ditto.
11376 * winslots.h: add real_gutter slots.
11378 2000-02-25 Andy Piper <andy@xemacs.org>
11380 * device-msw.c: Be kind to older cygwin versions. From Raymond
11381 Toy <toy@rtp.ericsson.se>.
11383 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11384 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11386 2000-02-25 Martin Buchholz <martin@xemacs.org>
11388 * elhash.c (MARK_OBJ): Practice macro hygiene.
11390 2000-02-24 Martin Buchholz <martin@xemacs.org>
11392 * miscplay.c: s/__inline__/inline/g;
11393 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11394 (get_device_compdc): INLINE ==> static inline
11395 * *.[ch]: Change INLINE to INLINE_HEADER globally.
11396 find -name '*.h' | \
11397 xargs global-replace \
11398 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11400 2000-02-25 Andy Piper <andy@xemacs.org>
11402 * window.c (window_top_frame_gutter_height): new function.
11403 (window_top_window_gutter_height): ditto.
11404 (window_top_gutter_height): use them.
11405 (window_bottom_frame_gutter_height): new function.
11406 (window_bottom_window_gutter_height): ditto.
11407 (window_bottom_gutter_height): use them.
11408 (window_left_window_gutter_width): new function.
11409 (window_left_frame_gutter_width): ditto.
11410 (window_left_gutter_width): use them.
11411 (window_right_window_gutter_width): new function.
11412 (window_right_frame_gutter_width): ditto.
11413 (window_right_gutter_width): use them.
11414 (window_pixel_height): new function. calulate window pixel height
11415 with frame gutter involvement.
11416 (Fsplit_window): calculate new sizes taking frame gutters into
11418 (window_char_height_to_pixel_height): don't include frame gutters.
11419 (window_char_height): use window_pixel_height.
11420 (window_pixheight): rename from window_pixel_height.
11421 (change_window_height): use it.
11422 (window_pixel_height_to_char_height): don't include frame gutters.
11423 (window_char_width_to_pixel_width): ditto.
11425 2000-02-25 Andy Piper <andy@xemacs.org>
11427 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11430 2000-02-24 Martin Buchholz <martin@xemacs.org>
11432 * alloc.c (staticpro):
11433 (staticpro_nodump):
11438 (compact_string_chars):
11439 (pdump_dump_wired):
11440 Convert: if (foo) abort(); ==> assert (! foo);
11442 * eldap.c (Fldap_search_basic):
11446 Fix compiler warnings, and possible crashes if (random) return
11447 value were to be used.
11449 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11451 * device-msw.c: Workaround ResetDC failure.
11453 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11454 applying a devmode.
11456 * redisplay-msw.c (get_frame_dc): Added start_page_p.
11457 (mswindows_text_width): Do not start printer page.
11459 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11461 * glyphs-msw.c: Added image methods to msprinter console and
11462 msprinter-specific image instantiation.
11464 2000-02-20 Mike Alexander <mta@arbortext.com>
11466 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11467 to avoid crashes when selection-sets-clipboard is on
11468 (mswindows_own_selection): ditto
11470 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11473 * redisplay-msw.c (get_frame_dc):
11474 (get_frame_compdc):
11476 * device-msw.c (mswindows_init_device):
11477 (mswindows_delete_device):
11478 (msprinter_init_device):
11479 (msprinter_delete_device):
11480 * frame-msw.c (mswindows_init_frame_1):
11481 (mswindows_delete_frame):
11482 (msprinter_init_frame_3):
11483 (msprinter_delete_frame): Move compatible DC to device object from
11484 frame object, for both mswindows and msprinter. Only one at a time
11485 is needed, it is a real waste to have one per frame!
11487 2000-02-23 Andy Piper <andy@xemacs.org>
11489 * glyphs.c: add dynamic width and height elements.
11490 (image_instance_equal): ditto.
11492 * glyphs-widget.c (widget_query_geometry): calculate width and
11493 height dynamically if required.
11494 (initialize_widget_image_instance): initialize dynamic dimensions.
11495 (widget_instantiate): pick-up dynamic dimensions.
11497 * glyphs.h (struct Lisp_Image_Instance): add width and height for
11498 dynamic determination. Add appropriate macros.
11500 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11502 (WINDOW_GUTTER_SIZE): ditto.
11503 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11505 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11507 (get_frame_dc): ditto.
11509 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11512 2000-02-23 Martin Buchholz <martin@xemacs.org>
11514 * XEmacs 21.2.31 is released.
11516 2000-02-22 Ben Wing <ben@xemacs.org>
11518 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11520 2000-02-22 Andy Piper <andy@xemacs.org>
11522 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11524 2000-02-21 Mike Sperber <mike@xemacs.org>
11528 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11531 2000-02-21 Mike Sperber <mike@xemacs.org>
11533 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11535 2000-02-21 Martin Buchholz <martin@xemacs.org>
11537 * XEmacs 21.2.30 is released.
11539 2000-02-20 Martin Buchholz <martin@xemacs.org>
11541 Performance hacking.
11543 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11544 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11545 * emacs.c (main_1):
11547 * console.c (DEFVAR_CONSOLE_LOCAL_1):
11548 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11549 * symeval.h (DEFVAR_SYMVAL_FWD):
11550 * symbols.c (guts_of_unbound_marker):
11551 Make all c_readonly objects also lisp_readonly and marked for life.
11552 * lrecord.h (struct lrecord_implementation):
11553 Document flags better.
11554 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11555 * lrecord.h (DECLARE_LRECORD):
11556 * lrecord.h (XSETRECORD):
11557 * lrecord.h (RECORDP):
11558 * lrecord.h (RECORD_TYPEP):
11559 * lrecord.h (RECORD_MARKER): New.
11560 * lrecord.h (error_check_*):
11561 * lrecord.h (CONCHECK_NONRECORD):
11562 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11563 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11564 * lrecord.h (set_lheader_implementation):
11565 * lrecord.h (enum lrecord_type): New.
11566 * symeval.h (SYMBOL_VALUE_MAGIC_P):
11567 * alloc.c (disksave_object_finalization_1):
11568 * alloc.c (mark_object):
11569 * alloc.c (lrecord_type_index):
11570 * alloc.c (tick_lcrecord_stats):
11571 * alloc.c (Fgarbage_collect):
11572 * alloc.c (init_alloc_once_early):
11573 * alloc.c (pdump_load):
11574 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11575 * alloc.c (lrecord_type_index): Delete.
11576 Make lisp object type indexes be constant.
11577 Makes (byte-compile) 5% faster.
11578 Put all marker functions into their own array.
11579 Makes (garbage-collect) 5% faster.
11580 Optimize SYMBOL_VALUE_MAGIC_P.
11581 Makes (byte-compile) 2-3% faster.
11582 * config.h.in (gc_checking_assert): New.
11583 * alloc.c: Use gc_checking_assert().
11584 * .dbxrc: Make compatible with new object type implementation.
11585 * .gdbinit: Make compatible with new object type implementation.
11586 * alloc.c: Delete all symbols defined only for debugging, such as
11587 Lisp_Type_Vector and lrecord_charset.
11589 2000-02-21 Andy Piper <andy@xemacs.org>
11591 * gui-msw.c (Fmswindows_shell_execute): fix file location
11594 * buffer.c (Fkill_buffer): remove buffer from alist buffer
11595 unshowing so that set_window_buffer doesn't undo
11596 kill_buffer_hook's hard work.
11598 * glyphs-widget.c (tab_control_query_geometry): don't count the
11599 first item when calculating geometry.
11601 * glyphs.c (map_subwindow): remove redundant code.
11602 (update_frame_subwindows): be more circumspect about when to
11605 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11606 when items haven't changed. Update faces if faces have changed as
11607 well as just the widget face.
11608 (x_tab_control_update): Update faces if faces have changed as well
11609 as just the widget face.
11611 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11613 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11615 (build_syscolor_string): Use mswindows_color_to_string to try to
11617 (mswindows_device_system_metrics): Reverse the foreground and
11618 background colors so that they match the documentation.
11620 * objects-msw.c: (mswindows_X_color_map): tweak some values so
11621 they match the default Windows palette.
11622 (mswindows_color_to_string): New function.
11624 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11626 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11628 2000-02-18 Olivier Galibert <galibert@pobox.com>
11630 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11631 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11633 * symbols.c (init_symbols_once_early): Removed obsolete
11634 DATA_SEG_BITS related kludge.
11635 (defvar_magic): Ditto.
11637 * malloc.c: Removed obsolete DATA_SEG_BITS
11639 * mem-limits.h: Ditto.
11641 * Makefile.in.in: Removed obsolete HAVE_SHM
11644 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11646 * device-msw.c (mswindows_delete_device): Free DDE string
11649 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11651 * keymap.c (get_keyelt):
11652 * unexnt.c (unexec):
11653 * vm-limit.c (memory_warnings):
11654 * ntheap.c (recreate_heap):
11655 * ntheap.h (UNINIT_PTR):
11656 * select-msw.c (Fmswindows_get_clipboard):
11657 (Fmswindows_set_clipboard):
11658 * objects-msw.h (MSWINDOWS_BAD_HFONT):
11660 * menubar-msw.c (displayable_menu_item):
11662 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11663 * sysdep.c (sys_subshell):
11664 * process-nt.c (nt_create_process):
11665 * nt.c (normalize_filename):
11666 (dostounix_filename):
11667 (unixtodos_filename):
11668 * ntproc.c (win32_executable_type):
11669 * ntplay.c (play_sound_data_1):
11671 * editfns.c (get_home_directory):
11672 * event-msw.c (struct winsock_stream):
11673 (mswindows_dde_callback):
11674 * device-msw.c (msprinter_init_device):
11675 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11677 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11678 mswindows_clear_toolbar were swapped!
11680 * objects-msw.c:(colormap_t):
11682 * emacs.c (struct standard_args): Fixed const jumble.
11684 * glyphs-widget.c (update_widget): Fixed comparison notation.
11686 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11688 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11689 __declspec(noreturn) syntax.
11691 2000-02-19 Martin Buchholz <martin@xemacs.org>
11693 * eldap.c (Fldap_open):
11694 (Fldap_search_basic):
11697 Use new coding system conversion macros.
11699 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11701 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11703 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
11705 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11706 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11708 * eldap.c (Qadd, Qreplace): New constant symbols
11709 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11710 interruptions by XEmacs signals
11711 Remove unnecessary calls to slow_down_interrupts and
11712 speed_up_interrupts
11713 (Fldap_search_basic): Renamed from Fldap_search_internal
11714 Added new optional parameter VERBOSE that triggers the
11715 display of progress messages
11716 Remove unnecessary calls to slow_down_interrupts and
11717 speed_up_interrupts
11718 LDAP result code analysis rewritten
11719 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11720 (syms_of_eldap): Define the new symbols and functions
11723 2000-02-17 Martin Buchholz <martin@xemacs.org>
11725 * realpath.c: Determine PATH_MAX maximally portably.
11727 * insdel.c (bytecount_to_charcount): Optimize.
11728 The function used to be optimized for entirely ASCII sequences.
11729 Now it is optimized for successive characters from the same
11730 charset. This also wins big for _mostly_ ASCII sequences.
11732 * fileio.c (Ffile_truename): convert return from realpath() using
11733 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
11734 - Rewrite GCPROing slightly.
11736 * sysdep.c (sys_open): Do filename conversion, like all other
11737 sys_* functions. Fixes bug:
11738 (let ((file-name-coding-system 'iso-8859-2))
11739 (write-region x y latin2-name))
11740 ==> writes filename using internal encoding.
11742 2000-02-18 Martin Buchholz <martin@xemacs.org>
11744 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11745 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11746 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11747 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11748 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11749 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11750 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11751 (CONST_IF_NOT_DEBUG): Delete.
11752 * alloc.c (this_one_is_unmarkable): Delete.
11753 (mark_object): Don't check for this_one_is_unmarkable. Use the
11754 c_readonly flag instead.
11755 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11757 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
11759 * event-msw.c (mswindows_drain_windows_queue):
11760 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11761 away redundant repaint events.
11763 2000-02-17 Andy Piper <andy@xemacs.org>
11765 * redisplay.h: declare mark_redisplay_structs.
11767 * redisplay.c (redisplay_window):
11768 (redisplay_frame): don't check subwindows_state_changed.
11769 (mark_redisplay): mark gutters here.
11771 * glyphs.c: (instantiate_image_instantiator): always layout if we
11772 haven't done so already.
11773 (allocate_image_instance): don't mark as dirty.
11774 (update_subwindow): bind inhibit_quit.
11776 * gutter.c (mark_gutters): new function.
11778 * glyphs-x.c (x_update_widget): Always resize to get round a
11781 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11782 breaking absolutely everything.
11784 * gutter.h: declare mark_gutters.
11786 2000-02-16 Martin Buchholz <martin@xemacs.org>
11788 * XEmacs 21.2.29 is released.
11790 2000-02-15 Olivier Galibert <galibert@pobox.com>
11792 * fns.c (size_bit_vector): Fix computation of the size.
11794 2000-02-15 Martin Buchholz <martin@xemacs.org>
11796 * *.[ch]: Change CONST to const globally.
11797 find -name '*.[ch]' | \
11798 xargs global-replace \
11799 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11800 - Remove vestigial references to CONST_IS_LOSING
11802 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11804 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11805 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11806 events instead of dispatching them directly.
11807 (mswindows_handle_paint): New function to do repainting.
11808 (mswindows_wnd_proc):
11809 (emacs_mswindows_handle_magic_event): Call above function.
11811 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11813 * objects-msw.c (mswindows_create_font_variant): Return the new
11815 (initialize_font_instance): Get font metrics from the underlined
11816 variant of the font to cope with the case where the underlined
11817 font has a bigger descent.
11819 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11821 * gui.c (gui_item_accelerator): Return the first underlined
11822 character in item name.
11824 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11826 * lisp.h: Added Qprinter.
11828 * general.c (syms_of_general): Initialized it.
11830 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11832 (get_frame_compdc): Made inline.
11834 * console.h (struct console_methods): Added eject_page method.
11836 * frame.h: Added FRAME_DISPLAY_P and friends.
11837 Aligned backslahes in many macros in more readable fashion.
11838 Added page_number to struct frame, and an accessor macro
11841 * defice.h: Added DEVICE_DISPLAY_P and friends.
11843 * device.c (Fdevice_printer_p): Used these.
11845 * frame.c (allocate_frame_core): Initialize page number.
11846 (Fprint_job_page_number):
11847 (Fprint_job_eject_page): Implemented.
11849 * frame-msw.c (msprinter_eject_page): Added method.
11850 (msprinter_start_page): Added.
11852 * window.c (Fwindow_truncated_p): Fixed docstring.
11853 (Fwindow_last_line_visible_height): Implemented.
11855 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11857 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11859 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11861 * syntax.c (scan_words): Always advance at least one character.
11863 2000-02-13 Andy Piper <andy@xemacs.org>
11865 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11866 to make sure the glyph is in the cachels.
11868 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11869 global image instance flag.
11870 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11871 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11873 * glyphs.c (allocate_image_instance): set dirty bits correctly.
11874 (Fset_image_instance_property): mark layout as changed.
11875 (invalidate_glyph_geometry_maybe): mark layout as changed.
11876 (glyph_width): use new NEEDS_LAYOUT macro.
11877 (glyph_ascent): ditto.
11878 (glyph_descent): ditto.
11879 (glyph_height): ditto.
11880 (image_instance_layout): mark layout as clean after laying out.
11881 (update_subwindow): don't mark layout as clean here.
11883 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11884 should no longer be needed.
11886 * glyphs-x.c (x_update_widget): sanitize asserts.
11887 (x_finalize_image_instance): sanitize assignment to widgets.
11889 * glyphs-widget.c (widget_instantiate): don't need to clear the
11892 2000-02-13 Martin Buchholz <martin@xemacs.org>
11894 * sysdep.c (getcwd): Use standard prototype.
11895 * sysdep.h (getcwd): Use standard prototype.
11897 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11898 (sequence, start, end).
11899 Remove redundant type checking.
11900 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11901 view of `caller-protects') to avoid a crash where the real fix was
11904 2000-02-12 Martin Buchholz <martin@xemacs.org>
11906 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11908 * s/sol2.h: Remove feature macro initialization.
11910 * alloc.c (alloc_lcrecord): Add more type checking assertions.
11911 (vector_hash): New. Code from internal_hash.
11913 Fix up allocation subsystem comments.
11915 * config.h.in: Add __EXTENSIONS__ for Solaris.
11917 * systime.h (EMACS_GETTIMEOFDAY): New.
11918 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11919 Remove Solaris-specific code.
11920 Use void* for the (ignored) second arg for gettimeofday().
11922 * elhash.c (hash_table_hash): Implement it, finally.
11923 * elhash.c: Use hashcode_t.
11925 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11926 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11928 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11929 * fns.c (size_bit_vector):
11930 * alloc.c (size_vector):
11931 (make_vector_internal):
11932 (make_bit_vector_internal):
11933 (sweep_bit_vectors_1):
11934 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11936 2000-02-10 Martin Buchholz <martin@xemacs.org>
11938 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11939 Include strings.h to avoid warnings for bzero and strcasecmp.
11941 2000-02-10 Olivier Galibert <galibert@pobox.com>
11943 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11944 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11946 * fns.c (size_bit_vector): New. Declare bit vectors as a
11949 2000-02-10 Olivier Galibert <galibert@pobox.com>
11951 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11952 use a value field instead.
11953 (symbol_value_forward_forward): Use value field.
11954 (DEFVAR_SYMVAL_FWD): Use value field.
11955 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
11956 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11957 (DEFVAR_CONST_INT): Ditto.
11958 (DEFVAR_BOOL): Ditto.
11959 (DEFVAR_CONST_BOOL): Ditto.
11960 (DEFVAR_INT_MAGIC): Ditto.
11961 (DEFVAR_BOOL_MAGIC): Ditto.
11963 * symbols.c (guts_of_unbound_marker): Use value field.
11964 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11965 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11967 * lisp.h: Declare dumpopaque and noninteractive1.
11969 * alloc.c (dumpopaque): Added.
11970 (pdump_dump_opaquevec): Added.
11971 (pdump): Call pdump_dump_opaquevec to dump opaque data.
11972 (pdump_load): Reload opaque data. Sync noninteractive1 with
11975 2000-02-10 Andy Piper <andy@xemacs.org>
11977 * glyphs.c (image_instance_layout): if the size changes, mark it
11980 * redisplay-output.c (redisplay_output_layout): Update the
11982 (redisplay_output_subwindow): ditto.
11984 * glyphs.c (update_subwindow): make sure we reset flags for
11985 layouts as well as everything else.
11987 * glyphs-widget.c (layout_layout): don't need to set the instances
11990 2000-02-09 Martin Buchholz <martin@xemacs.org>
11992 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
11993 not HAVE_DLOPEN, which is a lower-level thing.
11995 * .cvsignore: Ignore gmon.out
11997 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
11999 * .cvsignore: Ignore portable dumper xemacs.dmp file
12001 2000-02-09 Andy Piper <andy@xemacs.org>
12003 * redisplay-output.c (redisplay_output_layout): be more clever
12004 about when we output based on the changed flags.
12006 * glyphs.h (struct image_instantiator_methods): add update_method.
12007 (struct Lisp_Image_Instance): add changed flags. Declare new
12008 macros for manipulating them.
12010 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
12011 (image_instance_parent_glyph): find an image_instance's parent
12012 glyph or image_instance.
12013 (image_instance_layout): mark the size as changed.
12014 (set_image_instance_dirty_p): new function. mark an image
12015 instance, plus all of its parents, as dirty.
12016 (Fset_image_instance_property): use it.
12017 (Fglyph_animated_timeout_handler): use it.
12018 (update_subwindow): call update_widget and device methods for
12019 update_subwindow. Mark all changed flags as clean.
12020 (Fresize_subwindow): mark size as changed.
12022 * glyphs-x.c (x_finalize_image_instance): try and detect gc
12024 (x_update_subwindow): only resize subwindows here.
12025 (x_update_widget): new function. Update all changed properties of
12027 (x_resize_subwindow): deleted.
12028 (x_widget_set_property): deleted.
12029 (x_progress_gauge_set_property): deleted.
12030 (x_progress_gauge_update): new function. Implement recorded
12032 (x_tab_control_update): ditto.
12033 (x_tab_control_set_property): deleted.
12034 (console_type_create_glyphs_x): declare new functions.
12035 (image_instantiator_format_create_glyphs_x): ditto.
12037 * glyphs-widget.c (widget_set_property): mark text changed.
12038 (update_widget): new function. Update properties of a widget.
12039 (widget_instantiate): for layouts make sure we set their
12040 children's parent correctly.
12041 (tab_control_set_property): new function. Record changes that will
12042 take place under redisplay's control.
12043 (progress_gauge_set_property): ditto.
12044 (image_instantiator_progress_guage): declare new functions.
12045 (image_instantiator_tab_control): ditto.
12047 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
12049 (mswindows_update_widget): new function. Update all properties on
12050 a widget that have changed.
12051 (mswindows_button_update): new function. Update a button's set
12053 (mswindows_tab_control_update): new function. Update the items in
12055 (mswindows_tab_control_set_property): deleted.
12056 (mswindows_progress_gauge_update): new function. Update the
12057 progress gauge's progress.
12058 (mswindows_widget_set_property): deleted. This is all done
12059 asynchronously now.
12060 (mswindows_progress_gauge_set_property): ditto.
12061 (console_type_create_glyphs_mswindows): declare new methods.
12062 (image_instantiator_format_create_glyphs_mswindows): ditto.
12064 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
12065 (msprinter_set_frame_properties): ditto.
12067 * console.h (struct console_methods): Add update_widget_method.
12069 2000-02-09 Andy Piper <andy@xemacs.org>
12071 * gui-msw.c (Fmswindows_shell_execute): Make
12072 mswindows-shell-execute industrial strength.
12074 2000-02-08 Martin Buchholz <martin@xemacs.org>
12076 * lrecord.h: Make macro argument `props' match member function `plist'.
12079 * fns.c (Fremprop):
12080 * fns.c (Fobject_plist):
12083 Object property list frobbing cleanup.
12084 - Allow any lisp object (compared with `eq'), not just symbols, as
12085 keys in object plists.
12086 - Move symbol plist frobbing into symbols.c, where it belongs.
12087 - Move string plist frobbing into alloc.c, where it belongs.
12088 - Everything's an lrecord now, so no need to test for symbolp, etc.
12089 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12091 * extents.c: Reorder code to remove declarations.
12093 * frame.h (store_in_alist): Remove useless declaration.
12095 2000-02-07 Martin Buchholz <martin@xemacs.org>
12097 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12098 * config.h.in: Add HAVE_XCONVERTCASE.
12100 2000-02-07 Andy Piper <andy@xemacs.org>
12102 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12103 it breaks many things.
12105 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
12107 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12108 actually can start a common comment type.
12109 * src/syntax.h (SYNTAX_END_P): ditto for end.
12111 2000-02-07 Martin Buchholz <martin@xemacs.org>
12113 * XEmacs 21.2.28 is released.
12115 2000-02-06 Martin Buchholz <martin@xemacs.org>
12117 * event-Xt.c (x_keysym_to_character): New.
12118 (maybe_define_x_key_as_self_inserting_character): New.
12119 (x_has_keysym): New.
12120 Auto-define all keys on the keyboard as self-insert-key.
12122 2000-02-02 Martin Buchholz <martin@xemacs.org>
12124 * menubar.c (vars_of_menubar): A small code simplification.
12126 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12129 * ExternalClient.c:
12130 * EmacsShell-sub.c:
12133 Use consistent style for specifying X resources.
12135 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12136 This makes (dontusethis-set-symbol-value-handler) actually usable.
12138 * lrecord.h (lrecord_decription_type):
12139 * alloc.c (pdump_register_sub):
12142 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12143 Comply with XEmacs coding style.
12144 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12145 args, and XD_LISP_OBJECT_ARRAY with 3 args.
12147 * keymap.c (Faccessible_keymaps):
12148 Make (accessible-keymaps map "\C-h") do the Right Thing.
12149 Make (accessible-keymaps map []) do the Right Thing.
12150 Make (accessible-keymaps map "") do the Right Thing.
12151 (check_keymap_definition_loop): New function.
12152 (keymap_store_internal): Keep luser from shooting self in foot,
12153 via (define-key ctl-x-4-map "p" global-map).
12154 Remove fullness slot from struct Lisp_Keymap, since hash tables
12156 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12158 2000-01-30 Martin Buchholz <martin@xemacs.org>
12160 * redisplay.c (init_redisplay): Fix small memory leak.
12162 * elhash.c (pdump_reorganize_hash_table):
12163 Rename from reorganize_hash_table. Change prototype.
12164 Reuse the original memory for hentries. Save 100k.
12165 * alloc.c (PDUMP_READ): new macro.
12166 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12167 * alloc.c: No need to #ifndef before #undef.
12169 * print.c: Allow debug_print() to print readably by modifying
12170 debug_print_readably. Use consistent variable names.
12172 * .dbxrc: Try to get things to work even if stopped in a function
12173 without source available by explicitly specifying source files.
12174 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12176 * unexnt.c (_start): Removed bogus code which caused loading heap
12177 from differrent executable file.
12178 Removed bogus assignment to _fmode, which caused inconsistencies.
12180 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12182 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12183 Have spawnve encapsulation regard DONT_ENCAPSULATE.
12184 Do not preliminary `#define signal sigset'.
12186 * systime.h: Do not prototype environ on windows nt and cygwin,
12187 this conflicts with system header.
12189 * syssignal.h: Use correct define for WINDOWSNT
12191 * sysdep.h: Do not prototype environ on windows nt, this conflicts
12192 with system header.
12194 * sysdep.c (near start of file): Fixed commentary and rearranged
12195 ifdefs in readable order.
12196 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12199 (end_of_data): Do not compile in if using PDUMP.
12201 * symsinit.h: Prototyped vars_of_nt().
12203 * ntproc.c (windows9x_p): Added, instead of os_subtype.
12204 (find_child_console): Use it.
12205 (sys_kill): Use it.
12207 * ntheap.h: Do not extern os_subtype.
12209 * ntheap.c (cache_system_info): Do not cache unneeded:
12210 nt_major_version, nt_minor_version and os_subtype.
12211 (recreate_heap): Do not compile in when PDUMPing.
12213 * nt.c (geteuid and friends): Use the new varibale
12214 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12215 (init_user_info): Removed the above mentioned hackery.
12216 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12217 stat has been fixed in the C runtime.
12218 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12220 * file-coding.c (struct file_coding_dump): Do not define
12221 ucs_to_mule_table in the struct if not MULE.
12222 (struct struct lrecord_description fcd_description_1): Do not dump
12225 * emacs.c (main_1): Call vars_of_nt().
12226 (right before Fdump_emacs_data): Don't need lastfile if using both
12227 portabe dumper and system malloc.
12229 * alloc.c (Fmemory_limit): Conditionalized out.
12230 (pdump): Use OPEN_BINARY for the portable dump file.
12231 (pdump_load): Ditto.
12233 2000-02-02 Mike Alexander <mta@arbortext.com>
12235 * nt.c (convert_time): Set tm_isdst before calling mktime and
12236 avoid calling it at all if the compiler supports 64 bit integers.
12237 Also initialize utc_base_ft before using it.
12239 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
12241 * frame.c (change_frame_size_1): Take f->internal_border_width
12242 into consideration when calculating the width of the frame.
12244 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12246 * window.c (frame_min_height):
12247 (frame_size_valid_p):
12248 (frame_pixsize_valid_p): Added.
12249 (check_frame_size): Generalized.
12251 * window.h: Prototyped the above.
12254 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12255 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12256 Deleted Vwin32_* and Vbinary_process_* unused variables.
12258 * device-msw.c (msprinter_init_device): Do not get printer font
12259 list; Added DEVMODE functions.
12261 * frame-msw.c: Added lots of printer code.
12263 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12266 * console-msw.h: Added more msprinter device private slots.
12268 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12270 * event-msw.c (key_needs_default_processing_p): Added.
12271 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12273 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12275 * glyphs.c (image_instance_layout): Mark image instance as clean
12277 (glyph_dirty_p): Removed redundant function.
12278 (invalidate_glyph_geometry_maybe): Added.
12279 (update_glyph_cachel_data): Call it.
12281 * glyphs.h: Prototyped it.
12283 * redisplay.c (add_glyph_rune): Call it.
12284 (redisplay_window): Reset glyphs cachels when frame faces have
12285 changed, thus forcing recomputation of built-in border glyphs.
12287 2000-01-30 Martin Buchholz <martin@xemacs.org>
12289 * Makefile.in.in: Make portable dumper and purify play well together.
12290 Add imperfect, but better than nothing, support for pdump.
12291 Remove xemacs.dmp when temacs is re-generated.
12292 Don't ignore errors when dumping xemacs.
12294 * symbols.c (maybe_call_magic_handler): Remove one magic number.
12296 2000-01-28 Andy Piper <andy@xemacs.org>
12298 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12299 (setup_normal_frame): ditto.
12300 (setup_frame_without_minibuffer): ditto.
12301 (setup_minibuffer_frame): ditto.
12302 (delete_frame_internal): ditto.
12303 (Fmake_frame_invisible): ditto.
12304 (Ficonify_frame): ditto.
12306 * window.h: change Fset_window_buffer signature.
12308 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12309 (Fset_window_buffer): allow recording of buffer if the window is
12310 the selected window.
12311 (window_loop): Use new Fset_window signature.
12313 2000-01-23 Daniel Pittman <daniel@danann.net>
12315 * config.h.in: Added template for `HAVE_ATHENA_3D'
12317 2000-01-29 Andy Piper <andy@xemacs.org>
12319 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12321 * gutter.c (output_gutter): Don't output if the window isn't live.
12323 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12325 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12326 of 01/12/00: Moved SetFocus back here where it belongs.
12328 2000-01-23 Andy Piper <andy@xemacs.org>
12330 * s/cygwin32.h: declare printer things.
12332 2000-01-26 Andy Piper <andy@xemacs.org>
12334 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12337 2000-01-24 Andy Piper <andy@xemacs.org>
12339 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12340 (mswindows_button_instantiate): Make sure glyph is a pixmap.
12342 * glyphs-widget.c (widget_instantiate): Avoid shadows.
12344 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12346 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12348 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12349 (mswindows_output_display_block): Avoid local shadows.
12351 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12352 (mswindows_enqueue_mouse_button_event): ditto.
12353 (mswindows_handle_gui_wm_command): remove declaration.
12355 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12358 * console-msw.h: Avoid shadows.
12359 (mswindows_get_toolbar_button_text):
12360 (emacs_mswindows_create_stream_pair):
12361 (emacs_mswindows_delete_stream_pair):
12362 (mswindows_handle_toolbar_wm_command): declare.
12364 * device-msw.c (build_syscolor_string): Avoid shadows.
12366 2000-01-23 Andy Piper <andy@xemacs.org>
12368 * glyphs-widget.c (widget_instantiate): reverse the items for
12369 layouts so that children are in the expected order.
12371 2000-01-28 Martin Buchholz <martin@xemacs.org>
12373 * ralloc.c: safe_bcopy ==> memmove
12374 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12375 * s/msdos.h: Remove BCOPY macros.
12376 * insdel.c (gap_right): Remove BCOPY conditional code.
12377 * insdel.c (gap_left): Remove BCOPY conditional code.
12378 XEmacs demands a working ANSI C compiler - hence memmove.
12380 * regex.c (regex_compile): Remove accidental use of trigraphs.
12382 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12384 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12387 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12389 * event-msw.c (mswindows_drain_windows_queue): Added the
12391 (mswindows_need_event): Commented the call to
12392 mswindows_drain_windows_queue().
12393 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12396 * console-msw.h: Moved a few function prototypes here from
12399 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12400 parameter from unsigned short to unsigned long.
12401 (Fmswindows_shell_execute): Added return value.
12403 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12405 * sysdep.c (init_system_name):
12406 process-unix.c (unix_canonicalized_host_name):
12407 Don't call freeaddrinfo() if getaddrinfo() fails.
12409 * process-unix.c (unix_open_unix_network_stream):
12410 Moved the code to get a port # into address loop.
12412 2000-01-27 Martin Buchholz <martin@xemacs.org>
12414 * buffer.c (reinit_vars_of_buffer):
12415 The right place to initialize conversion_in_dynarr and
12416 conversion_out_dynarr.
12418 * alloc.c (pdump): Use the real open() till sys_open() is functional.
12420 * process-unix.c (unix_canonicalize_host_name): Muleize.
12421 (unix_open_network_stream): Muleize.
12423 * buffer.h: Fix up prototypes for ralloc.c functions.
12425 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12426 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12427 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12428 instead of gethostbyname()
12429 * process-unix.c: In unix_canonicalize_host_name() and
12430 unix_open_network_stream(), add code to use getaddrinfo()
12431 instead of gethostbyname().
12433 2000-01-27 Daniel Pittman <daniel@danann.net>
12435 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12436 libs when built with flat Athena.
12438 2000-01-27 Martin Buchholz <martin@xemacs.org>
12440 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12441 Use coding standards for function prototypes.
12443 2000-01-25 Martin Buchholz <martin@xemacs.org>
12445 * dialog-msw.c (push_lisp_string_as_unicode):
12446 * doc.c (unparesseuxify_doc_string):
12447 * dired.c (Fuser_name_completion_1):
12448 * dired.c (Fuser_name_all_completions):
12449 * dired.c (free_user_cache):
12450 * dired.c (user_name_completion):
12451 * console-x.c (get_display_arg_connection):
12452 * minibuf.c (clear_echo_area_internal):
12453 * minibuf.c (echo_area_append):
12454 * eldap.c (Fldap_open):
12455 * eldap.c (Fldap_search_internal):
12456 * frame-x.c (x_set_frame_text_value):
12457 * frame-x.c (x_set_frame_properties):
12458 * frame-x.c (x_create_widgets):
12459 * redisplay-tty.c (term_get_fkeys_1):
12460 * objects-x.c (x_parse_nearest_color):
12461 * objects-x.c (x_valid_color_name_p):
12462 * objects-x.c (x_initialize_font_instance):
12463 * objects-x.c (x_list_fonts):
12464 * objects-x.c (x_find_charset_font):
12465 * tooltalk.c (Fadd_tooltalk_message_arg):
12466 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12467 * tooltalk.c (Fadd_tooltalk_pattern_arg):
12468 * process-unix.c (unix_create_process):
12469 * ntproc.c (sys_spawnve):
12470 * sound.c (Fplay_sound_file):
12471 * sound.c (Fplay_sound):
12472 * buffer.c (init_initial_directory):
12473 * buffer.c (init_buffer):
12474 * editfns.c (init_editfns):
12475 * editfns.c (Ftemp_directory):
12476 * editfns.c (Fuser_full_name):
12477 * editfns.c (uncache_home_directory):
12478 * editfns.c (get_home_directory):
12479 * editfns.c (Fuser_home_directory):
12480 * editfns.c (Fformat_time_string):
12481 * editfns.c (Fcurrent_time_string):
12482 * gui-x.c (button_item_to_widget_value):
12483 * database.c (Fopen_database):
12484 * event-Xt.c (x_to_emacs_keysym):
12485 * event-Xt.c (x_event_to_emacs_event):
12486 * event-Xt.c (describe_event_window):
12487 * event-msw.c (mswindows_wnd_proc):
12488 * glyphs-eimage.c (jpeg_instantiate):
12489 * glyphs-eimage.c (gif_instantiate):
12490 * glyphs-eimage.c (png_instantiate):
12491 * glyphs-eimage.c (tiff_instantiate):
12492 * glyphs-x.c (xbm_instantiate_1):
12493 * glyphs-x.c (x_xbm_instantiate):
12494 * glyphs-x.c (x_xface_instantiate):
12495 * glyphs-x.c (autodetect_instantiate):
12496 * glyphs-x.c (cursor_font_instantiate):
12497 * glyphs-x.c (x_widget_instantiate):
12498 * glyphs-x.c (x_widget_set_property):
12499 * glyphs-x.c (x_widget_property):
12500 * glyphs-x.c (BUILD_GLYPH_INST):
12501 * print.c (write_string_to_stdio_stream):
12502 * print.c (output_string):
12503 * print.c (Falternate_debugging_output):
12504 * print.c (Fexternal_debugging_output):
12505 * glyphs-msw.c (extract_xpm_color_names):
12506 * glyphs-msw.c (mswindows_xpm_instantiate):
12507 * glyphs-msw.c (bmp_instantiate):
12508 * glyphs-msw.c (resource_name_to_resource):
12509 * glyphs-msw.c (mswindows_resource_instantiate):
12510 * glyphs-msw.c (xbm_instantiate_1):
12511 * glyphs-msw.c (mswindows_xbm_instantiate):
12512 * glyphs-msw.c (mswindows_xface_instantiate):
12513 * glyphs-msw.c (mswindows_widget_instantiate):
12514 * glyphs-msw.c (add_tree_item):
12515 * glyphs-msw.c (add_tab_item):
12516 * glyphs-msw.c (mswindows_combo_box_instantiate):
12517 * glyphs-msw.c (mswindows_widget_property):
12518 * glyphs-msw.c (mswindows_combo_box_property):
12519 * glyphs-msw.c (mswindows_widget_set_property):
12520 * console.c (stuff_buffered_input):
12521 * objects-msw.c (mswindows_initialize_color_instance):
12522 * objects-msw.c (mswindows_valid_color_name_p):
12523 * objects-msw.c (mswindows_list_fonts):
12524 * objects-msw.c (mswindows_font_instance_truename):
12525 * bytecode.c (optimize_compiled_function):
12526 * select-x.c (symbol_to_x_atom):
12527 * select-x.c (x_atom_to_symbol):
12528 * select-x.c (hack_motif_clipboard_selection):
12529 * select-x.c (selection_data_to_lisp_data):
12530 * select-x.c (lisp_data_to_selection_data):
12531 * select-x.c (Fx_get_cutbuffer_internal):
12532 * select-x.c (Fx_store_cutbuffer_internal):
12533 * buffer.h (TO_EXTERNAL_FORMAT): New function.
12534 * buffer.h (TO_INTERNAL_FORMAT): New function.
12535 * emacs.c (make_arg_list_1):
12536 * emacs.c (make_argc_argv):
12537 * emacs.c (main_1):
12538 * emacs.c (Fdump_emacs):
12539 * emacs.c (split_string_by_emchar_1):
12544 * device-x.c (x_init_device):
12545 * device-x.c (Fx_valid_keysym_name_p):
12546 * device-x.c (Fx_get_font_path):
12547 * device-x.c (Fx_set_font_path):
12548 * glyphs.c (bitmap_to_lisp_data):
12549 * glyphs.c (pixmap_to_lisp_data):
12550 * alloc.c (make_ext_string): Use coding system arguments. Update
12552 * alloc.c (build_string):
12553 * callproc.c (child_setup):
12554 * callproc.c (init_callproc):
12555 * fileio.c (lisp_strerror):
12556 * fileio.c (directory_file_name):
12557 * fileio.c (Fexpand_file_name):
12558 * fileio.c (Ffile_truename):
12559 * fileio.c (Fsysnetunam):
12560 * fileio.c (Fdo_auto_save):
12561 * sysdep.c (sys_readdir):
12562 * tests.c: New file. Allow adding C tests.
12563 Replace GET_* macros with a more comprehensible and flexible
12564 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12566 Any coding system can be used to do format conversion.
12567 Eliminate enum external_data_format.
12568 Eliminate convert_to_external_format.
12569 Eliminate convert_to_internal_format.
12570 Make sure file-name, keyboard, terminal, and ctext are always
12571 defined as coding systems or aliases. Make
12572 file-name-coding-system, terminal-coding-system, and
12573 keyboard-coding-system magical variables that are equivalent to
12574 defining the corresponding coding system aliases.
12576 * file-coding.c (Fcoding_system_canonical_name_p): New function.
12577 * file-coding.c (Fcoding_system_alias_p): New function.
12578 * file-coding.c (Fcoding_system_aliasee): New function.
12579 * file-coding.c (append_suffix_to_symbol): New function.
12580 * file-coding.c (dangling_coding_system_alias_p): New function.
12581 * file-coding.c (Ffind_coding_system):
12582 * file-coding.c (Fcopy_coding_system):
12583 * file-coding.c (encode_coding_no_conversion):
12584 * file-coding.c (syms_of_file_coding):
12585 * file-coding.c (vars_of_file_coding):
12586 Rewrite coding system alias code.
12587 Allow nested aliases, like symbolic links.
12588 Allow redefinition of coding system aliases.
12589 Prevent existence of dangling coding system aliases.
12591 * dired.c (Fuser_name_completion_1):
12592 * dired.c (Fuser_name_all_completions):
12593 A crash would happen if user did QUIT in the middle of building
12594 user_name_cache. Remove redundant code in mainline and unwind_protect.
12597 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
12599 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12600 an unsigned char *. Update all callers.
12602 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12604 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12606 2000-01-25 Martin Buchholz <martin@xemacs.org>
12608 * elhash.c (hentry_description): Use more portable definition.
12609 (resize_hash_table): Initialize new hentries using
12610 xnew_array_and_zero, thereby simplifying the code.
12612 * mule-charset.c (make_charset): Make sure entire object is
12613 initialized, to avoid Purify warnings.
12615 * alloc.c (resize_string): Fix unlikely crash with big strings.
12617 2000-01-24 Martin Buchholz <martin@xemacs.org>
12619 * realpath.c (xrealpath):
12620 Don't call getwd().
12622 2000-01-25 Martin Buchholz <martin@xemacs.org>
12624 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12626 1999-12-28 Max Matveev <max@melbourne.sgi.com>
12628 * unexelfsgi.c (unexec): Change the way we decide which segment
12629 should be extended.
12631 Assumption that .bss section should be outside the PT_LOADable
12632 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12633 it's present) is inside the 'data' segment. This would fail the
12634 test which was used to find a segment to grow and cover new
12635 heap. Instead of this assumption, I created another one - on IRIX
12636 the segment to grow should start below .bss and it's address
12637 should extent above the end of .bss. Once this segment is
12638 identified, it's grown to accommodate the new heap and new
12639 zero-length .bss section is added at the end of .data2.
12641 2000-01-25 Martin Buchholz <martin@xemacs.org>
12643 * eval.c (Feval): Wrong number of arguments should use original
12644 function, not the indirect_function version of it.
12646 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12648 * glyphs-x.c (x_button_instantiate): Don't add image if
12649 it is not a pixmap.
12650 (x_locate_pixmap_file): Call Fexpand_file_name when file name
12653 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
12655 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12657 (DEFVAR_INT_MAGIC): Ditto.
12658 (DEFVAR_BOOL_MAGIC): Ditto.
12659 * glyphs.h: Reindent backslash.
12661 2000-01-24 Martin Buchholz <martin@xemacs.org>
12663 * glyphs-widget.c (layout_query_geometry):
12664 (layout_layout): Use correct types for gheight, gwidth.
12666 2000-01-24 Martin Buchholz <martin@xemacs.org>
12668 * EmacsManager.c (QueryGeometry): Purified.
12670 2000-01-23 Martin Buchholz <martin@xemacs.org>
12672 * alloc.c (make_float): Make sure entire object is initialized, to
12673 avoid Purify warnings.
12674 (pdump_register_sub): Remove useless assignment.
12675 (pdump): Use xmalloc, not malloc.
12676 (pdump_load): Use xmalloc, not malloc.
12678 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12685 * sysdep.c: Removed redundant #include <windows.h>
12687 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12689 * frame.c (delete_frame_internal): Do not delete device when its
12690 implementation so declares.
12691 (delete_frame_internal): Set device selected frame to nil when
12692 last frame goes away.
12694 * device-msw.c (msprinter_device_system_metrics): Implemented.
12695 (mswindows_device_system_metrics): Added 'device-dpi property.
12697 * device.c: (Fdevice_printer_p): Added.
12698 Added 'offset-workspace device metric.
12700 * console.h (device_metrics): Declared DM_offset_workspace.
12702 2000-01-23 Martin Buchholz <martin@xemacs.org>
12704 * fileio.c (Ffile_truename): Remove pointless and confusing
12705 initialization of elen.
12707 * glyphs-widget.c: Compiler warning fixes.
12709 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
12711 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12712 instead of a Lisp_Object as argument to make it consistent with
12713 the other LIVE_P macros.
12714 (CHECK_LIVE_PROCESS): New macro.
12716 * process.c: Declare Qprocess_live_p.
12717 (Fprocess_live_p): New function.
12718 (create_process): Use PROCESS_LIVE_P.
12719 (read_process_output): Ditto.
12720 (set_process_filter): Ditto.
12721 (Fdelete_process): Ditto.
12722 (kill_buffer_processes): Ditto
12723 (process_send_signal): Use CHECK_LIVE_PROCESS.
12724 (Fprocess_input_coding_system): Check whether process is still
12725 alive (fix PR#1061).
12726 (Fprocess_output_coding_system): Ditto.
12727 (Fprocess_coding_system): Ditto.
12728 (Fset_process_input_coding_system): Ditto.
12729 (Fset_process_output_coding_system): Ditto.
12731 2000-01-23 Andy Piper <andy@xemacs.org>
12733 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12736 * glyphs.c (mark_image_instance): take into account changed
12737 image_instance format.
12738 (image_instance_equal): ditto.
12739 (image_instance_hash): ditto.
12741 * glyphs-widget.c (widget_instantiate): Incorporate layout
12742 instantiation here. Delay layout of the layout until later.
12743 (layout_instantiate): deleted.
12744 (layout_query_geometry): new function. get the geometry of a
12746 (layout_layout): layout a layout dynamically.
12747 (image_instantiator_widget): New function - splitting up
12748 image_instantiator_format_create_glyphs_widget for netwinder
12750 (image_instantiator_buttons):
12751 (image_instantiator_edit_fields):
12752 (image_instantiator_combo_box):
12753 (image_instantiator_scrollbar):
12754 (image_instantiator_progress_guage):
12755 (image_instantiator_tree_view):
12756 (image_instantiator_tab_control):
12757 (image_instantiator_labels):
12758 (image_instantiator_layout): ditto.
12759 (image_instantiator_format_create_glyphs_widget): Call preceding
12762 2000-01-22 Martin Buchholz <martin@xemacs.org>
12764 * process.c (Fset_process_coding_system):
12765 * device-x.c (Fx_keysym_hash_table):
12768 * lstream.c (Lstream_write): Return documented value, not 0.
12770 * fileio.c (directory_file_name):
12771 (Fsubstitute_in_file_name):
12772 (Fsubstitute_insert_file_contents_internal):
12773 (Fwrite_region_internal):
12778 Remove vestigial APOLLO-conditional code.
12780 2000-01-21 Martin Buchholz <martin@xemacs.org>
12782 * getpagesize.h: Add guard macros.
12783 * libsst.h: Add guard macros.
12784 * libst.h: Add guard macros.
12785 * line-number.h: Add guard macros.
12786 * ndir.h: Add guard macros.
12787 * sysfloat.h: Add guard macros.
12788 * sysfile.h: Add guard macros.
12789 * sysproc.h: Add guard macros.
12790 * syswait.h: Add guard macros.
12791 * xintrinsic.h: Add guard macros.
12792 * xintrinsicp.h: Add guard macros.
12793 * xmmanager.h: Add guard macros.
12794 * xmmanagerp.h: Add guard macros.
12795 * xmprimitive.h: Add guard macros.
12796 * xmu.h: Add guard macros.
12797 * gpmevent.h: Add copyright statement. Add guard macros.
12798 * miscplay.h: Add guard macros.
12799 * *.h: Use consistent C-standards-approved guard macro names.
12801 * opaque.c (make_opaque): Switch parameter order.
12802 * opaque.h (make_opaque): Switch parameter order.
12803 Update all callers.
12804 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12806 * config.h.in (type_checking_assert): Added.
12807 (bufpos_checking_assert): Added.
12809 2000-01-21 Martin Buchholz <martin@xemacs.org>
12811 * alloc.c: Harmless pdump changes.
12813 - spell alignment correctly.
12814 * sysdep.c: Use countof()
12816 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12818 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12819 initially_selected_for_input() console method, default to 0.
12820 (semi_canonicalize_console_connection): Try to delegate to
12821 canonicalize_console_connection if no such console method.
12822 (canonicalize_console_connection): Vice versa.
12823 (print_console): Do not print nil connection.
12825 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12826 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12827 (XDEVIMPF_FRAMELESS_OK): Added.
12828 (CONSOLE_INHERITS_METHOD): Added.
12830 * console-msw.c (mswindows_canonicalize_console_connection):
12832 (mswindows_canonicalize_device_connection): Added.
12834 * console-msw.h (struct msprinter_device): Added this struct and
12836 (mswindows_device): Made fontlist a lisp object.
12838 * device.c (semi_canonicalize_device_connection): Try to delegate
12839 to canonicalize_device_connection if no such console method.
12840 (canonicalize_device_connection): Vice versa.
12841 (print_device): Do not print nil connection.
12843 * device-msw.c (mswindows_init_device): Call InitCommonControls
12845 (mswindows_delete_device): Removed fontlist deallocation.
12846 (mswindows_mark_device): Added.
12848 * events.c (event_equal): Added abort() at unreached code.
12849 (event_hash): Ditto.
12851 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12852 fallback tags of Windows devices.
12854 * general.c (syms_of_general): Initialized Qmsprinter.
12856 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12857 of fallback tags of Windows devices.
12859 * lisp.h: Declared Qmsprinter.
12861 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12863 (mswindows_list_fonts): Ditto.
12864 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12865 that it can be used by both mswindows and msprinter devices.
12866 (initialize_font_instance): Added.
12867 (mswindows_initialize_font_instance): Use it.
12868 (msprinter_initialize_font_instance): Added.
12870 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12871 and implementation flags check.
12872 (redisplay_without_hooks): Changed the call to the above.
12873 (Fredraw_device): Ditto.
12874 (Fredisplay_device): Ditto.
12876 * redisplay-msw.c (get_frame_dc): Implemented.
12877 (get_frame_compdc): Implemented.
12878 (many functions): Use the two functions above to get device
12879 contexts, ether for a window or a printer.
12881 2000-01-21 Olivier Galibert <galibert@pobox.com>
12883 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12884 initialization here.
12885 (init_symbols_once_early): Call it.
12886 * emacs.c (main_1): Call it.
12887 * symsinit.h: Declare it.
12889 2000-01-19 Olivier Galibert <galibert@pobox.com>
12891 * alloc.c: Use a lrecord_header * in the backtrace instead of a
12893 (pdump_backtrace): Ditto.
12894 (pdump_register_object): Ditto. Cleanup use of the pointers.
12895 (pdump_get_entry): Abort if trying to register a null pointer.
12896 (pdump_dump_data): Cleanup types when relocating.
12897 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12898 (pdump_dump_rtables): Remove bad casts.
12899 (pdump_load): Cleanup relocation w.r.t union type. Use a
12900 Lisp_Object instead of a EMACS_INT for the hashtable
12903 2000-01-20 Martin Buchholz <martin@xemacs.org>
12905 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12907 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12909 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12911 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12913 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12915 * faces.h (FACE_STRIKETHRU_P): Added.
12917 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12920 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12921 (mswindows_set_dc_font): New function, aware of font variants,
12922 separated from mswindows_update_dc.
12924 * objects-msw.h (struct mswindows_font_instance_data): Added
12927 * objects-msw.c (mswindows_finalize_font_instance): Delete all
12928 cached fonts and the data structure.
12929 (mswindows_initialize_font_instance): Added creation of font data
12931 (mswindows_print_font_instance): Print at least something.
12932 (mswindows_create_font_variant): Implemented.
12933 (mswindows_get_hfont): Implemented.
12935 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
12937 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12938 prototyping problem with msvc.
12940 * emacs.c (main_1): added syms_of_gui_mswindows() call
12942 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12943 syms_of_gui_mswindows() function
12945 * symsinit.h: added the prototype for syms_of_gui_mswindows()
12947 2000-01-18 Martin Buchholz <martin@xemacs.org>
12949 * XEmacs 21.2.27 is released.
12951 2000-01-18 Martin Buchholz <martin@xemacs.org>
12953 * glyphs-eimage.c (struct tiff_error_struct):
12955 (tiff_warning_func):
12956 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12961 * unexec.c: Remove vestigial Lucid C code.
12965 * libsst.c: Ansify.
12966 Remove declarations of errno and strerror().
12968 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
12970 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12972 2000-01-16 Martin Buchholz <martin@xemacs.org>
12974 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12977 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12982 Change enum eol_type to eol_type_t.
12984 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12986 * gui.c (get_gui_callback): Check cons before accessing car.
12988 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12990 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12991 (XSETSPECIFIER_TYPE): Ditto.
12993 2000-01-17 Didier Verna <didier@xemacs.org>
12995 * redisplay.c (generate_fstring_runes): compute string size in
12996 characters, not bytes.
12998 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
13000 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
13002 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
13004 * print.c (print_error_message): Call print_prepare().
13006 2000-01-14 Martin Buchholz <martin@xemacs.org>
13008 * .dbxrc: Renamed from dbxrc.
13010 * events.c (event_to_character):
13011 Use `assert (foo)' instead of `if (!foo) abort()'
13013 * .gdbinit (xtype): Add documentation.
13014 * .gdbinit (check-temacs): New function.
13015 * .gdbinit (check-xemacs): New function.
13016 * dbxrc (check-xemacs): New function.
13017 * dbxrc (check-xemacs): New function.
13019 2000-01-14 Andy Piper <andy@xemacs.org>
13021 * glyphs-widget.c (widget_query_geometry): Make sure that we
13022 calculate default dimensions correctly.
13024 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13026 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
13028 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
13029 pdump_wire'd variable.
13031 * emacs.c: (main_1): Conditionalized calls to
13032 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
13034 2000-01-13 Martin Buchholz <martin@xemacs.org>
13036 * window.c (Fset_window_configuration):
13037 * sysdep.c (_start):
13038 * input-method-motif.c (res):
13039 * event-Xt.c (Xt_process_to_emacs_event):
13040 Simple compiler warning fixes.
13042 * bytecode.c (funcall_compiled_function): Use the original
13043 function symbol on the backtrace list in preference to the
13044 compiled_function object in error messages.
13046 2000-01-13 Andy Piper <andy@xemacs.org>
13048 * glyphs-x.c (update_widget_face): Make sure we update the widget
13049 background as well as foreground.
13051 2000-01-13 Andy Piper <andy@xemacs.org>
13053 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
13054 fields to subwindow.
13055 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
13056 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
13057 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13058 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13060 * glyphs-widget.c (check_valid_tab_orientation): new function.
13061 (initialize_widget_image_instance): zero orientation and
13063 (widget_instantiate): pick up orientation.
13064 (tab_control_query_geometry): return appropriate values for
13067 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
13068 appropriate creation flags for left, right and bottom tabs.
13070 * s/cygwin32.h: add tab definitions.
13072 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13074 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13075 frame upon hiding a subwindow.
13076 (mswindows_button_instantiate): Changed the push button style to
13078 (mswindows_button_instantiate): Removed button BS_NOTIFY
13080 (mswindows_button_instantiate): Removed redundant check for
13081 a disabled gui item.
13082 (mswindows_button_instantiate): Made use of WS_TABSTOP
13083 consistent: "operable" controls (edit, button, tree, scroll) have
13084 this style, "display-only" ones (static, progress gauge) do
13085 not. This style is currently ignored by XEmacs though. Also,
13086 removed the WS_EX_CONTROLPARENT style - it is not for children,
13087 it is for their parents!
13088 (mswindows_edit_field_instantiate): Ditto.
13089 (mswindows_progress_gauge_instantiate): Ditto.
13090 (mswindows_tree_view_instantiate): Ditto.
13091 (mswindows_tab_control_instantiate): Ditto.
13092 (mswindows_scrollbar_instantiate): Ditto.
13093 (mswindows_combo_box_instantiate): Ditto.
13094 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13095 style to the "clip" window.
13096 (mswindows_button_instantiate): Removed compilation warning by
13097 equally typing terms of the ?: operator.
13099 2000-01-12 Didier Verna <didier@xemacs.org>
13101 * redisplay.c (generate_fstring_runes): new parameter holding the
13102 last modeline-format extent.
13103 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13104 extent, fill the glyph block with it.
13105 (generate_fstring_runes): handle these parameters.
13106 (generate_formatted_string_db): ditto.
13108 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13109 glyphs'extents in the modeline.
13111 1999-01-11 Mike Woolley <mike@bulsara.com>
13113 * ntheap.c: Reduced the reserved heap space from 1Gb down to
13114 256Mb, as a workaround for the non-starting problem many people
13117 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13119 * console-tty.c (Fset_console_tty_output_coding_system):
13120 Force redrawing tty frame.
13122 2000-01-10 Didier Verna <didier@xemacs.org>
13124 * redisplay.c (generate_fstring_runes): fix size computation bug.
13126 2000-01-09 William M. Perry <wmperry@aventail.com>
13128 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13130 2000-01-09 Andy Piper <andy@xemacs.org>
13132 * glyphs-msw.c: index -> i to avoid shadows.
13133 (xbm_create_bitmap_from_data): make static.
13134 (check_valid_string_or_int): deleted.
13135 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13137 * glyphs-x.c (x_update_subwindow): remove unused args.
13139 * glyphs.c (glyph_image_instance): return the thing. Don't set the
13140 back pointer - this is done in allocate_image_instance.
13141 (query_string_font): return Qnil to make the compiler happy.
13142 (unmap_subwindow): set to ~0 to make the compiler happy.
13143 (glyph_query_geometry): comment out until used.
13144 (glyph_layout): ditto.
13146 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
13148 * insdel.c (signal_after_change): Remove extraneous unbind_to().