1 2003-04-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * mule-charset.c (Qmap_cns11643_2): Renamed from
5 (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
7 (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
10 2003-04-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
12 * mule-charset.c (Qmap_cns11643_1): Renamed from
13 `Qchinese_cns11643_1'.
14 (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
16 (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
19 2003-04-24 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
21 * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
22 (syms_of_mule_charset): Add new symbol `=gb12345' instead of
24 (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
27 2003-04-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
29 * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
30 (syms_of_mule_charset): Add new symbol `=gb2312' instead of
32 (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
35 2003-04-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
37 * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
38 (syms_of_mule_charset): Add new symbol `=big5' instead of
40 (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
42 2003-04-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
44 * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
45 (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
47 (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
50 2003-04-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
52 * mule-charset.c (Qmap_jis_x0212): Renamed from
54 (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
56 (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
59 2003-04-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
61 * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
63 (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
64 of `japanese-jisx0208'.
65 (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
68 2003-04-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
70 * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
71 `Qjapanese_jisx0208_1978'.
72 (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
73 of `japanese-jisx0208-1978'.
74 (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
77 2003-04-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
79 * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
80 only for XEmacs CHISE.
82 2003-04-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
84 * char-ucs.h: Compact non-ISO-IR charset-ids.
85 (LEADING_BYTE_UCS): Changed to -177.
86 (LEADING_BYTE_CONTROL_1): Changed to -77.
87 (LEADING_BYTE_UCS_BMP): Changed to -176.
88 (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
90 2003-04-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
92 * mule-charset.c (Qiso_ir): New variable.
93 (Fmake_charset): Recognise new property `iso-ir'.
94 (syms_of_mule_charset): Add new symbol `iso-ir'.
96 2003-04-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
98 * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
99 n to -n; charset-id of non ISO-IR sets are changed to positive
102 2003-03-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
104 * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
106 (Qmap_ucs): New variable.
107 (syms_of_mule_charset): Add new symbol `=ucs'.
108 (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
110 * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
112 * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
114 * char-ucs.h (Qmap_ucs): New extern variable.
116 2003-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
118 * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
119 (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
120 don't define it when UTF2000 is not defined.
121 (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
122 `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
123 when UTF2000 is not defined.
124 (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
125 rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
127 2003-03-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
129 * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
131 * mule-charset.c (Vcharset_ucs_gb): Deleted.
133 (syms_of_mule_charset): Delete `ucs-gb'.
134 (complex_vars_of_mule_charset): Likewise.
136 2003-03-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
138 * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
140 * mule-charset.c (Vcharset_ucs_cns): Deleted.
142 (syms_of_mule_charset): Delete `ucs-cns'.
143 (complex_vars_of_mule_charset): Likewise.
145 2003-03-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
147 * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
149 * mule-charset.c (Vcharset_ucs_jis): Deleted.
151 (syms_of_mule_charset): Delete `ucs-jis'.
152 (complex_vars_of_mule_charset): Likewise.
154 2003-03-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
156 * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
158 * mule-charset.c (Vcharset_ucs_ks): Deleted.
160 (syms_of_mule_charset): Delete `ucs-ks'.
161 (complex_vars_of_mule_charset): Likewise.
163 2003-03-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
165 * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
166 (Qideograph_daikanwa_2): Deleted.
167 (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
168 (complex_vars_of_mule_charset): Likewise.
170 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
171 (LEADING_BYTE_DAIKANWA_1): Deleted.
172 (LEADING_BYTE_DAIKANWA_2): Deleted.
173 (MIN_CHAR_DAIKANWA): Deleted.
174 (MAX_CHAR_DAIKANWA): Deleted.
176 2003-02-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
178 * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
179 (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
180 ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
182 * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
183 (Vcharset_ideograph_daikanwa): Deleted.
184 (Qideograph_hanziku_{1..12}): Deleted.
185 (Qideograph_daikanwa): Deleted.
186 (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
187 Vcharset_ideograph_daikanwa.
188 (syms_of_mule_charset): Delete `ideograph-daikanwa' and
189 `ideograph-hanziku-{1..12}'.
190 (complex_vars_of_mule_charset): Likewise.
192 2003-02-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
194 * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
196 * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
197 (Qideograph_gt_pj_{1..11}): Deleted.
198 (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
199 (complex_vars_of_mule_charset): Likewise.
201 2003-02-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
203 * mule-charset.c (Vcharset_ucs_big5): Deleted.
204 (Vcharset_ideograph_gt): Deleted.
205 (Qucs_big5): Deleted.
206 (Qideograph_gt): Deleted.
207 (syms_of_mule_charset): Delete symbol `ucs-big5' and
209 (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
212 * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
213 (LEADING_BYTE_GT): Deleted.
214 (GC_CHARSETP): Deleted.
215 (MIN_CHAR_GT): Deleted.
216 (MAX_CHAR_GT): Deleted.
218 2003-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
220 * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
222 2003-01-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
224 * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
225 (Qideograph_cbeta): Deleted.
226 (syms_of_mule_charset): Don't define `ideograph-cbeta'.
227 (complex_vars_of_mule_charset): Likewise.
229 * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
230 (MIN_CHAR_CBETA): Comment out.
231 (MAX_CHAR_CBETA): Likewise.
233 2002-12-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
235 * mule-charset.c (charset_lookup_description_1): Use
236 `NUM_LEADING_BYTES' in UTF-2000.
238 2002-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
240 * mule-charset.c (Vcharset_china3_jef): Deleted.
241 (Qchina3_jef): Deleted.
242 (syms_of_mule_charset): Don't define `china3-jef'.
243 (complex_vars_of_mule_charset): Likewise.
245 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
246 (MIN_CHAR_CHINA3_JEF): Comment out.
247 (MAX_CHAR_CHINA3_JEF): Comment out.
249 2002-11-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
251 * mule-charset.c (Vcharset_ucs_gb): New variable.
252 (Qucs_gb): New variable.
253 (syms_of_mule_charset): Add new symbol `ucs-gb'.
254 (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
256 * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
258 2002-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
260 * mule-charset.c (charset_code_point): if a coded-charset has a
261 final-byte, don't inherit the builtin range of the mother CCS.
263 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
265 * mule-charset.c (charset_code_point): Fix problem about
268 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
270 * mule-charset.c (decode_builtin_char): Reorganized.
272 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
274 * text-coding.c (char_encode_shift_jis): Modify for
275 `charset_code_point'.
276 (char_encode_big5): Likewise.
277 (char_encode_utf8): Likewise.
278 (char_encode_iso2022): Likewise.
280 * mule-charset.c (charset_code_point): Add new argument
282 (Fencode_char): Add new optional argument `defined_only'.
284 * chartab.c (put_char_table): Modify for `charset_code_point'.
285 (map_char_table): Likewise.
287 * char-ucs.h (charset_code_point): Add new argument
289 (encode_char_1): Modify for `charset_code_point'.
291 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
293 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
294 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
296 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
298 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
299 (Qjis_x0208): Likewise.
300 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
301 XCHARSET_FINAL(charset).
302 (charset_code_point): Modify condition for final-byte based
304 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
305 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
306 in UTF-2000; specify `=jis-x0208' as the mother of
307 `japanese-jisx0208-1978', `japanese-jisx0208' and
308 `japanese-jisx0208-1990' in UTF-2000.
310 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
312 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
314 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
316 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
317 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
318 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
319 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
320 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
321 CONVERSION_96x96x96x96 are introduced.
322 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
323 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
324 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
326 * char-ucs.h (CONVERSION_94): New macro.
327 (CONVERSION_96): New macro.
328 (CONVERSION_94x94): New macro.
329 (CONVERSION_96x96): New macro.
330 (CONVERSION_94x94x94): New macro.
331 (CONVERSION_96x96x96): New macro.
332 (CONVERSION_94x94x94x60): New macro.
333 (CONVERSION_94x94x94x94): New macro.
334 (CONVERSION_96x96x96x96): New macro.
336 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
338 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
340 * fns.c (Qideographic_structure): New variable.
341 (Qkeyword_char): New variable.
342 (ids_format_unit): New function.
343 (Fideographic_structure_to_ids): New function.
344 (syms_of_fns): Add new symbols `ideographic-structure' and
345 `:char'; add new builtin function `ideographic-structure-to-ids'.
347 * data.c (Fchar_ref_p): New function.
348 (syms_of_data): Add new builtin function `char-ref-p'.
350 * chartab.h: Add an EXFUN for `Ffind_char'.
352 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
354 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
355 and `COMPOSE_ADD_CHAR'.
356 (decode_coding_iso2022): Use `decode_flush_er_chars'.
358 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
360 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
361 instead of `DECODE_ADD_UCS_CHAR'.
362 (COMPOSE_ADD_CHAR): Likewise.
364 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
366 * text-coding.c (decode_flush_er_chars): New inline function.
367 (decode_add_er_char): New function.
368 (decode_coding_utf8): Use `decode_flush_er_chars' and
369 `decode_add_er_char'.
371 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
373 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
374 done before `decode_output_utf8_partial_char'.
376 * mule-charset.c (complex_vars_of_mule_charset): Specify
377 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
378 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
380 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
382 * mule-charset.c (decode_defined_char): New function; search
384 (decode_builtin_char): Don't search mother if
385 XCHARSET_MAX_CODE(charset) == 0.
386 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
387 == 0 even if code >= XCHARSET_MAX_CODE(charset).
388 (Fdecode_char): Use `decode_defined_char' instead of
389 `DECODE_DEFINED_CHAR'.
390 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
391 mother of `Vcharset_ucs_jis'.
393 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
394 instead of `DECODE_DEFINED_CHAR'.
396 * char-ucs.h (decode_defined_char): Renamed from
397 `DECODE_DEFINED_CHAR'; changed to normal function.
398 (DECODE_CHAR): Use `decode_defined_char' instead of
399 `DECODE_DEFINED_CHAR'.
401 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
403 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
405 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
407 * text-coding.c (Vcoded_charset_entity_reference_alist): New
409 (Quse_entity_reference): New variable.
413 (coding_system_description): Add description for
415 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
416 (allocate_coding_system): Initialize `ccs_priority_list' in
418 (Fmake_coding_system): Add description about
419 'use-entity-reference; setup
420 CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
421 (Fcoding_system_property): Accept `disable-composition' and
422 `use-entity-reference' in UTF-2000.
423 (struct decoding_stream): Add new member `er_counter' and `er_buf'
425 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
426 (decode_coding_utf8): Decode entity-reference if
427 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
428 (char_encode_utf8): Encode non-Unicode characters as
429 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
431 (syms_of_file_coding): Add new symbols `use-entity-reference',
433 (vars_of_file_coding): Add new variable
434 `coded-charset-entity-reference-alist'.
435 (complex_vars_of_file_coding): Declare `disable-composition' and
436 `use-entity-reference' to be coding-system-properties in UTF-2000.
438 * file-coding.h (struct Lisp_Coding_System): Add new member
439 `use_entity_reference' and `ccs_priority_list'.
440 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
441 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
442 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
444 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
446 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
448 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
450 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
451 `XCHARSET_GRAPHIC(ccs)'.
453 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
455 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
458 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
460 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
461 instead of `XCHARSET_CHARS'.
463 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
465 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
466 (XCHARSET_BYTE_SIZE): Likewise.
468 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
470 (XCHARSET_BYTE_SIZE): Likewise.
472 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
474 * char-ucs.h (decoding_table_check_elements): Delete prototype.
475 (get_ccs_octet_table): New inline function.
476 (put_ccs_octet_table): Likewise.
477 (decoding_table_put_char): Use `get_ccs_octet_table' and
478 `put_ccs_octet_table'.
479 (decoding_table_remove_char): Use `decoding_table_put_char'.
480 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
482 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
484 (make_charset): Use Qunbound instead Qnil as initial value of
487 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
489 * mule-charset.c (put_char_ccs_code_point): Modify for
490 `decoding_table_remove_char' and `decoding_table_put_char'.
491 (remove_char_ccs): Modify for `decoding_table_remove_char'.
493 * char-ucs.h (decoding_table_remove_char): Change arguments to
494 hide decoding_table vector.
495 (decoding_table_put_char): Likewise.
497 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
499 * mule-charset.c (decoding_table_remove_char): Moved to
501 (decoding_table_put_char): Likewise.
503 * char-ucs.h (decoding_table_check_elements): New prototype [moved
504 from mule-charset.c].
505 (decoding_table_remove_char): New inline function [moved from
507 (decoding_table_put_char): Likewise.
509 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
511 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
512 instead of `DECODE_CHAR' for mother; don't use special code for
513 chinese-big5 to use code space of chinese-big5-1 and
515 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
516 `MAX_CHAR_BIG5_CDP' for chinese-big5.
518 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
519 (MAX_CHAR_BIG5_CDP): Revival.
521 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
523 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
524 the XLFD registry-encoding name of `chinese-big5'.
526 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
528 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
529 (Qchinese_big5_cdp): Deleted.
530 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
531 (complex_vars_of_mule_charset): Delete coded-charset
534 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
535 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
536 `CHARSET_ID_OFFSET - n' for private CCS.
537 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
538 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
539 of `MIN_LEADING_BYTE'.
540 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
541 `(CHARSET_ID_OFFSET - 97)'.
542 (MIN_CHAR_BIG5_CDP): Deleted.
543 (MAX_CHAR_BIG5_CDP): Deleted.
545 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
547 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
550 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
552 * mule-charset.c (decode_builtin_char): Support mother charsets.
554 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
556 * mule-charset.c (Q94x94x60): New variable.
557 (charset_code_point): Support conversion `94x94x60'.
558 (Fmake_charset): Likewise.
559 (syms_of_mule_charset): Add new symbol `94x94x60'.
561 * char-ucs.h (CONVERSION_94x94x60): New macro.
563 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
565 * mule-charset.c (charset_code_point): Unify code about
568 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
570 * mule-charset.c (charset_code_point): Merge code about builtin
571 characters into code about mother charsets; don't use
572 `range_charset_code_point'.
573 (range_charset_code_point): Deleted.
575 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
577 * mule-charset.c (Qcode_offset): New variable.
578 (Fmake_charset): Use `XUINT' to get value of `min-code' and
579 `max-code'; accept new property `code-offset'.
580 (syms_of_mule_charset): Add new symbol `code-offset'.
582 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
584 * mule-charset.c (range_charset_code_point): Fixed.
586 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
588 * mule-charset.c (decode_builtin_char): Change semantics of
589 code-offset of coded-charset.
590 (charset_code_point): Likewise.
591 (range_charset_code_point): Likewise.
592 (complex_vars_of_mule_charset): Modify for the change.
594 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
596 * mule-charset.c (Fencode_char): Reverse arguments.
598 * mule-charset.c (charset_code_point): Fixed.
600 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
602 * mule-charset.c (Vcharset_mojikyo): Deleted.
603 (Vcharset_mojikyo_2022_1): Deleted.
604 (Vcharset_mojikyo_pj_{1..21}): Deleted.
605 (Qmin_code): New variable in UTF-2000.
606 (Qmax_code): Likewise.
608 (Qconversion): Likewise.
611 (Qmojikyo_2022_1): Deleted.
612 (Qmojikyo_pj_{1..22}): Deleted.
613 (mark_charset): Mark `cs->mother'.
614 (charset_description): Add description for `mother'.
615 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
616 new arguments `mother' and `conversion'; use
617 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
618 (charset_code_point): Moved from char-ucs.h; support `mother'
620 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
621 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
622 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
623 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
624 allow 2 as the value of `graphic' in UTF-2000; add new properties
625 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
626 require `final' in UTF-2000; modify for `make_charset'.
627 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
628 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
629 (Fcharset_property): Support `mother', `min-code' and `max-code'.
630 (Fencode_char): New function.
631 (syms_of_mule_charset): Add new builtin function `encode-char' in
632 UTF-2000; add new symbols `min-code', `max-code', `mother',
633 `conversion' and `94x60'; delete symbols `mojikyo',
634 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
635 (complex_vars_of_mule_charset): Modify for `make_charset' change;
636 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
637 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
639 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
640 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
642 * char-ucs.h (Vcharset_mojikyo): Deleted.
643 (Vcharset_mojikyo_2022_1): Deleted.
644 (LEADING_BYTE_MOJIKYO): Deleted.
645 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
646 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
647 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
648 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
649 add new member `mother'; add new member `conversion'.
650 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
651 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
652 (CHARSET_MOTHER): New macro.
653 (CHARSET_CONVERSION): New macro.
654 (CONVERSION_IDENTICAL): New macro.
655 (CONVERSION_94x60): New macro.
656 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
657 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
658 (XCHARSET_MOTHER): New macro.
659 (XCHARSET_CONVERSION): New macro.
660 (MIN_CHAR_MOJIKYO): Deleted.
661 (MAX_CHAR_MOJIKYO): Deleted.
662 (DECODE_MOJIKYO_2022): Deleted.
663 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
664 (charset_code_point): Changed to non-inline function.
665 (encode_char_1): Use `charset_code_point'.
666 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
668 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
670 * lread.c (read_compiled_function): Fix prototype.
671 (read_vector): Likewise.
673 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
675 * lrecord.h (struct lrecord_header): Delete `older'.
676 (set_lheader_implementation): Delete code for `older'.
677 (set_lheader_older_implementation): Deleted.
678 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
679 (OLDER_RECORD_P): Deleted.
680 (OLDER_RECORD_HEADER_P): Deleted.
681 (alloc_older_lcrecord): Deleted.
682 (alloc_older_lcrecord_type): Deleted.
684 * alloc.c (all_older_lcrecords): Deleted.
685 (alloc_older_lcrecord): Deleted.
686 (disksave_object_finalization_1): Delete code for older objects.
687 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
688 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
690 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
692 * mule-charset.c (decoding_table_put_char): Use `make_vector'
693 instead of `make_older_vector'.
694 (put_char_ccs_code_point): Likewise.
695 (mark_charset): Mark `cs->decoding_table'.
696 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
698 * lisp.h (make_older_vector): Deleted.
699 (make_vector_newer): Deleted.
701 * config.h.in (HAVE_GGC): Deleted.
703 * alloc.c (make_older_vector): Deleted.
704 (make_vector_newer_1): Deleted.
705 (make_vector_newer): Deleted.
707 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
709 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
710 (Qideograph_daikanwa_2): New variable.
711 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
712 (complex_vars_of_mule_charset): Add new coded-charset
713 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
714 `LEADING_BYTE_DAIKANWA'.
716 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
717 (LEADING_BYTE_DAIKANWA_1): New macro.
718 (LEADING_BYTE_DAIKANWA_2): New macro.
719 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
721 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
723 * mule-charset.c (complex_vars_of_mule_charset): Change
724 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
725 the second revised version.
727 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
729 * mule-charset.c (Vcharset_ucs_smp): New variable.
730 (Vcharset_ucs_sip): New variable.
731 (Qucs_smp): New variable.
732 (Qucs_sip): New variable.
733 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
734 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
735 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
736 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
737 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
738 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
740 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
741 (LEADING_BYTE_UCS_SIP): New macro.
742 (MIN_CHAR_SMP): New macro.
743 (MAX_CHAR_SMP): New macro.
744 (MIN_CHAR_SIP): New macro.
745 (MAX_CHAR_SIP): New macro.
747 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
749 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
752 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
754 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
755 value; don't store value into `encoding_table' of `Lisp_Charset'.
756 (mark_charset): `encoding_table' was deleted.
757 (charset_description): Likewise.
758 (make_charset): Likewise.
759 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
760 `put_char_ccs_code_point'.
762 * chartab.h (Fput_char_attribute): New EXFUN.
764 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
765 is unified with normal symbol space.
766 (Fget_char_attribute): Likewise.
767 (Fput_char_attribute): Likewise; behavior of
768 `put_char_ccs_code_point' is changed.
770 * char-ucs.h: Include "elhash.h".
771 (Vchar_attribute_hash_table): New external variable.
772 (struct Lisp_Charset): Delete `encoding_table'.
773 (CHARSET_ENCODING_TABLE): New implementation; refer
774 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
777 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
779 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
782 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
784 * text-coding.c (char_encode_big5): Prefer charset-g1 than
787 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
789 * chartab.c (uint8_byte_table_description): New constant.
790 (uint8-byte-table): Use `uint8_byte_table_description'.
791 (uint16_byte_table_description): New constant.
792 (uint16-byte-table): Use `uint16_byte_table_description'.
794 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
796 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
797 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
799 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
801 * mule-charset.c (Vcharset_ucs_ks): New variable.
802 (Qucs_ks): New variable.
803 (syms_of_mule_charset): Add new symbol `ucs-ks'.
804 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
806 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
808 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
810 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
811 (Fdecode_char): Likewise.
813 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
815 (Fdefine_char): Modify for Fdecode_char.
816 (Ffind_char): Likewise.
818 * mule-charset.c (Fdecode_char): Add new optional argument
820 (Fdecode_builtin_char): Modify for `Fdecode_char'.
822 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
824 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
825 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
826 (allocate_coding_system): Initialize initial-charsets of
827 CODESYS_BIG5 in XEmacs UTF-2000.
828 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
829 CODESYS_BIG5 in XEmacs UTF-2000.
830 (decode_coding_big5): Use initial-charset-g0 and -g1 of
831 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
833 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
835 (Qideograph_hanziku_{1 .. 12}): Likewise.
836 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
838 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
839 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
840 `ideograph-hanziku-{1 .. 12}'.
842 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
843 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
844 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
845 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
846 (DECODE_DEFINED_CHAR): New inline function.
847 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
849 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
851 * mule-charset.c (Vcharset_china3_jef): Renamed from
852 `Vcharset_japanese_jef_china3'.
853 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
854 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
855 `{MIN|MAX}_CHAR_JEF_CHINA3'..
856 (syms_of_mule_charset): Rename `china3-jef' from
857 `japanese-jef-china3'.
858 (complex_vars_of_mule_charset): Likewise; rename
859 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
861 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
862 `LEADING_BYTE_JEF_CHINA3'.
863 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
864 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
866 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
868 * mule-charset.c (encode_builtin_char_1): Comment out special code
869 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
871 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
872 (MAX_CHAR_MOJIKYO_0): Comment out.
873 (MIN_CHAR_CBETA): Changed to 0x00E20000.
874 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
875 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
876 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
878 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
880 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
881 (Qideograph_cbeta): New variable.
882 (encode_builtin_char_1): Comment out special code for
883 coded-charset `mojikyo' and `japanese-jef-china3'.
884 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
885 (complex_vars_of_mule_charset): Add new coded-charset
888 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
889 (MIN_CHAR_CBETA): New macro.
890 (MAX_CHAR_CBETA): New macro.
892 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
894 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
895 (LEADING_BYTE_JEF_CHINA3): New macro.
896 (MIN_CHAR_JEF_CHINA3): New macro.
897 (MAX_CHAR_JEF_CHINA3): Likewise.
898 (DECODE_CHAR): Fixed.
900 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
902 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
903 (Qjapanese_jef_china3): New variable.
904 (encode_builtin_char_1): Support `japanese-jef-china3'.
905 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
906 (complex_vars_of_mule_charset): Add new coded-charset
907 `japanese-jef-china3'.
909 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
911 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
912 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
913 94^4, 96^3, 96^4, 128^n and 256^n set.
914 (put_char_table): Use `XCHARSET_CELL_RANGE'.
915 (map_char_table): Likewise.
917 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
919 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
922 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
924 * chartab.h (get_char_id_table): New inline function.
926 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
929 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
931 * chartab.h (decode_char_table_range): New prototype in XEmacs
933 (put_char_id_table): New inline function in XEmacs UTF-2000.
935 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
937 (decode_char_table_range): Delete static declaration in XEmacs
940 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
942 * chartab.c (put_char_id_table): Use `put_char_table'.
944 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
946 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
947 (map_over_uint16_byte_table): Likewise.
948 (map_over_byte_table): Likewise.
949 (map_char_table): Modify for `map_over_uint8_byte_table',
950 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
953 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
955 * chartab.c (struct map_char_table_for_charset_arg): New
957 (map_char_table_for_charset_fun): New function.
958 (map_char_table): Use `map_char_table' for encoding_table of
961 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
963 * chartab.c (map_char_table): Check a character is found in
964 range->charset instead of non default value is defined in
965 char-table when range is CHARTAB_RANGE_ROW.
967 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
969 * chartab.c (map_char_id_table): Deleted.
970 (Fmap_char_attribute): Use `map_char_table' instead of
973 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
975 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
977 (update_syntax_table): Deleted in XEmacs UTF-2000.
979 * syntax.c (find_defun_start): Use `syntax_table' instead of
980 `mirror_syntax_table' in XEmacs UTF-2000.
981 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
983 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
985 (Fmatching_paren): Likewise.
986 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
988 (find_start_of_comment): Likewise.
989 (find_end_of_comment): Likewise.
990 (Fforward_comment): Likewise.
991 (scan_lists): Likewise.
992 (char_quoted): Likewise.
993 (Fbackward_prefix_chars): Likewise.
994 (scan_sexps_forward): Likewise.
995 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
996 (update_syntax_table): Likewise.
998 * search.c (skip_chars): Use `syntax_table' instead of
999 `mirror_syntax_table' in XEmacs UTF-2000.
1000 (wordify): Likewise.
1001 (Freplace_match): Likewise.
1003 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1004 `mirror_syntax_table' in XEmacs UTF-2000.
1005 (WORDCHAR_P_UNSAFE): Likewise.
1006 (re_match_2_internal): Likewise.
1008 * font-lock.c (find_context): Use `buf->syntax_table' instead of
1009 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1011 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1012 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1014 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1017 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1019 (print_char_table): Print `default_value' in XEmacs UTF-2000.
1020 (char_table_description): Delete `mirror_table' in XEmacs
1022 (fill_char_table): Don't call `update_syntax_table' in XEmacs
1024 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1025 (Fcopy_char_table): Likewise.
1026 (put_char_table): Don't call `update_syntax_table' in XEmacs
1029 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1030 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1031 (casify_region_internal): Likewise.
1033 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1035 * buffer.c (common_init_complex_vars_of_buffer): Don't use
1036 `mirror_syntax_table' in XEmacs UTF-2000.
1038 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1039 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1040 (Fexpand_abbrev): Likewise.
1042 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1044 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1046 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1048 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1049 (map_over_uint16_byte_table): Likewise.
1050 (map_over_byte_table): Likewise.
1051 (get_char_id_table): Refer `cit->default_value'.
1052 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1053 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1054 of character-id ranges.
1055 (mark_char_table): Mark `ct->default_value'.
1056 (char_table_description): Add `default_value'.
1057 (fill_char_table): Use `default_value'.
1058 (decode_char_table_range): Decode `nil' as
1059 `CHARTAB_RANGE_DEFAULT'.
1060 (get_char_id_table): Refer `cit->default_value'.
1061 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1062 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1063 temporary hack; check value of char-table is bound or not.
1064 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1066 * chartab.h (struct Lisp_Char_Table): Add new member
1067 `default_value' in XEmacs UTF-2000.
1068 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1069 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1072 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1074 * chartab.h (Lisp_Char_ID_Table): Deleted.
1076 * chartab.c (char_table_description): Fix typo.
1077 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1078 `Lisp_Char_ID_Table'.
1080 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1082 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1085 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1088 * chartab.h (XCHAR_ID_TABLE): Deleted.
1089 (XSETCHAR_ID_TABLE): Deleted.
1090 (CHAR_ID_TABLE_P): Deleted.
1092 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1094 (Fget_composite_char): Likewise.
1095 (put_char_table): Likewise.
1096 (add_char_attribute_alist_mapper): Fixed.
1097 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1099 (Fget_char_attribute): Likewise.
1100 (Fget_char_attribute): Likewise.
1101 (Fmap_char_attribute): Likewise.
1103 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1105 (encode_char_1): Likewise.
1107 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1109 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1112 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1113 instead of `XCHAR_ID_TABLE'.
1114 (remove_char_ccs): Likewise.
1116 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1118 (Fget_composite_char): Likewise.
1119 (Fchar_variants): Likewise.
1120 (put_char_table): Likewise.
1121 (add_char_attribute_alist_mapper): Likewise.
1122 (Fchar_attribute_alist): Likewise.
1123 (Fget_char_attribute): Likewise.
1124 (Fput_char_attribute): Likewise.
1125 (Fmap_char_attribute): Likewise.
1126 (Fmap_char_attribute): Likewise.
1128 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1130 (encode_char_1): Likewise.
1132 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1134 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1135 `Lisp_Char_ID_Table'.
1136 (mark_char_id_table): Deleted.
1137 (print_char_id_table): Likewise.
1138 (char_id_table_equal): Likewise.
1139 (char_id_table_hash): Likewise.
1140 (char_id_table_description): Likewise.
1141 (char_id_table): Likewise.
1142 (make_char_id_table): Use `Fmake_char_table' and
1144 (get_char_id_table): Use `Lisp_Char_Table' instead of
1145 `Lisp_Char_ID_Table'.
1146 (put_char_id_table): Likewise.
1147 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1149 (Fremove_char_attribute): Likewise.
1150 (syms_of_chartab): Don't define type `char-id-table'.
1152 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1153 (char_id_table): Likewise.
1154 (GC_CHAR_ID_TABLE_P): Likewise.
1155 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1156 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1157 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1158 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1159 (get_char_id_table): Use `Lisp_Char_Table' instead of
1160 `Lisp_Char_ID_Table'.
1161 (put_char_id_table_0): Likewise.
1162 (put_char_id_table): Likewise.
1164 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1166 * chartab.h: Lisp_Byte_Table related codes are moved from
1169 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1171 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1173 * chartab.h: Don't include "chartab.h".
1174 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1175 (Lisp_Char_ID_Table): Likewise.
1176 (char_id_table): Likewise.
1177 (XCHAR_ID_TABLE): Likewise.
1178 (XSETCHAR_ID_TABLE): Likewise.
1179 (CHAR_ID_TABLE_P): Likewise.
1180 (GC_CHAR_ID_TABLE_P): Likewise.
1181 (get_char_id_table): Likewise.
1183 * char-ucs.h: Include "chartab.h".
1184 (struct Lisp_Char_ID_Table): Moved to chartab.h.
1185 (Lisp_Char_ID_Table): Likewise.
1186 (char_id_table): Likewise.
1187 (XCHAR_ID_TABLE): Likewise.
1188 (XSETCHAR_ID_TABLE): Likewise.
1189 (CHAR_ID_TABLE_P): Likewise.
1190 (GC_CHAR_ID_TABLE_P): Likewise.
1191 (get_char_id_table): Likewise.
1193 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1195 * chartab.c (copy_uint8_byte_table): New function.
1196 (copy_uint16_byte_table): New function.
1197 (copy_byte_table): New function.
1198 (map_over_uint8_byte_table): Modify to avoid huge numbers of
1200 (map_over_uint16_byte_table): Likewise.
1201 (map_over_byte_table): Likewise.
1202 (get_byte_table): Move prototype to chartab.h.
1203 (put_byte_table): Likewise.
1204 (put_char_id_table_0): Moved to chartab.h.
1205 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1206 (char_table_entry_equal): Likewise.
1207 (char_table_entry_hash): Likewise.
1208 (char_table_entry_description): Likewise.
1209 (char_table_entry): Likewise.
1210 (make_char_table_entry): Likewise.
1211 (copy_char_table_entry): Likewise.
1212 (get_non_ascii_char_table_value): Likewise.
1213 (map_over_charset_ascii): Likewise.
1214 (map_over_charset_control_1): Likewise.
1215 (map_over_charset_row): Likewise.
1216 (map_over_other_charset): Likewise.
1217 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1218 (print_char_table): Likewise.
1219 (char_table_equal): Likewise.
1220 (char_table_hash): Likewise.
1221 (char_table_description): Likewise.
1222 (fill_char_table): Likewise.
1223 (Fcopy_char_table): Likewise.
1224 (get_char_table): Likewise.
1225 (Fget_range_char_table): Likewise.
1226 (put_char_table): Likewise.
1227 (map_char_table): Likewise.
1228 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1231 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1233 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1234 `Vauto_fill_chars' in XEmacs UTF-2000.
1236 * chartab.h (get_byte_table): New prototype [moved from
1238 (put_byte_table): Likewise [moved from chartab.c].
1239 (put_char_id_table_0): New inline function [moved from chartab.c].
1240 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1241 (Lisp_Char_Table_Entry): Likewise.
1242 (char_table_entry): Likewise.
1243 (XCHAR_TABLE_ENTRY): Likewise.
1244 (XSETCHAR_TABLE_ENTRY): Likewise.
1245 (CHAR_TABLE_ENTRYP): Likewise.
1246 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1247 (NUM_ASCII_CHARS): Likewise.
1248 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1249 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1251 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1253 * chartab.c (get_char_id_table): Change interface.
1254 (put_char_id_table_0): New function.
1255 (put_char_id_table): Change interface; new implementation.
1256 (Fget_composite_char): Modify for interface change of
1257 `get_char_id_table'.
1258 (Fchar_variants): Likewise.
1259 (add_char_attribute_alist_mapper): Likewise.
1260 (Fchar_attribute_alist): Likewise.
1261 (Fget_char_attribute): Likewise.
1262 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1263 as same as character as the first argument like `put-char-table';
1264 modify for interface change of `put_char_id_table'.
1265 (Fremove_char_attribute): Modify for interface change of
1266 `put_char_id_table'.
1268 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1270 * text-coding.c: Sync up with XEmacs 21.2.41.
1271 (COMPOSE_ADD_CHAR): Modify for interface change of
1272 `get_char_id_table'.
1274 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1275 change of `put_char_id_table'.
1276 (remove_char_ccs): Likewise.
1278 * chartab.h (put_char_id_table): Change interface.
1280 * char-ucs.h (get_char_id_table): Change interface.
1281 (charset_code_point): Modify for interface change of
1282 `get_char_id_table'.
1283 (encode_char_1): Likewise.
1285 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1287 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1289 (map_over_uint16_byte_table): Likewise.
1290 (map_over_byte_table): Likewise.
1291 (map_char_id_table): Add new argument `range' like
1293 (Fmap_char_attribute): Add new argument `range' like
1296 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1298 * chartab.c (map_over_uint8_byte_table): Change interface of
1299 mapping function to use struct chartab_range instead of Emchar.
1300 (map_over_uint16_byte_table): Likewise.
1301 (map_over_byte_table): Likewise.
1302 (map_char_id_table): Likewise.
1303 (struct slow_map_char_id_table_arg): Deleted.
1304 (slow_map_char_id_table_fun): Deleted.
1305 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1306 function `slow_map_char_table_fun' instead of struct
1307 `slow_map_char_id_table_arg' and function
1308 `slow_map_char_id_table_fun'.
1310 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1312 * mule-charset.c: Move char-it-table related codes to chartab.c.
1313 (Vutf_2000_version): Moved to chartab.c.
1314 (Fdefine_char): Likewise.
1315 (Ffind_char): Likewise.
1316 (syms_of_mule_charset): Move types `uint8-byte-table',
1317 `uint16-byte-table', `byte-table' and `char-id-table' to
1318 chartab.c; move functions `char_attribute_list,
1319 `find_char_attribute_table, `char_attribute_alist,
1320 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1321 `map_char_attribute, `define_char, `find_char, `char_variants and
1322 `get_composite_char to chartab.c; move symbols `=>ucs',
1323 `->decomposition', `compat', `isolated', `initial', `medial',
1324 `final', `vertical', `noBreak', `fraction', `super', `sub',
1325 `circle', `square', `wide', `narrow', `small' and `font' to
1327 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1328 setting codes for `Vcharacter_composition_table' and
1329 `Vcharacter_variant_table' to chartab.c.
1330 (complex_vars_of_mule_charset): Move setting code for
1331 `Vchar_attribute_hash_table' to chartab.c.
1333 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1334 (make_char_id_table): New prototype.
1335 (put_char_id_table): Likewise.
1336 (Fget_char_attribute): Likewise.
1338 * chartab.c: Move char-id-table related code from mule-charset.c.
1339 (Vutf_2000_version): Moved from mule-charset.c.
1341 * char-ucs.h (Qucs): New external variable.
1342 (put_char_ccs_code_point): New prototype.
1343 (remove_char_ccs): Likewise.
1345 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1347 * mule-charset.c (Vcharset_ucs_jis): New variable.
1348 (Qucs_jis): Likewise.
1349 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1350 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1352 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1354 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1356 * mule-charset.c (map_over_uint8_byte_table): New function.
1357 (map_over_uint16_byte_table): Likewise.
1358 (map_over_byte_table): Likewise.
1359 (map_char_id_table): Likewise.
1360 (slow_map_char_id_table_fun): Likewise.
1361 (Fmap_char_attribute): Likewise.
1362 (syms_of_mule_charset): Add new function `map-char-attribute'.
1364 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1366 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1367 (syms_of_mule_charset): Add new function `find-char'.
1369 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1371 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1373 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1374 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1376 (complex_vars_of_mule_charset): Add new coded-charset
1377 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1378 `ideograph-gt-pj-*'.
1380 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1382 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1384 * mule-charset.c (encode_builtin_char_1): Purge codes about
1385 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1386 {MIN|MAX}_CHAR_HEBREW.
1387 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1388 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1390 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1391 (MAX_CHAR_GREEK): Purged.
1392 (MIN_CHAR_CYRILLIC): Purged.
1393 (MAX_CHAR_CYRILLIC): Purged.
1394 (MIN_CHAR_HEBREW): Commented out.
1395 (MAX_CHAR_HEBREW): Likewise.
1397 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1399 * mule-charset.c (Qto_ucs): New variable.
1400 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1401 (Fdefine_char): Likewise.
1402 (syms_of_mule_charset): Add new symbol `=>ucs'.
1404 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1406 * mule-charset.c (Fdecode_char): Fixed.
1408 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1410 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1411 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1414 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1416 * mule-charset.c (Vcharset_ucs_big5): New variable.
1417 (Qucs_big5): Likewise.
1418 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1419 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1421 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1423 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1425 * mule-charset.c (decode_builtin_char): Check Big5 code range
1426 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1428 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1430 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1431 (Qchinese_gb12345): Likewise.
1432 (Fdecode_builtin_char): Fixed.
1433 (syms_of_mule_charset): Add `chinese-gb12345'.
1434 (complex_vars_of_mule_charset): Add coded-charset
1437 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1438 (LEADING_BYTE_CHINESE_GB12345): New macro.
1440 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1442 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1443 and `latin-viscii-upper' for `latin-viscii'.
1445 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1447 * mule-charset.c (Fdecode_builtin_char): Comment out
1448 regularization code for ISO-IR GR representation.
1450 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1452 * mule-charset.c (decode_builtin_char): New function; renamed from
1453 `make_builtin_char'; return -1 instead of signal.
1454 (Fdecode_builtin_char): Use `decode_builtin_char'.
1456 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1457 `make_builtin_char'.
1458 (DECODE_CHAR): Use `decode_builtin_char' instead of
1459 `make_builtin_char'; use mapping table of `chinese-big5' for
1460 `chinese-big5-{1,2}'.
1462 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1464 * text-coding.c (char_encode_big5): New function.
1465 (char_finish_big5): Likewise.
1466 (reset_encoding_stream): Use `char_encode_big5' and
1467 `char_finish_big5' for CODESYS_BIG5.
1468 (mule_encode): Don't use `encode_coding_big5'.
1469 (encode_coding_big5): Deleted.
1471 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1473 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1474 0x81- in XEmacs UTF-2000.
1475 (detect_coding_big5): Likewise.
1477 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1479 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1480 generate character-id if the CCS property does not have
1481 corresponding predefined character.
1482 (make_builtin_char): Return -1 if corresponding predefined
1483 character is not found.
1484 (Fdecode_char): Return nil if corresponding character is not
1486 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1487 don't map to builtin ucs space.
1489 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1491 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1492 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1494 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1496 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1497 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1498 (Qideograph_gt): Likewise.
1499 (Qideograph_gt_pj_{1..11}): Likewise.
1500 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1501 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1502 `ideograph-gt-pj-11'.
1503 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1504 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1505 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1507 * char-ucs.h (LEADING_BYTE_GT): New macro.
1508 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1509 (MIN_CHAR_GT): Likewise.
1510 (MAX_CHAR_GT): Likewise.
1512 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1514 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1515 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1517 * doprnt.c (unsigned_int_converters): Add `c'.
1518 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1520 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1521 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1523 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1524 (MAX_CHAR_MOJIKYO_0): New macro.
1525 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1527 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1529 * mule-charset.c (Fdefine_char): Delete cemented out code.
1530 (encode_builtin_char_1): Modify for new allocation of builtin
1533 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1535 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1537 * mule-charset.c (Vcharset_ucs_cns): New variable.
1538 (Qucs_cns): New variable.
1539 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1540 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1542 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1544 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1546 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1548 * search.c (search_buffer): Make `charset_base_code' as
1549 character-id >> 6 to eliminate the corresponding last byte in
1550 UTF-8 representation [I'm not sure it is right thing].
1551 (boyer_moore): Likewise.
1553 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1555 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1556 representation in MULE.
1558 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1560 * text-coding.c (Fmake_coding_system): Use
1561 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1562 `EXTERNAL_PROPERTY_LIST_LOOP'.
1564 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1566 * text-coding.c (decode_output_utf8_partial_char): New function.
1567 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1569 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1571 * text-coding.c (decode_coding_utf8): Output original byte
1572 sequence if it is broken; change order of conditions.
1574 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1577 * mb-multibyte.h (BYTE_ASCII_P):
1578 Use bit ops for char-signedness safety.
1579 (BYTE_C0_P): Use bit ops for char-signedness safety.
1580 (BYTE_C1_P): Use bit ops for char-signedness safety.
1582 * character.h: (XCHAR_OR_CHAR_INT):
1583 Always use inline function.
1584 Remove redundant type checking assert() - XINT will abort quite
1587 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1589 * text-coding.c: (Fencode_shift_jis_char):
1590 (Fencode_big5_char):
1591 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1592 Replace 0 with '\0' when working with bytes.
1593 Replace initial "(" with "\(" in docstrings.
1595 (Fmake_coding_system):
1596 When type is ccl and value is vector, register it with a proper
1597 symbol. And checks whether the given ccl program is valid.
1598 (mule_decode): When calling ccl_driver, if src indicates
1599 NULL pointer, set an empty string instead.
1600 (mule_encode): Likewise.
1603 (detect_coding_sjis):
1604 (decode_coding_sjis):
1605 (detect_coding_big5):
1606 (decode_coding_big5):
1607 (detect_coding_ucs4):
1608 (decode_coding_ucs4):
1609 (detect_coding_utf8):
1610 (decode_coding_utf8):
1611 (detect_coding_iso2022):
1612 (decode_coding_iso2022):
1613 (decode_coding_no_conversion):
1615 Make all detecting and decoding functions take an Extbyte * arg.
1616 (text_encode_generic):
1617 (encode_coding_big5):
1618 (encode_coding_no_conversion):
1620 Make all encoding functions take a Bufbyte * arg.
1621 Use size_t instead of unsigned int for memory sizes.
1622 Only cast to unsigned char whenever dereferencing Extbyte *.
1624 (struct lrecord_description fcd_description_1): Use countof.
1625 (complex_vars_of_file_coding):
1626 Use countof instead of sizeof.
1627 Use CHECK_NATNUM instead of CHECK_INT.
1629 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1631 * mule-charset.c (Fget_char_attribute): Add new optional argument
1633 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1634 (remove_char_ccs): Likewise.
1636 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1638 * text-coding.c (char_encode_shift_jis): New implementation in
1640 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1643 * mule-charset.c (Vcharset_chinese_big5): New variable in
1645 (Qchinese_big5): New variable in UTF-2000.
1646 (BIG5_SAME_ROW): New macro in UTF-2000.
1647 (make_builtin_char): Use builtin characters of
1648 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1649 characters of `Vcharset_chinese_big5'.
1650 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1651 (complex_vars_of_mule_charset): Add new coded-charset
1652 `chinese-big5' in UTF-2000.
1654 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1655 (Vcharset_chinese_big5): New external variable declaration.
1656 (Vcharset_japanese_jisx0208_1990): Likewise.
1658 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1660 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1662 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1664 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1666 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1667 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1668 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1671 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1673 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1675 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1677 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1680 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1682 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1683 for `CHARSET_BY_ATTRIBUTES'.
1684 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1685 `CHARSET_BY_ATTRIBUTES'.
1687 * text-coding.c (struct decoding_stream): Rename member `CH' to
1689 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1690 (decode_coding_sjis): Likewise.
1691 (decode_coding_big5): Likewise.
1692 (decode_coding_ucs4): Likewise.
1693 (decode_coding_utf8): Likewise.
1694 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1695 `CHARSET_BY_ATTRIBUTES'.
1696 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1697 `str->counter'; decode 3, 4 bytes sets.
1698 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1700 (decode_coding_no_conversion): Use `str->cpos' instead of
1703 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1704 (Qmojikyo_2022_1): New variable.
1705 (make_charset): Don't use `CHARSET_TYPE_*'.
1706 (range_charset_code_point): Support coded-charset
1708 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1709 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1710 `CHARSET_BY_ATTRIBUTES'.
1711 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1712 `CHARSET_BY_ATTRIBUTES'.
1713 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1714 (complex_vars_of_mule_charset): Add new coded-charset
1717 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1718 interface; changed to inline function.
1720 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1721 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1722 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1723 (CHARSET_TYPE_94): Deleted.
1724 (CHARSET_TYPE_94X94): Deleted.
1725 (CHARSET_TYPE_96): Deleted.
1726 (CHARSET_TYPE_96X96): Deleted.
1727 (CHARSET_TYPE_128): Deleted.
1728 (CHARSET_TYPE_128X128): Deleted.
1729 (CHARSET_TYPE_256): Deleted.
1730 (CHARSET_TYPE_256X256): Deleted.
1731 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1733 (DECODE_MOJIKYO_2022): New inline function.
1734 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1735 `Vcharset_mojikyo_2022_1'.
1737 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1739 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1741 (put_byte_table): Likewise.
1742 (char_id_table_equal): Use `get_byte_table' [new implementation].
1744 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1746 * mule-charset.c: Include <limits.h> in UTF-2000.
1747 (BT_UINT8_MIN): New macro in UTF-2000.
1748 (BT_UINT8_MAX): New macro in UTF-2000.
1749 (BT_UINT8_t): New macro in UTF-2000.
1750 (BT_UINT8_nil): New macro in UTF-2000.
1751 (BT_UINT8_unbound): New macro in UTF-2000.
1752 (INT_UINT8_P): New inline function in UTF-2000.
1753 (UINT8_VALUE_P): New inline function in UTF-2000.
1754 (UINT8_ENCODE): New inline function in UTF-2000.
1755 (UINT8_DECODE): New inline function in UTF-2000.
1756 (mark_uint8_byte_table): New function in UTF-2000.
1757 (print_uint8_byte_table): New function in UTF-2000.
1758 (uint8_byte_table_equal): New function in UTF-2000.
1759 (uint8_byte_table_hash): New function in UTF-2000.
1760 (make_uint8_byte_table): New function in UTF-2000.
1761 (uint8_byte_table_same_value_p): New function in UTF-2000.
1762 (BT_UINT16_MIN): New macro in UTF-2000.
1763 (BT_UINT16_MAX): New macro in UTF-2000.
1764 (BT_UINT16_t): New macro in UTF-2000.
1765 (BT_UINT16_nil): New macro in UTF-2000.
1766 (BT_UINT16_unbound): New macro in UTF-2000.
1767 (INT_UINT16_P): New inline function in UTF-2000.
1768 (UINT16_VALUE_P): New inline function in UTF-2000.
1769 (UINT16_ENCODE): New inline function in UTF-2000.
1770 (UINT16_DECODE): New inline function in UTF-2000.
1771 (UINT8_TO_UINT16): New inline function in UTF-2000.
1772 (mark_uint16_byte_table): New function in UTF-2000.
1773 (print_uint16_byte_table): New function in UTF-2000.
1774 (uint16_byte_table_equal): New function in UTF-2000.
1775 (uint16_byte_table_hash): New function in UTF-2000.
1776 (make_uint16_byte_table): New function in UTF-2000.
1777 (uint16_byte_table_same_value_p): New function in UTF-2000.
1778 (print_byte_table): New function in UTF-2000.
1779 (byte-table): Use `print_byte_table' as printer.
1780 (make_byte_table): Delete second argument `older'.
1781 (byte_table_same_value_p): New function in UTF-2000.
1782 (copy_byte_table): Deleted.
1783 (get_byte_table): New function in UTF-2000.
1784 (put_byte_table): New function in UTF-2000.
1785 (print_char_id_table): New function in UTF-2000.
1786 (char-id-table): Use `print_char_id_table' as printer.
1787 (make_char_id_table): Delete second argument `older'.
1788 (get_char_id_table): Use `get_byte_table [new implementation].
1789 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1791 (Ffind_char_attribute_table): New function in UTF-2000.
1792 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1793 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1794 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1795 (syms_of_mule_charset): Add new function
1796 `find-char-attribute-table' in UTF-2000.
1798 * lrecord.h (enum lrecord_type): Add
1799 `lrecord_type_uint16_byte_table' and
1800 `lrecord_type_uint8_byte_table'.
1802 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1803 (Lisp_Uint8_Byte_Table): New type.
1804 (XUINT8_BYTE_TABLE): New macro.
1805 (XSETUINT8_BYTE_TABLE): New macro.
1806 (UINT8_BYTE_TABLE_P): New macro.
1807 (GC_UINT8_BYTE_TABLE_P): New macro.
1808 (struct Lisp_Uint16_Byte_Table): New structure.
1809 (Lisp_Uint16_Byte_Table): New type.
1810 (XUINT16_BYTE_TABLE): New macro.
1811 (XSETUINT16_BYTE_TABLE): New macro.
1812 (UINT16_BYTE_TABLE_P): New macro.
1813 (GC_UINT16_BYTE_TABLE_P): New macro.
1815 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1817 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1818 (Vcharacter_ideographic_strokes_table): Deleted.
1819 (Vcharacter_total_strokes_table): Deleted.
1820 (Vcharacter_morohashi_daikanwa_table): Deleted.
1821 (Vcharacter_decomposition_table): Deleted.
1822 (Qname): Deleted because it is duplicated.
1823 (Qideographic_radical): Deleted.
1824 (Qideographic_strokes): Deleted.
1825 (Qtotal_strokes): Deleted.
1826 (Qmorohashi_daikanwa): Deleted.
1827 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1828 `ideographic-radical', `ideographic-strokes', `total-strokes',
1829 `morohashi-daikanwa' and `->decomposition'.
1830 (Fget_char_attribute): Likewise.
1831 (Fput_char_attribute): Likewise; use `make-vector' instead of
1832 `make_older_vector' for `->decomposition' value.
1833 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1834 `ideograph-daikanwa'.
1835 (syms_of_mule_charset): Delete builtin symbols `name',
1836 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1837 `morohashi-daikanwa'.
1838 (vars_of_mule_charset): Don't setup
1839 `Vcharacter_ideographic_radical_table',
1840 `Vcharacter_ideographic_strokes_table',
1841 `Vcharacter_total_strokes_table',
1842 `Vcharacter_morohashi_daikanwa_table' and
1843 `Vcharacter_decomposition_table'.
1845 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1847 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1848 `make_older_vector', `make_vector_newer_1' and
1849 `make_vector_newer'.
1851 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1852 `make_older_vector' and `make_vector_newer'.
1854 * config.h.in (HAVE_GGC): New macro.
1856 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1858 * mule-charset.c (struct char_attribute_list_closure): New
1859 structure in UTF-2000.
1860 (add_char_attribute_to_list_mapper): New function in UTF-2000.
1861 (Fchar_attribute_list): Likewise.
1862 (Fset_charset_mapping_table): Use `make_vector_newer'.
1863 (Fdecode_builtin_char): New function in UTF-2000.
1864 (syms_of_mule_charset): Add new function `char-attribute-list' and
1865 `decode-builtin-char' in UTF-2000.
1867 * lisp.h (make_vector_newer): New prototype.
1869 * alloc.c (make_vector_newer_1): New function.
1870 (make_vector_newer): New function.
1872 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1874 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1877 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1879 * mule-charset.c (Vchar_attribute_hash_table): New variable.
1880 (Vcharacter_attribute_table): Deleted.
1881 (Vcharacter_name_table): Deleted.
1882 (put_char_attribute): Deleted.
1883 (remove_char_attribute): Deleted.
1884 (struct char_attribute_alist_closure): New structure.
1885 (add_char_attribute_alist_mapper): New function.
1886 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1887 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1888 (Fget_char_attribute): Likewise.
1889 (Fput_char_attribute): Likewise.
1890 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1891 of `remove_char_attribute'.
1892 (Fdefine_char): Return character.
1893 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1894 and `Vcharacter_name_table'.
1895 (complex_vars_of_mule_charset): Likewise
1896 `Vchar_attribute_hash_table'.
1898 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1900 * character.h (CHARC_CHARSET): New macro.
1901 (CHARC_CHARSET_ID): New macro.
1902 (CHARC_CODE_POINT): New macro.
1903 (CHARC_COLUMNS): New macro.
1904 (CHARC_TO_CHAR): New inline function.
1905 (CHARC_EQ): New inline function.
1906 (CHARC_ASCII_EQ): New inline function.
1907 (CHARC_IS_SPACE): New inline function.
1908 (ASCII_TO_CHARC): New inline function.
1910 * char-ucs.h (encode_char_2): Deleted.
1911 (ENCODE_CHAR): Use `encode_char_1' again.
1912 (breakup_char_1): Likewise.
1913 (CHAR_TO_CHARC): New inline function.
1915 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1917 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1919 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1920 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1921 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1922 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1923 (create_string_text_block): Use `CHARC_ASCII_EQ' and
1925 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1927 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1929 (x_output_display_block): Use `CHARC_CHARSET' and
1932 * redisplay-tty.c (tty_output_display_block): Use
1934 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1936 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1938 * insdel.c (find_charsets_in_charc_string): Use
1940 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1941 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1942 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1943 (convert_charc_string_into_malloced_string): Likewise.
1945 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1947 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1948 instead of <Emchar_dynarr *> for buf; use
1949 `convert_bufbyte_string_into_charc_dynarr' instead of
1950 `convert_bufbyte_string_into_emchar_dynarr'; use
1951 `find_charsets_in_charc_string' instead of
1952 `find_charsets_in_emchar_string'.
1955 - Include "character.h".
1956 (struct rune): New member `cglyph'; delete member `chr'.
1958 * redisplay.c (redisplay_text_width_charc_string): New function;
1959 delete `redisplay_text_width_emchar_string'.
1960 (rtw_charc_dynarr): New variable; renamed from
1961 `rtw_emchar_dynarr'.
1962 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1963 `rtw_emchar_dynarr'; use
1964 `convert_bufbyte_string_into_charc_dynarr' instead of
1965 `convert_bufbyte_string_into_emchar_dynarr'; use
1966 `redisplay_text_width_charc_string' instead of
1967 `redisplay_text_width_emchar_string'.
1968 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1969 instead of `rtw_emchar_dynarr'; use
1970 `convert_bufbyte_string_into_charc_dynarr' instead of
1971 `convert_bufbyte_string_into_emchar_dynarr'.
1972 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1973 `redisplay_text_width_charc_string' instead of
1974 `redisplay_text_width_emchar_string'.
1975 (create_text_block): Modify for <struct rune> change.
1976 (generate_formatted_string_db): Likewise.
1977 (create_string_text_block): Likewise.
1978 (pixel_to_glyph_translation): Likewise.
1980 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1981 instead of <const Emchar *>.
1982 (x_text_width): Likewise.
1983 (x_output_display_block): Use <Charc_dynarr *> instead
1984 <Emchar_dynarr *>; modify for <structure rune> change.
1985 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1988 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1989 <const Emchar *>; use `charc_string_displayed_columns' instead of
1990 `emchar_string_displayed_columns'.
1991 (tty_output_display_block): Use <Charc_dynarr *> instead of
1992 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1993 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1994 (tty_output_charc_dynarr_dynarr): New variable; renamed from
1995 `tty_output_emchar_dynarr_dynarr'.
1996 (tty_output_charc_dynarr): New function; delete
1997 `tty_output_charc_dynarr'.
1999 * redisplay-output.c (compare_runes): Modify for `struct rune'.
2000 (redisplay_output_layout): Use <Charc_dynarr *> instead of
2001 <Emchar_dynarr *> for buf; use
2002 `convert_bufbyte_string_into_charc_dynarr' instead of
2003 `convert_bufbyte_string_into_emchar_dynarr'.
2005 * frame.c (title_string_charc_dynarr): New variable; renamed from
2006 `title_string_emchar_dynarr'.
2007 (generate_title_string): Use `title_string_charc_dynarr' instead
2008 of `title_string_emchar_dynarr'; use
2009 `convert_charc_string_into_malloced_string' instead of
2010 `convert_emchar_string_into_malloced_string'.
2011 (init_frame): Use `title_string_charc_dynarr' instead of
2012 `title_string_emchar_dynarr'.
2015 - Include "character.h".
2016 (struct console_methods): Use <const Charc *> instead of <const
2017 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2018 <Emchar_dynarr *> in output_string_method.
2020 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2023 * console-stream.c (stream_text_width): Use <const Charc *>
2024 instead of <const Emchar *>.
2026 * character.h (Charc_dynarr): New type.
2028 * char-ucs.h (structure Charc): New structure; define new type
2031 * char-lb.h (DECODE_CHAR): New inline function.
2032 (encode_char_1): New inline function.
2033 (ENCODE_CHAR): New macro.
2034 (structure Charc): New structure; define new type `Charc'.
2036 * char-1byte.h (Vcharset_control_1): New macro.
2037 (Vcharset_latin_iso8859_1): New macro.
2038 (DECODE_CHAR): New inline function.
2039 (encode_char_1): New inline function.
2040 (ENCODE_CHAR): New macro.
2041 (structure Charc): New structure; define new type `Charc'.
2043 * insdel.c (find_charsets_in_charc_string): New function; delete
2044 `find_charsets_in_emchar_string'.
2045 (charc_string_displayed_columns): New function; delete
2046 `emchar_string_displayed_columns'.
2047 (convert_bufbyte_string_into_charc_dynarr): New function; delete
2048 `convert_bufbyte_string_into_emchar_dynarr'.
2049 (convert_charc_string_into_bufbyte_dynarr): New function; delete
2050 `convert_charc_string_into_bufbyte_dynarr'.
2051 (convert_charc_string_into_malloced_string): New function; delete
2052 `convert_charc_string_into_malloced_string'.
2054 * buffer.h (find_charsets_in_charc_string): New prototype; delete
2055 `find_charsets_in_emchar_string'.
2056 (charc_string_displayed_columns): New prototype; delete
2057 `emchar_string_displayed_columns'.
2058 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2059 `convert_charc_string_into_bufbyte_dynarr'.
2060 (convert_charc_string_into_malloced_string): New prototype; delete
2061 `convert_charc_string_into_malloced_string'.
2063 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2065 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2067 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2069 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2071 * char-ucs.h: Use <short> for <Charset_ID>.
2073 * mule-charset.h, char-1byte.h: Use <unsigned char> for
2076 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2078 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2081 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2083 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2085 (Qmorohashi_daikanwa): New variable.
2086 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2087 for `morohashi-daikanwa' attribute.
2088 (Fget_char_attribute): Likewise.
2089 (Fput_char_attribute): Likewise.
2090 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2091 has the same value of `ideograph-daikanwa'.
2092 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2093 (vars_of_mule_charset): Setup
2094 `Vcharacter_morohashi_daikanwa_table'.
2096 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2098 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2100 (add_charset_to_list_mapper): Add `key' instead of
2101 `XCHARSET_NAME (value)' to return aliases.
2103 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2105 * mule-charset.c (Vcharacter_ideographic_radical_table): New
2107 (Vcharacter_ideographic_strokes_table): New variable.
2108 (Qideographic_radical): New variable.
2109 (Qideographic_strokes): New variable.
2110 (Fchar_attribute_alist): Use
2111 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2112 attribute; use `Vcharacter_ideographic_strokes_table' for
2113 `ideographic-strokes' attribute.
2114 (Fget_char_attribute): Likewise.
2115 (Fput_char_attribute): Likewise.
2116 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2117 `ideographic-strokes'.
2118 (vars_of_mule_charset): Setup
2119 `Vcharacter_ideographic_radical_table' and
2120 `Vcharacter_ideographic_strokes_table'.
2122 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2124 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2125 (Qtotal_strokes): New variable.
2126 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2127 `total-strokes' attribute.
2128 (Fget_char_attribute): Likewise.
2129 (Fput_char_attribute): Likewise.
2130 (syms_of_mule_charset): Add new symbol `total-strokes'.
2131 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2133 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2135 * mule-charset.c (Vcharacter_decomposition_table): New variable.
2136 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2138 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2139 `->decomposition' attribute.
2140 (Fput_char_attribute): Likewise.
2141 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2143 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2145 * mule-charset.c (decoding_table_check_elements): New function.
2146 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2148 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2150 * mule-charset.c (Fset_charset_mapping_table): Use
2151 `put_char_ccs_code_point'.
2153 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2155 * mule-charset.c (decoding_table_put_char): New inline function.
2156 (put_char_ccs_code_point): Use `decoding_table_put_char'.
2158 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2160 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2161 (XCHARSET_BYTE_SIZE): New macro.
2162 (decoding_table_remove_char): New inline function.
2163 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2164 `decoding_table_remove_char'.
2165 (remove_char_ccs): Use `decoding_table_remove_char'.
2166 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2168 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2170 * mule-charset.c (Vcharacter_name_table): New variable.
2171 (Qname): New variable.
2172 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2174 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2175 `Vcharacter_name_table' for `name' attribute.
2176 (Fremove_char_attribute): Use function `remove_char_ccs'.
2177 (put_char_ccs_code_point): New function.
2178 (remove_char_ccs): New function.
2179 (syms_of_mule_charset): Add new symbol `name'.
2180 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2182 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2184 * mule-charset.c (make_byte_table): Add new argument `older'.
2185 (make_char_id_table): Likewise.
2186 (copy_char_id_table): Comment out because it is not used.
2187 (put_char_id_table): Modify for `make_byte_table'.
2188 (Fput_char_attribute): Make encoding_table as older object;
2189 inherit older bit of `Vcharacter_composition_table'.
2190 (mark_charset): Don't mark `cs->encoding_table'.
2191 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2192 normal object; make `Vcharacter_composition_table' as an older
2193 object; delete staticpro for `Vcharacter_composition_table'; make
2194 `Vcharacter_variant_table' as a normal object.
2196 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2197 (mark_object): Don't check older object in UTF-2000.
2199 * lrecord.h (struct lrecord_header): Add new member `older' in
2201 (set_lheader_implementation): Setup `SLI_header->older' in
2203 (set_lheader_older_implementation): New macro in UTF-2000.
2204 (OLDER_RECORD_P): New macro in UTF-2000.
2205 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2206 (alloc_older_lcrecord): New prototype in UTF-2000.
2207 (alloc_older_lcrecord_type): New macro in UTF-2000.
2209 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2211 * mule-charset.c (byte_table_description): Use
2212 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2213 (char_id_table_description): Delete bogus `, 1'.
2214 (Fget_char_attribute): Refer encoding_table of each coded-charset
2215 to get value of coded-charset attribute of a character.
2216 (Fput_char_attribute): Use `make_older_vector' instead of
2217 `make_vector'; use encoding_table of each coded-charset to store
2218 value of coded-charset attribute of a character.
2219 (Fremove_char_attribute): Use encoding_table of each coded-charset
2220 to store value of coded-charset attribute of a character.
2221 (mark_charset): Mark `cs->encoding_table'; don't mark
2222 `cs->decoding_table'.
2223 (charset_description): Add description of new member
2225 (make_charset): Initialize `encoding_table'.
2227 * char-ucs.h (struct Lisp_Charset): Add new member
2229 (CHARSET_ENCODING_TABLE): New macro.
2230 (XCHARSET_ENCODING_TABLE): New macro.
2231 (charset_code_point): New implementation.
2232 (encode_char_1): Likewise.
2234 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2235 (disksave_object_finalization_1): Call finalizers of
2236 `all_older_lcrecords' in UTF-2000.
2237 (make_older_vector): New function in UTF-2000.
2238 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2241 * lisp.h (make_older_vector): New prototype in UTF-2000.
2243 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2245 * lrecord.h (enum lrecord_type): Rename
2246 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2248 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2249 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2250 `get_char_code_table'.
2252 * mule-charset.c (mark_char_id_table): Renamed from
2253 `mark_char_code_table'.
2254 (char_id_table_equal): Renamed from `char_code_table_equal'.
2255 (char_id_table_hash): Renamed from `char_code_table_hash'.
2256 (make_char_id_table): Renamed from `make_char_code_table'.
2257 (copy_char_id_table): Renamed from `copy_char_code_table'.
2258 (get_char_id_table): Renamed from `get_char_code_table'.
2259 (put_char_id_table): Renamed from `put_char_code_table'.
2260 (to_char_id): Renamed from `to_char_code'.
2262 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2263 `Lisp_Char_Code_Table'.
2264 (char_id_table): Renamed from `char_code_table'.
2265 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2266 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2267 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2268 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2269 (get_char_id_table): Renamed from `get_char_code_table'.
2271 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2273 * lrecord.h (enum lrecord_type): Rename
2274 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2276 * mule-charset.c (mark_byte_table): Renamed from
2277 `mark_char_byte_table'.
2278 (byte_table_equal): Renamed from `char_byte_table_equal'.
2279 (byte_table_hash): Renamed from `byte_table_hash'.
2280 (make_byte_table): Renamed from `make_byte_table'.
2281 (copy_byte_table): Renamed from `copy_char_byte_table'.
2283 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2284 `Lisp_Char_Byte_Table'.
2285 (byte_table): Renamed from `char_byte_table'.
2286 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2287 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2288 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2289 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2291 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2293 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2294 (dfc_convert_to_internal_format): Likewise.
2296 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2297 * text-coding.c (Fcoding_system_alias_p): New function.
2298 * text-coding.c (Fcoding_system_aliasee): New function.
2299 * text-coding.c (append_suffix_to_symbol): New function.
2300 * text-coding.c (dangling_coding_system_alias_p): New function.
2301 * text-coding.c (Ffind_coding_system):
2302 * text-coding.c (Fcopy_coding_system):
2303 * text-coding.c (encode_coding_no_conversion):
2304 * text-coding.c (syms_of_file_coding):
2305 * text-coding.c (vars_of_file_coding):
2306 Rewrite coding system alias code.
2307 Allow nested aliases, like symbolic links.
2308 Allow redefinition of coding system aliases.
2309 Prevent existence of dangling coding system aliases.
2310 Eliminate convert_to_external_format.
2311 Eliminate convert_to_internal_format.
2313 * text-coding.c: Change enum eol_type to eol_type_t.
2315 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2317 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2318 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2320 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2321 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2323 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2325 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2326 `ideograph-daikanwa'.
2328 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2329 (Vcharset_ucs_bmp): Likewise.
2330 (Vcharset_mojikyo): Add new extern variable definition.
2331 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2332 (Vcharset_latin_iso8859_3): Likewise.
2333 (Vcharset_latin_iso8859_4): Likewise.
2334 (Vcharset_latin_iso8859_9): Likewise.
2335 (Vcharset_latin_viscii_lower): Likewise.
2336 (Vcharset_latin_viscii_upper): Likewise.
2337 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2338 `mojikyo' code-point is used to decode.
2339 (encode_char_2): New function [to convert `mojikyo' code-point to
2340 Mojikyo font encoding].
2341 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2342 (breakup_char_1): Likewise.
2343 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2345 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2347 * text-coding.c (Fmake_coding_system): Add document about
2348 `disable-composition' property.
2350 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2352 * text-coding.c (Qdisable_composition): New variable; delete
2354 (Fmake_coding_system): Add new property `disable-composite';
2355 delete property `composite'.
2356 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2357 instead of `!CODING_SYSTEM_COMPOSITE'.
2358 (syms_of_file_coding): Add new symbol `disable-composition';
2359 delete symbol `composite'.
2361 * file-coding.h (struct Lisp_Coding_System): Add
2362 `disable_composition'; delete `enable_composition'.
2363 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2364 `CODING_SYSTEM_COMPOSITE'.
2365 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2366 `XCODING_SYSTEM_COMPOSITE'.
2368 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2370 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2373 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2375 * text-coding.c (Qcomposite): New variable.
2376 (Fmake_coding_system): Add new property `composite'.
2377 (struct decoding_stream): Add `combined_char_count',
2378 `combined_chars' and `combining_table' in UTF-2000.
2379 (COMPOSE_FLUSH_CHARS): New macro.
2380 (COMPOSE_ADD_CHAR): New macro.
2381 (reset_decoding_stream): Reset `str->combined_char_count' and
2382 `str->combining_table' in UTF-2000.
2383 (decode_coding_iso2022): Modify for character-decomposition.
2384 (syms_of_file_coding): Add new symbol `composite'.
2386 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2388 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2389 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2390 of `Vcharacter_composition_table' if `->decomposition' property
2392 (Qlatin_tcvn5712): New variable.
2393 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2394 (complex_vars_of_mule_charset): Add new coded-charset
2397 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2399 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2401 * file-coding.h (struct Lisp_Coding_System): Add
2402 `enable_composition'.
2403 (CODING_SYSTEM_COMPOSITE): New macro.
2404 (XCODING_SYSTEM_COMPOSITE): New macro.
2406 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2408 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2410 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2412 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2413 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2415 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2417 * mule-charset.c (Vcharset_mojikyo): New variable.
2418 (Fdefine_char): Don't use coded-charset which does not have
2419 non-builtin character range to allocate character-id.
2420 (Qmojikyo): New variable.
2421 (syms_of_mule_charset): Add new symbol `mojikyo'.
2422 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2424 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2425 (LEADING_BYTE_MOJIKYO): New macro.
2426 (MIN_CHAR_MOJIKYO): New macro.
2427 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2428 (MAX_CHAR_MOJIKYO): New macro.
2430 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2432 * mule-charset.c (remove_char_attribute): Fixed.
2434 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2436 * mule-charset.c (remove_char_attribute): New function.
2437 (Fremove_char_attribute): New function.
2438 (encode_builtin_char_1): Comment out builtin-support for
2439 greek-iso8859-7 and cyrillic-iso8859-5.
2440 (Fdecode_char): Check `code' is an integer.
2441 (syms_of_mule_charset): Add `remove-char-attribute'.
2442 (MIN_CHAR_GREEK): Deleted.
2443 (MAX_CHAR_GREEK): Likewise.
2444 (MIN_CHAR_CYRILLIC): Likewise.
2445 (MAX_CHAR_CYRILLIC): Likewise.
2446 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2447 MAX_CHAR_GREEK for `greek-iso8859-7'.
2449 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2450 (MAX_CHAR_GREEK): Likewise.
2451 (MIN_CHAR_CYRILLIC): Likewise.
2452 (MAX_CHAR_CYRILLIC): Likewise.
2454 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2456 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2457 format is used without `ucs' property.
2458 (Fdecode_char): Fix problem with GR representation.
2459 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2460 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2462 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2464 * mule-charset.c (make_builtin_char): New function.
2465 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2466 (Fset_charset_mapping_table): Modify for new representation of
2468 (Fdecode_char): New function.
2469 (syms_of_mule_charset): Add new builtin function `decode-char' in
2472 * char-ucs.h (make_builtin_char): New prototype.
2473 (DECODE_CHAR): New inline function.
2474 (MAKE_CHAR): Use `DECODE_CHAR'.
2476 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2478 * text-coding.c (parse_charset_conversion_specs): Use
2479 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2481 (iso2022_designate): Likewise.
2483 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2484 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2486 * mule-charset.c (Vcharset_ucs): New variable.
2487 (print_charset): Change design; use `CHARSET_CHARS' and
2488 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2489 (make_charset): Change signature to specify `chars' and
2490 `dimension' instead of `type'.
2491 (range_charset_code_point): Modify for 256^n-set.
2492 (encode_builtin_char_1): Encode as `ucs' in default.
2493 (Fmake_charset): Modify for `make_charset'.
2494 (Fmake_reverse_direction_charset): Likewise.
2495 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2497 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2500 * char-ucs.h (Vcharset_ucs): New variable.
2501 (LEADING_BYTE_UCS): New macro.
2502 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2503 and `chars' to `unsigned short' from `unsigned int'.
2504 (CHARSET_TYPE): Deleted.
2505 (XCHARSET_TYPE): Deleted.
2507 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2509 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2511 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2512 (ENCODE_CHAR): New macro.
2514 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2516 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2517 to 0.14 (Kawachi-Katakami).
2519 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2521 * text-coding.c (char_encode_shift_jis): Modify for
2522 `charset_code_point'.
2523 (char_encode_iso2022): Likewise.
2525 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2526 (integer) instead of list of <Lisp_Object>s (integers) as the
2527 format of code-point of a coded-charset.
2528 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2529 (encode_builtin_char_1): New function; delete
2530 `split_builtin_char'.
2531 (charset_code_point): Return <int> instead of <Lisp_Object>.
2532 (Fsplit_char): Don't use `SPLIT_CHAR'.
2534 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2535 prototype for `split_builtin_char'.
2536 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2537 (charset_code_point): Likewise.
2538 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2539 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2541 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2543 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2544 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2546 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2548 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2550 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2551 (MAX_CHAR_OBS_94x94): Deleted.
2553 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2555 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2557 * char-ucs.h (MAX_CHAR_BMP): New macro.
2559 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2561 * text-coding.c: Sync with r21-2-24.
2563 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2565 * file-coding.c: Modify for UTF-2000.
2567 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2569 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2572 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2574 * mule-charset.c (split_builtin_char): Delete builtin support for
2575 `katakana-jisx0201'.
2576 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2577 BMP area in builtin representation.
2579 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2580 `Vcharset_katakana_jisx0201'.
2582 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2584 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2585 (Qisolated): New variable.
2586 (Qinitial): New variable.
2587 (Qmedial): New variable.
2588 (Qfinal): New variable.
2589 (Qvertical): New variable.
2590 (Qsmall): New variable.
2591 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2592 `Qvertical' and `Qsmall'.
2593 (Qmojikyo_pj_[1 .. 21]): New variable.
2594 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2595 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2596 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2599 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2601 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2602 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2603 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2605 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2607 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2608 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2610 (Qjapanese_jisx0208_1990): New variable.
2611 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2612 (complex_vars_of_mule_charset): Add new coded-charset
2613 `japanese-jisx0208-1990'.
2615 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2616 (MIN_CHAR_JIS_X0208_1990): New macro.
2617 (MAX_CHAR_JIS_X0208_1990): New macro.
2619 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2621 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2622 coded-charset is not found.
2624 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2626 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2627 (Fdefine_char): Use `Fmake_char'.
2629 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2631 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2632 (Vcharset_hiragana_jisx0208): Deleted.
2633 (Vcharset_katakana_jisx0208): Deleted.
2634 (Qideograph_daikanwa): New variable.
2635 (Qhiragana_jisx0208): Deleted.
2636 (Qkatakana_jisx0208): Deleted.
2637 (split_builtin_char): Split `ideograph-daikanwa'.
2638 (Fsplit_char): New implementation for UTF-2000.
2639 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2640 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2641 (complex_vars_of_mule_charset): Add new coded-charset
2642 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2643 `katakana-jisx0208'.
2645 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2646 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2647 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2648 (MIN_CHAR_DAIKANWA): New macro.
2649 (MAX_CHAR_DAIKANWA): New macro.
2651 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2653 * data.c (Fstring_to_number): Don't recognize floating point if
2656 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2658 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2660 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2662 * mule-charset.c (Qsquare): New variable.
2663 (to_char_code): Add `Qsquare'.
2664 (syms_of_mule_charset): Add new symbol `square'.
2666 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2668 * mule-charset.c (Qcircle): New variable.
2669 (to_char_code): Add `Qcircle'.
2670 (syms_of_mule_charset): Add new symbol `circle'.
2672 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2674 * mule-charset.c (Qfont): New variable.
2675 (to_char_code): Add `Qfont'.
2676 (syms_of_mule_charset): Add new symbol `font'.
2678 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2680 * mule-charset.c (Qsub): New variable.
2681 (to_char_code): Add `Qsub'.
2682 (syms_of_mule_charset): Add new symbol `sub'.
2684 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2686 * mule-charset.c (Fput_char_attribute): Convert each element of
2687 VALUE to GL position if ATTRIBUTE is a GR-set,
2689 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2691 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2692 coded-charset is a GR-set.
2694 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2696 * mule-charset.c (Fput_char_attribute): Check each element of
2697 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2699 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2701 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2703 (Qethiopic_ucs): New variable in UTF-2000.
2704 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2705 (complex_vars_of_mule_charset): Add new coded-charset
2706 `ethiopic-ucs' in UTF-2000.
2708 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2709 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2711 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2713 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2715 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2717 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2720 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2722 * mule-charset.c (Vcharacter_variant_table): New variable.
2723 (Q_ucs): New variable.
2724 (Fchar_variants): New function.
2725 (Fput_char_attribute): Register `->ucs' value to
2726 `Vcharacter_variant_table'.
2727 (syms_of_mule_charset): Add new function `char-variants' and new
2729 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2731 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2733 * mule-charset.c (get_char_code_table): Allow negative character
2735 (put_char_code_table): Likewise.
2736 (Vcharacter_composition_table): New variable.
2737 (Q_decomposition): New variable.
2738 (Qwide): New variable.
2739 (Qnarrow): New variable.
2740 (Qcompat): New variable.
2741 (QnoBreak): New variable.
2742 (Qsuper): New variable.
2743 (Qfraction): New variable.
2744 (to_char_code): New function.
2745 (Fget_composite_char): New function.
2746 (Fput_char_attribute): Register `->decomposition' value to
2747 `Vcharacter_composition_table'.
2748 (syms_of_mule_charset): Add new function `get-composite-char', new
2749 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2750 `super' and `fraction'.
2751 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2753 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2755 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2756 character; copy the return value.
2758 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2760 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2762 * mule-charset.c (range_charset_code_point): Must use make_int.
2763 (split_builtin_char): New function.
2765 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2767 * mule-charset.c (char_byte_table): Change name from
2768 "char-code-table" to "char-byte-table".
2769 (mark_char_code_table): New function.
2770 (char_code_table_equal): New function.
2771 (char_code_table_hash): New function.
2772 (char_code_table_description): New constant.
2773 (char_code_table): New type.
2774 (make_char_code_table): New function.
2775 (copy_char_code_table): New function.
2776 (get_char_code_table): Modify for `char_code_table' type.
2777 (put_char_code_table): Likewise.
2778 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2781 * char-ucs.h (char_code_table): New type.
2782 (XCHAR_CODE_TABLE): New macro.
2783 (XSETCHAR_CODE_TABLE): New macro.
2784 (CHAR_CODE_TABLE_P): New macro.
2785 (GC_CHAR_CODE_TABLE_P): New macro.
2786 (struct Lisp_Char_Code_Table): New structure.
2788 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2790 * mule-charset.c (Fmake_charset): Setup byte_offset for
2793 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2795 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2798 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2800 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2803 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2805 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2806 charset, it is regarded as a charset.
2807 (put_char_attribute): New function in UTF-2000.
2808 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2809 charset, mapping-table of the charset is modified.
2810 (Fdefine_char): New function in UTF-2000.
2811 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2812 `Fput_char_attribute'.
2813 (syms_of_mule_charset): Add new function `define-char' and new
2814 symbol `ucs' in UTF-2000.
2815 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2817 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2819 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2820 non-UTF-2000 configuration.
2822 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2824 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2825 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2827 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2829 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2830 (Fset_charset_mapping_table): Likewise.
2832 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2833 (CHARSET_ENCODING_TABLE): Delete.
2834 (XCHARSET_ENCODING_TABLE): Delete.
2835 (charset_code_point): New interface.
2837 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2839 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2840 instead of `charset_get_byte1' and `charset_get_byte2'.
2842 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2843 (charset_get_byte2): Deleted.
2845 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2847 * char-ucs.h (SPLIT_CHAR): New inline function.
2848 (breakup_char_1): Use `SPLIT_CHAR'.
2850 * mule-charset.c (range_charset_code_point): New function.
2851 (charset_code_point): New function.
2853 * char-ucs.h (range_charset_code_point): New interface.
2854 (breakup_char_1): Use `range_charset_code_point'.
2856 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2858 * mule-charset.c (Fmake_charset): Delete unused local variable
2861 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2862 (breakup_char_1): Find a charset and code-point in
2863 `Vcharacter_attribute_table'.
2865 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2867 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2870 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2872 * mule-charset.c (Vcharacter_attribute_table): New variable.
2873 (Fchar_attribute_alist): New function.
2874 (Fget_char_attribute): New function.
2875 (Fput_char_attribute): New function.
2876 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2878 (syms_of_mule_charset): Add new function `char-attribute-alist',
2879 `get-char-attribute' and `put-char-attribute'.
2880 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2882 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
2884 * mule-charset.c (Fmake_charset): Just use
2885 `get_unallocated_leading_byte'.
2887 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2888 sets; don't use final-byte based number for private sets.
2890 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2892 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2895 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2897 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2900 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2902 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2903 of `CHAR_LEADING_BYTE' in UTF-2000.
2905 * insdel.c (find_charsets_in_bufbyte_string): Use
2906 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2907 (find_charsets_in_emchar_string): Likewise.
2909 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2910 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2912 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2913 (CHAR_CHARSET_ID): New macro.
2915 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2917 * chartab.c (get_char_table): Don't use type `Charset_ID' for
2918 charset-id - MIN_LEADING_BYTE.
2919 (put_char_table): Likewise.
2921 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2923 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2924 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2925 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2926 (CHARSET_ID_OFFSET): New macro.
2927 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2928 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2929 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2930 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2932 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2934 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2935 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2936 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2937 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2938 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2940 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2942 * mule-charset.c (next_allocated_leading_byte): New variable in
2944 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2945 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2946 (get_unallocated_leading_byte): Simply use
2947 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2948 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2951 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2952 (MAX_LEADING_BYTE_PRIVATE): New macro.
2953 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2954 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2956 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2958 * mule-charset.c (Fmake_charset): Allocate final-byte based
2959 charset-id for 94-set, 96-set and 94x94-set.
2961 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2963 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2965 (Fmake_charset): Likewise.
2966 (complex_vars_of_mule_charset): Modify the font registry of
2967 `ucs-bmp' not to match `Ethiopic-Unicode'.
2969 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2971 * mule-charset.c (complex_vars_of_mule_charset): Add font
2972 registory of `ucs-bmp'.
2974 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2976 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2977 coded-charsets in `default-coded-charset-priority-list' when
2978 breaking up a character.
2980 * mule-charset.c (Vcharset_latin_viscii): New variable.
2981 (Qlatin_viscii): New variable.
2982 (make_charset): Don't use `decoding_table'.
2983 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2985 (Fset_charset_mapping_table): New implementation.
2986 (syms_of_mule_charset): Add new symbol `latin-viscii'.
2987 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2988 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2989 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2990 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2991 charset `latin_viscii'.
2993 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2994 (CHARSET_TYPE_94X94): Change to 1 from 2.
2995 (CHARSET_TYPE_96): Change to 2 from 1.
2996 (CHARSET_TYPE_128): New macro.
2997 (CHARSET_TYPE_128X128): Change to 5 from 4.
2998 (CHARSET_TYPE_256): New macro.
2999 (CHARSET_TYPE_256X256): Change to 7 from 5.
3000 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3002 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3004 * text-coding.c (char_encode_shift_jis): Refer
3005 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3006 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3008 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3009 (char_byte_table_equal): New function in UTF-2000.
3010 (char_byte_table_hash): New function in UTF-2000.
3011 (char_byte_table_description): New constant in UTF-2000.
3012 (char_byte_table): New type in UTF-2000.
3013 (make_char_byte_table): New function in UTF-2000.
3014 (copy_char_byte_table): New function in UTF-2000.
3015 (make_char_code_table): New macro in UTF-2000.
3016 (get_char_code_table): New function in UTF-2000.
3017 (put_char_code_table): New function in UTF-2000.
3018 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3019 (charset_description): Add setting in UTF-2000.
3020 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3021 `CHARSET_TO_BYTE1_TABLE(cs)'.
3022 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3023 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3024 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3025 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3026 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3027 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3028 `CHARSET_TO_BYTE2_TABLE(cs)'.
3030 * char-ucs.h (char_byte_table): New type.
3031 (XCHAR_BYTE_TABLE): New macro.
3032 (XSETCHAR_BYTE_TABLE): New macro.
3033 (CHAR_BYTE_TABLE_P): New macro.
3034 (GC_CHAR_BYTE_TABLE_P): New macro.
3035 (struct Lisp_Char_Byte_Table): New structure.
3036 (get_char_code_table): New interface.
3037 (Emchar_to_byte_table): Deleted.
3038 (get_byte_from_character_table): Deleted.
3039 (struct Lisp_Charset): Add `encoding_table'; delete
3040 `to_byte1_table' and `to_byte2_table'.
3041 (CHARSET_ENCODING_TABLE): New macro.
3042 (CHARSET_TO_BYTE1_TABLE): Deleted.
3043 (CHARSET_TO_BYTE2_TABLE): Deleted.
3044 (XCHARSET_ENCODING_TABLE): New macro.
3045 (XCHARSET_TO_BYTE1_TABLE): Deleted.
3046 (XCHARSET_TO_BYTE2_TABLE): Deleted.
3048 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3050 * mule-charset.c (syms_of_mule_charset): Delete charset alias
3051 `vietnamese-viscii-*'.
3053 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3055 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3056 (Qvietnamese_viscii_upper): New variable.
3057 (Fdefine_charset_alias): New function.
3058 (syms_of_mule_charset): Add new function `define-charset-alias'.
3059 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3060 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3063 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
3065 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3066 (MAX_CHAR_OBS_94x94): New macro.
3067 (breakup_char_1): Support obsolete XEmacs-UCS private code space
3070 * mule-charset.c (put_byte_from_character_table): Change unit size
3072 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3074 (Fmake_reverse_direction_charset): Modify dummy argument of
3075 `make_charset' for non-UTF-2000 environment.
3077 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3079 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3081 * mule-charset.c (destroy_byte_from_character_table): New macro.
3082 (latin_jisx0201_to_ucs): Deleted.
3083 (latin_iso8859_2_to_ucs): Deleted.
3084 (latin_iso8859_3_to_ucs): Deleted.
3085 (latin_iso8859_4_to_ucs): Deleted.
3086 (latin_iso8859_9_to_ucs): Deleted.
3087 (latin_viscii_lower_to_ucs): Deleted.
3088 (latin_viscii_upper_to_ucs): Deleted.
3089 (mark_charset): Mark `cs->decoding_table'.
3090 (Fcharset_mapping_table): Fix DOC-string.
3091 (Fset_charset_mapping_table): New function.
3092 (syms_of_mule_charset): Add nwe function
3093 `set-charset-mapping-table'.
3094 (complex_vars_of_mule_charset): Don't setup and use
3097 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
3099 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3102 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
3104 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3105 (Vcharset_katakana_jisx0208): New variable.
3106 (Qhiragana_jisx0208): New variable.
3107 (Qkatakana_jisx0208): New variable.
3108 (make_charset): Add new argument `byte_offset'.
3109 (charset_get_byte1): Modify for new coded-charset definition; use
3110 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3111 `XCHARSET_BYTE_OFFSET'.
3112 (Fmake_charset): Modify for `make_charset'.
3113 (Fmake_reverse_direction_charset): Likewise.
3114 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3115 `katakana-jisx0208'.
3116 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3117 `.' in font registry of charset `katakana-jisx0201',
3118 `latin-jisx0201', `vietnamese-viscii-lower' and
3119 `vietnamese-viscii-upper'; modify DOC-string of charset
3120 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3121 registry of charset `japanese-jisx0208' not to use font for JIS
3122 X0208:1990; add new charset `hiragana-jisx0208' and
3123 `katakana-jisx0208'.
3125 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3126 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3127 (struct Lisp_Charset): Add `byte_offset'.
3128 (CHARSET_BYTE_OFFSET): New macro.
3129 (XCHARSET_UCS_MIN): New macro.
3130 (XCHARSET_UCS_MAX): New macro.
3131 (XCHARSET_CODE_OFFSET): New macro.
3132 (XCHARSET_BYTE_OFFSET): New macro.
3133 (MIN_CHAR_HIRAGANA): New macro.
3134 (MAX_CHAR_HIRAGANA): New macro.
3135 (MIN_CHAR_KATAKANA): New macro.
3136 (MAX_CHAR_KATAKANA): New macro.
3137 (MAKE_CHAR): Modify for new coded-charset definition; use
3138 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3139 `XCHARSET_BYTE_OFFSET'.
3141 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3143 * mule-charset.c (CHAR96): Deleted.
3144 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3146 (latin_iso8859_2_to_ucs): Likewise.
3147 (latin_iso8859_3_to_ucs): Likewise.
3148 (latin_iso8859_4_to_ucs): Likewise.
3149 (latin_iso8859_9_to_ucs): Likewise.
3150 (latin_viscii_lower_to_ucs): Likewise.
3151 (latin_viscii_upper_to_ucs): Likewise.
3152 (latin_tcvn5712_to_ucs): Commented out.
3153 (make_charset): Change type of argument `decoding_table' from
3154 <Emchar*> to <Lisp_Object> [vector of characters].
3155 (Fmake_charset): Modify for `make_charset'.
3156 (Fmake_reverse_direction_charset): Likewise.
3157 (Fcharset_mapping_table): New function in UTF-2000.
3158 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3160 (complex_vars_of_mule_charset): Modify for type change of
3161 `*_to_ucs'; modify for `make_charset'.
3163 * char-ucs.h (struct Lisp_Charset): Change type of
3164 `decoding_table' from <Emchar*> to <Lisp_Object>.
3165 (MAKE_CHAR): Modify for new specification of `decoding_table'.
3167 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3169 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3170 error with non-UTF-2000-Mule.
3172 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
3174 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3176 (Vcharset_chinese_cns11643_4): Likewise.
3177 (Vcharset_chinese_cns11643_5): Likewise.
3178 (Vcharset_chinese_cns11643_6): Likewise.
3179 (Vcharset_chinese_cns11643_7): Likewise.
3180 (Qchinese_cns11643_3): Likewise.
3181 (Qchinese_cns11643_4): Likewise.
3182 (Qchinese_cns11643_5): Likewise.
3183 (Qchinese_cns11643_6): Likewise.
3184 (Qchinese_cns11643_7): Likewise.
3185 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3186 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3187 and `chinese-cns11643-7' to lisp/mule/chinese.el.
3188 (complex_vars_of_mule_charset): Likewise.
3190 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3192 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3194 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3195 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3197 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3199 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3201 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3202 (breakup_char_1): Likewise.
3204 * text-coding.c (char_encode_iso2022): Keep designated charsets if
3205 one of them includes the specified character.
3207 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3209 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3211 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3213 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3215 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3217 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3218 definition for non-UTF-2000 Mule.
3219 (latin_iso8859_3_to_ucs): Likewise.
3220 (latin_iso8859_4_to_ucs): Likewise.
3221 (latin_iso8859_9_to_ucs): Likewise.
3222 (latin_jisx0201_to_ucs): Likewise.
3223 (MIN_CHAR_THAI): Likewise.
3224 (MAX_CHAR_THAI): Likewise.
3225 (MIN_CHAR_GREEK): Likewise.
3226 (MAX_CHAR_GREEK): Likewise.
3227 (MIN_CHAR_HEBREW): Likewise.
3228 (MAX_CHAR_HEBREW): Likewise.
3229 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3230 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3231 (MIN_CHAR_CYRILLIC): Likewise.
3232 (MAX_CHAR_CYRILLIC): Likewise.
3234 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3236 * char-ucs.h (breakup_char_1): Use
3237 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3238 thai-tis620 and katakana-jisx0201 area.
3240 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3242 * char-ucs.h (breakup_char_1): Use
3243 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3246 * text-coding.c (reset_encoding_stream): Fixed.
3247 (char_encode_ucs4): Delete `& 255'.
3249 * char-ucs.h (breakup_char_1): Use
3250 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3252 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3254 * file-coding.c (Fmake_coding_system): Don't set up
3255 `codesys->fixed.size'.
3256 (encode_coding_no_conversion): Don't refer
3257 `str->codesys->fixed.size'.
3259 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3261 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3262 (latin_a_char_to_byte1): Deleted.
3263 (latin_a_char_to_byte2): Deleted.
3265 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3267 * mule-charset.c (make_charset): Add new argument `ucs_min',
3268 `ucs_max' and `code_offset'.
3269 (charset_get_byte1): New implementation [delete specific charset
3270 depended implementations].
3271 (Fmake_charset): Modify for `make_charset'.
3272 (Fmake_reverse_direction_charset): Likewise.
3273 (complex_vars_of_mule_charset): Likewise.
3275 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3277 (CHARSET_UCS_MIN): New macro.
3278 (CHARSET_UCS_MAX): New macro.
3279 (CHARSET_CODE_OFFSET): New macro.
3280 (MAKE_CHAR): Delete charset depended definitions [except
3283 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3285 * char-ucs.h (breakup_char_1): Use
3286 `Vdefault_coded_charset_priority_list' for C0-Controls,
3287 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3289 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3291 * char-ucs.h (charset_get_byte1): New function.
3292 (XCHARSET_GET_BYTE1): Deleted.
3293 (charset_get_byte2): New function.
3294 (XCHARSET_GET_BYTE2): Deleted.
3295 (Vdefault_coded_charset_priority_list): New external variable.
3296 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3297 `Vdefault_preferred_coded_charset_list'.
3299 * mule-charset.c (charset_get_byte1): New function.
3300 (charset_get_byte2): New function.
3301 (Vdefault_coded_charset_priority_list): New variable.
3302 (vars_of_mule_charset): Add new variable
3303 `default-coded-charset-priority-list'.
3305 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3307 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3308 (XCHARSET_GET_BYTE2): New inline function.
3309 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3310 `XCHARSET_GET_BYTE2'.
3312 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3314 * mule-charset.c (make_charset): Initialize
3315 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3316 NULL if table is not defined.
3318 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3320 * text-coding.c (char_encode_shift_jis): Use
3321 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3322 `ucs_to_latin_jisx0201'.
3324 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3325 (ucs_to_latin_iso8859_2): Deleted.
3326 (ucs_to_latin_iso8859_3): Deleted.
3327 (ucs_to_latin_iso8859_4): Deleted.
3328 (ucs_to_latin_iso8859_9): Deleted.
3329 (ucs_to_latin_viscii_lower): Deleted.
3330 (ucs_to_latin_viscii_upper): Deleted.
3331 (ucs_to_latin_tcvn5712): Deleted.
3332 (make_charset): Add new argument `decoding_table'; set up
3333 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3334 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3335 `decoding_table' is defined in UTF-2000.
3336 (Fmake_charset): Modify for `make_charset'.
3337 (Fmake_reverse_direction_charset): Likewise.
3338 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3339 and `GENERATE_96_SET'.
3341 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3342 (ucs_to_latin_jisx0201): Deleted.
3343 (latin_iso8859_2_to_ucs): Deleted.
3344 (ucs_to_latin_iso8859_2): Deleted.
3345 (latin_iso8859_3_to_ucs): Deleted.
3346 (ucs_to_latin_iso8859_3): Deleted.
3347 (latin_iso8859_4_to_ucs): Deleted.
3348 (ucs_to_latin_iso8859_4): Deleted.
3349 (latin_iso8859_9_to_ucs): Deleted.
3350 (ucs_to_latin_iso8859_9): Deleted.
3351 (latin_viscii_lower_to_ucs): Deleted.
3352 (ucs_to_latin_viscii_lower): Deleted.
3353 (latin_viscii_upper_to_ucs): Deleted.
3354 (ucs_to_latin_viscii_upper): Deleted.
3355 (struct Lisp_Charset): Renamed `encoding_table' to
3356 `to_byte1_table'; add `to_byte2_table'.
3357 (CHARSET_DECODING_TABLE): New macro.
3358 (CHARSET_TO_BYTE1_TABLE): New macro.
3359 (CHARSET_TO_BYTE2_TABLE): New macro.
3360 (XCHARSET_DECODING_TABLE): New macro.
3361 (XCHARSET_TO_BYTE1_TABLE): New macro.
3362 (XCHARSET_TO_BYTE2_TABLE): New macro.
3363 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3365 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3366 don't use `ucs_to_*' tables.
3368 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3370 * text-coding.c (Fmake_coding_system): Don't set up
3371 `codesys->fixed.size'.
3372 (encode_coding_no_conversion): Use `if' instead of `switch'.
3374 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3376 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3378 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3379 (Fmake_charset): Modify for `make_charset'.
3380 (Fmake_reverse_direction_charset): Likewise.
3381 (complex_vars_of_mule_charset): Likewise.
3383 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3385 * text-coding.c (char_encode_shift_jis): Use table
3386 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3388 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3390 * text-coding.c (text_encode_generic): Use `if' instead of
3392 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3395 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3397 * text-coding.c (encode_coding_sjis): Deleted.
3398 (char_encode_shift_jis): New function.
3399 (char_finish_shift_jis): New function.
3400 (reset_encoding_stream): Set up `encode_char' and `finish' for
3401 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3402 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3403 (char_encode_utf8): Treat `eol_type'.
3405 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3407 * file-coding.c (decode_coding_iso2022): Use
3408 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3410 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3412 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3415 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3417 * char-lb.h (CHAR_COLUMNS): New macro.
3419 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3421 * text-coding.c (char_encode_ucs4): New function.
3422 (char_finish_ucs4): New function.
3423 (encode_coding_ucs4): Deleted.
3424 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3425 (text_encode_generic): Delete local variable `charset' and `half'.
3426 (ucs_to_mule_table): Deleted.
3427 (mule_to_ucs_table): Deleted.
3428 (Fset_ucs_char): Deleted.
3429 (ucs_to_char): Deleted.
3430 (Fucs_char): Deleted.
3431 (Fset_char_ucs): Deleted.
3432 (Fchar_ucs): Deleted.
3433 (decode_ucs4): Deleted.
3434 (mule_char_to_ucs4): Deleted.
3435 (encode_ucs4): Deleted.
3436 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3437 (decode_coding_utf8): Likewise.
3438 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3439 (char_encode_iso2022): Fixed.
3440 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3441 `Fset_char_ucs' and `Fchar_ucs'.
3442 (complex_vars_of_file_coding): Don't initialize
3443 `ucs_to_mule_table'.
3445 * objects-tty.c (tty_initialize_font_instance): Don't use
3448 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3451 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3452 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3454 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3455 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3456 (emchar_string_displayed_columns): Likewise.
3458 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3459 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3460 (string_column_at_point): Likewise.
3461 (Fmove_to_column): Likewise.
3463 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3464 `encoding_table' and `decoding_table'.
3465 (CHARSET_REP_BYTES): Deleted.
3466 (XCHARSET_REP_BYTES): Deleted.
3467 (XCHARSET_COLUMNS): Deleted.
3468 (CHAR_COLUMNS): New macro.
3469 (lookup_composite_char): Deleted unconditionally.
3470 (composite_char_string): Likewise.
3472 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3474 * char-ucs.h (Emchar_to_byte_table): New type.
3475 (get_byte_from_character_table): New function interface.
3476 (Vcharset_latin_jisx0201): New variable.
3477 (latin_jisx0201_to_ucs): New variable.
3478 (ucs_to_latin_jisx0201): New variable.
3479 (Vcharset_latin_iso8859_2): New variable.
3480 (latin_iso8859_2_to_ucs): New variable.
3481 (ucs_to_latin_iso8859_2): New variable.
3482 (Vcharset_latin_iso8859_3): New variable.
3483 (latin_iso8859_3_to_ucs): New variable.
3484 (ucs_to_latin_iso8859_3): New variable.
3485 (Vcharset_latin_iso8859_4): New variable.
3486 (latin_iso8859_4_to_ucs): New variable.
3487 (ucs_to_latin_iso8859_4): New variable.
3488 (Vcharset_latin_iso8859_9): New variable.
3489 (latin_iso8859_9_to_ucs): New variable.
3490 (ucs_to_latin_iso8859_9): New variable.
3491 (Vcharset_latin_viscii_lower): New variable.
3492 (latin_viscii_lower_to_ucs): New variable.
3493 (ucs_to_latin_viscii_lower): New variable.
3494 (Vcharset_latin_viscii_upper): New variable.
3495 (latin_viscii_upper_to_ucs): New variable.
3496 (ucs_to_latin_viscii_upper): New variable.
3497 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3498 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3499 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3500 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3501 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3502 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3503 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3504 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3505 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3506 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3508 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3509 (Vcharset_latin_viscii_upper): New variable.
3510 (make_byte_from_character_table): New function.
3511 (put_byte_from_character_table): New function.
3512 (get_byte_from_character_table): New function.
3513 (CHAR96): New macro.
3514 (ucs_to_latin_jisx0201): New variable.
3515 (latin_jisx0201_to_ucs): New variable.
3516 (ucs_to_latin_iso8859_2): New variable.
3517 (latin_iso8859_2_to_ucs): New variable.
3518 (ucs_to_latin_iso8859_3): New variable.
3519 (latin_iso8859_3_to_ucs): New variable.
3520 (ucs_to_latin_iso8859_4): New variable.
3521 (latin_iso8859_4_to_ucs): New variable.
3522 (ucs_to_latin_iso8859_9): New variable.
3523 (latin_iso8859_9_to_ucs): New variable.
3524 (ucs_to_latin_viscii_lower): New variable.
3525 (latin_viscii_lower_to_ucs): New variable.
3526 (ucs_to_latin_viscii_upper): New variable.
3527 (latin_viscii_upper_to_ucs): New variable.
3528 (ucs_to_latin_tcvn5712): New variable.
3529 (latin_tcvn5712_to_ucs): New variable.
3530 (Qlatin_viscii_lower): New variable.
3531 (Qlatin_viscii_upper): New variable.
3532 (syms_of_mule_charset): Set up new symbol
3533 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3534 (complex_vars_of_mule_charset): Set up new charset
3535 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3536 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3537 `ucs_to_<CHARSET>' tables.
3539 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3541 * text-coding.c: New file.
3543 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3545 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3547 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3548 (MAKE_CHAR): Modify for `ucs-bmp'.
3549 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3550 non-MULE characters of BMP.
3552 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3554 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3557 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3560 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3561 - Include character.h for `CHAR_ASCII_P'.
3563 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3565 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3566 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3568 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3569 (BYTE_C0_P): Likewise.
3570 (BYTE_C1_P): Likewise.
3571 (Lstream_get_emchar_1): Likewise.
3572 (Lstream_fput_emchar): Likewise.
3573 (Lstream_funget_emchar): Likewise.
3574 (copy_internal_to_external): Likewise.
3575 (copy_external_to_internal): Likewise.
3577 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3578 (BYTE_C0_P): Likewise.
3579 (BYTE_C1_P): Likewise.
3580 (Lstream_get_emchar_1): Likewise.
3581 (Lstream_fput_emchar): Likewise.
3582 (Lstream_funget_emchar): Likewise.
3583 (copy_internal_to_external): Likewise.
3584 (copy_external_to_internal): Likewise.
3586 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3587 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3589 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3590 (BYTE_ASCII_P): Moved to mb-1byte.h.
3592 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3594 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3596 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3597 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3598 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3599 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3600 (VALIDATE_CHARPTR_FORWARD): Likewise.
3601 (simple_charptr_emchar): Moved to mb-multibyte.h.
3602 (simple_set_charptr_emchar): Likewise.
3603 (simple_charptr_copy_char): Likewise.
3604 (non_ascii_charptr_emchar): Likewise.
3605 (non_ascii_set_charptr_emchar): Likewise.
3606 (non_ascii_charptr_copy_char): Likewise.
3607 (charptr_emchar): Moved to mb-*byte.h.
3608 (set_charptr_emchar): Likewise.
3609 (charptr_copy_char): Likewise.
3611 * mb-1byte.h, mb-multibyte.h: New files.
3613 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3615 * mb-utf-8.h (MULTIBYTE): New macro.
3616 (MAX_EMCHAR_LEN): Moved from buffer.h.
3617 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3619 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3621 * mb-lb.h, multibyte.h: New files.
3623 * char-1byte.h (Charset_ID): Moved from buffer.h.
3624 (MIN_LEADING_BYTE): Likewise.
3625 (LEADING_BYTE_ASCII): Likewise.
3626 (NUM_LEADING_BYTES): Likewise.
3627 (CHARSETP): Likewise.
3628 (CHARSET_BY_LEADING_BYTE): Likewise.
3629 (XCHARSET_LEADING_BYTE): Likewise.
3630 (XCHARSET_GRAPHIC): Likewise.
3631 (XCHARSET_COLUMNS): Likewise.
3632 (XCHARSET_DIMENSION): Likewise.
3633 (CHAR_CHARSET): Likewise.
3634 (CHAR_LEADING_BYTE): Likewise.
3635 (BREAKUP_CHAR): Likewise.
3636 (Vcharset_ascii): Likewise.
3638 * buffer.h: Include multibyte.h unconditionally.
3639 (VALID_CHARPTR_P): Moved to multibyte.h.
3640 (ASSERT_VALID_CHARPTR): Likewise.
3641 (REAL_INC_CHARPTR): Likewise.
3642 (REAL_INC_CHARBYTIND): Likewise.
3643 (REAL_DEC_CHARPTR): Likewise.
3644 (INC_CHARPTR): Likewise.
3645 (INC_CHARBYTIND): Likewise.
3646 (DEC_CHARPTR): Likewise.
3647 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3648 (VALIDATE_CHARPTR_FORWARD): Likewise.
3649 (charptr_n_addr): Likewise.
3650 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3651 (simple_charptr_emchar): Moved to multibyte.h.
3652 (simple_set_charptr_emchar): Likewise.
3653 (simple_charptr_copy_char): Likewise.
3654 (non_ascii_charptr_emchar): Likewise.
3655 (non_ascii_set_charptr_emchar): Likewise.
3656 (non_ascii_charptr_copy_char): Likewise.
3657 (charptr_emchar): Likewise.
3658 (set_charptr_emchar): Likewise.
3659 (charptr_copy_char): Likewise.
3660 (charptr_emchar_n): Likewise.
3661 (Charset_ID): Moved to char-1byte.h.
3662 (Vcharset_ascii): Likewise.
3663 (CHAR_CHARSET): Likewise.
3664 (CHAR_LEADING_BYTE): Likewise.
3665 (LEADING_BYTE_ASCII): Likewise.
3666 (NUM_LEADING_BYTES): Likewise.
3667 (MIN_LEADING_BYTE): Likewise.
3668 (CHARSETP): Likewise.
3669 (CHARSET_BY_LEADING_BYTE): Likewise.
3670 (XCHARSET_LEADING_BYTE): Likewise.
3671 (XCHARSET_GRAPHIC): Likewise.
3672 (XCHARSET_COLUMNS): Likewise.
3673 (XCHARSET_DIMENSION): Likewise.
3674 (BREAKUP_CHAR): Likewise.
3676 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3678 * character.h: Add document about interface for characters.
3680 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3681 (MAKE_CHAR): Delete comment about
3682 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3683 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3684 (BREAKUP_CHAR): Modify name of arguments.
3685 (CHAR_CHARSET): Modify name of argument.
3687 * buffer.h: Delete document about Emchar accessors.
3689 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3691 * character.h (CHAR_INTP): Moved from buffer.h
3692 (CHAR_OR_CHAR_INTP): Likewise.
3693 (XCHAR_OR_CHAR_INT): Likewise.
3694 (CHECK_CHAR_COERCE_INT): Likewise.
3696 * buffer.h (CHAR_INTP): Moved to character.h
3697 (CHAR_OR_CHAR_INTP): Likewise.
3698 (XCHAR_OR_CHAR_INT): Likewise.
3699 (CHECK_CHAR_COERCE_INT): Likewise.
3701 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3704 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3705 - Include char-1byte.h, char-lb.h or char-ucs.h.
3707 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3709 * buffer.h: Include character unconditionally.
3710 (valid_char_p): Moved to char-*.h.
3711 (non_ascii_valid_char_p): Moved to char-lb.h.
3713 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3715 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3717 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3718 in UTF-2000 because it is not ported yet and not to use
3719 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3720 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3721 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3723 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3724 (CHAR_ASCII_P): Moved from character.h.
3726 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3727 (CHAR_ASCII_P): Likewise.
3728 (CHAR_FIELD1_MASK): Deleted.
3729 (CHAR_FIELD2_MASK): Deleted.
3730 (CHAR_FIELD3_MASK): Deleted.
3731 (MAX_CHAR_BASIC_LATIN): New macro.
3732 (CHAR_FIELD1): Deleted.
3733 (CHAR_FIELD2_INTERNAL): Deleted.
3734 (CHAR_FIELD3_INTERNAL): Deleted.
3735 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3736 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3737 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3738 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3739 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3740 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3741 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3742 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3743 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3744 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3745 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3746 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3747 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3748 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3749 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3750 (MIN_CHAR_COMPOSITION): Deleted.
3751 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3752 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3754 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
3756 * buffer.h: Include mb-utf-8.h in UTF-2000.
3758 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3760 * mb-utf-8.h: New file.
3762 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
3764 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3767 * mule-charset.h, buffer.h (Charset_ID): New type.
3769 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3771 * mule-canna.c (c2mu): Use `MAKE_CHAR',
3772 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3773 instead of `MULE_CHAR_PRIVATE_OFFSET',
3774 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3775 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3776 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3778 * character.h (Vcharset_japanese_jisx0212): New variable
3781 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3783 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3784 (charset_by_attributes): Delete array about direction.
3785 (latin_a_char_to_charset): New variable in UTF-2000.
3786 (latin_a_char_to_byte1): New variable in UTF-2000.
3787 (latin_a_char_to_byte2): New variable in UTF-2000.
3788 (Qucs_bmp): New variable.
3789 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3791 (next_allocated_2_byte_leading_byte): Likewise.
3792 (non_ascii_set_charptr_emchar): Likewise.
3793 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3794 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3795 `charset_by_attributes'.
3796 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3797 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3798 and `CHARSET_BY_LEADING_BYTE'.
3799 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3800 `utf-2000-version' to `vars_of_mule_charset'.
3801 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3802 define `leading-code-private-11' in UTF-2000; move setting of
3803 `utf-2000-version' from `syms_of_mule_charset'.
3804 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3807 * character.h (Charset_ID): New type.
3808 (LEADING_BYTE_UCS_BMP): New macro.
3809 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3810 (CHARSET_ID_OFFSET_94): New macro.
3811 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3812 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3813 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3815 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3816 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3817 (CHARSET_ID_OFFSET_96): New macro.
3818 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3819 CHARSET_ID_OFFSET_96 and final-byte.
3820 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3821 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3822 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3823 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3824 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3825 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3826 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3827 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3828 (LEADING_BYTE_THAI_TIS620): Likewise.
3829 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3830 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3831 (CHARSET_ID_OFFSET_94x94): New macro.
3832 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3833 CHARSET_ID_OFFSET_94x94 and final-byte.
3834 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3835 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3836 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3837 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3838 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3839 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3840 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3841 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3842 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3843 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3844 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3845 (CHARSET_TYPE_128X128): New macro.
3846 (CHARSET_TYPE_256X256): New macro.
3847 (XCHARSET_PRIVATE_P): Delete unconditionally.
3848 (charset_by_attributes): Delete array about direction.
3849 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3850 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3851 (MIN_CHAR_94): New macro.
3852 (MAX_CHAR_94): New macro.
3853 (MIN_CHAR_96): New macro.
3854 (MAX_CHAR_96): New macro.
3855 (MIN_CHAR_94x94): New macro.
3856 (MAX_CHAR_94x94): New macro.
3857 (MIN_CHAR_96x96): New macro.
3858 (MAX_CHAR_96x96): New macro.
3859 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3860 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3861 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3863 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3864 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3865 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3866 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3867 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3868 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3869 `XCHARSET_LEADING_BYTE' to make code-point.
3870 (latin_a_char_to_charset): New variable.
3871 (latin_a_char_to_byte1): New variable.
3872 (latin_a_char_to_byte2): New variable.
3873 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3874 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3875 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3877 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3878 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3879 (find_charsets_in_emchar_string): Likewise.
3880 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3882 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3884 (decode_coding_iso2022): Likewise.
3886 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3889 * redisplay.c (redisplay_text_width_emchar_string): Use
3890 `Charset_ID' instead of `unsigned char'.
3891 (redisplay_frame_text_width_string): Likewise.
3893 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3896 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3897 instead of `unsigned char'.
3898 (face_cachel_charset_font_metric_info): Likewise.
3900 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3901 (get_non_ascii_char_table_value): Likewise.
3902 (get_char_table): Likewise.
3903 (put_char_table): Likewise.
3904 (map_over_other_charset): Likewise.
3905 (map_char_table): Likewise.
3907 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3908 instead of `unsigned char'.
3910 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
3912 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3913 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3915 * mule-charset.c (leading_code_private_11): Don't define in
3918 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3919 in UTF-2000 because it is not ported yet and not to use
3920 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3922 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
3924 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3926 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3928 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3931 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3932 of unsigned char to store leading-byte.
3934 * chartab.c (get_non_ascii_char_table_value): Don't use
3935 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3937 * file-coding.c (encode_coding_big5): Delete bogus implementation
3940 * character.h (LEADING_BYTE_*): Delete definition for
3942 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3943 (LEADING_BYTE_PREFIX_P): Deleted.
3944 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3945 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3946 (BUFBYTE_LEADING_BYTE_P): Deleted.
3947 (CHARSET_PRIVATE_P): Deleted unconditionally.
3948 (rep_bytes_by_first_byte): Deleted unconditionally.
3949 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3950 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3951 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3952 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3953 (CHAR_FIELD2): Deleted.
3954 (CHAR_FIELD3): Deleted.
3955 (MAKE_CHAR): Delete definition for non-UTF-2000.
3956 (BREAKUP_CHAR_1_UNSAFE): Deleted.
3957 (breakup_char_1): New implementation.
3958 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3959 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3961 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3963 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3966 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3968 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3969 (CHARSET_PRIVATE_P): Likewise.
3970 (XCHARSET_PRIVATE_P): Likewise.
3971 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3973 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3975 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3977 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3979 * character.h (LEADING_BYTE_*): Changed in UTF2000.
3980 (NUM_LEADING_BYTES): Changed from 128 to 256.
3981 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3982 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3984 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3986 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3988 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3989 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3990 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3991 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3992 (Qchinese_cns11643_3): New variable in UTF2000.
3993 (Qchinese_cns11643_4): New variable in UTF2000.
3994 (Qchinese_cns11643_5): New variable in UTF2000.
3995 (Qchinese_cns11643_6): New variable in UTF2000.
3996 (Qchinese_cns11643_7): New variable in UTF2000.
3997 (syms_of_mule_charset): Define `chinese-cns11643-3',
3998 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3999 and `chinese-cns11643-7' in UTF2000.
4000 (vars_of_mule_charset): Initialize
4001 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4003 (complex_vars_of_mule_charset): Setup charset
4004 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4005 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4007 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4009 * mule-charset.c: Move setting for `leading-code-private-11' from
4010 `syms_of_mule_charset' to `vars_of_mule_charset'.
4012 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4014 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4015 and `NUM_LEADING_BYTES' in assert.
4017 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4019 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4021 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4022 `NUM_LEADING_BYTES' instead of 128.
4024 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
4026 * mule-charset.h (charset_by_leading_byte): Use
4027 `NUM_LEADING_BYTES' instead of 128.
4028 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4030 * mule-charset.c (charset_by_leading_byte): Use
4031 `NUM_LEADING_BYTES' instead of 128.
4032 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4034 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4037 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4039 * mule-charset.c (syms_of_mule_charset): Update to
4042 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4044 * file-coding.c (encode_coding_sjis): New implementation for
4045 UTF2000. (decode_coding_sjis): Ditto.
4047 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4049 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4050 Don't define in UTF2000.
4052 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4055 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4056 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4059 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4061 * config.h.in (CHAR_IS_UCS4): New macro.
4063 * mule-charset.c (rep_bytes_by_first_byte): Modify for
4064 conventional MULE representation.
4065 (syms_of_mule_charset): Update to 0.3 (Imamiya).
4067 * mule-charset.h: Reverted to original.
4069 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4070 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4071 "mule-charset.h" if CHAR_IS_UCS4 is defined.
4073 * character.h: New file.
4075 * file-coding.c (Fmake_coding_system): Set 1 to
4076 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4078 (encode_coding_no_conversion): New implementation for UTF2000.
4080 * file-coding.h (struct Lisp_Coding_System): Add new member
4083 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
4085 * file-coding.c (decode_coding_iso2022): Code-point arguments of
4086 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4087 (encode_coding_iso2022): New implementation for UTF2000.
4089 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4091 * mule-canna.c (c2mu): New implementation for UTF2000.
4094 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4096 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4098 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4100 * file-coding.c (reset_encoding_stream): Set 0 to
4101 `str->iso2022.current_char_boundary' in UTF2000.
4102 (encode_utf8): Don't define in UTF2000.
4103 (encode_coding_utf8): New implementation for UTF-8 representation
4105 (complex_vars_of_file_coding): Define coding-system `utf-8'.
4107 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4109 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4111 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4113 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4115 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4117 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4118 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4119 as UTF-8 in UTF2000.
4120 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4121 (non_ascii_valid_char_p): Don't define in UTF2000.
4122 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4123 (Lstream_get_emchar_1): Likewise.
4124 (utf-2000-version): New variable in UTF2000.
4126 * lread.c (read_escape): Add new reader `u'.
4128 * insdel.c (three_to_one_table): Don't define in UTF2000.
4129 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4130 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4132 (bytind_to_bufpos_func): Likewise.
4133 (buffer_mule_signal_inserted_region): Likewise.
4134 (vars_of_insdel): Don't initialize `three_to_one_table'.
4135 (init_buffer_text): Use `buf->text->mule_size' instead of
4136 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4139 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4140 UTF-8 representation in UTF2000.
4141 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4142 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4143 (decode_coding_iso2022): Don't define local variable `lb' in
4144 UTF2000; don't use LEADING_BYTE in UTF2000; use
4145 `DECODE_ADD_UCS_CHAR' in UTF2000.
4146 (convert_to_external_format): Decode as UTF-8 in UTF2000.
4148 * config.h.in (UTF2000): New macro.
4150 * buffer.h (struct buffer_text): Add new member `mule_size' and
4151 don't add `mule_shifter' and `mule_three_p' in UTF2000.
4152 (valid_char_p): Return always 1 in UTF2000.
4153 (MAX_EMCHAR_LEN): 6 in UTF2000.
4154 (three_to_one_table): Don't define in UTF2000.
4155 (real_bufpos_to_bytind): Modify for UTF-8 representation in
4157 (real_bytind_to_bufpos): Likewise.
4159 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4161 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4163 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4164 representation change.
4165 (Vutf_2000_version): New variable.
4166 (leading_code_private_11): New variable.
4167 (syms_of_mule_charset): Add new variables `utf-2000-version' and
4168 `leading-code-private-11'.
4170 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4171 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4172 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4173 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4174 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4175 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4176 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4177 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4178 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4179 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4180 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4181 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4182 (MIN_CHAR_GREEK): New macro.
4183 (MAX_CHAR_GREEK): New macro.
4184 (MIN_CHAR_CYRILLIC): New macro.
4185 (MAX_CHAR_CYRILLIC): New macro.
4186 (MIN_CHAR_HEBREW): New macro.
4187 (MAX_CHAR_HEBREW): New macro.
4188 (MIN_CHAR_THAI): New macro.
4189 (MAX_CHAR_THAI): New macro.
4190 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4191 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4192 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4193 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4194 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4195 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4196 (CHAR_FIELD2): New inline function.
4197 (CHAR_FIELD3): New inline function.
4198 (MULE_CHAR_PRIVATE_OFFSET): New macro.
4199 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4200 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4201 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4202 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4203 (MIN_CHAR_COMPOSITION): Likewise.
4204 (CHAR_LEADING_BYTE): Modified for character representation change.
4205 (MAKE_CHAR): Likewise.
4207 * lisp.h (Vcharset_latin_iso8859_1): New variable.
4208 (Vcharset_greek_iso8859_7): Likewise.
4209 (Vcharset_cyrillic_iso8859_5): Likewise.
4210 (Vcharset_hebrew_iso8859_8): Likewise.
4211 (Vcharset_thai_tis620): Likewise.
4212 (Vcharset_katakana_jisx0201): Likewise.
4214 2001-02-08 Martin Buchholz <martin@xemacs.org>
4216 * XEmacs 21.2.44 "Thalia" is released.
4218 2001-02-06 Martin Buchholz <martin@xemacs.org>
4220 Fixes crashes in kill-emacs on some systems.
4221 * process-unix.c (unix_kill_child_process):
4222 It's OK for kill() to fail with ESRCH.
4224 2001-02-07 Martin Buchholz <martin@xemacs.org>
4226 Contortions to make .gdbinit tricks work on most systems.
4227 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4228 * alloc.c (dbg_valmask): Make non-const.
4229 * alloc.c (dbg_typemask): Make non-const.
4230 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4231 * alloc.c (dbg_valbits): Make non-const.
4232 * alloc.c (dbg_gctypebits): Make non-const.
4233 * .gdbinit (decode_object): Make it work with AIX cc.
4235 2001-02-06 Martin Buchholz <martin@xemacs.org>
4237 * elhash.c (make_general_lisp_hash_table):
4238 Use simpler and more efficient calloc to clear entries.
4240 2001-02-07 Martin Buchholz <martin@xemacs.org>
4242 * window.c (window_scroll): Work around an AIX C compiler bug.
4243 Fixes 'scroll-up' does nothing problem with xlC.
4245 2001-02-05 Martin Buchholz <martin@xemacs.org>
4247 * .gdbinit: Remove obsolete comment.
4249 2001-01-31 Mike Alexander <mta@arbortext.com>
4251 * select.c (Fown_selection_internal): Set owned_p for device
4254 2001-02-01 Martin Buchholz <martin@xemacs.org>
4257 "not" cannot be used as a macro name as it is an operator in C++
4258 * config.h.in: Stop #defining `not'.
4259 * chartab.c (check_category_char): not ==> not_p
4260 * chartab.h: Likewise.
4261 * regex.c (re_match_2_internal): Likewise.
4263 2001-02-02 Martin Buchholz <martin@xemacs.org>
4265 * lisp-disunion.h: Fix up comments.
4267 2001-01-31 Martin Buchholz <martin@xemacs.org>
4269 * keymap.c (define_key_check_and_coerce_keysym):
4271 Support mouse-6 and mouse-7 bindings in the obvious way.
4273 2001-02-01 Martin Buchholz <martin@xemacs.org>
4275 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4277 2001-01-30 Martin Buchholz <martin@xemacs.org>
4279 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4280 Previous patch missed DEFVAR_INT_MAGIC.
4281 Make sure future DEFVAR_foo use correct types.
4282 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4283 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4284 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4285 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4286 * (DEFVAR_INT): Likewise.
4287 * redisplay.c (vertical_clip): Should be of type Fixnum.
4288 * redisplay.c (horizontal_clip): Likewise.
4289 * lisp.h (dump_add_opaque_int): New.
4290 (dump_add_opaque_fixnum): New.
4292 2001-01-29 Andy Piper <andy@xemacs.org>
4294 * glyphs-widget.c (check_valid_int_or_function): allow symbols
4295 since they can be eval'ed
4297 2001-01-29 Martin Buchholz <martin@xemacs.org>
4299 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4300 Oops, XEmacs redefines `class'. Use `typename' instead.
4302 2001-01-28 Martin Buchholz <martin@xemacs.org>
4304 * dumper.c: Fix C++ compile errors.
4306 2001-01-29 Martin Buchholz <martin@xemacs.org>
4308 * tparam.c: Use correct prototypes.
4310 2001-01-28 Martin Buchholz <martin@xemacs.org>
4312 * sysproc.h: #include util.h for NetBSD's openpty.
4314 2001-01-27 Martin Buchholz <martin@xemacs.org>
4316 More 64-bit correctness.
4317 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4318 Use a typedef `fixnum' for the type used for DEFVAR_INT.
4320 This finally finishes the 64-bit SGI port.
4321 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4322 * symbols.c: Fix up comments and type casts.
4323 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4324 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4325 * symeval.h (Fixnum): New type.
4326 * symeval.h (symbol_value_type): Fix up comment.
4342 * mule-canna.c: A million DEFVAR_INTs here...
4343 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4356 s/int/Fixnum/g in DEFVAR_INT declarations.
4358 2001-01-26 Martin Buchholz <martin@xemacs.org>
4360 Port pdump to SGI alignment-sensitive environment.
4361 Lisp Object sizeof methods now return aligned sizes. Rely on that.
4362 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4364 Define and use aligned reading and writing macros.
4365 Use buffered stdio instead of posix i/o for faster dumping.
4366 Eliminate kludgy 256 byte space for header.
4367 Read and write from dump file using structs for alignment safety.
4368 * dumper.c (pdump_align_stream): New.
4369 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4370 * dumper.c (PDUMP_READ_ALIGNED): New.
4371 * dumper.c (PDUMP_WRITE_ALIGNED): New.
4372 * dumper.c (pdump_static_Lisp_Object): New struct.
4373 * dumper.c (pdump_static_pointer): New struct.
4374 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4375 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4376 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4377 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4379 * dumper.c (pdump_backtrace):
4380 * dumper.c (pdump_get_indirect_count):
4381 * dumper.c (pdump_register_object):
4382 * dumper.c (pdump_register_struct):
4383 * dumper.c (pdump_reloc_one):
4384 * dumper.c (pdump_scan_by_alignment):
4385 * dumper.c (pdump_dump_from_root_struct_ptrs):
4386 * dumper.c (pdump_dump_opaques):
4387 * dumper.c (pdump_dump_rtables):
4388 * dumper.c (pdump_dump_from_root_objects):
4390 * dumper.c (pdump_load_finish):
4391 Use aligned reading and writing.
4393 * dumper.c (pdump_free): Make static.
4394 * dumper.c (pdump_hFile): Likewise.
4395 * dumper.c (pdump_hMap): Likewise.
4397 2001-01-26 Martin Buchholz <martin@xemacs.org>
4399 * XEmacs 21.2.43 "Terspichore" is released.
4401 2001-01-25 Martin Buchholz <martin@xemacs.org>
4403 Type fiddling for window_config.saved_windows_count
4404 * window.c (struct window_config):
4405 Make saved_windows_count member unsigned.
4406 * window.c (sizeof_window_config_for_n_windows):
4407 Make parameter unsigned.
4408 * window.c (mark_window_config):
4409 * window.c (window_config_equal):
4410 * window.c (free_window_configuration):
4411 * window.c (Fset_window_configuration):
4412 * window.c (count_windows):
4413 * window.c (Fcurrent_window_configuration):
4414 * window.c (reinit_vars_of_window):
4415 Update all callers and users.
4417 2001-01-25 Martin Buchholz <martin@xemacs.org>
4419 Alignment correctness for flexible arrays.
4420 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4421 Make alignment-correct. Add interesting comments.
4422 * alloc.c (size_vector):
4423 * alloc.c (make_vector_internal):
4424 * alloc.c (make_bit_vector_internal):
4425 * alloc.c (sweep_bit_vectors_1):
4426 * fns.c (size_bit_vector):
4427 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4428 * window.c (sizeof_window_config_for_n_windows):
4429 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4431 2001-01-24 Martin Buchholz <martin@xemacs.org>
4433 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4435 2001-01-23 Andy Piper <andy@xemacs.org>
4437 * select.c (Fown_selection_internal): pass owned_p
4439 * select-msw.c (mswindows_own_selection): New Signature.
4441 * console.h (struct console_methods): add owned_p to
4444 * select-x.c (x_own_selection): pass owned_p
4445 (hack_motif_clipboard_selection): use owned_p
4446 (vars_of_select_x): new variable -
4447 x_selection_strict_motif_ownership.
4449 2001-01-23 Martin Buchholz <martin@xemacs.org>
4451 * specifier.h (specifier_data_offset): Remove pointless parens.
4452 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4454 2001-01-24 Martin Buchholz <martin@xemacs.org>
4456 Make Lisp_Object sizeof methods be alignment-correct.
4457 pdump must restore objects to the same alignment as the C compiler
4458 assumes. It really matters on SGIs.
4459 * lstream.c (aligned_sizeof_lstream): New.
4460 (sizeof_lstream): Use aligned_sizeof_lstream.
4461 (Lstream_new): Likewise.
4462 * opaque.c (aligned_sizeof_opaque): New.
4463 (sizeof_opaque): Use aligned_sizeof_opaque.
4464 (make_opaque): Likewise.
4465 * specifier.c (aligned_sizeof_specifier): New.
4466 (sizeof_specifier): Use aligned_sizeof_specifier.
4467 (make_specifier_internal): Likewise.
4469 2001-01-23 Martin Buchholz <martin@xemacs.org>
4471 * lstream.h (struct lstream): Use max_align_t for trailing data.
4472 * specifier.h (struct Lisp_Specifier): Likewise.
4474 2001-01-22 Martin Buchholz <martin@xemacs.org>
4476 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4477 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4478 (CCL_SUSPEND): Likewise.
4479 (CCL_INVALID_CMD): Likewise.
4480 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4481 (ccl_driver): Likewise.
4482 (CCL_WRITE_CHAR): Macro hygiene.
4483 (CCL_WRITE_STRING): Macro hygiene.
4485 2001-01-22 Martin Buchholz <martin@xemacs.org>
4487 Port "portable" dumper to SunOS 4 and HP-UX.
4488 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4489 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4490 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4492 2001-01-22 Martin Buchholz <martin@xemacs.org>
4494 * lisp.h (ALIGNOF): A better definition for C++.
4496 2001-01-20 Martin Buchholz <martin@xemacs.org>
4499 Fix printf warnings: int format, long int arg.
4500 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4501 (PUSH_FAILURE_POINT): Use correct printf formats.
4502 (POP_FAILURE_POINT): Use correct printf formats.
4503 Use do {...} while (0)
4505 2001-01-20 Martin Buchholz <martin@xemacs.org>
4507 * XEmacs 21.2.42 "Poseidon" is released.
4509 2001-01-20 Martin Buchholz <martin@xemacs.org>
4511 * console-x.h: typo fix du jour. Remove #if 0'ed code.
4513 2001-01-19 Martin Buchholz <martin@xemacs.org>
4515 De-kludgify FIXED_TYPE free list frobbing.
4516 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4517 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4518 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4519 * alloc.c (Lisp_Free): New pseudo lisp object definition.
4520 * alloc.c (LRECORD_FREE_P): New.
4521 * alloc.c (MARK_LRECORD_AS_FREE): New.
4522 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4523 * alloc.c (STRUCT_FREE_P): Deleted.
4524 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4525 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4526 * alloc.c (STRING_CHARS_FREE_P): New.
4527 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4528 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4529 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4530 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4531 * alloc.c (resize_string): Use new definitions.
4532 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4533 * alloc.c (verify_string_chars_integrity): Use new definitions.
4534 * alloc.c (compact_string_chars): Use new definitions.
4535 * alloc.c: Update monster comments.
4536 * lrecord.h (lrecord_type): Add some new lrecord types for
4539 2001-01-18 Martin Buchholz <martin@xemacs.org>
4541 Improve alignment hackery.
4542 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4543 (max_align_t): Moved from opaque.h - general purpose.
4544 (ALIGN_PTR): Use size_t, not long.
4545 * opaque.h (max_align_t): Move to lisp.h.
4547 2001-01-18 Norbert Koch <nk@LF.net>
4549 * gui.h: Fix and add prototypes to fix build problems.
4551 2001-01-18 Martin Buchholz <martin@xemacs.org>
4553 temacs is going away, so `dump-temacs' is now a bad name.
4554 * .dbxrc (dump-temacs): Rename to `dmp'.
4555 * .gdbinit (dump-temacs): Rename to `dmp'.
4557 2001-01-17 Andy Piper <andy@xemacs.org>
4559 * glyphs.c (print_image_instance): comment to make martin happy.
4561 * glyphs-x.c (x_redisplay_widget): update faces after a frame
4564 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4566 (mswindows_tab_control_redisplay): warning suppression.
4568 * glyphs-widget.c (widget_update): re-write to cope with updated
4570 (widget_instantiate): use new gui_item functions.
4571 (tab_control_update): deleted.
4572 (progress_gauge_update): deleted.
4573 (image_instantiator_progress_guage): take out update reference.
4574 (image_instantiator_tree_view): ditto.
4575 (image_instantiator_tab_control): ditto.
4577 * gui.c (widget_gui_parse_item_keywords): new function. Do things
4579 (gui_item_add_keyval_pair): re-write to cope with descriptors and
4580 return whether anything was changed.
4581 (update_gui_item_keywords): as it sounds.
4583 * gui.h: declare widget_gui_parse_item_keywords.
4585 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4586 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4588 2001-01-17 Martin Buchholz <martin@xemacs.org>
4590 * XEmacs 21.2.41 "Polyhymnia" is released.
4592 2001-01-16 Didier Verna <didier@xemacs.org>
4594 * glyphs.c (image_instantiate): don't use fallbacks when
4595 instantiating a face's background pixmap by inheritance.
4597 2001-01-14 Mike Sperber <mike@xemacs.org>
4599 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4600 Conditionalize accordingly.
4602 2001-01-16 Martin Buchholz <martin@xemacs.org>
4604 * dumper.c (pdump_file_get): Fix a compiler warning.
4606 2001-01-15 Martin Buchholz <martin@xemacs.org>
4608 Make Purify happy when pdumping.
4609 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4610 iniitalizing all bits of new lisp object memory.
4611 * symbols.c (Fmake_local_variable): Likewise.
4612 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4613 * symbols.c (Fdefvaralias): Likewise.
4614 * mule-charset.c (vars_of_mule_charset): Likewise.
4616 2001-01-15 Martin Buchholz <martin@xemacs.org>
4617 Add the `-nd' flag when running pre-dump operations under the debugger.
4618 * .dbxrc (run-temacs): Add `-nd'.
4619 * .dbxrc (update-elc): Likewise.
4620 * .dbxrc (dump-temacs): Likewise.
4621 * .gdbinit (run-temacs): Likewise.
4622 * .gdbinit (check-temacs): Likewise.
4623 * .gdbinit (update-elc): Likewise.
4624 * .gdbinit (dump-temacs): Likewise.
4626 2001-01-14 Martin Buchholz <martin@xemacs.org>
4628 Allow building 64-bit executables on AIX with GNU malloc, e.g.
4629 export OBJECT_MODE=64
4630 configure --pdump --use-union-type=no
4631 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4632 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4634 * miscplay.c (sndcnv8U_2mono):
4635 Avoid two uses of `++' in the same expression.
4636 Suppresses a GCC warning.
4638 2001-01-13 Martin Buchholz <martin@xemacs.org>
4640 Make sure future compilers don't miscompile alloc.c.
4642 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4643 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4645 2001-01-12 Martin Buchholz <martin@xemacs.org>
4647 * dumper.c: A little post-pdump-rename comment fixup.
4649 2001-01-09 Jerry James <james@eecs.ku.edu>
4651 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4653 2001-01-13 Martin Buchholz <martin@xemacs.org>
4655 * *.[ch]: Globally rename symbols using the following `pdump-rename'
4659 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4662 replace_symbol pdump_wire_lists pdump_weak_object_chains
4663 replace_symbol pdump_wire_list dump_add_weak_object_chain
4665 replace_symbol pdump_wires pdump_root_objects
4666 replace_symbol pdump_wire dump_add_root_object
4668 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4669 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4671 replace_symbol dumpstructinfos pdump_root_struct_ptrs
4672 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4673 replace_symbol dumpstructinfo pdump_root_struct_ptr
4674 replace_symbol dumpstruct dump_add_root_struct_ptr
4676 replace_symbol dumpopaque dump_add_opaque
4677 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4678 replace_symbol dumpopaqueinfos pdump_opaques
4679 replace_symbol dumpopaqueinfo pdump_opaque
4681 replace_symbol nb_structdump nb_root_struct_ptrs
4682 replace_symbol nb_opaquedump nb_opaques
4684 replace_symbol align_table pdump_align_table
4685 replace_symbol dump_header pdump_header
4687 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4688 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4691 2001-01-12 Martin Buchholz <martin@xemacs.org>
4693 * s/aix4.h: Keep the C for AIX compiler from overaggressively
4694 optimizing bytecount_to_charcount().
4696 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4699 (HAVE_DLFCN_H): Removed.
4700 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4702 2001-01-06 Martin Buchholz <martin@xemacs.org>
4704 Portable dumper maintainability improvements.
4705 * alloc.c (staticpro):
4706 * alloc.c (staticpro_nodump):
4707 * alloc.c (garbage_collect_1):
4708 * alloc.c (reinit_alloc_once_early):
4709 * alloc.c (init_alloc_once_early):
4710 * alloc.c: Move dumper functions to alloc.c.
4711 * dumper.c (pdump_backtrace):
4712 * dumper.c (pdump_dump_structs):
4713 * dumper.c (pdump_dump_opaques):
4714 * dumper.c (pdump_dump_rtables):
4715 * dumper.c (pdump_dump_wired):
4717 * dumper.c (pdump_load_check):
4718 * dumper.c (pdump_load_finish):
4719 * dumper.c (pdump_file_unmap):
4720 * dumper.c (pdump_file_get):
4721 * dumper.c (pdump_resource_free):
4722 * dumper.c (pdump_resource_get):
4723 * dumper.c (pdump_file_free):
4724 * dumper.c (pdump_file_try):
4725 * dumper.c (pdump_load):
4726 Remove fixed size limits on staticpro(), staticpro_nodump(),
4727 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4728 Remove custom code for dumping lrecord_implementations_table - use
4730 Remove (most of the) custom code for dumping staticpros - dump it
4731 like any other dynarr.
4733 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
4734 * dumper.c: Moved functions from alloc.c.
4735 * alloc.c (dumpstruct): Moved to dumper.c.
4736 * alloc.c (dumpopaque): Likewise.
4737 * alloc.c (pdump_wire): Likewise.
4738 * alloc.c (pdump_wire_list): Likewise.
4740 * lisp.h (Dynarr_sizeof): New.
4741 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
4742 * lisp.h (Dynarr_end): New. Very slightly C++oid.
4743 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
4745 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4746 * lisp.h (dumpopaque): ditto.
4747 * lisp.h (pdump_wire): ditto.
4748 * lisp.h (pdump_wire_list): ditto.
4750 2001-01-09 Martin Buchholz <martin@xemacs.org>
4752 * make-src-depend (PrintPatternDeps):
4753 Use `sort' to make output independent of perl version.
4755 2001-01-08 Martin Buchholz <martin@xemacs.org>
4758 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4759 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4761 2001-01-03 Didier Verna <didier@xemacs.org>
4763 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4764 that `focus_frame' is alive before thinking of calling
4765 `redisplay_redraw_cursor' on it.
4767 2001-01-08 Martin Buchholz <martin@xemacs.org>
4769 * XEmacs 21.2.40 is released.
4771 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4773 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4775 2001-01-06 Martin Buchholz <martin@xemacs.org>
4777 * alloc.c (dbg_valmask): Make const.
4778 * alloc.c (dbg_typemask): Make const.
4779 * alloc.c (dbg_USE_UNION_TYPE): Make const.
4780 * alloc.c (dbg_valbits): Make const.
4781 * alloc.c (dbg_gctypebits): Make const.
4783 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
4785 * redisplay-x.c (x_bevel_area):
4786 redisplay.h (struct rune):
4787 Typo fixes in comments.
4789 2001-01-05 Andy Piper <andy@xemacs.org>
4791 * glyphs-x.c (x_redisplay_widget): use size changed for offset
4794 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4796 2001-01-05 Martin Buchholz <martin@xemacs.org>
4798 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4800 * mule-ccl.c (stack_idx_of_map_multiple):
4801 Non const global data must not be initialized!
4802 Found by MIYASHITA Hisashi.
4804 2001-01-02 Andy Piper <andy@xemacs.org>
4806 * frame.c (change_frame_size): make sure frame size is always
4809 * glyphs.c (image_instance_layout): minor code reuse.
4811 * window.c (Fcurrent_window_configuration): revert previous
4814 2001-01-02 Martin Buchholz <martin@xemacs.org>
4817 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4819 2000-12-31 Andy Piper <andy@xemacs.org>
4821 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4822 when widget gets unmapped.
4824 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4825 function. Make sure widgets losing focus don't just drop it.
4826 (handle_focus_event_1): record the widget with focus.
4828 2000-12-31 Andy Piper <andy@xemacs.org>
4830 * window.c (allocate_window): use
4831 make_image_instance_cache_hash_table.
4832 (make_dummy_parent): ditto.
4833 (Fset_window_configuration): ditto.
4835 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
4837 * glyphs.c (process_image_string_instantiator): use
4839 (get_image_instantiator_governing_domain): ditto.
4840 (normalize_image_instantiator): ditto.
4841 (instantiate_image_instantiator): ditto.
4842 (make_image_instance_1): ditto.
4843 (image_instantiate): ditto. Key on glyph *and* instantiator type.
4844 (instantiator_eq_equal): new function for use with instance hash
4846 (instantiator_eq_hash): ditto.
4847 (make_image_instance_cache_hash_table): create a suitable hash
4848 table for storing image instances.
4850 * elhash.h (hash_table_weakness): new internal weakness type
4851 HASH_TABLE_KEY_CAR_VALUE_WEAK.
4852 declare new functions.
4854 * elhash.c (finish_marking_weak_hash_tables): introduce yet
4855 another weakness type for glyphs.
4856 (make_standard_lisp_hash_table): new function split out from
4857 make_general_lisp_hash_table.
4858 (make_lisp_hash_table): call make_standard_lisp_hash_table.
4859 (hash_table_instantiate): ditto.
4860 (Fmake_hash_table): ditto.
4862 2000-12-31 Martin Buchholz <martin@xemacs.org>
4864 * XEmacs 21.2.39 is released.
4866 2000-12-29 Andy Piper <andy@xemacs.org>
4868 * menubar.c (menubar_visible_p_changed): signal the frame changed.
4870 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4871 the frame has changed so that we pick up geometry changes such as
4874 2000-12-28 Andy Piper <andy@xemacs.org>
4876 * lastfile.c (my_ebss): make a char array so we can pad the
4877 bss. Fixes cygwin unexec.
4879 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4881 2000-12-26 Andy Piper <andy@xemacs.org>
4883 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4884 comments and try and be more precise about a non-/SIGIO world.
4885 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4888 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4889 we don't normalize to zero width or height.
4891 2000-12-24 Andy Piper <andy@xemacs.org>
4893 * Makefile.in.in (ldflags): add -mwindows when appropriate.
4895 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
4897 * s/sco5.h: SCO 5 has pty support.
4899 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
4901 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4902 input-method-xlib.c contains whole contents of input-method-xfs.c,
4903 so we can use input-method-xlib.c's code for USE_XFONTSET
4905 * input-method-xfs.c: removed.
4907 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
4909 * file-coding.h (enum coding_category_type): reorder enumerators to
4910 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
4911 (now one greater than largest real coding_category_type enumerator).
4912 * file-coding.c (coding_category_symbol, coding_category_by_priority,
4913 coding_category_system, fcd_descriptihon_1, decode_coding_category,
4914 Fcoding_category_list, Fset_coding_priority_list,
4915 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4916 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4918 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4920 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4921 * redisplay-output.c (redisplay_output_window): Clear top of window
4922 when face is changed.
4923 * redisplay-x.c (x_redraw_exposed_window): Call
4924 redisplay_clear_top_of_window.
4925 * redisplay.h: Publish redisplay_clear_top_of_window.
4927 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4929 * buffer.c (Fkill_buffer): Map over all devices.
4930 * window.c (window_loop): Remove UNSHOW_BUFFER code.
4931 (list_windows): New function.
4932 (list_all_windows): Ditto.
4933 (Freplace_buffer_in_windows): Use them.
4935 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4937 * database.c (berkdb_subtype): Recognize new subtype `queue'.
4938 (Fopen_database): Use `db_create' instead of `db_open'.
4939 (syms_of_database): Initialize Qqueue.
4941 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4943 * buffer.c (common_init_complex_vars_of_buffer): Initialize
4944 buffer_local_face_property.
4945 * buffer.h (struct buffer): New member buffer_local_face_property.
4946 * window.c (Fset_window_buffer): Mark window's face as changed
4947 when buffer has buffer local face.
4948 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4949 * objects.c (color_after_change): Set buffer_local_face_property
4950 when locale of face specifier is buffer.
4951 * objects.c (font_after_change): Ditto.
4952 * objects.c (face_boolean_after_change): Ditto.
4953 * glyphs.c (image_after_change): Ditto.
4955 2000-12-09 Dan Holmsand <dan@eyebee.com>
4957 * nt.c (mswindows_fstat): Report file permissions, volume serial
4958 number, etc. Code adapted from FSF Emacs 20.7.
4960 2000-12-09 Dan Holmsand <dan@eyebee.com>
4962 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4963 of stat when we don't have symbolic links, to make sure
4964 mswindows_stat is called on mswindows.
4966 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
4968 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4970 2000-12-12 Martin Buchholz <martin@xemacs.org>
4972 * doprnt.c (emacs_doprnt_1): More printing fixes.
4973 Make printing of numbers compatible with libc and FSF Emacs.
4974 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4975 Use the system printf to do most of the hard work of formatting,
4976 instead of doprnt_1().
4977 Calculate memory to allocate for format string.
4978 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4979 (doprnt_1): Cleaner code and documentation.
4981 2000-12-01 Jerry James <james@eecs.ukans.edu>
4983 * Makefile.in.in: Use the loop variable to install headers.
4985 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4987 * window.c (Fsplit_window): Don't invalidate face cache.
4989 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4991 * minibuf.c (Fall_completions): Undo the previous change
4992 which removed checking elements start with space.
4994 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4996 * mule-canna.c: Didier suppression.
4998 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
5000 * mule-canna.c: rename static unsigned char buf[] to key_buffer
5001 (warning suppression). Add English comment translations.
5003 2000-12-05 Martin Buchholz <martin@xemacs.org>
5005 * unexelfsgi.c (unexec): Better test for mmap failure.
5007 2000-12-05 Martin Buchholz <martin@xemacs.org>
5009 * XEmacs 21.2.38 is released.
5011 2000-12-05 Martin Buchholz <martin@xemacs.org>
5013 * redisplay.c (bar-cursor): Make a user variable.
5015 * symsinit.h: Add init_postgresql_from_environment.
5017 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
5019 * regex.c: Convert to clean C.
5021 2000-12-05 Dan Holmsand <dan@eyebee.com>
5024 Don't #include sysfile.h. Revert to duplicating PATH_MAX
5026 (sys_readlink): renamed to system_readlink to avoid conflict with
5027 the other sys_readlink.
5029 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
5031 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
5033 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
5035 * postgresql.c (init_postgresql_from_environment): new function.
5036 (vars_of_postgresql): Move code initializing Lisp variables out and
5037 into init_postgresql_from_environment.
5038 emacs.c (main_1): Call init_postgresql_from_environment if and only
5039 if running a dumped XEmacs.
5041 2000-08-31 Dan Holmsand <dan@eyebee.com>
5043 * buffer.c: Make find-file-compare-truenames default to true on
5046 * realpath.c (win32_abs_start):
5048 (win32_readlink): New functions.
5049 (xrealpath): Return really real filenames on windows.
5051 * fileio.c (Ffile_truename): Make file-truename work on windows.
5053 2000-11-29 Didier Verna <didier@xemacs.org>
5055 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
5056 * faces.c (update_face_cachel_data): use it.
5057 * faces.c (add_face_cachel): use it. Complete background pixmap
5058 frobbing in face cache if `update_face_cachel_data' has not done so.
5060 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
5062 * search.c (string_match_1): Don't set last_thing_searched
5065 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
5067 * buffer.c: Include casetab.h
5068 (common_init_complex_vars_of_buffer): Use new case-table object.
5069 * buffer.h: Include casetab.h
5070 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5071 (DOWNCASE_TABLE_OF): Ditto.
5072 * bufslots.h: Remove char-tables and add case-table.
5073 * casetab.c: Include casetab.h
5074 (CASE_TABLE_P): Removed.
5075 (mark_case_table): New function.
5076 (allocate_case_table): New function.
5077 (Fcase_table_p): Use new case-table.
5078 (case_table_char): New function.
5079 (Fget_case_table): Ditto.
5080 (Fput_case_table): Ditto.
5081 (Fput_case_table_pair): Ditto.
5082 (Fcopy_case_table): Ditto.
5083 (Fcurrent_case_table): Return case-table.
5084 (Fstandard_case_table): Return case-table.
5085 (Fset_case_table): Fix doc-string.
5086 (set_case_table): Use case-table
5087 (syms_of_casetab): DEFSUBR new functions.
5088 (complex_vars_of_casetab): Set up standard case-table.
5089 * casetab.h: New file.
5090 * editfns.c: Include casetab.h
5091 (Fcompare_buffer_substrings): Use case-table.
5092 * inline.c: Include casetab.h
5093 * lisp.h: Remove bogus extern.
5094 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5095 * search.c: Include casetab.h
5096 (TRANSLATE_ASCII): Removed.
5097 (TRANSLATE): Unconditionally translate character.
5098 (looking_at_1): Use case-table.
5099 (string_match_1): Ditto.
5100 (fast_string_match): Ditto.
5101 (search_command): Ditto.
5102 (search_buffer): Separate boyer_moore. Check whether
5103 boyer_moore is possible.
5104 (simple_search): New function.
5105 (boyer_moore): Separated from search_buffer. Translate char.
5107 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
5109 * regex.c (RE_TR_ASCII): Removed.
5110 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5111 (PATFETCH): Call PATFETCH_RAW.
5112 (PATFETCH_RAW): Fetch Emchar.
5113 (PATUNFETCH): Decrement charptr.
5114 (GET_BUFFER_SPACE): Rename b to buf_end.
5116 (BUF_PUSH_2): Ditto.
5117 (BUF_PUSH_3): Ditto.
5118 (EXTEND_BUFFER): Ditto.
5119 (SET_LIST_BIT): Ditto.
5120 (regex_compile): Ditto. Translate non ASCII char.
5121 (compile_range): Ditto.
5122 (re_search_2): Ditto.
5123 (re_match_2_internal): Compare Emchar.
5124 (bcmp_translate): Ditto.
5126 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
5128 * lisp.h (basic char/int typedefs): comment improvement.
5130 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
5132 * emacs.c (main_1): unconditional pdump unstomping; don't save and
5133 unstomp inhibit_site_lisp. Improve comments.
5135 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
5137 * mule-charset.c (Fcharset_property): improve type checking, comments.
5139 2000-11-28 Andy Piper <andy@xemacs.org>
5141 * redisplay-output.c (redisplay_output_subwindow): make sure we do
5142 clipped display for windows in the gutter also.
5143 (redisplay_display_boxes_in_window_p): change semantics of return
5144 codes to be more intuitive.
5146 * gutter.h: declare display_boxes_in_gutter_p.
5148 * gutter.c (display_boxes_in_gutter_p): new function for
5151 2000-11-22 Andy Piper <andy@xemacs.org>
5153 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5156 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
5158 * callproc.c (Fold_call_process_internal):
5159 * gpm.c (Freceive_gpm_event):
5160 (tty_get_foreign_selection): Might be just warning supression.
5161 * fileio.c (Fwrite_region_internal):
5162 (Fset_visited_file_modtime):
5163 * keymap.c (event_matches_key_specifier_p):
5164 Initialize GCPROed variable.
5166 * menubar-x.c (command_builder_find_menu_accelerator):
5167 Initialize before use.
5169 2000-11-23 Andy Piper <andy@xemacs.org>
5171 * unexcw.c (unexec): make the resulting executable executable.
5173 2000-11-21 Martin Buchholz <martin@xemacs.org>
5175 * doc.c (get_doc_string):
5176 Use size_t, not int, for result of XSTRING_LENGTH.
5178 * cmds.c (Fdelete_char):
5179 * cmds.c (Fpoint_at_eol):
5180 * cmds.c (Fself_insert_command):
5181 Use EMACS_INT, not int, for result of XINT.
5182 Someday, someone will want to insert more than 2**31 identical characters.
5184 * cmds.c (Fdelete_char):
5185 * cmds.c (Fdelete_backward_char):
5186 * syntax.c (Fforward_word):
5187 * syntax.c (Fforward_comment):
5188 Make COUNT argument optional, for consistency with forward-char et al.
5190 2000-11-22 Martin Buchholz <martin@xemacs.org>
5193 * print.c (long_to_string):
5194 Return a useful value: the pointer at end of data written.
5197 Use `static const char * const' for constant strings.
5198 (union printf_arg): Delete `i', `ui' members.
5201 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5202 Do all printf-ing via the `l' specifier.
5203 Use EMACS_INT instead of int.
5206 2000-11-20 Didier Verna <didier@xemacs.org>
5208 * faces.c (update_face_cachel_data): don't frob the background
5209 pixmap when the window is being created. The face is needed but
5212 2000-11-20 Andy Piper <andy@xemacs.org>
5214 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5215 messing with a debug environment.
5217 2000-11-20 Martin Buchholz <martin@xemacs.org>
5219 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5221 2000-11-20 Martin Buchholz <martin@xemacs.org>
5223 * casetab.c (Fcase_table_p): Fix compile error and crash.
5225 2000-11-18 Philip Aston <philipa@mail.com>
5227 * s/cygwin32.h: Cygwin has SVR4-like pty support.
5229 2000-11-18 Martin Buchholz <martin@xemacs.org>
5231 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
5232 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5234 2000-11-17 Martin Buchholz <martin@xemacs.org>
5236 * config.h.in: Define HAVE_ELF_H if elf.h exists.
5237 * unexelf.c: Use HAVE_ELF_H.
5238 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5239 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5240 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5241 Greg Harrington <greg_harrington@hotmail.com> provided a machine
5243 So this is an unexelfsgi.c from a different line of development.
5245 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5247 * regex.c (RE_TR_ASCII): New function.
5248 (RE_TRANSLATE): Call it.
5250 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5252 * buffer.h (TRT_TABLE_OF): Remove assert.
5253 (IN_TRT_TABLE_DOMAIN): Removed.
5255 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
5257 * free-hook.c (log_gcpro):
5258 (show_gcprohist): Add support for GCPRO5.
5260 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
5262 * emacs.c (main_1): Improve -sd error message when --pdump=no.
5264 2000-11-16 Olivier Galibert <galibert@xemacs.org>
5266 * symeval.h: Declare flush_all_buffer_local_cache.
5268 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5269 (flush_buffer_local_cache): Added.
5270 (flush_all_buffer_local_cache): Added.
5272 * lrecord.h: Remove unused XD_LO_RESET_NIL.
5274 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5275 (pdump_dump_data): Ditto.
5276 (pdump_reloc_one): Ditto.
5277 (pdump): Remove unused pdump_qnil. Flush buffer local caches
5281 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5283 * buffer.c: Remove if 0'ed entry.
5284 * buffer.h: Rewrite TRT to use char-table.
5285 * bufslots.h: Remove mirror tables.
5286 * casetab.c: Remove mirror tables.
5287 (CASE_TABLE_P): New macro.
5288 (Fcase_table_p): Element of a case table is string or char-table.
5289 (make_mirror_trt_table): Removed.
5290 (set_case_table): Setup char-table from strings for backward
5292 * dired.c (Fdirectory_files):
5293 * dired-msw.c: (mswindows_get_files):
5294 * lisp.h: Change prototype of re_pattern_buffer.
5295 * regex.c: (RE_TRANSLATE): New macro.
5296 (TRANSLATE_P): Ditto.
5297 Change translate to type RE_TRANSLATE_TYPE.
5298 * regex.h: Define RE_TRANSLATE_TYPE
5299 * search.c (TRANSLATE): New macro.
5300 (TRANSLATE_ASCII): New macro.
5301 Translate table is changed to Lisp_Object.
5302 (signal_failure): Inhibit return.
5304 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5311 Do UNGCPRO before return.
5313 2000-11-14 Martin Buchholz <martin@xemacs.org>
5315 * XEmacs 21.2.37 is released.
5317 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
5319 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5320 Add comments about discarded return value.
5322 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5325 * event-stream.c: Fix comments. Remove some #if 0'ed part.
5327 2000-10-27 Andy Piper <andy@xemacs.org>
5329 * gutter.c (Fset_default_gutter_position): default left and right
5331 (calculate_gutter_size): calculate resonable heuristic for left
5332 and right gutter sizes.
5333 (specifier_vars_of_gutter): change left and right gutter sizes to
5335 (calculate_gutter_size_from_display_lines): new function.
5336 (output_gutter): check for resizing on left and right gutters.
5337 (clear_gutter): don't special case top and left gutters.
5338 (specifier_vars_of_gutter): use new signature for
5339 set_specifier_caching.
5341 * glyphs-x.c (x_redisplay_widget): spelling fix.
5342 * glyphs.c (specifier_vars_of_glyphs):
5343 * menubar.c (specifier_vars_of_menubar):
5344 * redisplay.c (specifier_vars_of_redisplay):
5345 * toolbar.c (specifier_vars_of_toolbar):
5346 * window.c (specifier_vars_of_window):
5347 * scrollbar.c (specifier_vars_of_scrollbar):
5348 (complex_vars_of_scrollbar): use new signature for
5349 set_specifier_caching.
5351 * specifier.c (set_specifier_caching): include recompute flag.
5352 (recompute_one_cached_specifier_in_window): always recompute if
5354 (recompute_one_cached_specifier_in_frame): ditto.
5356 * specifier.h (struct specifier_caching): add recompute flag.
5358 2000-10-24 Andy Piper <andy@xemacs.org>
5360 * unexcw.c (copy_executable_and_dump_data_section): add new
5361 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5364 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5366 * console-x.h (x_device): New member modifier_release_time.
5367 * event-Xt.c (x_handle_sticky_modifiers):
5368 Bound interval modifier keys are sticky.
5369 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5370 * events.h: extern it.
5372 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5374 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5376 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5378 * event-stream.c (execute_command_event): Preserve current_events
5379 and the like when event is misc-user-event.
5380 Inhibit quit during the call to maybe_echo_keys.
5382 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
5384 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5385 symlink when buffer is killed.
5386 (inhibit_clash_detection): New variable.
5388 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5390 * console.c (Fset_input_method): Trigger redisplay on tty.
5392 2000-11-07 Martin Buchholz <martin@xemacs.org>
5394 * process.c (Fprocess_status): Revert to previous behavior:
5395 (process-status "nosuchprocess") ==> nil
5397 2000-11-06 Martin Buchholz <martin@xemacs.org>
5399 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5400 Work around another GCC 2.95.2 optimizer bug.
5402 2000-11-02 Martin Buchholz <martin@xemacs.org>
5404 * process.c (Fget_process): Use LIST_LOOP_2.
5405 (kill_buffer_processes): Use LIST_LOOP_2.
5407 * minibuf.c (Fall_completions):
5408 Delete old non-functional code for FSF fourth argument.
5410 * frame.c (frame_matches_frame_spec):
5411 Renamed from `frame_matches_frametype'. Update all callers.
5412 (device_matches_device_spec):
5413 Renamed from 'device_matches_console_spec'. Update all callers.
5415 * doc.c (Fsubstitute_command_keys):
5416 Remove buffer overflow crash. Small code cleanups.
5418 * casetab.c (check_case_table): Simpler code.
5420 * window.c (Freplace_buffer_in_windows):
5421 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5422 (and similar implementation) as Fdelete_windows_on.
5425 * alloc.c (Fmake_list):
5426 * alloc.c (make_vector):
5427 * alloc.c (Fmake_vector):
5428 * alloc.c (make_bit_vector):
5429 * alloc.c (Fmake_bit_vector):
5430 * alloc.c (Fbit_vector):
5431 * alloc.c (Fmake_string):
5432 * alloc.c (Fpurecopy):
5433 * alloc.c (Fmemory_limit):
5435 * buffer.c (Fget_buffer):
5436 * buffer.c (Fkill_buffer):
5437 * buffer.c (complex_vars_of_buffer):
5438 * bytecode.c (Fcompiled_function_stack_depth):
5439 * callint.c (Fprefix_numeric_value):
5441 * event-stream.c (Fread_key_sequence):
5443 * casetab.c (Fcase_table_p):
5444 * casetab.c (check_case_table):
5445 * casetab.c (Fset_case_table):
5446 * casetab.c (Fset_standard_case_table):
5448 * chartab.c (Fchar_table_type):
5449 * chartab.c (Freset_char_table):
5450 * chartab.c (Fget_char_table):
5451 * chartab.c (Fget_range_char_table):
5452 * chartab.c (Fput_char_table):
5453 * chartab.c (Fmap_char_table):
5454 * chartab.c (Fcategory_table_p):
5455 * chartab.c (Fcheck_category_at):
5456 * chartab.c (Fchar_in_category_p):
5457 * chartab.c (Fcategory_table):
5458 * chartab.c (Fcopy_category_table):
5459 * chartab.c (Fset_category_table):
5460 * chartab.c (Fcategory_designator_p):
5461 * chartab.c (Fcategory_table_value_p):
5462 * cmds.c (Fdelete_char):
5463 * cmds.c (Fdelete_backward_char):
5464 * cmds.c (Fself_insert_command):
5465 * cmds.c (Fself_insert_internal):
5466 * console.c (Fvalid_console_type_p):
5467 * console.c (Fcdfw_console):
5468 * console.c (Fconsole_type):
5469 * console.c (Fconsole_name):
5470 * console.c (Fconsole_device_list):
5471 * console.c (Fconsole_on_window_system_p):
5475 * data.c (Fsubr_interactive):
5476 * data.c (Fchar_to_int):
5477 * data.c (Fint_to_char):
5480 * data.c (Fnumber_to_string):
5481 * data.c (Fstring_to_number):
5483 * database.c (mark_database):
5484 * database.c (finalize_database):
5485 * database.c (Fdatabase_live_p):
5486 * database.c (Fdatabasep):
5487 * device-x.c (Fx_get_resource):
5488 * device.c (Fdfw_device):
5490 * dired.c (Ffile_name_completion):
5491 * dired.c (Ffile_name_all_completions):
5492 * dired.c (Fuser_name_completion):
5493 * dired.c (Fuser_name_completion_1):
5494 * dired.c (Fuser_name_all_completions):
5495 * doc.c (Fdocumentation):
5496 * doc.c (Fdocumentation_property):
5497 * doc.c (Fsubstitute_command_keys):
5499 * editfns.c (Fchar_to_string):
5500 * editfns.c (Fstring_to_char):
5501 * editfns.c (Ftemp_directory):
5502 * editfns.c (Finsert_char):
5503 * editfns.c (Fbuffer_substring_no_properties):
5504 * editfns.c (Fnarrow_to_region):
5505 * editfns.c (Fchar_equal):
5506 * editfns.c (Fchar_Equal):
5507 * editfns.c (Ftranspose_regions):
5508 * emacs.c (Fdump_emacs):
5510 * eval.c (Fcommand_execute):
5511 * eval.c (Fautoload):
5512 * eval.c (Fbacktrace):
5513 * eval.c (Fbacktrace_frame):
5515 * events.c (Fcopy_event):
5516 * events.c (Fcharacter_to_event):
5517 * events.c (Fevent_button):
5518 * events.c (Fevent_process):
5520 * extents.c (Fnext_extent_change):
5521 * extents.c (Fextent_property):
5523 * faces.c (Fmake_face):
5525 * file-coding.c (Fencode_shift_jis_char):
5526 * file-coding.c (Fencode_big5_char):
5527 * fileio.c (Ffile_name_directory):
5528 * fileio.c (Ffile_name_nondirectory):
5529 * fileio.c (Ffile_name_as_directory):
5530 * fileio.c (Fdirectory_file_name):
5531 * fileio.c (Ffile_truename):
5532 * fileio.c (Fsubstitute_in_file_name):
5533 * fileio.c (Ffile_modes):
5534 * fileio.c (Fset_file_modes):
5535 * fileio.c (Fset_default_file_modes):
5536 * fileio.c (Fverify_visited_file_modtime):
5537 * floatfns.c (Facos):
5538 * floatfns.c (Fasin):
5539 * floatfns.c (Fatan):
5540 * floatfns.c (Fcos):
5541 * floatfns.c (Fsin):
5542 * floatfns.c (Ftan):
5543 * floatfns.c (Fbessel_j0):
5544 * floatfns.c (Fbessel_j1):
5545 * floatfns.c (Fbessel_jn):
5546 * floatfns.c (Fbessel_y0):
5547 * floatfns.c (Fbessel_y1):
5548 * floatfns.c (Fbessel_yn):
5549 * floatfns.c (Ferf):
5550 * floatfns.c (Ferfc):
5551 * floatfns.c (Flog_gamma):
5552 * floatfns.c (Fexp):
5553 * floatfns.c (Fexpt):
5554 * floatfns.c (Flog):
5555 * floatfns.c (Flog10):
5556 * floatfns.c (Fsqrt):
5557 * floatfns.c (Fcube_root):
5558 * floatfns.c (Facosh):
5559 * floatfns.c (Fasinh):
5560 * floatfns.c (Fatanh):
5561 * floatfns.c (Fcosh):
5562 * floatfns.c (Fsinh):
5563 * floatfns.c (Ftanh):
5564 * floatfns.c (Fabs):
5565 * floatfns.c (Ffloat):
5566 * floatfns.c (Flogb):
5567 * floatfns.c (Fceiling):
5568 * floatfns.c (Ffloor):
5569 * floatfns.c (Fround):
5570 * floatfns.c (Ftruncate):
5571 * floatfns.c (Ffceiling):
5572 * floatfns.c (Fffloor):
5573 * floatfns.c (Ffround):
5574 * floatfns.c (Fftruncate):
5575 * fns.c (Fstring_equal):
5576 * fns.c (Fstring_lessp):
5581 * fns.c (Fsubstring):
5583 * fns.c (Fold_assoc):
5584 * fns.c (assoc_no_quit):
5586 * fns.c (Fold_assq):
5587 * fns.c (assq_no_quit):
5589 * fns.c (Fold_rassoc):
5591 * fns.c (Fold_rassq):
5592 * fns.c (rassq_no_quit):
5593 * fns.c (Fremassoc):
5594 * fns.c (remassoc_no_quit):
5596 * fns.c (remassq_no_quit):
5597 * fns.c (Fremrassoc):
5598 * fns.c (Fremrassq):
5599 * fns.c (remrassq_no_quit):
5601 * fns.c (Fplist_get):
5602 * fns.c (Fplist_put):
5603 * fns.c (Fplist_remprop):
5604 * fns.c (Fplist_member):
5605 * fns.c (Flax_plist_get):
5606 * fns.c (Flax_plist_put):
5607 * fns.c (Flax_plist_remprop):
5608 * fns.c (Flax_plist_member):
5610 * fns.c (Fold_equal):
5612 * fns.c (Fbase64_encode_region):
5613 * fns.c (Fbase64_encode_string):
5614 * fns.c (Fbase64_decode_region):
5616 * frame.c (frame_matches_frame_spec):
5617 * frame.c (device_matches_device_spec):
5618 * frame.c (next_frame):
5619 * frame.c (previous_frame):
5620 * frame.c (Fnext_frame):
5621 * frame.c (Fprevious_frame):
5622 * frame.c (Fframe_property):
5623 * frame.c (Fset_frame_height):
5624 * frame.c (Fset_frame_size):
5628 * glyphs.c (decode_error_behavior_flag):
5629 * glyphs.c (Fmake_image_instance):
5630 * indent.c (Findent_to):
5631 * intl.c (Fignore_defer_gettext):
5632 * keymap.c (Fkeymapp):
5633 * keymap.c (Flookup_key):
5635 * lread.c (Fload_internal):
5636 * lread.c (Feval_buffer):
5637 * lread.c (Feval_region):
5638 * macros.c (Fexecute_kbd_macro):
5639 * marker.c (set_marker_internal):
5640 * marker.c (Fset_marker):
5641 * marker.c (set_marker_restricted):
5642 * marker.c (Fcopy_marker):
5643 * marker.c (noseeum_copy_marker):
5645 * menubar.c (Fpopup_menu):
5647 * mule-charset.c (Fcharset_name):
5648 * mule-charset.c (Fchar_charset):
5649 * mule-charset.c (Fchar_octet):
5650 * mule-charset.c (Fsplit_char):
5651 * mule-wnnfns.c (Fwnn_open):
5652 * mule-wnnfns.c (Fwnn_dict_comment):
5653 * mule-wnnfns.c (Fwnn_quit_henkan):
5654 * mule-wnnfns.c (Fwnn_word_toroku):
5655 * mule-wnnfns.c (Fwnn_word_sakujo):
5656 * mule-wnnfns.c (Fwnn_word_use):
5657 * mule-wnnfns.c (Fwnn_hindo_set):
5659 * objects.c (Fmake_color_instance):
5660 * objects.c (Fmake_font_instance):
5661 * print.c (Fwrite_char):
5663 * process.c (mark_process):
5664 * process.c (print_process):
5665 * process.c (get_process_from_usid):
5666 * process.c (Fprocessp):
5667 * process.c (Fprocess_live_p):
5668 * process.c (Fget_process):
5669 * process.c (Fget_buffer_process):
5670 * process.c (get_process):
5671 * process.c (Fprocess_id):
5672 * process.c (Fprocess_name):
5673 * process.c (Fprocess_command):
5674 * process.c (init_process_io_handles):
5675 * process.c (start_process_unwind):
5676 * process.c (Fstart_process_internal):
5677 * process.c (Fopen_multicast_group_internal):
5678 * process.c (Fset_process_window_size):
5679 * process.c (read_process_output):
5680 * process.c (send_process):
5681 * process.c (Fprocess_tty_name):
5682 * process.c (Fset_process_buffer):
5683 * process.c (Fprocess_buffer):
5684 * process.c (Fprocess_mark):
5685 * process.c (set_process_filter):
5686 * process.c (Fset_process_filter):
5687 * process.c (Fprocess_filter):
5688 * process.c (Fprocess_send_region):
5689 * process.c (Fprocess_send_string):
5690 * process.c (exec_sentinel):
5691 * process.c (Fset_process_sentinel):
5692 * process.c (Fprocess_sentinel):
5693 * process.c (status_notify):
5694 * process.c (Fprocess_status):
5695 * process.c (Fprocess_exit_status):
5696 * process.c (process_send_signal):
5697 * process.c (Fprocess_send_eof):
5698 * process.c (deactivate_process):
5699 * process.c (remove_process):
5700 * process.c (Fdelete_process):
5701 * process.c (kill_buffer_processes):
5702 * process.c (Fprocess_kill_without_query):
5703 * process.c (Fprocess_kill_without_query_p):
5705 * rangetab.c (Fget_range_table):
5706 * rangetab.c (Fput_range_table):
5707 * rangetab.c (Fremove_range_table):
5708 * rangetab.c (Fclear_range_table):
5710 * search.c (Fskip_chars_forward):
5711 * search.c (Fskip_chars_backward):
5712 * search.c (Fskip_syntax_forward):
5713 * search.c (Fskip_syntax_backward):
5714 * search.c (search_command):
5715 * search.c (Freplace_match):
5716 * search.c (Fregexp_quote):
5717 * select.c (Fown_selection_internal):
5718 * select.c (Fselection_owner_p):
5719 * select.c (Fselection_exists_p):
5720 * select.c (Fget_selection_internal):
5723 * symbols.c (Fintern):
5724 * symbols.c (Fintern_soft):
5725 * symbols.c (Funintern):
5726 * symbols.c (Fapropos_internal):
5727 * symbols.c (Fset_default):
5729 * syntax.c (Fsyntax_table_p):
5730 * syntax.c (Fcopy_syntax_table):
5731 * syntax.c (Fset_syntax_table):
5732 * syntax.c (Fchar_syntax):
5733 * syntax.c (syntax_match):
5734 * syntax.c (Fmatching_paren):
5735 * syntax.c (Fforward_word):
5736 * syntax.c (scan_lists):
5737 * syntax.c (Fscan_lists):
5738 * syntax.c (Fscan_sexps):
5739 * syntax.c (Fparse_partial_sexp):
5740 * toolbar.c (Fcheck_toolbar_button_syntax):
5743 * window.c (Fwindowp):
5744 * window.c (Fwindow_live_p):
5745 * window.c (Fwindow_point):
5746 * window.c (Fdelete_window):
5747 * window.c (Fnext_window):
5748 * window.c (Fprevious_window):
5749 * window.c (Fother_window):
5750 * window.c (window_loop):
5751 * window.c (Fget_lru_window):
5752 * window.c (Fsplit_window):
5753 * window.c (Fenlarge_window):
5754 * window.c (Fenlarge_window_pixels):
5755 * window.c (Fshrink_window):
5756 * window.c (Fshrink_window_pixels):
5757 * window.c (change_window_height):
5758 * window.c (Fwindow_configuration_p):
5759 * window.c (Fcurrent_window_configuration):
5761 * casefiddle.c (casify_object):
5762 * casefiddle.c (Fupcase):
5763 * casefiddle.c (Fdowncase):
5764 * casefiddle.c (Fcapitalize):
5765 * casefiddle.c (Fupcase_initials):
5766 * casefiddle.c (casify_region_internal):
5767 * casefiddle.c (casify_region):
5768 * casefiddle.c (Fupcase_region):
5769 * casefiddle.c (Fdowncase_region):
5770 * casefiddle.c (Fcapitalize_region):
5771 * casefiddle.c (Fupcase_initials_region):
5772 * casefiddle.c (Fupcase_word):
5773 * casefiddle.c (Fdowncase_word):
5774 * casefiddle.c (Fcapitalize_word):
5775 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
5776 Replace 0 with '\0' when working with bytes.
5777 Replace initial "(" with "\(" in docstrings.
5779 2000-11-01 Martin Buchholz <martin@xemacs.org>
5781 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5783 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5785 2000-10-31 Martin Buchholz <martin@xemacs.org>
5787 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
5789 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5791 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5794 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5796 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5797 (inhibit_auto_save_session): New variable.
5798 (vars_of_fileio): Declare and initialize them.
5799 * fileio.c (Fdo_auto_save): Don't create session file if
5800 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5802 2000-10-31 Martin Buchholz <martin@xemacs.org>
5804 * sgiplay.c (play_internal): C++ compilability.
5805 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5806 * callproc.c (Fold_call_process_internal):
5807 Remove unused vars `env', `first'.
5808 * scrollbar.c (update_scrollbar_instance):
5809 #### unused var `current_window'.
5810 * redisplay-tty.c: Put currently unused vars insert_mode_on,
5811 etc. within #ifdef NOT_YET.
5812 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5813 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5814 * specifier.c (specifier_instance):
5815 #### unused var `tag'.
5816 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5818 2000-10-27 Martin Buchholz <martin@xemacs.org>
5821 * fns.c (list_sort):
5822 * fns.c (Ffillarray):
5823 * fns.c (bytecode_nconc2):
5826 * fns.c (Fmapconcat):
5827 Be pedantically 64-bit correct. For the time when someone will
5828 want to have a list with length > 2**32.
5830 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5831 Work around MIPSpro compiler bug.
5833 * process-unix.c (unix_kill_child_process): Add snarky comment.
5834 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
5836 * config.h.in: Oops, _getpt ==> _getpty
5838 2000-10-26 Martin Buchholz <martin@xemacs.org>
5842 Use void*, not char*, as return type of alloca().
5844 * alloc.c (free_marker): Side effect inside assert expression!
5846 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
5848 * mule-charset.c (Fset_charset_ccl_program): To check
5849 if the given ccl program is valid, use setup_ccl_program()
5850 instead of CHECK_VECTOR().
5851 (Fmake_charset): Likewise.
5853 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
5855 * faces.c (get_extent_fragment_face_cache_index):
5856 Fix cachel.merged_faces memory leak.
5858 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
5860 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5861 Reset MSB of octets obtained by DECODE_SJIS
5862 because of the incompatibility with Emacs.
5863 (ccl_driver)<CCL_ENCODE_SJIS>:
5864 Set MSB of octets before passing them to
5865 ENCODE_SJIS because of the incompatibility
5868 2000-10-18 Daiki Ueno <ueno@unixuser.org>
5870 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5871 (DECLARE_LRECORD): Undo the last change.
5872 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5874 2000-10-17 Daiki Ueno <ueno@unixuser.org>
5876 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5877 the implementation to lrecord_implementations_table.
5879 2000-10-14 Daiki Ueno <ueno@unixuser.org>
5881 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5882 initial value of `lrecord_type_##c_name' and
5883 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5884 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5885 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5886 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5887 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5889 2000-10-17 Martin Buchholz <martin@xemacs.org>
5891 * miscplay.c (sndcnv8S_2mono):
5892 (sndcnv2monounsigned):
5893 (sndcnvULaw_2linear):
5895 Remove implementation-defined behavior.
5897 2000-10-12 Martin Buchholz <martin@xemacs.org>
5899 * input-method-xlib.c: Warning suppression.
5901 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
5903 * mule-ccl.c: Sync up with Emacs 21.0.90.
5904 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5906 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5908 (ccl_driver[WriteMultibyteChar2]): Bug fix.
5909 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5910 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5911 leading char belongs to official 2-dimensional charset.
5912 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5913 write the given character as is. Otherwise,
5914 if it is a multibyte char, convert it by
5915 non_ascii_set_charptr_emchar, then write it.
5916 (CCL_WRITE_STRING): Likewise.
5917 (ccl_get_compiled_code): New function.
5918 (setup_ccl_program): When ccl_prog is invalid,
5920 (Fregister_code_conversion_map): New function.
5921 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5923 * mule-ccl.h: Sync up with Emacs 21.0.90.
5924 (Fregister_ccl_program): export it.
5926 * redisplay-msw.c (separate_textual_runs):
5927 If ccl program is not valid, don't do ccl conversion.
5929 * redisplay-x.c (separate_textual_runs): Ditto.
5931 * file-coding.c (Fmake_coding_system):
5932 When type is ccl and value is vector, register it
5933 with a proper symbol. And checks whether the
5934 given ccl program is valid.
5935 (mule_decode): When calling ccl_driver, if src indicates
5936 NULL pointer, set an empty string instead.
5937 (mule_encode): Likewise.
5939 2000-10-11 Martin Buchholz <martin@xemacs.org>
5941 The following large batch of changes gets us back to a state of
5942 C++ compilability. Extbyte is now a char, which means that
5943 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5945 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5947 * sound.c (Fplay_sound): Type correctness.
5949 * select-x.c (hack_motif_clipboard_selection): Type correctness.
5950 (x_get_window_property): Type correctness.
5951 (receive_incremental_selection): unsigned char ==> Extbyte
5952 (selection_data_to_lisp_data): unsigned char ==> Extbyte
5953 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5954 (Fx_store_cutbuffer_internal): Type correctness.
5956 * process-unix.c (try_to_initialize_subtty): Type correctness.
5958 * objects-x.c (x_print_color_instance): Type correctness.
5959 (x_print_font_instance): Type correctness.
5960 (x_list_fonts): SExtbyte ==> Extbyte.
5961 (valid_x_font_name_p): SExtbyte ==> Extbyte.
5962 (x_find_charset_font): SExtbyte ==> Extbyte.
5963 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
5964 (truename_via_XListFonts): SExtbyte ==> Extbyte.
5965 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5968 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5969 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5970 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5971 (BYTE_C0_P): Use bit ops for char-signedness safety.
5972 (BYTE_C1_P): Use bit ops for char-signedness safety.
5973 (CHARSET_BY_LEADING_BYTE):
5974 (CHARSET_BY_ATTRIBUTES):
5975 Always use inline function.
5976 Use type_checking_assert.
5979 * mule-charset.c (non_ascii_charptr_copy_char):
5980 Modify to work with both ASCII and non-ASCII characters.
5981 Improve docs and variable names.
5982 Replace over-clever fall-through switch with a simple loop.
5983 (Lstream_get_emchar_1):
5984 Replace over-clever fall-through switch with a simple loop.
5986 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5987 Warning suppression.
5989 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5990 the return value of Lstream_getc, which could be EOF as well.
5992 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5994 * lisp.h: Make Extbyte a char, not unsigned char, so that external
5995 APIs can be used on Extbytes without casts. Risky!
5999 * input-method-xlib.c (XIM_init_device):
6000 Use Xlib.h instead of IntrinsicP.h.
6001 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
6002 which will break in X11R7.
6003 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
6004 to call XRegisterIMInstantiateCallback with correct types.
6006 * gui-x.c (button_item_to_widget_value): Type correctness.
6008 * glyphs.c (bitmap_to_lisp_data): Type correctness.
6010 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
6011 (xbm_instantiate_1): Type correctness.
6012 (BUILD_GLYPH_INST): Type correctness.
6014 * fileio.c (Fsubstitute_in_file_name): Type correctness.
6017 (decode_coding_sjis):
6018 (decode_coding_big5):
6019 (decode_coding_ucs4):
6020 (decode_coding_utf8):
6021 (decode_coding_iso2022):
6022 (decode_coding_no_conversion):
6023 Make all decoding functions take an Extbyte * arg.
6024 (encode_coding_sjis):
6025 (encode_coding_big5):
6026 (encode_coding_ucs4):
6027 (encode_coding_utf8):
6028 (encode_coding_iso2022):
6029 (encode_coding_no_conversion):
6030 Make all encoding functions take a Bufbyte * arg.
6031 Use size_t instead of unsigned int for memory sizes.
6032 Only cast to unsigned char whenever dereferencing Extbyte *.
6034 * doc.c (unparesseuxify_doc_string): Type correctness.
6036 * console-x.c (split_up_display_spec):
6037 Rewrite without using details of internal string representation.
6038 (x_semi_canonicalize_device_connection): Type correctness.
6041 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
6042 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
6043 (HAVE_XFREE386): Removed.
6045 * buffer.h (DEC_CHARPTR): `const' correctness.
6046 (bufbyte_strcmp): New.
6047 (bufbyte_memcmp): New.
6049 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
6051 * buffer.h (XCHAR_OR_CHAR_INT):
6052 Always use inline function.
6053 Remove redundant type checking assert() - XINT will abort quite nicely.
6055 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6057 * search.c (Freplace_match): Set newtext to an empty string.
6059 2000-10-10 Martin Buchholz <martin@xemacs.org>
6061 * s/decosf1-3.h: Remove #include of stropts.h
6062 * s/ptx.h: Remove #include of stropts.h
6063 * s/usg5-4.h: Remove #include of stropts.h
6066 Use stropts.h, not sys/stropts.h.
6067 Use strtio.h, not sys/strtio.h.
6069 2000-10-04 Martin Buchholz <martin@xemacs.org>
6071 * XEmacs 21.2.36 is released.
6073 2000-09-21 Andy Piper <andy@xemacs.org>
6075 * glyphs-x.c (x_redisplay_widget): make sure non-structural
6076 changes still involve copying the widget tree.
6077 (update_widget_face): make sure a change is register in the widget
6078 tree. Call update_tab_widget_face appropriately.
6079 (update_tab_widget_face): ditto.
6080 (x_tab_control_redisplay): make sure non-structural changes still
6081 involve copying the widget tree.
6083 2000-08-31 Daiki Ueno <ueno@unixuser.org>
6085 * lread.c (locate_file): Check the path element is non-nil.
6087 2000-10-02 Martin Buchholz <martin@xemacs.org>
6089 * lisp.h: Warning suppression for SCO compilers.
6091 * redisplay-tty.c (reset_tty_modes): Fix crash.
6092 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6094 2000-09-27 Martin Buchholz <martin@xemacs.org>
6096 Big signal/process handling overhaul. Bugs fixed:
6097 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6098 M-x comint-kill-subjob should work for both values nil and t of
6099 process-connection-type. It was broken on most platforms.
6100 Testing on Irix and Cygwin still needed. Other plaforms tested.
6101 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
6102 * process-unix.c: Signal/Process handling overhaul.
6103 (pty_name): make 64 bytes, as `expect' does, for paranoia.
6104 (allocate_pty): Use all available modern methods of allocating
6105 ptys, falling back to old style BSD allocation as a last resort.
6106 Use allegedly more secure Unix98 pty allocation by default.
6107 (allocate_pty_the_old_fashioned_way): New. the last resort.
6108 (unix_create_process): Push ptem, ldterm, ttcompat where
6109 available. Autoconfiscate.
6110 (try_to_initialize_subtty): New.
6111 (unix_kill_child_process): Proper signal handling for ptys on most
6112 platforms, using special knowledge of AIX, BSD, etc...
6113 (unix_create_process): Always disconnect_controlling_terminal() for
6114 subprocesses, whether using ptys or not.
6115 * process.h: Remove old getpt-dependent PTY code.
6116 * process.c (Fprocess_send_signal): New, obvious generic function.
6117 (decode_signal): New.
6118 (Finterrupt_process):
6122 (Fcontinue_process):
6123 (Fsignal_process): Use decode_signal.
6124 (process_send_signal):
6125 Many docstring corrections.
6126 Allow any signal to be sent to a process object.
6127 * config.h.in: Add symbols for big signal/process overhaul.
6128 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6129 * sysproc.h: Include process-related headers, where available:
6130 sys/stropts.h sys/strtio.h pty.h libutil.h
6138 Remove old S&M pty stuff.
6139 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6140 * systty.h: Simplify cpp hackery, improve comments.
6141 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6143 * editfns.c (Fformat_time_string):
6144 Be a little more paranoid with the return value of ctime.
6146 * fileio.c (check_executable):
6148 Use symbolic constants X_OK, W_OK.
6150 * console-x.c (split_up_display_spec): Fix a warning.
6152 2000-10-02 Martin Buchholz <martin@xemacs.org>
6154 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6155 * ntproc.c (sys_spawnve): make_string ==> build_string
6156 Small clarity improvements.
6158 2000-09-30 Martin Buchholz <martin@xemacs.org>
6160 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6162 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6164 * config.h.in (HAVE_STRCASECMP): Remove.
6166 2000-09-29 Martin Buchholz <martin@xemacs.org>
6168 * redisplay-output.c (redisplay_output_pixmap):
6169 Cleaner and possibly more 64-bit correct code.
6171 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
6173 * dumper.c (pdump_load_finish): move restoration of
6174 `noninteractive1' to emacs.c (main_1).
6175 * emacs.c (main_1): protect LISP-visible command-line flags
6178 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
6180 * Makefile.in.in (versionclean): Use EXE_TARGET and
6181 DUMP_TARGET instead of literal program names.
6183 2000-09-20 Martin Buchholz <martin@xemacs.org>
6185 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6187 2000-09-19 Martin Buchholz <martin@xemacs.org>
6189 * *: Spelling mega-patch
6191 2000-09-19 Martin Buchholz <martin@xemacs.org>
6193 * fns.c (bad_bad_turtle):
6194 Delete "Eek!" comment, since we fixed the bug to which it refers.
6196 2000-09-16 Martin Buchholz <martin@xemacs.org>
6198 * alloca.c: Replace REGISTER with register.
6200 2000-09-16 Daiki Ueno <ueno@unixuser.org>
6202 * file-coding.c (ucs_to_char): Use countof.
6204 2000-09-16 Martin Buchholz <martin@xemacs.org>
6206 * file-coding.c: (ucs_to_char):
6207 (complex_vars_of_file_coding):
6208 Use countof instead of sizeof.
6209 Use CHECK_NATNUM instead of CHECK_INT.
6211 * sysdep.c (strcasecmp): Remove.
6212 * device-x.c (ascii_strcasecmp): New.
6213 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6214 Avoid using non-standard non-portable strcasecmp.
6216 2000-09-16 Martin Buchholz <martin@xemacs.org>
6218 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6219 * font-lock.c: remove reference to emacsfns.h.
6220 * search.c: small doc improvement.
6221 * event-Xt.c: correct file names in comments.
6222 * console-x.h Correct file names in comments.
6223 * frame.c: Correct file names in comments.
6224 * event-stream.c: remove Energize from comments.
6226 2000-09-15 Martin Buchholz <martin@xemacs.org>
6228 * symeval.h (DEFERROR_STANDARD):
6231 (DEFSYMBOL_NO_DUMP):
6232 (DEFSYMBOL_MULTIWORD_PREDICATE):
6233 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6235 The construct &##name is not sensible C.
6236 Fixes compilation errors with Unixware native compiler.
6238 2000-09-14 Martin Buchholz <martin@xemacs.org>
6240 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6241 (next_frame_internal): Removed. We now just have next_frame.
6243 Write a simpler and cleaner one-pass algorithm.
6244 Remove called_from_delete_device arg and #ifdefed-out code.
6246 Renamed from prev_frame. Update callers.
6247 Cleaned up to have an analogous implementation to next_frame.
6248 (other_visible_frames_internal): Remove the
6249 called_from_delete_device bogus arg, and hence, remove this
6250 function. Just use other_visible_frames().
6252 * window.c (Fnext_window):
6254 Since next_frame() is guaranteed to return a frame, remove check
6255 for nil inserted in previous patch.
6258 Make code look more like Fnext_window.
6260 Respect the `console' arg when iterating through windows.
6261 Fixes bug: (get-buffer-window buffer t device) not respecting
6263 This function needs more work, as others have pointed out.
6265 * frame.h: Rename prev_frame to previous_frame.
6266 device_matches_console_spec no longer takes a `frame' arg.
6271 Use EMACS_BLOCK_SIGNAL instead of sigblock.
6272 From "Golubev I. N." <gin@mo.msk.ru>.
6274 * make-src-depend: Fix typo.
6276 2000-09-13 Martin Buchholz <martin@xemacs.org>
6278 * window.c (Fnext_window):
6279 next_frame() might return nil, not a frame.
6281 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6283 * frame.c (next_frame_internal):
6284 We've passed a frame if we've passed its device.
6286 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6287 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6289 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
6291 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6292 Allow option to suppress accelerators in menu/dialog items.
6293 (populate_or_checksum_helper): Pass dialog title through above.
6295 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
6297 * event-msw.c (mswindows_key_to_emacs_keysym):
6298 Add "pause" key, fix "menu" key.
6300 2000-09-09 Martin Buchholz <martin@xemacs.org>
6302 * eval.c (reinit_vars_of_eval):
6303 Increase max_lisp_eval_depth to 1000,
6304 required for thai-xtis.el to byte-compile under some circumstances.
6306 2000-09-04 Martin Buchholz <martin@xemacs.org>
6308 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6311 2000-09-01 Martin Buchholz <martin@xemacs.org>
6313 * make-src-depend: Make the generated Makefiles smaller.
6315 * s/hpux.h (SETUP_SLAVE_PTY):
6316 Provide a %d in the format string for the errno argument.
6318 * editfns.c (Ftemp_directory):
6320 Avoid buffer overrun on very long file name.
6322 * input-method-xlib.c (XIM_init_device):
6323 6th parameter of XRegisterIMInstantiateCallback has different
6324 pointer types on different OSes, so simply cast to (void *).
6326 * unexhp9k800.c: Warning fixes. Fiddly changes.
6328 * sysdll.c (dll_open):
6329 shl_load will hang hard if passed a NULL filename.
6330 Simply return NULL for compatibility with dlopen.
6331 * sysdll.c: Conform to XEmacs coding standards.
6333 * sysdep.c (get_pty_max_bytes):
6334 Support pty input lines longer than 512 bytes on HP-UX 10.20.
6336 2000-08-31 Martin Buchholz <martin@xemacs.org>
6338 * tooltalk.c: Add #include <syssignal.h>
6340 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
6342 * s/hpux.h: Don't use undefined function sigunblock().
6344 2000-08-31 Martin Buchholz <martin@xemacs.org>
6346 * config.h.in: Add HAVE_BALLOON_HELP.
6347 * emacs.c: Use HAVE_BALLOON_HELP.
6348 * Makefile.in.in (x_objs):
6349 Make Balloon Help conditional on finding shape.h.
6351 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
6353 * syntax.c (regex_emacs_buffer_p): New variable.
6354 * syntax.h (regex_emacs_buffer_p): extern.
6355 * search.c (looking_at_1):
6357 (fast_string_match):
6358 (search_buffer): Set regex_emacs_buffer_p.
6359 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6360 when before_dot, at_dot, after_dot.
6362 2000-08-23 Andy Piper <andy@xemacs.org>
6364 * gui-x.c (popup_selection_callback): Only set action_occurred
6365 when we really have an image instance.
6366 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6368 2000-08-23 Andy Piper <andy@xemacs.org>
6370 * gui-msw.c (mswindows_handle_gui_wm_command): set
6372 * gui-x.c (popup_selection_callback): ditto.
6374 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6375 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6376 (struct Lisp_Image_Instance): add action_occurred flag.
6378 * glyphs.c (redisplay_subwindow): use action_occurred flag.
6379 (image_instance_changed): ditto.
6380 (reset_frame_subwindow_instance_cache): only unmap windows - do
6381 not remove them from the cache also.
6383 * glyphs-widget.c (tab_control_update): better debug.
6384 (progress_gauge_update): ditto.
6385 (layout_update): ditto.
6386 (layout_instantiate): ditto.
6387 (tab_control_order_only_changed): cope with null pending items.
6389 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6390 debug. Force selection of an item when an action occurred. Cope
6391 with null pending_items.
6392 (mswindows_progress_gauge_redisplay): better debug.
6393 * glyphs-x.c (x_tab_control_redisplay): ditto.
6395 * redisplay.c (redisplay_frame): reset the frame cache if the
6398 * window.c (Fset_window_configuration): potentially re-enable
6400 (window_unmap_subwindows): need to finalize instances here since
6401 it is only used in mark_window_as_deleted.
6403 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
6405 * nas.c (SndOpenDataForReading):
6406 nas.c (WaveOpenDataForReading):
6407 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6408 Somehow escaped from the 2000-08-14 patch.
6410 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6412 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6413 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6415 2000-08-21 Andy Piper <andy@xemacs.org>
6417 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6418 window if it is not already displayed.
6420 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6421 it is not already displayed.
6423 * window.c (Fset_window_configuration): don't reset the frame
6426 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6427 instances from the frame cache if we are actually finalizing them.
6428 (reset_frame_subwindow_instance_cache): reset frame cache only
6429 after unmapping everything.
6430 (map_subwindow): set displayed flag after mapping.
6432 2000-08-21 Martin Buchholz <martin@xemacs.org>
6434 * data.c (indirect_function):
6435 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6437 * eval.c (function_argcount):
6438 Use original function when signaling errors.
6440 2000-08-18 Andy Piper <andy@xemacs.org>
6442 * frame.c (delete_frame_internal): use new
6443 free_frame_subwindow_instances name.
6445 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6446 (add_tab_item): make return type correct.
6447 (mswindows_tab_control_instantiate): assert index of tab.
6448 (mswindows_tab_control_redisplay): Re-code to use
6449 gui_item_equal_sans_selected and gui_item_list_find_selected.
6451 * glyphs-widget.c (tab_control_update): Correct comment.
6453 * window.c (window_unmap_subwindows): use new
6454 unmap_subwindow_instance_cache_mapper.
6455 (window_unmap_subwindows_cache_mapper): deleted.
6456 (Fset_window_configuration): comparisons should now be with
6457 EQ. Preserve the subwindow instance cache across configuration
6459 (allocate_window): ditto.
6460 (make_dummy_parent): ditto.
6462 * glyphs.c (free_frame_subwindow_instances): rename from
6463 free_frame_subwindow_instance_cache. finalize all instances rather
6464 than just those in the display cache.
6465 (finalize_all_subwindow_instances): walk windows unmapping and
6466 finalizing subwindows.
6467 (unmap_subwindow_instance_cache_mapper): moved from
6468 window.c. Allow finalization as well as unmapping.
6470 * gui.c (gui_item_list_find_selected): new function.
6472 * gui.h (gui_item_list_find_selected): declare.
6474 * glyphs-x.c (x_tab_control_redisplay): pick tab
6475 explicitly. Re-code to use gui_item_equal_sans_selected and
6476 gui_item_list_find_selected.
6478 * glyphs-x.h: add lwlib-utils.h
6480 * buffer.c (Frecord_buffer): undo previous change.
6482 2000-08-09 Vin Shelton <acs@xemacs.org>
6484 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6485 possible. Create temporary files more securely. The patch was
6486 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6487 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
6488 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6491 2000-08-07 Ben Wing <ben@xemacs.org>
6493 * getloadavg.c: remove duplicate (and windows-breaking)
6494 includes of fcntl.h and sys/file.h.
6496 * nt.c: remove duplicate getloadavg() definition.
6498 * sysdll.h (Qdll_filename_encoding): add missing stand-in
6501 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
6503 * eval.c (function_argcount): If function needs to be autoloaded
6504 actually use the loaded definition.
6507 2000-08-05 Ben Wing <ben@xemacs.org>
6509 * getloadavg.c: add prototype for getloadavg(). remove
6510 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6511 of the code). remove duplicate header includes.
6513 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6515 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6516 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6517 useful load average.
6519 * alloc.c (reinit_alloc_once_early): removed references to
6520 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6521 the lisp vars are the only things referencing the malloc_sbrk_*
6522 vars, and they were already if 0'd out. these vars only exist
6523 in the older malloc.c, which is basically unused, and they're
6524 only for informational purposes.
6526 * m\*.h: removed useless VIRT_ADDR_VARIES.
6528 * m\powerpc.h: removed stray NO_ARG_ARRAY.
6530 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
6532 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6533 color if the image is a mono pixmap.
6535 2000-07-30 Ben Wing <ben@xemacs.org>
6537 * Makefile.in.in (release):
6540 * buffer.c (directory_is_current_directory):
6541 * dired-msw.c (mswindows_get_files):
6543 * dired.c (Fdirectory_files):
6544 * dired.c (file_name_completion_stat):
6545 * dired.c (Ffile_attributes):
6546 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6547 preprocessor tricks, to avoid problems on some machines
6550 * callproc.c (egetenv): GC docs.
6553 * console-msw.h (struct mswindows_dialog_id):
6554 * lrecord.h (lrecord_type):
6555 New object for use with MSW dialogs.
6557 * console.h (struct console_methods):
6558 New enable/disable frame methods, for proper modal dialogs.
6560 * device-msw.c (msprinter_default_printer): Fix to follow
6561 proper Mule conventions.
6564 * device-msw.c (signal_open_printer_error):
6565 * device-msw.c (msprinter_init_device):
6566 * device-msw.c (ensure_not_printing):
6567 * device-msw.c (plist_get_margin):
6568 * device-msw.c (Fmsprinter_select_settings):
6569 * device-msw.c (finalize_devmode):
6570 * device-msw.c (Fmsprinter_settings_despecialize):
6571 * device-msw.c (signal_enum_priner_error):
6572 * extents.c (decode_extent):
6573 * extents.c (decode_map_extents_flags):
6574 * extents.c (decode_extent_at_flag):
6575 * extents.c (Fextent_at):
6576 * extents.c (Fextents_at):
6577 * extents.c (symbol_to_glyph_layout):
6578 [[[[2]]]] Use structured errors.
6581 * dialog-msw.c (mswindows_is_dialog_msg):
6582 * dialog-msw.c (mark_mswindows_dialog_id):
6583 * dialog-msw.c (dialog_proc):
6584 * dialog-msw.c (handle_question_dialog_box):
6585 * dialog-msw.c (syms_of_dialog_mswindows):
6586 Define new object to clean up marking; use it as a dialog identifier.
6587 Call new delete-dialog-box-hook.
6589 * dialog-x.c (dbox_selection_callback):
6590 * dialog-x.c (dbox_descriptor_to_widget_value):
6591 * dialog-x.c (x_make_dialog_box_internal):
6592 Call new delete-dialog-box-hook.
6596 * dialog.c (syms_of_dialog):
6597 * dialog.c (vars_of_dialog):
6598 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6601 * eval.c (signal_call_debugger):
6602 when noninteractive, output stack traces on the console instead
6603 of in a (never-seen) buffer.
6605 * eval.c (signal_type_error):
6606 * eval.c (invalid_argument_2):
6608 new funs for use w/structured errors.
6611 * event-Xt.c (x_to_emacs_keysym):
6612 * event-Xt.c (describe_event):
6613 * event-Xt.c (emacs_Xt_event_handler):
6614 * event-Xt.c (vars_of_event_Xt):
6616 * event-msw.c (mswindows_wnd_proc):
6617 * event-msw.c (vars_of_event_mswindows):
6618 rename {x,mswindows}-debug-events to debug-{}-events for
6619 consistency with other debug-foo variables.
6622 document next-event more clearly.
6624 * fileio.c (Ffile_name_directory):
6625 * fileio.c (Ffile_name_nondirectory):
6626 * fileio.c (Funhandled_file_name_directory):
6627 * fileio.c (file_name_as_directory):
6628 * fileio.c (Ffile_name_as_directory):
6629 * fileio.c (directory_file_name):
6630 * fileio.c (Fdirectory_file_name):
6631 * fileio.c (Fmake_temp_name):
6632 * fileio.c (Ffile_truename):
6633 * fileio.c (Fsubstitute_in_file_name):
6634 * fileio.c (expand_and_dir_to_file):
6635 * fileio.c (barf_or_query_if_file_exists):
6636 * fileio.c (check_executable):
6637 * fileio.c (Ffile_exists_p):
6638 * fileio.c (Ffile_writable_p):
6639 * fileio.c (Ffile_directory_p):
6640 * fileio.c (Ffile_regular_p):
6641 * fileio.c (Ffile_modes):
6642 * fileio.c (Ffile_newer_than_file_p):
6643 * fileio.c (Fverify_visited_file_modtime):
6644 * fileio.c (Fset_visited_file_modtime):
6645 * fileio.c (auto_save_1):
6650 * frame-msw.c (mswindows_init_frame_1):
6651 * frame-msw.c (mswindows_enable_frame):
6652 * frame-msw.c (error_frame_unsizable):
6653 * frame-msw.c (msprinter_init_frame_1):
6654 * frame-msw.c (msprinter_init_frame_3):
6655 * frame-msw.c (console_type_create_frame_mswindows):
6657 implement new enable/disable frame methods.
6660 * frame-x.c (x_enable_frame):
6661 * frame-x.c (console_type_create_frame_x):
6662 implement new enable/disable frame methods.
6665 * frame.c (Fdisable_frame):
6666 * frame.c (syms_of_frame):
6667 * frame.h (struct frame):
6668 implement new enable/disable frame methods/functions.
6673 * glyphs-msw.c (mswindows_widget_instantiate):
6674 comment that initial-focus should be implemented.
6677 * glyphs-widget.c (check_valid_instantiator):
6678 * glyphs-widget.c (check_valid_orientation):
6679 * glyphs-widget.c (check_valid_tab_orientation):
6680 * glyphs-widget.c (check_valid_justification):
6681 * glyphs-widget.c (check_valid_border):
6682 * glyphs-widget.c (check_valid_callback):
6683 * glyphs-widget.c (check_valid_int_or_function):
6684 * glyphs-widget.c (check_valid_string_or_vector):
6685 * glyphs-widget.c (check_valid_item_list_1):
6686 * glyphs-widget.c (widget_validate):
6687 * glyphs-widget.c (combo_box_validate):
6688 * glyphs-widget.c (widget_instantiate):
6689 * glyphs-widget.c (syms_of_glyphs_widget):
6690 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6691 * glyphs-widget.c (image_instantiator_combo_box):
6692 * glyphs-widget.c (image_instantiator_scrollbar):
6693 * glyphs-widget.c (image_instantiator_tab_control):
6694 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6696 support (unimplemented) keyword initial-focus.
6697 reindent long macros.
6699 * glyphs-x.c (x_redisplay_widget):
6700 * glyphs-x.c (x_button_instantiate):
6701 * glyphs-x.c (x_button_redisplay):
6702 * glyphs-x.c (x_progress_gauge_instantiate):
6703 * glyphs-x.c (x_edit_field_instantiate):
6704 * glyphs-x.c (x_combo_box_instantiate):
6705 * glyphs-x.c (x_tab_control_instantiate):
6706 * glyphs-x.c (x_label_instantiate):
6708 * gui-x.c (button_item_to_widget_value):
6709 * gui-x.c (gui_items_to_widget_values_1):
6710 * gui-x.c (gui_item_children_to_widget_values):
6711 * gui-x.c (gui_items_to_widget_values):
6713 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6714 add new flag to gui-parsing routines to indicate whether
6715 accelerator specs should be supported.
6717 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6719 * glyphs.h (struct Lisp_Image_Instance):
6720 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6721 add initial-focus flag.
6724 * gui.c (syms_of_gui):
6725 * gui.c (vars_of_gui):
6726 clean up menu-no-selection-hook.
6729 support delete-dialog-box-hook.
6731 * lread.c (Fload_internal):
6732 * lread.c (locate_file_in_directory_mapper):
6736 * lrecord.h (struct toolbar_button):
6737 * lrecord.h (syms_of_toolbar):
6738 document how to create a new object.
6740 * menubar-msw.c (mswindows_char_is_accelerator):
6741 may be called on frames w/o menus.
6743 * menubar.c (vars_of_menubar):
6744 clean up :filter docs.
6751 * process-nt.c (validate_signal_number):
6752 * process-nt.c (signal_cannot_launch):
6753 * process-nt.c (nt_create_process):
6754 * process-nt.c (nt_send_process):
6755 * process-nt.c (nt_kill_child_process):
6756 * process-nt.c (nt_open_network_stream):
6757 * process-nt.c (syms_of_process_nt):
6759 delete quote-handling. call new lisp code that does it better.
6761 * process-unix.c (connect_to_file_descriptor):
6762 * process-unix.c (allocate_pty):
6763 * process-unix.c (unix_send_process):
6764 * process-unix.c (unix_kill_child_process):
6765 * process-unix.c (unix_open_network_stream):
6766 * process-unix.c (unix_open_multicast_group):
6770 * process.c (Fstart_process_internal):
6771 (2). need to canonicalize process path even if absolute.
6773 * select-msw.c (symbol_to_ms_cf):
6774 * select-msw.c (ms_cf_to_symbol):
6775 * select-msw.c (cf_is_autofreed):
6776 * select-msw.c (mswindows_destroy_selection):
6778 * select.c (syms_of_select):
6780 support dibv5, fix bugs. (from Mike Alexander)
6782 * select.c (Fget_selection_internal):
6783 * select.c (select_convert_out):
6786 * sysdep.c (xemacs_stat):
6791 but keep original stat() here because we provide encapsulation
6795 * sysfile.h (fstat):
6796 remove stat garbage.
6800 don't include tchar.h. it's inappropriate because it makes
6801 compile-time distinctions when we want runtime distinctions.
6802 (we provide our own tchar replacements)
6805 use default object printer for toolbar-button.
6808 make sure we don't encapsulate.
6810 * window.c (vars_of_window):
6811 emphasize that temp-buffer-show-hook is obsolete.
6813 2000-08-05 Martin Buchholz <martin@xemacs.org>
6815 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6816 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6818 * events.c (Fevent_timestamp_lessp):
6819 Not 64-bit clean. Use EMACS_INT, not int.
6821 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
6823 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6824 unsigned int and changed the last enum to
6825 lrecord_type_last_built_in_type.
6826 (lrecord_implementations_table): changed prototype to know how
6827 long the array is supposed to be.
6828 (lrecord_type_count): new unsigned int to keep track of the
6829 current number of lisp lrecord types.
6830 (DEFINE_EXTERNAL_LRECORD):
6831 (DECLARE_EXTERNAL_LRECORD): Added these two for external
6832 dynamic-modules to declare new lisp types. They are the same
6833 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6834 int for each new type, and increment lrecord_type_count by 1.
6836 * alloc.c (lrecord_implementations_table): Changed to reference
6837 lrecord_type_last_built_in_type for the size of the array.
6838 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6840 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6842 * glyphs.h (check_valid_item_list): Renamed from
6843 check_valid_item_list_1.
6845 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6847 * select.c (Qselect_coerce): New.
6848 * select.c (Vselection_coercion_alist): New.
6849 * select.c (syms_of_select): Declare.
6850 * select.c (get-selection-internal): Use it.
6851 Use the new select-coerce functionality.
6853 * select.c (select_coerce): New.
6854 * select.h (select_coerce): Declare.
6855 New function to coerce one type of data into another.
6857 2000-08-03 Martin Buchholz <martin@xemacs.org>
6859 * callproc.c (Fcall_process_internal):
6860 (Fcall_process_internal):
6861 * process-unix.c (unix_create_process):
6862 Save and restore the value of errno, so that error messages are accurate.
6864 2000-08-01 Martin Buchholz <martin@xemacs.org>
6866 * elhash.c (print_hash_table):
6867 Fix printing of hash tables to also use `key-and-value' instead of `t'.
6868 Prettify docstrings and indentation.
6870 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
6872 * window.c (Fwindow_pixel_edges): Subtract frame border and
6875 2000-07-31 Andy Piper <andy@xemacs.org>
6877 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6878 will acknowledge the change.
6880 * glyphs.h: declare tab_control_order_only_changed.
6882 * glyphs-x.c (x_tab_control_redisplay): use
6883 tab_control_order_only_changed.
6885 * glyphs-widget.c (tab_control_order_only_changed): new function.
6887 * glyphs-msw.c (mswindows_tab_control_redisplay): use
6888 tab_control_order_only_changed.
6890 * gui.c (gui_item_equal_sans_selected): new function.
6891 (gui_item_equal): use it.
6893 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6894 :properties in favor of :items..
6896 * glyphs-widget.c (check_valid_item_list): rename from
6897 check_valid_item_list_1.
6898 (check_valid_item_list_1): renamed.
6899 (combo_box_validate): deprecate :properties in favor of :items.
6900 (widget_instantiate): ditto.
6901 (tab_control_update): ditto.
6902 (image_instantiator_combo_box): ditto.
6903 (image_instantiator_tree_view): ditto.
6904 (image_instantiator_tab_control): ditto.
6905 (layout_post_instantiate): remove dead code.
6907 * print.c (debug_print_no_newline): only write to debugger if in
6910 * elhash.c (Fmake_hash_table): update doc string.
6912 * event-msw.c (mswindows_wnd_proc): don't allow processing of
6913 messages whilst in GC. This at least stops XEmacs crashing but has
6914 the potential for wierd behaviour.
6916 2000-07-31 Martin Buchholz <martin@xemacs.org>
6919 Make existence of s&m files optional.
6921 * s/bsd386.h: Remove HAVE_GETLOADAVG.
6922 * s/freebsd.h: Remove HAVE_GETLOADAVG.
6923 * s/gnu.h: Remove HAVE_GETLOADAVG.
6924 * s/netbsd.h: Remove HAVE_GETLOADAVG.
6925 * s/sol2.h: Remove HAVE_GETLOADAVG.
6926 * lisp.h: Remove getloadavg() declaration.
6928 Include <sys/loadavg.h> if available.
6929 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6930 * config.h.in: Group together getloadavg()-related macros.
6931 Use only configure-time tests to detect getloadavg().
6933 2000-07-30 Martin Buchholz <martin@xemacs.org>
6935 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6937 2000-07-25 Andy Piper <andy@xemacs.org>
6939 * syswindows.h: add tchar.h for native builds.
6941 * frame.c (syms_of_frame): remove set-glyph-image.
6943 * general-slots.h: add Qset_glyph_image.
6945 * glyphs-widget.c (layout_update): add domain arg to
6947 (syms_of_glyphs_widget): remove set-glyph-image.
6949 2000-07-23 Ben Wing <ben@xemacs.org>
6951 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6954 2000-07-22 Andy Piper <andy@xemacs.org>
6956 * symsinit.h: add syms_of_win32().
6958 * gui-msw.c (syms_of_gui_mswindows): remove
6959 Fmswindows_shell_execute.
6960 (Fmswindows_shell_execute): moved to win32.c.
6962 * emacs.c (main_1): add syms_of_win32 ().
6964 * win32.c (init_potentially_nonexistent_functions): rewrite in
6965 compiler-friendly terms.
6966 (Fmswindows_shell_execute): move here from gui-msw.c.
6967 (syms_of_win32): new.
6969 * device-msw.c (Fmswindows_printer_list): clean up args to
6971 Don't include tchar under cygwin or mingw.
6972 (msprinter_default_printer): make cygwin-friendly.
6974 2000-07-21 Andy Piper <andy@xemacs.org>
6976 * glyphs-widget.c (image_instantiator_tree_view): use tab
6977 control's update function.
6978 (layout_property): new function. Retrieve items.
6980 * glyphs-msw.c (mswindows_tree_view_redisplay): new
6981 function. Re-populate the tree view from the pending items.
6983 * glyphs.c (instantiate_image_instantiator): Make sure the domain
6984 is designated the parent if the domain is an image instance. This
6985 is needed so that dirtiness can be cascade up the hierarchy and
6986 thus for layout children to be redisplayed correctly.
6987 (allocate_image_instance): rename glyph -> parent.
6989 * redisplay.h: change redisplay_output_layout signature.
6991 * redisplay-msw.c (mswindows_output_display_block): use domain
6994 * redisplay-x.c (x_output_display_block): use domain arg.
6996 2000-07-10 Andy Piper <andy@xemacs.org>
6998 * window.c (Fset_window_configuration): add comment.
7000 * redisplay-output.c (compare_runes):
7001 (redisplay_output_subwindow): redisplay rather than update subwindow.
7002 (redisplay_output_layout): ditto.
7004 * redisplay-msw.c (mswindows_frame_output_end):
7005 (mswindows_frame_output_end): make defer window pos optional.
7007 * lisp.h: add Flast.
7009 * glyphs.h (struct image_instantiator_methods): add dest_mask top
7010 normalize method. Change update method to be for changed
7011 instantiators. Add redisplay method. Change signature of layout
7013 (struct Lisp_Image_Instance): add instantiator.
7014 (IMAGE_INSTANCE_INSTANTIATOR): new.
7015 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
7016 (XIMAGE_INSTANCE_INSTANTIATOR): new.
7017 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
7020 (find_instantiator_differences): new function.
7021 (Fset_instantiator_property): new convenience function.
7022 (check_image_instance_structure): strictly check for vector
7024 (normalize_image_instantiator): make non-static.
7025 (instantiate_image_instantiator): pass on dest_mask and use new
7026 signatures for image_instance_layout and friends.
7027 (mark_image_instance): mark the instantiator. Mark the subwindow
7028 face not the widget face.
7029 (image_instance_equal): add instantiator.
7030 (image_instance_hash): ditto.
7031 (allocate_image_instance): ditto.
7032 (Fset_image_instance_property): removed.
7033 (Fimage_instance_file_name): ditto.
7034 (Fcolorize_image_instance): ditto.
7035 (image_instance_layout): add offsets to be set.
7036 (update_image_instance): new function. update an image instance
7037 from its changed instantiator.
7038 (inherit_normalize): add dest_mask.
7039 (xbm_normalize): ditto.
7040 (xface_normalize): ditto.
7041 (xpm_normalize): ditto.
7042 (text_update): set_property -> update.
7043 (image_instantiate): use the glyph identity as a hash key, not the
7045 (glyph_width): use new image_instance_layout signature.
7046 (glyph_ascent): ditto.
7047 (glyph_descent): ditto.
7048 (glyph_height): ditto.
7049 (glyph_query_geometry): ressurrect.
7050 (glyph_layout): ditto.
7051 (redisplay_subwindow): update -> redisplay.
7052 (syms_of_glyphs): add Fset_instantiator_property.
7053 (image_instantiator_format_create): set_property -> update.
7056 (autodetect_normalize): add dest_maks to signature.
7057 (x_redisplay_subwindow): update -> redisplay.
7058 (x_redisplay_widget): ditto.
7059 (x_button_redisplay): ditto.
7060 (x_progress_gauge_redisplay): ditto.
7061 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7063 (console_type_create_glyphs_x): update -> redisplay.
7064 (image_instantiator_format_create_glyphs_x): ditto.
7067 (check_valid_instantiator): disallow glyphs in the instantiator,
7068 they must now be vectors.
7069 (check_valid_instantiator_list): ditto.
7070 (glyph_instantiator_to_glyph): use internal symbol rather than
7072 (widget_update): renamed from widget_set_property. Call cascaded
7074 (redisplay_widget): renamed from update_widget.
7075 (widget_layout): image_instance_layout now takes position as well
7077 (widget_normalize): ditto.
7078 (widget_instantiate): ditto.
7079 (tab_control_query_geometry) ditto.:
7080 (tab_control_update): renamed from tab_control_set_property.
7081 (progress_gauge_update): set_property -> update.
7082 (layout_normalize): rewrite so that child instantiators are
7084 (layout_update): new function. Create glyphs from the normalized
7085 children and cope with any other layout keywords. We do not
7086 instantiate children here that will be take care of by
7087 redisplay_output_layout.
7088 (layout_instantiate): call layout_update and not much else.
7089 (layout_post_instantiate): not sure whether this is needed
7091 (layout_query_geometry): query glyph geometry rather than
7092 image_instance geometry.
7093 (layout_layout): set offsets from pass in parameters. Use glyph
7094 geometry and layout functions rather than image instance ones.
7095 (native_layout_layout): ditto.
7096 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7097 (image_instantiator_widget): set_property -> update.
7098 (image_instantiator_buttons): ditto.
7099 (image_instantiator_progress_guage): ditto.
7100 (image_instantiator_tab_control): ditto.
7101 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7102 (image_instantiator_layout): add update method.
7104 * glyphs-msw.c (bmp_normalize):
7105 (mswindows_resource_normalize): add dest_mask so that it can be
7106 proprogated by layout_normalize.
7107 (begin_defer_window_pos): make optional because it may not be the
7108 right thing to do and it introduces differences with X.
7109 (mswindows_unmap_subwindow): ditto.
7110 (mswindows_map_subwindow): ditto.
7111 (mswindows_redisplay_subwindow): renamed from
7112 mswindows_update_subwindow.
7113 (mswindows_redisplay_widget): ditto.
7114 (mswindows_button_redisplay): renamed from
7115 mswindows_button_update. Update is now what the instantiation
7116 function does for a changed instantiator.
7117 (mswindows_progress_gauge_instantiate): set the progress value
7118 here if appropriate.
7119 (mswindows_tab_control_redisplay): cope with re-ordering of the
7120 members of the tab widget by simply selecting the new top
7121 widget. This makes things appear ok if you click on a tab.
7122 (mswindows_combo_box_instantiate): image_instance_layout now takes
7123 position as well as size.
7124 (mswindows_progress_gauge_redisplay): renamed from
7125 mswindows_progress_gauge_update.
7126 (console_type_create_glyphs_mswindows): fix update -> redisplay.
7127 (image_instantiator_format_create_glyphs_mswindows): ditto.
7129 * glyphs-eimage.c (jpeg_normalize):
7132 (tiff_normalize): add dest_mask so that it can be proprogated by
7137 (hash_table_weakness_validate):
7138 (decode_hash_table_weakness):
7139 (Fhash_table_weakness):
7141 (syms_of_elhash): use Ben's naming scheme for hashtable types..
7143 * console.h (struct console_methods): move update_* to
7146 2000-07-20 Ben Wing <ben@xemacs.org>
7148 * *.[ch] (XSETOBJ): remove unused middle argument.
7149 lisp-disunion.h: correct wrap_object() to one argument.
7151 2000-07-15 Ben Wing <ben@xemacs.org>
7154 * s/cygwin32.h (CYGWIN_CONV_PATH):
7155 Add missing logb prototype for v1.1.
7156 Use post-b20 names and alias to pre-b20 names when pre-b20.
7158 * s/windowsnt.h: [5].
7160 2000-07-15 Ben Wing <ben@xemacs.org>
7162 * Makefile.in.in (x_objs):
7163 * Makefile.in.in (sheap_objs):
7164 * Makefile.in.in (objs):
7165 added win32.o, cosmetic cleanups.
7167 * alloc.c (Fmake_byte_code):
7168 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7169 etc. macros which declare their own args now.
7171 * alloc.c (syms_of_alloc):
7172 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7175 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7177 * buffer.c (Fget_file_buffer):
7178 Fixed GCPRO problem.
7180 * buffer.c (get_truename_buffer):
7181 Fixed comment about GC checking.
7183 * buffer.c (syms_of_buffer):
7184 Undeclared those dedicated frame funs.
7188 Define convenience macros for internal/external conversions.
7189 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7190 and Qenvironment_variable_encoding for cleaner code.
7193 Remove dedicated-frame; in lisp.
7195 * bytecode.c (funcall_compiled_function):
7198 * bytecode.c (syms_of_bytecode):
7202 * console-msw.c (mswindows_show_console): Rewrote.
7204 * console-msw.c (Fmswindows_debugging_output): New.
7205 Sends to OutputDebugString (special MSWin debugger interface).
7207 * console-msw.c (Fmswindows_message_box):
7208 Fixed stupid bugs so it works when called from kill-emacs.
7210 * console-msw.c (syms_of_console_mswindows):
7211 Declare Fmswindows_debugging_output.
7214 New MSWin prototypes.
7216 * console-msw.h (struct mswindows_frame):
7217 New entry last-click-mods for improved button-modifier support.
7219 * console-msw.h (FRAME_MSWINDOWS_POPUP):
7220 New struct entry `popup' with corresponding accessor.
7223 * console-x.c (split_up_display_spec):
7224 * console-x.c (get_display_arg_connection):
7225 * console-x.c (x_semi_canonicalize_console_connection):
7226 * console-x.c (x_canonicalize_device_connection):
7227 [[[6]]]: Change char to more specific type.
7228 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7230 * console-x.c (x_semi_canonicalize_console_connection):
7231 * console-x.c (x_canonicalize_device_connection):
7232 [[[9]]]: Fix up error signalling to use new structured error system.
7235 [[[4]]]: Define codesys aliases:
7236 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7237 Qx_color_name_encoding, Qx_display_name_encoding.
7239 * console.h (struct console_methods):
7240 New method make_dialog_box_internal supersedes older
7241 popup_dialog_box method.
7244 Define many new errors, part of new structured errors.
7246 * data.c (init_errors_once_early):
7247 * data.c (syms_of_data):
7250 * device-msw.c (mswindows_init_device):
7251 [[[5]]]: Cleanup to support NT 3.51.
7253 * device-msw.c (decode_devmode): Cleanup.
7255 * device-msw.c (mswindows_handle_print_setup_dialog_box):
7256 * device-msw.c (mswindows_handle_print_dialog_box):
7257 * device-msw.c (mswindows_handle_page_setup_dialog_box):
7258 * device-msw.c (syms_of_device_mswindows):
7259 Delete the dialog box primitives recently introduced by Kirill and
7260 instead interface to general dialog box interface.
7263 * device-x.c (compute_x_app_name):
7264 * device-x.c (x_init_device):
7265 * device-x.c (Fx_valid_keysym_name_p):
7266 * device-x.c (Fx_set_font_path):
7270 * device.h (wrap_device): New.
7271 First of its kind; meant to replace XSETDEVICE.
7273 * dialog-msw.c: Many file-dialog symbols.
7275 * dialog-msw.c (mswindows_register_popup_frame): New.
7276 * dialog-msw.c (mswindows_is_dialog_msg): New.
7277 For supporting kbd traversal in dialog boxes.
7279 * dialog-msw.c (dialog_proc):
7280 Support hitting ESC in dialogs.
7282 * dialog-msw.c (struct):
7283 Common dialog box errors.
7285 * dialog-msw.c (handle_file_dialog_box): New.
7286 Add file dialog code.
7288 * dialog-msw.c (handle_question_dialog_box):
7289 Redo existing code to support new question dialog syntax.
7291 * dialog-msw.c (console_type_create_dialog_mswindows):
7292 We support new dialog console method.
7294 * dialog-msw.c (syms_of_dialog_mswindows):
7295 * dialog-msw.c (vars_of_dialog_mswindows):
7296 New file dialog symbols, vars.
7299 * dialog-x.c (maybe_run_dbox_text_callback):
7300 * dialog-x.c (dbox_descriptor_to_widget_value):
7301 * dialog-x.c (x_make_dialog_box_internal):
7302 * dialog-x.c (console_type_create_dialog_x):
7303 Mule-ize entire file.
7304 Redo to support question dialog syntax.
7308 * dialog.c (Fmake_dialog_box_internal):
7309 * dialog.c (syms_of_dialog):
7310 Kill old popup-dialog-box, replace with new primitive.
7311 Just call device method or signal error.
7313 * eldap.c (Fldap_open):
7314 * eldap.c (Fldap_search_basic):
7315 * eldap.c (Fldap_add):
7316 * eldap.c (Fldap_modify):
7321 * emacs.c (make_arg_list_1):
7322 * emacs.c (make_arg_list):
7323 Mule-ize call to dll_init().
7327 * emacs.c (make_argc_argv):
7328 * emacs.c (free_argc_argv):
7329 * emacs.c (init_cmdargs):
7331 * emacs.c (Fkill_emacs):
7332 * emacs.c (Fdump_emacs):
7333 Update comments about what can be used in syms_* etc.
7334 Call init_win32() when necessary.
7335 Fix up MS Win dialog box in kill-buffer to actually work right.
7346 * eval.c (condition_case_3):
7348 * eval.c (function_argcount):
7349 * eval.c (funcall_lambda):
7352 * eval.c (type_error): New.
7353 * eval.c (maybe_type_error): New.
7354 * eval.c (continuable_type_error): New.
7355 * eval.c (maybe_continuable_type_error): New.
7356 * eval.c (type_error_with_frob): New.
7357 * eval.c (maybe_type_error_with_frob): New.
7358 * eval.c (continuable_type_error_with_frob): New.
7359 * eval.c (maybe_continuable_type_error_with_frob): New.
7360 New functions for use with structured errors.
7363 * event-Xt.c (x_event_to_emacs_event):
7364 Buttons are now modifiers too.
7366 * event-Xt.c (emacs_Xt_current_event_timestamp):
7367 Implement new event method.
7368 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7371 * event-msw.c (ntpipe_shove_writer): [5].
7372 * event-msw.c (mswindows_enqueue_mouse_button_event):
7373 * event-msw.c (mswindows_drain_windows_queue):
7374 * event-msw.c (mswindows_wnd_proc): [7].
7375 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7376 * event-msw.c (mswindows_modifier_state):
7377 Throughout: support new button modifiers.
7379 * event-msw.c (emacs_mswindows_current_event_timestamp):
7380 Implement new event method.
7381 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7384 * event-stream.c (event_stream_current_event_timestamp): New.
7385 * event-stream.c (maybe_kbd_translate): New functionality.
7386 * event-stream.c (vars_of_event_stream):
7387 Document new kbd-translate-table functionality.
7389 * event-stream.c (Fcurrent_event_timestamp): New.
7390 New primitive for use in fabricated events.
7391 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7393 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7396 * events.c (Fmake_event):
7397 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7401 * events.c (format_event_object): fix gcc warnings.
7403 * events.c (Fevent_timestamp): Document new primitives.
7405 * events.c (TIMESTAMP_HALFSPACE): New.
7407 * events.c (Fevent_timestamp_lessp): New. New primitive for
7408 comparing timestamps correctly (half-space algorithm).
7410 * events.c (Fevent_modifier_bits): Doc fix.
7412 * events.c (Fevent_modifiers): Major doc addition.
7413 * events.c (event_x_y_pixel_internal): Typo fix.
7414 * events.c (syms_of_events): Declare new primitives.
7417 Update long comment for button modifiers, timestamps.
7419 * events.h (struct event_stream):
7420 New current_event_timestamp method.
7423 * extents.c (extent_in_region_p):
7424 * extents.c (decode_extent):
7425 * extents.c (Fset_extent_parent):
7426 * extents.c (decode_map_extents_flags):
7430 * extents.c (struct extent_at_arg):
7431 * extents.c (decode_extent_at_flag):
7432 * extents.c (extent_at_mapper):
7433 * extents.c (extent_at_bytind):
7434 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7435 * extents.c (Fextents_at): New primitive. [9].
7436 * extents.c (symbol_to_glyph_layout): [9].
7437 Support new primitive `extents-at'.
7440 * extents.c (get_text_property_bytind):
7441 extent_at_bytind has another arg.
7444 * extents.c (syms_of_extents): New primitive.
7446 * file-coding.c (Fmake_coding_system): [1].
7447 * file-coding.c (subsidiary_coding_system): fix gcc warning
7448 * file-coding.c (syms_of_file_coding): [2].
7450 * fileio.c (Fexpand_file_name):
7451 * fileio.c (Fsysnetunam):
7452 * fileio.c (Ffile_exists_p):
7453 * fileio.c (Ffile_executable_p):
7454 * fileio.c (Fverify_visited_file_modtime):
7457 * fileio.c (syms_of_fileio): [2].
7459 * filelock.c (lock_file_1):
7460 * filelock.c (current_lock_owner):
7461 * filelock.c (lock_if_free):
7462 * filelock.c (lock_file):
7463 * filelock.c (unlock_file):
7466 * fns.c (concat): Fix gcc warning.
7469 * fns.c (Fold_member):
7471 * fns.c (Fold_memq):
7472 * fns.c (memq_no_quit):
7474 * fns.c (Fold_assoc):
7476 * fns.c (Fold_assq):
7477 * fns.c (assq_no_quit):
7479 * fns.c (Fold_rassoc):
7481 * fns.c (Fold_rassq):
7482 * fns.c (rassq_no_quit):
7484 * fns.c (Fold_delete):
7486 * fns.c (Fold_delq):
7487 * fns.c (delq_no_quit):
7488 * fns.c (Fremassoc):
7490 * fns.c (remassq_no_quit):
7491 * fns.c (Fremrassoc):
7492 * fns.c (Fremrassq):
7493 * fns.c (remrassq_no_quit):
7498 * frame-msw.c (mswindows_init_frame_1):
7499 * frame-msw.c (mswindows_delete_frame):
7500 Register popups with dialog code so keyboard traversing works.
7502 * frame-tty.c (tty_raise_frame_no_select): [1].
7505 * frame-x.c (x_set_frame_text_value):
7506 * frame-x.c (x_set_frame_properties):
7507 * frame-x.c (x_create_widgets):
7511 * frame.c (Fmouse_pixel_position): Minor doc fixes.
7513 * frame.h (wrap_frame): New.
7514 Macro like wrap_device.
7517 * general.c (SYMBOL):
7518 * general.c (syms_of_general):
7519 Major reorg. This is now just a wrapper and symbols themselves
7520 are listed in general-slots.h.
7522 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7523 * glyphs-msw.c (mswindows_resource_instantiate): [5].
7525 * glyphs-msw.c (mswindows_native_layout_instantiate):
7526 Add DS_CONTROL so keyboard traversal will work.
7529 * glyphs-widget.c (syms_of_glyphs_widget):
7530 Move some symbols to general-slots.h.
7533 * glyphs-x.c (xbm_instantiate_1):
7534 * glyphs-x.c (x_xbm_instantiate):
7535 * glyphs-x.c (x_xface_instantiate):
7536 * glyphs-x.c (autodetect_instantiate):
7537 * glyphs-x.c (cursor_font_instantiate):
7538 * glyphs-x.c (x_update_widget):
7539 * glyphs-x.c (x_widget_instantiate):
7540 * glyphs.c (bitmap_to_lisp_data):
7541 * glyphs.c (pixmap_to_lisp_data):
7544 * glyphs.c (syms_of_glyphs):
7548 * gui-x.c (print_widget_value):
7549 * gui-x.c (menu_separator_style_and_to_external):
7550 * gui-x.c (add_accel_and_to_external):
7551 * gui-x.c (button_item_to_widget_value):
7552 * gui-x.c (gui_items_to_widget_values_1):
7553 * gui-x.c (gui_items_to_widget_values):
7554 * gui-x.c (syms_of_gui_x):
7555 * gui-x.c (vars_of_gui_x):
7556 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
7560 Muleize, prototype changes matching gui-x.c.
7563 * gui.c (separator_string_p):
7564 * gui.c (gui_item_add_keyval_pair):
7565 * gui.c (make_gui_item_from_keywords_internal):
7566 * gui.c (signal_too_long_error):
7567 * gui.c (parse_gui_item_tree_item):
7568 * gui.c (syms_of_gui):
7569 * gui.c (vars_of_gui):
7571 menu-no-selection-hook moved here (used by MSWin).
7572 Move some symbols to general-slots.h.
7576 * insdel.c (get_buffer_pos_char):
7577 * insdel.c (get_buffer_range_char):
7580 * keymap.c (keymap_lookup_directly):
7581 * keymap.c (keymap_store):
7582 * keymap.c (ensure_meta_prefix_char_keymapp):
7583 * keymap.c (describe_map):
7585 Support new button modifiers.
7587 * lisp-disunion.h (wrap_object):
7588 * lisp-disunion.h (XSETOBJ):
7589 Rename make_obj to wrap_object.
7592 * lisp-union.h (make_int):
7593 * lisp-union.h (make_char):
7594 Support wrap_object.
7597 * lisp.h (LIST_LOOP):
7598 * lisp.h (EXTERNAL_LIST_LOOP):
7599 * lisp.h (LIST_LOOP_2):
7600 * lisp.h (EXTERNAL_LIST_LOOP_1):
7601 * lisp.h (EXTERNAL_LIST_LOOP_2):
7602 * lisp.h (EXTERNAL_LIST_LOOP_3):
7603 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7604 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7605 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7606 * lisp.h (EXTERNAL_ALIST_LOOP_5):
7607 * lisp.h (EXTERNAL_ALIST_LOOP_6):
7608 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7609 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7610 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7611 * lisp.h (struct Lisp_Symbol):
7612 * lisp.h (maybe_continuable_error_with_frob):
7613 Fix up section comments.
7614 Add new types for char to indicate usage.
7615 Delete symbols auto-generated from general-slots.h.
7616 Add prototypes for structured error functions.
7617 Add long comments describing looping macros and change interface
7618 so that lvalues are automatically declared.
7619 Add NO_DECLARE macro in case callers want to declare lvalues
7622 * lread.c (read_syntax_error):
7623 * lread.c (continuable_read_syntax_error):
7624 * lread.c (read_structure):
7625 * lread.c (sequence_reader):
7626 * lread.c (read_list_conser):
7627 * lread.c (read_compiled_function):
7628 Rename syntax_error and continuable_syntax_error to avoid clash
7629 with same-named structured error functions.
7631 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7632 * menubar-msw.c (populate_menu_add_item):
7633 * menubar-msw.c (populate_or_checksum_helper):
7638 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7639 Mule-ize whole file.
7641 * menubar.c (Fnormalize_menu_item_name): Add optimization.
7643 * mule-charset.c (Fmake_charset):
7644 * mule-wnnfns.c (Fwnn_set_param):
7647 * ntproc.c (create_child):
7648 * ntproc.c (Fwin32_set_current_locale):
7649 Add comments portending doom.
7652 * objects-msw.c (old_font_enum_callback_2):
7653 * objects-msw.c (font_enum_callback_1):
7654 * objects-msw.c (mswindows_enumerate_fonts):
7658 * objects-x.c (allocate_nearest_color):
7659 * objects-x.c (x_parse_nearest_color):
7660 * objects-x.c (x_initialize_color_instance):
7661 * objects-x.c (x_print_color_instance):
7662 * objects-x.c (x_finalize_color_instance):
7663 * objects-x.c (x_valid_color_name_p):
7664 * objects-x.c (x_initialize_font_instance):
7665 * objects-x.c (x_print_font_instance):
7666 * objects-x.c (valid_x_font_name_p):
7667 * objects-x.c (truename_via_FONT_prop):
7668 * objects-x.c (truename_via_random_props):
7669 * objects-x.c (truename_via_XListFonts):
7670 * objects-x.c (x_font_truename):
7671 * objects-x.c (x_font_instance_truename):
7672 * objects-x.c (x_font_instance_properties):
7673 * objects-x.c (x_list_fonts):
7674 * objects-x.c (x_find_charset_font):
7675 Mule-ize entire file.
7682 * print.c (std_handle_out_external):
7683 * print.c (debug_print_no_newline):
7684 * print.c (syms_of_print):
7685 Output to all debugger kinds in debug-print.
7686 Fix console-output code under MSWin to actually work.
7688 * process-nt.c (send_signal):
7689 * process-nt.c (nt_create_process):
7690 Use newer Unicode macros.
7692 * process-unix.c (unix_create_process):
7693 * process-unix.c (unix_canonicalize_host_name):
7694 * process-unix.c (unix_open_network_stream):
7700 * search.c (syms_of_search):
7703 * select-msw.c (mswindows_destroy_selection):
7706 * select-x.c (symbol_to_x_atom):
7709 * select.c (syms_of_select):
7712 * sound.c (Fplay_sound_file):
7716 * specifier.c (decode_specifier_type):
7717 * specifier.c (Fvalid_specifier_locale_type_p):
7718 * specifier.c (check_valid_locale_or_locale_type):
7719 * specifier.c (decode_locale):
7720 * specifier.c (decode_locale_type):
7721 * specifier.c (decode_locale_list):
7722 * specifier.c (check_valid_domain):
7723 * specifier.c (decode_specifier_tag_set):
7724 * specifier.c (Fcanonicalize_tag_set):
7725 * specifier.c (Fdefine_specifier_tag):
7726 * specifier.c (Fspecifier_tag_predicate):
7727 * specifier.c (check_valid_inst_list):
7728 * specifier.c (check_valid_spec_list):
7729 * specifier.c (decode_how_to_add_specification):
7730 * specifier.c (check_modifiable_specifier):
7731 * specifier.c (specifier_add_spec):
7732 * specifier.c (boolean_validate):
7733 * specifier.c (display_table_validate):
7736 * specifier.c (syms_of_specifier):
7737 Move some symbols to general-slots.h.
7741 * symbols.c (Fmapatoms):
7742 * symbols.c (Fapropos_internal):
7745 * symbols.c (set_default_buffer_slot_variable):
7746 * symbols.c (set_default_console_slot_variable):
7749 * symbols.c (defsymbol_massage_name_1):
7750 * symbols.c (defkeyword_massage_name):
7751 * symbols.c (deferror_1):
7752 * symbols.c (deferror):
7753 * symbols.c (deferror_massage_name_and_message):
7755 * symeval.h (DEFSYMBOL):
7756 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7758 * symbols.c (syms_of_symbols):
7762 * symsinit.h (init_win32): New.
7763 Also new is syms_of_dialog_mswindows.
7766 Add new Unicode macros, missing Cygwin wide-char functions,
7767 convenience conversion macros for Qmswindows_tstr, macros for
7768 encapsulating required MSWin <-> Cygwin filename conversions,
7769 prototype for dynamically-extracted (not in NT 3.51) functions.
7774 * tooltalk.c (Fadd_tooltalk_message_arg):
7775 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7776 * tooltalk.c (Fadd_tooltalk_pattern_arg):
7779 * tooltalk.c (syms_of_tooltalk):
7783 * unexnt.c (unexec):
7784 Fix up headers, declaration of unexec() to be more standard.
7786 2000-07-20 Martin Buchholz <martin@xemacs.org>
7788 * offix.h: Revert change to guard macros - they're used in offix.c!
7790 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7792 * lisp.h: Defsubred Fdelete.
7794 * console-msw.h: (msprinter_default_printer): Added.
7796 * console-msw.c (msprinter_canonicalize_console_connection):
7797 (msprinter_canonicalize_device_connection): Added.
7799 * device-msw.c (msprinter_default_printer):
7800 (Fmswingows_get_default_printer):
7801 (signal_enum_priner_error):
7802 (Fmswingows_printer_list): Added.
7804 2000-07-19 Martin Buchholz <martin@xemacs.org>
7806 * XEmacs 21.2.35 is released.
7808 2000-07-19 Martin Buchholz <martin@xemacs.org>
7810 * select-x.c (x_handle_selection_request):
7811 Text selected in xemacs and pasted into xterm failed to appear.
7812 Spelling fixes and cosmetic changes.
7814 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7816 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7817 XEmacs frame (fix for doubling chars in dialog boxes).
7819 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7821 * select.c (select_convert_in, select_convert_out):
7822 Don't call intern() every time.
7824 * select.c (Qselect_convert_in, Qselect_convert_out): New.
7825 * select.c (vars_of_select): Initialise them.
7827 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7829 * select.c (selection-coercible-types): New.
7831 * select.c (own-selection-internal):
7832 * select.c (get-selection-internal):
7833 MULE bug fix - these should default to COMPOUND_TEXT and not
7834 STRING for MULE. I think.
7836 * select.c (select_convert_out): Use selection-coercible-types
7837 to find types that we can attempt to perform coercions on.
7839 2000-07-18 Martin Buchholz <martin@xemacs.org>
7843 Add coding: cookie to identify encoding.
7845 * mule-canna.c (CANNA_mode_keys): make static.
7846 Use proper prototypes, even for functions of no arguments.
7847 Remove external prototype for Fding().
7849 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7851 * select.c (syms_of_select): Add missing DEFSUBR.
7853 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7855 * select.c (get_selection_internal, own_selection_internal):
7856 Make the type default to STRING, rather than placing a nil type
7857 into Vselection_alist.
7859 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7861 * gpmevent.c (tty_selection_exists_p):
7862 * gpmevent.c (tty_own_selection):
7863 Updated parameter lists.
7865 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7867 * select.h (selection-alist): Removed declaration.
7869 * select.h (get_local_selection):
7870 * select.c (get_local_selection):
7873 * select.h (convert_selection): Removed declaration.
7874 * select.c (convert_selection): Removed.
7875 This function belongs in Lisp.
7877 * select.h (select_convert_in): Declare.
7878 * select.h (select_convert_out): Declare.
7879 * select.c (select_convert_in): New.
7880 * select.c (select_convert_out): New.
7881 New conversion functions for other files to call.
7883 * select.h (select_notify_buffer_kill): Declare.
7884 * select.c (select_notify_buffer_kill): New.
7885 New functions that get called from kill-buffer.
7887 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7888 X-specific lisp code.
7890 * select.h: Declare some of the lisp-visible functions for
7893 * select.c (clean_local_selection_data): Removed. This was
7894 a disgusting function, and previously should have been in
7895 select-x.c in any case. The functionality is now provided
7896 in select-convert-from-integer (select.el).
7898 * select.c (available-selection-types): Fixed stupidity where
7899 INTEGER and ATOM got added twice. Also add STRING when we see an
7902 * select.c (get-selection-internal): Removed symbol stripping. No
7903 longer causes conversion when data comes from the internal cache.
7905 * select.c (syms_of_select): Added new functions.
7907 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7908 error checking - previously this called abort!
7910 * select-x.c (x_own_selection): Changed comment.
7912 * select-x.c (x_handle_selection_request): Use select_convert_out.
7913 Don't mess with selection-alist; it's an internal variable of select.c.
7915 * select-x.c (x_get_foreign_selection): Use select_convert_in.
7917 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7918 rather than messing with selection-alist.
7920 * select-msw.c (mswindows_get_foreign_selection):
7921 Use TO_INTERNAL_FORMAT rather than hacking.
7923 2000-07-14 Martin Buchholz <martin@xemacs.org>
7925 * process-unix.c (unix_open_multicast_group):
7926 (unix_open_multicast_group): Remove useless casts.
7928 2000-07-13 Martin Buchholz <martin@xemacs.org>
7930 * sound.c (Fplay_sound): Fix `unused variable' warning.
7932 * emacs.c (main): Use correct type for _environ on SCO5.
7934 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7936 * console.h (own_selection_method):
7937 * console.h (selection_exists_p_method):
7938 * console.h (available_selection_types_method): New.
7939 * console.h (register_selection_data_type_method): New.
7940 * console.h (selection_data_type_name): New.
7942 * console-msw.h (mswindows_destroy_selection): Declare it. New
7943 function & alist to track GlobalAlloc()'d handles that need
7944 releasing when the clipboard data gets replaced or emptied.
7946 * event-msw.c (mswindows_wnd_proc): Call it.
7948 * lisp.h, general.c (Qappend): New symbol representing a
7951 * select.c (own-selection-internal):
7952 * select.c (selection-exists-p):
7953 * select.c (available-selection-types): New.
7954 * select.c (register-selection-data-type): New.
7955 * select.c (selection-data-type-name): New. New functions to deal
7956 with device-specific selection data formats.
7957 * select.c (selection-converter-out-alist): Renamed.
7958 * select.c (selection-converter-in-alist): New.
7959 * select.c (selection-appender-alist): New. Added new alists.
7960 * select.c (syms_of_select, vars_of_select): Added new symbols &
7962 * select.c (get_local_selection): Split.
7963 * select.c: Removed spurious type checking - selections may now be
7964 of any type, not just strings.
7965 * select.c (own-selection-internal):
7967 * select.h, select.c (convert_selection): New. Created
7968 convert_selection() function based on get_local_selection().
7969 * select.h, select.c (QCF_*): New symbols representing mswindows
7971 * select.h, select.c (Qreplace_all, Qreplace_existing): New
7972 symbols representing `how-to-add' modes.
7974 * select-msw.c (x_sym_p): New.
7975 * select-msw.c (symbol_to_ms_cf): New.
7976 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7977 symbols & clipboard formats. Can also handle string names.
7978 * select-msw.c (mswindows_own_selection):
7979 * select-msw.c (mswindows_selection_exists_p):
7980 Added `data-type' parameter. Use it.
7981 * select-msw.c (mswindows_available_selection_types): New.
7982 * select-msw.c (mswindows_register_selection_data_type): New.
7983 * select-msw.c (mswindows_selection_data_type_name): New.
7984 * select-msw.c (mswindows_own_selection):
7985 * select-msw.c (mswindows_get_foreign_selection):
7986 * select-msw.c (mswindows_selection_exists_p): Rewrote.
7987 * select-msw.c (console_create_select_mswindows): Added new methods.
7988 * select-msw.c (mswindows_destroy_selection): New.
7989 * select-msw.c (Vhandle_alist): New list.
7990 * select-msw.c (mswindows_own_selection):
7992 * select-x.c (x_own_selection):
7993 * select-x.c (x_selection_exists_p):
7994 * select-x.c: Added some comments about maybe using new
7996 * select-x.c (x_own_selection):
7998 * specifier.c: Remove definition of Qappend (now in general.c)
7999 * specifier.c (syms_of_specifier): Remove Qappend.
8001 2000-07-12 Martin Buchholz <martin@xemacs.org>
8003 * config.h.in: Add socklen_t.
8005 * s/decosf4-0.h: No special compiler flags needed or desired.
8006 In particular, undefine _BSD for DEC OSF 4.0.
8008 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8010 * redisplay-msw.c (msprinter_frame_output_end): Added.
8011 (console_type_create_redisplay_mswindows): Referred the above.
8013 * frame.c (setup_frame_without_minibuffer): Do not create a
8014 default minibuffer frame on a printer device.
8016 * frame-msw.c (apply_dc_geometry): Added.
8017 (msprinter_start_page):
8018 (msprinter_init_frame_3):
8019 (msprinter_eject_page): Use it.
8021 * console-msw.h (struct msprinter_frame): Added pix_left and top,
8022 and removed residual duplex and orientation properties.
8024 2000-07-11 Martin Buchholz <martin@xemacs.org>
8026 * eval.c (function_argcount): Work around a DEC CC compiler bug.
8028 * unexalpha.c: Remove system prototypes from C sources!
8030 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
8032 * eval.c: Remove references to M-x edit-options in DEFUNs for
8033 `defvar' and `defconst'.
8035 2000-07-09 Martin Buchholz <martin@xemacs.org>
8037 * config.h.in: Remove SMART_INCLUDE hackery.
8040 * config.h.in: Don't use SMART_INCLUDE.
8042 * postgresql.h: Include libpq-fe.h here. Fix typo.
8043 * inline.c: Simply #include "postgresql.h"
8045 - Don't use SMART_INCLUDE
8046 - Use simply "const".
8047 - Use standard doc string conventions.
8048 - Use correct type for result of PQstatus.
8050 2000-07-09 Martin Buchholz <martin@xemacs.org>
8052 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
8054 C++ compilation changes.
8055 * config.h.in (EXTERN_C): Define.
8056 * config.h.in (not): This is also a C++ keyword.
8057 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8058 * cm.c: Use EXTERN_C.
8059 * redisplay-tty.c: Use EXTERN_C.
8060 * sysdep.c: Use EXTERN_C. Remove Gould support.
8062 2000-07-09 Martin Buchholz <martin@xemacs.org>
8064 * general.c: Remove duplicate definition for Qfunction.
8066 2000-07-08 Ben Wing <ben@xemacs.org>
8068 * device-msw.c (msprinter_init_device):
8069 * device-msw.c (sync_printer_with_devmode):
8070 * device-msw.c (handle_devmode_changes):
8071 * device-msw.c (print_dialog_worker):
8072 * device-msw.c (Fmsprinter_apply_settings):
8073 * device-msw.c (hash_devmode):
8074 * device-msw.c (Fmsprinter_settings_despecialize):
8075 use Qmswindows_tstr, not Qctext.
8077 * vm-limit.c (check_memory_limits):
8078 avoid infinite loop printing warning messages.
8080 2000-07-05 Craig Lanning <lanning@scra.org>
8082 * Makefile.in.in: Add support for including the Windows resources
8083 when building with the cygwin and mingw targets.
8085 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8086 not set or not correct.
8087 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8088 (init_initial_directory): Don't try to use $PWD on the
8089 WIN32_NATIVE target.
8092 [[Add -mwindows to eliminate console window.]] not required --ben
8093 (HAVE_NATIVE_SOUND): removed; now handled by configure.
8094 (MAIL_USE_POP): removed; now handled by configure.
8096 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8097 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8098 (HAVE_NATIVE_SOUND): removed; now handled by configure.
8099 (MAIL_USE_POP): removed; now handled by configure.
8100 (ENCAPSULATE_STAT): from Dan Holmsand, added.
8101 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8102 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8104 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8105 up from <winsock.h> via systime.h.
8106 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8107 (getpagesize): from Dan Holmsand, added.
8108 Added #endif which was left dangling by Ben's mega patch; added
8109 comment to help prevent this in the future.
8111 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8113 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8115 * console-msw.h (struct mswindows_device): Removed unnecessary
8116 cached device geometry values.
8117 Added update_tick and an accessor macro.
8118 (Lisp_Devmode): Added lrecord declaration.
8119 (struct msprinter_device): Contain devmode as a Lisp object.
8120 Added mswindows_get_selected_frame_hwnd();
8122 * console.h (struct console_methods): Indentation nitpicking.
8124 * device-msw.c (mswindows_init_device): Do not initialize geometry
8125 cache. Initialize update tick.
8126 (mswindows_device_system_metrics): Ask the device for its geometry.
8127 (global_free_2_maybe):
8128 (devmode_to_hglobal):
8129 (handle_printer_changes):
8130 (ensure_not_printing):
8131 (print_dialog_worker):
8132 (Fmsprinter_print_setup_dialog):
8133 (Fmsprinter_print_dialog):
8136 (Fmsprinter_page_setup_dialog): Added functions.
8137 (sync_printer_with_devmode):
8138 (handle_devmode_changes):
8139 (Fmsprinter_get_settings):
8140 (Fmsprinter_select_settings):
8141 (Fmsprinter_apply_settings):
8143 (Fmsprinter_settings_copy):
8144 (Fmsprinter_settings_despecialize):
8148 (hash_devmode): Added functions
8149 (syms_of_device_mswindows): Init devmode lrecord class.
8151 * device.h: Added an exfun for find-device.
8153 * event-msw.c (mswindows_wnd_proc): Do not update the cached
8154 geometry; although, recreate the device compatible DC.
8156 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8157 (msprinter_init_frame_3):
8158 (msprinter_frame_property):
8159 (msprinter_internal_frame_property_p):
8160 (msprinter_frame_properties):
8161 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8162 print job properties (will move to device settings).
8164 * lisp.h: Added symbols.
8166 * general.c (syms_of_general): Declared them.
8168 * hash.c (string_hash): Added.
8170 * lrecord.h (lrecord_type): Added devmode lrecord type.
8172 2000-07-02 Mike Sperber <mike@xemacs.org>
8174 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8177 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
8179 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8182 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
8184 * data.c (Fstring_to_number): Don't recognize floating point if
8187 2000-06-22 Martin Buchholz <martin@xemacs.org>
8189 * glyphs-widget.c (tab_control_query_geometry):
8190 (widget_query_geometry):
8191 (button_query_geometry):
8192 * glyphs.c (text_query_geometry):
8193 Enforce type correctness.
8195 2000-06-18 Martin Buchholz <martin@xemacs.org>
8197 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8198 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8200 2000-06-17 Martin Buchholz <martin@xemacs.org>
8202 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8203 conflicts with gcc's fixincluded version of FOO.h.
8205 * glyphs.h (image_instance_geometry): Remove trailing `,'
8207 2000-06-08 Mike Alexander <mta@arbortext.com>
8209 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8210 (shove_thread): Don't write the same output twice
8211 (make_ntpipe_output_stream): Increase priority of shove thread
8212 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8214 (ntpipe_shove_closer): Don't delete the pipe until we're done with
8217 2000-06-12 Ben Wing <ben@xemacs.org>
8219 * s\mingw32.h (sigset):
8220 * s\windowsnt.h (sigset):
8221 rename msw_ to mswindows_ for consistency with general convention.
8223 2000-06-12 Ben Wing <ben@xemacs.org>
8226 * console-msw.c (mswindows_get_console_hwnd):
8227 * console-msw.c (mswindows_ensure_console_allocated):
8228 * console-msw.c (mswindows_hide_console):
8229 * console-msw.c (mswindows_show_console):
8230 * console-msw.c (mswindows_ensure_console_buffered):
8231 * console-msw.c (mswindows_output_console_string):
8232 * console-msw.c (mswindows_windows9x_p):
8234 * device-msw.c (mswindows_get_workspace_coords):
8235 * device-msw.c (mswindows_device_system_metrics):
8236 * dialog-msw.c (mswindows_popup_dialog_box):
8237 * event-msw.c (mswindows_wnd_proc):
8238 * frame-msw.c (mswindows_size_frame_internal):
8239 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8240 * menubar-msw.c (displayable_menu_item):
8241 * menubar-msw.c (mswindows_char_is_accelerator):
8243 * nt.c (mswindows_sigset):
8244 * nt.c (mswindows_sigrelse):
8245 * nt.c (mswindows_sigpause):
8246 * nt.c (mswindows_raise):
8247 * nt.c (timer_proc):
8249 * ntproc.c (find_child_console):
8250 * ntproc.c (sys_kill):
8252 * print.c (std_handle_out_external):
8253 * process-nt.c (find_child_console):
8254 * process-nt.c (send_signal_the_95_way):
8255 * process-nt.c (ensure_console_window_exists):
8256 * process-nt.c (nt_create_process):
8258 rename msw_ to mswindows_ for consistency with general convention.
8262 include nt.h, not syswindows.h.
8264 * nt.c (mswindows_fstat):
8265 * nt.c (mswindows_stat):
8266 prefix mswindows_ instead of attempting to directly override the
8267 library functions. fix declarations.
8270 include syswindows.h. move some sysdep.h stuff here.
8273 include syswindows.h, not <windows.h>.
8281 * sysdep.c (sys_fstat):
8282 * sysdep.c (sys_stat):
8283 call mswindows versions when appropriate.
8286 move mswin decls to nt.h.
8289 add long comment describing appropriate use of the various windows
8292 2000-06-11 Ben Wing <ben@xemacs.org>
8294 * device-x.c: Correct doc string for sixth arg of x-get-resource.
8296 2000-06-10 Ben Wing <ben@xemacs.org>
8298 * Makefile.in.in (release):
8299 Correction to make sure xemacs.exe always dumped when correct.
8303 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8305 * buffer.c (set_buffer_internal):
8306 [[[[2]]]]: Remove HAVE_FEP code.
8308 * buffer.c (init_initial_directory):
8312 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8316 * callproc.c (call_process_cleanup):
8317 * callproc.c (Fold_call_process_internal):
8318 * callproc.c (child_setup):
8319 * callproc.c (getenv_internal):
8320 * callproc.c (init_callproc):
8321 * callproc.c (vars_of_callproc):
8322 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8323 __CYGWIN32__ -> CYGWIN.
8324 DOS_NT -> WIN32_NATIVE.
8325 Remove MSDOS support/references, converting to WIN32_NATIVE
8327 __MINGW32__ -> MINGW.
8328 Fix windows.h includes.
8329 Remove bogus HAVE_NTGUI.
8335 mswindows_message_outputted added for use in allowing startup
8336 errors on the console to be seen.
8338 * console-msw.c (msw_ensure_console_allocated):
8339 * console-msw.c (msw_output_console_string):
8340 * console-msw.c (DHEADER):
8341 * console-msw.c (DOPAQUE_DATA):
8342 * console-msw.c (DEVENT):
8343 * console-msw.c (DCONS):
8344 * console-msw.c (DCONSCDR):
8345 * console-msw.c (DSTRING):
8346 * console-msw.c (DVECTOR):
8347 * console-msw.c (DSYMBOL):
8348 * console-msw.c (DSYMNAME):
8351 * console-stream.c (stream_init_console):
8352 Fix text/binary problems.
8355 * device-msw.c (mswindows_finish_init_device):
8356 * device-msw.c (mswindows_delete_device):
8359 * device.c (handle_asynch_device_change):
8363 * dgif_lib.c (DGifOpenFileName):
8364 * dgif_lib.c (DGifOpenFileHandle):
8365 * dgif_lib.c (DGifGetLine):
8366 * dgif_lib.c (DGifGetPixel):
8367 Added config.h/lisp.h, fix up includes.
8374 * dired.c (file_name_completion):
8375 * dired.c (Ffile_attributes):
8376 * dired.c (syms_of_dired):
8380 * dumper.c (pdump_file_unmap):
8381 * dumper.c (pdump_load):
8385 * editfns.c (Ftemp_directory):
8386 * editfns.c (user_login_name):
8387 * editfns.c (Fuser_real_login_name):
8388 * editfns.c (get_home_directory):
8391 * elhash.c (finish_marking_weak_hash_tables):
8392 [[[[5]]]]: Fix GCC warnings.
8395 * emacs.c (mswindows_handle_hardware_exceptions):
8396 * emacs.c (make_arg_list_1):
8398 * emacs.c (Fkill_emacs):
8399 * emacs.c (Fdump_emacs):
8401 Fix problems with nested crashes, add long comment.
8403 * event-Xt.c (init_event_Xt_late):
8407 * event-msw.c (mswindows_dde_callback):
8408 * event-msw.c (mswindows_handle_sticky_modifiers):
8409 * event-msw.c (mswindows_wnd_proc):
8413 * events.c (character_to_event):
8417 * fileio.c (Ffile_name_directory):
8418 * fileio.c (Ffile_name_nondirectory):
8419 * fileio.c (directory_file_name):
8420 * fileio.c (Fexpand_file_name):
8421 * fileio.c (Fsubstitute_in_file_name):
8422 * fileio.c (Ffile_name_absolute_p):
8423 * fileio.c (check_executable):
8424 * fileio.c (Ffile_readable_p):
8425 * fileio.c (Ffile_accessible_directory_p):
8426 * fileio.c (Ffile_modes):
8427 * fileio.c (Funix_sync):
8428 * fileio.c (vars_of_fileio):
8431 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8433 Expand getdefdir defn.
8434 Fix bogus rename() comment.
8436 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
8437 to use standard XEmacs include files, e.g. sysfile.h, rather
8438 than system-specific includes.
8444 * frame.c (vars_of_frame):
8448 * getloadavg.c (getloadavg):
8450 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
8451 (We don't use it elsewhere in the code; just add a comment.)
8458 * glyphs-msw.c (mswindows_resource_instantiate):
8461 * glyphs-x.c (x_native_layout_instantiate):
8464 * gui-msw.c (Fmswindows_shell_execute):
8473 * lread.c (locate_file_in_directory_mapper):
8480 * mem-limits.h (get_lim_data):
8492 * nt.c (rva_to_section):
8493 * nt.c (mswindows_executable_type):
8495 Fix closedir() defn.
8498 [[[[8]]]]: *_OK defs moved to sysfile.h.
8507 * print.c (std_handle_out_external):
8511 * process-nt.c (nt_create_process):
8513 try to fix process quoting somewhat.
8515 * process-unix.c (unix_create_process):
8519 * process.c (vars_of_process):
8526 * realpath.c (xrealpath):
8529 * redisplay-tty.c (init_tty_for_redisplay):
8539 * sheap.c (more_static_core):
8540 * sheap.c (report_sheap_usage):
8544 * signal.c (alarm_signal):
8551 * strftime.c (zone_name):
8554 * symsinit.h (init_sunpro):
8558 commctrl.h not in Cygwin b20.1.
8562 * sysdep.c (sys_subshell):
8563 * sysdep.c (init_baud_rate):
8564 * sysdep.c (emacs_get_tty):
8565 * sysdep.c (emacs_set_tty):
8566 * sysdep.c (tty_init_sys_modes_on_device):
8567 * sysdep.c (init_system_name):
8568 * sysdep.c (sys_open):
8569 * sysdep.c (interruptible_open):
8570 * sysdep.c (sys_fopen):
8571 * sysdep.c (sys_mkdir):
8572 * sysdep.c (sys_rename):
8573 * sysdep.c (get_process_times_1):
8580 * sysdir.h (DIRENTRY_NONEMPTY):
8583 * sysdll.c (dll_init):
8589 added text/binary defs.
8595 * sysproc.h (EDESTADDRREQ):
8596 * sysproc.h (poll_fds_for_input):
8613 Always define WIN32_LEAN_AND_MEAN.
8615 * unexcw.c (unexec):
8619 * unexec.c (copy_text_and_data):
8620 * unexec.c (adjust_lnnoptrs):
8624 * unexnt.c (_start):
8627 2000-06-07 Ben Wing <ben@xemacs.org>
8629 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
8630 was used only as a model. We've long since extracted any useful
8631 logic or code out of this. (I just did an exhaustive search.)
8633 * s\msdos.h: Removed.
8635 * s\windows95.h: Removed.
8637 2000-06-10 Ben Wing <ben@xemacs.org>
8641 Don't use extern with fun defs.
8645 Remove nt\inc include.
8646 Remove getdisk, getdefdir. (The former is unused, the latter
8647 expanded in fileio.h.)
8650 * s\windowsnt.h (WIN32_NATIVE):
8651 * s\windowsnt.h (HAVE_STRCASECMP):
8653 Add long comment about preprocessor changes.
8654 Remove getdisk, getdefdir. (The former is unused, the latter
8655 expanded in fileio.h.)
8657 2000-06-10 Ben Wing <ben@xemacs.org>
8666 Remove bogus/unused NO_SOCK_SIGIO.
8668 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
8670 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8673 2000-06-04 Mike Sperber <mike@xemacs.org>
8675 * casetab.c (set_case_table): For `set-standard-case-table',
8676 actually deposit the new case tables where the rest of XEmacs can
8679 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
8681 * data.c (Faset): Don't cast XCHAR() to unsigned char.
8683 2000-06-05 Ben Wing <ben@xemacs.org>
8685 * callproc.c (child_setup): Don't do close_load_descs() under
8686 MS Windows. Put in a comment explaining why.
8688 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
8690 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8691 Toolkit shell" which breaks `kill-compilation' on Windows NT
8692 native, retaining STDERR handling improvements.
8694 2000-06-01 Andreas Jaeger <aj@suse.de>
8696 * s/s390.h: Support for S390, based on a patch by Martin
8697 Schwidefsky <schwidefsky@de.ibm.com>.
8699 2000-05-30 Andy Piper <andy@xemacs.org>
8701 * window.c (allocate_window):
8702 (make_dummy_parent):
8703 (Fset_window_configuration): use new hashtable type.
8705 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8706 (struct image_instantiator_methods):
8707 (struct Lisp_Image_Instance): make instance geometry signed.
8709 * glyphs.c (instantiate_image_instantiator):
8710 (image_instance_query_geometry):
8711 (image_instance_layout):
8712 (image_instance_layout):
8713 (query_string_geometry):
8714 (text_query_geometry):
8715 (image_instantiate):
8716 (image_instantiate):
8717 (cache_subwindow_instance_in_frame_maybe):
8718 (subwindow_query_geometry): make instance geometry signed.
8720 * glyphs-widget.c (widget_query_geometry):
8722 (button_query_geometry):
8723 (tree_view_query_geometry):
8724 (tab_control_query_geometry):
8725 (layout_query_geometry):
8727 (native_layout_layout): make instance geometry signed.
8729 2000-05-29 Olivier Galibert <galibert@pobox.com>
8731 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8734 * general.c (syms_of_general): Add Qfull_assoc symbol.
8736 * data.c (finish_marking_weak_lists): Mark full-assoc lists
8738 (decode_weak_list_type): Decode full-assoc type.
8739 (encode_weak_list_type): Encode full-assoc type.
8740 (Fmake_weak_list): Update doc string.
8742 2000-05-30 Andy Piper <andy@xemacs.org>
8744 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8746 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8747 (decode_hash_table_weakness): ditto.
8748 (Fhash_table_weakness): ditto.
8749 (Fhash_table_type): ditto.
8750 (finish_marking_weak_hash_tables): ditto.
8751 (hash_table_weakness_validate): ditto.
8752 (syms_of_elhash): ditto.
8754 2000-05-28 Martin Buchholz <martin@xemacs.org>
8756 * XEmacs 21.2.34 is released.
8758 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8760 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8762 (updating_line_start_cache): Gone.
8763 (regenerate_window): Replace resetting of VERTICAL_CLIP by
8764 generic code to force a minimum of 1 line laid out in the
8767 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8769 * glyphs.c (instantiate_image_instantiator): Check for initialized
8770 height & width no longer special cases IMAGE_NOTHING.
8771 (nothing_instantiate): Set height and width of instance.
8773 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8775 * unexelf.c (unexec): Search for ".data" section.
8776 Initialize new_data2_offset from old_data_index.
8777 Remove redundant check for ElfW.
8779 2000-05-23 Andy Piper <andy@xemacs.org>
8781 * glyphs.c (get_image_instantiator_governing_domain): allow more
8782 specific domains as the governing domain rather than expecting an
8783 exact match. This fixes problems with layouts.
8785 2000-05-22 Andy Piper <andy@xemacs.org>
8787 * redisplay-output.c (compare_runes): check for non-images
8789 * glyphs.c (set_glyph_dirty_p): ditto.
8790 (update_glyph_cachel_data): ditto.
8792 * glyphs-widget.c (layout_post_instantiate): ditto.
8793 (layout_post_instantiate): ditto.
8795 * event-msw.c (mswindows_wnd_proc): warning removal.
8797 2000-05-12 Craig Lanning <CraigL@DyCon.com>
8799 * s\mingw32.h: Added #undef for CLASH_DETECTION.
8801 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8803 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8805 * nt.c (rva_to_section): mingw32 needs rva_to_section.
8806 (mswindows_executable_type): mingw32 now has enough headers for
8809 2000-05-20 Andy Piper <andy@xemacs.org>
8811 * console-msw.c (mswindows_output_last_error): ; -> ,
8813 2000-05-12 Andy Piper <andy@xemacs.org>
8815 * console-msw.c (FROB): compare ints with ints.
8817 2000-05-11 Andy Piper <andy@xemacs.org>
8819 * glyphs-x.c (x_finalize_image_instance): make minimal build
8822 2000-05-20 Ben Wing <ben@xemacs.org>
8825 * event-Xt.c (vars_of_event_Xt):
8826 move modifier-keys-are-sticky to event-stream.c.
8829 * event-msw.c (mswindows_enqueue_mouse_button_event):
8830 * event-msw.c (key_needs_default_processing_p):
8831 * event-msw.c (XEMSW_LCONTROL):
8832 * event-msw.c (mswindows_handle_sticky_modifiers):
8833 * event-msw.c (FROB):
8834 * event-msw.c (clear_sticky_modifiers):
8835 * event-msw.c (output_modifier_keyboard_state):
8836 * event-msw.c (output_alt_keyboard_state):
8837 * event-msw.c (mswindows_wnd_proc):
8838 * event-msw.c (mswindows_modifier_state):
8839 * event-msw.c (emacs_mswindows_handle_magic_event):
8840 implement sticky modifiers.
8843 * event-stream.c (vars_of_event_stream):
8844 move modifier-keys-are-sticky here.
8850 implement map-range-table.
8853 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
8855 * redisplay-tty.c (reset_tty_modes):
8856 (tty_redisplay_shutdown): Adjust argument type to
8857 tty_frame_output_end.
8859 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8861 * eval.c (Fbacktrace): Don't output a line with only right
8864 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
8866 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8867 (Fpq_reset_poll): Ditto.
8869 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
8871 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8873 2000-05-16 Ben Wing <ben@xemacs.org>
8876 * buffer.c (dfc_convert_to/from_internal_format):
8877 * buffer.c (reinit_vars_of_buffer):
8878 Fix conversion functions to allow reentrancy.
8881 * console-msw.c (mswindows_output_last_error):
8882 New fun, generally useful -- output a human-readable
8883 version of GetLastError() on the console.
8886 * console-msw.h (struct mswindows_frame):
8887 Changes for DeferWindowPos. Declare mswindows_output_last_error().
8889 * console-stream.c (stream_output_begin):
8890 * console-stream.c (stream_output_end):
8891 * console-stream.c (stream_output_vertical_divider):
8892 * console-stream.c (stream_clear_region):
8893 * console-stream.c (stream_flash):
8894 * console-stream.c (console_type_create_stream):
8895 Delete blank stream methods, not needed.
8897 * console.h (struct console_methods):
8898 Split begin/end methods into window and frame.
8901 * event-msw.c (mswindows_handle_paint):
8902 * event-msw.c (output_alt_keyboard_state):
8903 * event-msw.c (mswindows_wnd_proc):
8904 * event-msw.c (vars_of_event_mswindows):
8905 Comment about problems with ignored-expose.
8906 Define mswindows-debug-events; not really implemented.
8908 * frame-msw.c (mswindows_init_frame_1):
8912 * glyphs-msw.c (begin_defer_window_pos):
8913 * glyphs-msw.c (mswindows_unmap_subwindow):
8914 * glyphs-msw.c (mswindows_map_subwindow):
8915 * glyphs-msw.c (mswindows_resize_subwindow):
8916 Use DeferWindowPos to reduce flashing when mapping/unmapping.
8918 * glyphs.c (make_image_instance_1):
8921 * gutter.c (Fredisplay_gutter_area):
8922 Use new begin/end methods.
8924 * lisp.h (Dynarr_new2):
8928 * redisplay-msw.c (mswindows_frame_output_begin):
8929 * redisplay-msw.c (mswindows_frame_output_end):
8930 * redisplay-msw.c (console_type_create_redisplay_mswindows):
8931 New begin/end methods -- handle DeferWindowPos.
8933 * redisplay-output.c (redisplay_move_cursor):
8934 * redisplay-output.c (redraw_cursor_in_window):
8935 * redisplay-output.c (redisplay_update_line):
8936 * redisplay-output.c (redisplay_output_window):
8937 New begin/end methods.
8940 * redisplay-tty.c (tty_frame_output_begin):
8941 * redisplay-tty.c (tty_frame_output_end):
8942 * redisplay-tty.c (console_type_create_redisplay_tty):
8943 New begin/end methods.
8946 * redisplay-x.c (x_window_output_begin):
8947 * redisplay-x.c (x_window_output_end):
8948 * redisplay-x.c (console_type_create_redisplay_x):
8949 New begin/end methods.
8951 * redisplay.c (redisplay_frame):
8952 * redisplay.c (Fredisplay_echo_area):
8953 New begin/end methods.
8954 use MAYBE_DEVMETH for clear_frame; it may not exist.
8956 * window.h (WINDOW_XFRAME):
8957 WINDOW_XFOO macros -- get locale and decode struct pointer.
8960 2000-05-12 Ben Wing <ben@xemacs.org>
8963 * emacs.c (ensure_no_quitting_from_now_on):
8964 * emacs.c (fatal_error_signal):
8965 * emacs.c (mswindows_handle_hardware_exceptions):
8967 * emacs.c (Fkill_emacs):
8968 * emacs.c (shut_down_emacs):
8969 * emacs.c (assert_failed):
8970 various improvements in fatal error handling.
8973 move preparing_for_armageddon to emacs.c.
8976 declare fatal_error_in_progress.
8979 * print.c (std_handle_out_external):
8980 * print.c (std_handle_out_va):
8981 * print.c (stderr_out):
8982 * print.c (stdout_out):
8983 use console under mswin when no standard output.
8984 don't do code conversion during fatal error.
8986 * scrollbar.c (Fscrollbar_page_up):
8987 * scrollbar.c (Fscrollbar_page_down):
8988 fix missing else. reindent.
8990 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
8994 * glyphs.h (GLYPH_CACHEL_DESCENT):
8995 (GLYPH_CACHEL_DESCENT):
8996 (GLYPH_CACHEL_DESCENT):
8997 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8998 used in case these are inline functions.
8999 Use more absurd values to error check.
9001 include window.h for error check functions.
9003 2000-05-11 Ben Wing <ben@xemacs.org>
9005 * cmdloop.c (Freally_early_error_handler):
9006 Display message box under windows; otherwise, message will disappear
9007 before it can be viewed.
9010 * console-msw.c (Fmswindows_message_box):
9011 * console-msw.c (FROB):
9012 * console-msw.c (syms_of_console_mswindows):
9013 Define new fun `mswindows-message-box'.
9014 #### I will merge this into `popup-dialog-box'; just give me
9018 * general.c (syms_of_general):
9019 Some new symbols used in `mswindows-message-box'.
9022 * glyphs.c (Fset_image_instance_property):
9023 put warning in this fun.
9026 * glyphs.h (GLYPH_CACHEL_WIDTH):
9027 * glyphs.h (GLYPH_CACHEL_ASCENT):
9028 * glyphs.h (GLYPH_CACHEL):
9029 * glyphs.h (GLYPH_CACHEL_GLYPH):
9030 define error-checking versions to try to catch a bug i've seen --
9031 redisplay gets in an infinite loop because the glyph width of the
9032 continuation glyph is 65535.
9035 Extern message-box stuff.
9037 * window.c (allocate_window):
9038 * window.c (make_dummy_parent):
9039 * window.c (Fset_window_configuration):
9040 Use EQUAL not EQ for subwindow caches to make them work a bit
9041 better. (Something is still very broken.)
9044 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
9046 * glyphs.c (image_instantiate): Suppress gcc warnings.
9047 (Fmake_image_instance): Fix doc string.
9048 * specifier.c (Fmake_specifier): Ditto.
9050 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
9052 * paths.h.in (PATH_LOCK): Removed.
9053 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
9054 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
9056 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
9058 * fns.c (Ffeaturep): Update e-mail address in doc-string.
9059 Document (featurep '(and xemacs 21.02)).
9061 2000-05-09 Ben Wing <ben@xemacs.org>
9063 * buffer.c (complex_vars_of_buffer):
9064 update modeline-format doc.
9067 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9070 timeline of all released versions of Emacs, for use in creating
9071 authorship comments and in synching up.
9073 * glyphs-widget.c (image_instantiator_buttons):
9074 * glyphs-widget.c (image_instantiator_edit_fields):
9075 * glyphs-widget.c (image_instantiator_combo_box):
9076 * glyphs-widget.c (image_instantiator_scrollbar):
9077 * glyphs-widget.c (image_instantiator_progress_guage):
9078 * glyphs-widget.c (image_instantiator_tree_view):
9079 * glyphs-widget.c (image_instantiator_tab_control):
9080 * glyphs-widget.c (image_instantiator_labels):
9081 * glyphs-widget.c (image_instantiator_layout):
9082 * glyphs-widget.c (image_instantiator_native_layout):
9083 rename decode_domain method to governing_domain.
9086 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9087 * glyphs.c (add_entry_to_device_ii_format_list):
9088 make sure we don't put an entry more than once into the list.
9089 * glyphs.c (check_instance_cache_mapper):
9090 *************************************************************
9091 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9093 *************************************************************
9094 * glyphs.c (get_image_instantiator_governing_domain):
9095 clean up, expand on new concept of governing domain.
9096 * glyphs.c (instantiate_image_instantiator):
9097 * glyphs.c (allocate_image_instance):
9098 use governing_domain instead of cache_domain in naming.
9099 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9100 * glyphs.c (make_image_instance_1):
9101 * glyphs.c (Fmake_image_instance):
9102 allow for any domain (not just device), and process the
9103 governing domain correctly. very big doc fix.
9104 * glyphs.c (Fimage_instance_domain):
9105 new primitive, to retrieve the governing domain of an image instance.
9106 * glyphs.c (image_instantiate):
9107 use new governing_domain stuff. this fixes a crash you could get
9108 by instantiating certain widget glyphs in frame locales. (should
9109 signal an error instead of crashing.)
9110 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9111 * glyphs.c (Fglyphp): clean up doc.
9112 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9113 * glyphs.c (syms_of_glyphs):
9114 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9115 * glyphs.c (image_instantiator_format_create): add some comments about
9117 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9118 for current-display-table. (Apparently Hrjove implemented in 1998 a
9119 design I wrote up in 1996, but didn't update the doc string.)
9121 * glyphs.h: clean up a doc string.
9122 * glyphs.h (governing_domain):
9123 * glyphs.h (struct image_instantiator_methods):
9124 changes for governing_domain stuff.
9127 * gutter.c (Fgutter_specifier_p):
9128 * gutter.c (Fgutter_size_specifier_p):
9129 * gutter.c (Fgutter_visible_specifier_p):
9131 * objects.c (Fcolor_specifier_p):
9132 * objects.c (Ffont_specifier_p):
9133 * objects.c (Fface_boolean_specifier_p):
9134 doc strings moved to make-*-specifier.
9136 * redisplay.c (add_disp_table_entry_runes_1):
9137 * redisplay.c (generate_fstring_runes):
9138 * redisplay.c (screen):
9139 add random comments and doc strings.
9142 * specifier.c (Fmake_specifier):
9143 major overhaul of this doc string.
9145 * specifier.c (Fvalid_specifier_domain_p):
9146 comment about the bogosity of image instances being domains.
9147 * specifier.c (decode_domain):
9148 now non-static, used in glyphs.c.
9149 * specifier.c (specifier_instance):
9150 comment about the bogosity of image instances being domains.
9151 * specifier.c (Fgeneric_specifier_p):
9152 move doc string to make-generic-specifier.
9153 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9157 * specifier.h (DOMAIN_FRAME):
9158 * specifier.h (DOMAIN_LIVE_P):
9159 * specifier.h (DOMAIN_XDEVICE):
9161 add comments about problems with these macros.
9162 prototype for decode_domain.
9165 * toolbar.c (Ftoolbar_specifier_p):
9166 move doc string to `make-toolbar-specifier'.
9168 * window.c (window_unmap_subwindows_cache_mapper):
9169 *************************************************************
9170 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9172 *************************************************************
9174 2000-05-09 Andy Piper <andy@xemacs.org>
9176 * glyphs.h: declare reset_frame_subwindow_instance_cache.
9178 * window.c (Fset_window_configuration): reset the frame subwindow
9179 cache and re-initialize the window subwindow caches.
9181 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9183 2000-05-09 Ben Wing <ben@xemacs.org>
9185 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9188 2000-04-26 Mike Woolley <mike@bulsara.com>
9190 * ntheap.c: Changed recreate_heap to limit the amount reserved
9191 for the heap to that which is actually available. Also now
9192 displays a message box (with some dignostics) in the event that
9193 it still can't start.
9195 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
9197 * callproc.c (Fold_call_process_internal): GCPRO path
9199 2000-05-08 Jan Vroonhof <jan@xemacs.org>
9201 Patch by Bill Perry.
9203 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9204 back data instead of #ifdef.
9205 (Fscrollbar_page_down): ditto.
9207 2000-05-07 Ben Wing <ben@xemacs.org>
9210 Kludge for defining Qmswindows_tstr.
9213 * nt.c (open_input_file):
9214 * nt.c (open_output_file):
9215 * nt.c (rva_to_section):
9216 * nt.c (mswindows_executable_type):
9217 Move all memory-mapped-file routines here (some were in unexnt.c,
9218 which is bad because they are used by process-nt.c, and unexnt
9219 won't be around when portable dumping). Synched the above routines
9223 Removed ifdef'd out bogus code.
9224 Fixed some prototypes.
9227 * nt.h (OFFSET_TO_RVA):
9228 * nt.h (RVA_TO_OFFSET):
9229 * nt.h (RVA_TO_PTR):
9230 Moved the memory-mapped-file structures, macros and prototypes
9231 here, to parallel nt.c. ntheap.h should really be removed
9232 entirely, and it's a non-portable-dumper specific file.
9234 * ntheap.h (round_to_next):
9235 Moved the memory-mapped-file structures, macros and prototypes
9238 * ntproc.c (compare_env):
9239 Moved rva_to_section and mswindows_executable_type to nt.c.
9240 Moved compare_env to process-nt.c.
9241 ntproc.c will die, one day.
9243 * ntproc.c (sys_spawnve):
9244 Account for win32_ -> mswindows_.
9247 * process-nt.c (struct nt_process_data):
9248 * process-nt.c (ensure_console_window_exists):
9249 * process-nt.c (compare_env):
9250 * process-nt.c (nt_create_process):
9251 * process-nt.c (nt_kill_process_by_pid):
9252 * process-nt.c (syms_of_process_nt):
9253 * process-nt.c (vars_of_process_nt):
9254 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9255 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9256 changes). Eliminate our old `nt-quote-process-args' mechanism.
9257 Synch up nt_create_process with FSF 20.6 sys_spawnve.
9258 Move compare_env here from ntproc.c.
9260 * process.c (Fprocess_send_region):
9261 Takes an optional fourth argument, BUFFER, which should fix some
9262 problems with call-process.
9265 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9268 Move ICC_BAR_CLASSES to syscommctrl.h.
9269 Add preliminary macros for MSWindows/Mule. More to come.
9272 * unexnt.c (unexec):
9273 open_output_file moved to nt.c.
9276 2000-05-05 Andy Piper <andy@xemacs.org>
9278 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9279 instance from the frame cache also since GC may catch up too late
9280 to make frame deletion sane.
9282 2000-05-04 Andy Piper <andy@xemacs.org>
9284 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9285 (x_finalize_image_instance): ungcpro on deletion.
9287 * glyphs.c (image_instantiator_format_create): give pointers a
9288 query geometry method so that the geometry is at least set.
9290 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9291 initialize layouts if using widgets.
9293 2000-05-03 Andy Piper <andy@xemacs.org>
9295 * nt.c: remove bogus reference to sysmmsystem.h
9297 * gui-x.c (popup_selection_callback): fix no selection abort.
9299 2000-05-02 Andy Piper <andy@xemacs.org>
9301 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9302 (mswindows_widget_instantiate): ditto.
9304 * glyphs-widget.c (initialize_widget_image_instance): initialize
9306 (widget_instantiate): cope with children and items in the same
9309 * glyphs.c (mark_image_instance): cope with children as a first
9311 (image_instance_equal): ditto.
9312 (image_instance_hash): ditto.
9313 (image_instance_changed): ditto.
9315 2000-04-30 Andy Piper <andy@xemacs.org>
9317 * glyphs.c (subwindow_query_geometry): new function. Return some
9319 (subwindow_instantiate): don't assign dimensions if none have been
9321 (image_instantiator_format_create): add subwindow_query_geometry.
9322 (print_image_instance): cope with layouts as widgets.
9324 2000-04-29 Andy Piper <andy@xemacs.org>
9326 * frame.c (delete_frame_internal): call
9327 free_frame_subwindow_instance_cache so that all subwindows are
9328 finalized before their parent.
9329 (mark_frame): remove subwindow_cachels.
9330 (Fmake_frame): remove subwindow_cachel manipulation.
9331 (allocate_frame_core): subwindow_instance_cache is a weak list.
9332 (delete_frame_internal): set subwindow_instance_cache to nil.
9334 * glyphs-msw.c (mswindows_finalize_image_instance): make double
9336 (mswindows_finalize_image_instance): use the device
9337 not the domain as the domain may have died already.
9339 * glyphs-x.c (x_finalize_image_instance): ditto.
9340 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9343 * redisplay-output.c (redisplay_unmap_subwindows): update for
9344 subwindow instance cache as a weak list.
9345 (redisplay_unmap_subwindows_maybe): ditto.
9346 (redisplay_unmap_subwindows_except_us): ditto.
9348 * glyphs.c (unmap_subwindow): error checking will check the domain
9349 so don't deal with it here. Don't use cachels anymore.
9350 (map_subwindow): ditto.
9351 (update_subwindow_cachel_data): remove old accessor names.
9352 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9353 (Fresize_subwindow): don't update cachel.
9354 (mark_subwindow_cachels):
9355 (update_subwindow_cachel_data):
9356 (add_subwindow_cachel):
9357 (get_subwindow_cachel_index):
9358 (update_subwindow_cachel):
9359 (reset_subwindow_cachels):
9360 (mark_subwindow_cachels_as_not_updated): deleted.
9361 (cache_subwindow_instance_in_frame_maybe): new function. Add a
9362 subwindow instance to the frame cache.
9363 (find_matching_subwindow): update for subwindow instance cache as
9365 (update_widget_instances): ditto.
9366 (image_instance_type_to_mask):inlined.
9367 (free_frame_subwindow_instance_cache): new function. finalize all
9368 subwindows that are instantiated.
9370 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9371 of cachel information.
9372 (IMAGE_INSTANCE_DISPLAY_X):
9373 (IMAGE_INSTANCE_DISPLAY_Y):
9374 (IMAGE_INSTANCE_DISPLAY_WIDTH):
9375 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9376 (XIMAGE_INSTANCE_DISPLAY_X):
9377 (XIMAGE_INSTANCE_DISPLAY_Y):
9378 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9379 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9380 remove subwindow_cachel structure and function references.
9381 (image_instance_type_to_mask): inline from glyphs.c
9383 * redisplay.c (redisplay_frame): remove subwindow_cachel
9386 * frame.h (struct frame): remove subwindow_cachels.
9387 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9389 * frameslots.h: add subwindow_instance_cache.
9391 * window.c (replace_window): check subwindow cache of replacement.
9392 (window_unmap_subwindows_cache_mapper):
9393 (window_unmap_subwindows): new functions. Unmap all subwindows
9394 cached on this window.
9395 (mark_window_as_deleted): unmap all subwindows.
9397 2000-04-27 Andy Piper <andy@xemacs.org>
9399 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9401 * glyphs-widget.c (widget_layout): return something.
9402 (layout_layout): return something. Fail if not initialized.
9403 (layout_query_geometry): ditto.
9404 (image_instantiator_native_layout): new function. Initialized the
9406 (widget_instantiate): don't do layout stuff here.
9408 * glyphs.c (instantiate_image_instantiator): reorded calling or
9409 instantiate and post_instantiate with layout in between.
9410 (image_instance_layout): be more selective about deciding whether
9411 the layout has been done or not.
9413 * glyphs.h (struct image_instantiator_methods): return a value
9416 2000-04-26 Andy Piper <andy@xemacs.org>
9418 * glyphs.c (allocate_image_instance): make initial width and
9419 height unspecified. Set initialized to 0.
9421 * syscommctrl.h new file. Encapsulates commctrl.h.
9423 * syswindows.h new file. Encapsulates windows.h.
9425 * ntplay.c: use new syswindows.h and syscommctrl.h header.
9427 * console-msw.h: ditto.
9429 * redisplay-tty.c (tty_output_display_block): remove layout references.
9431 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9432 window handle rather than just the frame.
9434 * glyphs.c (mark_image_instance): remove layout references.
9435 (print_image_instance): ditto.
9436 (image_instance_equal): ditto.
9437 (image_instance_hash): ditto.
9438 (decode_image_instance_type): ditto.
9439 (encode_image_instance_type): ditto.
9440 (image_instantiate): ditto.
9441 (allocate_glyph): ditto.
9442 (Fimage_instance_height): ditto.
9443 (Fimage_instance_width): ditto.
9444 (update_subwindow): ditto.
9446 * redisplay-x.c (x_output_display_block): recode for layouts as
9449 * redisplay-output.c (redisplay_output_layout): recode for layouts
9451 (compare_runes): remove layout references.
9453 * redisplay-msw.c (mswindows_output_display_block): recode for
9456 * glyphs-widget.c (image_instantiator_layout): remove
9457 layout_possible_dest_types.
9458 (layout_possible_dest_types): deleted.
9460 * glyphs.h (image_instance_type): remove layout references.
9461 (struct Lisp_Image_Instance): ditto. Add initialized flag.
9462 (IMAGE_INSTANCE_INITIALIZED): new accessor.
9463 (XIMAGE_INSTANCE_INITIALIZED): ditto.
9465 2000-04-25 Andy Piper <andy@xemacs.org>
9467 * glyphs-widget.c (image_instantiator_buttons):
9468 (image_instantiator_edit_fields):
9469 (image_instantiator_combo_box):
9470 (image_instantiator_scrollbar):
9471 (image_instantiator_progress_guage):
9472 (image_instantiator_tree_view):
9473 (image_instantiator_tab_control):
9474 (image_instantiator_labels):
9475 (image_instantiator_layout): call default post_instantiate method.
9476 (widget_post_instantiate): new function. Simply lays out the
9479 * glyphs.h (struct image_instantiator_methods): add
9480 post_instantiate method.
9482 * glyphs.c (instantiate_image_instantiator): add post_instantiate
9485 2000-04-23 Andy Piper <andy@xemacs.org>
9487 * glyphs.h (struct image_instantiator_methods): add
9488 decode_domain_method.
9489 (struct Lisp_Image_Instance): remove subwindow frame - it can be
9490 derived from the domain.
9491 (IMAGE_INSTANCE_FRAME): new accessor.
9492 (XIMAGE_INSTANCE_FRAME): ditto.
9494 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9495 instead of _SUBWINDOW_FRAME.
9496 (finalize_image_instance): ditto.
9497 (Fimage_instance_foreground): ditto.
9498 (Fimage_instance_background): ditto.
9499 (image_instantiate): ditto.
9500 (update_subwindow_cachel): ditto.
9501 (update_subwindow): ditto.
9502 (unmap_subwindow): ditto.
9503 (map_subwindow): ditto
9504 (subwindow_instantiate): ditto.
9505 * glyphs-msw.c (mswindows_update_widget): ditto.
9506 (mswindows_progress_gauge_instantiate): ditto.
9507 (mswindows_tab_control_update): ditto.
9508 * glyphs-x.c (x_update_widget): ditto.
9509 (x_widget_instantiate): ditto.
9510 (x_tab_control_instantiate): ditto.
9511 (x_tab_control_update): ditto.
9512 * event-msw.c (mswindows_wnd_proc): ditto
9514 * glyphs-widget.c (image_instantiator_layout): use
9515 subwindow_decode_domain.
9516 (image_instantiator_buttons): ditto.
9517 (image_instantiator_edit_fields): ditto.
9518 (image_instantiator_combo_box): ditto.
9519 (image_instantiator_scrollbar): ditto.
9520 (image_instantiator_progress_guage): ditto.
9521 (image_instantiator_tree_view): ditto.
9522 (image_instantiator_tab_control): ditto.
9523 (image_instantiator_labels): ditto.
9524 (image_instantiator_layout): ditto.
9526 * glyphs.c: add instance error checking to many functions.
9527 (instantiate_image_instantiator): decode device from cache_domain.
9528 (image_instantiate): partially rewrite by using
9529 decode_image_instantiator_domain to determine what domain the
9530 instance needs to be cached in.
9531 (decode_image_instantiator_domain): new function. Determine what
9532 domain the image needs to be cached in.
9533 (check_window_subwindow_cache): new error checking function.
9534 (check_instance_cache_mapper): ditto.
9535 (check_image_instance_structure): ditto.
9536 (subwindow_decode_domain): new function. Encodes a window as a
9537 subwindow's cache domain.
9538 (image_instantiator_format_create): use it for text and
9541 2000-04-21 Andy Piper <andy@xemacs.org>
9543 * glyphs.c (image_instance_device): new function.
9544 (image_instance_frame): new function.
9545 (image_instance_window): new function.
9546 (image_instance_live_p): new function.
9548 * window.c (mark_window_as_deleted): reset the subwindow_instance_
9551 * glyphs.h (struct Lisp_Image_Instance): device->domain.
9552 (IMAGE_INSTANCE_DOMAIN): new accessor.
9553 (XIMAGE_INSTANCE_DOMAIN): ditto.
9555 * glyphs-x.c (x_finalize_image_instance): device->domain.
9557 * glyphs-msw.c (init_image_instance_geometry): device->domain.
9558 (mswindows_finalize_image_instance): ditto.
9560 * glyphs-eimage.c (jpeg_instantiate): device->domain.
9561 (gif_instantiate): ditto.
9562 (png_instantiate): ditto.
9563 (tiff_instantiate): ditto.
9565 * glyphs.c (instantiate_image_instantiator): use domain rather
9567 (mark_image_instance): device -> domain.
9568 (print_image_instance): ditto.
9569 (finalize_image_instance): ditto.
9570 (image_instance_equal): ditto.
9571 (allocate_image_instance): ditto.
9572 (Fcolorize_image_instance): ditto.
9573 (query_string_geometry): ditto.
9574 (image_instantiate): ditto
9575 (query_string_font): ditto.
9576 (image_instantiate): ditto.
9577 (update_subwindow): ditto.
9578 (unmap_subwindow): ditto.
9579 (map_subwindow): ditto.
9580 (subwindow_instantiate): ditto.
9582 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9583 (DOMAIN_FRAME): ditto.
9584 (DOMAIN_WINDOW): ditto.
9585 (DOMAIN_LIVE_P): ditto.
9586 (XDOMAIN_DEVICE): ditto.
9587 (XDOMAIN_FRAME): ditto.
9588 (XDOMAIN_WINDOW): ditto.
9590 * specifier.c (Fvalid_specifier_domain_p): add image instances as
9591 a valid specifier domain.
9593 2000-04-19 Andy Piper <andy@xemacs.org>
9595 * glyphs-widget.c (syms_of_glyphs_widget): remove
9596 widget-callback-current-channel.
9597 (vars_of_glyphs_widget): ditto.
9600 * gui.c (get_gui_callback): revert to previous behaviour.
9602 2000-04-18 Andy Piper <andy@xemacs.org>
9604 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9605 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9606 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9608 * glyphs.c (image_instance_equal): add margin_width.
9609 (image_instance_hash): ditto.
9611 * glyphs-widget.c (widget_instantiate): deal with margin-width.
9612 (layout_query_geometry): ditto.
9613 (layout_layout): ditto.
9614 (syms_of_glyphs_widget): add margin-width.
9615 (image_instantiator_layout): allow margin-width.
9617 * glyphs.c (update_widget_instances): make a normal function.
9618 (syms_of_glyphs): remove Qupdate_widget_instances.
9621 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9622 so that we don't corrupt ideas about the last event or
9623 command. Remove widget-callback-current-channel fiddling.
9624 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9626 2000-05-01 Martin Buchholz <martin@xemacs.org>
9628 * XEmacs 21.2.33 is released.
9630 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
9632 * make-src-depend: Allow dots in header file name.
9634 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
9636 * mule-charset.h (struct charset_lookup): Add
9637 next_allocated_1_byte_leading_byte and
9638 next_allocated_2_byte_leading_byte.
9639 * mule-charset.c: Move above two variables so that those values
9642 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
9644 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9645 when string length is zero.
9646 (find_charsets_in_emchar_string): Ditto.
9648 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
9650 * lisp.h: extern Qdialog and Qmenubar.
9652 * gui-x.c: added events.h.
9653 also fixed typo which made the file uncompilable.
9655 * general.c: Added Qmenubar and Qdialog
9657 2000-04-28 Ben Wing <ben@xemacs.org>
9659 * frame-msw.c (mswindows_init_frame_1):
9660 * frame-msw.c (mswindows_mark_frame):
9661 * event-msw.c (mswindows_enqueue_dispatch_event):
9663 * console-msw.h (struct mswindows_frame):
9664 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9665 there are now three hash tables for callbacks.
9666 mswindows_enqueue_dispatch_event is no longer static.
9668 * dialog-x.c (maybe_run_dbox_text_callback):
9669 * dialog-x.c (dbox_descriptor_to_widget_value):
9670 switch to new cons3 form for callbacks.
9672 * glyphs-msw.c (mswindows_register_gui_item):
9673 * glyphs-msw.c (mswindows_widget_instantiate):
9674 * glyphs-msw.c (add_tree_item):
9675 * glyphs-msw.c (add_tab_item):
9676 new image instance parameter, so it can be passed to callback-ex.
9677 respect :callback-ex as well as :callback.
9679 * glyphs-widget.c (VALID_GUI_KEYWORDS):
9682 * glyphs.c (print_image_instance):
9683 prettify, e.g. now prints widget type.
9686 certain funs have new image instance parameter.
9689 * gui.c (get_gui_callback):
9690 * gui.c (gui_item_add_keyval_pair):
9691 * gui.c (gui_item_init):
9692 * gui.c (gui_add_item_keywords_to_plist):
9693 * gui.c (mark_gui_item):
9694 * gui.c (gui_item_hash):
9695 * gui.c (gui_item_equal):
9696 * gui.c (copy_gui_item):
9697 * gui.c (syms_of_gui):
9698 recognize callback-ex in a number of places.
9699 also, fix the annoying "can't get out of yes-no dialog" bug.
9702 * gui.h (struct Lisp_Gui_Item):
9703 recognize callback-ex in a number of places.
9705 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9706 new parameter in button_item_to_widget_value.
9708 * glyphs-x.c (x_update_widget):
9709 * glyphs-x.c (x_button_instantiate):
9710 * glyphs-x.c (x_button_update):
9711 * glyphs-x.c (x_progress_gauge_instantiate):
9712 * glyphs-x.c (x_edit_field_instantiate):
9713 * glyphs-x.c (x_combo_box_instantiate):
9714 * glyphs-x.c (x_tab_control_instantiate):
9715 * glyphs-x.c (x_label_instantiate):
9716 new image instance parameter in various places.
9719 * event-Xt.c (enqueue_Xt_dispatch_event):
9720 this fun gets exported.
9723 * gui-msw.c (mswindows_handle_gui_wm_command):
9724 handle both :callback and :callback-ex, and generate our own
9725 event because it's one of the callback-ex arguments.
9728 * gui-x.c (popup_selection_callback):
9729 handle both :callback and :callback-ex, and generate our own
9730 event because it's one of the callback-ex arguments.
9731 * gui-x.c (button_item_to_widget_value):
9732 * gui-x.c (gui_items_to_widget_values_1):
9733 * gui-x.c (gui_item_children_to_widget_values):
9734 * gui-x.c (gui_items_to_widget_values):
9735 new image instance parameter in various places.
9737 * fns.c (Freplace_list):
9738 fix small typo in doc string.
9741 declare enqueue_Xt_dispatch_event.
9743 2000-04-28 Ben Wing <ben@xemacs.org>
9746 * buffer.c (Frecord_buffer):
9747 * buffer.c (syms_of_buffer):
9748 delete record-buffer-hook.
9751 * fns.c (Freplace_list):
9752 * fns.c (syms_of_fns):
9753 new primitive replace-list.
9756 slot for old buffer-alist.
9762 * redisplay.c (redisplay_frame):
9763 * redisplay.c (syms_of_redisplay):
9764 * redisplay.c (vars_of_redisplay):
9765 new hook buffer-list-changed-hook.
9768 2000-04-27 Ben Wing <ben@xemacs.org>
9770 * extents.h: extern in_modeline_generation.
9772 * redisplay.c (generate_formatted_string_db): set
9773 in_modeline_generation.
9775 * extents.c (extent_changed_for_redisplay): don't mark redisplay
9776 flags if in modeline generation. otherwise frame-modified-tick
9777 is ticked far too often.
9778 Declare in_modeline_generation.
9780 2000-04-26 Ben Wing <ben@xemacs.org>
9782 * emacs.c (vars_of_emacs): document quick-build "error-checking"
9784 (vars_of_emacs): add quick-build as an error-checking option.
9785 A bit kludgy, but there doesn't seem much point in creating
9786 a real var for this.
9788 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9790 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
9792 * redisplay.h (struct display_line): Add a new variable,
9795 * redisplay.c (create_text_block): Set dl->line_continuation if
9797 (create_string_text_block): Ditto.
9798 (regenerate_window_incrementally): Use line_continuation instead
9799 of searching continuation glyph.
9800 (add_margin_runes): Call add_glyph_rune.
9801 (add_glyph_rune): Handle margin glyph.
9803 2000-04-20 Martin Buchholz <martin@xemacs.org>
9805 * filelock.c (fill_in_lock_file_name):
9807 Check for IS_ANY_SEP instead of '/'.
9809 Avoid generating gratuitous garbage. Call user_login_name() directly.
9810 Never check errno without first seeing that system call failed.
9811 (unlock_file): Add GCPRO.
9812 (Flock_buffer): Fix docstring.
9813 (Ffile_locked_p): Fix docstring. Add GCPRO.
9815 2000-04-19 Martin Buchholz <martin@xemacs.org>
9817 * sysdep.c (get_pty_max_bytes):
9818 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9819 strings longer than 252 bytes.
9821 * md5.c: Unconditionally include ANSI header <limits.h>
9823 * glyphs-x.c (convert_EImage_to_XImage):
9824 * lisp-union.h (union Lisp_Object):
9825 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9827 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9829 * filelock.c (current_lock_owner): Remove unused variable o, p.
9831 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
9833 * callint.c: Remove multiply defined symbol Qlet
9834 (syms_of_callint): ditto.
9836 2000-04-14 Andy Piper <andy@xemacs.org>
9838 * general.c (syms_of_general): add last-command, this-command, let
9841 * lisp.h: declare various symbols.
9843 * glyphs.h: declare Qwidget_callback_current_channel;
9845 * glyphs-widget.c (syms_of_glyphs_widget): add
9846 Qgui_callback_current_channel.
9847 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9849 * gui-msw.c (mswindows_handle_gui_wm_command): bind
9850 widget-callback-current-channel when invoking the interactive
9851 arg. Also bind last-command and next-command when invoking the
9853 * gui-x.c (popup_selection_callback): ditto.
9855 * gui.c (get_gui_callback): massage args so that we are always
9856 calling eval. This allows us to add our own variable bindings
9859 * glyphs-x.c (x_button_instantiate): use
9860 gui_items_to_widget_values since this is GC safe.
9861 (x_progress_gauge_instantiate): ditto.
9862 (x_edit_field_instantiate): ditto.
9863 (x_label_instantiate): ditto.
9865 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9866 (emacs_Xt_event_widget_focus_out): new function
9867 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9869 (emacs_Xt_event_add_widget_actions): new function. add focus
9870 functions as actions.
9871 (init_event_Xt_late): use it.
9873 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
9875 * event-stream.c (Fdispatch_event): Doc fix.
9877 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
9879 * postgresql.c: Remove all references to PQsetenv*.
9881 * postgresql.h: Remove references to PGsetenvHandler object.
9882 * lrecord.h (lrecord_type): Ditto.
9884 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9886 * glyphs-msw.h (struct mswindows_image_instance_data): Added
9887 real_heigh and real_width members, and accessor macros for these.
9889 * glyphs-msw.c (init_image_instance_geometry): New function.
9890 (init_image_instance_from_dibitmap): Use it.
9891 (mswindows_resource_instantiate): Use it.
9892 (init_image_instance_from_xbm_inline): Use it.
9893 (mswindows_initialize_image_instance_mask): Use real bitmap
9895 (mswindows_create_resized_bitmap): Ditto.
9896 (mswindows_create_resized_mask): Ditto.
9898 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9899 and bitmap to their surface size.
9901 2000-04-11 Jan Vroonhof <jan@xemacs.org>
9903 * process-unix.c (unix_send_process): Guard against process MIA
9904 after Faccept_process_output.
9906 2000-04-11 Ben Wing <ben@xemacs.org>
9908 * eval.c (unbind_to_hairy): fix brokenness introduced by
9909 nanosecond speed improvements.
9911 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
9913 * sunplay.c (init_device): To play sounds correctly, the device
9914 apparently needs to be initialized at least once by XEmacs. Make
9917 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
9919 * redisplay.c (add_margin_runes): Add text image glyph
9922 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9924 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9925 gcc is newer than 2.5.
9927 2000-04-06 Colin Rafferty <colin@xemacs.org>
9929 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9931 * fns.c (size_bit_vector):
9932 * alloc.c (size_vector):
9933 (make_vector_internal):
9934 (make_bit_vector_internal):
9935 (sweep_bit_vectors_1):
9936 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9938 2000-04-06 Andy Piper <andy@xemacs.org>
9940 * gmalloc.c (malloc): undo previous change.
9945 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
9947 * line-number.c (buffer_line_number): Revert to former version.
9949 2000-04-06 Andy Piper <andy@xemacs.org>
9951 * gmalloc.c (malloc): add error checking.
9956 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9957 button_item_to_widget_value arg.
9959 * glyphs-x.c (x_button_instantiate): add extra
9960 button_item_to_widget_value arg.
9961 (x_progress_gauge_instantiate): ditto.
9962 (x_edit_field_instantiate): ditto.
9963 (x_label_instantiate): ditto.
9965 * gui-x.c (gui_items_to_widget_values_1): add extra
9966 button_item_to_widget_value arg.
9967 (button_item_to_widget_value): add extra menu_item_p arg.
9969 * gui-x.h: change signature of button_item_to_widget_value.
9971 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9972 button_item_to_widget_value arg.
9974 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9976 * buffer.h (struct buffer): auto_save_modified should be long.
9978 2000-04-05 Andy Piper <andy@xemacs.org>
9980 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9982 (button_query_geometry): give a little more room so that athena
9985 2000-04-05 Andy Piper <andy@xemacs.org>
9987 * faces.c (complex_vars_of_faces): The widget face should inherit
9988 the font of the gui-element face.
9990 2000-04-04 Andy Piper <andy@xemacs.org>
9992 * glyphs-x.c (x_button_update): new function. unconditionally
9993 update a button's state when the instance is dirty.
9994 (image_instantiator_format_create_glyphs_x): add x_button_update.
9995 (x_widget_instantiate): remove old resize cruft.
9997 2000-04-02 Andy Piper <andy@xemacs.org>
9999 * frame.c (change_frame_size_1): The introduction of gutters means
10000 that we need to allow 0 as a potential frame dimension.
10002 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
10004 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
10005 image glyph if allow_cursor.
10006 (add_hscroll_rune): Don't allow cursor to border glyph.
10007 (create_text_block): Ditto.
10009 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
10010 text not in buffer.
10011 (redisplay_output_layout): Call ensure_face_cachel_complete for
10015 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
10017 * redisplay.c (add_glyph_rune): Adding text image as text runes.
10019 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
10022 * redisplay-tty.c (tty_output_display_block): Delete the routine
10023 for text image glyph
10024 * redisplay-x.c (x_output_display_block): ditto
10025 * redisplay-msw.c (mswindows_output_display_block): ditto
10027 2000-02-02 Mike Alexander <mta@arbortext.com>
10029 Note: Some of these were committed by accident as part of other
10032 * regex.c (regex_compile): Avoid compiler warnings.
10034 * ntproc.c (sys_spawnve): Avoid compiler warnings.
10036 * nt.h: Declare term_ntproc correctly.
10038 * nt.c: Remove incorrect declaration of get_home_directory which
10039 is declared correctly in lisp.h.
10041 * keymap.c (get_keyelt): Avoid compiler warnings.
10042 (raw_lookup_key_mapper): Avoid compiler warnings.
10044 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
10046 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
10048 * filemode.c (mode_string): Avoid compiler warnings.
10050 * file-coding.c (Fcoding_system_aliasee): Add return statement to
10053 * events-mod.h: Undef some things that winuser.h defines differently.
10055 * data.c (Faset): Avoid compiler warnings.
10057 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10059 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10061 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10062 Fall through to simple beep on error.
10063 Replace "extern" by real header file.
10065 * linuxplay.c: Use nativesound.h
10066 (play_sound_data): Return error code. Be less verbose on error.
10068 * sunplay.c: Use nativesound.h
10069 (play_sound_data): Return error code. Be less verbose on error.
10071 * ntplay.c: Use nativesound.h
10072 (play_sound_data): Return fake error code
10074 * sgiplay.c: Use nativesound.h
10075 (play_sound_data): Return error code
10077 * hpplay.c: Use nativesound.h, partially implement
10078 new error code. Break compilation until finished.
10079 (play_sound_data): error code.
10081 * nativesound.h (play_sound_file):
10082 (play_sound_data): Prototype in new header.
10084 2000-03-31 Andy Piper <andy@xemacs.org>
10086 * glyphs-widget.c: (button_query_geometry): new function. Adjust
10087 for toggle and radio buttons.
10088 (image_instantiator_buttons): use it.
10090 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10092 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10093 (x_update_horizontal_scrollbar_callback): Return if no mirror was
10094 found. Scrollbar event probably belonged to some old config.
10096 2000-03-31 Andy Piper <andy@xemacs.org>
10098 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10100 (initialize_widget_image_instance): default layout to
10101 LAYOUT_HORIZONTAL rather than 0.
10102 (widget_instantiate): reverse the item list at the end rather than
10104 (layout_layout): re-code for the border text at the front of the
10105 item list rather than at the end.
10106 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10107 provided by the user.
10108 (widget_query_geometry): comment.
10110 2000-03-30 Andy Piper <andy@xemacs.org>
10112 * glyphs-widget.c (image_instantiator_layout): allow standard
10113 widget keywords in layouts.
10115 * gutter.c (output_gutter): cope with nil gutter contents.
10117 * frame.c (Fset_frame_properties): add gutter docs.
10119 2000-03-29 Andy Piper <andy@xemacs.org>
10121 * toolbar-msw.c (TBSTYLE_FLAT): add.
10122 (mswindows_output_toolbar): minor fiddling.
10124 2000-03-29 Andy Piper <andy@xemacs.org>
10126 * gutter.c (output_gutter): force gutter size recalculation if
10127 what we are trying to display won't fit.
10128 (update_gutter_geometry): new function. A per-gutter version of
10129 update_frame_gutter_geometry.
10130 (update_frame_gutter_geometry): use it.
10131 (redraw_exposed_gutter): add extra debugging output.
10133 2000-03-28 Mike Alexander <mta@arbortext.com>
10135 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10136 (pdump_file_unmap): Implement it on Windows
10137 (pdump_file_get): Save alocated handles for pdump_file_unmap
10139 2000-03-28 Andy Piper <andy@xemacs.org>
10141 * gui.c (get_gui_callback): treat Quit specially.
10143 2000-03-27 Andy Piper <andy@xemacs.org>
10145 * glyphs.c (image_instantiate): be careful to check in the same
10148 2000-03-27 Didier Verna <didier@xemacs.org>
10150 * config.h.in: define the proper SMART_INCLUDE macro.
10151 handle renaming of `foo_h_path' to `foo_h_file'.
10153 * database.c: ditto.
10157 * linuxplay.c: ditto.
10159 * terminfo.c: ditto.
10161 * tooltalk.h: ditto.
10163 2000-03-27 Andy Piper <andy@xemacs.org>
10165 * glyphs-msw.c (mswindows_update_widget): make sure the widget
10166 gets updated whenever the face might have changed.
10168 2000-03-26 Mike Alexander <mta@arbortext.com>
10170 * dumper.c (pdump_resource_free): Fix the comment.
10172 2000-03-21 Olivier Galibert <galibert@pobox.com>
10174 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10176 2000-03-22 Mike Alexander <mta@arbortext.com>
10178 * dumper.c: Include Windows headers on Windows
10179 (pdump_resource_free): Add a body to the function
10180 (pdump_load): exe_name -> exe_path and add some comments.
10182 2000-03-25 Mike Alexander <mta@arbortext.com>
10184 * gui.c (copy_gui_item_tree): Return a value in all cases
10186 2000-03-21 Didier Verna <didier@xemacs.org>
10188 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10190 (SMART_INCLUDE): new macro.
10191 (POSTGRES_INCLUDE): new macro to include postgresql headers from
10192 the proper location.
10194 * postgresql.c: use it.
10198 2000-03-24 Andy Piper <andy@xemacs.org>
10200 * gutter.c (redraw_exposed_gutters): must be "in display" when we
10203 2000-03-24 Andy Piper <andy@xemacs.org>
10205 * redisplay-output.c (compare_runes): use image_instance_changed
10206 to detect changes. Do not depend on glyphs_changed, only depend on
10208 (redisplay_output_layout): add debug messages.
10209 (compare_runes): ditto.
10211 * glyphs.h: declare new functions.
10212 (struct Lisp_Image_Instance): remove percent and associated
10215 * gui.h: declare new copying functions.
10217 * gui.c (copy_gui_item_tree): new function.
10218 (copy_gui_item): new function.
10219 (gui_item_id_hash): revert to standard hash.
10220 (gui_item_hash): ditto.
10221 (gui_item_hash_internal): deleted.
10222 (mark_gui_item): mark value.
10223 (gui_item_add_keyval_pair): add value.
10224 (gui_item_init): ditto.
10225 (gui_add_item_keywords_to_plist): ditto.
10226 (gui_item_equal): ditto.
10227 (syms_of_gui): add Q_value.
10229 * glyphs-x.c (x_progress_gauge_update): use pending items and
10230 value for setting the state.
10231 (x_update_widget): don't set items from pending here.
10233 * glyphs-widget.c (update_widget): update items here.
10234 (progress_gauge_set_property): use items for storing value. Put
10235 new value in pending items.
10237 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10238 items for new value. Convert percent -> value.
10239 (mswindows_tab_control_update): don't update items here.
10241 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10242 (update_subwindow): ditto.
10243 (image_instance_changed): new function. Compare hash values and
10244 past and present widget items.
10245 (image_instantiate): We more careful about where we instantiate
10247 (image_instantiate): add error checking.
10249 * gutter.c (syms_of_gutter): use -hook.
10251 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
10253 * console-tty.c (Fset_console_tty_input_coding_system): Use
10255 (Fset_console_tty_output_coding_system): Use Qterminal.
10256 (tty_init_console): Use Qkeyboard and Qterminal.
10258 2000-03-21 Ben Wing <ben@xemacs.org>
10260 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10261 From Mike Alexander <mta@arbortext.com>.
10263 2000-03-21 Ben Wing <ben@xemacs.org>
10265 * event-msw.c (mswindows_need_event): Horrible kludge to fix
10266 process brokenness. Proper implementation to come.
10268 Rename call-process-internal to old-call-process-internal.
10269 New impl. in process.el.
10271 2000-03-21 Martin Buchholz <martin@xemacs.org>
10273 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10275 2000-03-20 Andy Piper <andy@xemacs.org>
10277 * glyphs.c (full_list_hash): make hashes of the same elements in
10278 different orders return different values.
10280 2000-03-20 Martin Buchholz <martin@xemacs.org>
10282 * XEmacs 21.2.32 is released.
10284 2000-03-20 Martin Buchholz <martin@xemacs.org>
10286 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10287 (DFC_MALLOC_USE_CONVERTED_DATA):
10288 Add aliasing-safe casts to allow use with char* or unsigned char*
10291 * eldap.c (Fldap_open):
10292 (Fldap_search_basic):
10295 Make C++-compilable.
10296 Make sure GCPRO'ed variables are initialized.
10297 Use temp variables to avoid repeated calls to Flength.
10299 2000-03-16 Martin Buchholz <martin@xemacs.org>
10302 Make sure PATH_MAX is always defined.
10303 Include limits.h for PATH_MAX.
10304 Deprecate use of MAXPATHLEN.
10306 2000-03-10 Martin Buchholz <martin@xemacs.org>
10308 * emacs.c: Add reinit_vars_of_fileio.
10309 * symsinit.h: Add reinit_vars_of_fileio.
10310 * fileio.c (reinit_vars_of_fileio): New.
10311 * fileio.c (Fmake_temp_name):
10312 Initialize temp_name random number from microseconds to make
10313 collisions even less likely. Initialize always at process startup
10314 time. (make-temp-name) used to return the same file name twice in
10316 Random stylistic fiddling.
10319 2000-03-20 Andy Piper <andy@xemacs.org>
10321 * glyphs.c (image_instantiate): allow text glyphs to be
10322 instantiated in the minibuffer window.
10324 2000-03-19 Andy Piper <andy@xemacs.org>
10326 * glyphs.c (image_instance_hash): be careful about which items we
10329 * glyphs-widget.c (tab_control_set_property): record into pending
10330 items rather than the actual items.
10332 * glyphs-x.c (x_update_widget): use pending items to update with.
10334 * glyphs-msw.c (mswindows_tab_control_update): use pending items
10337 * glyphs.c (mark_image_instance): mark pending items.
10339 * window.c (Fset_window_configuration): record the buffer.
10340 (Fselect_window): totally revert previous change which breaks many
10343 2000-03-18 Andy Piper <andy@xemacs.org>
10345 * glyphs-msw.c (mswindows_tab_control_update): force selected
10348 * glyphs.c (image_instantiate): don't allow the minibuffer as a
10349 window domain cache, otherwise we get inconsistencies at
10350 startup. There is something fishy at startup which can lead to the
10351 minibuffer being the selected window when the gutter content is
10354 * gui.c (parse_gui_item_tree_list): add probably unnecessary
10356 (parse_gui_item_tree_children): ditto.
10357 (parse_gui_item_tree_item): ditto.
10359 * glyphs.c (Fupdate_widget_instances): return something.
10361 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
10363 * window.c (Fselect_window): Undo 2000-03-17 change.
10365 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
10367 * postgresql.c (Fpq_setenv): Remove this turkey when linking
10368 against v7.0 libraries. Insta-coredump city until the postgres
10371 2000-03-17 Andy Piper <andy@xemacs.org>
10373 * faces.c (complex_vars_of_faces): don't give the widget face an
10374 inherited background pixmap.
10376 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10379 * event-stream.c (Fdispatch_non_command_events): return something.
10381 * gutter.c (output_gutter): use widget face.
10382 (clear_gutter): ditto.
10384 * NEWS: adjust again.
10386 * window.c (Fselect_window): make sure this runs to completion to
10387 avoid oddities with Fset_window_configuration.
10388 (Fcurrent_window_configuration): in general do not save the
10389 minibuffer as the selected window.
10391 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10393 2000-03-16 Olivier Galibert <galibert@pobox.com>
10395 * emacs.c (Frunning_temacs_p): Revert previous patch.
10396 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10398 2000-03-16 Andy Piper <andy@xemacs.org>
10400 * glyphs-x.c (x_tab_control_update): if no widget values then
10403 * NEWS: update for new features.
10405 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10406 synthetic event to the native system.
10407 (reinit_vars_of_event_Xt): set force_event_pending to
10408 emacs_Xt_force_event_pending.
10410 * events.h (struct event_stream): add force_event_pending.
10412 * specifier.c (recompute_one_cached_specifier_in_window): add
10415 * redisplay.c (redisplay_frame): don't call
10416 update_frame_subwindows. Reset subwindow cachels when
10417 subwindows_changed, removing this was an optimization too far.
10419 * redisplay-output.c (compare_runes): reorganize so that we catch
10420 glyph changes when we want them. Set optimize_output when this
10421 would help layouts.
10422 (redisplay_output_layout): remove frame_really_changed, use
10423 optimize_output instead.
10425 * redisplay-msw.c (mswindows_output_display_block): reset
10426 optimize_output after outputting a glyph.
10427 * redisplay-x.c (x_output_display_block): ditto.
10428 * redisplay-tty.c (tty_output_display_block): ditto.
10430 * gutter.c: (specifier_vars_of_gutter): use new spec changed
10432 (gutter_specs_changed): do specific gutter positions.
10433 (top_gutter_specs_changed): new function. Only update the
10434 specified gutter specs.
10435 (bottom_gutter_specs_changed): ditto.
10436 (left_gutter_specs_changed): ditto.
10437 (right_gutter_specs_changed): ditto.
10439 * gui.c (gui_item_hash_internal): new function, does a real hash.
10440 (gui_item_id_hash): use it.
10441 (gui_item_hash): hash the eval'ed gui_item.
10443 * gui-x.c (popup_selection_callback): send an eval event to call
10444 Fupdate_widget_instances.
10446 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10447 to call Fupdate_widget_instances.
10449 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10450 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10452 * glyphs.c: (update_frame_subwindows): deleted.
10453 (Fupdate_widget_instances): new function for updating the dirty
10454 state of widgets that might have changed.
10455 (syms_of_glyphs): add Qupdate_widget_instances.
10456 (full_list_hash): hash a list completely.
10457 (image_instance_hash): use it for items and properties.
10459 * frame-msw.c (mswindows_size_frame_internal): remove unused
10462 * faces.h (struct face_cachel): fix comment.
10464 * event-stream.c (Fdispatch_non_command_events): new
10465 function. Process non-command events, forcing an event cycle
10467 (syms_of_event_stream): declare.
10468 (event_stream_force_event_pending): new function. Force an event
10469 on the native event queue so that an event cycle will occur next
10473 (struct ntpipe_shove_stream):
10474 (mswindows_enqueue_dispatch_event):
10475 (mswindows_dequeue_dispatch_event):
10476 (mswindows_cancel_dispatch_event):
10477 (mswindows_pump_outstanding_events):
10478 (mswindows_drain_windows_queue):
10479 (mswindows_handle_paint):
10480 (mswindows_wnd_proc):
10481 (mswindows_key_to_emacs_keysym):
10482 (get_process_input_waitable):
10483 (emacs_mswindows_delete_stream_pair): re-indent file.
10484 (mswindows_need_event): do not process further fds if the windows
10485 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10486 fixes the 100% cpu problem.
10487 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10489 2000-03-15 Olivier Galibert <galibert@pobox.com>
10495 * emacs.c: Moved dump file searching to dumper.c.
10496 (Frunning_temacs_p): Fixed.
10498 * alloc.c: Moved everything pdump-related to dumper.c. Removed
10499 last_lrecord_type_index_assigned.
10501 2000-02-20 Olivier Galibert <galibert@pobox.com>
10503 * symsinit.h: Added reinit parameter to init_console_stream
10506 * lisp.h: Added file parameter to pdump_load declaration.
10508 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10509 support. Added dump file searching.
10511 * config.h.in: Added EMACS_PROGNAME.
10513 * console-stream.c (init_console_stream): Fix reinitialisation
10514 when running from temacs.
10516 * alloc.c (pdump): Add id support.
10517 (pdump_load): Add file parameter and signature/id support.
10519 * Makefile.in.in: Add full pdump support.
10521 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
10523 * postgresql.c: Update documentation to reflect latest code
10525 (print_result): Show tuple counts in printed representation when
10527 (Fpq_put_nbytes): MULE-ize.
10528 (Fpq_get_line_async): Ditto.
10530 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10532 * postgresql.c (Fpq_lo_import): Fix return value.
10533 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10535 2000-03-13 Ben Wing <ben@xemacs.org>
10537 * alloc.c (pdump_load):
10538 Fix compile warning under mswin.
10540 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10542 * postgresql.c: Mule-ization, bug fixes.
10543 Use PG_CODING to encapsulate coding system name changes.
10544 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10545 (pg-coding-system): Create.
10547 (Fpq_conn_defaults): Mule-ize.
10548 (Fpq_connectdb): Mule-ize & bug fix.
10549 (Fpq_connect_start): Mule-ize.
10550 (Fpq_set_client_encoding): Mule-ize.
10551 (Fpq_finish): Document `DEAD' connection status.
10552 (Fpq_clear): Ditto.
10553 (Fpq_pgconn): Mule-ize.
10554 (Fpq_exec): Mule-ize & bug fix.
10555 (Fpq_send_query): Ditto.
10556 (Fpq_get_result): Ditto.
10557 (Fpq_res_status): Mule-ize.
10558 (Fpq_result_error_message): Mule-ize.
10559 (Fpq_ntuples): fix comments.
10560 (Fpq_fname): Mule-ize.
10561 (Fpq_fnumber): Mule-ize.
10562 (Fpq_ftype): fix comments.
10563 (Fpq_get_value): Mule-ize.
10564 (Fpq_cmd_status): Ditto.
10565 (Fpq_cmd_tuples): Ditto.
10566 (Fpq_oid_value): Ditto.
10567 (Fpq_notifies): Ditto.
10568 (Fpq_lo_import): Ditto.
10569 (Fpq_lo_export): Ditto.
10570 (Fpq_get_line): Ditto.
10571 (Fpq_put_line): Mule-ize and bug fix.
10572 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10574 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10576 * postgresql.c (vars_of_postgresql): Mule-ize.
10577 (Fpq_conn_defaults): Ditto.
10579 2000-03-12 Ben Wing <ben@xemacs.org>
10581 * alloc.c (Fmake_byte_code):
10582 * alloc.c (debug_string_purity_print):
10583 * alloc.c (pdump_backtrace):
10584 * alloc.c (pdump_get_indirect_count):
10585 * alloc.c (pdump_register_sub):
10586 * alloc.c (pdump_register_object):
10587 * alloc.c (pdump_register_struct):
10588 * alloc.c (pdump_dump_data):
10589 * alloc.c (pdump_reloc_one):
10593 * console-msw.c (GetConsoleHwnd):
10594 * console-msw.c (msw_hide_console):
10595 * console-msw.c (msw_show_console):
10596 * console-msw.c (msw_ensure_console_buffered):
10597 * console-msw.c (msw_output_console_string):
10598 * console-msw.c (console_type_create_mswindows):
10600 a) Added functions to manipulate the console window for use with
10603 b) Added support for writing text to the console, which is now
10604 used under Windows when xemacs is not being run non-interactively,
10605 to write text that would otherwise be destined for stdout because
10606 under these circumstances, text written to stdout tends to
10607 disappear and not be seen.
10611 * event-Xt.c (x_event_to_emacs_event):
10612 * event-Xt.c (describe_event_window):
10613 * events-mod.h (XEMACS_MOD_CONTROL):
10615 * events.c (Fmake_event):
10616 * events.c (character_to_event):
10617 * events.c (event_to_character):
10618 * events.c (format_event_object):
10619 * events.c (Fevent_modifiers):
10621 * events.h (struct key_data):
10622 * events.h (struct button_data):
10623 * events.h (struct misc_user_data):
10624 * frame-x.c (Fcde_start_drag_internal):
10625 * frame-x.c (Foffix_start_drag_internal):
10626 * gpmevent.c (Freceive_gpm_event):
10628 * keymap.c (bucky_sym_to_bucky_bit):
10629 * keymap.c (control_meta_superify):
10630 * keymap.c (make_key_description):
10631 * keymap.c (keymap_lookup_directly):
10632 * keymap.c (create_bucky_submap):
10633 * keymap.c (keymap_store):
10634 * keymap.c (define_key_check_and_coerce_keysym):
10635 * keymap.c (define_key_parser):
10636 * keymap.c (define_key_alternate_name):
10637 * keymap.c (Fdefine_key):
10638 * keymap.c (raw_lookup_key_mapper):
10639 * keymap.c (struct map_keymap_unsorted_closure):
10640 * keymap.c (map_keymap_unsorted_mapper):
10641 * keymap.c (map_keymap_sort_predicate):
10642 * keymap.c (map_keymap_sorted):
10643 * keymap.c (accessible_keymaps_mapper_1):
10644 * keymap.c (where_is_recursive_mapper):
10645 * keymap.c (describe_map_mapper):
10646 * keymap.c (describe_map_sort_predicate):
10647 * keymap.c (describe_map):
10648 * keymap.c (complex_vars_of_keymap):
10649 And a number of other files, the key modifier preprocessor
10650 constants that xemacs uses have names that conflict with constants
10651 defined under MS Windows for other purposes, so they were renamed
10652 to begin with the prefix XEMACS_. The variables that hold such
10653 modifiers were changed to consistently be of type int to fix
10654 various compile warnings.
10656 * console.c (complex_vars_of_console):
10659 * device-msw.c (mswindows_finish_init_device):
10660 * device-msw.c (msw_get_workspace_coords):
10661 * device-msw.c (mswindows_device_system_metrics):
10662 and various other files, added support for a new
10663 device property called offset-workspace which returns the position
10664 of the upper left corner of the workspace area and goes along with
10665 the existing size-workspace property.
10668 * dialog-msw.c (push_bufbyte_string_as_unicode):
10669 * dialog-msw.c (mswindows_popup_dialog_box):
10670 Added support for XEmacs-style accelerator specifications in
10671 button text. Note: I didn't add support for this under X Windows,
10672 and somebody needs to do this.
10675 * dialog.c (Fpopup_dialog_box):
10676 Documented the support for accelerators that was just mentioned.
10678 editfns.c (get_home_directory): Changed behavior under Windows
10679 when HOME not defined; former behavior was irretrievably broken.
10682 * emacs.c (main_1):
10684 * minibuf.c (clear_echo_area_internal):
10685 * minibuf.c (echo_area_append):
10687 * print.c (std_handle_out_external):
10688 * print.c (std_handle_out_va):
10690 * print.c (write_string_to_stdio_stream):
10691 * print.c (output_string):
10692 * print.c (debug_print):
10693 * print.c (debug_backtrace):
10694 * print.c (debug_short_backtrace):
10695 Cleaned up the code that prints text to stdout so that this can be
10696 changed to output into a console window instead under MS Windows,
10697 as described above.
10700 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10701 * eval.c (internal_catch):
10702 * eval.c (unwind_to_catch):
10703 * eval.c (throw_or_bomb_out):
10704 * eval.c (condition_case_1):
10705 * eval.c (signal_1):
10706 * eval.c (check_error_state_sanity):
10707 * eval.c (call_with_suspended_errors_1):
10708 * eval.c (call_with_suspended_errors):
10709 * eval.c (reinit_vars_of_eval):
10710 Added code to catch throw loops and check for a pesky bug that may
10714 * event-msw.c (key_needs_default_processing_p):
10715 * event-msw.c (mswindows_wnd_proc):
10716 * event-msw.c (mswindows_modifier_state):
10717 * event-msw.c (emacs_mswindows_quit_p):
10718 * event-msw.c (vars_of_event_mswindows):
10719 a) Added support for using the alt key to select menu items as is
10720 standard under MS Windows. This is controlled using the variable
10721 menu-accelerator-enabled, just like under X Windows. There is an
10722 option on the options menu to turn this support on. I really
10723 think that it should be on by default under Windows, but I'm not
10724 going to make this change yet.
10726 b) Added support for dynamic display size changes under Windows.
10729 * event-stream.c (maybe_echo_keys):
10730 * event-stream.c (Fnext_event):
10731 * event-stream.c (command_builder_find_leaf):
10732 * event-stream.c (lookup_command_event):
10733 * event-stream.c (execute_command_event):
10734 * event-stream.c (pre_command_hook):
10735 * event-stream.c (post_command_hook):
10736 * event-stream.c (syms_of_event_stream):
10737 * event-stream.c (vars_of_event_stream):
10738 * event-stream.c (complex_vars_of_event_stream):
10739 * events.h (struct command_builder):
10741 a) Tried to clean up a little bit the horribly written x-specific
10742 accelerator code that crept into this file. I moved this code
10743 into menubar-x.c where it belongs. I also needed to move the
10744 command builder structure into the file events.h because it is
10745 accessed directly by this accelerator code. What I didn't do, but
10746 which should be done at some point, is to properly abstract this
10747 code using device methods instead of the kludgy way that it
10748 currently hooks into the event code.
10750 b) Added the lisp variables this-command-properties and
10751 last-command- properties, which should be used to synchronize two
10752 adjacent commands in preference to playing games with the variable
10753 this-command, which is typically what happens.
10755 c) Added some slightly nasty code to hook into the lisp support
10756 for shifted- motion-key selection. This is actually necessary for
10757 somewhat complicated reasons, which are described in
10758 simple.el. (NB: I think the proper thing would be to have the code
10759 that calls the pre and post command hooks also call out to generic
10760 lisp functions in simple.el, where all built-in stuff could be
10761 added. I will think about this more.)
10763 * event-unixoid.c (poll_fds_for_input):
10764 * lread.c (readchar):
10765 * redisplay-tty.c (tty_clear_frame):
10766 * redisplay-x.c (x_get_gc):
10767 * signal.c (interrupt_signal):
10768 And a whole bunch of other files: fixed up places that printed
10769 directly to stderr to instead call the function stderr_out so that
10770 the changes I made under Windows work correctly.
10772 * filemode.c (mode_string):
10776 * frame-msw.c (mswindows_size_frame_internal):
10777 Fixed the computation of frame size and position to keep the frame
10778 within the workspace area, rather than within the physical
10779 dimensions of the screen, so that the frame doesn't overlap window
10780 manager decorations, such as the start menu and toolbar, typically
10781 at the bottom of the screen.
10783 * frame.c (vars_of_frame):
10784 Changed the default frame title format under MS Windows to consist
10785 of buffername-XEmacs, which is standard under MS Windows. I think
10786 it might be a good idea to change this everywhere because I think
10787 it is superior to the current frame title format, but this is the
10788 kind of change that is likely to cause some people to get annoyed,
10789 so I'm not making it.
10791 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10793 * gui-msw.c (mswindows_handle_gui_wm_command):
10794 Fixed compile warnings.
10797 * gui-x.c (strdup_and_add_accel):
10798 * gui-x.c (button_item_to_widget_value):
10800 Added code to automatically put an accelerator onto the beginning
10801 of menu items that don't have one as is now the standard, and is
10802 described more later. Also fixed things so that the menu item
10803 name can be an evaluated expression, again a new standard.
10806 * gui.c (gui_item_add_keyval_pair):
10807 * gui.c (make_gui_item_from_keywords_internal):
10808 * gui.c (gui_add_item_keywords_to_plist):
10809 * gui.c (gui_item_accelerator):
10810 * gui.c (gui_name_accelerator):
10811 * gui.c (gui_item_included_p):
10812 * gui.c (gui_item_display_flush_left):
10813 * gui.c (gui_item_display_flush_right):
10814 * gui.c (parse_gui_item_tree_item):
10815 * gui.c (parse_gui_item_tree_children):
10816 * gui.c (parse_gui_item_tree_list):
10817 Mule-ized. Cleanup. GCPRO addition.
10819 * line-number.c (buffer_line_number):
10821 * lisp.h (EMACS_INT_MAX):
10822 Added the manifest constant EMACS_INT_MIN corresponding to the
10823 existing constant EMACS_INT_MAX. This is partially to fix compile
10824 warnings under Windows, and partly for cleanliness.
10827 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10828 * menubar-msw.c (msw_translate_menu_or_dialog_item):
10829 * menubar-msw.c (displayable_menu_item):
10830 * menubar-msw.c (populate_menu_add_item):
10831 * menubar-msw.c (populate_or_checksum_helper):
10832 * menubar-msw.c (populate_menu):
10833 * menubar-msw.c (update_frame_menubar_maybe):
10834 * menubar-msw.c (prune_menubar):
10835 * menubar-msw.c (msw_char_is_accelerator):
10836 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10837 * menubar-msw.c (mswindows_handle_wm_command):
10838 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10839 * menubar-msw.c (mswindows_handle_wm_initmenu):
10840 * menubar-msw.c (mswindows_update_frame_menubars):
10841 * menubar-msw.c (mswindows_free_frame_menubars):
10842 * menubar-msw.c (mswindows_popup_menu):
10843 Fixed a bug in handling accelerators where an extra character
10844 would be displayed in the menu item. Also generalized the
10845 function displayable_menu_item because it is now used by the
10846 dialog box code as well. And finally, added code in the functions
10847 that create the menubar to extract a list of accelerators for the
10848 top level menubar, which is used in the event code to determine
10849 whether a particular alt-key combination should be used to invoke
10850 a menu item, or should be passed through to access the standard
10851 XEmacs keymap binding for this key combination.
10853 Much needed GCPROing.
10856 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10857 * menubar-x.c (menu_item_descriptor_to_widget_value):
10858 * menubar-x.c (restore_in_menu_callback):
10859 * menubar-x.c (x_popup_menu):
10860 * menubar-x.c (menu_move_up):
10861 * menubar-x.c (menu_move_down):
10862 * menubar-x.c (menu_move_left):
10863 * menubar-x.c (menu_move_right):
10864 * menubar-x.c (menu_select_item):
10865 * menubar-x.c (command_builder_operate_menu_accelerator):
10866 * menubar-x.c (menu_accelerator_junk_on_error):
10867 * menubar-x.c (command_builder_find_menu_accelerator):
10868 * menubar-x.c (Faccelerate_menu):
10870 Moved a whole bunch of code here that was previously in
10871 event-stream.c as described above. There is also code connected
10872 to the new standard of adding an accelerator to the beginning of
10873 menu items that don't have one as described above and below.
10876 * menubar.c (menu_parse_submenu_keywords):
10877 * menubar.c (Fmenu_find_real_submenu):
10878 * menubar.c (Fnormalize_menu_item_name):
10879 * menubar.c (syms_of_menubar):
10880 * menubar.c (vars_of_menubar):
10881 * menubar.c (complex_vars_of_menubar):
10883 a) Cleaned up a bunch of documentation and improved it.
10885 b) XEmacs now automatically adds an accelerator onto the beginning
10886 of any menu items that don't have one. I did this because there
10887 will inevitably be some menu items on the main menubar that don't
10888 have accelerators on them because the package that adds that
10889 particular menu item hasn't yet been fixed up to have accelerators
10890 in them and it looked rather strange to have some items with and
10891 some items without accelerators, especially since even in items
10892 without accelerators, you can, at least under windows, still
10893 access the item through an accelerator corresponding to the first
10894 character in the item's name. If people don't like this behavior,
10895 I can add a variable to turn it off optionally, but I'm not sure
10896 this is a good idea because we really do need to have accelerators
10897 on all of the menu items, and if a package doesn't like the
10898 accelerators being put on the first character, then it should put
10899 the accelerators where they belong.
10901 c) I made a behavior change, which is that the descriptor that
10902 specifies the text of the menu item, which formerly was just a
10903 string, can now also be an evaluated expression. This makes this
10904 descriptor parallel with all of the others, which could also be
10905 evaluated expressions. This also obviates the need for the
10906 keyword :label, which was previously listed in the documentation
10907 as unimplemented, and which was for the same purpose.
10912 * ntproc.c (new_child):
10913 * ntproc.c (sys_spawnve):
10914 * ntproc.c (find_child_console):
10915 * ntproc.c (sys_kill):
10916 Fixed compile warnings. By the way, this file should really go
10917 away entirely, and this will happen as soon as Kirill makes his
10918 final round of process cleanups, which affect the function
10922 * process-nt.c (struct nt_process_data):
10923 * process-nt.c (find_process_from_pid):
10924 * process-nt.c (send_signal_the_nt_way):
10925 * process-nt.c (enable_child_signals):
10926 * process-nt.c (find_child_console):
10927 * process-nt.c (send_signal_the_95_way):
10928 * process-nt.c (nt_finalize_process_data):
10929 * process-nt.c (ensure_console_window_exists):
10930 * process-nt.c (nt_create_process):
10931 * process-nt.c (nt_kill_child_process):
10932 * process-nt.c (nt_kill_process_by_pid):
10933 * process-nt.c (nt_open_network_stream):
10934 * process-nt.c (vars_of_process_nt):
10935 Copied over code from Emacs 20.5 to correctly send signals to sub-
10936 processes under Windows 95. Also added code to automatically
10937 create and hide console window when a sub-process is created under
10938 Windows 95, which obviates the need for the separate runemacs.exe
10939 executable, and finally implemented some variables that were
10940 implemented in Emacs 20.5, but previously not in XEmacs. These
10941 include mswindows- start-process-share-console and
10942 mswindows-start-process-inherit-error-mode. (Both of these only
10943 apply to Windows 95.)
10945 * regex.c (regex_compile): Fixed a compile warning.
10948 * select-msw.c (mswindows_own_selection):
10949 * select-msw.c (mswindows_get_foreign_selection):
10950 * select-msw.c (mswindows_disown_selection):
10951 * select-msw.c (console_type_create_select_mswindows):
10952 * select-msw.c (syms_of_select_mswindows):
10953 Cleaned up the file and implemented the device method
10954 selection_exists_p, which had accidentally been left out. Also
10955 removed four lisp functions that were remnants from before the
10956 time when the selection code was properly device abstracted.
10957 These functions are no longer needed because there are generic
10958 equivalents, and because they were added recently and don't exist
10959 in FSF Emacs, I don't think there's any problem with just deleting
10963 * sysdep.c (sys_subshell):
10964 Fixed a compile warning, although in this case there's probably
10965 something wrong with this code, and it ought to be looked into
10966 more thoroughly by somebody who understands it.
10969 * window.c (Fwindow_text_area_height):
10970 * window.c (Fwindow_width):
10971 * window.c (Fwindow_full_width):
10972 * window.c (Fwindow_pixel_width):
10973 * window.c (debug_print_window):
10974 * window.c (syms_of_window):
10975 Added functions window-text-area-height and window-full-width,
10976 which are functions for returning various width and height
10977 characteristics of a window. (One of these functions is necessary
10978 for making the file dialog box work correctly, and the other one
10979 was added for completeness.) Also added a table to the
10980 documentation for window-height which describes the entire scheme
10981 for accessing width and height characteristics of a window.
10983 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10985 * nt.c (fstat): Added a comment for another problem with
10986 non-encapsulated [f]stat(), reported by Adrian Aichner
10987 <aichner@ecf.teradyne.com>.
10989 2000-03-11 Andy Piper <andy@xemacs.org>
10991 * window.c (make_dummy_parent): initialize subwindow instance
10993 (Fset_window_configuration): zero extent_modiff.
10995 2000-03-10 Andy Piper <andy@xemacs.org>
10997 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10998 more changes can be triggered.
10999 (Fredisplay_frame): ditto.
11000 (Fredraw_device): ditto.
11001 (Fredisplay_device): ditto.
11002 (redisplay_frame): make non-static.
11003 (redisplay_frame): call update_frame_gutter_geometry outside of
11006 * gutter.h: declare update_frame_gutter_geometry.
11008 * redisplay.h: declare redisplay_frame.
11010 * gutter.c (update_frame_gutter_geometry): move geometry changes
11011 in update_frame_gutters here. Geometry changes can only occur
11012 outside of redisplay.
11013 (update_frame_gutters): remove geometry change code.
11014 (Fredisplay_gutter_area): make sure that we are in display when we
11015 update and that we have flushed any size changes.
11017 2000-03-11 Andy Piper <andy@xemacs.org>
11019 * alloc.c (pdump_dump_data): remove i & count shadows.
11021 2000-02-27 Mike Alexander <mta@arbortext.com>
11023 * sysdep.h: Declare pdump_read_file
11025 * sysdep.c (pdump_read_file): New function
11027 * alloc.c (pdump_load): Call pdump_read_file to get the portable
11030 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
11032 * lrecord.h: add `lrecord_type_pgsetenv'.
11034 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
11036 * symsinit.h: declare (vars|syms)_of* functions.
11037 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
11039 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
11041 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
11043 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
11046 * emacs.c (main_1): Call postgres initialization code.
11048 * postgresql.h: New file. PostgreSQL RDBMS support.
11049 * postgresql.c: New file.
11051 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
11053 * redisplay-output.c (redisplay_output_display_block): Disable
11056 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11058 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11059 (Fcanna_henkan_next): Ditto.
11060 (Fcanna_bunsetu_henkou): Ditto.
11061 (Fcanna_henkan_kakutei): Ditto.
11062 (Fcanna_henkan_end): Ditto.
11063 (Fcanna_henkan_quit): Ditto.
11064 (Fcanna_henkan_next): Set retun value correctly.
11065 (c2mu): Use unsigned char instead of signed char.
11067 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11069 * emacs.c (main_1): Always call syms_of_gui.
11070 * inline.c: include gui.h
11072 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11074 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11075 converted to Lisp_Object.
11076 (Qtop_bottom): New variable.
11077 (syms_of_redisplay): Initialize it.
11078 * redisplay.h (Vvisible_bell): Ditto.
11079 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11080 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11081 only flash top and bottom.
11083 2000-03-08 Andy Piper <andy@xemacs.org>
11085 * buffer.c (Frename_buffer): record new buffer name the right way.
11087 2000-03-08 Andy Piper <andy@xemacs.org>
11089 * glyphs.c (update_subwindow): increase hash depth so that widget
11090 items get picked up properly.
11092 * redisplay-output.c (compare_runes): increase hash depth so that
11093 widget items get picked up properly.
11095 2000-03-08 Andy Piper <andy@xemacs.org>
11097 * gutter.c (output_gutter): add some debug.
11099 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11100 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11101 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11103 * redisplay-output.c (compare_runes): use display_hash to
11104 determine if glyphs really are not the same.
11106 * glyphs.c (update_subwindow): check display_hash to see if
11107 anything really needs to be updated. If not then do
11108 nothing. Record the display_hash after updating.
11109 (image_instance_equal): compare the image_instance face also.
11111 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
11113 * redisplay.h: Fix comment style.
11115 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
11117 * consle-msw.h (struct mswindows_frame):
11118 Added new member paint_pending to indicate whether a WM_PAINT
11119 magic event has been queued for this frame.
11121 * event-msw.c (mswindows_drain_windows_queue):
11122 Don't queue a WM_PAINT magic event if one is already queued.
11123 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11125 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11127 2000-03-07 Didier Verna <didier@xemacs.org>
11129 * dired.c: #include `regex.h' after `sysfile.h'.
11131 2000-03-06 Martin Buchholz <martin@xemacs.org>
11133 * sound.c (init_nas_sound): Fix compiler warning.
11135 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11137 (MARK_STRUCT_AS_FREE):
11138 (MARK_STRUCT_AS_NOT_FREE):
11139 Make `gcc -fstrict-aliasing' work properly.
11141 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
11143 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11144 (mswindows_delete_device): Call CoUnnitialize().
11146 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11148 2000-02-25 <CraigL@DyCon.com>
11150 * process-nt.c: MinGW now has <shellapi.h>, but still needs
11153 * sysdep.c: This extern declaration for environ prevents MinGW
11154 from finding the variable in CRTDLL.DLL.
11156 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11158 (SHGFI_EXETYPE): ..
11159 (WM_MOUSEWHEEL): ..
11160 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11162 (MMRESULT): Removed, now defined in cygwin's windows headers.
11164 (uid_t,gid_t,pid_t,ssize_t): ..
11165 (_timeb): Removed, MinGW defines both _timeb and timeb.
11166 (HAVE_H_ERRNO): Added.
11167 (HAVE_TZNAME): Added, configure is not detecting this.
11169 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
11171 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11172 * syntax.c (syntax_match): Use it.
11174 * cmds.c: Import auto-fill-chars from FSF Emacs.
11175 (Vauto_fill_chars): New variables.
11176 (internal_self_insert): Check Vauto_fill_chars.
11178 Declare auto-fill-chars as a Lisp variable and initialize it.
11180 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
11182 * fileio.c (Fmake_symbolic_link):
11184 Run handlers even if local machine doesn't have symlinks.
11186 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
11188 * event-msw.c (mswindows_drain_windows_queue):
11189 Don't generate paint magic events for non-XEmacs frames.
11191 2000-03-05 Andy Piper <andy@xemacs.org>
11193 * redisplay.c (redisplay_frame): generate_displayable_area and
11194 friends assumes that we are not in GC, we therefore have to make
11195 sure that this doesn't happen.
11197 * gutter.c (calculate_gutter_size): generate_displayable_area
11198 assumes that we are not in GC, we therefore have to make sure that
11199 this doesn't happen.
11201 2000-03-05 Martin Buchholz <martin@xemacs.org>
11203 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11205 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
11207 * redisplay.c (regenerate_window): Make sure we set a sane value
11208 for end_pos even if we jump out of the loop.
11209 (regenerate_window): Answer Ben's question :-).
11210 (start_end_of_last_line): Add may_error argument.
11211 (start_of_last_line):
11212 (end_of_last_line): Pass may_error = 0.
11213 (end_of_last_line_may_error): New function.
11214 (pixel_to_glyph_translation): Use it, so we don't crash in
11217 2000-03-04 Andy Piper <andy@xemacs.org>
11219 * window.h (struct window): add gutter_extent_modiff.
11221 * window.c (allocate_window): zero out gutter_extent_modiff.
11223 * redisplay.h: declare sync_display_line_structs.
11225 * redisplay.c (add_glyph_rune): add a better comment.
11227 * redisplay-output.c (sync_display_line_structs): made non-static.
11228 (compare_runes): remove unneccesary glyph cachel access.
11230 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11232 * gutter.c (output_gutter): don't output the gutter if extent
11233 changes only involve extents in buffers. use 4 sets of display
11235 (gutter_extent_signal_changed_region_maybe): new function. Mark
11236 extents in gutters as changed.
11237 (update_frame_gutters): use 4 sets of display lines.
11238 (reset_gutter_display_lines): ditto.
11239 (free_frame_gutters): ditto.
11240 (redraw_exposed_gutter): force output of gutters.
11242 * frame.h (struct frame): add 4 sets of gutter display lines.
11244 * extents.c: (extent_changed_for_redisplay): signal changes to
11245 extents in strings in the gutter as well as extents in buffers.
11247 2000-03-02 Andy Piper <andy@xemacs.org>
11249 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11251 * frame.c (Fmake_frame): make sure the gutters get initialized
11252 after the frame is visible.
11253 (set_frame_selected_window): re-arrange compilation macros a
11255 (change_frame_size_1): mark gutters changed.
11257 * device.c (Fset_device_class): mark gutters changed.
11259 2000-03-01 Andy Piper <andy@xemacs.org>
11261 * window.c (window_top_frame_gutter_height): deleted.
11262 (window_bottom_frame_gutter_height): ditto.
11263 (window_left_frame_gutter_height): ditto.
11264 (window_right_frame_gutter_height): ditto.
11265 (window_top_gutter_height): don't use them.
11266 (window_bottom_gutter_height): ditto.
11267 (window_left_gutter_width): ditto.
11268 (window_right_gutter_width): ditto.
11269 (Fsplit_window): ditto.
11270 (Fwindow_pixel_edges): don't use border dimensions here.
11272 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11273 (update_scrollbar_instance): ditto.
11275 * redisplay.c (generate_modeline): don't take gutters into account.
11276 (generate_modeline): ditto.
11277 (redisplay_frame): small gutter display optimization.
11279 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11281 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11282 gutters into account.
11284 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11285 for window position and type.
11287 * gutter.c (get_gutter_coords): fix for frame gutters.
11288 (update_frame_gutters): update frame geometry if the gutters have
11290 (init_frame_gutters): record current gutter geometries.
11292 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11294 (mswindows_widget_instantiate): ditto.
11296 * frame.h (struct frame): add current_gutter_bounds.
11298 * frame.c (change_frame_size_1): position window and minibuffer
11299 appropriately taking into account the frame gutters.
11301 * frame-x.c: (x_initialize_frame_size): take into account the
11304 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11306 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
11308 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11310 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11312 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11314 * file-coding.c (reset_decoding_stream): Clear previous
11315 detection state when autodetect.
11317 2000-02-29 Didier Verna <didier@xemacs.org>
11319 * extents.c (set_extent_glyph_1): don't require extents to be
11322 2000-02-27 Andy Piper <andy@xemacs.org>
11324 * gutter.c (Fset_default_gutter_position): don't default left and
11325 right gutter visibility to t.
11326 (Fset_default_gutter_position): run
11327 default-gutter-position-changed-hook.
11328 (syms_of_gutter): add default-gutter-position-changed-hook.
11330 2000-02-26 Andy Piper <andy@xemacs.org>
11332 * specifier.c (Fmake_specifier): add gutter references.
11334 * gutter.h (RAW_WINDOW_GUTTER): new macro.
11336 * lisp.h: declare Fvalid_plist_p.
11338 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11340 (default_gutter_visible_p_changed_in_window): invalidate gutter as
11341 well as its visibility so that it gets reconstructed.
11342 (construct_window_gutter_spec): new function. Construct a string
11343 to be displayed in the gutter from a plist of strings. Take care
11344 to only use elements that are declared as visible.
11345 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11347 (gutter_validate): allow plists of strings in the specifier.
11348 (gutter_specs_changed): construct the real_gutter from the gutter
11349 specs using construct_window_gutter_spec.
11350 (gutter_visible_validate): gutter-visible is a new specifier type.
11351 (Fgutter_visible_specifier_p): new function for the new specifier.
11352 (syms_of_gutter): declare gutter-visible and
11353 Fgutter_visible_specifier_p.
11354 (specifier_type_create_gutter): intitalize new gutter-visible
11356 (reinit_specifier_type_create_gutter): ditto.
11357 (specifier_vars_of_gutter): use new specifier type for gutter
11359 (init_frame_gutters): construct real_gutter correctly.
11360 (Fgutter_specifier_p): beef up documentation.
11361 (Fgutter_size_specifier_p): ditto.
11363 * winslots.h: add real_gutter slots.
11365 2000-02-25 Andy Piper <andy@xemacs.org>
11367 * device-msw.c: Be kind to older cygwin versions. From Raymond
11368 Toy <toy@rtp.ericsson.se>.
11370 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11371 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11373 2000-02-25 Martin Buchholz <martin@xemacs.org>
11375 * elhash.c (MARK_OBJ): Practice macro hygiene.
11377 2000-02-24 Martin Buchholz <martin@xemacs.org>
11379 * miscplay.c: s/__inline__/inline/g;
11380 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11381 (get_device_compdc): INLINE ==> static inline
11382 * *.[ch]: Change INLINE to INLINE_HEADER globally.
11383 find -name '*.h' | \
11384 xargs global-replace \
11385 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11387 2000-02-25 Andy Piper <andy@xemacs.org>
11389 * window.c (window_top_frame_gutter_height): new function.
11390 (window_top_window_gutter_height): ditto.
11391 (window_top_gutter_height): use them.
11392 (window_bottom_frame_gutter_height): new function.
11393 (window_bottom_window_gutter_height): ditto.
11394 (window_bottom_gutter_height): use them.
11395 (window_left_window_gutter_width): new function.
11396 (window_left_frame_gutter_width): ditto.
11397 (window_left_gutter_width): use them.
11398 (window_right_window_gutter_width): new function.
11399 (window_right_frame_gutter_width): ditto.
11400 (window_right_gutter_width): use them.
11401 (window_pixel_height): new function. calulate window pixel height
11402 with frame gutter involvement.
11403 (Fsplit_window): calculate new sizes taking frame gutters into
11405 (window_char_height_to_pixel_height): don't include frame gutters.
11406 (window_char_height): use window_pixel_height.
11407 (window_pixheight): rename from window_pixel_height.
11408 (change_window_height): use it.
11409 (window_pixel_height_to_char_height): don't include frame gutters.
11410 (window_char_width_to_pixel_width): ditto.
11412 2000-02-25 Andy Piper <andy@xemacs.org>
11414 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11417 2000-02-24 Martin Buchholz <martin@xemacs.org>
11419 * alloc.c (staticpro):
11420 (staticpro_nodump):
11425 (compact_string_chars):
11426 (pdump_dump_wired):
11427 Convert: if (foo) abort(); ==> assert (! foo);
11429 * eldap.c (Fldap_search_basic):
11433 Fix compiler warnings, and possible crashes if (random) return
11434 value were to be used.
11436 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11438 * device-msw.c: Workaround ResetDC failure.
11440 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11441 applying a devmode.
11443 * redisplay-msw.c (get_frame_dc): Added start_page_p.
11444 (mswindows_text_width): Do not start printer page.
11446 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11448 * glyphs-msw.c: Added image methods to msprinter console and
11449 msprinter-specific image instantiation.
11451 2000-02-20 Mike Alexander <mta@arbortext.com>
11453 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11454 to avoid crashes when selection-sets-clipboard is on
11455 (mswindows_own_selection): ditto
11457 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11460 * redisplay-msw.c (get_frame_dc):
11461 (get_frame_compdc):
11463 * device-msw.c (mswindows_init_device):
11464 (mswindows_delete_device):
11465 (msprinter_init_device):
11466 (msprinter_delete_device):
11467 * frame-msw.c (mswindows_init_frame_1):
11468 (mswindows_delete_frame):
11469 (msprinter_init_frame_3):
11470 (msprinter_delete_frame): Move compatible DC to device object from
11471 frame object, for both mswindows and msprinter. Only one at a time
11472 is needed, it is a real waste to have one per frame!
11474 2000-02-23 Andy Piper <andy@xemacs.org>
11476 * glyphs.c: add dynamic width and height elements.
11477 (image_instance_equal): ditto.
11479 * glyphs-widget.c (widget_query_geometry): calculate width and
11480 height dynamically if required.
11481 (initialize_widget_image_instance): initialize dynamic dimensions.
11482 (widget_instantiate): pick-up dynamic dimensions.
11484 * glyphs.h (struct Lisp_Image_Instance): add width and height for
11485 dynamic determination. Add appropriate macros.
11487 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11489 (WINDOW_GUTTER_SIZE): ditto.
11490 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11492 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11494 (get_frame_dc): ditto.
11496 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11499 2000-02-23 Martin Buchholz <martin@xemacs.org>
11501 * XEmacs 21.2.31 is released.
11503 2000-02-22 Ben Wing <ben@xemacs.org>
11505 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11507 2000-02-22 Andy Piper <andy@xemacs.org>
11509 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11511 2000-02-21 Mike Sperber <mike@xemacs.org>
11515 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11518 2000-02-21 Mike Sperber <mike@xemacs.org>
11520 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11522 2000-02-21 Martin Buchholz <martin@xemacs.org>
11524 * XEmacs 21.2.30 is released.
11526 2000-02-20 Martin Buchholz <martin@xemacs.org>
11528 Performance hacking.
11530 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11531 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11532 * emacs.c (main_1):
11534 * console.c (DEFVAR_CONSOLE_LOCAL_1):
11535 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11536 * symeval.h (DEFVAR_SYMVAL_FWD):
11537 * symbols.c (guts_of_unbound_marker):
11538 Make all c_readonly objects also lisp_readonly and marked for life.
11539 * lrecord.h (struct lrecord_implementation):
11540 Document flags better.
11541 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11542 * lrecord.h (DECLARE_LRECORD):
11543 * lrecord.h (XSETRECORD):
11544 * lrecord.h (RECORDP):
11545 * lrecord.h (RECORD_TYPEP):
11546 * lrecord.h (RECORD_MARKER): New.
11547 * lrecord.h (error_check_*):
11548 * lrecord.h (CONCHECK_NONRECORD):
11549 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11550 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11551 * lrecord.h (set_lheader_implementation):
11552 * lrecord.h (enum lrecord_type): New.
11553 * symeval.h (SYMBOL_VALUE_MAGIC_P):
11554 * alloc.c (disksave_object_finalization_1):
11555 * alloc.c (mark_object):
11556 * alloc.c (lrecord_type_index):
11557 * alloc.c (tick_lcrecord_stats):
11558 * alloc.c (Fgarbage_collect):
11559 * alloc.c (init_alloc_once_early):
11560 * alloc.c (pdump_load):
11561 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11562 * alloc.c (lrecord_type_index): Delete.
11563 Make lisp object type indexes be constant.
11564 Makes (byte-compile) 5% faster.
11565 Put all marker functions into their own array.
11566 Makes (garbage-collect) 5% faster.
11567 Optimize SYMBOL_VALUE_MAGIC_P.
11568 Makes (byte-compile) 2-3% faster.
11569 * config.h.in (gc_checking_assert): New.
11570 * alloc.c: Use gc_checking_assert().
11571 * .dbxrc: Make compatible with new object type implementation.
11572 * .gdbinit: Make compatible with new object type implementation.
11573 * alloc.c: Delete all symbols defined only for debugging, such as
11574 Lisp_Type_Vector and lrecord_charset.
11576 2000-02-21 Andy Piper <andy@xemacs.org>
11578 * gui-msw.c (Fmswindows_shell_execute): fix file location
11581 * buffer.c (Fkill_buffer): remove buffer from alist buffer
11582 unshowing so that set_window_buffer doesn't undo
11583 kill_buffer_hook's hard work.
11585 * glyphs-widget.c (tab_control_query_geometry): don't count the
11586 first item when calculating geometry.
11588 * glyphs.c (map_subwindow): remove redundant code.
11589 (update_frame_subwindows): be more circumspect about when to
11592 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11593 when items haven't changed. Update faces if faces have changed as
11594 well as just the widget face.
11595 (x_tab_control_update): Update faces if faces have changed as well
11596 as just the widget face.
11598 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11600 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11602 (build_syscolor_string): Use mswindows_color_to_string to try to
11604 (mswindows_device_system_metrics): Reverse the foreground and
11605 background colors so that they match the documentation.
11607 * objects-msw.c: (mswindows_X_color_map): tweak some values so
11608 they match the default Windows palette.
11609 (mswindows_color_to_string): New function.
11611 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11613 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11615 2000-02-18 Olivier Galibert <galibert@pobox.com>
11617 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11618 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11620 * symbols.c (init_symbols_once_early): Removed obsolete
11621 DATA_SEG_BITS related kludge.
11622 (defvar_magic): Ditto.
11624 * malloc.c: Removed obsolete DATA_SEG_BITS
11626 * mem-limits.h: Ditto.
11628 * Makefile.in.in: Removed obsolete HAVE_SHM
11631 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11633 * device-msw.c (mswindows_delete_device): Free DDE string
11636 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11638 * keymap.c (get_keyelt):
11639 * unexnt.c (unexec):
11640 * vm-limit.c (memory_warnings):
11641 * ntheap.c (recreate_heap):
11642 * ntheap.h (UNINIT_PTR):
11643 * select-msw.c (Fmswindows_get_clipboard):
11644 (Fmswindows_set_clipboard):
11645 * objects-msw.h (MSWINDOWS_BAD_HFONT):
11647 * menubar-msw.c (displayable_menu_item):
11649 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11650 * sysdep.c (sys_subshell):
11651 * process-nt.c (nt_create_process):
11652 * nt.c (normalize_filename):
11653 (dostounix_filename):
11654 (unixtodos_filename):
11655 * ntproc.c (win32_executable_type):
11656 * ntplay.c (play_sound_data_1):
11658 * editfns.c (get_home_directory):
11659 * event-msw.c (struct winsock_stream):
11660 (mswindows_dde_callback):
11661 * device-msw.c (msprinter_init_device):
11662 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11664 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11665 mswindows_clear_toolbar were swapped!
11667 * objects-msw.c:(colormap_t):
11669 * emacs.c (struct standard_args): Fixed const jumble.
11671 * glyphs-widget.c (update_widget): Fixed comparison notation.
11673 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11675 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11676 __declspec(noreturn) syntax.
11678 2000-02-19 Martin Buchholz <martin@xemacs.org>
11680 * eldap.c (Fldap_open):
11681 (Fldap_search_basic):
11684 Use new coding system conversion macros.
11686 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11688 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11690 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
11692 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11693 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11695 * eldap.c (Qadd, Qreplace): New constant symbols
11696 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11697 interruptions by XEmacs signals
11698 Remove unnecessary calls to slow_down_interrupts and
11699 speed_up_interrupts
11700 (Fldap_search_basic): Renamed from Fldap_search_internal
11701 Added new optional parameter VERBOSE that triggers the
11702 display of progress messages
11703 Remove unnecessary calls to slow_down_interrupts and
11704 speed_up_interrupts
11705 LDAP result code analysis rewritten
11706 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11707 (syms_of_eldap): Define the new symbols and functions
11710 2000-02-17 Martin Buchholz <martin@xemacs.org>
11712 * realpath.c: Determine PATH_MAX maximally portably.
11714 * insdel.c (bytecount_to_charcount): Optimize.
11715 The function used to be optimized for entirely ASCII sequences.
11716 Now it is optimized for successive characters from the same
11717 charset. This also wins big for _mostly_ ASCII sequences.
11719 * fileio.c (Ffile_truename): convert return from realpath() using
11720 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
11721 - Rewrite GCPROing slightly.
11723 * sysdep.c (sys_open): Do filename conversion, like all other
11724 sys_* functions. Fixes bug:
11725 (let ((file-name-coding-system 'iso-8859-2))
11726 (write-region x y latin2-name))
11727 ==> writes filename using internal encoding.
11729 2000-02-18 Martin Buchholz <martin@xemacs.org>
11731 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11732 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11733 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11734 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11735 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11736 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11737 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11738 (CONST_IF_NOT_DEBUG): Delete.
11739 * alloc.c (this_one_is_unmarkable): Delete.
11740 (mark_object): Don't check for this_one_is_unmarkable. Use the
11741 c_readonly flag instead.
11742 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11744 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
11746 * event-msw.c (mswindows_drain_windows_queue):
11747 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11748 away redundant repaint events.
11750 2000-02-17 Andy Piper <andy@xemacs.org>
11752 * redisplay.h: declare mark_redisplay_structs.
11754 * redisplay.c (redisplay_window):
11755 (redisplay_frame): don't check subwindows_state_changed.
11756 (mark_redisplay): mark gutters here.
11758 * glyphs.c: (instantiate_image_instantiator): always layout if we
11759 haven't done so already.
11760 (allocate_image_instance): don't mark as dirty.
11761 (update_subwindow): bind inhibit_quit.
11763 * gutter.c (mark_gutters): new function.
11765 * glyphs-x.c (x_update_widget): Always resize to get round a
11768 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11769 breaking absolutely everything.
11771 * gutter.h: declare mark_gutters.
11773 2000-02-16 Martin Buchholz <martin@xemacs.org>
11775 * XEmacs 21.2.29 is released.
11777 2000-02-15 Olivier Galibert <galibert@pobox.com>
11779 * fns.c (size_bit_vector): Fix computation of the size.
11781 2000-02-15 Martin Buchholz <martin@xemacs.org>
11783 * *.[ch]: Change CONST to const globally.
11784 find -name '*.[ch]' | \
11785 xargs global-replace \
11786 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11787 - Remove vestigial references to CONST_IS_LOSING
11789 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11791 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11792 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11793 events instead of dispatching them directly.
11794 (mswindows_handle_paint): New function to do repainting.
11795 (mswindows_wnd_proc):
11796 (emacs_mswindows_handle_magic_event): Call above function.
11798 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11800 * objects-msw.c (mswindows_create_font_variant): Return the new
11802 (initialize_font_instance): Get font metrics from the underlined
11803 variant of the font to cope with the case where the underlined
11804 font has a bigger descent.
11806 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11808 * gui.c (gui_item_accelerator): Return the first underlined
11809 character in item name.
11811 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11813 * lisp.h: Added Qprinter.
11815 * general.c (syms_of_general): Initialized it.
11817 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11819 (get_frame_compdc): Made inline.
11821 * console.h (struct console_methods): Added eject_page method.
11823 * frame.h: Added FRAME_DISPLAY_P and friends.
11824 Aligned backslahes in many macros in more readable fashion.
11825 Added page_number to struct frame, and an accessor macro
11828 * defice.h: Added DEVICE_DISPLAY_P and friends.
11830 * device.c (Fdevice_printer_p): Used these.
11832 * frame.c (allocate_frame_core): Initialize page number.
11833 (Fprint_job_page_number):
11834 (Fprint_job_eject_page): Implemented.
11836 * frame-msw.c (msprinter_eject_page): Added method.
11837 (msprinter_start_page): Added.
11839 * window.c (Fwindow_truncated_p): Fixed docstring.
11840 (Fwindow_last_line_visible_height): Implemented.
11842 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11844 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11846 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11848 * syntax.c (scan_words): Always advance at least one character.
11850 2000-02-13 Andy Piper <andy@xemacs.org>
11852 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11853 to make sure the glyph is in the cachels.
11855 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11856 global image instance flag.
11857 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11858 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11860 * glyphs.c (allocate_image_instance): set dirty bits correctly.
11861 (Fset_image_instance_property): mark layout as changed.
11862 (invalidate_glyph_geometry_maybe): mark layout as changed.
11863 (glyph_width): use new NEEDS_LAYOUT macro.
11864 (glyph_ascent): ditto.
11865 (glyph_descent): ditto.
11866 (glyph_height): ditto.
11867 (image_instance_layout): mark layout as clean after laying out.
11868 (update_subwindow): don't mark layout as clean here.
11870 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11871 should no longer be needed.
11873 * glyphs-x.c (x_update_widget): sanitize asserts.
11874 (x_finalize_image_instance): sanitize assignment to widgets.
11876 * glyphs-widget.c (widget_instantiate): don't need to clear the
11879 2000-02-13 Martin Buchholz <martin@xemacs.org>
11881 * sysdep.c (getcwd): Use standard prototype.
11882 * sysdep.h (getcwd): Use standard prototype.
11884 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11885 (sequence, start, end).
11886 Remove redundant type checking.
11887 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11888 view of `caller-protects') to avoid a crash where the real fix was
11891 2000-02-12 Martin Buchholz <martin@xemacs.org>
11893 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11895 * s/sol2.h: Remove feature macro initialization.
11897 * alloc.c (alloc_lcrecord): Add more type checking assertions.
11898 (vector_hash): New. Code from internal_hash.
11900 Fix up allocation subsystem comments.
11902 * config.h.in: Add __EXTENSIONS__ for Solaris.
11904 * systime.h (EMACS_GETTIMEOFDAY): New.
11905 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11906 Remove Solaris-specific code.
11907 Use void* for the (ignored) second arg for gettimeofday().
11909 * elhash.c (hash_table_hash): Implement it, finally.
11910 * elhash.c: Use hashcode_t.
11912 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11913 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11915 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11916 * fns.c (size_bit_vector):
11917 * alloc.c (size_vector):
11918 (make_vector_internal):
11919 (make_bit_vector_internal):
11920 (sweep_bit_vectors_1):
11921 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11923 2000-02-10 Martin Buchholz <martin@xemacs.org>
11925 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11926 Include strings.h to avoid warnings for bzero and strcasecmp.
11928 2000-02-10 Olivier Galibert <galibert@pobox.com>
11930 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11931 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11933 * fns.c (size_bit_vector): New. Declare bit vectors as a
11936 2000-02-10 Olivier Galibert <galibert@pobox.com>
11938 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11939 use a value field instead.
11940 (symbol_value_forward_forward): Use value field.
11941 (DEFVAR_SYMVAL_FWD): Use value field.
11942 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
11943 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11944 (DEFVAR_CONST_INT): Ditto.
11945 (DEFVAR_BOOL): Ditto.
11946 (DEFVAR_CONST_BOOL): Ditto.
11947 (DEFVAR_INT_MAGIC): Ditto.
11948 (DEFVAR_BOOL_MAGIC): Ditto.
11950 * symbols.c (guts_of_unbound_marker): Use value field.
11951 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11952 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11954 * lisp.h: Declare dumpopaque and noninteractive1.
11956 * alloc.c (dumpopaque): Added.
11957 (pdump_dump_opaquevec): Added.
11958 (pdump): Call pdump_dump_opaquevec to dump opaque data.
11959 (pdump_load): Reload opaque data. Sync noninteractive1 with
11962 2000-02-10 Andy Piper <andy@xemacs.org>
11964 * glyphs.c (image_instance_layout): if the size changes, mark it
11967 * redisplay-output.c (redisplay_output_layout): Update the
11969 (redisplay_output_subwindow): ditto.
11971 * glyphs.c (update_subwindow): make sure we reset flags for
11972 layouts as well as everything else.
11974 * glyphs-widget.c (layout_layout): don't need to set the instances
11977 2000-02-09 Martin Buchholz <martin@xemacs.org>
11979 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
11980 not HAVE_DLOPEN, which is a lower-level thing.
11982 * .cvsignore: Ignore gmon.out
11984 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
11986 * .cvsignore: Ignore portable dumper xemacs.dmp file
11988 2000-02-09 Andy Piper <andy@xemacs.org>
11990 * redisplay-output.c (redisplay_output_layout): be more clever
11991 about when we output based on the changed flags.
11993 * glyphs.h (struct image_instantiator_methods): add update_method.
11994 (struct Lisp_Image_Instance): add changed flags. Declare new
11995 macros for manipulating them.
11997 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11998 (image_instance_parent_glyph): find an image_instance's parent
11999 glyph or image_instance.
12000 (image_instance_layout): mark the size as changed.
12001 (set_image_instance_dirty_p): new function. mark an image
12002 instance, plus all of its parents, as dirty.
12003 (Fset_image_instance_property): use it.
12004 (Fglyph_animated_timeout_handler): use it.
12005 (update_subwindow): call update_widget and device methods for
12006 update_subwindow. Mark all changed flags as clean.
12007 (Fresize_subwindow): mark size as changed.
12009 * glyphs-x.c (x_finalize_image_instance): try and detect gc
12011 (x_update_subwindow): only resize subwindows here.
12012 (x_update_widget): new function. Update all changed properties of
12014 (x_resize_subwindow): deleted.
12015 (x_widget_set_property): deleted.
12016 (x_progress_gauge_set_property): deleted.
12017 (x_progress_gauge_update): new function. Implement recorded
12019 (x_tab_control_update): ditto.
12020 (x_tab_control_set_property): deleted.
12021 (console_type_create_glyphs_x): declare new functions.
12022 (image_instantiator_format_create_glyphs_x): ditto.
12024 * glyphs-widget.c (widget_set_property): mark text changed.
12025 (update_widget): new function. Update properties of a widget.
12026 (widget_instantiate): for layouts make sure we set their
12027 children's parent correctly.
12028 (tab_control_set_property): new function. Record changes that will
12029 take place under redisplay's control.
12030 (progress_gauge_set_property): ditto.
12031 (image_instantiator_progress_guage): declare new functions.
12032 (image_instantiator_tab_control): ditto.
12034 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
12036 (mswindows_update_widget): new function. Update all properties on
12037 a widget that have changed.
12038 (mswindows_button_update): new function. Update a button's set
12040 (mswindows_tab_control_update): new function. Update the items in
12042 (mswindows_tab_control_set_property): deleted.
12043 (mswindows_progress_gauge_update): new function. Update the
12044 progress gauge's progress.
12045 (mswindows_widget_set_property): deleted. This is all done
12046 asynchronously now.
12047 (mswindows_progress_gauge_set_property): ditto.
12048 (console_type_create_glyphs_mswindows): declare new methods.
12049 (image_instantiator_format_create_glyphs_mswindows): ditto.
12051 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
12052 (msprinter_set_frame_properties): ditto.
12054 * console.h (struct console_methods): Add update_widget_method.
12056 2000-02-09 Andy Piper <andy@xemacs.org>
12058 * gui-msw.c (Fmswindows_shell_execute): Make
12059 mswindows-shell-execute industrial strength.
12061 2000-02-08 Martin Buchholz <martin@xemacs.org>
12063 * lrecord.h: Make macro argument `props' match member function `plist'.
12066 * fns.c (Fremprop):
12067 * fns.c (Fobject_plist):
12070 Object property list frobbing cleanup.
12071 - Allow any lisp object (compared with `eq'), not just symbols, as
12072 keys in object plists.
12073 - Move symbol plist frobbing into symbols.c, where it belongs.
12074 - Move string plist frobbing into alloc.c, where it belongs.
12075 - Everything's an lrecord now, so no need to test for symbolp, etc.
12076 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12078 * extents.c: Reorder code to remove declarations.
12080 * frame.h (store_in_alist): Remove useless declaration.
12082 2000-02-07 Martin Buchholz <martin@xemacs.org>
12084 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12085 * config.h.in: Add HAVE_XCONVERTCASE.
12087 2000-02-07 Andy Piper <andy@xemacs.org>
12089 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12090 it breaks many things.
12092 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
12094 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12095 actually can start a common comment type.
12096 * src/syntax.h (SYNTAX_END_P): ditto for end.
12098 2000-02-07 Martin Buchholz <martin@xemacs.org>
12100 * XEmacs 21.2.28 is released.
12102 2000-02-06 Martin Buchholz <martin@xemacs.org>
12104 * event-Xt.c (x_keysym_to_character): New.
12105 (maybe_define_x_key_as_self_inserting_character): New.
12106 (x_has_keysym): New.
12107 Auto-define all keys on the keyboard as self-insert-key.
12109 2000-02-02 Martin Buchholz <martin@xemacs.org>
12111 * menubar.c (vars_of_menubar): A small code simplification.
12113 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12116 * ExternalClient.c:
12117 * EmacsShell-sub.c:
12120 Use consistent style for specifying X resources.
12122 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12123 This makes (dontusethis-set-symbol-value-handler) actually usable.
12125 * lrecord.h (lrecord_decription_type):
12126 * alloc.c (pdump_register_sub):
12129 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12130 Comply with XEmacs coding style.
12131 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12132 args, and XD_LISP_OBJECT_ARRAY with 3 args.
12134 * keymap.c (Faccessible_keymaps):
12135 Make (accessible-keymaps map "\C-h") do the Right Thing.
12136 Make (accessible-keymaps map []) do the Right Thing.
12137 Make (accessible-keymaps map "") do the Right Thing.
12138 (check_keymap_definition_loop): New function.
12139 (keymap_store_internal): Keep luser from shooting self in foot,
12140 via (define-key ctl-x-4-map "p" global-map).
12141 Remove fullness slot from struct Lisp_Keymap, since hash tables
12143 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12145 2000-01-30 Martin Buchholz <martin@xemacs.org>
12147 * redisplay.c (init_redisplay): Fix small memory leak.
12149 * elhash.c (pdump_reorganize_hash_table):
12150 Rename from reorganize_hash_table. Change prototype.
12151 Reuse the original memory for hentries. Save 100k.
12152 * alloc.c (PDUMP_READ): new macro.
12153 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12154 * alloc.c: No need to #ifndef before #undef.
12156 * print.c: Allow debug_print() to print readably by modifying
12157 debug_print_readably. Use consistent variable names.
12159 * .dbxrc: Try to get things to work even if stopped in a function
12160 without source available by explicitly specifying source files.
12161 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12163 * unexnt.c (_start): Removed bogus code which caused loading heap
12164 from differrent executable file.
12165 Removed bogus assignment to _fmode, which caused inconsistencies.
12167 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12169 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12170 Have spawnve encapsulation regard DONT_ENCAPSULATE.
12171 Do not preliminary `#define signal sigset'.
12173 * systime.h: Do not prototype environ on windows nt and cygwin,
12174 this conflicts with system header.
12176 * syssignal.h: Use correct define for WINDOWSNT
12178 * sysdep.h: Do not prototype environ on windows nt, this conflicts
12179 with system header.
12181 * sysdep.c (near start of file): Fixed commentary and rearranged
12182 ifdefs in readable order.
12183 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12186 (end_of_data): Do not compile in if using PDUMP.
12188 * symsinit.h: Prototyped vars_of_nt().
12190 * ntproc.c (windows9x_p): Added, instead of os_subtype.
12191 (find_child_console): Use it.
12192 (sys_kill): Use it.
12194 * ntheap.h: Do not extern os_subtype.
12196 * ntheap.c (cache_system_info): Do not cache unneeded:
12197 nt_major_version, nt_minor_version and os_subtype.
12198 (recreate_heap): Do not compile in when PDUMPing.
12200 * nt.c (geteuid and friends): Use the new varibale
12201 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12202 (init_user_info): Removed the above mentioned hackery.
12203 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12204 stat has been fixed in the C runtime.
12205 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12207 * file-coding.c (struct file_coding_dump): Do not define
12208 ucs_to_mule_table in the struct if not MULE.
12209 (struct struct lrecord_description fcd_description_1): Do not dump
12212 * emacs.c (main_1): Call vars_of_nt().
12213 (right before Fdump_emacs_data): Don't need lastfile if using both
12214 portabe dumper and system malloc.
12216 * alloc.c (Fmemory_limit): Conditionalized out.
12217 (pdump): Use OPEN_BINARY for the portable dump file.
12218 (pdump_load): Ditto.
12220 2000-02-02 Mike Alexander <mta@arbortext.com>
12222 * nt.c (convert_time): Set tm_isdst before calling mktime and
12223 avoid calling it at all if the compiler supports 64 bit integers.
12224 Also initialize utc_base_ft before using it.
12226 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
12228 * frame.c (change_frame_size_1): Take f->internal_border_width
12229 into consideration when calculating the width of the frame.
12231 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12233 * window.c (frame_min_height):
12234 (frame_size_valid_p):
12235 (frame_pixsize_valid_p): Added.
12236 (check_frame_size): Generalized.
12238 * window.h: Prototyped the above.
12241 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12242 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12243 Deleted Vwin32_* and Vbinary_process_* unused variables.
12245 * device-msw.c (msprinter_init_device): Do not get printer font
12246 list; Added DEVMODE functions.
12248 * frame-msw.c: Added lots of printer code.
12250 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12253 * console-msw.h: Added more msprinter device private slots.
12255 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12257 * event-msw.c (key_needs_default_processing_p): Added.
12258 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12260 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12262 * glyphs.c (image_instance_layout): Mark image instance as clean
12264 (glyph_dirty_p): Removed redundant function.
12265 (invalidate_glyph_geometry_maybe): Added.
12266 (update_glyph_cachel_data): Call it.
12268 * glyphs.h: Prototyped it.
12270 * redisplay.c (add_glyph_rune): Call it.
12271 (redisplay_window): Reset glyphs cachels when frame faces have
12272 changed, thus forcing recomputation of built-in border glyphs.
12274 2000-01-30 Martin Buchholz <martin@xemacs.org>
12276 * Makefile.in.in: Make portable dumper and purify play well together.
12277 Add imperfect, but better than nothing, support for pdump.
12278 Remove xemacs.dmp when temacs is re-generated.
12279 Don't ignore errors when dumping xemacs.
12281 * symbols.c (maybe_call_magic_handler): Remove one magic number.
12283 2000-01-28 Andy Piper <andy@xemacs.org>
12285 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12286 (setup_normal_frame): ditto.
12287 (setup_frame_without_minibuffer): ditto.
12288 (setup_minibuffer_frame): ditto.
12289 (delete_frame_internal): ditto.
12290 (Fmake_frame_invisible): ditto.
12291 (Ficonify_frame): ditto.
12293 * window.h: change Fset_window_buffer signature.
12295 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12296 (Fset_window_buffer): allow recording of buffer if the window is
12297 the selected window.
12298 (window_loop): Use new Fset_window signature.
12300 2000-01-23 Daniel Pittman <daniel@danann.net>
12302 * config.h.in: Added template for `HAVE_ATHENA_3D'
12304 2000-01-29 Andy Piper <andy@xemacs.org>
12306 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12308 * gutter.c (output_gutter): Don't output if the window isn't live.
12310 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12312 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12313 of 01/12/00: Moved SetFocus back here where it belongs.
12315 2000-01-23 Andy Piper <andy@xemacs.org>
12317 * s/cygwin32.h: declare printer things.
12319 2000-01-26 Andy Piper <andy@xemacs.org>
12321 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12324 2000-01-24 Andy Piper <andy@xemacs.org>
12326 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12327 (mswindows_button_instantiate): Make sure glyph is a pixmap.
12329 * glyphs-widget.c (widget_instantiate): Avoid shadows.
12331 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12333 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12335 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12336 (mswindows_output_display_block): Avoid local shadows.
12338 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12339 (mswindows_enqueue_mouse_button_event): ditto.
12340 (mswindows_handle_gui_wm_command): remove declaration.
12342 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12345 * console-msw.h: Avoid shadows.
12346 (mswindows_get_toolbar_button_text):
12347 (emacs_mswindows_create_stream_pair):
12348 (emacs_mswindows_delete_stream_pair):
12349 (mswindows_handle_toolbar_wm_command): declare.
12351 * device-msw.c (build_syscolor_string): Avoid shadows.
12353 2000-01-23 Andy Piper <andy@xemacs.org>
12355 * glyphs-widget.c (widget_instantiate): reverse the items for
12356 layouts so that children are in the expected order.
12358 2000-01-28 Martin Buchholz <martin@xemacs.org>
12360 * ralloc.c: safe_bcopy ==> memmove
12361 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12362 * s/msdos.h: Remove BCOPY macros.
12363 * insdel.c (gap_right): Remove BCOPY conditional code.
12364 * insdel.c (gap_left): Remove BCOPY conditional code.
12365 XEmacs demands a working ANSI C compiler - hence memmove.
12367 * regex.c (regex_compile): Remove accidental use of trigraphs.
12369 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12371 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12374 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12376 * event-msw.c (mswindows_drain_windows_queue): Added the
12378 (mswindows_need_event): Commented the call to
12379 mswindows_drain_windows_queue().
12380 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12383 * console-msw.h: Moved a few function prototypes here from
12386 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12387 parameter from unsigned short to unsigned long.
12388 (Fmswindows_shell_execute): Added return value.
12390 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12392 * sysdep.c (init_system_name):
12393 process-unix.c (unix_canonicalized_host_name):
12394 Don't call freeaddrinfo() if getaddrinfo() fails.
12396 * process-unix.c (unix_open_unix_network_stream):
12397 Moved the code to get a port # into address loop.
12399 2000-01-27 Martin Buchholz <martin@xemacs.org>
12401 * buffer.c (reinit_vars_of_buffer):
12402 The right place to initialize conversion_in_dynarr and
12403 conversion_out_dynarr.
12405 * alloc.c (pdump): Use the real open() till sys_open() is functional.
12407 * process-unix.c (unix_canonicalize_host_name): Muleize.
12408 (unix_open_network_stream): Muleize.
12410 * buffer.h: Fix up prototypes for ralloc.c functions.
12412 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12413 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12414 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12415 instead of gethostbyname()
12416 * process-unix.c: In unix_canonicalize_host_name() and
12417 unix_open_network_stream(), add code to use getaddrinfo()
12418 instead of gethostbyname().
12420 2000-01-27 Daniel Pittman <daniel@danann.net>
12422 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12423 libs when built with flat Athena.
12425 2000-01-27 Martin Buchholz <martin@xemacs.org>
12427 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12428 Use coding standards for function prototypes.
12430 2000-01-25 Martin Buchholz <martin@xemacs.org>
12432 * dialog-msw.c (push_lisp_string_as_unicode):
12433 * doc.c (unparesseuxify_doc_string):
12434 * dired.c (Fuser_name_completion_1):
12435 * dired.c (Fuser_name_all_completions):
12436 * dired.c (free_user_cache):
12437 * dired.c (user_name_completion):
12438 * console-x.c (get_display_arg_connection):
12439 * minibuf.c (clear_echo_area_internal):
12440 * minibuf.c (echo_area_append):
12441 * eldap.c (Fldap_open):
12442 * eldap.c (Fldap_search_internal):
12443 * frame-x.c (x_set_frame_text_value):
12444 * frame-x.c (x_set_frame_properties):
12445 * frame-x.c (x_create_widgets):
12446 * redisplay-tty.c (term_get_fkeys_1):
12447 * objects-x.c (x_parse_nearest_color):
12448 * objects-x.c (x_valid_color_name_p):
12449 * objects-x.c (x_initialize_font_instance):
12450 * objects-x.c (x_list_fonts):
12451 * objects-x.c (x_find_charset_font):
12452 * tooltalk.c (Fadd_tooltalk_message_arg):
12453 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12454 * tooltalk.c (Fadd_tooltalk_pattern_arg):
12455 * process-unix.c (unix_create_process):
12456 * ntproc.c (sys_spawnve):
12457 * sound.c (Fplay_sound_file):
12458 * sound.c (Fplay_sound):
12459 * buffer.c (init_initial_directory):
12460 * buffer.c (init_buffer):
12461 * editfns.c (init_editfns):
12462 * editfns.c (Ftemp_directory):
12463 * editfns.c (Fuser_full_name):
12464 * editfns.c (uncache_home_directory):
12465 * editfns.c (get_home_directory):
12466 * editfns.c (Fuser_home_directory):
12467 * editfns.c (Fformat_time_string):
12468 * editfns.c (Fcurrent_time_string):
12469 * gui-x.c (button_item_to_widget_value):
12470 * database.c (Fopen_database):
12471 * event-Xt.c (x_to_emacs_keysym):
12472 * event-Xt.c (x_event_to_emacs_event):
12473 * event-Xt.c (describe_event_window):
12474 * event-msw.c (mswindows_wnd_proc):
12475 * glyphs-eimage.c (jpeg_instantiate):
12476 * glyphs-eimage.c (gif_instantiate):
12477 * glyphs-eimage.c (png_instantiate):
12478 * glyphs-eimage.c (tiff_instantiate):
12479 * glyphs-x.c (xbm_instantiate_1):
12480 * glyphs-x.c (x_xbm_instantiate):
12481 * glyphs-x.c (x_xface_instantiate):
12482 * glyphs-x.c (autodetect_instantiate):
12483 * glyphs-x.c (cursor_font_instantiate):
12484 * glyphs-x.c (x_widget_instantiate):
12485 * glyphs-x.c (x_widget_set_property):
12486 * glyphs-x.c (x_widget_property):
12487 * glyphs-x.c (BUILD_GLYPH_INST):
12488 * print.c (write_string_to_stdio_stream):
12489 * print.c (output_string):
12490 * print.c (Falternate_debugging_output):
12491 * print.c (Fexternal_debugging_output):
12492 * glyphs-msw.c (extract_xpm_color_names):
12493 * glyphs-msw.c (mswindows_xpm_instantiate):
12494 * glyphs-msw.c (bmp_instantiate):
12495 * glyphs-msw.c (resource_name_to_resource):
12496 * glyphs-msw.c (mswindows_resource_instantiate):
12497 * glyphs-msw.c (xbm_instantiate_1):
12498 * glyphs-msw.c (mswindows_xbm_instantiate):
12499 * glyphs-msw.c (mswindows_xface_instantiate):
12500 * glyphs-msw.c (mswindows_widget_instantiate):
12501 * glyphs-msw.c (add_tree_item):
12502 * glyphs-msw.c (add_tab_item):
12503 * glyphs-msw.c (mswindows_combo_box_instantiate):
12504 * glyphs-msw.c (mswindows_widget_property):
12505 * glyphs-msw.c (mswindows_combo_box_property):
12506 * glyphs-msw.c (mswindows_widget_set_property):
12507 * console.c (stuff_buffered_input):
12508 * objects-msw.c (mswindows_initialize_color_instance):
12509 * objects-msw.c (mswindows_valid_color_name_p):
12510 * objects-msw.c (mswindows_list_fonts):
12511 * objects-msw.c (mswindows_font_instance_truename):
12512 * bytecode.c (optimize_compiled_function):
12513 * select-x.c (symbol_to_x_atom):
12514 * select-x.c (x_atom_to_symbol):
12515 * select-x.c (hack_motif_clipboard_selection):
12516 * select-x.c (selection_data_to_lisp_data):
12517 * select-x.c (lisp_data_to_selection_data):
12518 * select-x.c (Fx_get_cutbuffer_internal):
12519 * select-x.c (Fx_store_cutbuffer_internal):
12520 * buffer.h (TO_EXTERNAL_FORMAT): New function.
12521 * buffer.h (TO_INTERNAL_FORMAT): New function.
12522 * emacs.c (make_arg_list_1):
12523 * emacs.c (make_argc_argv):
12524 * emacs.c (main_1):
12525 * emacs.c (Fdump_emacs):
12526 * emacs.c (split_string_by_emchar_1):
12531 * device-x.c (x_init_device):
12532 * device-x.c (Fx_valid_keysym_name_p):
12533 * device-x.c (Fx_get_font_path):
12534 * device-x.c (Fx_set_font_path):
12535 * glyphs.c (bitmap_to_lisp_data):
12536 * glyphs.c (pixmap_to_lisp_data):
12537 * alloc.c (make_ext_string): Use coding system arguments. Update
12539 * alloc.c (build_string):
12540 * callproc.c (child_setup):
12541 * callproc.c (init_callproc):
12542 * fileio.c (lisp_strerror):
12543 * fileio.c (directory_file_name):
12544 * fileio.c (Fexpand_file_name):
12545 * fileio.c (Ffile_truename):
12546 * fileio.c (Fsysnetunam):
12547 * fileio.c (Fdo_auto_save):
12548 * sysdep.c (sys_readdir):
12549 * tests.c: New file. Allow adding C tests.
12550 Replace GET_* macros with a more comprehensible and flexible
12551 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12553 Any coding system can be used to do format conversion.
12554 Eliminate enum external_data_format.
12555 Eliminate convert_to_external_format.
12556 Eliminate convert_to_internal_format.
12557 Make sure file-name, keyboard, terminal, and ctext are always
12558 defined as coding systems or aliases. Make
12559 file-name-coding-system, terminal-coding-system, and
12560 keyboard-coding-system magical variables that are equivalent to
12561 defining the corresponding coding system aliases.
12563 * file-coding.c (Fcoding_system_canonical_name_p): New function.
12564 * file-coding.c (Fcoding_system_alias_p): New function.
12565 * file-coding.c (Fcoding_system_aliasee): New function.
12566 * file-coding.c (append_suffix_to_symbol): New function.
12567 * file-coding.c (dangling_coding_system_alias_p): New function.
12568 * file-coding.c (Ffind_coding_system):
12569 * file-coding.c (Fcopy_coding_system):
12570 * file-coding.c (encode_coding_no_conversion):
12571 * file-coding.c (syms_of_file_coding):
12572 * file-coding.c (vars_of_file_coding):
12573 Rewrite coding system alias code.
12574 Allow nested aliases, like symbolic links.
12575 Allow redefinition of coding system aliases.
12576 Prevent existence of dangling coding system aliases.
12578 * dired.c (Fuser_name_completion_1):
12579 * dired.c (Fuser_name_all_completions):
12580 A crash would happen if user did QUIT in the middle of building
12581 user_name_cache. Remove redundant code in mainline and unwind_protect.
12584 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
12586 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12587 an unsigned char *. Update all callers.
12589 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12591 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12593 2000-01-25 Martin Buchholz <martin@xemacs.org>
12595 * elhash.c (hentry_description): Use more portable definition.
12596 (resize_hash_table): Initialize new hentries using
12597 xnew_array_and_zero, thereby simplifying the code.
12599 * mule-charset.c (make_charset): Make sure entire object is
12600 initialized, to avoid Purify warnings.
12602 * alloc.c (resize_string): Fix unlikely crash with big strings.
12604 2000-01-24 Martin Buchholz <martin@xemacs.org>
12606 * realpath.c (xrealpath):
12607 Don't call getwd().
12609 2000-01-25 Martin Buchholz <martin@xemacs.org>
12611 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12613 1999-12-28 Max Matveev <max@melbourne.sgi.com>
12615 * unexelfsgi.c (unexec): Change the way we decide which segment
12616 should be extended.
12618 Assumption that .bss section should be outside the PT_LOADable
12619 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12620 it's present) is inside the 'data' segment. This would fail the
12621 test which was used to find a segment to grow and cover new
12622 heap. Instead of this assumption, I created another one - on IRIX
12623 the segment to grow should start below .bss and it's address
12624 should extent above the end of .bss. Once this segment is
12625 identified, it's grown to accommodate the new heap and new
12626 zero-length .bss section is added at the end of .data2.
12628 2000-01-25 Martin Buchholz <martin@xemacs.org>
12630 * eval.c (Feval): Wrong number of arguments should use original
12631 function, not the indirect_function version of it.
12633 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12635 * glyphs-x.c (x_button_instantiate): Don't add image if
12636 it is not a pixmap.
12637 (x_locate_pixmap_file): Call Fexpand_file_name when file name
12640 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
12642 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12644 (DEFVAR_INT_MAGIC): Ditto.
12645 (DEFVAR_BOOL_MAGIC): Ditto.
12646 * glyphs.h: Reindent backslash.
12648 2000-01-24 Martin Buchholz <martin@xemacs.org>
12650 * glyphs-widget.c (layout_query_geometry):
12651 (layout_layout): Use correct types for gheight, gwidth.
12653 2000-01-24 Martin Buchholz <martin@xemacs.org>
12655 * EmacsManager.c (QueryGeometry): Purified.
12657 2000-01-23 Martin Buchholz <martin@xemacs.org>
12659 * alloc.c (make_float): Make sure entire object is initialized, to
12660 avoid Purify warnings.
12661 (pdump_register_sub): Remove useless assignment.
12662 (pdump): Use xmalloc, not malloc.
12663 (pdump_load): Use xmalloc, not malloc.
12665 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12672 * sysdep.c: Removed redundant #include <windows.h>
12674 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12676 * frame.c (delete_frame_internal): Do not delete device when its
12677 implementation so declares.
12678 (delete_frame_internal): Set device selected frame to nil when
12679 last frame goes away.
12681 * device-msw.c (msprinter_device_system_metrics): Implemented.
12682 (mswindows_device_system_metrics): Added 'device-dpi property.
12684 * device.c: (Fdevice_printer_p): Added.
12685 Added 'offset-workspace device metric.
12687 * console.h (device_metrics): Declared DM_offset_workspace.
12689 2000-01-23 Martin Buchholz <martin@xemacs.org>
12691 * fileio.c (Ffile_truename): Remove pointless and confusing
12692 initialization of elen.
12694 * glyphs-widget.c: Compiler warning fixes.
12696 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
12698 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12699 instead of a Lisp_Object as argument to make it consistent with
12700 the other LIVE_P macros.
12701 (CHECK_LIVE_PROCESS): New macro.
12703 * process.c: Declare Qprocess_live_p.
12704 (Fprocess_live_p): New function.
12705 (create_process): Use PROCESS_LIVE_P.
12706 (read_process_output): Ditto.
12707 (set_process_filter): Ditto.
12708 (Fdelete_process): Ditto.
12709 (kill_buffer_processes): Ditto
12710 (process_send_signal): Use CHECK_LIVE_PROCESS.
12711 (Fprocess_input_coding_system): Check whether process is still
12712 alive (fix PR#1061).
12713 (Fprocess_output_coding_system): Ditto.
12714 (Fprocess_coding_system): Ditto.
12715 (Fset_process_input_coding_system): Ditto.
12716 (Fset_process_output_coding_system): Ditto.
12718 2000-01-23 Andy Piper <andy@xemacs.org>
12720 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12723 * glyphs.c (mark_image_instance): take into account changed
12724 image_instance format.
12725 (image_instance_equal): ditto.
12726 (image_instance_hash): ditto.
12728 * glyphs-widget.c (widget_instantiate): Incorporate layout
12729 instantiation here. Delay layout of the layout until later.
12730 (layout_instantiate): deleted.
12731 (layout_query_geometry): new function. get the geometry of a
12733 (layout_layout): layout a layout dynamically.
12734 (image_instantiator_widget): New function - splitting up
12735 image_instantiator_format_create_glyphs_widget for netwinder
12737 (image_instantiator_buttons):
12738 (image_instantiator_edit_fields):
12739 (image_instantiator_combo_box):
12740 (image_instantiator_scrollbar):
12741 (image_instantiator_progress_guage):
12742 (image_instantiator_tree_view):
12743 (image_instantiator_tab_control):
12744 (image_instantiator_labels):
12745 (image_instantiator_layout): ditto.
12746 (image_instantiator_format_create_glyphs_widget): Call preceding
12749 2000-01-22 Martin Buchholz <martin@xemacs.org>
12751 * process.c (Fset_process_coding_system):
12752 * device-x.c (Fx_keysym_hash_table):
12755 * lstream.c (Lstream_write): Return documented value, not 0.
12757 * fileio.c (directory_file_name):
12758 (Fsubstitute_in_file_name):
12759 (Fsubstitute_insert_file_contents_internal):
12760 (Fwrite_region_internal):
12765 Remove vestigial APOLLO-conditional code.
12767 2000-01-21 Martin Buchholz <martin@xemacs.org>
12769 * getpagesize.h: Add guard macros.
12770 * libsst.h: Add guard macros.
12771 * libst.h: Add guard macros.
12772 * line-number.h: Add guard macros.
12773 * ndir.h: Add guard macros.
12774 * sysfloat.h: Add guard macros.
12775 * sysfile.h: Add guard macros.
12776 * sysproc.h: Add guard macros.
12777 * syswait.h: Add guard macros.
12778 * xintrinsic.h: Add guard macros.
12779 * xintrinsicp.h: Add guard macros.
12780 * xmmanager.h: Add guard macros.
12781 * xmmanagerp.h: Add guard macros.
12782 * xmprimitive.h: Add guard macros.
12783 * xmu.h: Add guard macros.
12784 * gpmevent.h: Add copyright statement. Add guard macros.
12785 * miscplay.h: Add guard macros.
12786 * *.h: Use consistent C-standards-approved guard macro names.
12788 * opaque.c (make_opaque): Switch parameter order.
12789 * opaque.h (make_opaque): Switch parameter order.
12790 Update all callers.
12791 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12793 * config.h.in (type_checking_assert): Added.
12794 (bufpos_checking_assert): Added.
12796 2000-01-21 Martin Buchholz <martin@xemacs.org>
12798 * alloc.c: Harmless pdump changes.
12800 - spell alignment correctly.
12801 * sysdep.c: Use countof()
12803 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12805 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12806 initially_selected_for_input() console method, default to 0.
12807 (semi_canonicalize_console_connection): Try to delegate to
12808 canonicalize_console_connection if no such console method.
12809 (canonicalize_console_connection): Vice versa.
12810 (print_console): Do not print nil connection.
12812 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12813 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12814 (XDEVIMPF_FRAMELESS_OK): Added.
12815 (CONSOLE_INHERITS_METHOD): Added.
12817 * console-msw.c (mswindows_canonicalize_console_connection):
12819 (mswindows_canonicalize_device_connection): Added.
12821 * console-msw.h (struct msprinter_device): Added this struct and
12823 (mswindows_device): Made fontlist a lisp object.
12825 * device.c (semi_canonicalize_device_connection): Try to delegate
12826 to canonicalize_device_connection if no such console method.
12827 (canonicalize_device_connection): Vice versa.
12828 (print_device): Do not print nil connection.
12830 * device-msw.c (mswindows_init_device): Call InitCommonControls
12832 (mswindows_delete_device): Removed fontlist deallocation.
12833 (mswindows_mark_device): Added.
12835 * events.c (event_equal): Added abort() at unreached code.
12836 (event_hash): Ditto.
12838 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12839 fallback tags of Windows devices.
12841 * general.c (syms_of_general): Initialized Qmsprinter.
12843 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12844 of fallback tags of Windows devices.
12846 * lisp.h: Declared Qmsprinter.
12848 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12850 (mswindows_list_fonts): Ditto.
12851 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12852 that it can be used by both mswindows and msprinter devices.
12853 (initialize_font_instance): Added.
12854 (mswindows_initialize_font_instance): Use it.
12855 (msprinter_initialize_font_instance): Added.
12857 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12858 and implementation flags check.
12859 (redisplay_without_hooks): Changed the call to the above.
12860 (Fredraw_device): Ditto.
12861 (Fredisplay_device): Ditto.
12863 * redisplay-msw.c (get_frame_dc): Implemented.
12864 (get_frame_compdc): Implemented.
12865 (many functions): Use the two functions above to get device
12866 contexts, ether for a window or a printer.
12868 2000-01-21 Olivier Galibert <galibert@pobox.com>
12870 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12871 initialization here.
12872 (init_symbols_once_early): Call it.
12873 * emacs.c (main_1): Call it.
12874 * symsinit.h: Declare it.
12876 2000-01-19 Olivier Galibert <galibert@pobox.com>
12878 * alloc.c: Use a lrecord_header * in the backtrace instead of a
12880 (pdump_backtrace): Ditto.
12881 (pdump_register_object): Ditto. Cleanup use of the pointers.
12882 (pdump_get_entry): Abort if trying to register a null pointer.
12883 (pdump_dump_data): Cleanup types when relocating.
12884 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12885 (pdump_dump_rtables): Remove bad casts.
12886 (pdump_load): Cleanup relocation w.r.t union type. Use a
12887 Lisp_Object instead of a EMACS_INT for the hashtable
12890 2000-01-20 Martin Buchholz <martin@xemacs.org>
12892 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12894 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12896 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12898 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12900 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12902 * faces.h (FACE_STRIKETHRU_P): Added.
12904 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12907 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12908 (mswindows_set_dc_font): New function, aware of font variants,
12909 separated from mswindows_update_dc.
12911 * objects-msw.h (struct mswindows_font_instance_data): Added
12914 * objects-msw.c (mswindows_finalize_font_instance): Delete all
12915 cached fonts and the data structure.
12916 (mswindows_initialize_font_instance): Added creation of font data
12918 (mswindows_print_font_instance): Print at least something.
12919 (mswindows_create_font_variant): Implemented.
12920 (mswindows_get_hfont): Implemented.
12922 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
12924 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12925 prototyping problem with msvc.
12927 * emacs.c (main_1): added syms_of_gui_mswindows() call
12929 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12930 syms_of_gui_mswindows() function
12932 * symsinit.h: added the prototype for syms_of_gui_mswindows()
12934 2000-01-18 Martin Buchholz <martin@xemacs.org>
12936 * XEmacs 21.2.27 is released.
12938 2000-01-18 Martin Buchholz <martin@xemacs.org>
12940 * glyphs-eimage.c (struct tiff_error_struct):
12942 (tiff_warning_func):
12943 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12948 * unexec.c: Remove vestigial Lucid C code.
12952 * libsst.c: Ansify.
12953 Remove declarations of errno and strerror().
12955 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
12957 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12959 2000-01-16 Martin Buchholz <martin@xemacs.org>
12961 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12964 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12969 Change enum eol_type to eol_type_t.
12971 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12973 * gui.c (get_gui_callback): Check cons before accessing car.
12975 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12977 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12978 (XSETSPECIFIER_TYPE): Ditto.
12980 2000-01-17 Didier Verna <didier@xemacs.org>
12982 * redisplay.c (generate_fstring_runes): compute string size in
12983 characters, not bytes.
12985 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12987 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12989 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
12991 * print.c (print_error_message): Call print_prepare().
12993 2000-01-14 Martin Buchholz <martin@xemacs.org>
12995 * .dbxrc: Renamed from dbxrc.
12997 * events.c (event_to_character):
12998 Use `assert (foo)' instead of `if (!foo) abort()'
13000 * .gdbinit (xtype): Add documentation.
13001 * .gdbinit (check-temacs): New function.
13002 * .gdbinit (check-xemacs): New function.
13003 * dbxrc (check-xemacs): New function.
13004 * dbxrc (check-xemacs): New function.
13006 2000-01-14 Andy Piper <andy@xemacs.org>
13008 * glyphs-widget.c (widget_query_geometry): Make sure that we
13009 calculate default dimensions correctly.
13011 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13013 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
13015 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
13016 pdump_wire'd variable.
13018 * emacs.c: (main_1): Conditionalized calls to
13019 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
13021 2000-01-13 Martin Buchholz <martin@xemacs.org>
13023 * window.c (Fset_window_configuration):
13024 * sysdep.c (_start):
13025 * input-method-motif.c (res):
13026 * event-Xt.c (Xt_process_to_emacs_event):
13027 Simple compiler warning fixes.
13029 * bytecode.c (funcall_compiled_function): Use the original
13030 function symbol on the backtrace list in preference to the
13031 compiled_function object in error messages.
13033 2000-01-13 Andy Piper <andy@xemacs.org>
13035 * glyphs-x.c (update_widget_face): Make sure we update the widget
13036 background as well as foreground.
13038 2000-01-13 Andy Piper <andy@xemacs.org>
13040 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
13041 fields to subwindow.
13042 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
13043 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
13044 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13045 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13047 * glyphs-widget.c (check_valid_tab_orientation): new function.
13048 (initialize_widget_image_instance): zero orientation and
13050 (widget_instantiate): pick up orientation.
13051 (tab_control_query_geometry): return appropriate values for
13054 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
13055 appropriate creation flags for left, right and bottom tabs.
13057 * s/cygwin32.h: add tab definitions.
13059 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13061 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13062 frame upon hiding a subwindow.
13063 (mswindows_button_instantiate): Changed the push button style to
13065 (mswindows_button_instantiate): Removed button BS_NOTIFY
13067 (mswindows_button_instantiate): Removed redundant check for
13068 a disabled gui item.
13069 (mswindows_button_instantiate): Made use of WS_TABSTOP
13070 consistent: "operable" controls (edit, button, tree, scroll) have
13071 this style, "display-only" ones (static, progress gauge) do
13072 not. This style is currently ignored by XEmacs though. Also,
13073 removed the WS_EX_CONTROLPARENT style - it is not for children,
13074 it is for their parents!
13075 (mswindows_edit_field_instantiate): Ditto.
13076 (mswindows_progress_gauge_instantiate): Ditto.
13077 (mswindows_tree_view_instantiate): Ditto.
13078 (mswindows_tab_control_instantiate): Ditto.
13079 (mswindows_scrollbar_instantiate): Ditto.
13080 (mswindows_combo_box_instantiate): Ditto.
13081 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13082 style to the "clip" window.
13083 (mswindows_button_instantiate): Removed compilation warning by
13084 equally typing terms of the ?: operator.
13086 2000-01-12 Didier Verna <didier@xemacs.org>
13088 * redisplay.c (generate_fstring_runes): new parameter holding the
13089 last modeline-format extent.
13090 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13091 extent, fill the glyph block with it.
13092 (generate_fstring_runes): handle these parameters.
13093 (generate_formatted_string_db): ditto.
13095 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13096 glyphs'extents in the modeline.
13098 1999-01-11 Mike Woolley <mike@bulsara.com>
13100 * ntheap.c: Reduced the reserved heap space from 1Gb down to
13101 256Mb, as a workaround for the non-starting problem many people
13104 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13106 * console-tty.c (Fset_console_tty_output_coding_system):
13107 Force redrawing tty frame.
13109 2000-01-10 Didier Verna <didier@xemacs.org>
13111 * redisplay.c (generate_fstring_runes): fix size computation bug.
13113 2000-01-09 William M. Perry <wmperry@aventail.com>
13115 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13117 2000-01-09 Andy Piper <andy@xemacs.org>
13119 * glyphs-msw.c: index -> i to avoid shadows.
13120 (xbm_create_bitmap_from_data): make static.
13121 (check_valid_string_or_int): deleted.
13122 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13124 * glyphs-x.c (x_update_subwindow): remove unused args.
13126 * glyphs.c (glyph_image_instance): return the thing. Don't set the
13127 back pointer - this is done in allocate_image_instance.
13128 (query_string_font): return Qnil to make the compiler happy.
13129 (unmap_subwindow): set to ~0 to make the compiler happy.
13130 (glyph_query_geometry): comment out until used.
13131 (glyph_layout): ditto.
13133 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
13135 * insdel.c (signal_after_change): Remove extraneous unbind_to().