1 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * mule-charset.c (Fsave_charset_mapping_table): Use
4 `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
5 instead of `chise_open_decoding_table'; refer
6 `default_chise_data_source'; use `chise_dt_close' instead of
7 `chise_close_decoding_table'.
8 (load_char_decoding_entry_maybe): Likewise.
10 * chartab.c (default_chise_data_source): New variable when `CHISE'
12 (Fcopy_char_table): `ct->ds' is deleted.
13 (open_chise_data_source_maybe): New function.
14 (Fclose_char_data_source): New function.
15 (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
16 use `chise_ds_open_feature_table' instead of
17 `chise_open_feature_table'.
18 (char_table_close_db_maybe): Use `chise_ft_close' instead of
19 `chise_close_feature_table'; `cit->ds' is deleted.
20 (syms_of_chartab): Add new builtin function
21 `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
23 * chartab.h (default_chise_data_source): New extern variable.
24 (open_chise_data_source_maybe): New prototype.
25 (struct Lisp_Char_Table): Delete `ds'.
27 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
29 * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
32 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
34 * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
35 not defined; add code for non-libchise setting.
36 (char_table_close_db_maybe): Likewise.
37 (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
39 (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
40 even if `CHISE' is not defined.
41 (Freset_char_attribute_table): Likewise.
42 (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
43 `char_table_close_db_maybe' even if `CHISE' is not defined; use
45 (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
46 `char_table_close_db_maybe' even if `CHISE' is not defined.
48 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
50 * chartab.c (char_table_open_db_maybe): New function.
51 (char_table_close_db_maybe): New function.
52 (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
53 (Freset_char_attribute_table): Likewise.
54 (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
55 `char_table_close_db_maybe'.
56 (Fload_char_attribute_table): Likewise.
58 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
60 * chartab.c: Don't include <chise.h> because it is included in
62 (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
64 (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
66 (Fmount_char_attribute_table): Initialize `ct->feature_table' when
68 (Fclose_char_attribute_table): Close `ct->feature_table' and
69 `ct->ds' when `CHISE' is defined.
70 (Freset_char_attribute_table): Likewise.
71 (load_char_attribute_maybe): Use `cit->ds' and
72 `cit->feature_table' when `CHISE' is defined.
73 (Fload_char_attribute_table): Likewise.
75 * chartab.h: Include <chise.h> when `CHISE' is defined.
76 (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
77 when `CHISE' is defined.
79 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
81 * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
83 (char_table_description): Likewise.
84 (Fmake_char_table): Likewise.
85 (Fcopy_char_table): Likewise.
86 (Fmount_char_attribute_table): Likewise.
87 (Fclose_char_attribute_table): Likewise.
88 (Freset_char_attribute_table): Likewise.
89 (load_char_attribute_maybe): Likewise.
90 (Fload_char_attribute_table): Likewise.
92 * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
95 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
97 * chartab.c (load_char_attribute_table_map_func): New function
98 when CHISE is defined.
99 (Qload_char_attribute_table_map_function): Don't define when CHISE
101 (Fload_char_attribute_table_map_function): Likewise.
102 (Fload_char_attribute_table): Use libchise when `CHISE' is
104 (syms_of_chartab): Don't define
105 `load-char-attribute-table-map-function' when CHISE is defined.
107 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
109 * chartab.c: Include <chise.h> when `CHISE' is defined.
110 (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
112 2003-07-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
114 * mule-charset.c (charset_code_point): Fix problem when searching
115 in mother CCS fails with `defined_only' mode.
117 2003-06-29 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
119 * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
120 (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
121 (put_char_composition): Likewise.
122 (Fput_char_attribute): Likewise.
123 (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
125 2003-06-29 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
127 * chartab.c (Q_ucs): Deleted.
128 (Fput_char_attribute): Don't refer `->ucs'.
129 (Fdefine_char): Likewise.
130 (Ffind_char): Likewise.
131 (syms_of_chartab): Delete `->ucs'.
133 2003-04-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
135 * mule-charset.c (Qmap_cns11643_2): Renamed from
136 `Qchinese_cns11643_2'.
137 (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
138 `chinese-cns11643-2'.
139 (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
142 2003-04-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
144 * mule-charset.c (Qmap_cns11643_1): Renamed from
145 `Qchinese_cns11643_1'.
146 (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
147 `chinese-cns11643-1'.
148 (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
151 2003-04-24 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
153 * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
154 (syms_of_mule_charset): Add new symbol `=gb12345' instead of
156 (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
159 2003-04-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
161 * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
162 (syms_of_mule_charset): Add new symbol `=gb2312' instead of
164 (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
167 2003-04-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
169 * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
170 (syms_of_mule_charset): Add new symbol `=big5' instead of
172 (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
174 2003-04-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
176 * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
177 (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
179 (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
182 2003-04-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
184 * mule-charset.c (Qmap_jis_x0212): Renamed from
185 `Qjapanese_jisx0212'.
186 (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
188 (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
191 2003-04-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
193 * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
194 `Qjapanese_jisx0208'.
195 (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
196 of `japanese-jisx0208'.
197 (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
200 2003-04-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
202 * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
203 `Qjapanese_jisx0208_1978'.
204 (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
205 of `japanese-jisx0208-1978'.
206 (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
209 2003-04-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
211 * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
212 only for XEmacs CHISE.
214 2003-04-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
216 * char-ucs.h: Compact non-ISO-IR charset-ids.
217 (LEADING_BYTE_UCS): Changed to -177.
218 (LEADING_BYTE_CONTROL_1): Changed to -77.
219 (LEADING_BYTE_UCS_BMP): Changed to -176.
220 (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
222 2003-04-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
224 * mule-charset.c (Qiso_ir): New variable.
225 (Fmake_charset): Recognise new property `iso-ir'.
226 (syms_of_mule_charset): Add new symbol `iso-ir'.
228 2003-04-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
230 * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
231 n to -n; charset-id of non ISO-IR sets are changed to positive
234 2003-03-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
236 * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
237 for &MCS-XXXXXXXX; values.
239 2003-03-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
241 * mule.c (Vxemacs_chise_version): Renamed from
243 (vars_of_mule): Add new variable `xemacs-chise-version'; define
244 `utf-2000-version' as an alias for `xemacs-chise-version'.
246 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
248 * mule-charset.c: Include <chise.h> when `CHISE' is defined.
249 (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
252 * config.h.in (CHISE): New macro.
254 2003-03-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
256 * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
258 (Qmap_ucs): New variable.
259 (syms_of_mule_charset): Add new symbol `=ucs'.
260 (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
262 * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
263 (simplify_char_spec): Likewise.
265 * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
267 * char-ucs.h (Qmap_ucs): New extern variable.
269 2003-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
271 * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
272 (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
273 don't define it when UTF2000 is not defined.
274 (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
275 `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
276 when UTF2000 is not defined.
277 (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
278 rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
280 2003-03-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
282 * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
284 * mule-charset.c (Vcharset_ucs_gb): Deleted.
286 (syms_of_mule_charset): Delete `ucs-gb'.
287 (complex_vars_of_mule_charset): Likewise.
289 2003-03-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
291 * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
293 * mule-charset.c (Vcharset_ucs_cns): Deleted.
295 (syms_of_mule_charset): Delete `ucs-cns'.
296 (complex_vars_of_mule_charset): Likewise.
298 2003-03-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
300 * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
302 * mule-charset.c (Vcharset_ucs_jis): Deleted.
304 (syms_of_mule_charset): Delete `ucs-jis'.
305 (complex_vars_of_mule_charset): Likewise.
307 2003-03-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
309 * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
311 * mule-charset.c (Vcharset_ucs_ks): Deleted.
313 (syms_of_mule_charset): Delete `ucs-ks'.
314 (complex_vars_of_mule_charset): Likewise.
316 2003-03-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
318 * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
319 (Qideograph_daikanwa_2): Deleted.
320 (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
321 (complex_vars_of_mule_charset): Likewise.
323 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
324 (LEADING_BYTE_DAIKANWA_1): Deleted.
325 (LEADING_BYTE_DAIKANWA_2): Deleted.
326 (MIN_CHAR_DAIKANWA): Deleted.
327 (MAX_CHAR_DAIKANWA): Deleted.
329 2003-02-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
331 * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
332 (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
333 ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
335 * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
336 (Vcharset_ideograph_daikanwa): Deleted.
337 (Qideograph_hanziku_{1..12}): Deleted.
338 (Qideograph_daikanwa): Deleted.
339 (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
340 Vcharset_ideograph_daikanwa.
341 (syms_of_mule_charset): Delete `ideograph-daikanwa' and
342 `ideograph-hanziku-{1..12}'.
343 (complex_vars_of_mule_charset): Likewise.
345 2003-02-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
347 * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
349 * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
350 (Qideograph_gt_pj_{1..11}): Deleted.
351 (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
352 (complex_vars_of_mule_charset): Likewise.
354 2003-02-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
356 * mule-charset.c (Vcharset_ucs_big5): Deleted.
357 (Vcharset_ideograph_gt): Deleted.
358 (Qucs_big5): Deleted.
359 (Qideograph_gt): Deleted.
360 (syms_of_mule_charset): Delete symbol `ucs-big5' and
362 (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
365 * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
366 (LEADING_BYTE_GT): Deleted.
367 (MIN_CHAR_GT): Deleted.
368 (MAX_CHAR_GT): Deleted.
370 2003-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
372 * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
374 2003-01-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
376 * chartab.c (save_uint8_byte_table): Add new argument `filter'.
377 (save_uint16_byte_table): Likewise.
378 (save_byte_table): Likewise; convert values by it.
379 (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
380 for `ideographic-structure'.
381 (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
382 as the filter for `ideographic-structure'.
384 2003-01-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
386 * chartab.c (put_char_composition): New function.
387 (Fput_char_attribute): Use `put_char_composition'; use
388 `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
390 * fns.c (simplify_char_spec): New function.
391 (char_ref_simplify_spec): New function.
392 (Fchar_refs_simplify_char_specs): New function.
393 (syms_of_fns): Add new builtin function
394 `char-refs-simplify-char-specs'.
396 2003-01-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
398 * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
399 (Qideograph_cbeta): Deleted.
400 (syms_of_mule_charset): Don't define `ideograph-cbeta'.
401 (complex_vars_of_mule_charset): Likewise.
403 * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
404 (MIN_CHAR_CBETA): Comment out.
405 (MAX_CHAR_CBETA): Likewise.
407 2002-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
409 * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
410 `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
411 CHISE client feature.
413 2002-12-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
415 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
417 2002-12-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
419 * mule-charset.c (charset_lookup_description_1): Use
420 `NUM_LEADING_BYTES' in UTF-2000.
422 2002-12-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
424 * char-ucs.h (GC_CHARSETP): Deleted.
426 2002-12-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
428 * char-ucs.h (MAX_CHAR_GT): Updated.
430 2002-12-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
432 * text-coding.c: Sync with XEmacs 21.4.10.
434 2002-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
436 * mule-charset.c (Vcharset_china3_jef): Deleted.
437 (Qchina3_jef): Deleted.
438 (syms_of_mule_charset): Don't define `china3-jef'.
439 (complex_vars_of_mule_charset): Likewise.
441 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
442 (MIN_CHAR_CHINA3_JEF): Comment out.
443 (MAX_CHAR_CHINA3_JEF): Comment out.
445 2002-11-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
447 * mule-charset.c (Vcharset_ucs_gb): New variable.
448 (Qucs_gb): New variable.
449 (syms_of_mule_charset): Add new symbol `ucs-gb'.
450 (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
452 * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
454 2002-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
456 * mule-charset.c (charset_code_point): if a coded-charset has a
457 final-byte, don't inherit the builtin range of the mother CCS.
459 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
461 * mule-charset.c (charset_code_point): Fix problem about
464 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
466 * mule-charset.c (decode_builtin_char): Reorganized.
468 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
470 * text-coding.c (char_encode_as_entity_reference): Modify for
471 `charset_code_point'.
472 (char_encode_shift_jis): Likewise.
473 (char_encode_big5): Likewise.
474 (char_encode_utf8): Likewise.
475 (char_encode_iso2022): Likewise.
477 * mule-charset.c (charset_code_point): Add new argument
479 (Fencode_char): Add new optional argument `defined_only'.
481 * chartab.c (put_char_table): Modify for `charset_code_point'.
483 * char-ucs.h (charset_code_point): Add new argument
485 (encode_char_1): Modify for `charset_code_point'.
487 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
489 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
490 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
492 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
494 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
495 (Qjis_x0208): Likewise.
496 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
497 XCHARSET_FINAL(charset).
498 (charset_code_point): Modify condition for final-byte based
500 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
501 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
502 in UTF-2000; specify `=jis-x0208' as the mother of
503 `japanese-jisx0208-1978', `japanese-jisx0208' and
504 `japanese-jisx0208-1990' in UTF-2000.
506 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
508 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
510 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
512 * text-coding.c (decode_coding_utf16): Support UTF-16.
513 (char_encode_utf16): Fixed.
515 2002-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
517 * text-coding.c (Qutf16): New variable in MULE.
518 (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
519 (Fcoding_system_type): Add `utf-16' in MULE.
520 (struct detection_state): Add a structure for utf16 in MULE.
521 (detect_coding_type): Setup st->utf16.mask in MULE.
522 (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
524 (reset_encoding_stream): Use `char_encode_utf16' and
525 `char_finish_utf16' for `CODESYS_UTF16' in MULE.
526 (detect_coding_utf16): New function [incomplete].
527 (decode_coding_utf16): New function [support only UCS-2].
528 (char_encode_utf16): New function.
529 (char_finish_utf16): New function.
530 (syms_of_file_coding): Add new symbol `utf-16'; setup
531 `coding_category_symbol[CODING_CATEGORY_UTF16]'.
533 * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
535 (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
536 (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
538 2002-10-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
540 * chartab.c (put_char_table): When a charset is specified as a
541 range in UTF-2000, don't support builtin characters.
543 2002-09-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
545 * mule-charset.c (decode_defined_char): Don't refer external
546 database if Qunbound or Qnil are found.
547 (Fsave_charset_mapping_table): Don't define it if
548 HAVE_CHISE_CLIENT is not defined.
549 (Freset_charset_mapping_table): New function.
550 (load_char_decoding_entry_maybe): Store Qnil if a character is not
551 found in external database.
552 (syms_of_mule_charset): Don't define `save-charset-mapping-table'
553 if HAVE_CHISE_CLIENT is not defined; add new builtin function
554 `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
556 2002-09-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
558 * text-coding.c (decode_coding_utf8): Check CCS is specified or
561 2002-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
563 * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
564 Q_lowercase, Q_uppercase in UTF-2000.
566 * chartab.c (get_char_table): Add special code for the standard
567 case table to use character attribute `->downcase' and
568 `->uppercase' for case operations in UTF-2000.
570 * casetab.c (Qflippedcase): New variable in UTF-2000.
571 (Q_lowercase): Likewise.
572 (Q_uppercase): Likewise.
573 (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
574 and `->uppercase' in UTF-2000.
575 (complex_vars_of_casetab): Assign attribute name `downcase' to
576 downcase and CANON table of Vstandard_case_table in UTF-2000;
577 assign attribute name `flippedcase' to upcase and EQV table of
578 Vstandard_case_table in UTF-2000.
580 2002-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
582 * text-coding.c (decode_add_er_char): Support isolated-chars.
583 (char_encode_as_entity_reference): Likewise.
585 2002-08-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
587 * emacs.c (Vutf_2000_lisp_directory): New variable.
588 (Vconfigure_utf_2000_lisp_directory): Likewise.
589 (complex_vars_of_emacs): Add new variable
590 `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
592 2002-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
594 * char-ucs.h (DECODE_CHAR): Delete special code for
595 `chinese-big5-1' and `chinese-big5-2'.
597 * mule-charset.c (Qbig5_1): New variable in UTF-2000.
599 (decode_defined_char): Support CONVERSION_BIG5_1 and
601 (decode_builtin_char): Likewise.
602 (charset_code_point): Likewise.
603 (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
604 'conversion in UTF-2000.
605 (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
606 (complex_vars_of_mule_charset): Define `chinese-big5-1' and
607 `chinese-big5-2' as children of `chinese-big5'.
609 * char-ucs.h (CONVERSION_BIG5_1): New macro.
610 (CONVERSION_BIG5_2): New macro.
612 2002-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
614 * text-coding.c (char_encode_big5): Support entity-reference.
616 2002-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
618 * text-coding.c (char_encode_as_entity_reference): New function.
619 (char_encode_utf8): Use `char_encode_as_entity_reference'.
621 2002-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
623 * text-coding.c (decode_coding_big5): Support entity-reference
626 2002-08-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
628 * text-coding.c (allocate_coding_system): Initialize initial
629 charsets for CODESYS_UTF8.
630 (Fmake_coding_system): Accept charset-g0, charset-g1 and
631 charset-g2 for CODESYS_UTF8.
632 (decode_coding_utf8): Use charset-g0.
633 (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
634 to force variants to map to UCS.
636 2002-07-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
638 * text-coding.c (Qutf_8_mcs): New variable.
639 (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
640 (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
641 instead of `utf-8' in UTF-2000.
643 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
645 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
646 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
647 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
648 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
649 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
650 CONVERSION_96x96x96x96 are introduced.
651 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
652 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
653 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
655 * char-ucs.h (CONVERSION_94): New macro.
656 (CONVERSION_96): New macro.
657 (CONVERSION_94x94): New macro.
658 (CONVERSION_96x96): New macro.
659 (CONVERSION_94x94x94): New macro.
660 (CONVERSION_96x96x96): New macro.
661 (CONVERSION_94x94x94x60): New macro.
662 (CONVERSION_94x94x94x94): New macro.
663 (CONVERSION_96x96x96x96): New macro.
665 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
667 * chartab.c (Vcharacter_variant_table): Deleted.
668 (Fchar_variants): Use character-attribute `->ucs-variants' instead
669 of `Vcharacter_variant_table'.
670 (Fput_char_attribute): Likewise.
671 (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
672 (complex_vars_of_chartab): Likewise.
674 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
676 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
678 * fns.c (Qideographic_structure): New variable.
679 (Qkeyword_char): New variable.
680 (ids_format_unit): New function.
681 (Fideographic_structure_to_ids): New function.
682 (syms_of_fns): Add new symbols `ideographic-structure' and
683 `:char'; add new builtin function `ideographic-structure-to-ids'.
685 * data.c (Fchar_ref_p): New function.
686 (syms_of_data): Add new builtin function `char-ref-p'.
688 * chartab.h: Add an EXFUN for `Ffind_char'.
690 2002-07-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
692 * text-coding.c (Vcharacter_composition_table): Deleted.
693 (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
696 * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
698 (Vcharacter_composition_table): Deleted.
699 (Fget_composite_char): Use the implementation for external-DB
700 support in every UTF-2000.
701 (Fput_char_attribute): Likewise.
702 (char_attribute_system_db_file): Don't define if external-DB
703 feature is not available.
704 (Fsave_char_attribute_table): Likewise.
705 (Fmount_char_attribute_table): Likewise.
706 (Fclose_char_attribute_table): Likewise.
707 (Freset_char_attribute_table): Likewise.
708 (Fload_char_attribute_table): Likewise.
709 (syms_of_chartab): Don't define `save-char-attribute-table',
710 `mount-char-attribute-table', `reset-char-attribute-table',
711 `close-char-attribute-table' and `load-char-attribute-table' if
712 external-DB feature is not available.
713 (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
715 2002-07-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
717 * text-coding.c (Qcomposition): Add extern if external-DB feature
719 (Vcharacter_composition_table): Don't add extern if external-DB
720 feature is supported.
721 (COMPOSE_ADD_CHAR): Modify for new data-representation of
722 character composition rule if external-DB feature is supported.
724 * chartab.c (Vcharacter_composition_table): Don't define if
725 external-DB feature is supported.
726 (Qcomposition): New variable.
727 (Fget_composite_char): New implementation for external-DB support.
728 (Fput_char_attribute): Use `composition' property of each
729 character instead of `Vcharacter_composition_table' to store
730 character-composition rules if external-DB feature is supported.
731 (syms_of_chartab): Add new symbol `composition'.
732 (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
733 external-DB feature is supported.
735 2002-07-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
737 * chartab.c (Vchar_db_stingy_mode): New variable.
738 (load_char_attribute_maybe): Close database if
739 Vchar_db_stingy_mode is not NIL.
740 (Fload_char_attribute_table_map_function): Use
741 `get_char_id_table_0' instead of `get_char_id_table'.
742 (vars_of_chartab): Add new variable `char-db-stingy-mode'.
744 * chartab.h (get_char_id_table_0): New inline function.
745 (get_char_id_table): Use `get_char_id_table_0'.
747 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
749 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
750 and `COMPOSE_ADD_CHAR'.
751 (decode_coding_iso2022): Use `decode_flush_er_chars'.
753 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
755 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
756 instead of `DECODE_ADD_UCS_CHAR'.
757 (COMPOSE_ADD_CHAR): Likewise.
759 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
761 * text-coding.c (decode_flush_er_chars): New inline function.
762 (decode_add_er_char): New function.
763 (decode_coding_utf8): Use `decode_flush_er_chars' and
764 `decode_add_er_char'.
766 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
768 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
769 done before `decode_output_utf8_partial_char'.
771 * mule-charset.c (complex_vars_of_mule_charset): Specify
772 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
773 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
775 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
777 * mule-charset.c (decode_defined_char): New function; search
779 (decode_builtin_char): Don't search mother if
780 XCHARSET_MAX_CODE(charset) == 0.
781 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
782 == 0 even if code >= XCHARSET_MAX_CODE(charset).
783 (Fdecode_char): Use `decode_defined_char' instead of
784 `DECODE_DEFINED_CHAR'.
785 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
786 mother of `Vcharset_ucs_jis'.
788 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
789 instead of `DECODE_DEFINED_CHAR'.
791 * char-ucs.h (decode_defined_char): Renamed from
792 `DECODE_DEFINED_CHAR'; changed to normal function.
793 (DECODE_CHAR): Use `decode_defined_char' instead of
794 `DECODE_DEFINED_CHAR'.
796 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
798 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
800 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
802 * text-coding.c (Vcoded_charset_entity_reference_alist): New
804 (Quse_entity_reference): New variable.
808 (coding_system_description): Add description for
810 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
811 (allocate_coding_system): Initialize `ccs_priority_list' in
813 (Fmake_coding_system): Add description about
814 'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
816 (Fcoding_system_property): Accept `disable-composition' and
817 `use-entity-reference' in UTF-2000.
818 (struct decoding_stream): Add new member `er_counter' and `er_buf'
820 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
821 (decode_coding_utf8): Decode entity-reference if
822 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
823 (char_encode_utf8): Encode non-Unicode characters as
824 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
826 (syms_of_file_coding): Add new symbols `use-entity-reference',
828 (vars_of_file_coding): Add new variable
829 `coded-charset-entity-reference-alist'.
830 (complex_vars_of_file_coding): Declare `disable-composition' and
831 `use-entity-reference' to be coding-system-properties in UTF-2000.
833 * file-coding.h (struct Lisp_Coding_System): Add new member
834 `use_entity_reference' and `ccs_priority_list'.
835 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
836 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
837 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
839 2002-07-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
841 * chartab.c (save_uint8_byte_table): Don't clear the table.
842 (save_uint16_byte_table): Likewise.
843 (save_byte_table): Likewise.
844 (Fmount_char_attribute_table): New function.
845 (syms_of_chartab): Add new builtin function
846 `mount-char-attribute-table'.
848 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
850 * mule-charset.c (Fsave_charset_mapping_table): Open database as
852 (load_char_decoding_entry_maybe): Open database as read-only mode.
854 * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
855 open database as "w+" mode.
856 (load_char_attribute_maybe): Open database as read-only mode.
857 (Fload_char_attribute_table): Likewise.
859 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
861 * chartab.c (mark_char_table): Don't refer `ct->db_file'.
862 (char_table_description): Delete member `db_file'.
863 (Fmake_char_table): Don't refer `ct->db_file'.
864 (Fcopy_char_table): Likewise.
865 (Fsave_char_attribute_table): Likewise.
866 (Fclose_char_attribute_table): Likewise.
867 (Freset_char_attribute_table): Likewise.
868 (load_char_attribute_maybe): Likewise.
869 (Fload_char_attribute_table): Likewise.
871 * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
873 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
875 * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
876 (Fsave_char_attribute_table): Don't check `ct->db_file' if
878 (load_char_attribute_maybe): Likewise.
879 (Fload_char_attribute_table): Likewise.
881 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
883 * chartab.c (Fclose_char_attribute_table): Set Qnil on
884 `ct->db_file' unconditionally.
886 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
888 * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
890 (char_table_description): Add description for `db_file' and `db'
892 (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
894 (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
895 (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
896 (Fclose_char_attribute_table): New function.
897 (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
898 (load_char_attribute_maybe): Change interface; use `cit->db_file'
900 (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
901 (syms_of_chartab): Add new builtin function
902 `Fclose_char_attribute_table'.
904 2002-06-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
906 * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
908 (load_char_attribute_maybe): Change interface.
909 (get_char_id_table): Modify for `load_char_attribute_maybe'.
911 2002-06-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
913 * database.h: Add an EXFUN for `Fdatabase_live_p'.
915 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
917 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
918 instead of `DECODE_CHAR' for mother; don't use special code for
919 chinese-big5 to use code space of chinese-big5-1 and
921 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
922 `MAX_CHAR_BIG5_CDP' for chinese-big5.
924 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
925 (MAX_CHAR_BIG5_CDP): Revival.
927 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
929 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
930 the XLFD registry-encoding name of `chinese-big5'.
932 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
934 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
935 (Qchinese_big5_cdp): Deleted.
936 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
937 (complex_vars_of_mule_charset): Delete coded-charset
940 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
941 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
942 `CHARSET_ID_OFFSET - n' for private CCS.
943 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
944 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
945 of `MIN_LEADING_BYTE'.
946 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
947 `(CHARSET_ID_OFFSET - 97)'.
948 (MIN_CHAR_BIG5_CDP): Deleted.
949 (MAX_CHAR_BIG5_CDP): Deleted.
951 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
953 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
955 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
957 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
958 (vars_of_mule): Add new variable `utf-2000-version' [moved from
961 * chartab.c (Vutf_2000_version): Moved to mule.c.
962 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
964 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
966 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
967 when HAVE_CHISE_CLIENT is not defined.
969 * mule.c (vars_of_mule): Provide feature `chise' when
970 HAVE_CHISE_CLIENT is defined.
972 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
974 * config.h.in (UTF2000): Add comment.
975 (HAVE_CHISE_CLIENT): New macro.
977 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
979 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
981 (Fput_char_attribute): Likewise.
982 (char_attribute_system_db_file): Encode file-name of attribute.
983 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
986 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
988 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
989 (Fsave_charset_mapping_table): Use
990 `char_attribute_system_db_file'.
991 (load_char_decoding_entry_maybe): Likewise.
993 * chartab.h (Qsystem_char_id): New external variable.
994 (char_attribute_system_db_file): New prototype.
996 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
997 (char_attribute_system_db_file): New function.
998 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
999 (Freset_char_attribute_table): Likewise.
1000 (load_char_attribute_maybe): Likewise.
1001 (Fload_char_attribute_table): Likewise.
1002 (syms_of_chartab): Add new symbol `system-char-id'.
1004 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1006 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1007 `XCHARSET_GRAPHIC(ccs)'.
1009 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1011 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1013 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1015 * chartab.c (Q_ucs_variants): New variable.
1016 (syms_of_chartab): Add new symbol `->ucs-variants'.
1017 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1018 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1019 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1021 * mule-charset.c (load_char_decoding_entry_maybe): New function.
1023 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1024 `HAVE_DATABASE' is defined.
1025 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1026 `HAVE_DATABASE' is defined.
1028 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1030 * chartab.c (Fsave_char_attribute_table): Don't clear internal
1032 (Freset_char_attribute_table): New function.
1033 (syms_of_chartab): Add new builtin function
1034 `reset-char-attribute-table'.
1036 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1038 * chartab.c (load_char_attribute_maybe): Don't make directories.
1040 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1042 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1044 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1047 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1049 * mule-charset.c (Fsave_charset_mapping_table): Use
1050 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1052 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1053 instead of `XCHARSET_CHARS'.
1055 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1057 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1058 (XCHARSET_BYTE_SIZE): Likewise.
1060 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1062 (XCHARSET_BYTE_SIZE): Likewise.
1064 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1066 * chartab.c (Fput_char_attribute): Use exec-directory instead of
1067 data-directory to store database.
1068 (Fsave_char_attribute_table): Likewise.
1069 (load_char_attribute_maybe): Likewise.
1070 (Fload_char_attribute_table): Likewise.
1072 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1074 * mule-charset.c (Fsave_charset_mapping_table): New function.
1075 (syms_of_mule_charset): Add new builtin function
1076 `save-charset-mapping-table'.
1078 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1080 * char-ucs.h (decoding_table_check_elements): Delete prototype.
1081 (get_ccs_octet_table): New inline function.
1082 (put_ccs_octet_table): Likewise.
1083 (decoding_table_put_char): Use `get_ccs_octet_table' and
1084 `put_ccs_octet_table'.
1085 (decoding_table_remove_char): Use `decoding_table_put_char'.
1086 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1088 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1089 into encoding_table.
1090 (make_charset): Use Qunbound instead Qnil as initial value of
1093 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1095 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1096 element is Qunloaded.
1097 (map_over_uint16_byte_table): Likewise.
1098 (map_over_byte_table): Likewise.
1099 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1100 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1101 database support, load encoding-table of the specified
1102 coded-charset if it is not loaded yet.
1103 (save_uint8_byte_table): New function of UTF-2000 with external
1105 (save_uint16_byte_table): Likewise.
1106 (save_byte_table): Likewise.
1107 (Fput_char_attribute): Don't store value into external database
1108 even if the external database feature is supported in UTF-2000;
1109 set `attribute' as name of char-table if the external database
1110 feature is supported.
1111 (Fsave_char_attribute_table): New function in UTF-2000.
1112 (syms_of_chartab): Add new builtin function
1113 `save-char-attribute-table' in UTF-2000.
1115 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1117 * chartab.c (char_attribute_table_to_put): New variable in
1119 (Qput_char_table_map_function): Likewise.
1120 (value_to_put): Likewise.
1121 (Fput_char_table_map_function): New function in UTF-2000.
1122 (put_char_table): Use `Fmap_char_attribute' for
1123 CHARTAB_RANGE_CHARSET in UTF-2000.
1124 (Fput_char_attribute): Store symbol instead of string in
1125 `XCHAR_TABLE_NAME (table)'.
1126 (load_char_attribute_maybe): Likewise.
1127 (syms_of_chartab): Add new symbol/function
1128 `put-char-table-map-function'.
1130 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1132 * database.h: Add new EXFUN for `Fmap_database'.
1134 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1135 (syms_of_database): Likewise.
1137 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1139 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1140 (XCHAR_TABLE_UNLOADED): Likewise.
1142 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1143 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1144 HAVE_DATABASE is defined.
1145 (char_attribute_table_to_load): New variable of UTF-2000 with
1146 external database support.
1147 (Qload_char_attribute_table_map_function): Likewise.
1148 (Fload_char_attribute_table_map_function): New function of
1149 UTF-2000 with external database support.
1150 (Fload_char_attribute_table): New function of UTF-2000.
1151 (Fmap_char_attribute): Call Fload_char_attribute_table if
1152 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1153 (syms_of_chartab): Add new symbol and function
1154 `load-char-attribute-table-map-function' in UTF-2000 with external
1155 database support; add new function `load-char-attribute-table' in
1158 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1160 * chartab.h (load_char_attribute_maybe): New prototype for
1161 UTF-2000 with DATABASE support.
1162 (get_char_id_table): Use `load_char_attribute_maybe' if
1163 HAVE_DATABASE is defined.
1165 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1166 with DATABASE support.
1168 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1170 * chartab.c (Fput_char_attribute): Use S-expression as key of
1173 * chartab.h (get_char_id_table): Use S-expression as key of
1176 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1178 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1179 if an element is not loaded, load the corresponding attributes
1180 from an external database.
1181 (map_over_uint16_byte_table): Likewise.
1182 (map_over_byte_table): Likewise.
1183 (map_char_table): Modify for `map_over_uint8_byte_table',
1184 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1185 element is not loaded, load the corresponding attributes from an
1187 (Fput_char_attribute): Change initial values to Qunloaded.
1189 * chartab.h (get_char_id_table): If a character attribute is not
1190 loaded and the attribute value is not found in an external
1191 database, store Qunbound as the attribute value.
1193 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1195 * chartab.c (BT_UINT8_unloaded): New macro.
1196 (UINT8_VALUE_P): Accept Qunloaded.
1197 (UINT8_ENCODE): Likewise.
1198 (UINT8_DECODE): Likewise.
1199 (BT_UINT16_unloaded): New macro.
1200 (UINT16_VALUE_P): Accept Qunloaded.
1201 (UINT16_ENCODE): Likewise.
1202 (UINT16_DECODE): Likewise.
1203 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1205 (mark_char_table): Mark `ct->name' in UTF-2000.
1206 (char_table_description): Add `name' in UTF-2000.
1207 (Fmake_char_table): Initialize `ct->name'.
1208 (Fcopy_char_table): Copy `ct->name'.
1209 (Fput_char_attribute): Store value into an external database if
1210 HAVE_DATABASE is defined.
1212 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1214 (CHAR_TABLE_NAME): New macro in UTF-2000.
1215 (XCHAR_TABLE_NAME): New macro in UTF-2000.
1216 (get_char_id_table): Try to read an external database if Qunloaded
1217 is stored in a table.
1219 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1222 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1224 * database.h: Add EXFUN definitions for Fopen_database,
1225 Fput_database, Fget_database and Fclose_database.
1227 * data.c (Qunloaded): New variable in UTF-2000.
1229 * lisp.h (Qunloaded): New variable in UTF-2000.
1231 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1233 * mule-charset.c (put_char_ccs_code_point): Modify for
1234 `decoding_table_remove_char' and `decoding_table_put_char'.
1235 (remove_char_ccs): Modify for `decoding_table_remove_char'.
1237 * char-ucs.h (decoding_table_remove_char): Change arguments to
1238 hide decoding_table vector.
1239 (decoding_table_put_char): Likewise.
1241 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1243 * mule-charset.c (decoding_table_remove_char): Moved to
1245 (decoding_table_put_char): Likewise.
1247 * char-ucs.h (decoding_table_check_elements): New prototype [moved
1248 from mule-charset.c].
1249 (decoding_table_remove_char): New inline function [moved from
1251 (decoding_table_put_char): Likewise.
1253 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1255 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1258 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1260 * mule-charset.c (decode_builtin_char): Support mother charsets.
1262 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1264 * mule-charset.c (Q94x94x60): New variable.
1265 (charset_code_point): Support conversion `94x94x60'.
1266 (Fmake_charset): Likewise.
1267 (syms_of_mule_charset): Add new symbol `94x94x60'.
1269 * char-ucs.h (CONVERSION_94x94x60): New macro.
1271 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1273 * mule-charset.c (charset_code_point): Unify code about
1276 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1278 * mule-charset.c (charset_code_point): Merge code about builtin
1279 characters into code about mother charsets; don't use
1280 `range_charset_code_point'.
1281 (range_charset_code_point): Deleted.
1283 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1285 * mule-charset.c (Qcode_offset): New variable.
1286 (Fmake_charset): Use `XUINT' to get value of `min-code' and
1287 `max-code'; accept new property `code-offset'.
1288 (syms_of_mule_charset): Add new symbol `code-offset'.
1290 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1292 * mule-charset.c (range_charset_code_point): Fixed.
1294 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1296 * mule-charset.c (decode_builtin_char): Change semantics of
1297 code-offset of coded-charset.
1298 (charset_code_point): Likewise.
1299 (range_charset_code_point): Likewise.
1300 (complex_vars_of_mule_charset): Modify for the change.
1302 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1304 * mule-charset.c (Fencode_char): Reverse arguments.
1306 * mule-charset.c (charset_code_point): Fixed.
1308 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1310 * mule-charset.c (Vcharset_mojikyo): Deleted.
1311 (Vcharset_mojikyo_2022_1): Deleted.
1312 (Vcharset_mojikyo_pj_{1..21}): Deleted.
1313 (Qmin_code): New variable in UTF-2000.
1314 (Qmax_code): Likewise.
1315 (Qmother): Likewise.
1316 (Qconversion): Likewise.
1318 (Qmojikyo): Deleted.
1319 (Qmojikyo_2022_1): Deleted.
1320 (Qmojikyo_pj_{1..22}): Deleted.
1321 (mark_charset): Mark `cs->mother'.
1322 (charset_description): Add description for `mother'.
1323 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1324 new arguments `mother' and `conversion'; use
1325 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1326 (charset_code_point): Moved from char-ucs.h; support `mother'
1328 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1329 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1330 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1331 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1332 allow 2 as the value of `graphic' in UTF-2000; add new properties
1333 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1334 require `final' in UTF-2000; modify for `make_charset'.
1335 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1336 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1337 (Fcharset_property): Support `mother', `min-code' and `max-code'.
1338 (Fencode_char): New function.
1339 (syms_of_mule_charset): Add new builtin function `encode-char' in
1340 UTF-2000; add new symbols `min-code', `max-code', `mother',
1341 `conversion' and `94x60'; delete symbols `mojikyo',
1342 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1343 (complex_vars_of_mule_charset): Modify for `make_charset' change;
1344 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1345 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1347 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1348 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1350 * char-ucs.h (Vcharset_mojikyo): Deleted.
1351 (Vcharset_mojikyo_2022_1): Deleted.
1352 (LEADING_BYTE_MOJIKYO): Deleted.
1353 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1354 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1355 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1356 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1357 add new member `mother'; add new member `conversion'.
1358 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1359 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1360 (CHARSET_MOTHER): New macro.
1361 (CHARSET_CONVERSION): New macro.
1362 (CONVERSION_IDENTICAL): New macro.
1363 (CONVERSION_94x60): New macro.
1364 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1365 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1366 (XCHARSET_MOTHER): New macro.
1367 (XCHARSET_CONVERSION): New macro.
1368 (MIN_CHAR_MOJIKYO): Deleted.
1369 (MAX_CHAR_MOJIKYO): Deleted.
1370 (DECODE_MOJIKYO_2022): Deleted.
1371 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1372 (charset_code_point): Changed to non-inline function.
1373 (encode_char_1): Use `charset_code_point'.
1374 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1376 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1378 * lread.c (read_compiled_function): Fix prototype.
1379 (read_vector): Likewise.
1381 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383 * lrecord.h (struct lrecord_header): Delete `older'.
1384 (set_lheader_implementation): Delete code for `older'.
1385 (set_lheader_older_implementation): Deleted.
1386 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1387 (OLDER_RECORD_P): Deleted.
1388 (OLDER_RECORD_HEADER_P): Deleted.
1389 (alloc_older_lcrecord): Deleted.
1390 (alloc_older_lcrecord_type): Deleted.
1392 * alloc.c (all_older_lcrecords): Deleted.
1393 (alloc_older_lcrecord): Deleted.
1394 (disksave_object_finalization_1): Delete code for older objects.
1395 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1396 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1398 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1400 * mule-charset.c (decoding_table_put_char): Use `make_vector'
1401 instead of `make_older_vector'.
1402 (put_char_ccs_code_point): Likewise.
1403 (mark_charset): Mark `cs->decoding_table'.
1404 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1406 * lisp.h (make_older_vector): Deleted.
1407 (make_vector_newer): Deleted.
1409 * config.h.in (HAVE_GGC): Deleted.
1411 * alloc.c (make_older_vector): Deleted.
1412 (make_vector_newer_1): Deleted.
1413 (make_vector_newer): Deleted.
1415 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1417 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1418 (Qideograph_daikanwa_2): New variable.
1419 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1420 (complex_vars_of_mule_charset): Add new coded-charset
1421 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1422 `LEADING_BYTE_DAIKANWA'.
1424 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1425 (LEADING_BYTE_DAIKANWA_1): New macro.
1426 (LEADING_BYTE_DAIKANWA_2): New macro.
1427 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1429 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1431 * mule-charset.c (complex_vars_of_mule_charset): Change
1432 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1433 the second revised version.
1435 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1437 * mule-charset.c (Vcharset_ucs_smp): New variable.
1438 (Vcharset_ucs_sip): New variable.
1439 (Qucs_smp): New variable.
1440 (Qucs_sip): New variable.
1441 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1442 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1443 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1444 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1445 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1446 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1448 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1449 (LEADING_BYTE_UCS_SIP): New macro.
1450 (MIN_CHAR_SMP): New macro.
1451 (MAX_CHAR_SMP): New macro.
1452 (MIN_CHAR_SIP): New macro.
1453 (MAX_CHAR_SIP): New macro.
1455 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
1457 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1460 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1462 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1463 value; don't store value into `encoding_table' of `Lisp_Charset'.
1464 (mark_charset): `encoding_table' was deleted.
1465 (charset_description): Likewise.
1466 (make_charset): Likewise.
1467 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1468 `put_char_ccs_code_point'.
1470 * chartab.h (Fput_char_attribute): New EXFUN.
1472 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1473 is unified with normal symbol space.
1474 (Fget_char_attribute): Likewise.
1475 (Fput_char_attribute): Likewise; behavior of
1476 `put_char_ccs_code_point' is changed.
1478 * char-ucs.h: Include "elhash.h".
1479 (Vchar_attribute_hash_table): New external variable.
1480 (struct Lisp_Charset): Delete `encoding_table'.
1481 (CHARSET_ENCODING_TABLE): New implementation; refer
1482 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1485 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1487 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1490 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1492 * text-coding.c (char_encode_big5): Prefer charset-g1 than
1495 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1497 * chartab.c (uint8_byte_table_description): New constant.
1498 (uint8-byte-table): Use `uint8_byte_table_description'.
1499 (uint16_byte_table_description): New constant.
1500 (uint16-byte-table): Use `uint16_byte_table_description'.
1502 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1504 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1505 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1507 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1509 * mule-charset.c (Vcharset_ucs_ks): New variable.
1510 (Qucs_ks): New variable.
1511 (syms_of_mule_charset): Add new symbol `ucs-ks'.
1512 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1514 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1516 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1518 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1519 (Fdecode_char): Likewise.
1521 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1523 (Fdefine_char): Modify for Fdecode_char.
1524 (Ffind_char): Likewise.
1526 * mule-charset.c (Fdecode_char): Add new optional argument
1528 (Fdecode_builtin_char): Modify for `Fdecode_char'.
1530 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1532 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1533 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1534 (allocate_coding_system): Initialize initial-charsets of
1535 CODESYS_BIG5 in XEmacs UTF-2000.
1536 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1537 CODESYS_BIG5 in XEmacs UTF-2000.
1538 (decode_coding_big5): Use initial-charset-g0 and -g1 of
1539 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1541 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1543 (Qideograph_hanziku_{1 .. 12}): Likewise.
1544 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1546 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1547 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1548 `ideograph-hanziku-{1 .. 12}'.
1550 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1551 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1552 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1553 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1554 (DECODE_DEFINED_CHAR): New inline function.
1555 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1557 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1559 * mule-charset.c (Vcharset_china3_jef): Renamed from
1560 `Vcharset_japanese_jef_china3'.
1561 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1562 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1563 `{MIN|MAX}_CHAR_JEF_CHINA3'..
1564 (syms_of_mule_charset): Rename `china3-jef' from
1565 `japanese-jef-china3'.
1566 (complex_vars_of_mule_charset): Likewise; rename
1567 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1569 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1570 `LEADING_BYTE_JEF_CHINA3'.
1571 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1572 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1574 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1576 * mule-charset.c (encode_builtin_char_1): Comment out special code
1577 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1579 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1580 (MAX_CHAR_MOJIKYO_0): Comment out.
1581 (MIN_CHAR_CBETA): Changed to 0x00E20000.
1582 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1583 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1584 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1586 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1588 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1589 (Qideograph_cbeta): New variable.
1590 (encode_builtin_char_1): Comment out special code for
1591 coded-charset `mojikyo' and `japanese-jef-china3'.
1592 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1593 (complex_vars_of_mule_charset): Add new coded-charset
1596 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1597 (MIN_CHAR_CBETA): New macro.
1598 (MAX_CHAR_CBETA): New macro.
1600 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1602 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1603 (LEADING_BYTE_JEF_CHINA3): New macro.
1604 (MIN_CHAR_JEF_CHINA3): New macro.
1605 (MAX_CHAR_JEF_CHINA3): Likewise.
1606 (DECODE_CHAR): Fixed.
1608 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1610 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1611 (Qjapanese_jef_china3): New variable.
1612 (encode_builtin_char_1): Support `japanese-jef-china3'.
1613 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1614 (complex_vars_of_mule_charset): Add new coded-charset
1615 `japanese-jef-china3'.
1617 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1619 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1620 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1621 94^4, 96^3, 96^4, 128^n and 256^n set.
1622 (put_char_table): Use `XCHARSET_CELL_RANGE'.
1623 (map_char_table): Likewise.
1625 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1627 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1630 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1632 * chartab.h (get_char_id_table): New inline function.
1634 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1637 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1639 * chartab.h (decode_char_table_range): New prototype in XEmacs
1641 (put_char_id_table): New inline function in XEmacs UTF-2000.
1643 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1645 (decode_char_table_range): Delete static declaration in XEmacs
1648 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1650 * chartab.c (put_char_id_table): Use `put_char_table'.
1652 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1654 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1655 (map_over_uint16_byte_table): Likewise.
1656 (map_over_byte_table): Likewise.
1657 (map_char_table): Modify for `map_over_uint8_byte_table',
1658 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1661 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1663 * chartab.c (struct map_char_table_for_charset_arg): New
1665 (map_char_table_for_charset_fun): New function.
1666 (map_char_table): Use `map_char_table' for encoding_table of
1669 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1671 * chartab.c (map_char_table): Check a character is found in
1672 range->charset instead of non default value is defined in
1673 char-table when range is CHARTAB_RANGE_ROW.
1675 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1677 * chartab.c (map_char_id_table): Deleted.
1678 (Fmap_char_attribute): Use `map_char_table' instead of
1679 `map_char_id_table'.
1681 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1683 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1685 (update_syntax_table): Deleted in XEmacs UTF-2000.
1687 * syntax.c (find_defun_start): Use `syntax_table' instead of
1688 `mirror_syntax_table' in XEmacs UTF-2000.
1689 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1691 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1693 (Fmatching_paren): Likewise.
1694 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1696 (find_start_of_comment): Likewise.
1697 (find_end_of_comment): Likewise.
1698 (Fforward_comment): Likewise.
1699 (scan_lists): Likewise.
1700 (char_quoted): Likewise.
1701 (Fbackward_prefix_chars): Likewise.
1702 (scan_sexps_forward): Likewise.
1703 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1704 (update_syntax_table): Likewise.
1706 * search.c (skip_chars): Use `syntax_table' instead of
1707 `mirror_syntax_table' in XEmacs UTF-2000.
1708 (wordify): Likewise.
1709 (Freplace_match): Likewise.
1711 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1712 `mirror_syntax_table' in XEmacs UTF-2000.
1713 (WORDCHAR_P_UNSAFE): Likewise.
1714 (re_match_2_internal): Likewise.
1716 * font-lock.c (find_context): Use `buf->syntax_table' instead of
1717 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1719 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1720 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1722 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1725 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1727 (print_char_table): Print `default_value' in XEmacs UTF-2000.
1728 (char_table_description): Delete `mirror_table' in XEmacs
1730 (fill_char_table): Don't call `update_syntax_table' in XEmacs
1732 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1733 (Fcopy_char_table): Likewise.
1734 (put_char_table): Don't call `update_syntax_table' in XEmacs
1737 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1738 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1739 (casify_region_internal): Likewise.
1741 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1743 * buffer.c (common_init_complex_vars_of_buffer): Don't use
1744 `mirror_syntax_table' in XEmacs UTF-2000.
1746 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1747 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1748 (Fexpand_abbrev): Likewise.
1750 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1752 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1754 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1756 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1757 (map_over_uint16_byte_table): Likewise.
1758 (map_over_byte_table): Likewise.
1759 (get_char_id_table): Refer `cit->default_value'.
1760 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1761 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1762 of character-id ranges.
1763 (mark_char_table): Mark `ct->default_value'.
1764 (char_table_description): Add `default_value'.
1765 (fill_char_table): Use `default_value'.
1766 (decode_char_table_range): Decode `nil' as
1767 `CHARTAB_RANGE_DEFAULT'.
1768 (get_char_id_table): Refer `cit->default_value'.
1769 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1770 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1771 temporary hack; check value of char-table is bound or not.
1772 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1774 * chartab.h (struct Lisp_Char_Table): Add new member
1775 `default_value' in XEmacs UTF-2000.
1776 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1777 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1780 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1782 * chartab.h (Lisp_Char_ID_Table): Deleted.
1784 * chartab.c (char_table_description): Fix typo.
1785 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1786 `Lisp_Char_ID_Table'.
1788 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1790 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1793 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1796 * chartab.h (XCHAR_ID_TABLE): Deleted.
1797 (XSETCHAR_ID_TABLE): Deleted.
1798 (CHAR_ID_TABLE_P): Deleted.
1800 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1802 (Fget_composite_char): Likewise.
1803 (put_char_table): Likewise.
1804 (add_char_attribute_alist_mapper): Fixed.
1805 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1807 (Fget_char_attribute): Likewise.
1808 (Fget_char_attribute): Likewise.
1809 (Fmap_char_attribute): Likewise.
1811 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1813 (encode_char_1): Likewise.
1815 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1817 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1820 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1821 instead of `XCHAR_ID_TABLE'.
1822 (remove_char_ccs): Likewise.
1824 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1826 (Fget_composite_char): Likewise.
1827 (Fchar_variants): Likewise.
1828 (put_char_table): Likewise.
1829 (add_char_attribute_alist_mapper): Likewise.
1830 (Fchar_attribute_alist): Likewise.
1831 (Fget_char_attribute): Likewise.
1832 (Fput_char_attribute): Likewise.
1833 (Fmap_char_attribute): Likewise.
1834 (Fmap_char_attribute): Likewise.
1836 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1838 (encode_char_1): Likewise.
1840 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1842 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1843 `Lisp_Char_ID_Table'.
1844 (mark_char_id_table): Deleted.
1845 (print_char_id_table): Likewise.
1846 (char_id_table_equal): Likewise.
1847 (char_id_table_hash): Likewise.
1848 (char_id_table_description): Likewise.
1849 (char_id_table): Likewise.
1850 (make_char_id_table): Use `Fmake_char_table' and
1852 (get_char_id_table): Use `Lisp_Char_Table' instead of
1853 `Lisp_Char_ID_Table'.
1854 (put_char_id_table): Likewise.
1855 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1857 (Fremove_char_attribute): Likewise.
1858 (syms_of_chartab): Don't define type `char-id-table'.
1860 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1861 (char_id_table): Likewise.
1862 (GC_CHAR_ID_TABLE_P): Likewise.
1863 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1864 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1865 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1866 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1867 (get_char_id_table): Use `Lisp_Char_Table' instead of
1868 `Lisp_Char_ID_Table'.
1869 (put_char_id_table_0): Likewise.
1870 (put_char_id_table): Likewise.
1872 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1874 * chartab.h: Lisp_Byte_Table related codes are moved from
1877 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1879 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1881 * chartab.h: Don't include "chartab.h".
1882 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1883 (Lisp_Char_ID_Table): Likewise.
1884 (char_id_table): Likewise.
1885 (XCHAR_ID_TABLE): Likewise.
1886 (XSETCHAR_ID_TABLE): Likewise.
1887 (CHAR_ID_TABLE_P): Likewise.
1888 (GC_CHAR_ID_TABLE_P): Likewise.
1889 (get_char_id_table): Likewise.
1891 * char-ucs.h: Include "chartab.h".
1892 (struct Lisp_Char_ID_Table): Moved to chartab.h.
1893 (Lisp_Char_ID_Table): Likewise.
1894 (char_id_table): Likewise.
1895 (XCHAR_ID_TABLE): Likewise.
1896 (XSETCHAR_ID_TABLE): Likewise.
1897 (CHAR_ID_TABLE_P): Likewise.
1898 (GC_CHAR_ID_TABLE_P): Likewise.
1899 (get_char_id_table): Likewise.
1901 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1903 * chartab.c (copy_uint8_byte_table): New function.
1904 (copy_uint16_byte_table): New function.
1905 (copy_byte_table): New function.
1906 (map_over_uint8_byte_table): Modify to avoid huge numbers of
1908 (map_over_uint16_byte_table): Likewise.
1909 (map_over_byte_table): Likewise.
1910 (get_byte_table): Move prototype to chartab.h.
1911 (put_byte_table): Likewise.
1912 (put_char_id_table_0): Moved to chartab.h.
1913 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1914 (char_table_entry_equal): Likewise.
1915 (char_table_entry_hash): Likewise.
1916 (char_table_entry_description): Likewise.
1917 (char_table_entry): Likewise.
1918 (make_char_table_entry): Likewise.
1919 (copy_char_table_entry): Likewise.
1920 (get_non_ascii_char_table_value): Likewise.
1921 (map_over_charset_ascii): Likewise.
1922 (map_over_charset_control_1): Likewise.
1923 (map_over_charset_row): Likewise.
1924 (map_over_other_charset): Likewise.
1925 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1926 (print_char_table): Likewise.
1927 (char_table_equal): Likewise.
1928 (char_table_hash): Likewise.
1929 (char_table_description): Likewise.
1930 (fill_char_table): Likewise.
1931 (Fcopy_char_table): Likewise.
1932 (get_char_table): Likewise.
1933 (Fget_range_char_table): Likewise.
1934 (put_char_table): Likewise.
1935 (map_char_table): Likewise.
1936 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1939 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1941 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1942 `Vauto_fill_chars' in XEmacs UTF-2000.
1944 * chartab.h (get_byte_table): New prototype [moved from
1946 (put_byte_table): Likewise [moved from chartab.c].
1947 (put_char_id_table_0): New inline function [moved from chartab.c].
1948 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1949 (Lisp_Char_Table_Entry): Likewise.
1950 (char_table_entry): Likewise.
1951 (XCHAR_TABLE_ENTRY): Likewise.
1952 (XSETCHAR_TABLE_ENTRY): Likewise.
1953 (CHAR_TABLE_ENTRYP): Likewise.
1954 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1955 (NUM_ASCII_CHARS): Likewise.
1956 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1957 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1959 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1961 * chartab.c (get_char_id_table): Change interface.
1962 (put_char_id_table_0): New function.
1963 (put_char_id_table): Change interface; new implementation.
1964 (Fget_composite_char): Modify for interface change of
1965 `get_char_id_table'.
1966 (Fchar_variants): Likewise.
1967 (add_char_attribute_alist_mapper): Likewise.
1968 (Fchar_attribute_alist): Likewise.
1969 (Fget_char_attribute): Likewise.
1970 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1971 as same as character as the first argument like `put-char-table';
1972 modify for interface change of `put_char_id_table'.
1973 (Fremove_char_attribute): Modify for interface change of
1974 `put_char_id_table'.
1976 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1978 * text-coding.c: Sync up with XEmacs 21.2.41.
1979 (COMPOSE_ADD_CHAR): Modify for interface change of
1980 `get_char_id_table'.
1982 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1983 change of `put_char_id_table'.
1984 (remove_char_ccs): Likewise.
1986 * chartab.h (put_char_id_table): Change interface.
1988 * char-ucs.h (get_char_id_table): Change interface.
1989 (charset_code_point): Modify for interface change of
1990 `get_char_id_table'.
1991 (encode_char_1): Likewise.
1993 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1995 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1997 (map_over_uint16_byte_table): Likewise.
1998 (map_over_byte_table): Likewise.
1999 (map_char_id_table): Add new argument `range' like
2001 (Fmap_char_attribute): Add new argument `range' like
2004 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2006 * chartab.c (map_over_uint8_byte_table): Change interface of
2007 mapping function to use struct chartab_range instead of Emchar.
2008 (map_over_uint16_byte_table): Likewise.
2009 (map_over_byte_table): Likewise.
2010 (map_char_id_table): Likewise.
2011 (struct slow_map_char_id_table_arg): Deleted.
2012 (slow_map_char_id_table_fun): Deleted.
2013 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2014 function `slow_map_char_table_fun' instead of struct
2015 `slow_map_char_id_table_arg' and function
2016 `slow_map_char_id_table_fun'.
2018 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2020 * mule-charset.c: Move char-it-table related codes to chartab.c.
2021 (Vutf_2000_version): Moved to chartab.c.
2022 (Fdefine_char): Likewise.
2023 (Ffind_char): Likewise.
2024 (syms_of_mule_charset): Move types `uint8-byte-table',
2025 `uint16-byte-table', `byte-table' and `char-id-table' to
2026 chartab.c; move functions `char_attribute_list,
2027 `find_char_attribute_table, `char_attribute_alist,
2028 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2029 `map_char_attribute, `define_char, `find_char, `char_variants and
2030 `get_composite_char to chartab.c; move symbols `=>ucs',
2031 `->decomposition', `compat', `isolated', `initial', `medial',
2032 `final', `vertical', `noBreak', `fraction', `super', `sub',
2033 `circle', `square', `wide', `narrow', `small' and `font' to
2035 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2036 setting codes for `Vcharacter_composition_table' and
2037 `Vcharacter_variant_table' to chartab.c.
2038 (complex_vars_of_mule_charset): Move setting code for
2039 `Vchar_attribute_hash_table' to chartab.c.
2041 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2042 (make_char_id_table): New prototype.
2043 (put_char_id_table): Likewise.
2044 (Fget_char_attribute): Likewise.
2046 * chartab.c: Move char-id-table related code from mule-charset.c.
2047 (Vutf_2000_version): Moved from mule-charset.c.
2049 * char-ucs.h (Qucs): New external variable.
2050 (put_char_ccs_code_point): New prototype.
2051 (remove_char_ccs): Likewise.
2053 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
2055 * mule-charset.c (Vcharset_ucs_jis): New variable.
2056 (Qucs_jis): Likewise.
2057 (syms_of_mule_charset): Add new symbol `ucs-jis'.
2058 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2060 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2062 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2064 * mule-charset.c (map_over_uint8_byte_table): New function.
2065 (map_over_uint16_byte_table): Likewise.
2066 (map_over_byte_table): Likewise.
2067 (map_char_id_table): Likewise.
2068 (slow_map_char_id_table_fun): Likewise.
2069 (Fmap_char_attribute): Likewise.
2070 (syms_of_mule_charset): Add new function `map-char-attribute'.
2072 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2074 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2075 (syms_of_mule_charset): Add new function `find-char'.
2077 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2079 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2081 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2082 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2084 (complex_vars_of_mule_charset): Add new coded-charset
2085 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2086 `ideograph-gt-pj-*'.
2088 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2090 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2092 * mule-charset.c (encode_builtin_char_1): Purge codes about
2093 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2094 {MIN|MAX}_CHAR_HEBREW.
2095 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2096 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2098 * char-ucs.h (MIN_CHAR_GREEK): Purged.
2099 (MAX_CHAR_GREEK): Purged.
2100 (MIN_CHAR_CYRILLIC): Purged.
2101 (MAX_CHAR_CYRILLIC): Purged.
2102 (MIN_CHAR_HEBREW): Commented out.
2103 (MAX_CHAR_HEBREW): Likewise.
2105 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2107 * mule-charset.c (Qto_ucs): New variable.
2108 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2109 (Fdefine_char): Likewise.
2110 (syms_of_mule_charset): Add new symbol `=>ucs'.
2112 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2114 * mule-charset.c (Fdecode_char): Fixed.
2116 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2119 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2122 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2124 * mule-charset.c (Vcharset_ucs_big5): New variable.
2125 (Qucs_big5): Likewise.
2126 (syms_of_mule_charset): Add new symbol `ucs-big5'.
2127 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2129 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2131 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2133 * mule-charset.c (decode_builtin_char): Check Big5 code range
2134 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2136 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2138 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2139 (Qchinese_gb12345): Likewise.
2140 (Fdecode_builtin_char): Fixed.
2141 (syms_of_mule_charset): Add `chinese-gb12345'.
2142 (complex_vars_of_mule_charset): Add coded-charset
2145 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2146 (LEADING_BYTE_CHINESE_GB12345): New macro.
2148 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2150 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2151 and `latin-viscii-upper' for `latin-viscii'.
2153 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2155 * mule-charset.c (Fdecode_builtin_char): Comment out
2156 regularization code for ISO-IR GR representation.
2158 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2160 * mule-charset.c (decode_builtin_char): New function; renamed from
2161 `make_builtin_char'; return -1 instead of signal.
2162 (Fdecode_builtin_char): Use `decode_builtin_char'.
2164 * char-ucs.h (decode_builtin_char): New prototype; renamed from
2165 `make_builtin_char'.
2166 (DECODE_CHAR): Use `decode_builtin_char' instead of
2167 `make_builtin_char'; use mapping table of `chinese-big5' for
2168 `chinese-big5-{1,2}'.
2170 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2172 * text-coding.c (char_encode_big5): New function.
2173 (char_finish_big5): Likewise.
2174 (reset_encoding_stream): Use `char_encode_big5' and
2175 `char_finish_big5' for CODESYS_BIG5.
2176 (mule_encode): Don't use `encode_coding_big5'.
2177 (encode_coding_big5): Deleted.
2179 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2181 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2182 0x81- in XEmacs UTF-2000.
2183 (detect_coding_big5): Likewise.
2185 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2187 * mule-charset.c (Fdefine_char): Don't use a CCS property to
2188 generate character-id if the CCS property does not have
2189 corresponding predefined character.
2190 (make_builtin_char): Return -1 if corresponding predefined
2191 character is not found.
2192 (Fdecode_char): Return nil if corresponding character is not
2194 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2195 don't map to builtin ucs space.
2197 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2199 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2200 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2202 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2204 * mule-charset.c (Vcharset_ideograph_gt): New variable.
2205 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2206 (Qideograph_gt): Likewise.
2207 (Qideograph_gt_pj_{1..11}): Likewise.
2208 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2209 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2210 `ideograph-gt-pj-11'.
2211 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2212 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2213 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2215 * char-ucs.h (LEADING_BYTE_GT): New macro.
2216 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2217 (MIN_CHAR_GT): Likewise.
2218 (MAX_CHAR_GT): Likewise.
2220 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2222 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2223 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2225 * doprnt.c (unsigned_int_converters): Add `c'.
2226 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2228 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2229 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2231 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2232 (MAX_CHAR_MOJIKYO_0): New macro.
2233 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2235 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2237 * mule-charset.c (Fdefine_char): Delete cemented out code.
2238 (encode_builtin_char_1): Modify for new allocation of builtin
2241 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2243 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2245 * mule-charset.c (Vcharset_ucs_cns): New variable.
2246 (Qucs_cns): New variable.
2247 (syms_of_mule_charset): Add new symbol `ucs-cns'.
2248 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2250 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2252 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2254 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
2256 * search.c (search_buffer): Make `charset_base_code' as
2257 character-id >> 6 to eliminate the corresponding last byte in
2258 UTF-8 representation [I'm not sure it is right thing].
2259 (boyer_moore): Likewise.
2261 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
2263 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2264 representation in MULE.
2266 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2268 * text-coding.c (Fmake_coding_system): Use
2269 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2270 `EXTERNAL_PROPERTY_LIST_LOOP'.
2272 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2274 * text-coding.c (decode_output_utf8_partial_char): New function.
2275 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2277 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2279 * text-coding.c (decode_coding_utf8): Output original byte
2280 sequence if it is broken; change order of conditions.
2282 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2285 * mb-multibyte.h (BYTE_ASCII_P):
2286 Use bit ops for char-signedness safety.
2287 (BYTE_C0_P): Use bit ops for char-signedness safety.
2288 (BYTE_C1_P): Use bit ops for char-signedness safety.
2290 * character.h: (XCHAR_OR_CHAR_INT):
2291 Always use inline function.
2292 Remove redundant type checking assert() - XINT will abort quite
2295 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2297 * text-coding.c: (Fencode_shift_jis_char):
2298 (Fencode_big5_char):
2299 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
2300 Replace 0 with '\0' when working with bytes.
2301 Replace initial "(" with "\(" in docstrings.
2303 (Fmake_coding_system):
2304 When type is ccl and value is vector, register it with a proper
2305 symbol. And checks whether the given ccl program is valid.
2306 (mule_decode): When calling ccl_driver, if src indicates
2307 NULL pointer, set an empty string instead.
2308 (mule_encode): Likewise.
2311 (detect_coding_sjis):
2312 (decode_coding_sjis):
2313 (detect_coding_big5):
2314 (decode_coding_big5):
2315 (detect_coding_ucs4):
2316 (decode_coding_ucs4):
2317 (detect_coding_utf8):
2318 (decode_coding_utf8):
2319 (detect_coding_iso2022):
2320 (decode_coding_iso2022):
2321 (decode_coding_no_conversion):
2323 Make all detecting and decoding functions take an Extbyte * arg.
2324 (text_encode_generic):
2325 (encode_coding_big5):
2326 (encode_coding_no_conversion):
2328 Make all encoding functions take a Bufbyte * arg.
2329 Use size_t instead of unsigned int for memory sizes.
2330 Only cast to unsigned char whenever dereferencing Extbyte *.
2332 (struct lrecord_description fcd_description_1): Use countof.
2333 (complex_vars_of_file_coding):
2334 Use countof instead of sizeof.
2335 Use CHECK_NATNUM instead of CHECK_INT.
2337 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2339 * mule-charset.c (Fget_char_attribute): Add new optional argument
2341 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2342 (remove_char_ccs): Likewise.
2344 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2346 * text-coding.c (char_encode_shift_jis): New implementation in
2348 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2351 * mule-charset.c (Vcharset_chinese_big5): New variable in
2353 (Qchinese_big5): New variable in UTF-2000.
2354 (BIG5_SAME_ROW): New macro in UTF-2000.
2355 (make_builtin_char): Use builtin characters of
2356 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2357 characters of `Vcharset_chinese_big5'.
2358 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2359 (complex_vars_of_mule_charset): Add new coded-charset
2360 `chinese-big5' in UTF-2000.
2362 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2363 (Vcharset_chinese_big5): New external variable declaration.
2364 (Vcharset_japanese_jisx0208_1990): Likewise.
2366 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2368 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2370 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2372 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2374 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2375 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2376 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2379 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2381 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2383 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2385 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2388 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2390 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2391 for `CHARSET_BY_ATTRIBUTES'.
2392 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2393 `CHARSET_BY_ATTRIBUTES'.
2395 * text-coding.c (struct decoding_stream): Rename member `CH' to
2397 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2398 (decode_coding_sjis): Likewise.
2399 (decode_coding_big5): Likewise.
2400 (decode_coding_ucs4): Likewise.
2401 (decode_coding_utf8): Likewise.
2402 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2403 `CHARSET_BY_ATTRIBUTES'.
2404 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2405 `str->counter'; decode 3, 4 bytes sets.
2406 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2408 (decode_coding_no_conversion): Use `str->cpos' instead of
2411 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2412 (Qmojikyo_2022_1): New variable.
2413 (make_charset): Don't use `CHARSET_TYPE_*'.
2414 (range_charset_code_point): Support coded-charset
2416 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2417 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2418 `CHARSET_BY_ATTRIBUTES'.
2419 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2420 `CHARSET_BY_ATTRIBUTES'.
2421 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2422 (complex_vars_of_mule_charset): Add new coded-charset
2425 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2426 interface; changed to inline function.
2428 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2429 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2430 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2431 (CHARSET_TYPE_94): Deleted.
2432 (CHARSET_TYPE_94X94): Deleted.
2433 (CHARSET_TYPE_96): Deleted.
2434 (CHARSET_TYPE_96X96): Deleted.
2435 (CHARSET_TYPE_128): Deleted.
2436 (CHARSET_TYPE_128X128): Deleted.
2437 (CHARSET_TYPE_256): Deleted.
2438 (CHARSET_TYPE_256X256): Deleted.
2439 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2441 (DECODE_MOJIKYO_2022): New inline function.
2442 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2443 `Vcharset_mojikyo_2022_1'.
2445 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2447 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2449 (put_byte_table): Likewise.
2450 (char_id_table_equal): Use `get_byte_table' [new implementation].
2452 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2454 * mule-charset.c: Include <limits.h> in UTF-2000.
2455 (BT_UINT8_MIN): New macro in UTF-2000.
2456 (BT_UINT8_MAX): New macro in UTF-2000.
2457 (BT_UINT8_t): New macro in UTF-2000.
2458 (BT_UINT8_nil): New macro in UTF-2000.
2459 (BT_UINT8_unbound): New macro in UTF-2000.
2460 (INT_UINT8_P): New inline function in UTF-2000.
2461 (UINT8_VALUE_P): New inline function in UTF-2000.
2462 (UINT8_ENCODE): New inline function in UTF-2000.
2463 (UINT8_DECODE): New inline function in UTF-2000.
2464 (mark_uint8_byte_table): New function in UTF-2000.
2465 (print_uint8_byte_table): New function in UTF-2000.
2466 (uint8_byte_table_equal): New function in UTF-2000.
2467 (uint8_byte_table_hash): New function in UTF-2000.
2468 (make_uint8_byte_table): New function in UTF-2000.
2469 (uint8_byte_table_same_value_p): New function in UTF-2000.
2470 (BT_UINT16_MIN): New macro in UTF-2000.
2471 (BT_UINT16_MAX): New macro in UTF-2000.
2472 (BT_UINT16_t): New macro in UTF-2000.
2473 (BT_UINT16_nil): New macro in UTF-2000.
2474 (BT_UINT16_unbound): New macro in UTF-2000.
2475 (INT_UINT16_P): New inline function in UTF-2000.
2476 (UINT16_VALUE_P): New inline function in UTF-2000.
2477 (UINT16_ENCODE): New inline function in UTF-2000.
2478 (UINT16_DECODE): New inline function in UTF-2000.
2479 (UINT8_TO_UINT16): New inline function in UTF-2000.
2480 (mark_uint16_byte_table): New function in UTF-2000.
2481 (print_uint16_byte_table): New function in UTF-2000.
2482 (uint16_byte_table_equal): New function in UTF-2000.
2483 (uint16_byte_table_hash): New function in UTF-2000.
2484 (make_uint16_byte_table): New function in UTF-2000.
2485 (uint16_byte_table_same_value_p): New function in UTF-2000.
2486 (print_byte_table): New function in UTF-2000.
2487 (byte-table): Use `print_byte_table' as printer.
2488 (make_byte_table): Delete second argument `older'.
2489 (byte_table_same_value_p): New function in UTF-2000.
2490 (copy_byte_table): Deleted.
2491 (get_byte_table): New function in UTF-2000.
2492 (put_byte_table): New function in UTF-2000.
2493 (print_char_id_table): New function in UTF-2000.
2494 (char-id-table): Use `print_char_id_table' as printer.
2495 (make_char_id_table): Delete second argument `older'.
2496 (get_char_id_table): Use `get_byte_table [new implementation].
2497 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2499 (Ffind_char_attribute_table): New function in UTF-2000.
2500 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2501 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2502 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2503 (syms_of_mule_charset): Add new function
2504 `find-char-attribute-table' in UTF-2000.
2506 * lrecord.h (enum lrecord_type): Add
2507 `lrecord_type_uint16_byte_table' and
2508 `lrecord_type_uint8_byte_table'.
2510 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2511 (Lisp_Uint8_Byte_Table): New type.
2512 (XUINT8_BYTE_TABLE): New macro.
2513 (XSETUINT8_BYTE_TABLE): New macro.
2514 (UINT8_BYTE_TABLE_P): New macro.
2515 (GC_UINT8_BYTE_TABLE_P): New macro.
2516 (struct Lisp_Uint16_Byte_Table): New structure.
2517 (Lisp_Uint16_Byte_Table): New type.
2518 (XUINT16_BYTE_TABLE): New macro.
2519 (XSETUINT16_BYTE_TABLE): New macro.
2520 (UINT16_BYTE_TABLE_P): New macro.
2521 (GC_UINT16_BYTE_TABLE_P): New macro.
2523 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2525 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2526 (Vcharacter_ideographic_strokes_table): Deleted.
2527 (Vcharacter_total_strokes_table): Deleted.
2528 (Vcharacter_morohashi_daikanwa_table): Deleted.
2529 (Vcharacter_decomposition_table): Deleted.
2530 (Qname): Deleted because it is duplicated.
2531 (Qideographic_radical): Deleted.
2532 (Qideographic_strokes): Deleted.
2533 (Qtotal_strokes): Deleted.
2534 (Qmorohashi_daikanwa): Deleted.
2535 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2536 `ideographic-radical', `ideographic-strokes', `total-strokes',
2537 `morohashi-daikanwa' and `->decomposition'.
2538 (Fget_char_attribute): Likewise.
2539 (Fput_char_attribute): Likewise; use `make-vector' instead of
2540 `make_older_vector' for `->decomposition' value.
2541 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2542 `ideograph-daikanwa'.
2543 (syms_of_mule_charset): Delete builtin symbols `name',
2544 `ideographic-radical', `ideographic-strokes', `total-strokes' and
2545 `morohashi-daikanwa'.
2546 (vars_of_mule_charset): Don't setup
2547 `Vcharacter_ideographic_radical_table',
2548 `Vcharacter_ideographic_strokes_table',
2549 `Vcharacter_total_strokes_table',
2550 `Vcharacter_morohashi_daikanwa_table' and
2551 `Vcharacter_decomposition_table'.
2553 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2555 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2556 `make_older_vector', `make_vector_newer_1' and
2557 `make_vector_newer'.
2559 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2560 `make_older_vector' and `make_vector_newer'.
2562 * config.h.in (HAVE_GGC): New macro.
2564 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2566 * mule-charset.c (struct char_attribute_list_closure): New
2567 structure in UTF-2000.
2568 (add_char_attribute_to_list_mapper): New function in UTF-2000.
2569 (Fchar_attribute_list): Likewise.
2570 (Fset_charset_mapping_table): Use `make_vector_newer'.
2571 (Fdecode_builtin_char): New function in UTF-2000.
2572 (syms_of_mule_charset): Add new function `char-attribute-list' and
2573 `decode-builtin-char' in UTF-2000.
2575 * lisp.h (make_vector_newer): New prototype.
2577 * alloc.c (make_vector_newer_1): New function.
2578 (make_vector_newer): New function.
2580 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2582 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2585 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2587 * mule-charset.c (Vchar_attribute_hash_table): New variable.
2588 (Vcharacter_attribute_table): Deleted.
2589 (Vcharacter_name_table): Deleted.
2590 (put_char_attribute): Deleted.
2591 (remove_char_attribute): Deleted.
2592 (struct char_attribute_alist_closure): New structure.
2593 (add_char_attribute_alist_mapper): New function.
2594 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2595 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2596 (Fget_char_attribute): Likewise.
2597 (Fput_char_attribute): Likewise.
2598 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2599 of `remove_char_attribute'.
2600 (Fdefine_char): Return character.
2601 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2602 and `Vcharacter_name_table'.
2603 (complex_vars_of_mule_charset): Likewise
2604 `Vchar_attribute_hash_table'.
2606 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2608 * character.h (CHARC_CHARSET): New macro.
2609 (CHARC_CHARSET_ID): New macro.
2610 (CHARC_CODE_POINT): New macro.
2611 (CHARC_COLUMNS): New macro.
2612 (CHARC_TO_CHAR): New inline function.
2613 (CHARC_EQ): New inline function.
2614 (CHARC_ASCII_EQ): New inline function.
2615 (CHARC_IS_SPACE): New inline function.
2616 (ASCII_TO_CHARC): New inline function.
2618 * char-ucs.h (encode_char_2): Deleted.
2619 (ENCODE_CHAR): Use `encode_char_1' again.
2620 (breakup_char_1): Likewise.
2621 (CHAR_TO_CHARC): New inline function.
2623 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2625 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2627 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2628 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2629 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2630 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2631 (create_string_text_block): Use `CHARC_ASCII_EQ' and
2633 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2635 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2637 (x_output_display_block): Use `CHARC_CHARSET' and
2640 * redisplay-tty.c (tty_output_display_block): Use
2642 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2644 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2646 * insdel.c (find_charsets_in_charc_string): Use
2648 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2649 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2650 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2651 (convert_charc_string_into_malloced_string): Likewise.
2653 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2655 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2656 instead of <Emchar_dynarr *> for buf; use
2657 `convert_bufbyte_string_into_charc_dynarr' instead of
2658 `convert_bufbyte_string_into_emchar_dynarr'; use
2659 `find_charsets_in_charc_string' instead of
2660 `find_charsets_in_emchar_string'.
2663 - Include "character.h".
2664 (struct rune): New member `cglyph'; delete member `chr'.
2666 * redisplay.c (redisplay_text_width_charc_string): New function;
2667 delete `redisplay_text_width_emchar_string'.
2668 (rtw_charc_dynarr): New variable; renamed from
2669 `rtw_emchar_dynarr'.
2670 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2671 `rtw_emchar_dynarr'; use
2672 `convert_bufbyte_string_into_charc_dynarr' instead of
2673 `convert_bufbyte_string_into_emchar_dynarr'; use
2674 `redisplay_text_width_charc_string' instead of
2675 `redisplay_text_width_emchar_string'.
2676 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2677 instead of `rtw_emchar_dynarr'; use
2678 `convert_bufbyte_string_into_charc_dynarr' instead of
2679 `convert_bufbyte_string_into_emchar_dynarr'.
2680 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2681 `redisplay_text_width_charc_string' instead of
2682 `redisplay_text_width_emchar_string'.
2683 (create_text_block): Modify for <struct rune> change.
2684 (generate_formatted_string_db): Likewise.
2685 (create_string_text_block): Likewise.
2686 (pixel_to_glyph_translation): Likewise.
2688 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2689 instead of <const Emchar *>.
2690 (x_text_width): Likewise.
2691 (x_output_display_block): Use <Charc_dynarr *> instead
2692 <Emchar_dynarr *>; modify for <structure rune> change.
2693 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2696 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2697 <const Emchar *>; use `charc_string_displayed_columns' instead of
2698 `emchar_string_displayed_columns'.
2699 (tty_output_display_block): Use <Charc_dynarr *> instead of
2700 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2701 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2702 (tty_output_charc_dynarr_dynarr): New variable; renamed from
2703 `tty_output_emchar_dynarr_dynarr'.
2704 (tty_output_charc_dynarr): New function; delete
2705 `tty_output_charc_dynarr'.
2707 * redisplay-output.c (compare_runes): Modify for `struct rune'.
2708 (redisplay_output_layout): Use <Charc_dynarr *> instead of
2709 <Emchar_dynarr *> for buf; use
2710 `convert_bufbyte_string_into_charc_dynarr' instead of
2711 `convert_bufbyte_string_into_emchar_dynarr'.
2713 * frame.c (title_string_charc_dynarr): New variable; renamed from
2714 `title_string_emchar_dynarr'.
2715 (generate_title_string): Use `title_string_charc_dynarr' instead
2716 of `title_string_emchar_dynarr'; use
2717 `convert_charc_string_into_malloced_string' instead of
2718 `convert_emchar_string_into_malloced_string'.
2719 (init_frame): Use `title_string_charc_dynarr' instead of
2720 `title_string_emchar_dynarr'.
2723 - Include "character.h".
2724 (struct console_methods): Use <const Charc *> instead of <const
2725 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2726 <Emchar_dynarr *> in output_string_method.
2728 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2731 * console-stream.c (stream_text_width): Use <const Charc *>
2732 instead of <const Emchar *>.
2734 * character.h (Charc_dynarr): New type.
2736 * char-ucs.h (structure Charc): New structure; define new type
2739 * char-lb.h (DECODE_CHAR): New inline function.
2740 (encode_char_1): New inline function.
2741 (ENCODE_CHAR): New macro.
2742 (structure Charc): New structure; define new type `Charc'.
2744 * char-1byte.h (Vcharset_control_1): New macro.
2745 (Vcharset_latin_iso8859_1): New macro.
2746 (DECODE_CHAR): New inline function.
2747 (encode_char_1): New inline function.
2748 (ENCODE_CHAR): New macro.
2749 (structure Charc): New structure; define new type `Charc'.
2751 * insdel.c (find_charsets_in_charc_string): New function; delete
2752 `find_charsets_in_emchar_string'.
2753 (charc_string_displayed_columns): New function; delete
2754 `emchar_string_displayed_columns'.
2755 (convert_bufbyte_string_into_charc_dynarr): New function; delete
2756 `convert_bufbyte_string_into_emchar_dynarr'.
2757 (convert_charc_string_into_bufbyte_dynarr): New function; delete
2758 `convert_charc_string_into_bufbyte_dynarr'.
2759 (convert_charc_string_into_malloced_string): New function; delete
2760 `convert_charc_string_into_malloced_string'.
2762 * buffer.h (find_charsets_in_charc_string): New prototype; delete
2763 `find_charsets_in_emchar_string'.
2764 (charc_string_displayed_columns): New prototype; delete
2765 `emchar_string_displayed_columns'.
2766 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2767 `convert_charc_string_into_bufbyte_dynarr'.
2768 (convert_charc_string_into_malloced_string): New prototype; delete
2769 `convert_charc_string_into_malloced_string'.
2771 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2773 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2775 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2777 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2779 * char-ucs.h: Use <short> for <Charset_ID>.
2781 * mule-charset.h, char-1byte.h: Use <unsigned char> for
2784 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2786 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2789 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2791 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2793 (Qmorohashi_daikanwa): New variable.
2794 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2795 for `morohashi-daikanwa' attribute.
2796 (Fget_char_attribute): Likewise.
2797 (Fput_char_attribute): Likewise.
2798 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2799 has the same value of `ideograph-daikanwa'.
2800 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2801 (vars_of_mule_charset): Setup
2802 `Vcharacter_morohashi_daikanwa_table'.
2804 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2806 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2808 (add_charset_to_list_mapper): Add `key' instead of
2809 `XCHARSET_NAME (value)' to return aliases.
2811 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2813 * mule-charset.c (Vcharacter_ideographic_radical_table): New
2815 (Vcharacter_ideographic_strokes_table): New variable.
2816 (Qideographic_radical): New variable.
2817 (Qideographic_strokes): New variable.
2818 (Fchar_attribute_alist): Use
2819 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2820 attribute; use `Vcharacter_ideographic_strokes_table' for
2821 `ideographic-strokes' attribute.
2822 (Fget_char_attribute): Likewise.
2823 (Fput_char_attribute): Likewise.
2824 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2825 `ideographic-strokes'.
2826 (vars_of_mule_charset): Setup
2827 `Vcharacter_ideographic_radical_table' and
2828 `Vcharacter_ideographic_strokes_table'.
2830 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2832 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2833 (Qtotal_strokes): New variable.
2834 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2835 `total-strokes' attribute.
2836 (Fget_char_attribute): Likewise.
2837 (Fput_char_attribute): Likewise.
2838 (syms_of_mule_charset): Add new symbol `total-strokes'.
2839 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2841 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2843 * mule-charset.c (Vcharacter_decomposition_table): New variable.
2844 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2846 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2847 `->decomposition' attribute.
2848 (Fput_char_attribute): Likewise.
2849 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2851 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2853 * mule-charset.c (decoding_table_check_elements): New function.
2854 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2856 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2858 * mule-charset.c (Fset_charset_mapping_table): Use
2859 `put_char_ccs_code_point'.
2861 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2863 * mule-charset.c (decoding_table_put_char): New inline function.
2864 (put_char_ccs_code_point): Use `decoding_table_put_char'.
2866 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2868 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2869 (XCHARSET_BYTE_SIZE): New macro.
2870 (decoding_table_remove_char): New inline function.
2871 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2872 `decoding_table_remove_char'.
2873 (remove_char_ccs): Use `decoding_table_remove_char'.
2874 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2876 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2878 * mule-charset.c (Vcharacter_name_table): New variable.
2879 (Qname): New variable.
2880 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2882 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2883 `Vcharacter_name_table' for `name' attribute.
2884 (Fremove_char_attribute): Use function `remove_char_ccs'.
2885 (put_char_ccs_code_point): New function.
2886 (remove_char_ccs): New function.
2887 (syms_of_mule_charset): Add new symbol `name'.
2888 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2890 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2892 * mule-charset.c (make_byte_table): Add new argument `older'.
2893 (make_char_id_table): Likewise.
2894 (copy_char_id_table): Comment out because it is not used.
2895 (put_char_id_table): Modify for `make_byte_table'.
2896 (Fput_char_attribute): Make encoding_table as older object;
2897 inherit older bit of `Vcharacter_composition_table'.
2898 (mark_charset): Don't mark `cs->encoding_table'.
2899 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2900 normal object; make `Vcharacter_composition_table' as an older
2901 object; delete staticpro for `Vcharacter_composition_table'; make
2902 `Vcharacter_variant_table' as a normal object.
2904 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2905 (mark_object): Don't check older object in UTF-2000.
2907 * lrecord.h (struct lrecord_header): Add new member `older' in
2909 (set_lheader_implementation): Setup `SLI_header->older' in
2911 (set_lheader_older_implementation): New macro in UTF-2000.
2912 (OLDER_RECORD_P): New macro in UTF-2000.
2913 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2914 (alloc_older_lcrecord): New prototype in UTF-2000.
2915 (alloc_older_lcrecord_type): New macro in UTF-2000.
2917 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2919 * mule-charset.c (byte_table_description): Use
2920 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2921 (char_id_table_description): Delete bogus `, 1'.
2922 (Fget_char_attribute): Refer encoding_table of each coded-charset
2923 to get value of coded-charset attribute of a character.
2924 (Fput_char_attribute): Use `make_older_vector' instead of
2925 `make_vector'; use encoding_table of each coded-charset to store
2926 value of coded-charset attribute of a character.
2927 (Fremove_char_attribute): Use encoding_table of each coded-charset
2928 to store value of coded-charset attribute of a character.
2929 (mark_charset): Mark `cs->encoding_table'; don't mark
2930 `cs->decoding_table'.
2931 (charset_description): Add description of new member
2933 (make_charset): Initialize `encoding_table'.
2935 * char-ucs.h (struct Lisp_Charset): Add new member
2937 (CHARSET_ENCODING_TABLE): New macro.
2938 (XCHARSET_ENCODING_TABLE): New macro.
2939 (charset_code_point): New implementation.
2940 (encode_char_1): Likewise.
2942 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2943 (disksave_object_finalization_1): Call finalizers of
2944 `all_older_lcrecords' in UTF-2000.
2945 (make_older_vector): New function in UTF-2000.
2946 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2949 * lisp.h (make_older_vector): New prototype in UTF-2000.
2951 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2953 * lrecord.h (enum lrecord_type): Rename
2954 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2956 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2957 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2958 `get_char_code_table'.
2960 * mule-charset.c (mark_char_id_table): Renamed from
2961 `mark_char_code_table'.
2962 (char_id_table_equal): Renamed from `char_code_table_equal'.
2963 (char_id_table_hash): Renamed from `char_code_table_hash'.
2964 (make_char_id_table): Renamed from `make_char_code_table'.
2965 (copy_char_id_table): Renamed from `copy_char_code_table'.
2966 (get_char_id_table): Renamed from `get_char_code_table'.
2967 (put_char_id_table): Renamed from `put_char_code_table'.
2968 (to_char_id): Renamed from `to_char_code'.
2970 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2971 `Lisp_Char_Code_Table'.
2972 (char_id_table): Renamed from `char_code_table'.
2973 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2974 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2975 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2976 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2977 (get_char_id_table): Renamed from `get_char_code_table'.
2979 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2981 * lrecord.h (enum lrecord_type): Rename
2982 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2984 * mule-charset.c (mark_byte_table): Renamed from
2985 `mark_char_byte_table'.
2986 (byte_table_equal): Renamed from `char_byte_table_equal'.
2987 (byte_table_hash): Renamed from `byte_table_hash'.
2988 (make_byte_table): Renamed from `make_byte_table'.
2989 (copy_byte_table): Renamed from `copy_char_byte_table'.
2991 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2992 `Lisp_Char_Byte_Table'.
2993 (byte_table): Renamed from `char_byte_table'.
2994 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2995 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2996 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2997 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2999 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3001 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3002 (dfc_convert_to_internal_format): Likewise.
3004 * text-coding.c (Fcoding_system_canonical_name_p): New function.
3005 * text-coding.c (Fcoding_system_alias_p): New function.
3006 * text-coding.c (Fcoding_system_aliasee): New function.
3007 * text-coding.c (append_suffix_to_symbol): New function.
3008 * text-coding.c (dangling_coding_system_alias_p): New function.
3009 * text-coding.c (Ffind_coding_system):
3010 * text-coding.c (Fcopy_coding_system):
3011 * text-coding.c (encode_coding_no_conversion):
3012 * text-coding.c (syms_of_file_coding):
3013 * text-coding.c (vars_of_file_coding):
3014 Rewrite coding system alias code.
3015 Allow nested aliases, like symbolic links.
3016 Allow redefinition of coding system aliases.
3017 Prevent existence of dangling coding system aliases.
3018 Eliminate convert_to_external_format.
3019 Eliminate convert_to_internal_format.
3021 * text-coding.c: Change enum eol_type to eol_type_t.
3023 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3025 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3026 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3028 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3029 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3031 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3033 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3034 `ideograph-daikanwa'.
3036 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3037 (Vcharset_ucs_bmp): Likewise.
3038 (Vcharset_mojikyo): Add new extern variable definition.
3039 (Vcharset_latin_iso8859_2): Deleted because it is not used.
3040 (Vcharset_latin_iso8859_3): Likewise.
3041 (Vcharset_latin_iso8859_4): Likewise.
3042 (Vcharset_latin_iso8859_9): Likewise.
3043 (Vcharset_latin_viscii_lower): Likewise.
3044 (Vcharset_latin_viscii_upper): Likewise.
3045 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3046 `mojikyo' code-point is used to decode.
3047 (encode_char_2): New function [to convert `mojikyo' code-point to
3048 Mojikyo font encoding].
3049 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3050 (breakup_char_1): Likewise.
3051 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3053 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3055 * text-coding.c (Fmake_coding_system): Add document about
3056 `disable-composition' property.
3058 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3060 * text-coding.c (Qdisable_composition): New variable; delete
3062 (Fmake_coding_system): Add new property `disable-composite';
3063 delete property `composite'.
3064 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3065 instead of `!CODING_SYSTEM_COMPOSITE'.
3066 (syms_of_file_coding): Add new symbol `disable-composition';
3067 delete symbol `composite'.
3069 * file-coding.h (struct Lisp_Coding_System): Add
3070 `disable_composition'; delete `enable_composition'.
3071 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3072 `CODING_SYSTEM_COMPOSITE'.
3073 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3074 `XCODING_SYSTEM_COMPOSITE'.
3076 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3078 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3081 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3083 * text-coding.c (Qcomposite): New variable.
3084 (Fmake_coding_system): Add new property `composite'.
3085 (struct decoding_stream): Add `combined_char_count',
3086 `combined_chars' and `combining_table' in UTF-2000.
3087 (COMPOSE_FLUSH_CHARS): New macro.
3088 (COMPOSE_ADD_CHAR): New macro.
3089 (reset_decoding_stream): Reset `str->combined_char_count' and
3090 `str->combining_table' in UTF-2000.
3091 (decode_coding_iso2022): Modify for character-decomposition.
3092 (syms_of_file_coding): Add new symbol `composite'.
3094 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3096 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3097 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3098 of `Vcharacter_composition_table' if `->decomposition' property
3100 (Qlatin_tcvn5712): New variable.
3101 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3102 (complex_vars_of_mule_charset): Add new coded-charset
3105 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3107 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3109 * file-coding.h (struct Lisp_Coding_System): Add
3110 `enable_composition'.
3111 (CODING_SYSTEM_COMPOSITE): New macro.
3112 (XCODING_SYSTEM_COMPOSITE): New macro.
3114 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
3116 * mule-canna.c (c2mu): Fix problem with UTF-2000.
3118 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
3120 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3121 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3123 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
3125 * mule-charset.c (Vcharset_mojikyo): New variable.
3126 (Fdefine_char): Don't use coded-charset which does not have
3127 non-builtin character range to allocate character-id.
3128 (Qmojikyo): New variable.
3129 (syms_of_mule_charset): Add new symbol `mojikyo'.
3130 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3132 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3133 (LEADING_BYTE_MOJIKYO): New macro.
3134 (MIN_CHAR_MOJIKYO): New macro.
3135 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3136 (MAX_CHAR_MOJIKYO): New macro.
3138 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
3140 * mule-charset.c (remove_char_attribute): Fixed.
3142 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
3144 * mule-charset.c (remove_char_attribute): New function.
3145 (Fremove_char_attribute): New function.
3146 (encode_builtin_char_1): Comment out builtin-support for
3147 greek-iso8859-7 and cyrillic-iso8859-5.
3148 (Fdecode_char): Check `code' is an integer.
3149 (syms_of_mule_charset): Add `remove-char-attribute'.
3150 (MIN_CHAR_GREEK): Deleted.
3151 (MAX_CHAR_GREEK): Likewise.
3152 (MIN_CHAR_CYRILLIC): Likewise.
3153 (MAX_CHAR_CYRILLIC): Likewise.
3154 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3155 MAX_CHAR_GREEK for `greek-iso8859-7'.
3157 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3158 (MAX_CHAR_GREEK): Likewise.
3159 (MIN_CHAR_CYRILLIC): Likewise.
3160 (MAX_CHAR_CYRILLIC): Likewise.
3162 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
3164 * mule-charset.c (Fdefine_char): Fix problem when new code-point
3165 format is used without `ucs' property.
3166 (Fdecode_char): Fix problem with GR representation.
3167 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3168 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3170 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3172 * mule-charset.c (make_builtin_char): New function.
3173 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3174 (Fset_charset_mapping_table): Modify for new representation of
3176 (Fdecode_char): New function.
3177 (syms_of_mule_charset): Add new builtin function `decode-char' in
3180 * char-ucs.h (make_builtin_char): New prototype.
3181 (DECODE_CHAR): New inline function.
3182 (MAKE_CHAR): Use `DECODE_CHAR'.
3184 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
3186 * text-coding.c (parse_charset_conversion_specs): Use
3187 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3189 (iso2022_designate): Likewise.
3191 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3192 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3194 * mule-charset.c (Vcharset_ucs): New variable.
3195 (print_charset): Change design; use `CHARSET_CHARS' and
3196 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3197 (make_charset): Change signature to specify `chars' and
3198 `dimension' instead of `type'.
3199 (range_charset_code_point): Modify for 256^n-set.
3200 (encode_builtin_char_1): Encode as `ucs' in default.
3201 (Fmake_charset): Modify for `make_charset'.
3202 (Fmake_reverse_direction_charset): Likewise.
3203 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3205 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3208 * char-ucs.h (Vcharset_ucs): New variable.
3209 (LEADING_BYTE_UCS): New macro.
3210 (struct Lisp_Charset): Delete `type'; change type of `dimension'
3211 and `chars' to `unsigned short' from `unsigned int'.
3212 (CHARSET_TYPE): Deleted.
3213 (XCHARSET_TYPE): Deleted.
3215 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
3217 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3219 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3220 (ENCODE_CHAR): New macro.
3222 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3224 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3225 to 0.14 (Kawachi-Katakami).
3227 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3229 * text-coding.c (char_encode_shift_jis): Modify for
3230 `charset_code_point'.
3231 (char_encode_iso2022): Likewise.
3233 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3234 (integer) instead of list of <Lisp_Object>s (integers) as the
3235 format of code-point of a coded-charset.
3236 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3237 (encode_builtin_char_1): New function; delete
3238 `split_builtin_char'.
3239 (charset_code_point): Return <int> instead of <Lisp_Object>.
3240 (Fsplit_char): Don't use `SPLIT_CHAR'.
3242 * char-ucs.h (encode_builtin_char_1): New prototype; delete
3243 prototype for `split_builtin_char'.
3244 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3245 (charset_code_point): Likewise.
3246 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3247 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3249 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
3251 * mule-charset.c (complex_vars_of_mule_charset): Don't define
3252 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3254 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3256 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3258 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3259 (MAX_CHAR_OBS_94x94): Deleted.
3261 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3263 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3265 * char-ucs.h (MAX_CHAR_BMP): New macro.
3267 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3269 * text-coding.c: Sync with r21-2-24.
3271 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3273 * file-coding.c: Modify for UTF-2000.
3275 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3277 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3280 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3282 * mule-charset.c (split_builtin_char): Delete builtin support for
3283 `katakana-jisx0201'.
3284 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3285 BMP area in builtin representation.
3287 * char-ucs.h (MAKE_CHAR): Delete builtin support for
3288 `Vcharset_katakana_jisx0201'.
3290 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
3292 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3293 (Qisolated): New variable.
3294 (Qinitial): New variable.
3295 (Qmedial): New variable.
3296 (Qfinal): New variable.
3297 (Qvertical): New variable.
3298 (Qsmall): New variable.
3299 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3300 `Qvertical' and `Qsmall'.
3301 (Qmojikyo_pj_[1 .. 21]): New variable.
3302 (syms_of_mule_charset): Add new symbols `isolated', `initial',
3303 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3304 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3307 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3309 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3310 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3311 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3313 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3315 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3316 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3318 (Qjapanese_jisx0208_1990): New variable.
3319 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3320 (complex_vars_of_mule_charset): Add new coded-charset
3321 `japanese-jisx0208-1990'.
3323 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3324 (MIN_CHAR_JIS_X0208_1990): New macro.
3325 (MAX_CHAR_JIS_X0208_1990): New macro.
3327 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
3329 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3330 coded-charset is not found.
3332 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
3334 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3335 (Fdefine_char): Use `Fmake_char'.
3337 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3339 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3340 (Vcharset_hiragana_jisx0208): Deleted.
3341 (Vcharset_katakana_jisx0208): Deleted.
3342 (Qideograph_daikanwa): New variable.
3343 (Qhiragana_jisx0208): Deleted.
3344 (Qkatakana_jisx0208): Deleted.
3345 (split_builtin_char): Split `ideograph-daikanwa'.
3346 (Fsplit_char): New implementation for UTF-2000.
3347 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3348 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3349 (complex_vars_of_mule_charset): Add new coded-charset
3350 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3351 `katakana-jisx0208'.
3353 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3354 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3355 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3356 (MIN_CHAR_DAIKANWA): New macro.
3357 (MAX_CHAR_DAIKANWA): New macro.
3359 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3361 * data.c (Fstring_to_number): Don't recognize floating point if
3364 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3366 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3368 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3370 * mule-charset.c (Qsquare): New variable.
3371 (to_char_code): Add `Qsquare'.
3372 (syms_of_mule_charset): Add new symbol `square'.
3374 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3376 * mule-charset.c (Qcircle): New variable.
3377 (to_char_code): Add `Qcircle'.
3378 (syms_of_mule_charset): Add new symbol `circle'.
3380 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3382 * mule-charset.c (Qfont): New variable.
3383 (to_char_code): Add `Qfont'.
3384 (syms_of_mule_charset): Add new symbol `font'.
3386 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3388 * mule-charset.c (Qsub): New variable.
3389 (to_char_code): Add `Qsub'.
3390 (syms_of_mule_charset): Add new symbol `sub'.
3392 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3394 * mule-charset.c (Fput_char_attribute): Convert each element of
3395 VALUE to GL position if ATTRIBUTE is a GR-set,
3397 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3399 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3400 coded-charset is a GR-set.
3402 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3404 * mule-charset.c (Fput_char_attribute): Check each element of
3405 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3407 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3409 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3411 (Qethiopic_ucs): New variable in UTF-2000.
3412 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3413 (complex_vars_of_mule_charset): Add new coded-charset
3414 `ethiopic-ucs' in UTF-2000.
3416 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3417 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3419 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3421 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3423 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3425 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3428 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3430 * mule-charset.c (Vcharacter_variant_table): New variable.
3431 (Q_ucs): New variable.
3432 (Fchar_variants): New function.
3433 (Fput_char_attribute): Register `->ucs' value to
3434 `Vcharacter_variant_table'.
3435 (syms_of_mule_charset): Add new function `char-variants' and new
3437 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3439 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3441 * mule-charset.c (get_char_code_table): Allow negative character
3443 (put_char_code_table): Likewise.
3444 (Vcharacter_composition_table): New variable.
3445 (Q_decomposition): New variable.
3446 (Qwide): New variable.
3447 (Qnarrow): New variable.
3448 (Qcompat): New variable.
3449 (QnoBreak): New variable.
3450 (Qsuper): New variable.
3451 (Qfraction): New variable.
3452 (to_char_code): New function.
3453 (Fget_composite_char): New function.
3454 (Fput_char_attribute): Register `->decomposition' value to
3455 `Vcharacter_composition_table'.
3456 (syms_of_mule_charset): Add new function `get-composite-char', new
3457 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3458 `super' and `fraction'.
3459 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3461 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3463 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3464 character; copy the return value.
3466 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3468 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3470 * mule-charset.c (range_charset_code_point): Must use make_int.
3471 (split_builtin_char): New function.
3473 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3475 * mule-charset.c (char_byte_table): Change name from
3476 "char-code-table" to "char-byte-table".
3477 (mark_char_code_table): New function.
3478 (char_code_table_equal): New function.
3479 (char_code_table_hash): New function.
3480 (char_code_table_description): New constant.
3481 (char_code_table): New type.
3482 (make_char_code_table): New function.
3483 (copy_char_code_table): New function.
3484 (get_char_code_table): Modify for `char_code_table' type.
3485 (put_char_code_table): Likewise.
3486 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3489 * char-ucs.h (char_code_table): New type.
3490 (XCHAR_CODE_TABLE): New macro.
3491 (XSETCHAR_CODE_TABLE): New macro.
3492 (CHAR_CODE_TABLE_P): New macro.
3493 (GC_CHAR_CODE_TABLE_P): New macro.
3494 (struct Lisp_Char_Code_Table): New structure.
3496 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3498 * mule-charset.c (Fmake_charset): Setup byte_offset for
3501 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
3503 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3506 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3508 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3511 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3513 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3514 charset, it is regarded as a charset.
3515 (put_char_attribute): New function in UTF-2000.
3516 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3517 charset, mapping-table of the charset is modified.
3518 (Fdefine_char): New function in UTF-2000.
3519 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3520 `Fput_char_attribute'.
3521 (syms_of_mule_charset): Add new function `define-char' and new
3522 symbol `ucs' in UTF-2000.
3523 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3525 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3527 * mule-charset.c (Fcharset_name): Define `byte_offset' in
3528 non-UTF-2000 configuration.
3530 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3532 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3533 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3535 * mule-charset.c (mark_charset): `cs->encoding_table' has been
3537 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3538 (Fset_charset_mapping_table): Likewise.
3540 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3541 (CHARSET_ENCODING_TABLE): Delete.
3542 (XCHARSET_ENCODING_TABLE): Delete.
3543 (charset_code_point): New interface.
3545 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3547 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3548 instead of `charset_get_byte1' and `charset_get_byte2'.
3550 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3551 (charset_get_byte2): Deleted.
3553 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3555 * char-ucs.h (SPLIT_CHAR): New inline function.
3556 (breakup_char_1): Use `SPLIT_CHAR'.
3558 * mule-charset.c (range_charset_code_point): New function.
3559 (charset_code_point): New function.
3561 * char-ucs.h (range_charset_code_point): New interface.
3562 (breakup_char_1): Use `range_charset_code_point'.
3564 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3566 * mule-charset.c (Fmake_charset): Delete unused local variable
3569 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3570 (breakup_char_1): Find a charset and code-point in
3571 `Vcharacter_attribute_table'.
3573 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3575 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3578 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3580 * mule-charset.c (Vcharacter_attribute_table): New variable.
3581 (Fchar_attribute_alist): New function.
3582 (Fget_char_attribute): New function.
3583 (Fput_char_attribute): New function.
3584 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3586 (syms_of_mule_charset): Add new function `char-attribute-alist',
3587 `get-char-attribute' and `put-char-attribute'.
3588 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3590 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
3592 * mule-charset.c (Fmake_charset): Just use
3593 `get_unallocated_leading_byte'.
3595 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3596 sets; don't use final-byte based number for private sets.
3598 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3600 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3603 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3605 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3608 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3610 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3611 of `CHAR_LEADING_BYTE' in UTF-2000.
3613 * insdel.c (find_charsets_in_bufbyte_string): Use
3614 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3615 (find_charsets_in_emchar_string): Likewise.
3617 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3618 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3620 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3621 (CHAR_CHARSET_ID): New macro.
3623 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3625 * chartab.c (get_char_table): Don't use type `Charset_ID' for
3626 charset-id - MIN_LEADING_BYTE.
3627 (put_char_table): Likewise.
3629 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3631 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3632 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3633 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3634 (CHARSET_ID_OFFSET): New macro.
3635 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3636 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3637 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3638 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3640 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3642 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3643 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3644 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3645 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3646 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3648 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3650 * mule-charset.c (next_allocated_leading_byte): New variable in
3652 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3653 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3654 (get_unallocated_leading_byte): Simply use
3655 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3656 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3659 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3660 (MAX_LEADING_BYTE_PRIVATE): New macro.
3661 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3662 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3664 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3666 * mule-charset.c (Fmake_charset): Allocate final-byte based
3667 charset-id for 94-set, 96-set and 94x94-set.
3669 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3671 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3673 (Fmake_charset): Likewise.
3674 (complex_vars_of_mule_charset): Modify the font registry of
3675 `ucs-bmp' not to match `Ethiopic-Unicode'.
3677 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3679 * mule-charset.c (complex_vars_of_mule_charset): Add font
3680 registory of `ucs-bmp'.
3682 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3684 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3685 coded-charsets in `default-coded-charset-priority-list' when
3686 breaking up a character.
3688 * mule-charset.c (Vcharset_latin_viscii): New variable.
3689 (Qlatin_viscii): New variable.
3690 (make_charset): Don't use `decoding_table'.
3691 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3693 (Fset_charset_mapping_table): New implementation.
3694 (syms_of_mule_charset): Add new symbol `latin-viscii'.
3695 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3696 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3697 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3698 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3699 charset `latin_viscii'.
3701 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3702 (CHARSET_TYPE_94X94): Change to 1 from 2.
3703 (CHARSET_TYPE_96): Change to 2 from 1.
3704 (CHARSET_TYPE_128): New macro.
3705 (CHARSET_TYPE_128X128): Change to 5 from 4.
3706 (CHARSET_TYPE_256): New macro.
3707 (CHARSET_TYPE_256X256): Change to 7 from 5.
3708 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3710 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3712 * text-coding.c (char_encode_shift_jis): Refer
3713 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3714 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3716 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3717 (char_byte_table_equal): New function in UTF-2000.
3718 (char_byte_table_hash): New function in UTF-2000.
3719 (char_byte_table_description): New constant in UTF-2000.
3720 (char_byte_table): New type in UTF-2000.
3721 (make_char_byte_table): New function in UTF-2000.
3722 (copy_char_byte_table): New function in UTF-2000.
3723 (make_char_code_table): New macro in UTF-2000.
3724 (get_char_code_table): New function in UTF-2000.
3725 (put_char_code_table): New function in UTF-2000.
3726 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3727 (charset_description): Add setting in UTF-2000.
3728 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3729 `CHARSET_TO_BYTE1_TABLE(cs)'.
3730 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3731 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3732 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3733 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3734 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3735 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3736 `CHARSET_TO_BYTE2_TABLE(cs)'.
3738 * char-ucs.h (char_byte_table): New type.
3739 (XCHAR_BYTE_TABLE): New macro.
3740 (XSETCHAR_BYTE_TABLE): New macro.
3741 (CHAR_BYTE_TABLE_P): New macro.
3742 (GC_CHAR_BYTE_TABLE_P): New macro.
3743 (struct Lisp_Char_Byte_Table): New structure.
3744 (get_char_code_table): New interface.
3745 (Emchar_to_byte_table): Deleted.
3746 (get_byte_from_character_table): Deleted.
3747 (struct Lisp_Charset): Add `encoding_table'; delete
3748 `to_byte1_table' and `to_byte2_table'.
3749 (CHARSET_ENCODING_TABLE): New macro.
3750 (CHARSET_TO_BYTE1_TABLE): Deleted.
3751 (CHARSET_TO_BYTE2_TABLE): Deleted.
3752 (XCHARSET_ENCODING_TABLE): New macro.
3753 (XCHARSET_TO_BYTE1_TABLE): Deleted.
3754 (XCHARSET_TO_BYTE2_TABLE): Deleted.
3756 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3758 * mule-charset.c (syms_of_mule_charset): Delete charset alias
3759 `vietnamese-viscii-*'.
3761 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3763 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3764 (Qvietnamese_viscii_upper): New variable.
3765 (Fdefine_charset_alias): New function.
3766 (syms_of_mule_charset): Add new function `define-charset-alias'.
3767 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3768 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3771 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
3773 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3774 (MAX_CHAR_OBS_94x94): New macro.
3775 (breakup_char_1): Support obsolete XEmacs-UCS private code space
3778 * mule-charset.c (put_byte_from_character_table): Change unit size
3780 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3782 (Fmake_reverse_direction_charset): Modify dummy argument of
3783 `make_charset' for non-UTF-2000 environment.
3785 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3787 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3789 * mule-charset.c (destroy_byte_from_character_table): New macro.
3790 (latin_jisx0201_to_ucs): Deleted.
3791 (latin_iso8859_2_to_ucs): Deleted.
3792 (latin_iso8859_3_to_ucs): Deleted.
3793 (latin_iso8859_4_to_ucs): Deleted.
3794 (latin_iso8859_9_to_ucs): Deleted.
3795 (latin_viscii_lower_to_ucs): Deleted.
3796 (latin_viscii_upper_to_ucs): Deleted.
3797 (mark_charset): Mark `cs->decoding_table'.
3798 (Fcharset_mapping_table): Fix DOC-string.
3799 (Fset_charset_mapping_table): New function.
3800 (syms_of_mule_charset): Add nwe function
3801 `set-charset-mapping-table'.
3802 (complex_vars_of_mule_charset): Don't setup and use
3805 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
3807 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3810 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
3812 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3813 (Vcharset_katakana_jisx0208): New variable.
3814 (Qhiragana_jisx0208): New variable.
3815 (Qkatakana_jisx0208): New variable.
3816 (make_charset): Add new argument `byte_offset'.
3817 (charset_get_byte1): Modify for new coded-charset definition; use
3818 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3819 `XCHARSET_BYTE_OFFSET'.
3820 (Fmake_charset): Modify for `make_charset'.
3821 (Fmake_reverse_direction_charset): Likewise.
3822 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3823 `katakana-jisx0208'.
3824 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3825 `.' in font registry of charset `katakana-jisx0201',
3826 `latin-jisx0201', `vietnamese-viscii-lower' and
3827 `vietnamese-viscii-upper'; modify DOC-string of charset
3828 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3829 registry of charset `japanese-jisx0208' not to use font for JIS
3830 X0208:1990; add new charset `hiragana-jisx0208' and
3831 `katakana-jisx0208'.
3833 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3834 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3835 (struct Lisp_Charset): Add `byte_offset'.
3836 (CHARSET_BYTE_OFFSET): New macro.
3837 (XCHARSET_UCS_MIN): New macro.
3838 (XCHARSET_UCS_MAX): New macro.
3839 (XCHARSET_CODE_OFFSET): New macro.
3840 (XCHARSET_BYTE_OFFSET): New macro.
3841 (MIN_CHAR_HIRAGANA): New macro.
3842 (MAX_CHAR_HIRAGANA): New macro.
3843 (MIN_CHAR_KATAKANA): New macro.
3844 (MAX_CHAR_KATAKANA): New macro.
3845 (MAKE_CHAR): Modify for new coded-charset definition; use
3846 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3847 `XCHARSET_BYTE_OFFSET'.
3849 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3851 * mule-charset.c (CHAR96): Deleted.
3852 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3854 (latin_iso8859_2_to_ucs): Likewise.
3855 (latin_iso8859_3_to_ucs): Likewise.
3856 (latin_iso8859_4_to_ucs): Likewise.
3857 (latin_iso8859_9_to_ucs): Likewise.
3858 (latin_viscii_lower_to_ucs): Likewise.
3859 (latin_viscii_upper_to_ucs): Likewise.
3860 (latin_tcvn5712_to_ucs): Commented out.
3861 (make_charset): Change type of argument `decoding_table' from
3862 <Emchar*> to <Lisp_Object> [vector of characters].
3863 (Fmake_charset): Modify for `make_charset'.
3864 (Fmake_reverse_direction_charset): Likewise.
3865 (Fcharset_mapping_table): New function in UTF-2000.
3866 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3868 (complex_vars_of_mule_charset): Modify for type change of
3869 `*_to_ucs'; modify for `make_charset'.
3871 * char-ucs.h (struct Lisp_Charset): Change type of
3872 `decoding_table' from <Emchar*> to <Lisp_Object>.
3873 (MAKE_CHAR): Modify for new specification of `decoding_table'.
3875 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3877 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3878 error with non-UTF-2000-Mule.
3880 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
3882 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3884 (Vcharset_chinese_cns11643_4): Likewise.
3885 (Vcharset_chinese_cns11643_5): Likewise.
3886 (Vcharset_chinese_cns11643_6): Likewise.
3887 (Vcharset_chinese_cns11643_7): Likewise.
3888 (Qchinese_cns11643_3): Likewise.
3889 (Qchinese_cns11643_4): Likewise.
3890 (Qchinese_cns11643_5): Likewise.
3891 (Qchinese_cns11643_6): Likewise.
3892 (Qchinese_cns11643_7): Likewise.
3893 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3894 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3895 and `chinese-cns11643-7' to lisp/mule/chinese.el.
3896 (complex_vars_of_mule_charset): Likewise.
3898 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3900 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3902 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3903 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3905 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3907 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3909 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3910 (breakup_char_1): Likewise.
3912 * text-coding.c (char_encode_iso2022): Keep designated charsets if
3913 one of them includes the specified character.
3915 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3917 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3919 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3921 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3923 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3925 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3926 definition for non-UTF-2000 Mule.
3927 (latin_iso8859_3_to_ucs): Likewise.
3928 (latin_iso8859_4_to_ucs): Likewise.
3929 (latin_iso8859_9_to_ucs): Likewise.
3930 (latin_jisx0201_to_ucs): Likewise.
3931 (MIN_CHAR_THAI): Likewise.
3932 (MAX_CHAR_THAI): Likewise.
3933 (MIN_CHAR_GREEK): Likewise.
3934 (MAX_CHAR_GREEK): Likewise.
3935 (MIN_CHAR_HEBREW): Likewise.
3936 (MAX_CHAR_HEBREW): Likewise.
3937 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3938 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3939 (MIN_CHAR_CYRILLIC): Likewise.
3940 (MAX_CHAR_CYRILLIC): Likewise.
3942 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3944 * char-ucs.h (breakup_char_1): Use
3945 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3946 thai-tis620 and katakana-jisx0201 area.
3948 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3950 * char-ucs.h (breakup_char_1): Use
3951 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3954 * text-coding.c (reset_encoding_stream): Fixed.
3955 (char_encode_ucs4): Delete `& 255'.
3957 * char-ucs.h (breakup_char_1): Use
3958 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3960 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3962 * file-coding.c (Fmake_coding_system): Don't set up
3963 `codesys->fixed.size'.
3964 (encode_coding_no_conversion): Don't refer
3965 `str->codesys->fixed.size'.
3967 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3969 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3970 (latin_a_char_to_byte1): Deleted.
3971 (latin_a_char_to_byte2): Deleted.
3973 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3975 * mule-charset.c (make_charset): Add new argument `ucs_min',
3976 `ucs_max' and `code_offset'.
3977 (charset_get_byte1): New implementation [delete specific charset
3978 depended implementations].
3979 (Fmake_charset): Modify for `make_charset'.
3980 (Fmake_reverse_direction_charset): Likewise.
3981 (complex_vars_of_mule_charset): Likewise.
3983 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3985 (CHARSET_UCS_MIN): New macro.
3986 (CHARSET_UCS_MAX): New macro.
3987 (CHARSET_CODE_OFFSET): New macro.
3988 (MAKE_CHAR): Delete charset depended definitions [except
3991 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3993 * char-ucs.h (breakup_char_1): Use
3994 `Vdefault_coded_charset_priority_list' for C0-Controls,
3995 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3997 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3999 * char-ucs.h (charset_get_byte1): New function.
4000 (XCHARSET_GET_BYTE1): Deleted.
4001 (charset_get_byte2): New function.
4002 (XCHARSET_GET_BYTE2): Deleted.
4003 (Vdefault_coded_charset_priority_list): New external variable.
4004 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4005 `Vdefault_preferred_coded_charset_list'.
4007 * mule-charset.c (charset_get_byte1): New function.
4008 (charset_get_byte2): New function.
4009 (Vdefault_coded_charset_priority_list): New variable.
4010 (vars_of_mule_charset): Add new variable
4011 `default-coded-charset-priority-list'.
4013 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4015 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4016 (XCHARSET_GET_BYTE2): New inline function.
4017 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4018 `XCHARSET_GET_BYTE2'.
4020 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4022 * mule-charset.c (make_charset): Initialize
4023 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4024 NULL if table is not defined.
4026 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4028 * text-coding.c (char_encode_shift_jis): Use
4029 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4030 `ucs_to_latin_jisx0201'.
4032 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4033 (ucs_to_latin_iso8859_2): Deleted.
4034 (ucs_to_latin_iso8859_3): Deleted.
4035 (ucs_to_latin_iso8859_4): Deleted.
4036 (ucs_to_latin_iso8859_9): Deleted.
4037 (ucs_to_latin_viscii_lower): Deleted.
4038 (ucs_to_latin_viscii_upper): Deleted.
4039 (ucs_to_latin_tcvn5712): Deleted.
4040 (make_charset): Add new argument `decoding_table'; set up
4041 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4042 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4043 `decoding_table' is defined in UTF-2000.
4044 (Fmake_charset): Modify for `make_charset'.
4045 (Fmake_reverse_direction_charset): Likewise.
4046 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4047 and `GENERATE_96_SET'.
4049 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4050 (ucs_to_latin_jisx0201): Deleted.
4051 (latin_iso8859_2_to_ucs): Deleted.
4052 (ucs_to_latin_iso8859_2): Deleted.
4053 (latin_iso8859_3_to_ucs): Deleted.
4054 (ucs_to_latin_iso8859_3): Deleted.
4055 (latin_iso8859_4_to_ucs): Deleted.
4056 (ucs_to_latin_iso8859_4): Deleted.
4057 (latin_iso8859_9_to_ucs): Deleted.
4058 (ucs_to_latin_iso8859_9): Deleted.
4059 (latin_viscii_lower_to_ucs): Deleted.
4060 (ucs_to_latin_viscii_lower): Deleted.
4061 (latin_viscii_upper_to_ucs): Deleted.
4062 (ucs_to_latin_viscii_upper): Deleted.
4063 (struct Lisp_Charset): Renamed `encoding_table' to
4064 `to_byte1_table'; add `to_byte2_table'.
4065 (CHARSET_DECODING_TABLE): New macro.
4066 (CHARSET_TO_BYTE1_TABLE): New macro.
4067 (CHARSET_TO_BYTE2_TABLE): New macro.
4068 (XCHARSET_DECODING_TABLE): New macro.
4069 (XCHARSET_TO_BYTE1_TABLE): New macro.
4070 (XCHARSET_TO_BYTE2_TABLE): New macro.
4071 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4073 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4074 don't use `ucs_to_*' tables.
4076 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4078 * text-coding.c (Fmake_coding_system): Don't set up
4079 `codesys->fixed.size'.
4080 (encode_coding_no_conversion): Use `if' instead of `switch'.
4082 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4084 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4086 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4087 (Fmake_charset): Modify for `make_charset'.
4088 (Fmake_reverse_direction_charset): Likewise.
4089 (complex_vars_of_mule_charset): Likewise.
4091 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4093 * text-coding.c (char_encode_shift_jis): Use table
4094 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4096 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4098 * text-coding.c (text_encode_generic): Use `if' instead of
4100 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4103 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4105 * text-coding.c (encode_coding_sjis): Deleted.
4106 (char_encode_shift_jis): New function.
4107 (char_finish_shift_jis): New function.
4108 (reset_encoding_stream): Set up `encode_char' and `finish' for
4109 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4110 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4111 (char_encode_utf8): Treat `eol_type'.
4113 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4115 * file-coding.c (decode_coding_iso2022): Use
4116 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4118 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4120 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4123 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4125 * char-lb.h (CHAR_COLUMNS): New macro.
4127 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4129 * text-coding.c (char_encode_ucs4): New function.
4130 (char_finish_ucs4): New function.
4131 (encode_coding_ucs4): Deleted.
4132 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4133 (text_encode_generic): Delete local variable `charset' and `half'.
4134 (ucs_to_mule_table): Deleted.
4135 (mule_to_ucs_table): Deleted.
4136 (Fset_ucs_char): Deleted.
4137 (ucs_to_char): Deleted.
4138 (Fucs_char): Deleted.
4139 (Fset_char_ucs): Deleted.
4140 (Fchar_ucs): Deleted.
4141 (decode_ucs4): Deleted.
4142 (mule_char_to_ucs4): Deleted.
4143 (encode_ucs4): Deleted.
4144 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4145 (decode_coding_utf8): Likewise.
4146 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4147 (char_encode_iso2022): Fixed.
4148 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4149 `Fset_char_ucs' and `Fchar_ucs'.
4150 (complex_vars_of_file_coding): Don't initialize
4151 `ucs_to_mule_table'.
4153 * objects-tty.c (tty_initialize_font_instance): Don't use
4156 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4159 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4160 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4162 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4163 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4164 (emchar_string_displayed_columns): Likewise.
4166 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4167 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4168 (string_column_at_point): Likewise.
4169 (Fmove_to_column): Likewise.
4171 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4172 `encoding_table' and `decoding_table'.
4173 (CHARSET_REP_BYTES): Deleted.
4174 (XCHARSET_REP_BYTES): Deleted.
4175 (XCHARSET_COLUMNS): Deleted.
4176 (CHAR_COLUMNS): New macro.
4177 (lookup_composite_char): Deleted unconditionally.
4178 (composite_char_string): Likewise.
4180 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4182 * char-ucs.h (Emchar_to_byte_table): New type.
4183 (get_byte_from_character_table): New function interface.
4184 (Vcharset_latin_jisx0201): New variable.
4185 (latin_jisx0201_to_ucs): New variable.
4186 (ucs_to_latin_jisx0201): New variable.
4187 (Vcharset_latin_iso8859_2): New variable.
4188 (latin_iso8859_2_to_ucs): New variable.
4189 (ucs_to_latin_iso8859_2): New variable.
4190 (Vcharset_latin_iso8859_3): New variable.
4191 (latin_iso8859_3_to_ucs): New variable.
4192 (ucs_to_latin_iso8859_3): New variable.
4193 (Vcharset_latin_iso8859_4): New variable.
4194 (latin_iso8859_4_to_ucs): New variable.
4195 (ucs_to_latin_iso8859_4): New variable.
4196 (Vcharset_latin_iso8859_9): New variable.
4197 (latin_iso8859_9_to_ucs): New variable.
4198 (ucs_to_latin_iso8859_9): New variable.
4199 (Vcharset_latin_viscii_lower): New variable.
4200 (latin_viscii_lower_to_ucs): New variable.
4201 (ucs_to_latin_viscii_lower): New variable.
4202 (Vcharset_latin_viscii_upper): New variable.
4203 (latin_viscii_upper_to_ucs): New variable.
4204 (ucs_to_latin_viscii_upper): New variable.
4205 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4206 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4207 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4208 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4209 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4210 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4211 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4212 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4213 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4214 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4216 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4217 (Vcharset_latin_viscii_upper): New variable.
4218 (make_byte_from_character_table): New function.
4219 (put_byte_from_character_table): New function.
4220 (get_byte_from_character_table): New function.
4221 (CHAR96): New macro.
4222 (ucs_to_latin_jisx0201): New variable.
4223 (latin_jisx0201_to_ucs): New variable.
4224 (ucs_to_latin_iso8859_2): New variable.
4225 (latin_iso8859_2_to_ucs): New variable.
4226 (ucs_to_latin_iso8859_3): New variable.
4227 (latin_iso8859_3_to_ucs): New variable.
4228 (ucs_to_latin_iso8859_4): New variable.
4229 (latin_iso8859_4_to_ucs): New variable.
4230 (ucs_to_latin_iso8859_9): New variable.
4231 (latin_iso8859_9_to_ucs): New variable.
4232 (ucs_to_latin_viscii_lower): New variable.
4233 (latin_viscii_lower_to_ucs): New variable.
4234 (ucs_to_latin_viscii_upper): New variable.
4235 (latin_viscii_upper_to_ucs): New variable.
4236 (ucs_to_latin_tcvn5712): New variable.
4237 (latin_tcvn5712_to_ucs): New variable.
4238 (Qlatin_viscii_lower): New variable.
4239 (Qlatin_viscii_upper): New variable.
4240 (syms_of_mule_charset): Set up new symbol
4241 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4242 (complex_vars_of_mule_charset): Set up new charset
4243 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4244 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4245 `ucs_to_<CHARSET>' tables.
4247 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
4249 * text-coding.c: New file.
4251 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
4253 * mule-charset.c (Fmake_char): Fix problem of 256-set.
4255 * char-ucs.h (Vcharset_ucs_bmp): New variable.
4256 (MAKE_CHAR): Modify for `ucs-bmp'.
4257 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4258 non-MULE characters of BMP.
4260 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
4262 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4265 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
4268 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4269 - Include character.h for `CHAR_ASCII_P'.
4271 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4273 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4274 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4276 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4277 (BYTE_C0_P): Likewise.
4278 (BYTE_C1_P): Likewise.
4279 (Lstream_get_emchar_1): Likewise.
4280 (Lstream_fput_emchar): Likewise.
4281 (Lstream_funget_emchar): Likewise.
4282 (copy_internal_to_external): Likewise.
4283 (copy_external_to_internal): Likewise.
4285 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4286 (BYTE_C0_P): Likewise.
4287 (BYTE_C1_P): Likewise.
4288 (Lstream_get_emchar_1): Likewise.
4289 (Lstream_fput_emchar): Likewise.
4290 (Lstream_funget_emchar): Likewise.
4291 (copy_internal_to_external): Likewise.
4292 (copy_external_to_internal): Likewise.
4294 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4295 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4297 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4298 (BYTE_ASCII_P): Moved to mb-1byte.h.
4300 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
4302 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4304 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4305 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4306 (VALID_CHARPTR_P): Moved to mb-*byte.h.
4307 (VALIDATE_CHARPTR_BACKWARD): Likewise.
4308 (VALIDATE_CHARPTR_FORWARD): Likewise.
4309 (simple_charptr_emchar): Moved to mb-multibyte.h.
4310 (simple_set_charptr_emchar): Likewise.
4311 (simple_charptr_copy_char): Likewise.
4312 (non_ascii_charptr_emchar): Likewise.
4313 (non_ascii_set_charptr_emchar): Likewise.
4314 (non_ascii_charptr_copy_char): Likewise.
4315 (charptr_emchar): Moved to mb-*byte.h.
4316 (set_charptr_emchar): Likewise.
4317 (charptr_copy_char): Likewise.
4319 * mb-1byte.h, mb-multibyte.h: New files.
4321 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
4323 * mb-utf-8.h (MULTIBYTE): New macro.
4324 (MAX_EMCHAR_LEN): Moved from buffer.h.
4325 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4327 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4329 * mb-lb.h, multibyte.h: New files.
4331 * char-1byte.h (Charset_ID): Moved from buffer.h.
4332 (MIN_LEADING_BYTE): Likewise.
4333 (LEADING_BYTE_ASCII): Likewise.
4334 (NUM_LEADING_BYTES): Likewise.
4335 (CHARSETP): Likewise.
4336 (CHARSET_BY_LEADING_BYTE): Likewise.
4337 (XCHARSET_LEADING_BYTE): Likewise.
4338 (XCHARSET_GRAPHIC): Likewise.
4339 (XCHARSET_COLUMNS): Likewise.
4340 (XCHARSET_DIMENSION): Likewise.
4341 (CHAR_CHARSET): Likewise.
4342 (CHAR_LEADING_BYTE): Likewise.
4343 (BREAKUP_CHAR): Likewise.
4344 (Vcharset_ascii): Likewise.
4346 * buffer.h: Include multibyte.h unconditionally.
4347 (VALID_CHARPTR_P): Moved to multibyte.h.
4348 (ASSERT_VALID_CHARPTR): Likewise.
4349 (REAL_INC_CHARPTR): Likewise.
4350 (REAL_INC_CHARBYTIND): Likewise.
4351 (REAL_DEC_CHARPTR): Likewise.
4352 (INC_CHARPTR): Likewise.
4353 (INC_CHARBYTIND): Likewise.
4354 (DEC_CHARPTR): Likewise.
4355 (VALIDATE_CHARPTR_BACKWARD): Likewise.
4356 (VALIDATE_CHARPTR_FORWARD): Likewise.
4357 (charptr_n_addr): Likewise.
4358 (MAX_EMCHAR_LEN): Moved to mb-*.h.
4359 (simple_charptr_emchar): Moved to multibyte.h.
4360 (simple_set_charptr_emchar): Likewise.
4361 (simple_charptr_copy_char): Likewise.
4362 (non_ascii_charptr_emchar): Likewise.
4363 (non_ascii_set_charptr_emchar): Likewise.
4364 (non_ascii_charptr_copy_char): Likewise.
4365 (charptr_emchar): Likewise.
4366 (set_charptr_emchar): Likewise.
4367 (charptr_copy_char): Likewise.
4368 (charptr_emchar_n): Likewise.
4369 (Charset_ID): Moved to char-1byte.h.
4370 (Vcharset_ascii): Likewise.
4371 (CHAR_CHARSET): Likewise.
4372 (CHAR_LEADING_BYTE): Likewise.
4373 (LEADING_BYTE_ASCII): Likewise.
4374 (NUM_LEADING_BYTES): Likewise.
4375 (MIN_LEADING_BYTE): Likewise.
4376 (CHARSETP): Likewise.
4377 (CHARSET_BY_LEADING_BYTE): Likewise.
4378 (XCHARSET_LEADING_BYTE): Likewise.
4379 (XCHARSET_GRAPHIC): Likewise.
4380 (XCHARSET_COLUMNS): Likewise.
4381 (XCHARSET_DIMENSION): Likewise.
4382 (BREAKUP_CHAR): Likewise.
4384 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4386 * character.h: Add document about interface for characters.
4388 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4389 (MAKE_CHAR): Delete comment about
4390 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4391 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4392 (BREAKUP_CHAR): Modify name of arguments.
4393 (CHAR_CHARSET): Modify name of argument.
4395 * buffer.h: Delete document about Emchar accessors.
4397 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4399 * character.h (CHAR_INTP): Moved from buffer.h
4400 (CHAR_OR_CHAR_INTP): Likewise.
4401 (XCHAR_OR_CHAR_INT): Likewise.
4402 (CHECK_CHAR_COERCE_INT): Likewise.
4404 * buffer.h (CHAR_INTP): Moved to character.h
4405 (CHAR_OR_CHAR_INTP): Likewise.
4406 (XCHAR_OR_CHAR_INT): Likewise.
4407 (CHECK_CHAR_COERCE_INT): Likewise.
4409 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4412 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4413 - Include char-1byte.h, char-lb.h or char-ucs.h.
4415 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4417 * buffer.h: Include character unconditionally.
4418 (valid_char_p): Moved to char-*.h.
4419 (non_ascii_valid_char_p): Moved to char-lb.h.
4421 * char-1byte.h, char-lb.h, char-ucs.h: New files.
4423 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4425 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4426 in UTF-2000 because it is not ported yet and not to use
4427 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4428 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4429 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4431 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4432 (CHAR_ASCII_P): Moved from character.h.
4434 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4435 (CHAR_ASCII_P): Likewise.
4436 (CHAR_FIELD1_MASK): Deleted.
4437 (CHAR_FIELD2_MASK): Deleted.
4438 (CHAR_FIELD3_MASK): Deleted.
4439 (MAX_CHAR_BASIC_LATIN): New macro.
4440 (CHAR_FIELD1): Deleted.
4441 (CHAR_FIELD2_INTERNAL): Deleted.
4442 (CHAR_FIELD3_INTERNAL): Deleted.
4443 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4444 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4445 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4446 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4447 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4448 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4449 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4450 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4451 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4452 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4453 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4454 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4455 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4456 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4457 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4458 (MIN_CHAR_COMPOSITION): Deleted.
4459 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4460 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4462 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
4464 * buffer.h: Include mb-utf-8.h in UTF-2000.
4466 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4468 * mb-utf-8.h: New file.
4470 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
4472 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4475 * mule-charset.h, buffer.h (Charset_ID): New type.
4477 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
4479 * mule-canna.c (c2mu): Use `MAKE_CHAR',
4480 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4481 instead of `MULE_CHAR_PRIVATE_OFFSET',
4482 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4483 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4484 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4486 * character.h (Vcharset_japanese_jisx0212): New variable
4489 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
4491 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4492 (charset_by_attributes): Delete array about direction.
4493 (latin_a_char_to_charset): New variable in UTF-2000.
4494 (latin_a_char_to_byte1): New variable in UTF-2000.
4495 (latin_a_char_to_byte2): New variable in UTF-2000.
4496 (Qucs_bmp): New variable.
4497 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4499 (next_allocated_2_byte_leading_byte): Likewise.
4500 (non_ascii_set_charptr_emchar): Likewise.
4501 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4502 `CHARSET_TYPE_256X256' in UTF-2000; modify for
4503 `charset_by_attributes'.
4504 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4505 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4506 and `CHARSET_BY_LEADING_BYTE'.
4507 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4508 `utf-2000-version' to `vars_of_mule_charset'.
4509 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4510 define `leading-code-private-11' in UTF-2000; move setting of
4511 `utf-2000-version' from `syms_of_mule_charset'.
4512 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4515 * character.h (Charset_ID): New type.
4516 (LEADING_BYTE_UCS_BMP): New macro.
4517 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4518 (CHARSET_ID_OFFSET_94): New macro.
4519 (MIN_CHARSET_ID_PRIVATE_94): New macro.
4520 (MAX_CHARSET_ID_PRIVATE_94): New macro.
4521 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4523 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4524 (LEADING_BYTE_LATIN_JISX0201): Likewise.
4525 (CHARSET_ID_OFFSET_96): New macro.
4526 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4527 CHARSET_ID_OFFSET_96 and final-byte.
4528 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4529 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4530 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4531 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4532 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4533 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4534 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4535 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4536 (LEADING_BYTE_THAI_TIS620): Likewise.
4537 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4538 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4539 (CHARSET_ID_OFFSET_94x94): New macro.
4540 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4541 CHARSET_ID_OFFSET_94x94 and final-byte.
4542 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4543 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4544 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4545 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4546 (LEADING_BYTE_CHINESE_GB2312): Likewise.
4547 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4548 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4549 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4550 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4551 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4552 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4553 (CHARSET_TYPE_128X128): New macro.
4554 (CHARSET_TYPE_256X256): New macro.
4555 (XCHARSET_PRIVATE_P): Delete unconditionally.
4556 (charset_by_attributes): Delete array about direction.
4557 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4558 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4559 (MIN_CHAR_94): New macro.
4560 (MAX_CHAR_94): New macro.
4561 (MIN_CHAR_96): New macro.
4562 (MAX_CHAR_96): New macro.
4563 (MIN_CHAR_94x94): New macro.
4564 (MAX_CHAR_94x94): New macro.
4565 (MIN_CHAR_96x96): New macro.
4566 (MAX_CHAR_96x96): New macro.
4567 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4568 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4569 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4571 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4572 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4573 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4574 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4575 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4576 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4577 `XCHARSET_LEADING_BYTE' to make code-point.
4578 (latin_a_char_to_charset): New variable.
4579 (latin_a_char_to_byte1): New variable.
4580 (latin_a_char_to_byte2): New variable.
4581 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4582 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4583 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4585 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4586 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4587 (find_charsets_in_emchar_string): Likewise.
4588 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4590 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4592 (decode_coding_iso2022): Likewise.
4594 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4597 * redisplay.c (redisplay_text_width_emchar_string): Use
4598 `Charset_ID' instead of `unsigned char'.
4599 (redisplay_frame_text_width_string): Likewise.
4601 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4604 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4605 instead of `unsigned char'.
4606 (face_cachel_charset_font_metric_info): Likewise.
4608 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4609 (get_non_ascii_char_table_value): Likewise.
4610 (get_char_table): Likewise.
4611 (put_char_table): Likewise.
4612 (map_over_other_charset): Likewise.
4613 (map_char_table): Likewise.
4615 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4616 instead of `unsigned char'.
4618 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
4620 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4621 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4623 * mule-charset.c (leading_code_private_11): Don't define in
4626 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4627 in UTF-2000 because it is not ported yet and not to use
4628 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4630 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
4632 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4634 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4636 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4639 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4640 of unsigned char to store leading-byte.
4642 * chartab.c (get_non_ascii_char_table_value): Don't use
4643 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4645 * file-coding.c (encode_coding_big5): Delete bogus implementation
4648 * character.h (LEADING_BYTE_*): Delete definition for
4650 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4651 (LEADING_BYTE_PREFIX_P): Deleted.
4652 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4653 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4654 (BUFBYTE_LEADING_BYTE_P): Deleted.
4655 (CHARSET_PRIVATE_P): Deleted unconditionally.
4656 (rep_bytes_by_first_byte): Deleted unconditionally.
4657 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4658 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4659 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4660 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4661 (CHAR_FIELD2): Deleted.
4662 (CHAR_FIELD3): Deleted.
4663 (MAKE_CHAR): Delete definition for non-UTF-2000.
4664 (BREAKUP_CHAR_1_UNSAFE): Deleted.
4665 (breakup_char_1): New implementation.
4666 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4667 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4669 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4671 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4674 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4676 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4677 (CHARSET_PRIVATE_P): Likewise.
4678 (XCHARSET_PRIVATE_P): Likewise.
4679 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4681 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4683 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4685 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4687 * character.h (LEADING_BYTE_*): Changed in UTF2000.
4688 (NUM_LEADING_BYTES): Changed from 128 to 256.
4689 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4690 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4692 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4694 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4696 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4697 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4698 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4699 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4700 (Qchinese_cns11643_3): New variable in UTF2000.
4701 (Qchinese_cns11643_4): New variable in UTF2000.
4702 (Qchinese_cns11643_5): New variable in UTF2000.
4703 (Qchinese_cns11643_6): New variable in UTF2000.
4704 (Qchinese_cns11643_7): New variable in UTF2000.
4705 (syms_of_mule_charset): Define `chinese-cns11643-3',
4706 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4707 and `chinese-cns11643-7' in UTF2000.
4708 (vars_of_mule_charset): Initialize
4709 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4711 (complex_vars_of_mule_charset): Setup charset
4712 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4713 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4715 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4717 * mule-charset.c: Move setting for `leading-code-private-11' from
4718 `syms_of_mule_charset' to `vars_of_mule_charset'.
4720 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4722 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4723 and `NUM_LEADING_BYTES' in assert.
4725 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4727 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4729 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4730 `NUM_LEADING_BYTES' instead of 128.
4732 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
4734 * mule-charset.h (charset_by_leading_byte): Use
4735 `NUM_LEADING_BYTES' instead of 128.
4736 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4738 * mule-charset.c (charset_by_leading_byte): Use
4739 `NUM_LEADING_BYTES' instead of 128.
4740 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4742 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4745 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4747 * mule-charset.c (syms_of_mule_charset): Update to
4750 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4752 * file-coding.c (encode_coding_sjis): New implementation for
4753 UTF2000. (decode_coding_sjis): Ditto.
4755 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4757 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4758 Don't define in UTF2000.
4760 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4763 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4764 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4767 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4769 * config.h.in (CHAR_IS_UCS4): New macro.
4771 * mule-charset.c (rep_bytes_by_first_byte): Modify for
4772 conventional MULE representation.
4773 (syms_of_mule_charset): Update to 0.3 (Imamiya).
4775 * mule-charset.h: Reverted to original.
4777 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4778 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4779 "mule-charset.h" if CHAR_IS_UCS4 is defined.
4781 * character.h: New file.
4783 * file-coding.c (Fmake_coding_system): Set 1 to
4784 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4786 (encode_coding_no_conversion): New implementation for UTF2000.
4788 * file-coding.h (struct Lisp_Coding_System): Add new member
4791 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
4793 * file-coding.c (decode_coding_iso2022): Code-point arguments of
4794 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4795 (encode_coding_iso2022): New implementation for UTF2000.
4797 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4799 * mule-canna.c (c2mu): New implementation for UTF2000.
4802 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4804 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4806 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4808 * file-coding.c (reset_encoding_stream): Set 0 to
4809 `str->iso2022.current_char_boundary' in UTF2000.
4810 (encode_utf8): Don't define in UTF2000.
4811 (encode_coding_utf8): New implementation for UTF-8 representation
4813 (complex_vars_of_file_coding): Define coding-system `utf-8'.
4815 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4817 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4819 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4821 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4823 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4825 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4826 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4827 as UTF-8 in UTF2000.
4828 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4829 (non_ascii_valid_char_p): Don't define in UTF2000.
4830 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4831 (Lstream_get_emchar_1): Likewise.
4832 (utf-2000-version): New variable in UTF2000.
4834 * lread.c (read_escape): Add new reader `u'.
4836 * insdel.c (three_to_one_table): Don't define in UTF2000.
4837 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4838 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4840 (bytind_to_bufpos_func): Likewise.
4841 (buffer_mule_signal_inserted_region): Likewise.
4842 (vars_of_insdel): Don't initialize `three_to_one_table'.
4843 (init_buffer_text): Use `buf->text->mule_size' instead of
4844 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4847 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4848 UTF-8 representation in UTF2000.
4849 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4850 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4851 (decode_coding_iso2022): Don't define local variable `lb' in
4852 UTF2000; don't use LEADING_BYTE in UTF2000; use
4853 `DECODE_ADD_UCS_CHAR' in UTF2000.
4854 (convert_to_external_format): Decode as UTF-8 in UTF2000.
4856 * config.h.in (UTF2000): New macro.
4858 * buffer.h (struct buffer_text): Add new member `mule_size' and
4859 don't add `mule_shifter' and `mule_three_p' in UTF2000.
4860 (valid_char_p): Return always 1 in UTF2000.
4861 (MAX_EMCHAR_LEN): 6 in UTF2000.
4862 (three_to_one_table): Don't define in UTF2000.
4863 (real_bufpos_to_bytind): Modify for UTF-8 representation in
4865 (real_bytind_to_bufpos): Likewise.
4867 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4869 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4871 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4872 representation change.
4873 (Vutf_2000_version): New variable.
4874 (leading_code_private_11): New variable.
4875 (syms_of_mule_charset): Add new variables `utf-2000-version' and
4876 `leading-code-private-11'.
4878 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4879 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4880 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4881 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4882 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4883 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4884 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4885 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4886 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4887 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4888 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4889 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4890 (MIN_CHAR_GREEK): New macro.
4891 (MAX_CHAR_GREEK): New macro.
4892 (MIN_CHAR_CYRILLIC): New macro.
4893 (MAX_CHAR_CYRILLIC): New macro.
4894 (MIN_CHAR_HEBREW): New macro.
4895 (MAX_CHAR_HEBREW): New macro.
4896 (MIN_CHAR_THAI): New macro.
4897 (MAX_CHAR_THAI): New macro.
4898 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4899 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4900 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4901 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4902 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4903 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4904 (CHAR_FIELD2): New inline function.
4905 (CHAR_FIELD3): New inline function.
4906 (MULE_CHAR_PRIVATE_OFFSET): New macro.
4907 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4908 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4909 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4910 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4911 (MIN_CHAR_COMPOSITION): Likewise.
4912 (CHAR_LEADING_BYTE): Modified for character representation change.
4913 (MAKE_CHAR): Likewise.
4915 * lisp.h (Vcharset_latin_iso8859_1): New variable.
4916 (Vcharset_greek_iso8859_7): Likewise.
4917 (Vcharset_cyrillic_iso8859_5): Likewise.
4918 (Vcharset_hebrew_iso8859_8): Likewise.
4919 (Vcharset_thai_tis620): Likewise.
4920 (Vcharset_katakana_jisx0201): Likewise.
4922 2003-01-15 Stephen J. Turnbull <stephen@xemacs.org>
4924 * XEmacs 21.4.12 "Portable Code" is released.
4926 2003-01-14 Sergey Okhapkin <sos@prospect.com.ru>
4928 * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
4929 * s/cygwin.sc: new linker file.
4931 2003-01-14 Stephen J. Turnbull <stephen@xemacs.org>
4933 Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
4935 * redisplay-x.c (x_output_string): Use X11-specified types.
4936 * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
4937 * emacs.c (__free_hook): Use typeof with Intel compiler.
4938 * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
4940 2003-01-08 Andy Piper <andy@xemacs.org>
4942 * unexcw.c (copy_executable_and_dump_data_section): Set the stack
4943 reserve size during unexec().
4945 2003-01-07 Daiki Ueno <daiki@xemacs.org>
4947 * process-unix.c (unix_create_process): Don't let outchannel block.
4949 2003-01-05 Rick Rankin <rick_rankin@yahoo.com>
4951 * emacs.c: Include "syswindows.h" when compiling under Cygwin.
4952 Needed for IsBadReadPtr().
4954 2003-01-03 Stephen J. Turnbull <stephen@xemacs.org>
4956 * XEmacs 21.4.11 "Native Windows TTY Support" is released.
4958 2002-12-14 Ben Wing <ben@xemacs.org>
4960 * callint.c: Declaration error.
4962 * dumper.c (pdump_load): Warning fix.
4963 * process.c: GCPRO error.
4964 * glyphs.c (unmap_subwindow):
4965 * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
4966 * event-stream.c (maybe_kbd_translate): Wrong argument to
4967 character_to_event().
4969 * alloc.c (garbage_collect_1):
4971 * emacs.c (debug_can_access_memory):
4972 * emacs.c (fatal_error_signal):
4973 * emacs.c (mswindows_handle_hardware_exceptions):
4976 * emacs.c (assert_failed):
4977 * emacs.c (syms_of_emacs):
4980 * print.c (std_handle_out_va):
4981 * print.c (write_string_to_stdio_stream):
4982 * print.c (write_fmt_string):
4983 * print.c (printing_badness):
4984 * print.c (printing_major_badness):
4985 * print.c (print_internal):
4986 * print.c (debug_print_no_newline):
4987 * print.c (debug_backtrace):
4988 Be more defensive in handling bad values when printing. Add code
4989 from trunk involving inhibit_non_essential_printing_operations.
4990 When going down or in debug_print(), don't do external conversion
4991 and such and try really, really hard when printing to avoid core
4992 dumping. Add force-debugging-signal, debug_break().
4994 2002-12-12 Stephen J. Turnbull <stephen@xemacs.org>
4996 * dumper.c (pdump_load): Include sysdep.h; retry with truename.
4997 Analysis and original patch by Vin Shelton <acs@xemacs.org>.
4999 2002-12-02 Greg Allen <greg_allen@westlb-systems.co.uk>
5001 * database.c: Fix open_database. Berkeley DB API has changed in
5002 4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5004 2002-11-26 Stephen J. Turnbull <stephen@xemacs.org>
5006 * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5008 2002-11-13 Stephen J. Turnbull <stephen@xemacs.org>
5010 * event-Xt.c (Xt_timeout):
5011 (Xt_timeout_callback):
5012 (emacs_Xt_add_timeout):
5013 (emacs_Xt_remove_timeout):
5014 (Xt_timeout_to_emacs_event):
5015 Turn completed_timeouts from a stack into a queue. Fixes
5016 deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5018 2002-11-07 Wolfram Gloger <wg@malloc.de>
5020 * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5021 * emacs.c (main): Assert that mmap'd allocation is disabled.
5023 2002-10-14 Andy Piper <andy@xemacs.org>
5025 * glyphs-widget.c (layout_query_geometry): add in fiddle
5026 factor. Include border text in width layout calculation.
5027 (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5029 2002-11-02 Stephen J. Turnbull <stephen@xemacs.org>
5031 * XEmacs 21.4.10 "Military Intelligence" is released.
5033 2002-10-17 Raymond Toy <toy@rtp.ericsson.se>
5035 * nas.c: Update for NAS 1.6 and later, from Jon Trulson. Was
5036 using the NAS private array SoundFileInfo that no longer exists in
5037 NAS 1.6 and later. Preserve backward compatibility with NAS 1.5a
5038 and earlier. This is broken for some versions between 1.5a and
5041 2002-10-10 Stephen J. Turnbull <stephen@xemacs.org>
5043 * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5045 * emacs.c (shut_down_emacs): Improve crash message.
5047 2002-10-09 Stephen J. Turnbull <stephen@xemacs.org>
5049 * file-coding.c (determine_real_coding_system): Check for coding
5050 cookie in first LINES_TO_CHECK lines (currently 2). Cater to
5051 shebangs and Python PEP 263.
5053 2002-10-08 Andy Piper <andy@xemacs.org>
5055 * glyphs-widget.c (layout_query_geometry): only resize dynamically
5056 if static sizes haven't been set.
5058 2002-08-30 Mike Alexander <mta@arbortext.com>
5060 * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5063 2002-10-03 Stephen J. Turnbull <stephen@xemacs.org>
5065 * callproc.c (child_setup): 21.4 doesn't have retry_close.
5067 2002-09-20 Mike Sperber <mike@xemacs.org>
5069 (This partially gets back my patch from 2002-07-20 without the
5071 * callproc.c (child_setup): Remove Ben's comment noting confusion
5072 over the file descriptors >= 3: close_process_descs() doesn't
5073 close those. Fix fd range to go up to MAXDESC-1 instead of 64.
5074 * process-unix.c (unix_create_process): Call
5075 begin_dont_check_for_quit to inhibit unwanted interaction (and
5076 thus breaking of X event synchronicity) in the child.
5078 2002-09-26 Golubev I. N. <gin@mo.msk.ru>
5080 * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5083 2002-08-20 Ben Sigelman <bhsigelm@cs.brown.edu>
5085 * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5086 instead of while(XtAppPending()&XtIMXEvent). Upon a gdm logout,
5087 the xemacs process did not exit, but looped infinitely here. This
5090 2002-09-28 Stephen J. Turnbull <stephen@xemacs.org>
5092 * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5093 (find_context): Improve comments.
5095 * regex.c (re_compile_fastmap): Gratuitous #ifdef comment fixes.
5096 (re_match_2): An XCHAR_TABLE operation was missing.
5098 Many of the following changes were inspired by Andy Piper's (now
5099 obsolete) patch to make syntax-table text property lookup optional.
5103 * syntax.h (top level): Document semantics of syntax flags.
5104 * syntax.c (comstr_start, Fforward_comment): Improve comments.
5105 * syntax.c, syntax.h (top level): Document syntax cache better in
5108 [Instrument syntax caching (temporary change)]
5110 * syntax.h (enum syntax_cache_statistics_functions, struct
5111 syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5112 SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5113 * syntax.c (scan_words, Fforward_comment, scan_lists,
5114 Fbackward_prefix_characters):
5115 * font-lock.c (find_context):
5116 Use them to instrument syntax caching.
5117 * syntax.c (struct syntax_cache_statistics, scs_statistics,
5118 syntax_cache_statistics_function_names): New type and variables.
5119 * syntax.c (update_syntax_cache): Update and report statistics.
5121 [Major syntax cache optimizations]
5123 syntax.c (lookup_syntax_properties): Default off.
5125 * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5126 * syntax.c (update_syntax_cache):
5127 Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5129 [Minor syntax cache optimizations and code clarifications]
5131 * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5132 SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5133 SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5134 SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5135 SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5136 (Code clarification.)
5138 * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5139 scan_lists): Compute code from syncode, use Boolean macros instead
5140 of redundant masking operations. (Code clarification; any decent
5141 compiler can do this optimization.)
5143 * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5146 * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5147 PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5148 use F*_single_property_change instead of F*_extent_change.
5149 Currently F*_single_property_change is _much_ less efficient.
5151 * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5152 * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT): Initialize
5153 syntax_cache.object properly, don't leave Qt or Qnil.
5154 (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5155 * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5156 tests for Qt or Qnil.
5158 2002-09-21 Stephen J. Turnbull <stephen@xemacs.org>
5160 * redisplay.c (point_in_line_start_cache):
5161 * extents.c (print_extent_1):
5164 * extents.c (Fset_extent_property): Document `syntax-table' property.
5166 * extents.h (Fnext_single_property_change): EXFUN it.
5168 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
5170 * search.c (clear_unused_search_regs): New static function.
5174 Use it. Fixes "stale match data" bug reported by Martin Stjernholm.
5175 Minor clarifications in comments.
5177 * regex.c (re_match_2_internal): Ensure no stale submatches.
5179 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
5181 * event-Xt.c (enqueue_focus_event): Add missing prototype.
5183 2002-08-29 Jerry James <james@xemacs.org>
5185 * lisp.h: structrures -> structures.
5187 2002-06-03 Andy Piper <andy@xemacs.org>
5189 * frame.c (frame_conversion_internal): add conversion appropriate
5190 for setting frame dimensions in pixels.
5192 * console.h (struct console_methods): add device-specific widget
5195 * emacs.c (main_1): initialize glyph vars.
5197 * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5198 (handle_focus_event_2): new function. Allow focus to
5199 be set to a particular window and widget.
5200 (enqueue_focus_event): new function. Create a
5201 synthetic focus event.
5202 (emacs_Xt_handle_magic_event): call
5203 handle_focus_event_2.
5205 * frame.c (Fset_frame_pixel_height): new function. Allow
5206 pixel-based sizing. Does the right thing on character-oriented
5208 (Fset_frame_pixel_width): ditto.
5209 (Fset_frame_pixel_size): ditto.
5210 (syms_of_frame): declare.
5212 * general-slots.h: add :vertically-justify and
5213 :horizontally-justify.
5215 * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5216 (mswindows_widget_border_width): new function.
5217 (mswindows_combo_box_instantiate): set border widths.
5218 (console_type_create_glyphs_mswindows): declare.
5221 (check_valid_justification): allow vertical and horizontal
5223 (widget_border_width): new function. Call device methods.
5224 (widget_instance_border_width): ditto.
5225 (logical_unit_height): new function. Determine the height of a
5226 logical-unit. Logical units are intended to provide grid-like
5227 layout for subcontrols in a layout. If the layout is
5228 :vertically-justify top then subcontrols will be positioned on
5229 logical-unit boundaries, thus allowing adjacent subcontrols to
5231 (widget_logical_unit_height): ditto for widgets.
5232 (redisplay_widget): misc cleanup.
5233 (widget_spacing): new function. Call device specific
5234 methods. Intended to be the default gap between adjacent widgets.
5235 (widget_query_geometry): use new spacing functions to determine
5236 appropriate geometry.
5237 (initialize_widget_image_instance): initialize horizontal and
5238 vertical justification.
5239 (widget_instantiate): use logica-units where appropriate for
5240 sizing large widgets.
5241 (button_query_geometry): use widget_instance_border_width.
5242 (tree_view_query_geometry): ditto.
5243 (tab_control_query_geometry): ditto.
5244 (edit_field_query_geometry): new function.
5245 (layout_update): pick up :justify, :horizontally-justify and
5246 :vertically-justify none of which worked previously. :justify is
5247 used as a fallback for both horizontal and vertical justification.
5248 (layout_query_geometry): use logical units to size appropriately.
5249 (layout_layout): ditto.
5250 (Fwidget_logical_to_character_width): new function. Allow users to
5251 convert from logical units to characters so that frame sizes can
5252 be set appropriately.
5253 (Fwidget_logical_to_character_height): ditto.
5254 (syms_of_glyphs_widget): declare.
5255 (image_instantiator_edit_fields): add edit_field_query_geometry.
5256 (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5257 :horizontally-justify.
5258 (specifier_vars_of_glyphs_widget): new function. Declare
5259 Vwidget_border_width which is not yet used.
5261 * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5262 (x_widget_border_width): new function.
5263 (x_widget_instantiate): create a sensible name for widgets.
5264 (console_type_create_glyphs_x): declare x_widget_border_width.
5266 * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5267 (struct Lisp_Image_Instance): add :vertically-justify and
5268 :horizontally-justify.
5269 (LAYOUT_JUSTIFY_TOP): new.
5270 (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5271 (ROUND_UP): new macro. Round argument up to next integral
5274 * redisplay-output.c (redisplay_output_layout): misc formatting.
5276 * symsinit.h: declare specifier_vars_of_glyphs_widget.
5278 2002-08-23 Stephen J. Turnbull <stephen@xemacs.org>
5280 * XEmacs 21.4.9 "Informed Management" is released.
5282 2002-08-19 Andy Piper <andy@xemacs.org>
5284 * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5287 * realpath.c (xrealpath): normalize drive spec also so that dir
5288 sep chars are not mixed on cygwin.
5290 2002-08-06 Jerry James <james@xemacs.org>
5292 * window.c (Fsplit_window): Count only half of the divider width
5293 against the left window when splitting horizontally.
5295 2002-06-24 Andy Piper <andy@xemacs.org>
5297 * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5298 toolbar was cleared.
5300 * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5301 function. Split out from mswindows_output_frame_toolbars.
5302 (mswindows_output_frame_toolbars): move clear pieces to
5303 mswindows_output_frame_toolbars.
5305 * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5306 out from gtk_output_frame_toolbars.
5307 (gtk_output_frame_toolbars): move clear pieces to
5308 gtk_clear_frame_toolbars.
5310 * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5311 the frame is cleared. How this ever worked before is a mystery.
5312 (x_output_frame_toolbars): Only output toolbars.
5313 (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5315 * gutter.c (update_gutter_geometry):
5316 Mark frame layout changed.
5317 (update_frame_gutter_geometry, update_frame_gutters):
5318 Respect frame_layout_changed.
5320 * console.h (struct console_methods): add
5321 clear_frame_toolbars_method.
5323 * redisplay.c (redisplay_frame): call
5324 update_frame_toolbars_geometry and re-order update_frame_toolbars.
5326 * toolbar.h: declare update_frame_toolbars_geometry.
5328 * toolbar.c (update_frame_toolbars_geometry): new function. Split
5329 out from update_frame_toolbars. Call clear_frame_toolbars.
5330 (update_frame_toolbars): only output, do not change geometry.
5332 * redisplay.c: add frame_layout_changed.
5334 * redisplay.h: add frame_layout_changed.
5335 (CLASS_RESET_CHANGED_FLAGS): set it.
5336 (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5337 (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5338 (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5340 * device.h (struct device): add frame_layout_changed.
5341 (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5343 * frame.h (struct frame): add frame_layout_changed.
5344 (MARK_FRAME_LAYOUT_CHANGED): new.
5346 2002-06-30 Mike Alexander <mta@arbortext.com>
5348 * event-msw.c (mswindows_need_event): Don't wait for a new message
5349 if the queue is not empty. Suggested by Paul Moore.
5351 2002-06-12 Andy Piper <andy@xemacs.org>
5353 * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5354 for printing on accurately.
5356 2002-06-09 Rick Rankin <rick_rankin@yahoo.com>
5358 * event-msw.c (mswindows_wnd_proc): Add a handler for the
5359 WM_ACTIVATE message. Make sure that the frame is visible if the
5360 window is visible. This seemss to fix the problem where XEmacs
5361 appears to freeze after switching desktops with certain virtual
5363 (debug_output_mswin_message): Added code to output message
5364 parameters for WM_WINDOWPOSCHANGED,
5365 WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5367 2002-05-25 Andy Piper <andy@xemacs.org>
5369 * select-x.c (vars_of_select_x): Fix docstring of
5370 x-selection-strict-motif-ownership
5372 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
5374 * keymap.c (get_keymap):
5375 Add comment about do_autoload GCPROs own args.
5377 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
5379 * bytecode.c (execute_optimized_program): check_opcode ifdef
5380 ERROR_CHECK_BYTE_CODE.
5382 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
5384 Thanks to Ben Wing and Michael Sperber.
5386 * eval.c (Fcommand_execute):
5389 (Fmacroexpand_internal):
5390 (function_argcount):
5391 callint.c (Fcall_interactively):
5392 Add comment about do_autoload GCPROs own args.
5394 * (do_autoload): GCPRO both args as well as local Lisp_Object.
5396 * eval.c (Ffuncall): Extra braces to placate GCC.
5398 2002-08-10 Stephen J. Turnbull <stephen@xemacs.org>
5400 * backtrace.h (grow_specpdl):
5402 * EmacsFrame.c (EmacsFrameSetValues):
5403 * eval.c (grow_specpdl):
5404 * ExternalShell.c (hack_event_masks_1):
5405 * glyphs-x.c (convert_EImage_to_XImage):
5406 (x_finalize_image_instance):
5407 * ralloc.c (page_size):
5409 * xgccache.c (gc_cache_hash):
5410 Fix unsigned comparison warnings.
5412 2002-07-29 Jerry James <james@xemacs.org>
5414 * lread.c (locate_file): Any nonnegative return value indicates
5415 success if MODE is nonnegative.
5417 2002-08-03 Brian A Palmer <bpalmer@rescomp.Stanford.EDU>
5419 * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5422 2002-07-17 Stephen J. Turnbull <stephen@xemacs.org>
5424 * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5426 * dumper.c (pdump_get_indirect_count):
5427 (pdump_scan_by_alignment):
5428 (pdump_dump_root_struct_ptrs):
5429 (pdump_dump_rtables):
5430 (pdump_dump_root_objects):
5432 * nas.c (WaveOpenDataForReading):
5433 * fns.c (print_bit_vector):
5434 * font-lock.c (SINGLE_SYNTAX_STYLE):
5435 * glyphs.c (check_for_ignored_expose):
5436 (find_matching_subwindow):
5438 * imgproc.c (get_histogram):
5439 * redisplay.c (point_in_line_start_cache):
5440 * redisplay-output.c (redisplay_unmap_subwindows):
5441 * symbols.c (defsymbol_massage_name_1):
5442 (defkeyword_massage_name):
5443 (deferror_massage_name_and_message):
5444 * redisplay-x.c (x_output_string):
5445 * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5446 * frame.h (struct frame):
5447 * filelock.c (current_lock_owner):
5448 * doprnt.c (emacs_doprnt_1):
5449 * lisp.h (struct Lisp_Bit_Vector):
5453 2002-02-13 Ben Wing <ben@xemacs.org>
5455 * event-stream.c (reset_key_echo):
5456 * event-stream.c (reset_this_command_keys):
5457 * event-stream.c (execute_command_event):
5458 If console is dead as a result of C-x 5 0, then post-command stuff
5459 needs to be careful and do only non-console-specific stuff.
5461 2002-07-01 Mike Sperber <mike@xemacs.org>
5463 * process-unix.c (unix_send_process): Mark coding_outstream as
5464 non-open upon SIGPIPE.
5466 * event-stream.c (Fnext_event): Reorder switch cases to something
5469 2001-08-13 Dmitry Astapov <adept@umc.com.ua>
5471 * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5472 Don't bogusly reinitialize ascii_character property.
5474 2002-07-08 Mike Sperber <mike@xemacs.org>
5476 * process.c (Fstart_process_internal): Do error checking before we
5477 fork off the child, so the child can't muck with the state of the
5480 2002-07-08 Mike Sperber <mike@xemacs.org>
5482 * ralloc.c (init_ralloc): Allocate properly for pdump.
5484 2002-06-12 Andy Piper <andy@xemacs.org>
5486 * glyphs.c (query_string_geometry): check the string.
5488 * glyphs-widget.c (widget_logical_unit_height): cope with nil
5491 2002-06-17 Jerry James <james@xemacs.org>
5493 * sysdll.c: Remove RTLD_GLOBAL initialization.
5494 * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5496 2002-06-25 Stephen J. Turnbull <stephen@xemacs.org>
5498 * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5500 2002-05-16 Mathias Grimmberger <mgri@zaphod.sax.de>
5502 * sysdep.c (sys_rename): Make sys_rename work for the case where
5503 Windows rename sets errno to EACCES if target file exists.
5505 2002-05-21 Jonathan Harris <jonathan@xemacs.org>
5507 * device-msw.c (mswindows_handle_page_setup_dialog_box):
5508 Fix detection of metric units to work on Win95
5510 2002-05-21 Stephen J. Turnbull <stephen@xemacs.org>
5512 * syswindows.h: #define LOCALE_RETURN_NUMBER. Why, I don't know.
5514 2002-04-25 Andy Piper <andy@xemacs.org>
5516 * redisplay.c (create_text_block): Remove extra comment trailer.
5518 2002-04-24 Andy Piper <andy@xemacs.org>
5520 * redisplay.c (create_text_block): Don't actually add propagation
5521 data if the line ends after we have added a glyph.
5523 2002-04-22 Andy Piper <andy@xemacs.org>
5525 * extents.c (extent_fragment_update): check for glyphs we have
5526 previously displayed.
5527 * extents.c (print_extent_1): warning removal.
5528 * extents.h: change prototype.
5529 * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5530 widths correctly for wide glyphs.
5531 * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5532 * redisplay.c (prop_type): add PROP_GLYPH.
5533 * redisplay.c (struct prop_block): add glyph type
5534 * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5535 to the propagation data.
5536 * redisplay.c (create_text_block): if there is a glyph in the
5537 propagation data use it to salt extent_fragment_update.
5538 * redisplay.c (create_string_text_block): ditto.
5540 2002-04-13 Nix <nix@esperi.demon.co.uk>
5542 * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5543 * redisplay-output.c (compare_runes): Compare them.
5544 * redisplay.c: Update copyright date.
5545 * redisplay.c (pos_data): Add need_baseline_computation field.
5546 * redisplay.c (add_glyph_rune): Update ascent, descent, and
5547 need_baseline_computation; zero yoffset. Set max_pixmap_height
5548 for all pixmaps, not just automatically positioned ones.
5549 * redisplay.c (calculate_yoffset): New, compute yoffset values.
5550 * redisplay.c (calculate_baseline): New, compute textual baseline.
5551 * redisplay.c (add_glyph_rune): Call them.
5552 * redisplay.c (create_text_block): Likewise.
5553 * redisplay.c (create_overlay_glyph_block): Likewise.
5554 * redisplay.c (add_margin_runes): Likewise.
5555 * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5557 * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5558 * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5559 * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5560 * redisplay-msw.c (mswindows_output_string): Likewise.
5561 * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5562 * redisplay-gtk.c (gtk_output_display_block): Likewise.
5563 * redisplay-x.c (x_output_display_block): Likewise.
5565 2002-03-28 Ben Wing <ben@xemacs.org>
5567 * redisplay.c: Fixed bug in redisplay
5568 w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5569 and down of the lines, since they're bigger than the line
5570 size. (It was seen most obviously when there's a horizontal scroll
5571 bar, e.g. do C-h a glyph or something like that.) The problem was
5572 that the glyph-contrib-p setting on glyphs was ignored even if it
5573 was set properly, which it wasn't until now.
5575 2002-04-24 Andy Piper <andy@xemacs.org>
5577 * lisp.h (Dynarr_end): Fix definition.
5579 2002-02-06 Adrian Aichner <adrian@xemacs.org>
5581 * redisplay.c (mark_redisplay): Remove call to
5582 update_frame_window_mirror.
5584 2001-11-15 Andy Piper <andy@xemacs.org>
5586 * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5589 2002-02-13 Andy Piper <andy@xemacs.org>
5591 * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5592 we did in fact enqueue the XM_MAPFRAME event.
5594 2002-01-15 Adrian Aichner <adrian@xemacs.org>
5596 * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5597 to fix problem switching between virtual desktops under virtuawin
5598 virtual window manager.
5600 2001-07-30 Adrian Aichner <adrian@xemacs.org>
5602 * event-msw.c: Typo fix.
5603 * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5604 magic XM_MAPFRAME event has been sent.
5606 2001-11-23 Andy Piper <andy@xemacs.org>
5608 * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5610 2001-11-21 Andy Piper <andy@xemacs.org>
5612 * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5613 mouse events outside the frame.
5615 2002-03-20 Andy Piper <andy@xemacs.org>
5617 * menubar-msw.c (mswindows_popup_menu): warning removal.
5618 * dialog-msw.c (dialog_popped_down): ditto.
5620 2001-12-11 Andy Piper <andy@xemacs.org>
5622 * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5623 * dialog-msw.c (mswindows_make_dialog_box_internal): set
5625 * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5626 * menubar-msw.c (mswindows_handle_wm_command): ditto.
5627 * menubar-msw.c (mswindows_popup_menu): ditto.
5629 2001-10-29 Andy Piper <andy@xemacs.org>
5631 * dialog-msw.c (handle_directory_dialog_box): quit if the user
5634 2002-01-03 Andy Piper <andy@xemacs.org>
5636 * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5640 2002-03-29 Jonathan Harris <jonathan@xemacs.org>
5642 * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5643 * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5644 * device-msw.c (mswindows_handle_page_setup_dialog_box):
5645 Detect and handle case where machine is set up for metric units
5647 2002-04-02 Andy Piper <andy@xemacs.org>
5649 * dired-msw.c (mswindows_get_files):
5650 * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5651 completely handled by XEmacs. Suggested by Thomas Vogler
5652 <mail@thomas-vogler.de>.
5654 2001-11-14 Andy Piper <andy@xemacs.org>
5656 * nt.c (REG_ROOT): change registry key to XEmacs.
5658 2002-04-27 Andy Piper <andy@xemacs.org>
5660 * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5662 2002-04-26 Andy Piper <andy@xemacs.org>
5664 * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5667 2002-03-14 Mike Alexander <mta@arbortext.com>
5669 * event-msw.c (mswindows_unwait_process): New, remove process from
5671 * process-nt.c (nt_finalize_process_data): Call
5672 mswindows_unwait_process
5673 * console-msw.h: Declare mswindows_unwait_process
5675 2002-05-14 Stephen J. Turnbull <stephen@xemacs.org>
5677 * editfns.c (Fdecode_time):
5678 (Fformat_time_string):
5679 Check for invalid time. Thanks to Nick Pakoulin <npak@ispras.ru>.
5680 (make_time): Warning elimination (change arg name).
5682 2001-11-24 Andy Piper <andy@xemacs.org>
5684 * window.c (Fsplit_window): Doc return type.
5686 2002-04-01 Andy Piper <andy@xemacs.org>
5688 * emacs.c (Fkill_emacs): Only output message box in interactive
5691 2002-04-26 Andy Piper <andy@xemacs.org>
5693 * config.h.in: pull in 21.5.x change to stop alloca warnings under
5696 2002-03-18 Gregory Steuck <greg-xemacs-patch@nest.cx>
5698 * unexelf.c: Use ELFSIZE or define from _LP64 to indicate a 64
5701 2002-05-09 Stephen J. Turnbull <stephen@xemacs.org>
5703 * XEmacs 21.4.8 "Honest Recruiter" is released.
5705 2002-05-07 Nix <nix@esperi.demon.co.uk>
5707 Supersedes 2002-04-17 patch.
5709 * process.h (PROCESS_LIVE_P): Use the process status as
5710 evidence of health, not the state of the input stream.
5711 (PROCESS_READABLE_P): Say if the process is readable
5712 from. (It may be dead nonetheless.)
5713 (CHECK_READABLE_PROCESS): Test for that condition.
5715 * process.c (create_process): Use PROCESS_READABLE_P.
5716 (read_process_output, set_process_filter): Likewise.
5718 * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5719 (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5721 This code is #if 0'd, this is not the time to add new functions:
5723 * process.c (Fprocess_readable_p): Report readability status.
5724 * process.c (Qprocess_readable_p): New, associated symbol...
5725 * process.c (syms_of_process): ... initialize it.
5727 2002-05-04 Stephen J. Turnbull <stephen@xemacs.org>
5729 * XEmacs 21.4.7 "Economic Science" is released.
5731 2002-04-17 Nix <nix@esperi.demon.co.uk>
5733 * process.h (PROCESS_LIVE_P): Use the process status as
5734 evidence of health, not the state of the input stream.
5736 2002-04-30 Charles G. Waldman <cgw@xemacs.org>
5738 * sysdep.c (sys_siglist): change "signum" to "signal"
5740 2001-04-21 Martin Buchholz <martin@xemacs.org>
5742 * s/darwin.h: New file.
5743 Thanks to Greg Parker <gparker@cs.stanford.edu>.
5745 2002-04-23 Andreas Jaeger <aj@suse.de>
5747 * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5748 which use lib64 for 64-bit libs.
5749 (START_FILES): Likewise.
5751 2002-02-11 Mike Sperber <mike@xemacs.org>
5754 (x_IO_error_handler):
5755 (x_init_device): Temporarily keep device in static variable
5756 `device_being_initialized' so we can recover gracefully from
5757 internal XOpenDevice failure. (XOpenDevice is documented to
5758 return NULL on failure, but sometimes calls the IO error handler
5761 2002-01-31 John H. Palmieri <palmieri@math.washington.edu>
5763 * dired.c (Ffile_name_all_completions): Change documentation --
5764 remove reference to completion-ignored-extensions.
5765 * dired.c (vars_of_dired): Change documentation for
5766 completion-ignored-extensions -- remove reference to
5767 file-name-all-completions.
5769 2002-03-06 Jerry James <james@xemacs.org>
5771 * emodules.c (emodules_load): Fix multiple loading of same module.
5773 2002-01-25 Andrew Begel <abegel@cs.berkeley.edu>
5774 * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5775 RTLD_LAZY to avoid incorrect symbol binding when using nested
5776 shared libraries on Solaris.
5778 2002-02-12 Stephen J. Turnbull <stephen@xemacs.org>
5780 * fileio.c (Ffind_file_name_handler): Improve docstring.
5782 2002-01-20 Stephen J. Turnbull <stephen@xemacs.org>
5784 * fns.c (Fmapconcat): Improve docstring.
5786 2002-01-03 Eric Gillespie, Jr. <epg@pretzelnet.org>
5788 * device-gtk.c: Add prototype for
5789 emacs_gtk_selection_clear_event_handle.
5790 (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5791 selection. Setup signal handler for "selection_clear_event"
5792 (emacs_gtk_selection_clear_event_handle).
5794 * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5795 other applications owning the clipboard (based on
5796 x_handle_selection_clear).
5798 2001-12-23 William M. Perry <wmperry@gnu.org>
5800 * menubar-gtk.c (gtk_popup_menu) Add sanity checks, fix crash.
5802 2002-01-04 Martin Buchholz <martin@xemacs.org>
5804 * keymap.c (define_key_alternate_name): Parenthesize EQ.
5806 2001-12-17 Stephen J. Turnbull <stephen@xemacs.org>
5808 * XEmacs 21.4.6 "Common Lisp" is released.
5810 2001-12-16 Torsten Duwe <duwe@caldera.de>
5812 * search.c (Freplace_match): Add missing sub-expression functionality.
5814 * buffer.c (decode_buffer): Add a check for pointer type to
5815 decode_buffer, before gcc's CSE optimization reorders a
5816 dereference in front of the allow_string test.
5818 2001-11-16 Darryl Okahata <darrylo@xemacs.org>
5820 * window.c (window_loop): Fix bug that sometimes prevented
5821 window_loop() from iterating across multiple devices. Also, at
5822 Ben's request, changed infloop-detecting code to abort() instead
5823 of silently terminating window_loop().
5825 2001-11-21 Stephen J. Turnbull <stephen@xemacs.org>
5827 Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5828 * editfns.c (make_time): New function.
5829 (Fencode_time): Use it instead of wasteful_word_to_lisp.
5830 * lisp.h (make_time): Prototype and comment it.
5831 * dired.c (wasteful_word_to_lisp): Deprecate.
5832 (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5834 2001-10-31 Kyle Jones <kyle_jones@wonderworks.com>
5836 * fileio.c (auto_save_1): Use current coding system, not
5839 2001-11-13 Ben Wing <ben@xemacs.org>
5842 * window.c (window_truncation_on):
5843 * window.c (syms_of_window):
5844 truncate-partial-width-windows should respect the buffer being
5845 displayed, like other redisplay vars.
5847 2001-11-13 Hirokazu FUKUI <hfukui@sannet.ne.jp>
5849 * event-stream.c (Fread_key_sequence): save current buffer.
5851 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
5853 * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5855 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
5857 * alloc.c (lcrecord_stats): Add space for types defined in modules.
5859 2001-10-26 Mike Alexander <mta@arbortext.com>
5861 * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5863 2001-10-25 Andy Piper <andy@xemacs.org>
5866 * dialog-msw.c (handle_directory_proc): new function.
5867 (handle_directory_dialog_box): new fucntion.
5868 (handle_file_dialog_box): use new directory dialog support.
5869 (mswindows_make_dialog_box_internal): ditto.
5870 * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5872 (mswindows_find_frame): make global.
5873 * fileio.c (Fexpand_file_name): build fix.
5874 * general-slots.h: add Qdirectory.
5875 * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5877 * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5878 cygwin not leaving win32 paths unchanged.
5879 * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5880 cygwin runtime to do path conversion.
5881 (Fmswindows_shell_execute): fix cygwin handling of URLs.
5882 (syms_of_win32): add new function.
5883 * window.c (window_loop): build fix.
5885 2001-10-15 Andy Piper <andy@xemacs.org>
5887 (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5889 2001-10-23 Stephen J. Turnbull <stephen@xemacs.org>
5891 * XEmacs 21.4.5 "Civil Service" is released.
5893 2001-04-08 Danny Colascione <qtmstr@optonline.net>
5895 * glyphs-x.c: Force buffer-tab highlight update when moving the
5896 buffer, avoiding an ugly black border, used for keyboard focus
5897 indication, on a widget that can never have keyboard focus, the
5900 2001-08-30 Daiki Ueno <ueno@unixuser.org>
5902 * process-unix.c (unix_open_multicast_group): Remove too much
5903 conversion between host and network byte order.
5905 2001-09-10 Nix <nix@esperi.demon.co.uk>
5907 * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5908 before replacing them.
5910 * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5913 * src/window.c (undedicate_windows): Use it.
5914 * src/window.h: Add prototype.
5916 2001-09-17 Ben Wing <ben@xemacs.org>
5918 * fileio.c (normalize_filename):
5919 * fileio.c (Fexpand_file_name):
5920 Fix various C++ compile errors in Andy's recent code.
5922 * callint.c (Fcall_interactively):
5923 * editfns.c (Ftemp_directory):
5924 * editfns.c (Fuser_full_name):
5925 * emacs.c (argmatch):
5926 * lread.c (locate_file_map_suffixes):
5927 * redisplay-x.c (x_ring_bell):
5928 Fix sign-compare warnings.
5930 2001-09-08 Andy Piper <andy@xemacs.org>
5932 * fileio.c (normalize_filename): copied from nt.c
5933 * (Ffile_name_directory): enable win32 paths under cygwin.
5934 * (Ffile_name_nondirectory): ditto.
5935 * (directory_file_name): ditto.
5936 * (Fexpand_file_name): ditto.
5937 * (Ffile_truename): ditto.
5938 * (Fsubstitute_in_file_name): ditto.
5939 * (Ffile_name_absolute_p): ditto.
5940 * (Ffile_readable_p): ditto.
5942 2001-09-08 Andy Piper <andy@xemacs.org>
5944 * device-msw.c (mswindows_finish_init_device): remove dde
5946 * device-msw.c (mswindows_init_dde): factor out from
5947 mswindows_finish_init_device()
5948 * device-msw.c (init_mswindows_very_early): new function
5949 initialize but don't enable dde.
5950 * emacs.c (main_1): call init_mswindows_very_early.
5952 * event-msw.c (mswindows_dde_callback): only execute when we are
5954 * symsinit.h: declare init_mswindows_very_early.
5956 2001-05-02 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5958 [sjt: This has been in 21.5 for months with no complaints.]
5960 * console.h (struct console_methods): Added flags member.
5961 (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5962 (CONMETH_IMPL_FLAG):
5963 (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5964 Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5966 * device.c (window_system_pixelated_geometry): Use the above macros.
5968 * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5969 implememntation flag.
5970 * device.h (DEVICE_DISPLAY_P): Use it.
5972 * frame.c (delete_frame_internal): Use the above macro.
5974 * redisplay.c (redisplay_device): Use it.
5975 (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5976 (redisplay_frame): Ditto.
5978 * device-msw.c (mswindows_device_implementation_flags): Removed.
5979 (msprinter_device_implementation_flags): Removed.
5980 (console_type_create_device_mswindows): Removed references to
5981 implementation_flags methods, set implementation flags here.
5982 (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5984 * device-gtk.c (gtk_device_implementation_flags): Removed method.
5985 (console_type_create_device_gtk): Removed method declaration.
5986 Added commented out statement which semantically matches the
5987 commented out statement in the above removed method.
5989 2001-04-14 Gordon Sadler <gbsadler1@lcisp.com>
5991 The attached patch fixes a few warnings.
5993 * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5994 * src/frame-gtk.c: guard against GNOME calls in GTK only
5995 * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5996 * src/select-gtk.c: prototype lisp_to_time
5998 2001-06-08 Ben Wing <ben@xemacs.org>
6000 ------ gc-in-window-procedure fixes ------
6003 * alloc.c (struct post_gc_action):
6004 * alloc.c (register_post_gc_action):
6005 * alloc.c (run_post_gc_actions):
6006 * alloc.c (garbage_collect_1):
6007 Create "post-gc actions", to avoid those dreaded "GC during window
6008 procedure" problems.
6011 Abort, clean and simple, when GC in window procedure. We want
6012 to flush these puppies out.
6015 * glyphs-msw.c (finalize_destroy_window):
6016 * glyphs-msw.c (mswindows_finalize_image_instance):
6017 Use a post-gc action when destroying subwindows.
6020 Declare register_post_gc_action().
6023 * scrollbar-msw.c (unshow_that_mofo):
6024 Use a post-gc action when unshowing scrollbar windows, if in gc.
6026 * redisplay.c (mark_redisplay):
6027 Add comment about the utter evilness of what's going down here.
6029 ------ cygwin setitimer fixes ------
6031 * Makefile.in.in (sheap_objs):
6032 * Makefile.in.in (profile_objs):
6033 * Makefile.in.in (objs):
6034 Compile profile.c only when HAVE_SETITIMER.
6036 * nt.c (mswindows_sigset):
6037 * nt.c (mswindows_sighold):
6038 * nt.c (mswindows_sigrelse):
6039 * nt.c (mswindows_sigpause):
6040 * nt.c (mswindows_raise):
6041 * nt.c (close_file_data):
6045 Move setitimer() emulation to win32.c, because Cygwin needs it too.
6048 * profile.c (Fstart_profiling):
6049 * profile.c (Fstop_profiling):
6050 Make sure we don't compile if no setitimer(). Use qxe_setitimer()
6051 instead of just plain setitimer().
6054 * signal.c (set_one_shot_timer):
6056 Define qxe_setitimer() as an encapsulation around setitimer() --
6057 call setitimer() directly unless Cygwin or MS Win, in which case
6058 we use our simulated version in win32.c.
6061 * systime.h (struct itimerval):
6062 * systime.h (ITIMER_REAL):
6063 Prototype mswindows_setitimer() and qxe_setitimer(). Long
6064 comment about "qxe" and the policy regarding encapsulation.
6067 * win32.c (setitimer_helper_proc):
6068 * win32.c (setitimer_helper_period):
6069 * win32.c (setitimer_helper):
6070 * win32.c (mswindows_setitimer):
6071 Move setitimer() emulation here, so Cygwin can use it.
6072 Rename a couple of functions and variables to be longer and more
6073 descriptive. In setitimer_helper_proc(), send the signal
6074 using either mswindows_raise() or (on Cygwin) kill(). If for
6075 some reason we are still getting lockups, we'll change the kill()
6076 to directly invoke the signal handlers.
6078 ------ windows shell fixes ------
6082 Comments about how these two files must die.
6084 * callproc.c (init_callproc):
6085 On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6086 not just COMSPEC. (more correct and closer to FSF.) Don't
6087 force a value for SHELL into the environment. (Comments added
6088 to explain why not.)
6090 * nt.c (init_user_info):
6091 Don't shove a fabricated SHELL into the environment. See above.
6093 2001-06-01 Ben Wing <ben@xemacs.org>
6095 * Makefile.in.in (ldflags):
6096 eliminate that pesky "defaulting to 00401000" warning.
6100 2001-06-15 Golubev I. N. <gin@mo.msk.ru>
6102 * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6103 * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6105 2001-04-24 Jerry James <james@xemacs.org>
6107 * faces.h: pass parameters to Fadd_spec_to_specifier in the
6110 2001-06-01 Ben Wing <ben@xemacs.org>
6112 * event-msw.c (debug_mswin_messages):
6113 conditionalize the messages that were causing compile errors.
6114 (if only macros could generate #ifdef statements ...)
6116 2001-07-28 Stephen J. Turnbull <stephen@xemacs.org>
6118 * XEmacs 21.4.4 "Artificial Intelligence" is released.
6120 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
6122 * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6124 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
6126 * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6127 * process-unix.c (unix_canonicalize_host_name):
6128 sysdep.c (init_system_name):
6129 Use it to conditionally support IPv6 canonicalization.
6131 2001-05-31 Paul Stodghill <stodghil@cs.cornell.edu>
6134 Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6136 2001-05-19 Paul Krause <paulkrause1@mediaone.net>
6138 * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6139 attempt is made to scroll when no scroll bar is available.
6141 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
6143 * input-method-motif.c (XIM_delete_frame): New callback.
6144 (XIM_init_frame): Register it. (Reapplied by SJT, it somehow
6145 got deleted from 21.4.3.)
6147 2001-06-01 Ben Wing <ben@xemacs.org>
6149 * nt.c (mswindows_utime):
6150 * nt.c (close_file_data):
6151 fix off-by-one-indirection error.
6153 2001-05-29 Adrian Aichner <adrian@xemacs.org>
6155 * fileio.c: Include nt.h. Remove lisp_string_set_file_times()
6156 because set_file_times() now takes Lisp_Object path, instead of
6158 * nt.c: Include buffer.h.
6159 * nt.c (convert_from_time_t): New.
6160 * nt.c (mswindows_utime): New. Use utime, since SetFileTime does
6161 not set mtime correctly.
6162 * nt.h: Declare mswindows_utime().
6163 * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6164 path, instead of char*.
6165 * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6167 2001-05-30 Ben Wing <ben@xemacs.org>
6171 (Stephen, just take all event-msw.c patches. This includes
6172 the "iconify" fix below.)
6175 * event-msw.c (mswindows_dequeue_dispatch_event):
6176 * event-msw.c (assert):
6177 * event-msw.c (emacs_mswindows_quit_p):
6178 * event-msw.c (debug_mswin_messages):
6179 * event-msw.c (debug_output_mswin_message):
6180 * event-msw.c (vars_of_event_mswindows):
6181 Fix yet more problems with C-g handling.
6182 Implement debug-mswindows-events.
6184 2001-05-24 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6186 * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6188 2001-05-23 Ben Wing <ben@xemacs.org>
6190 * event-msw.c (winsock_writer):
6191 * event-msw.c (winsock_closer):
6192 prior kludgy code was clobbering the buffer, thinking it was
6193 "unused" space to store an unneeded return value; instead, use
6194 the variable we've already got staring us in the face.
6196 2001-05-17 Andy Piper <andy@xemacs.org>
6198 * sysfile.h: don't assume that file attributes are boolean
6200 2001-05-23 Ben Wing <ben@xemacs.org>
6202 * device-msw.c (msprinter_init_device):
6203 signal an error rather than crash with an unavailable network
6204 printer (from Mike Alexander).
6207 * event-msw.c (struct winsock_stream):
6208 * event-msw.c (winsock_writer):
6209 * event-msw.c (winsock_closer):
6210 * event-msw.c (make_winsock_stream_1):
6211 cleanup headers. fix (hopefully) an error with data corruption
6212 when sending to a network connection.
6214 * fileio.c (Fexpand_file_name): Fix evil code that attempts
6215 to handle the ~user prefix by (a) always assuming we're referencing
6216 ourselves and not even verifying the user -- hence any file with
6217 a tilde as its first char is invalid! (b) if there wasn't a slash
6218 following the filename, the pointer was set *past* the end of
6219 file and we started reading from uninitialized memory. Now we
6220 simply treat these as files, always.
6222 * buffer.c (common_init_complex_vars_of_buffer): comment change.
6224 2001-05-19 Ben Wing <ben@xemacs.org>
6226 * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6229 * process-nt.c (vars_of_process_nt):
6230 remove unused mswindows-quote-process-args. rec for 21.4.
6232 2001-05-12 Ben Wing <ben@xemacs.org>
6234 * event-msw.c (mswindows_dde_callback):
6235 * event-msw.c (mswindows_wnd_proc):
6236 eliminate cygwin warnings.
6238 2001-05-06 Ben Wing <ben@xemacs.org>
6242 * device-msw.c (print_dialog_worker):
6243 * device-msw.c (mswindows_handle_print_dialog_box):
6244 * device-msw.c (syms_of_device_mswindows):
6245 * dialog-msw.c (mswindows_make_dialog_box_internal):
6247 implement printing the selection when it's selected.
6249 2001-05-20 Drazen Kacar <dave@arsdigita.com>
6251 * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6253 2001-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
6255 * lisp.h (EMACS_INT_MAX): This should be one bit less since
6256 EMACS_INT is signed.
6258 2001-04-15 Michael Lausch <mla@1012surf.net>
6260 * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6261 gtk_widget_request_size() to give scrollbar >0 width for
6264 2001-05-30 William M. Perry <wmperry@gnu.org>
6266 * event-gtk.c: Check for buttons as modifier keys.
6268 2001-05-25 Craig Lanning <CraigL@Knology.net>
6271 Properly find MinGW's <process.h> inside Cygwin's restructured
6272 include directories. Don't try to include <cygwin/version.h>
6273 since we are dropping support for MinGW in versions of Cygwin
6276 Drop support for MinGW in versions of Cygwin before b21.
6278 Properly find MinGW's <process.h> inside Cygwin's restructured
6279 include directories.
6281 Drop support for MinGW in versions of Cygwin before b21.
6283 Even though a.out.h is no longer detected by configure, allow
6284 MinGW to use it until we figure out how to do the job with Win32.
6286 2001-07-11 Matt Tucker <tuck@whistlingfish.net>
6288 * syntax.c (find_start_of_comment):
6289 Fix `unbalanced parentheses' bug when dealing with mixed comment
6290 styles in c++/java/etc. mode
6292 2001-05-29 Mike Alexander <mta@arbortext.com>
6294 * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6295 FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6297 2001-05-17 Andrew Begel <abegel@eecs.berkeley.edu>
6299 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6301 2001-03-31 Mike Sperber <mike@xemacs.org>
6303 * search.c (Freplace_match): Support FSF-style specification of
6304 match subexpression when applied to a buffer.
6306 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
6308 * event-stream.c (is_scrollbar_event): add missing semicolon
6310 2001-05-22 Isaac Hollander <ysh@mindspring.com>
6312 * Makefile.in.in: Use TAR macro instead of hardcoding
6313 tar. Allows use of GNU tar instead of system tar
6315 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
6317 * event-stream.c (is_scrollbar_event): add missing semicolon
6319 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
6321 * XEmacs 21.4.3 "Academic Rigor" is released.
6323 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
6325 * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6327 2001-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
6329 * buffer.c (Vcase_fold_search): Remove obsolete
6330 comment about non ASCII case-fold-search. This
6331 bug has been fixed by case-table changes.
6333 2001-05-11 Stephen J. Turnbull <stephen@xemacs.org>
6335 * event-msw.c: Restore include of events-mod.h.
6337 2001-04-22 zhaoway <zw@debian.org>
6339 * event-stream.c (is_scrollbar_event): Noop returning 0 if
6342 2001-05-10 Stephen J. Turnbull <stephen@xemacs.org>
6344 * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6346 2001-05-08 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
6348 * mule-charset.c (Fmake_charset): Add missing else.
6350 2001-04-23 Ben Wing <ben@xemacs.org>
6352 * event-msw.c (FAKE_MOD_QUIT):
6353 * event-msw.c (mswindows_dequeue_dispatch_event):
6354 * event-msw.c (mswindows_wnd_proc):
6355 * event-msw.c (emacs_mswindows_quit_p):
6356 Get critical quit working.
6358 2001-05-05 Ben Wing <ben@xemacs.org>
6362 * device-msw.c (mswindows_get_default_margin):
6363 * frame-msw.c (mswindows_size_frame_internal):
6364 * frame-msw.c (msprinter_init_frame_1):
6365 * frame-msw.c (vars_of_frame_mswindows):
6366 Change top/bottom margin defaults to 0.5 inches.
6368 2001-05-01 Martin Buchholz <martin@xemacs.org>
6370 Fix link error with gcc 3.0 on Linux.
6371 * terminfo.c (UP): Remove.
6372 * terminfo.c (BC): Remove.
6373 * terminfo.c (PC): Remove.
6374 They weren't used, and in any case, these symbols should be
6375 defined in the *library*.
6377 2001-05-03 Martin Buchholz <martin@xemacs.org>
6379 * s/aix4.h: Fix crash with xlc -O3.
6380 Improve comment explaining how -O3 works.
6382 2001-04-15 Ben Wing <ben@xemacs.org>
6385 * event-stream.c (Fnext_event):
6386 * event-stream.c (is_scrollbar_event):
6387 * event-stream.c (execute_command_event):
6388 Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6389 crash' problem. His fix introduces other problems. We filter
6390 out scrollbar events specifically, making them somewhat invisible
6391 to command-building, and not appearing in `this-command-keys'.
6392 More work is still needed (see comments in event-stream.c), but
6393 this fixes all the major problems.
6395 2001-04-20 Ben Wing <ben@xemacs.org>
6397 * .cvsignore: Added stuff for Windows.
6399 2001-04-28 Ben Wing <ben@xemacs.org>
6401 * buffer.c (Ferase_buffer):
6402 * editfns.c (buffer_insert1):
6403 * editfns.c (Finsert_before_markers):
6404 * editfns.c (Finsert_string):
6405 * editfns.c (Finsert_char):
6406 * editfns.c (Fdelete_region):
6407 * editfns.c (Fwiden):
6408 * editfns.c (Fnarrow_to_region):
6409 remove bogus lines setting zmacs_region_stays to 0.
6411 2001-04-15 Gunnar Evermann <ge204@eng.cam.ac.uk>
6413 * process-unix.c (unix_open_network_stream): If connect() fails
6414 invalidate file descriptor after closing it.
6416 2001-03-08 Mike Alexander <mta@arbortext.com>
6418 * event-msw.c (mswindows_need_event_in_modal_loop):
6419 Don't dispatch a message if we didn't get one.
6420 (mswindows_need_event):
6421 Terminate the correct process when one exits instead of the first
6422 one on Vprocess_list and look for process termination when in
6423 mswindows_protect_modal_loop.
6425 2001-04-19 Stephen J. Turnbull <stephen@xemacs.org>
6427 * XEmacs 21.4.1 "Copyleft" is released.
6429 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
6431 * input-method-motif.c (XIM_delete_frame): New callback.
6432 (XIM_init_frame): Register it.
6434 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
6436 * XEmacs 21.4.0 "Solid Vapor" is released.
6438 2001-04-15 Ben Wing <ben@xemacs.org>
6440 * cmdloop.c (call_command_loop):
6441 Fix braino in bit-rotting code.
6443 2001-04-07 Hrvoje Niksic <hniksic@arsdigita.com>
6445 * extents.c (Fset_extent_endpoints): Force creation of extent info
6446 in buffer_or_string.
6448 * extents.c (process_extents_for_insertion_mapper): Correctly
6449 check for open-open zero-length extents.
6451 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
6453 * lisp.h: New typedefs Memory_count, Element_count.
6456 Sign-compare warning elimination: several unsigned -> signed.
6457 Based on work by Ben Wing <ben@xemacs.org>.
6459 2001-04-14 Stephen J. Turnbull <stephen@xemacs.org>
6461 * XEmacs 21.2.47 "Zephir" is released.
6463 2001-04-02 Jan Vroonhof <jan@xemacs.org>
6465 * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6467 2001-04-03 Mike Sperber <mike@xemacs.org>
6469 * search.c: Revert previous patch due because of release.
6471 2001-03-30 Ben Wing <ben@xemacs.org>
6474 Add missing killpg prototype.
6477 Add a comment about fixing problems when a new entry is added
6480 * frame-msw.c (mswindows_init_frame_1):
6481 Fix compile warnings.
6483 * menubar.c (vars_of_menubar):
6484 Provide `menu-accelerator-support' to indicate that we properly
6485 support %_ in menu specifications, so that package code can
6486 conditionalize on this (and remove %_ from menu specifications
6491 * scrollbar-msw.c (can_scroll):
6493 Fix handling of mouse wheel under Windows to follow standards --
6494 now scrolls window under pointer, not selected window.
6496 2001-03-31 Mike Sperber <mike@xemacs.org>
6498 * search.c (Freplace_match): Support FSF-style specification of
6499 match subexpression when applied to a buffer.
6501 2001-03-15 Martin Buchholz <martin@xemacs.org>
6503 * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6504 function to modify KEYMAP, so map over a copy of the hash table.
6506 2001-03-21 Martin Buchholz <martin@xemacs.org>
6508 * XEmacs 21.2.46 "Urania" is released.
6510 2001-03-20 Dan Holmsand <dan@eyebee.com>
6512 * realpath.c (xrealpath): Make file-truename work with symlinks to
6513 /cygdrive paths on cygwin. Always lowercase drive-letters on
6515 (cygwin_readlink): Don't try to find canonical filename unless
6518 2001-03-15 Stephen J. Turnbull <stephen@xemacs.org>
6520 * ChangeLog: Log GTK merge.
6526 Revert gratuitous whitespace changes from GTK merge.
6528 * emacs.c: Document end of complex #ifdef @ l. 1495.
6531 2001-03-12 Andy Piper <andy@xemacs.org>
6533 * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6534 have to do likewise.
6536 2001-03-12 Andy Piper <andy@xemacs.org>
6538 * sysdep.c: we only support mingw now.
6540 2001-03-09 Andy Piper <andy@xemacs.org>
6542 * unexcw.c (copy_executable_and_dump_data_section): making approx
6543 overrun a warning only.
6545 2001-03-10 William M. Perry <wmperry@aventail.com>
6547 * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6548 satisfy Stephen's identical-after-cpp plea.
6550 2001-03-02 Ben Wing <ben@xemacs.org>
6553 * cmds.c (Fforward_char):
6557 Augment documentation of the most common motion commands to make
6558 note of the shifted-motion support.
6560 2001-03-02 Ben Wing <ben@xemacs.org>
6562 * nt.c (mswindows_fstat):
6563 * nt.c (mswindows_stat):
6564 * search.c (boyer_moore):
6565 Fix compile warnings under Windows.
6567 * sysdep.c (sys_readdir):
6568 Fix buggy filename-conversion code under Mule.
6570 2001-03-09 William M. Perry <wmperry@aventail.com>
6592 * redisplay-output.c:
6598 The Great GTK Merge.
6605 * emacs-widget-accessors.c:
6619 * native-gtk-toolbar.c:
6630 The Great GTK Merge: new files.
6632 2001-02-26 Ben Wing <ben@xemacs.org>
6634 Reapplied Lstream change.
6636 2001-02-26 Ben Wing <ben@xemacs.org>
6638 Undid the last change, since it is more controversial than I
6639 thought. It should be back in at some point soon.
6641 2001-02-25 Ben Wing <ben@xemacs.org>
6644 * callproc.c (Fold_call_process_internal):
6645 * event-msw.c (ntpipe_slurp_reader):
6646 * event-msw.c (ntpipe_shove_writer):
6647 * event-msw.c (winsock_reader):
6648 * event-msw.c (winsock_writer):
6650 * file-coding.c (detect_eol_type):
6651 * file-coding.c (detect_coding_type):
6652 * file-coding.c (determine_real_coding_system):
6653 * file-coding.c (Fdetect_coding_region):
6654 * file-coding.c (decoding_reader):
6655 * file-coding.c (decoding_writer):
6656 * file-coding.c (mule_decode):
6657 * file-coding.c (Fdecode_coding_region):
6658 * file-coding.c (encoding_reader):
6659 * file-coding.c (encoding_writer):
6660 * file-coding.c (mule_encode):
6661 * file-coding.c (Fencode_coding_region):
6662 * file-coding.c (detect_coding_sjis):
6663 * file-coding.c (decode_coding_sjis):
6664 * file-coding.c (encode_coding_sjis):
6665 * file-coding.c (detect_coding_big5):
6666 * file-coding.c (decode_coding_big5):
6667 * file-coding.c (encode_coding_big5):
6668 * file-coding.c (detect_coding_ucs4):
6669 * file-coding.c (decode_coding_ucs4):
6670 * file-coding.c (encode_coding_ucs4):
6671 * file-coding.c (detect_coding_utf8):
6672 * file-coding.c (decode_coding_utf8):
6673 * file-coding.c (encode_coding_utf8):
6674 * file-coding.c (detect_coding_iso2022):
6675 * file-coding.c (decode_coding_iso2022):
6676 * file-coding.c (encode_coding_iso2022):
6677 * file-coding.c (decode_coding_no_conversion):
6678 * file-coding.c (encode_coding_no_conversion):
6679 * glyphs-x.c (write_lisp_string_to_temp_file):
6680 * gpmevent.c (tty_get_foreign_selection):
6683 * lstream.c (Lstream_flush_out):
6684 * lstream.c (Lstream_adding):
6685 * lstream.c (Lstream_write_1):
6686 * lstream.c (Lstream_write):
6687 * lstream.c (Lstream_raw_read):
6688 * lstream.c (Lstream_read_more):
6689 * lstream.c (Lstream_read):
6690 * lstream.c (Lstream_unread):
6691 * lstream.c (Lstream_fputc):
6692 * lstream.c (stdio_reader):
6693 * lstream.c (stdio_writer):
6694 * lstream.c (filedesc_reader):
6695 * lstream.c (filedesc_writer):
6696 * lstream.c (lisp_string_reader):
6697 * lstream.c (struct fixed_buffer_stream):
6698 * lstream.c (make_fixed_buffer_input_stream):
6699 * lstream.c (make_fixed_buffer_output_stream):
6700 * lstream.c (fixed_buffer_reader):
6701 * lstream.c (fixed_buffer_writer):
6702 * lstream.c (struct resizing_buffer_stream):
6703 * lstream.c (resizing_buffer_writer):
6704 * lstream.c (dynarr_writer):
6705 * lstream.c (lisp_buffer_reader):
6706 * lstream.c (lisp_buffer_writer):
6708 * lstream.h (lstream_implementation):
6709 * lstream.h (struct lstream):
6711 * process-nt.c (nt_send_process):
6712 * process-unix.c (unix_send_process):
6714 Correct Lstream lossage due to mixing of signed and unsigned
6715 quantities. All Lstream uses of size_t and ssize_t are now a
6716 single signed data type Lstream_data_count. This fixes problems
6717 under Windows with sending large quantities of data to a process,
6718 and may well fix other subtle bugs.
6720 2001-02-23 Martin Buchholz <martin@xemacs.org>
6722 * XEmacs 21.2.45 "Thelxepeia" is released.
6724 2001-02-21 Martin Buchholz <martin@xemacs.org>
6726 * lisp-union.h (XSETINT):
6729 Reverse previous change of 2001-02-06.
6731 2001-02-20 Matt Tucker <tuck@whistlingfish.net>
6733 Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6735 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6736 * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6737 Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6738 * regex.c (POS_AS_IN_BUFFER): removed
6739 * regex.c (re_search_2):
6740 * regex.c (re_match_2):
6741 Don't use an offset of 1 when calculating buffer positions, since
6742 `BI_BUF_BEGV' does it already.
6744 2001-02-18 Wim Dumon <wim@easics.be>
6746 * insdel.c (prepare_to_modify_buffer): Also check for
6747 supersession when clash-detection is enabled.
6749 2001-02-17 Matt Tucker <tuck@whistlingfish.net>
6751 * regex.c (re_match_2_internal):
6752 Convert temp characters from 'const unsigned char' to 're_char'.
6753 Fix crashing bug with extended characters under mule.
6754 * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6755 syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6756 font-lock, pdump, and new syntax-table code.
6757 * syntax.c (find_start_of_comment):
6758 (find_end_of_comment):
6760 Fix crashing bugs involving moving beyond end of buffer.
6761 * syntax.c (find_start_of_comment):
6762 Fixed logic to allow proper detection of cases where the same
6763 character is used to end both a two-char comment start and a
6764 two-char comment end sequence. Fixes `(forward-comment -1)'.
6765 * syntax.c (find_start_of_comment):
6766 Return position just past last comment-end character for all cases
6767 (previously was only done for two-char comment-end sequences).
6768 * syntax.c (forward-comment):
6769 Take value returned from `find_end_of_comment', rather than
6771 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6772 Properly deal with BUFFERP (syntax_cache.object)
6774 2001-02-17 Martin Buchholz <martin@xemacs.org>
6776 * alloc.c (Fgarbage_collect):
6777 * alloc.c (make_bit_vector_from_byte_vector):
6778 -Wsign-compare-correctness.
6780 2001-02-16 Martin Buchholz <martin@xemacs.org>
6782 * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6783 (XSETCHAR): Likewise.
6784 (XSETOBJ): Likewise.
6786 2001-02-15 Martin Buchholz <martin@xemacs.org>
6788 * mule-canna.c (canna-func-delete_previous):
6789 Rename to canna-func-delete-previous.
6791 2001-02-14 Martin Buchholz <martin@xemacs.org>
6793 * mule-ccl.c (ccl_driver): Warning suppression. Use countof.
6795 2001-02-13 Matt Tucker <tuck@whistlingfish.net>
6797 * font-lock.c (find_context): Fix C++ compile errors introduced by
6800 2001-02-13 Martin Buchholz <martin@xemacs.org>
6802 * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6803 pragma, but earlier ones barf on the same pragma.
6805 2001-02-06 Mike Sperber <mike@xemacs.org>
6807 * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6808 `configure-mule-lisp-directory'.
6810 2001-02-12 Martin Buchholz <martin@xemacs.org>
6812 Make sure dump-id.c is compiled in the same way as other .c's.
6813 Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6814 * dump-id.h: Remove.
6815 * emacs.c: Move dump-id.h into dumper.h.
6816 * dumper.h: Move dump-id.h into dumper.h.
6818 Use standard .c.o rule for building dump-id.o.
6819 Remove preprocessor flags from link command.
6820 Add dump-id.o to ${otherobjs} if PDUMP.
6822 2001-02-07 Matt Tucker <tuck@whistlingfish.net>
6824 Port FSF 20.7 syntax table improvements.
6828 Fixups for new syntax table stuff.
6829 * dired.c: Include syntax.c.
6830 (Fdirectory_files): Initialize regex_match_object and
6832 * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6833 and Fget_char_property.
6835 Use ported FSF 20.7 syntax table improvements.
6840 2001-02-09 Martin Buchholz <martin@xemacs.org>
6842 * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6843 Unixware's enum boolean from sys/types.h.
6845 2001-02-10 Martin Buchholz <martin@xemacs.org>
6847 Fix support for building with latest Purify.
6848 * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6849 (PURIFY_FLAGS): Likewise.
6851 2001-02-09 Martin Buchholz <martin@xemacs.org>
6853 * fileio.c (lisp_string_set_file_times): New.
6854 * fileio.c (Fcopy_file): Use it.
6856 (copy-file filename non-ascii-filename t t)
6857 ==> No such file or directory, non-ascii-filename
6859 2001-02-10 Martin Buchholz <martin@xemacs.org>
6861 * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6862 USHRT_MAX seems clearer than ~0 anyways.
6864 2001-02-09 Martin Buchholz <martin@xemacs.org>
6866 dumper improvements. Inspired by Olivier.
6867 * dumper.c (pdump_max_align): New.
6868 * dumper.c (pdump_add_entry): Use pdump_max_align.
6869 * dumper.c (pdump_get_entry_list): Likewise.
6870 * dumper.c (pdump_scan_by_alignment): Likewise.
6871 Don't iterate through unnecessary alignments.
6872 * dumper.c (pdump_file_get): No need to align result of malloc().
6873 * dumper.c (pdump_mallocadr): Remove.
6874 The result of malloc() is guaranteed to be maximally aligned.
6875 * dumper.c: s/elmt/elt/g;
6876 * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6877 * dumper.c (pdump_alert_undump_object): Likewise.
6878 * dumper.c (pdump_align_table):
6879 Don't support alignments > 64.
6880 Store ALIGNOF's, not shift counts, in table.
6882 2001-02-09 Martin Buchholz <martin@xemacs.org>
6884 * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6885 * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6886 * systime.h: Use HAVE_UTIME.
6887 * sysdep.c (struct utimbuf): Remove.
6888 * sysdep.c (set_file_times): Prefer utime() to utimes().
6889 * config.h.in (HAVE_UTIME): New.
6890 * config.h.in (HAVE_UTIME_H): Remove.
6891 * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6893 2001-02-09 Martin Buchholz <martin@xemacs.org>
6895 * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6897 2001-02-08 Martin Buchholz <martin@xemacs.org>
6899 * s/irix6-0.h: Use the standard system memmove, not bcopy.
6901 2001-02-08 Martin Buchholz <martin@xemacs.org>
6903 * XEmacs 21.2.44 "Thalia" is released.
6905 2001-02-06 Martin Buchholz <martin@xemacs.org>
6907 Fixes crashes in kill-emacs on some systems.
6908 * process-unix.c (unix_kill_child_process):
6909 It's OK for kill() to fail with ESRCH.
6911 2001-02-07 Martin Buchholz <martin@xemacs.org>
6913 Contortions to make .gdbinit tricks work on most systems.
6914 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6915 * alloc.c (dbg_valmask): Make non-const.
6916 * alloc.c (dbg_typemask): Make non-const.
6917 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6918 * alloc.c (dbg_valbits): Make non-const.
6919 * alloc.c (dbg_gctypebits): Make non-const.
6920 * .gdbinit (decode_object): Make it work with AIX cc.
6922 2001-02-06 Martin Buchholz <martin@xemacs.org>
6924 * elhash.c (make_general_lisp_hash_table):
6925 Use simpler and more efficient calloc to clear entries.
6927 2001-02-07 Martin Buchholz <martin@xemacs.org>
6929 * window.c (window_scroll): Work around an AIX C compiler bug.
6930 Fixes 'scroll-up' does nothing problem with xlC.
6932 2001-02-05 Martin Buchholz <martin@xemacs.org>
6934 * .gdbinit: Remove obsolete comment.
6936 2001-01-31 Mike Alexander <mta@arbortext.com>
6938 * select.c (Fown_selection_internal): Set owned_p for device
6941 2001-02-01 Martin Buchholz <martin@xemacs.org>
6944 "not" cannot be used as a macro name as it is an operator in C++
6945 * config.h.in: Stop #defining `not'.
6946 * chartab.c (check_category_char): not ==> not_p
6947 * chartab.h: Likewise.
6948 * regex.c (re_match_2_internal): Likewise.
6950 2001-02-02 Martin Buchholz <martin@xemacs.org>
6952 * lisp-disunion.h: Fix up comments.
6954 2001-01-31 Martin Buchholz <martin@xemacs.org>
6956 * keymap.c (define_key_check_and_coerce_keysym):
6958 Support mouse-6 and mouse-7 bindings in the obvious way.
6960 2001-02-01 Martin Buchholz <martin@xemacs.org>
6962 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6964 2001-01-30 Martin Buchholz <martin@xemacs.org>
6966 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6967 Previous patch missed DEFVAR_INT_MAGIC.
6968 Make sure future DEFVAR_foo use correct types.
6969 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6970 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6971 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6972 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6973 * (DEFVAR_INT): Likewise.
6974 * redisplay.c (vertical_clip): Should be of type Fixnum.
6975 * redisplay.c (horizontal_clip): Likewise.
6976 * lisp.h (dump_add_opaque_int): New.
6977 (dump_add_opaque_fixnum): New.
6979 2001-01-29 Andy Piper <andy@xemacs.org>
6981 * glyphs-widget.c (check_valid_int_or_function): allow symbols
6982 since they can be eval'ed
6984 2001-01-29 Martin Buchholz <martin@xemacs.org>
6986 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6987 Oops, XEmacs redefines `class'. Use `typename' instead.
6989 2001-01-28 Martin Buchholz <martin@xemacs.org>
6991 * dumper.c: Fix C++ compile errors.
6993 2001-01-29 Martin Buchholz <martin@xemacs.org>
6995 * tparam.c: Use correct prototypes.
6997 2001-01-28 Martin Buchholz <martin@xemacs.org>
6999 * sysproc.h: #include util.h for NetBSD's openpty.
7001 2001-01-27 Martin Buchholz <martin@xemacs.org>
7003 More 64-bit correctness.
7004 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7005 Use a typedef `fixnum' for the type used for DEFVAR_INT.
7007 This finally finishes the 64-bit SGI port.
7008 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7009 * symbols.c: Fix up comments and type casts.
7010 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7011 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7012 * symeval.h (Fixnum): New type.
7013 * symeval.h (symbol_value_type): Fix up comment.
7029 * mule-canna.c: A million DEFVAR_INTs here...
7030 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7043 s/int/Fixnum/g in DEFVAR_INT declarations.
7045 2001-01-26 Martin Buchholz <martin@xemacs.org>
7047 Port pdump to SGI alignment-sensitive environment.
7048 Lisp Object sizeof methods now return aligned sizes. Rely on that.
7049 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7051 Define and use aligned reading and writing macros.
7052 Use buffered stdio instead of posix i/o for faster dumping.
7053 Eliminate kludgy 256 byte space for header.
7054 Read and write from dump file using structs for alignment safety.
7055 * dumper.c (pdump_align_stream): New.
7056 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7057 * dumper.c (PDUMP_READ_ALIGNED): New.
7058 * dumper.c (PDUMP_WRITE_ALIGNED): New.
7059 * dumper.c (pdump_static_Lisp_Object): New struct.
7060 * dumper.c (pdump_static_pointer): New struct.
7061 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7062 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7063 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7064 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7066 * dumper.c (pdump_backtrace):
7067 * dumper.c (pdump_get_indirect_count):
7068 * dumper.c (pdump_register_object):
7069 * dumper.c (pdump_register_struct):
7070 * dumper.c (pdump_reloc_one):
7071 * dumper.c (pdump_scan_by_alignment):
7072 * dumper.c (pdump_dump_from_root_struct_ptrs):
7073 * dumper.c (pdump_dump_opaques):
7074 * dumper.c (pdump_dump_rtables):
7075 * dumper.c (pdump_dump_from_root_objects):
7077 * dumper.c (pdump_load_finish):
7078 Use aligned reading and writing.
7080 * dumper.c (pdump_free): Make static.
7081 * dumper.c (pdump_hFile): Likewise.
7082 * dumper.c (pdump_hMap): Likewise.
7084 2001-01-26 Martin Buchholz <martin@xemacs.org>
7086 * XEmacs 21.2.43 "Terspichore" is released.
7088 2001-01-25 Martin Buchholz <martin@xemacs.org>
7090 Type fiddling for window_config.saved_windows_count
7091 * window.c (struct window_config):
7092 Make saved_windows_count member unsigned.
7093 * window.c (sizeof_window_config_for_n_windows):
7094 Make parameter unsigned.
7095 * window.c (mark_window_config):
7096 * window.c (window_config_equal):
7097 * window.c (free_window_configuration):
7098 * window.c (Fset_window_configuration):
7099 * window.c (count_windows):
7100 * window.c (Fcurrent_window_configuration):
7101 * window.c (reinit_vars_of_window):
7102 Update all callers and users.
7104 2001-01-25 Martin Buchholz <martin@xemacs.org>
7106 Alignment correctness for flexible arrays.
7107 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7108 Make alignment-correct. Add interesting comments.
7109 * alloc.c (size_vector):
7110 * alloc.c (make_vector_internal):
7111 * alloc.c (make_bit_vector_internal):
7112 * alloc.c (sweep_bit_vectors_1):
7113 * fns.c (size_bit_vector):
7114 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7115 * window.c (sizeof_window_config_for_n_windows):
7116 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7118 2001-01-24 Martin Buchholz <martin@xemacs.org>
7120 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7122 2001-01-23 Andy Piper <andy@xemacs.org>
7124 * select.c (Fown_selection_internal): pass owned_p
7126 * select-msw.c (mswindows_own_selection): New Signature.
7128 * console.h (struct console_methods): add owned_p to
7131 * select-x.c (x_own_selection): pass owned_p
7132 (hack_motif_clipboard_selection): use owned_p
7133 (vars_of_select_x): new variable -
7134 x_selection_strict_motif_ownership.
7136 2001-01-23 Martin Buchholz <martin@xemacs.org>
7138 * specifier.h (specifier_data_offset): Remove pointless parens.
7139 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7141 2001-01-24 Martin Buchholz <martin@xemacs.org>
7143 Make Lisp_Object sizeof methods be alignment-correct.
7144 pdump must restore objects to the same alignment as the C compiler
7145 assumes. It really matters on SGIs.
7146 * lstream.c (aligned_sizeof_lstream): New.
7147 (sizeof_lstream): Use aligned_sizeof_lstream.
7148 (Lstream_new): Likewise.
7149 * opaque.c (aligned_sizeof_opaque): New.
7150 (sizeof_opaque): Use aligned_sizeof_opaque.
7151 (make_opaque): Likewise.
7152 * specifier.c (aligned_sizeof_specifier): New.
7153 (sizeof_specifier): Use aligned_sizeof_specifier.
7154 (make_specifier_internal): Likewise.
7156 2001-01-23 Martin Buchholz <martin@xemacs.org>
7158 * lstream.h (struct lstream): Use max_align_t for trailing data.
7159 * specifier.h (struct Lisp_Specifier): Likewise.
7161 2001-01-22 Martin Buchholz <martin@xemacs.org>
7163 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7164 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7165 (CCL_SUSPEND): Likewise.
7166 (CCL_INVALID_CMD): Likewise.
7167 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7168 (ccl_driver): Likewise.
7169 (CCL_WRITE_CHAR): Macro hygiene.
7170 (CCL_WRITE_STRING): Macro hygiene.
7172 2001-01-22 Martin Buchholz <martin@xemacs.org>
7174 Port "portable" dumper to SunOS 4 and HP-UX.
7175 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7176 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7177 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7179 2001-01-22 Martin Buchholz <martin@xemacs.org>
7181 * lisp.h (ALIGNOF): A better definition for C++.
7183 2001-01-20 Martin Buchholz <martin@xemacs.org>
7186 Fix printf warnings: int format, long int arg.
7187 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7188 (PUSH_FAILURE_POINT): Use correct printf formats.
7189 (POP_FAILURE_POINT): Use correct printf formats.
7190 Use do {...} while (0)
7192 2001-01-20 Martin Buchholz <martin@xemacs.org>
7194 * XEmacs 21.2.42 "Poseidon" is released.
7196 2001-01-20 Martin Buchholz <martin@xemacs.org>
7198 * console-x.h: typo fix du jour. Remove #if 0'ed code.
7200 2001-01-19 Martin Buchholz <martin@xemacs.org>
7202 De-kludgify FIXED_TYPE free list frobbing.
7203 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7204 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7205 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7206 * alloc.c (Lisp_Free): New pseudo lisp object definition.
7207 * alloc.c (LRECORD_FREE_P): New.
7208 * alloc.c (MARK_LRECORD_AS_FREE): New.
7209 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7210 * alloc.c (STRUCT_FREE_P): Deleted.
7211 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7212 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7213 * alloc.c (STRING_CHARS_FREE_P): New.
7214 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7215 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7216 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7217 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7218 * alloc.c (resize_string): Use new definitions.
7219 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7220 * alloc.c (verify_string_chars_integrity): Use new definitions.
7221 * alloc.c (compact_string_chars): Use new definitions.
7222 * alloc.c: Update monster comments.
7223 * lrecord.h (lrecord_type): Add some new lrecord types for
7226 2001-01-18 Martin Buchholz <martin@xemacs.org>
7228 Improve alignment hackery.
7229 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7230 (max_align_t): Moved from opaque.h - general purpose.
7231 (ALIGN_PTR): Use size_t, not long.
7232 * opaque.h (max_align_t): Move to lisp.h.
7234 2001-01-18 Norbert Koch <nk@LF.net>
7236 * gui.h: Fix and add prototypes to fix build problems.
7238 2001-01-18 Martin Buchholz <martin@xemacs.org>
7240 temacs is going away, so `dump-temacs' is now a bad name.
7241 * .dbxrc (dump-temacs): Rename to `dmp'.
7242 * .gdbinit (dump-temacs): Rename to `dmp'.
7244 2001-01-17 Andy Piper <andy@xemacs.org>
7246 * glyphs.c (print_image_instance): comment to make martin happy.
7248 * glyphs-x.c (x_redisplay_widget): update faces after a frame
7251 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7253 (mswindows_tab_control_redisplay): warning suppression.
7255 * glyphs-widget.c (widget_update): re-write to cope with updated
7257 (widget_instantiate): use new gui_item functions.
7258 (tab_control_update): deleted.
7259 (progress_gauge_update): deleted.
7260 (image_instantiator_progress_guage): take out update reference.
7261 (image_instantiator_tree_view): ditto.
7262 (image_instantiator_tab_control): ditto.
7264 * gui.c (widget_gui_parse_item_keywords): new function. Do things
7266 (gui_item_add_keyval_pair): re-write to cope with descriptors and
7267 return whether anything was changed.
7268 (update_gui_item_keywords): as it sounds.
7270 * gui.h: declare widget_gui_parse_item_keywords.
7272 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7273 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7275 2001-01-17 Martin Buchholz <martin@xemacs.org>
7277 * XEmacs 21.2.41 "Polyhymnia" is released.
7279 2001-01-16 Didier Verna <didier@xemacs.org>
7281 * glyphs.c (image_instantiate): don't use fallbacks when
7282 instantiating a face's background pixmap by inheritance.
7284 2001-01-14 Mike Sperber <mike@xemacs.org>
7286 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7287 Conditionalize accordingly.
7289 2001-01-16 Martin Buchholz <martin@xemacs.org>
7291 * dumper.c (pdump_file_get): Fix a compiler warning.
7293 2001-01-15 Martin Buchholz <martin@xemacs.org>
7295 Make Purify happy when pdumping.
7296 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7297 iniitalizing all bits of new lisp object memory.
7298 * symbols.c (Fmake_local_variable): Likewise.
7299 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7300 * symbols.c (Fdefvaralias): Likewise.
7301 * mule-charset.c (vars_of_mule_charset): Likewise.
7303 2001-01-15 Martin Buchholz <martin@xemacs.org>
7304 Add the `-nd' flag when running pre-dump operations under the debugger.
7305 * .dbxrc (run-temacs): Add `-nd'.
7306 * .dbxrc (update-elc): Likewise.
7307 * .dbxrc (dump-temacs): Likewise.
7308 * .gdbinit (run-temacs): Likewise.
7309 * .gdbinit (check-temacs): Likewise.
7310 * .gdbinit (update-elc): Likewise.
7311 * .gdbinit (dump-temacs): Likewise.
7313 2001-01-14 Martin Buchholz <martin@xemacs.org>
7315 Allow building 64-bit executables on AIX with GNU malloc, e.g.
7316 export OBJECT_MODE=64
7317 configure --pdump --use-union-type=no
7318 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7319 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7321 * miscplay.c (sndcnv8U_2mono):
7322 Avoid two uses of `++' in the same expression.
7323 Suppresses a GCC warning.
7325 2001-01-13 Martin Buchholz <martin@xemacs.org>
7327 Make sure future compilers don't miscompile alloc.c.
7329 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7330 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7332 2001-01-12 Martin Buchholz <martin@xemacs.org>
7334 * dumper.c: A little post-pdump-rename comment fixup.
7336 2001-01-09 Jerry James <james@eecs.ku.edu>
7338 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7340 2001-01-13 Martin Buchholz <martin@xemacs.org>
7342 * *.[ch]: Globally rename symbols using the following `pdump-rename'
7346 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7349 replace_symbol pdump_wire_lists pdump_weak_object_chains
7350 replace_symbol pdump_wire_list dump_add_weak_object_chain
7352 replace_symbol pdump_wires pdump_root_objects
7353 replace_symbol pdump_wire dump_add_root_object
7355 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7356 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7358 replace_symbol dumpstructinfos pdump_root_struct_ptrs
7359 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7360 replace_symbol dumpstructinfo pdump_root_struct_ptr
7361 replace_symbol dumpstruct dump_add_root_struct_ptr
7363 replace_symbol dumpopaque dump_add_opaque
7364 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7365 replace_symbol dumpopaqueinfos pdump_opaques
7366 replace_symbol dumpopaqueinfo pdump_opaque
7368 replace_symbol nb_structdump nb_root_struct_ptrs
7369 replace_symbol nb_opaquedump nb_opaques
7371 replace_symbol align_table pdump_align_table
7372 replace_symbol dump_header pdump_header
7374 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7375 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7378 2001-01-12 Martin Buchholz <martin@xemacs.org>
7380 * s/aix4.h: Keep the C for AIX compiler from overaggressively
7381 optimizing bytecount_to_charcount().
7383 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
7386 (HAVE_DLFCN_H): Removed.
7387 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7389 2001-01-06 Martin Buchholz <martin@xemacs.org>
7391 Portable dumper maintainability improvements.
7392 * alloc.c (staticpro):
7393 * alloc.c (staticpro_nodump):
7394 * alloc.c (garbage_collect_1):
7395 * alloc.c (reinit_alloc_once_early):
7396 * alloc.c (init_alloc_once_early):
7397 * alloc.c: Move dumper functions to alloc.c.
7398 * dumper.c (pdump_backtrace):
7399 * dumper.c (pdump_dump_structs):
7400 * dumper.c (pdump_dump_opaques):
7401 * dumper.c (pdump_dump_rtables):
7402 * dumper.c (pdump_dump_wired):
7404 * dumper.c (pdump_load_check):
7405 * dumper.c (pdump_load_finish):
7406 * dumper.c (pdump_file_unmap):
7407 * dumper.c (pdump_file_get):
7408 * dumper.c (pdump_resource_free):
7409 * dumper.c (pdump_resource_get):
7410 * dumper.c (pdump_file_free):
7411 * dumper.c (pdump_file_try):
7412 * dumper.c (pdump_load):
7413 Remove fixed size limits on staticpro(), staticpro_nodump(),
7414 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7415 Remove custom code for dumping lrecord_implementations_table - use
7417 Remove (most of the) custom code for dumping staticpros - dump it
7418 like any other dynarr.
7420 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
7421 * dumper.c: Moved functions from alloc.c.
7422 * alloc.c (dumpstruct): Moved to dumper.c.
7423 * alloc.c (dumpopaque): Likewise.
7424 * alloc.c (pdump_wire): Likewise.
7425 * alloc.c (pdump_wire_list): Likewise.
7427 * lisp.h (Dynarr_sizeof): New.
7428 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
7429 * lisp.h (Dynarr_end): New. Very slightly C++oid.
7430 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
7432 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7433 * lisp.h (dumpopaque): ditto.
7434 * lisp.h (pdump_wire): ditto.
7435 * lisp.h (pdump_wire_list): ditto.
7437 2001-01-09 Martin Buchholz <martin@xemacs.org>
7439 * make-src-depend (PrintPatternDeps):
7440 Use `sort' to make output independent of perl version.
7442 2001-01-08 Martin Buchholz <martin@xemacs.org>
7445 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7446 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7448 2001-01-03 Didier Verna <didier@xemacs.org>
7450 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7451 that `focus_frame' is alive before thinking of calling
7452 `redisplay_redraw_cursor' on it.
7454 2001-01-08 Martin Buchholz <martin@xemacs.org>
7456 * XEmacs 21.2.40 is released.
7458 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
7460 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7462 2001-01-06 Martin Buchholz <martin@xemacs.org>
7464 * alloc.c (dbg_valmask): Make const.
7465 * alloc.c (dbg_typemask): Make const.
7466 * alloc.c (dbg_USE_UNION_TYPE): Make const.
7467 * alloc.c (dbg_valbits): Make const.
7468 * alloc.c (dbg_gctypebits): Make const.
7470 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
7472 * redisplay-x.c (x_bevel_area):
7473 redisplay.h (struct rune):
7474 Typo fixes in comments.
7476 2001-01-05 Andy Piper <andy@xemacs.org>
7478 * glyphs-x.c (x_redisplay_widget): use size changed for offset
7481 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7483 2001-01-05 Martin Buchholz <martin@xemacs.org>
7485 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7487 * mule-ccl.c (stack_idx_of_map_multiple):
7488 Non const global data must not be initialized!
7489 Found by MIYASHITA Hisashi.
7491 2001-01-02 Andy Piper <andy@xemacs.org>
7493 * frame.c (change_frame_size): make sure frame size is always
7496 * glyphs.c (image_instance_layout): minor code reuse.
7498 * window.c (Fcurrent_window_configuration): revert previous
7501 2001-01-02 Martin Buchholz <martin@xemacs.org>
7504 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7506 2000-12-31 Andy Piper <andy@xemacs.org>
7508 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7509 when widget gets unmapped.
7511 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7512 function. Make sure widgets losing focus don't just drop it.
7513 (handle_focus_event_1): record the widget with focus.
7515 2000-12-31 Andy Piper <andy@xemacs.org>
7517 * window.c (allocate_window): use
7518 make_image_instance_cache_hash_table.
7519 (make_dummy_parent): ditto.
7520 (Fset_window_configuration): ditto.
7522 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
7524 * glyphs.c (process_image_string_instantiator): use
7526 (get_image_instantiator_governing_domain): ditto.
7527 (normalize_image_instantiator): ditto.
7528 (instantiate_image_instantiator): ditto.
7529 (make_image_instance_1): ditto.
7530 (image_instantiate): ditto. Key on glyph *and* instantiator type.
7531 (instantiator_eq_equal): new function for use with instance hash
7533 (instantiator_eq_hash): ditto.
7534 (make_image_instance_cache_hash_table): create a suitable hash
7535 table for storing image instances.
7537 * elhash.h (hash_table_weakness): new internal weakness type
7538 HASH_TABLE_KEY_CAR_VALUE_WEAK.
7539 declare new functions.
7541 * elhash.c (finish_marking_weak_hash_tables): introduce yet
7542 another weakness type for glyphs.
7543 (make_standard_lisp_hash_table): new function split out from
7544 make_general_lisp_hash_table.
7545 (make_lisp_hash_table): call make_standard_lisp_hash_table.
7546 (hash_table_instantiate): ditto.
7547 (Fmake_hash_table): ditto.
7549 2000-12-31 Martin Buchholz <martin@xemacs.org>
7551 * XEmacs 21.2.39 is released.
7553 2000-12-29 Andy Piper <andy@xemacs.org>
7555 * menubar.c (menubar_visible_p_changed): signal the frame changed.
7557 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7558 the frame has changed so that we pick up geometry changes such as
7561 2000-12-28 Andy Piper <andy@xemacs.org>
7563 * lastfile.c (my_ebss): make a char array so we can pad the
7564 bss. Fixes cygwin unexec.
7566 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7568 2000-12-26 Andy Piper <andy@xemacs.org>
7570 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7571 comments and try and be more precise about a non-/SIGIO world.
7572 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7575 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7576 we don't normalize to zero width or height.
7578 2000-12-24 Andy Piper <andy@xemacs.org>
7580 * Makefile.in.in (ldflags): add -mwindows when appropriate.
7582 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
7584 * s/sco5.h: SCO 5 has pty support.
7586 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
7588 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7589 input-method-xlib.c contains whole contents of input-method-xfs.c,
7590 so we can use input-method-xlib.c's code for USE_XFONTSET
7592 * input-method-xfs.c: removed.
7594 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
7596 * file-coding.h (enum coding_category_type): reorder enumerators to
7597 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
7598 (now one greater than largest real coding_category_type enumerator).
7599 * file-coding.c (coding_category_symbol, coding_category_by_priority,
7600 coding_category_system, fcd_descriptihon_1, decode_coding_category,
7601 Fcoding_category_list, Fset_coding_priority_list,
7602 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7603 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7605 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
7607 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7608 * redisplay-output.c (redisplay_output_window): Clear top of window
7609 when face is changed.
7610 * redisplay-x.c (x_redraw_exposed_window): Call
7611 redisplay_clear_top_of_window.
7612 * redisplay.h: Publish redisplay_clear_top_of_window.
7614 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
7616 * buffer.c (Fkill_buffer): Map over all devices.
7617 * window.c (window_loop): Remove UNSHOW_BUFFER code.
7618 (list_windows): New function.
7619 (list_all_windows): Ditto.
7620 (Freplace_buffer_in_windows): Use them.
7622 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7624 * database.c (berkdb_subtype): Recognize new subtype `queue'.
7625 (Fopen_database): Use `db_create' instead of `db_open'.
7626 (syms_of_database): Initialize Qqueue.
7628 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
7630 * buffer.c (common_init_complex_vars_of_buffer): Initialize
7631 buffer_local_face_property.
7632 * buffer.h (struct buffer): New member buffer_local_face_property.
7633 * window.c (Fset_window_buffer): Mark window's face as changed
7634 when buffer has buffer local face.
7635 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7636 * objects.c (color_after_change): Set buffer_local_face_property
7637 when locale of face specifier is buffer.
7638 * objects.c (font_after_change): Ditto.
7639 * objects.c (face_boolean_after_change): Ditto.
7640 * glyphs.c (image_after_change): Ditto.
7642 2000-12-09 Dan Holmsand <dan@eyebee.com>
7644 * nt.c (mswindows_fstat): Report file permissions, volume serial
7645 number, etc. Code adapted from FSF Emacs 20.7.
7647 2000-12-09 Dan Holmsand <dan@eyebee.com>
7649 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7650 of stat when we don't have symbolic links, to make sure
7651 mswindows_stat is called on mswindows.
7653 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
7655 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7657 2000-12-12 Martin Buchholz <martin@xemacs.org>
7659 * doprnt.c (emacs_doprnt_1): More printing fixes.
7660 Make printing of numbers compatible with libc and FSF Emacs.
7661 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7662 Use the system printf to do most of the hard work of formatting,
7663 instead of doprnt_1().
7664 Calculate memory to allocate for format string.
7665 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7666 (doprnt_1): Cleaner code and documentation.
7668 2000-12-01 Jerry James <james@eecs.ukans.edu>
7670 * Makefile.in.in: Use the loop variable to install headers.
7672 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7674 * window.c (Fsplit_window): Don't invalidate face cache.
7676 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7678 * minibuf.c (Fall_completions): Undo the previous change
7679 which removed checking elements start with space.
7681 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
7683 * mule-canna.c: Didier suppression.
7685 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
7687 * mule-canna.c: rename static unsigned char buf[] to key_buffer
7688 (warning suppression). Add English comment translations.
7690 2000-12-05 Martin Buchholz <martin@xemacs.org>
7692 * unexelfsgi.c (unexec): Better test for mmap failure.
7694 2000-12-05 Martin Buchholz <martin@xemacs.org>
7696 * XEmacs 21.2.38 is released.
7698 2000-12-05 Martin Buchholz <martin@xemacs.org>
7700 * redisplay.c (bar-cursor): Make a user variable.
7702 * symsinit.h: Add init_postgresql_from_environment.
7704 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7706 * regex.c: Convert to clean C.
7708 2000-12-05 Dan Holmsand <dan@eyebee.com>
7711 Don't #include sysfile.h. Revert to duplicating PATH_MAX
7713 (sys_readlink): renamed to system_readlink to avoid conflict with
7714 the other sys_readlink.
7716 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
7718 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7720 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
7722 * postgresql.c (init_postgresql_from_environment): new function.
7723 (vars_of_postgresql): Move code initializing Lisp variables out and
7724 into init_postgresql_from_environment.
7725 emacs.c (main_1): Call init_postgresql_from_environment if and only
7726 if running a dumped XEmacs.
7728 2000-08-31 Dan Holmsand <dan@eyebee.com>
7730 * buffer.c: Make find-file-compare-truenames default to true on
7733 * realpath.c (win32_abs_start):
7735 (win32_readlink): New functions.
7736 (xrealpath): Return really real filenames on windows.
7738 * fileio.c (Ffile_truename): Make file-truename work on windows.
7740 2000-11-29 Didier Verna <didier@xemacs.org>
7742 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7743 * faces.c (update_face_cachel_data): use it.
7744 * faces.c (add_face_cachel): use it. Complete background pixmap
7745 frobbing in face cache if `update_face_cachel_data' has not done so.
7747 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
7749 * search.c (string_match_1): Don't set last_thing_searched
7752 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
7754 * buffer.c: Include casetab.h
7755 (common_init_complex_vars_of_buffer): Use new case-table object.
7756 * buffer.h: Include casetab.h
7757 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7758 (DOWNCASE_TABLE_OF): Ditto.
7759 * bufslots.h: Remove char-tables and add case-table.
7760 * casetab.c: Include casetab.h
7761 (CASE_TABLE_P): Removed.
7762 (mark_case_table): New function.
7763 (allocate_case_table): New function.
7764 (Fcase_table_p): Use new case-table.
7765 (case_table_char): New function.
7766 (Fget_case_table): Ditto.
7767 (Fput_case_table): Ditto.
7768 (Fput_case_table_pair): Ditto.
7769 (Fcopy_case_table): Ditto.
7770 (Fcurrent_case_table): Return case-table.
7771 (Fstandard_case_table): Return case-table.
7772 (Fset_case_table): Fix doc-string.
7773 (set_case_table): Use case-table
7774 (syms_of_casetab): DEFSUBR new functions.
7775 (complex_vars_of_casetab): Set up standard case-table.
7776 * casetab.h: New file.
7777 * editfns.c: Include casetab.h
7778 (Fcompare_buffer_substrings): Use case-table.
7779 * inline.c: Include casetab.h
7780 * lisp.h: Remove bogus extern.
7781 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7782 * search.c: Include casetab.h
7783 (TRANSLATE_ASCII): Removed.
7784 (TRANSLATE): Unconditionally translate character.
7785 (looking_at_1): Use case-table.
7786 (string_match_1): Ditto.
7787 (fast_string_match): Ditto.
7788 (search_command): Ditto.
7789 (search_buffer): Separate boyer_moore. Check whether
7790 boyer_moore is possible.
7791 (simple_search): New function.
7792 (boyer_moore): Separated from search_buffer. Translate char.
7794 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
7796 * regex.c (RE_TR_ASCII): Removed.
7797 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7798 (PATFETCH): Call PATFETCH_RAW.
7799 (PATFETCH_RAW): Fetch Emchar.
7800 (PATUNFETCH): Decrement charptr.
7801 (GET_BUFFER_SPACE): Rename b to buf_end.
7803 (BUF_PUSH_2): Ditto.
7804 (BUF_PUSH_3): Ditto.
7805 (EXTEND_BUFFER): Ditto.
7806 (SET_LIST_BIT): Ditto.
7807 (regex_compile): Ditto. Translate non ASCII char.
7808 (compile_range): Ditto.
7809 (re_search_2): Ditto.
7810 (re_match_2_internal): Compare Emchar.
7811 (bcmp_translate): Ditto.
7813 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
7815 * lisp.h (basic char/int typedefs): comment improvement.
7817 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
7819 * emacs.c (main_1): unconditional pdump unstomping; don't save and
7820 unstomp inhibit_site_lisp. Improve comments.
7822 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
7824 * mule-charset.c (Fcharset_property): improve type checking, comments.
7826 2000-11-28 Andy Piper <andy@xemacs.org>
7828 * redisplay-output.c (redisplay_output_subwindow): make sure we do
7829 clipped display for windows in the gutter also.
7830 (redisplay_display_boxes_in_window_p): change semantics of return
7831 codes to be more intuitive.
7833 * gutter.h: declare display_boxes_in_gutter_p.
7835 * gutter.c (display_boxes_in_gutter_p): new function for
7838 2000-11-22 Andy Piper <andy@xemacs.org>
7840 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7843 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
7845 * callproc.c (Fold_call_process_internal):
7846 * gpm.c (Freceive_gpm_event):
7847 (tty_get_foreign_selection): Might be just warning supression.
7848 * fileio.c (Fwrite_region_internal):
7849 (Fset_visited_file_modtime):
7850 * keymap.c (event_matches_key_specifier_p):
7851 Initialize GCPROed variable.
7853 * menubar-x.c (command_builder_find_menu_accelerator):
7854 Initialize before use.
7856 2000-11-23 Andy Piper <andy@xemacs.org>
7858 * unexcw.c (unexec): make the resulting executable executable.
7860 2000-11-21 Martin Buchholz <martin@xemacs.org>
7862 * doc.c (get_doc_string):
7863 Use size_t, not int, for result of XSTRING_LENGTH.
7865 * cmds.c (Fdelete_char):
7866 * cmds.c (Fpoint_at_eol):
7867 * cmds.c (Fself_insert_command):
7868 Use EMACS_INT, not int, for result of XINT.
7869 Someday, someone will want to insert more than 2**31 identical characters.
7871 * cmds.c (Fdelete_char):
7872 * cmds.c (Fdelete_backward_char):
7873 * syntax.c (Fforward_word):
7874 * syntax.c (Fforward_comment):
7875 Make COUNT argument optional, for consistency with forward-char et al.
7877 2000-11-22 Martin Buchholz <martin@xemacs.org>
7880 * print.c (long_to_string):
7881 Return a useful value: the pointer at end of data written.
7884 Use `static const char * const' for constant strings.
7885 (union printf_arg): Delete `i', `ui' members.
7888 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7889 Do all printf-ing via the `l' specifier.
7890 Use EMACS_INT instead of int.
7893 2000-11-20 Didier Verna <didier@xemacs.org>
7895 * faces.c (update_face_cachel_data): don't frob the background
7896 pixmap when the window is being created. The face is needed but
7899 2000-11-20 Andy Piper <andy@xemacs.org>
7901 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7902 messing with a debug environment.
7904 2000-11-20 Martin Buchholz <martin@xemacs.org>
7906 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7908 2000-11-20 Martin Buchholz <martin@xemacs.org>
7910 * casetab.c (Fcase_table_p): Fix compile error and crash.
7912 2000-11-18 Philip Aston <philipa@mail.com>
7914 * s/cygwin32.h: Cygwin has SVR4-like pty support.
7916 2000-11-18 Martin Buchholz <martin@xemacs.org>
7918 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
7919 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7921 2000-11-17 Martin Buchholz <martin@xemacs.org>
7923 * config.h.in: Define HAVE_ELF_H if elf.h exists.
7924 * unexelf.c: Use HAVE_ELF_H.
7925 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7926 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7927 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7928 Greg Harrington <greg_harrington@hotmail.com> provided a machine
7930 So this is an unexelfsgi.c from a different line of development.
7932 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
7934 * regex.c (RE_TR_ASCII): New function.
7935 (RE_TRANSLATE): Call it.
7937 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
7939 * buffer.h (TRT_TABLE_OF): Remove assert.
7940 (IN_TRT_TABLE_DOMAIN): Removed.
7942 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
7944 * free-hook.c (log_gcpro):
7945 (show_gcprohist): Add support for GCPRO5.
7947 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
7949 * emacs.c (main_1): Improve -sd error message when --pdump=no.
7951 2000-11-16 Olivier Galibert <galibert@xemacs.org>
7953 * symeval.h: Declare flush_all_buffer_local_cache.
7955 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7956 (flush_buffer_local_cache): Added.
7957 (flush_all_buffer_local_cache): Added.
7959 * lrecord.h: Remove unused XD_LO_RESET_NIL.
7961 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7962 (pdump_dump_data): Ditto.
7963 (pdump_reloc_one): Ditto.
7964 (pdump): Remove unused pdump_qnil. Flush buffer local caches
7968 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
7970 * buffer.c: Remove if 0'ed entry.
7971 * buffer.h: Rewrite TRT to use char-table.
7972 * bufslots.h: Remove mirror tables.
7973 * casetab.c: Remove mirror tables.
7974 (CASE_TABLE_P): New macro.
7975 (Fcase_table_p): Element of a case table is string or char-table.
7976 (make_mirror_trt_table): Removed.
7977 (set_case_table): Setup char-table from strings for backward
7979 * dired.c (Fdirectory_files):
7980 * dired-msw.c: (mswindows_get_files):
7981 * lisp.h: Change prototype of re_pattern_buffer.
7982 * regex.c: (RE_TRANSLATE): New macro.
7983 (TRANSLATE_P): Ditto.
7984 Change translate to type RE_TRANSLATE_TYPE.
7985 * regex.h: Define RE_TRANSLATE_TYPE
7986 * search.c (TRANSLATE): New macro.
7987 (TRANSLATE_ASCII): New macro.
7988 Translate table is changed to Lisp_Object.
7989 (signal_failure): Inhibit return.
7991 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
7998 Do UNGCPRO before return.
8000 2000-11-14 Martin Buchholz <martin@xemacs.org>
8002 * XEmacs 21.2.37 is released.
8004 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
8006 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8007 Add comments about discarded return value.
8009 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
8012 * event-stream.c: Fix comments. Remove some #if 0'ed part.
8014 2000-10-27 Andy Piper <andy@xemacs.org>
8016 * gutter.c (Fset_default_gutter_position): default left and right
8018 (calculate_gutter_size): calculate resonable heuristic for left
8019 and right gutter sizes.
8020 (specifier_vars_of_gutter): change left and right gutter sizes to
8022 (calculate_gutter_size_from_display_lines): new function.
8023 (output_gutter): check for resizing on left and right gutters.
8024 (clear_gutter): don't special case top and left gutters.
8025 (specifier_vars_of_gutter): use new signature for
8026 set_specifier_caching.
8028 * glyphs-x.c (x_redisplay_widget): spelling fix.
8029 * glyphs.c (specifier_vars_of_glyphs):
8030 * menubar.c (specifier_vars_of_menubar):
8031 * redisplay.c (specifier_vars_of_redisplay):
8032 * toolbar.c (specifier_vars_of_toolbar):
8033 * window.c (specifier_vars_of_window):
8034 * scrollbar.c (specifier_vars_of_scrollbar):
8035 (complex_vars_of_scrollbar): use new signature for
8036 set_specifier_caching.
8038 * specifier.c (set_specifier_caching): include recompute flag.
8039 (recompute_one_cached_specifier_in_window): always recompute if
8041 (recompute_one_cached_specifier_in_frame): ditto.
8043 * specifier.h (struct specifier_caching): add recompute flag.
8045 2000-10-24 Andy Piper <andy@xemacs.org>
8047 * unexcw.c (copy_executable_and_dump_data_section): add new
8048 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8051 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
8053 * console-x.h (x_device): New member modifier_release_time.
8054 * event-Xt.c (x_handle_sticky_modifiers):
8055 Bound interval modifier keys are sticky.
8056 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8057 * events.h: extern it.
8059 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
8061 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8063 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
8065 * event-stream.c (execute_command_event): Preserve current_events
8066 and the like when event is misc-user-event.
8067 Inhibit quit during the call to maybe_echo_keys.
8069 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
8071 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8072 symlink when buffer is killed.
8073 (inhibit_clash_detection): New variable.
8075 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
8077 * console.c (Fset_input_method): Trigger redisplay on tty.
8079 2000-11-07 Martin Buchholz <martin@xemacs.org>
8081 * process.c (Fprocess_status): Revert to previous behavior:
8082 (process-status "nosuchprocess") ==> nil
8084 2000-11-06 Martin Buchholz <martin@xemacs.org>
8086 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8087 Work around another GCC 2.95.2 optimizer bug.
8089 2000-11-02 Martin Buchholz <martin@xemacs.org>
8091 * process.c (Fget_process): Use LIST_LOOP_2.
8092 (kill_buffer_processes): Use LIST_LOOP_2.
8094 * minibuf.c (Fall_completions):
8095 Delete old non-functional code for FSF fourth argument.
8097 * frame.c (frame_matches_frame_spec):
8098 Renamed from `frame_matches_frametype'. Update all callers.
8099 (device_matches_device_spec):
8100 Renamed from 'device_matches_console_spec'. Update all callers.
8102 * doc.c (Fsubstitute_command_keys):
8103 Remove buffer overflow crash. Small code cleanups.
8105 * casetab.c (check_case_table): Simpler code.
8107 * window.c (Freplace_buffer_in_windows):
8108 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8109 (and similar implementation) as Fdelete_windows_on.
8112 * alloc.c (Fmake_list):
8113 * alloc.c (make_vector):
8114 * alloc.c (Fmake_vector):
8115 * alloc.c (make_bit_vector):
8116 * alloc.c (Fmake_bit_vector):
8117 * alloc.c (Fbit_vector):
8118 * alloc.c (Fmake_string):
8119 * alloc.c (Fpurecopy):
8120 * alloc.c (Fmemory_limit):
8122 * buffer.c (Fget_buffer):
8123 * buffer.c (Fkill_buffer):
8124 * buffer.c (complex_vars_of_buffer):
8125 * bytecode.c (Fcompiled_function_stack_depth):
8126 * callint.c (Fprefix_numeric_value):
8128 * event-stream.c (Fread_key_sequence):
8130 * casetab.c (Fcase_table_p):
8131 * casetab.c (check_case_table):
8132 * casetab.c (Fset_case_table):
8133 * casetab.c (Fset_standard_case_table):
8135 * chartab.c (Fchar_table_type):
8136 * chartab.c (Freset_char_table):
8137 * chartab.c (Fget_char_table):
8138 * chartab.c (Fget_range_char_table):
8139 * chartab.c (Fput_char_table):
8140 * chartab.c (Fmap_char_table):
8141 * chartab.c (Fcategory_table_p):
8142 * chartab.c (Fcheck_category_at):
8143 * chartab.c (Fchar_in_category_p):
8144 * chartab.c (Fcategory_table):
8145 * chartab.c (Fcopy_category_table):
8146 * chartab.c (Fset_category_table):
8147 * chartab.c (Fcategory_designator_p):
8148 * chartab.c (Fcategory_table_value_p):
8149 * cmds.c (Fdelete_char):
8150 * cmds.c (Fdelete_backward_char):
8151 * cmds.c (Fself_insert_command):
8152 * cmds.c (Fself_insert_internal):
8153 * console.c (Fvalid_console_type_p):
8154 * console.c (Fcdfw_console):
8155 * console.c (Fconsole_type):
8156 * console.c (Fconsole_name):
8157 * console.c (Fconsole_device_list):
8158 * console.c (Fconsole_on_window_system_p):
8162 * data.c (Fsubr_interactive):
8163 * data.c (Fchar_to_int):
8164 * data.c (Fint_to_char):
8167 * data.c (Fnumber_to_string):
8168 * data.c (Fstring_to_number):
8170 * database.c (mark_database):
8171 * database.c (finalize_database):
8172 * database.c (Fdatabase_live_p):
8173 * database.c (Fdatabasep):
8174 * device-x.c (Fx_get_resource):
8175 * device.c (Fdfw_device):
8177 * dired.c (Ffile_name_completion):
8178 * dired.c (Ffile_name_all_completions):
8179 * dired.c (Fuser_name_completion):
8180 * dired.c (Fuser_name_completion_1):
8181 * dired.c (Fuser_name_all_completions):
8182 * doc.c (Fdocumentation):
8183 * doc.c (Fdocumentation_property):
8184 * doc.c (Fsubstitute_command_keys):
8186 * editfns.c (Fchar_to_string):
8187 * editfns.c (Fstring_to_char):
8188 * editfns.c (Ftemp_directory):
8189 * editfns.c (Finsert_char):
8190 * editfns.c (Fbuffer_substring_no_properties):
8191 * editfns.c (Fnarrow_to_region):
8192 * editfns.c (Fchar_equal):
8193 * editfns.c (Fchar_Equal):
8194 * editfns.c (Ftranspose_regions):
8195 * emacs.c (Fdump_emacs):
8197 * eval.c (Fcommand_execute):
8198 * eval.c (Fautoload):
8199 * eval.c (Fbacktrace):
8200 * eval.c (Fbacktrace_frame):
8202 * events.c (Fcopy_event):
8203 * events.c (Fcharacter_to_event):
8204 * events.c (Fevent_button):
8205 * events.c (Fevent_process):
8207 * extents.c (Fnext_extent_change):
8208 * extents.c (Fextent_property):
8210 * faces.c (Fmake_face):
8212 * file-coding.c (Fencode_shift_jis_char):
8213 * file-coding.c (Fencode_big5_char):
8214 * fileio.c (Ffile_name_directory):
8215 * fileio.c (Ffile_name_nondirectory):
8216 * fileio.c (Ffile_name_as_directory):
8217 * fileio.c (Fdirectory_file_name):
8218 * fileio.c (Ffile_truename):
8219 * fileio.c (Fsubstitute_in_file_name):
8220 * fileio.c (Ffile_modes):
8221 * fileio.c (Fset_file_modes):
8222 * fileio.c (Fset_default_file_modes):
8223 * fileio.c (Fverify_visited_file_modtime):
8224 * floatfns.c (Facos):
8225 * floatfns.c (Fasin):
8226 * floatfns.c (Fatan):
8227 * floatfns.c (Fcos):
8228 * floatfns.c (Fsin):
8229 * floatfns.c (Ftan):
8230 * floatfns.c (Fbessel_j0):
8231 * floatfns.c (Fbessel_j1):
8232 * floatfns.c (Fbessel_jn):
8233 * floatfns.c (Fbessel_y0):
8234 * floatfns.c (Fbessel_y1):
8235 * floatfns.c (Fbessel_yn):
8236 * floatfns.c (Ferf):
8237 * floatfns.c (Ferfc):
8238 * floatfns.c (Flog_gamma):
8239 * floatfns.c (Fexp):
8240 * floatfns.c (Fexpt):
8241 * floatfns.c (Flog):
8242 * floatfns.c (Flog10):
8243 * floatfns.c (Fsqrt):
8244 * floatfns.c (Fcube_root):
8245 * floatfns.c (Facosh):
8246 * floatfns.c (Fasinh):
8247 * floatfns.c (Fatanh):
8248 * floatfns.c (Fcosh):
8249 * floatfns.c (Fsinh):
8250 * floatfns.c (Ftanh):
8251 * floatfns.c (Fabs):
8252 * floatfns.c (Ffloat):
8253 * floatfns.c (Flogb):
8254 * floatfns.c (Fceiling):
8255 * floatfns.c (Ffloor):
8256 * floatfns.c (Fround):
8257 * floatfns.c (Ftruncate):
8258 * floatfns.c (Ffceiling):
8259 * floatfns.c (Fffloor):
8260 * floatfns.c (Ffround):
8261 * floatfns.c (Fftruncate):
8262 * fns.c (Fstring_equal):
8263 * fns.c (Fstring_lessp):
8268 * fns.c (Fsubstring):
8270 * fns.c (Fold_assoc):
8271 * fns.c (assoc_no_quit):
8273 * fns.c (Fold_assq):
8274 * fns.c (assq_no_quit):
8276 * fns.c (Fold_rassoc):
8278 * fns.c (Fold_rassq):
8279 * fns.c (rassq_no_quit):
8280 * fns.c (Fremassoc):
8281 * fns.c (remassoc_no_quit):
8283 * fns.c (remassq_no_quit):
8284 * fns.c (Fremrassoc):
8285 * fns.c (Fremrassq):
8286 * fns.c (remrassq_no_quit):
8288 * fns.c (Fplist_get):
8289 * fns.c (Fplist_put):
8290 * fns.c (Fplist_remprop):
8291 * fns.c (Fplist_member):
8292 * fns.c (Flax_plist_get):
8293 * fns.c (Flax_plist_put):
8294 * fns.c (Flax_plist_remprop):
8295 * fns.c (Flax_plist_member):
8297 * fns.c (Fold_equal):
8299 * fns.c (Fbase64_encode_region):
8300 * fns.c (Fbase64_encode_string):
8301 * fns.c (Fbase64_decode_region):
8303 * frame.c (frame_matches_frame_spec):
8304 * frame.c (device_matches_device_spec):
8305 * frame.c (next_frame):
8306 * frame.c (previous_frame):
8307 * frame.c (Fnext_frame):
8308 * frame.c (Fprevious_frame):
8309 * frame.c (Fframe_property):
8310 * frame.c (Fset_frame_height):
8311 * frame.c (Fset_frame_size):
8315 * glyphs.c (decode_error_behavior_flag):
8316 * glyphs.c (Fmake_image_instance):
8317 * indent.c (Findent_to):
8318 * intl.c (Fignore_defer_gettext):
8319 * keymap.c (Fkeymapp):
8320 * keymap.c (Flookup_key):
8322 * lread.c (Fload_internal):
8323 * lread.c (Feval_buffer):
8324 * lread.c (Feval_region):
8325 * macros.c (Fexecute_kbd_macro):
8326 * marker.c (set_marker_internal):
8327 * marker.c (Fset_marker):
8328 * marker.c (set_marker_restricted):
8329 * marker.c (Fcopy_marker):
8330 * marker.c (noseeum_copy_marker):
8332 * menubar.c (Fpopup_menu):
8334 * mule-charset.c (Fcharset_name):
8335 * mule-charset.c (Fchar_charset):
8336 * mule-charset.c (Fchar_octet):
8337 * mule-charset.c (Fsplit_char):
8338 * mule-wnnfns.c (Fwnn_open):
8339 * mule-wnnfns.c (Fwnn_dict_comment):
8340 * mule-wnnfns.c (Fwnn_quit_henkan):
8341 * mule-wnnfns.c (Fwnn_word_toroku):
8342 * mule-wnnfns.c (Fwnn_word_sakujo):
8343 * mule-wnnfns.c (Fwnn_word_use):
8344 * mule-wnnfns.c (Fwnn_hindo_set):
8346 * objects.c (Fmake_color_instance):
8347 * objects.c (Fmake_font_instance):
8348 * print.c (Fwrite_char):
8350 * process.c (mark_process):
8351 * process.c (print_process):
8352 * process.c (get_process_from_usid):
8353 * process.c (Fprocessp):
8354 * process.c (Fprocess_live_p):
8355 * process.c (Fget_process):
8356 * process.c (Fget_buffer_process):
8357 * process.c (get_process):
8358 * process.c (Fprocess_id):
8359 * process.c (Fprocess_name):
8360 * process.c (Fprocess_command):
8361 * process.c (init_process_io_handles):
8362 * process.c (start_process_unwind):
8363 * process.c (Fstart_process_internal):
8364 * process.c (Fopen_multicast_group_internal):
8365 * process.c (Fset_process_window_size):
8366 * process.c (read_process_output):
8367 * process.c (send_process):
8368 * process.c (Fprocess_tty_name):
8369 * process.c (Fset_process_buffer):
8370 * process.c (Fprocess_buffer):
8371 * process.c (Fprocess_mark):
8372 * process.c (set_process_filter):
8373 * process.c (Fset_process_filter):
8374 * process.c (Fprocess_filter):
8375 * process.c (Fprocess_send_region):
8376 * process.c (Fprocess_send_string):
8377 * process.c (exec_sentinel):
8378 * process.c (Fset_process_sentinel):
8379 * process.c (Fprocess_sentinel):
8380 * process.c (status_notify):
8381 * process.c (Fprocess_status):
8382 * process.c (Fprocess_exit_status):
8383 * process.c (process_send_signal):
8384 * process.c (Fprocess_send_eof):
8385 * process.c (deactivate_process):
8386 * process.c (remove_process):
8387 * process.c (Fdelete_process):
8388 * process.c (kill_buffer_processes):
8389 * process.c (Fprocess_kill_without_query):
8390 * process.c (Fprocess_kill_without_query_p):
8392 * rangetab.c (Fget_range_table):
8393 * rangetab.c (Fput_range_table):
8394 * rangetab.c (Fremove_range_table):
8395 * rangetab.c (Fclear_range_table):
8397 * search.c (Fskip_chars_forward):
8398 * search.c (Fskip_chars_backward):
8399 * search.c (Fskip_syntax_forward):
8400 * search.c (Fskip_syntax_backward):
8401 * search.c (search_command):
8402 * search.c (Freplace_match):
8403 * search.c (Fregexp_quote):
8404 * select.c (Fown_selection_internal):
8405 * select.c (Fselection_owner_p):
8406 * select.c (Fselection_exists_p):
8407 * select.c (Fget_selection_internal):
8410 * symbols.c (Fintern):
8411 * symbols.c (Fintern_soft):
8412 * symbols.c (Funintern):
8413 * symbols.c (Fapropos_internal):
8414 * symbols.c (Fset_default):
8416 * syntax.c (Fsyntax_table_p):
8417 * syntax.c (Fcopy_syntax_table):
8418 * syntax.c (Fset_syntax_table):
8419 * syntax.c (Fchar_syntax):
8420 * syntax.c (syntax_match):
8421 * syntax.c (Fmatching_paren):
8422 * syntax.c (Fforward_word):
8423 * syntax.c (scan_lists):
8424 * syntax.c (Fscan_lists):
8425 * syntax.c (Fscan_sexps):
8426 * syntax.c (Fparse_partial_sexp):
8427 * toolbar.c (Fcheck_toolbar_button_syntax):
8430 * window.c (Fwindowp):
8431 * window.c (Fwindow_live_p):
8432 * window.c (Fwindow_point):
8433 * window.c (Fdelete_window):
8434 * window.c (Fnext_window):
8435 * window.c (Fprevious_window):
8436 * window.c (Fother_window):
8437 * window.c (window_loop):
8438 * window.c (Fget_lru_window):
8439 * window.c (Fsplit_window):
8440 * window.c (Fenlarge_window):
8441 * window.c (Fenlarge_window_pixels):
8442 * window.c (Fshrink_window):
8443 * window.c (Fshrink_window_pixels):
8444 * window.c (change_window_height):
8445 * window.c (Fwindow_configuration_p):
8446 * window.c (Fcurrent_window_configuration):
8448 * casefiddle.c (casify_object):
8449 * casefiddle.c (Fupcase):
8450 * casefiddle.c (Fdowncase):
8451 * casefiddle.c (Fcapitalize):
8452 * casefiddle.c (Fupcase_initials):
8453 * casefiddle.c (casify_region_internal):
8454 * casefiddle.c (casify_region):
8455 * casefiddle.c (Fupcase_region):
8456 * casefiddle.c (Fdowncase_region):
8457 * casefiddle.c (Fcapitalize_region):
8458 * casefiddle.c (Fupcase_initials_region):
8459 * casefiddle.c (Fupcase_word):
8460 * casefiddle.c (Fdowncase_word):
8461 * casefiddle.c (Fcapitalize_word):
8462 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
8463 Replace 0 with '\0' when working with bytes.
8464 Replace initial "(" with "\(" in docstrings.
8466 2000-11-01 Martin Buchholz <martin@xemacs.org>
8468 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8470 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8472 2000-10-31 Martin Buchholz <martin@xemacs.org>
8474 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
8476 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
8478 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8481 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
8483 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8484 (inhibit_auto_save_session): New variable.
8485 (vars_of_fileio): Declare and initialize them.
8486 * fileio.c (Fdo_auto_save): Don't create session file if
8487 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8489 2000-10-31 Martin Buchholz <martin@xemacs.org>
8491 * sgiplay.c (play_internal): C++ compilability.
8492 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8493 * callproc.c (Fold_call_process_internal):
8494 Remove unused vars `env', `first'.
8495 * scrollbar.c (update_scrollbar_instance):
8496 #### unused var `current_window'.
8497 * redisplay-tty.c: Put currently unused vars insert_mode_on,
8498 etc. within #ifdef NOT_YET.
8499 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8500 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8501 * specifier.c (specifier_instance):
8502 #### unused var `tag'.
8503 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8505 2000-10-27 Martin Buchholz <martin@xemacs.org>
8508 * fns.c (list_sort):
8509 * fns.c (Ffillarray):
8510 * fns.c (bytecode_nconc2):
8513 * fns.c (Fmapconcat):
8514 Be pedantically 64-bit correct. For the time when someone will
8515 want to have a list with length > 2**32.
8517 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8518 Work around MIPSpro compiler bug.
8520 * process-unix.c (unix_kill_child_process): Add snarky comment.
8521 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
8523 * config.h.in: Oops, _getpt ==> _getpty
8525 2000-10-26 Martin Buchholz <martin@xemacs.org>
8529 Use void*, not char*, as return type of alloca().
8531 * alloc.c (free_marker): Side effect inside assert expression!
8533 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
8535 * mule-charset.c (Fset_charset_ccl_program): To check
8536 if the given ccl program is valid, use setup_ccl_program()
8537 instead of CHECK_VECTOR().
8538 (Fmake_charset): Likewise.
8540 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
8542 * faces.c (get_extent_fragment_face_cache_index):
8543 Fix cachel.merged_faces memory leak.
8545 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
8547 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8548 Reset MSB of octets obtained by DECODE_SJIS
8549 because of the incompatibility with Emacs.
8550 (ccl_driver)<CCL_ENCODE_SJIS>:
8551 Set MSB of octets before passing them to
8552 ENCODE_SJIS because of the incompatibility
8555 2000-10-18 Daiki Ueno <ueno@unixuser.org>
8557 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8558 (DECLARE_LRECORD): Undo the last change.
8559 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8561 2000-10-17 Daiki Ueno <ueno@unixuser.org>
8563 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8564 the implementation to lrecord_implementations_table.
8566 2000-10-14 Daiki Ueno <ueno@unixuser.org>
8568 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8569 initial value of `lrecord_type_##c_name' and
8570 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8571 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8572 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8573 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8574 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8576 2000-10-17 Martin Buchholz <martin@xemacs.org>
8578 * miscplay.c (sndcnv8S_2mono):
8579 (sndcnv2monounsigned):
8580 (sndcnvULaw_2linear):
8582 Remove implementation-defined behavior.
8584 2000-10-12 Martin Buchholz <martin@xemacs.org>
8586 * input-method-xlib.c: Warning suppression.
8588 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
8590 * mule-ccl.c: Sync up with Emacs 21.0.90.
8591 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8593 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8595 (ccl_driver[WriteMultibyteChar2]): Bug fix.
8596 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8597 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8598 leading char belongs to official 2-dimensional charset.
8599 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8600 write the given character as is. Otherwise,
8601 if it is a multibyte char, convert it by
8602 non_ascii_set_charptr_emchar, then write it.
8603 (CCL_WRITE_STRING): Likewise.
8604 (ccl_get_compiled_code): New function.
8605 (setup_ccl_program): When ccl_prog is invalid,
8607 (Fregister_code_conversion_map): New function.
8608 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8610 * mule-ccl.h: Sync up with Emacs 21.0.90.
8611 (Fregister_ccl_program): export it.
8613 * redisplay-msw.c (separate_textual_runs):
8614 If ccl program is not valid, don't do ccl conversion.
8616 * redisplay-x.c (separate_textual_runs): Ditto.
8618 * file-coding.c (Fmake_coding_system):
8619 When type is ccl and value is vector, register it
8620 with a proper symbol. And checks whether the
8621 given ccl program is valid.
8622 (mule_decode): When calling ccl_driver, if src indicates
8623 NULL pointer, set an empty string instead.
8624 (mule_encode): Likewise.
8626 2000-10-11 Martin Buchholz <martin@xemacs.org>
8628 The following large batch of changes gets us back to a state of
8629 C++ compilability. Extbyte is now a char, which means that
8630 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8632 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8634 * sound.c (Fplay_sound): Type correctness.
8636 * select-x.c (hack_motif_clipboard_selection): Type correctness.
8637 (x_get_window_property): Type correctness.
8638 (receive_incremental_selection): unsigned char ==> Extbyte
8639 (selection_data_to_lisp_data): unsigned char ==> Extbyte
8640 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8641 (Fx_store_cutbuffer_internal): Type correctness.
8643 * process-unix.c (try_to_initialize_subtty): Type correctness.
8645 * objects-x.c (x_print_color_instance): Type correctness.
8646 (x_print_font_instance): Type correctness.
8647 (x_list_fonts): SExtbyte ==> Extbyte.
8648 (valid_x_font_name_p): SExtbyte ==> Extbyte.
8649 (x_find_charset_font): SExtbyte ==> Extbyte.
8650 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
8651 (truename_via_XListFonts): SExtbyte ==> Extbyte.
8652 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8655 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8656 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8657 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8658 (BYTE_C0_P): Use bit ops for char-signedness safety.
8659 (BYTE_C1_P): Use bit ops for char-signedness safety.
8660 (CHARSET_BY_LEADING_BYTE):
8661 (CHARSET_BY_ATTRIBUTES):
8662 Always use inline function.
8663 Use type_checking_assert.
8666 * mule-charset.c (non_ascii_charptr_copy_char):
8667 Modify to work with both ASCII and non-ASCII characters.
8668 Improve docs and variable names.
8669 Replace over-clever fall-through switch with a simple loop.
8670 (Lstream_get_emchar_1):
8671 Replace over-clever fall-through switch with a simple loop.
8673 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8674 Warning suppression.
8676 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8677 the return value of Lstream_getc, which could be EOF as well.
8679 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8681 * lisp.h: Make Extbyte a char, not unsigned char, so that external
8682 APIs can be used on Extbytes without casts. Risky!
8686 * input-method-xlib.c (XIM_init_device):
8687 Use Xlib.h instead of IntrinsicP.h.
8688 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8689 which will break in X11R7.
8690 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8691 to call XRegisterIMInstantiateCallback with correct types.
8693 * gui-x.c (button_item_to_widget_value): Type correctness.
8695 * glyphs.c (bitmap_to_lisp_data): Type correctness.
8697 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8698 (xbm_instantiate_1): Type correctness.
8699 (BUILD_GLYPH_INST): Type correctness.
8701 * fileio.c (Fsubstitute_in_file_name): Type correctness.
8704 (decode_coding_sjis):
8705 (decode_coding_big5):
8706 (decode_coding_ucs4):
8707 (decode_coding_utf8):
8708 (decode_coding_iso2022):
8709 (decode_coding_no_conversion):
8710 Make all decoding functions take an Extbyte * arg.
8711 (encode_coding_sjis):
8712 (encode_coding_big5):
8713 (encode_coding_ucs4):
8714 (encode_coding_utf8):
8715 (encode_coding_iso2022):
8716 (encode_coding_no_conversion):
8717 Make all encoding functions take a Bufbyte * arg.
8718 Use size_t instead of unsigned int for memory sizes.
8719 Only cast to unsigned char whenever dereferencing Extbyte *.
8721 * doc.c (unparesseuxify_doc_string): Type correctness.
8723 * console-x.c (split_up_display_spec):
8724 Rewrite without using details of internal string representation.
8725 (x_semi_canonicalize_device_connection): Type correctness.
8728 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8729 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8730 (HAVE_XFREE386): Removed.
8732 * buffer.h (DEC_CHARPTR): `const' correctness.
8733 (bufbyte_strcmp): New.
8734 (bufbyte_memcmp): New.
8736 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8738 * buffer.h (XCHAR_OR_CHAR_INT):
8739 Always use inline function.
8740 Remove redundant type checking assert() - XINT will abort quite nicely.
8742 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
8744 * search.c (Freplace_match): Set newtext to an empty string.
8746 2000-10-10 Martin Buchholz <martin@xemacs.org>
8748 * s/decosf1-3.h: Remove #include of stropts.h
8749 * s/ptx.h: Remove #include of stropts.h
8750 * s/usg5-4.h: Remove #include of stropts.h
8753 Use stropts.h, not sys/stropts.h.
8754 Use strtio.h, not sys/strtio.h.
8756 2000-10-04 Martin Buchholz <martin@xemacs.org>
8758 * XEmacs 21.2.36 is released.
8760 2000-09-21 Andy Piper <andy@xemacs.org>
8762 * glyphs-x.c (x_redisplay_widget): make sure non-structural
8763 changes still involve copying the widget tree.
8764 (update_widget_face): make sure a change is register in the widget
8765 tree. Call update_tab_widget_face appropriately.
8766 (update_tab_widget_face): ditto.
8767 (x_tab_control_redisplay): make sure non-structural changes still
8768 involve copying the widget tree.
8770 2000-08-31 Daiki Ueno <ueno@unixuser.org>
8772 * lread.c (locate_file): Check the path element is non-nil.
8774 2000-10-02 Martin Buchholz <martin@xemacs.org>
8776 * lisp.h: Warning suppression for SCO compilers.
8778 * redisplay-tty.c (reset_tty_modes): Fix crash.
8779 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8781 2000-09-27 Martin Buchholz <martin@xemacs.org>
8783 Big signal/process handling overhaul. Bugs fixed:
8784 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8785 M-x comint-kill-subjob should work for both values nil and t of
8786 process-connection-type. It was broken on most platforms.
8787 Testing on Irix and Cygwin still needed. Other plaforms tested.
8788 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
8789 * process-unix.c: Signal/Process handling overhaul.
8790 (pty_name): make 64 bytes, as `expect' does, for paranoia.
8791 (allocate_pty): Use all available modern methods of allocating
8792 ptys, falling back to old style BSD allocation as a last resort.
8793 Use allegedly more secure Unix98 pty allocation by default.
8794 (allocate_pty_the_old_fashioned_way): New. the last resort.
8795 (unix_create_process): Push ptem, ldterm, ttcompat where
8796 available. Autoconfiscate.
8797 (try_to_initialize_subtty): New.
8798 (unix_kill_child_process): Proper signal handling for ptys on most
8799 platforms, using special knowledge of AIX, BSD, etc...
8800 (unix_create_process): Always disconnect_controlling_terminal() for
8801 subprocesses, whether using ptys or not.
8802 * process.h: Remove old getpt-dependent PTY code.
8803 * process.c (Fprocess_send_signal): New, obvious generic function.
8804 (decode_signal): New.
8805 (Finterrupt_process):
8809 (Fcontinue_process):
8810 (Fsignal_process): Use decode_signal.
8811 (process_send_signal):
8812 Many docstring corrections.
8813 Allow any signal to be sent to a process object.
8814 * config.h.in: Add symbols for big signal/process overhaul.
8815 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8816 * sysproc.h: Include process-related headers, where available:
8817 sys/stropts.h sys/strtio.h pty.h libutil.h
8825 Remove old S&M pty stuff.
8826 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8827 * systty.h: Simplify cpp hackery, improve comments.
8828 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8830 * editfns.c (Fformat_time_string):
8831 Be a little more paranoid with the return value of ctime.
8833 * fileio.c (check_executable):
8835 Use symbolic constants X_OK, W_OK.
8837 * console-x.c (split_up_display_spec): Fix a warning.
8839 2000-10-02 Martin Buchholz <martin@xemacs.org>
8841 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8842 * ntproc.c (sys_spawnve): make_string ==> build_string
8843 Small clarity improvements.
8845 2000-09-30 Martin Buchholz <martin@xemacs.org>
8847 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8849 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8851 * config.h.in (HAVE_STRCASECMP): Remove.
8853 2000-09-29 Martin Buchholz <martin@xemacs.org>
8855 * redisplay-output.c (redisplay_output_pixmap):
8856 Cleaner and possibly more 64-bit correct code.
8858 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
8860 * dumper.c (pdump_load_finish): move restoration of
8861 `noninteractive1' to emacs.c (main_1).
8862 * emacs.c (main_1): protect LISP-visible command-line flags
8865 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
8867 * Makefile.in.in (versionclean): Use EXE_TARGET and
8868 DUMP_TARGET instead of literal program names.
8870 2000-09-20 Martin Buchholz <martin@xemacs.org>
8872 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8874 2000-09-19 Martin Buchholz <martin@xemacs.org>
8876 * *: Spelling mega-patch
8878 2000-09-19 Martin Buchholz <martin@xemacs.org>
8880 * fns.c (bad_bad_turtle):
8881 Delete "Eek!" comment, since we fixed the bug to which it refers.
8883 2000-09-16 Martin Buchholz <martin@xemacs.org>
8885 * alloca.c: Replace REGISTER with register.
8887 2000-09-16 Daiki Ueno <ueno@unixuser.org>
8889 * file-coding.c (ucs_to_char): Use countof.
8891 2000-09-16 Martin Buchholz <martin@xemacs.org>
8893 * file-coding.c: (ucs_to_char):
8894 (complex_vars_of_file_coding):
8895 Use countof instead of sizeof.
8896 Use CHECK_NATNUM instead of CHECK_INT.
8898 * sysdep.c (strcasecmp): Remove.
8899 * device-x.c (ascii_strcasecmp): New.
8900 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8901 Avoid using non-standard non-portable strcasecmp.
8903 2000-09-16 Martin Buchholz <martin@xemacs.org>
8905 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8906 * font-lock.c: remove reference to emacsfns.h.
8907 * search.c: small doc improvement.
8908 * event-Xt.c: correct file names in comments.
8909 * console-x.h Correct file names in comments.
8910 * frame.c: Correct file names in comments.
8911 * event-stream.c: remove Energize from comments.
8913 2000-09-15 Martin Buchholz <martin@xemacs.org>
8915 * symeval.h (DEFERROR_STANDARD):
8918 (DEFSYMBOL_NO_DUMP):
8919 (DEFSYMBOL_MULTIWORD_PREDICATE):
8920 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8922 The construct &##name is not sensible C.
8923 Fixes compilation errors with Unixware native compiler.
8925 2000-09-14 Martin Buchholz <martin@xemacs.org>
8927 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8928 (next_frame_internal): Removed. We now just have next_frame.
8930 Write a simpler and cleaner one-pass algorithm.
8931 Remove called_from_delete_device arg and #ifdefed-out code.
8933 Renamed from prev_frame. Update callers.
8934 Cleaned up to have an analogous implementation to next_frame.
8935 (other_visible_frames_internal): Remove the
8936 called_from_delete_device bogus arg, and hence, remove this
8937 function. Just use other_visible_frames().
8939 * window.c (Fnext_window):
8941 Since next_frame() is guaranteed to return a frame, remove check
8942 for nil inserted in previous patch.
8945 Make code look more like Fnext_window.
8947 Respect the `console' arg when iterating through windows.
8948 Fixes bug: (get-buffer-window buffer t device) not respecting
8950 This function needs more work, as others have pointed out.
8952 * frame.h: Rename prev_frame to previous_frame.
8953 device_matches_console_spec no longer takes a `frame' arg.
8958 Use EMACS_BLOCK_SIGNAL instead of sigblock.
8959 From "Golubev I. N." <gin@mo.msk.ru>.
8961 * make-src-depend: Fix typo.
8963 2000-09-13 Martin Buchholz <martin@xemacs.org>
8965 * window.c (Fnext_window):
8966 next_frame() might return nil, not a frame.
8968 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8970 * frame.c (next_frame_internal):
8971 We've passed a frame if we've passed its device.
8973 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8974 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8976 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
8978 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8979 Allow option to suppress accelerators in menu/dialog items.
8980 (populate_or_checksum_helper): Pass dialog title through above.
8982 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
8984 * event-msw.c (mswindows_key_to_emacs_keysym):
8985 Add "pause" key, fix "menu" key.
8987 2000-09-09 Martin Buchholz <martin@xemacs.org>
8989 * eval.c (reinit_vars_of_eval):
8990 Increase max_lisp_eval_depth to 1000,
8991 required for thai-xtis.el to byte-compile under some circumstances.
8993 2000-09-04 Martin Buchholz <martin@xemacs.org>
8995 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8998 2000-09-01 Martin Buchholz <martin@xemacs.org>
9000 * make-src-depend: Make the generated Makefiles smaller.
9002 * s/hpux.h (SETUP_SLAVE_PTY):
9003 Provide a %d in the format string for the errno argument.
9005 * editfns.c (Ftemp_directory):
9007 Avoid buffer overrun on very long file name.
9009 * input-method-xlib.c (XIM_init_device):
9010 6th parameter of XRegisterIMInstantiateCallback has different
9011 pointer types on different OSes, so simply cast to (void *).
9013 * unexhp9k800.c: Warning fixes. Fiddly changes.
9015 * sysdll.c (dll_open):
9016 shl_load will hang hard if passed a NULL filename.
9017 Simply return NULL for compatibility with dlopen.
9018 * sysdll.c: Conform to XEmacs coding standards.
9020 * sysdep.c (get_pty_max_bytes):
9021 Support pty input lines longer than 512 bytes on HP-UX 10.20.
9023 2000-08-31 Martin Buchholz <martin@xemacs.org>
9025 * tooltalk.c: Add #include <syssignal.h>
9027 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
9029 * s/hpux.h: Don't use undefined function sigunblock().
9031 2000-08-31 Martin Buchholz <martin@xemacs.org>
9033 * config.h.in: Add HAVE_BALLOON_HELP.
9034 * emacs.c: Use HAVE_BALLOON_HELP.
9035 * Makefile.in.in (x_objs):
9036 Make Balloon Help conditional on finding shape.h.
9038 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
9040 * syntax.c (regex_emacs_buffer_p): New variable.
9041 * syntax.h (regex_emacs_buffer_p): extern.
9042 * search.c (looking_at_1):
9044 (fast_string_match):
9045 (search_buffer): Set regex_emacs_buffer_p.
9046 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9047 when before_dot, at_dot, after_dot.
9049 2000-08-23 Andy Piper <andy@xemacs.org>
9051 * gui-x.c (popup_selection_callback): Only set action_occurred
9052 when we really have an image instance.
9053 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9055 2000-08-23 Andy Piper <andy@xemacs.org>
9057 * gui-msw.c (mswindows_handle_gui_wm_command): set
9059 * gui-x.c (popup_selection_callback): ditto.
9061 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9062 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9063 (struct Lisp_Image_Instance): add action_occurred flag.
9065 * glyphs.c (redisplay_subwindow): use action_occurred flag.
9066 (image_instance_changed): ditto.
9067 (reset_frame_subwindow_instance_cache): only unmap windows - do
9068 not remove them from the cache also.
9070 * glyphs-widget.c (tab_control_update): better debug.
9071 (progress_gauge_update): ditto.
9072 (layout_update): ditto.
9073 (layout_instantiate): ditto.
9074 (tab_control_order_only_changed): cope with null pending items.
9076 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9077 debug. Force selection of an item when an action occurred. Cope
9078 with null pending_items.
9079 (mswindows_progress_gauge_redisplay): better debug.
9080 * glyphs-x.c (x_tab_control_redisplay): ditto.
9082 * redisplay.c (redisplay_frame): reset the frame cache if the
9085 * window.c (Fset_window_configuration): potentially re-enable
9087 (window_unmap_subwindows): need to finalize instances here since
9088 it is only used in mark_window_as_deleted.
9090 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
9092 * nas.c (SndOpenDataForReading):
9093 nas.c (WaveOpenDataForReading):
9094 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9095 Somehow escaped from the 2000-08-14 patch.
9097 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
9099 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9100 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9102 2000-08-21 Andy Piper <andy@xemacs.org>
9104 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9105 window if it is not already displayed.
9107 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9108 it is not already displayed.
9110 * window.c (Fset_window_configuration): don't reset the frame
9113 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9114 instances from the frame cache if we are actually finalizing them.
9115 (reset_frame_subwindow_instance_cache): reset frame cache only
9116 after unmapping everything.
9117 (map_subwindow): set displayed flag after mapping.
9119 2000-08-21 Martin Buchholz <martin@xemacs.org>
9121 * data.c (indirect_function):
9122 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9124 * eval.c (function_argcount):
9125 Use original function when signaling errors.
9127 2000-08-18 Andy Piper <andy@xemacs.org>
9129 * frame.c (delete_frame_internal): use new
9130 free_frame_subwindow_instances name.
9132 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9133 (add_tab_item): make return type correct.
9134 (mswindows_tab_control_instantiate): assert index of tab.
9135 (mswindows_tab_control_redisplay): Re-code to use
9136 gui_item_equal_sans_selected and gui_item_list_find_selected.
9138 * glyphs-widget.c (tab_control_update): Correct comment.
9140 * window.c (window_unmap_subwindows): use new
9141 unmap_subwindow_instance_cache_mapper.
9142 (window_unmap_subwindows_cache_mapper): deleted.
9143 (Fset_window_configuration): comparisons should now be with
9144 EQ. Preserve the subwindow instance cache across configuration
9146 (allocate_window): ditto.
9147 (make_dummy_parent): ditto.
9149 * glyphs.c (free_frame_subwindow_instances): rename from
9150 free_frame_subwindow_instance_cache. finalize all instances rather
9151 than just those in the display cache.
9152 (finalize_all_subwindow_instances): walk windows unmapping and
9153 finalizing subwindows.
9154 (unmap_subwindow_instance_cache_mapper): moved from
9155 window.c. Allow finalization as well as unmapping.
9157 * gui.c (gui_item_list_find_selected): new function.
9159 * gui.h (gui_item_list_find_selected): declare.
9161 * glyphs-x.c (x_tab_control_redisplay): pick tab
9162 explicitly. Re-code to use gui_item_equal_sans_selected and
9163 gui_item_list_find_selected.
9165 * glyphs-x.h: add lwlib-utils.h
9167 * buffer.c (Frecord_buffer): undo previous change.
9169 2000-08-09 Vin Shelton <acs@xemacs.org>
9171 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9172 possible. Create temporary files more securely. The patch was
9173 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9174 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
9175 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9178 2000-08-07 Ben Wing <ben@xemacs.org>
9180 * getloadavg.c: remove duplicate (and windows-breaking)
9181 includes of fcntl.h and sys/file.h.
9183 * nt.c: remove duplicate getloadavg() definition.
9185 * sysdll.h (Qdll_filename_encoding): add missing stand-in
9188 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
9190 * eval.c (function_argcount): If function needs to be autoloaded
9191 actually use the loaded definition.
9194 2000-08-05 Ben Wing <ben@xemacs.org>
9196 * getloadavg.c: add prototype for getloadavg(). remove
9197 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9198 of the code). remove duplicate header includes.
9200 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9202 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9203 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9204 useful load average.
9206 * alloc.c (reinit_alloc_once_early): removed references to
9207 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9208 the lisp vars are the only things referencing the malloc_sbrk_*
9209 vars, and they were already if 0'd out. these vars only exist
9210 in the older malloc.c, which is basically unused, and they're
9211 only for informational purposes.
9213 * m\*.h: removed useless VIRT_ADDR_VARIES.
9215 * m\powerpc.h: removed stray NO_ARG_ARRAY.
9217 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
9219 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9220 color if the image is a mono pixmap.
9222 2000-07-30 Ben Wing <ben@xemacs.org>
9224 * Makefile.in.in (release):
9227 * buffer.c (directory_is_current_directory):
9228 * dired-msw.c (mswindows_get_files):
9230 * dired.c (Fdirectory_files):
9231 * dired.c (file_name_completion_stat):
9232 * dired.c (Ffile_attributes):
9233 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9234 preprocessor tricks, to avoid problems on some machines
9237 * callproc.c (egetenv): GC docs.
9240 * console-msw.h (struct mswindows_dialog_id):
9241 * lrecord.h (lrecord_type):
9242 New object for use with MSW dialogs.
9244 * console.h (struct console_methods):
9245 New enable/disable frame methods, for proper modal dialogs.
9247 * device-msw.c (msprinter_default_printer): Fix to follow
9248 proper Mule conventions.
9251 * device-msw.c (signal_open_printer_error):
9252 * device-msw.c (msprinter_init_device):
9253 * device-msw.c (ensure_not_printing):
9254 * device-msw.c (plist_get_margin):
9255 * device-msw.c (Fmsprinter_select_settings):
9256 * device-msw.c (finalize_devmode):
9257 * device-msw.c (Fmsprinter_settings_despecialize):
9258 * device-msw.c (signal_enum_priner_error):
9259 * extents.c (decode_extent):
9260 * extents.c (decode_map_extents_flags):
9261 * extents.c (decode_extent_at_flag):
9262 * extents.c (Fextent_at):
9263 * extents.c (Fextents_at):
9264 * extents.c (symbol_to_glyph_layout):
9265 [[[[2]]]] Use structured errors.
9268 * dialog-msw.c (mswindows_is_dialog_msg):
9269 * dialog-msw.c (mark_mswindows_dialog_id):
9270 * dialog-msw.c (dialog_proc):
9271 * dialog-msw.c (handle_question_dialog_box):
9272 * dialog-msw.c (syms_of_dialog_mswindows):
9273 Define new object to clean up marking; use it as a dialog identifier.
9274 Call new delete-dialog-box-hook.
9276 * dialog-x.c (dbox_selection_callback):
9277 * dialog-x.c (dbox_descriptor_to_widget_value):
9278 * dialog-x.c (x_make_dialog_box_internal):
9279 Call new delete-dialog-box-hook.
9283 * dialog.c (syms_of_dialog):
9284 * dialog.c (vars_of_dialog):
9285 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9288 * eval.c (signal_call_debugger):
9289 when noninteractive, output stack traces on the console instead
9290 of in a (never-seen) buffer.
9292 * eval.c (signal_type_error):
9293 * eval.c (invalid_argument_2):
9295 new funs for use w/structured errors.
9298 * event-Xt.c (x_to_emacs_keysym):
9299 * event-Xt.c (describe_event):
9300 * event-Xt.c (emacs_Xt_event_handler):
9301 * event-Xt.c (vars_of_event_Xt):
9303 * event-msw.c (mswindows_wnd_proc):
9304 * event-msw.c (vars_of_event_mswindows):
9305 rename {x,mswindows}-debug-events to debug-{}-events for
9306 consistency with other debug-foo variables.
9309 document next-event more clearly.
9311 * fileio.c (Ffile_name_directory):
9312 * fileio.c (Ffile_name_nondirectory):
9313 * fileio.c (Funhandled_file_name_directory):
9314 * fileio.c (file_name_as_directory):
9315 * fileio.c (Ffile_name_as_directory):
9316 * fileio.c (directory_file_name):
9317 * fileio.c (Fdirectory_file_name):
9318 * fileio.c (Fmake_temp_name):
9319 * fileio.c (Ffile_truename):
9320 * fileio.c (Fsubstitute_in_file_name):
9321 * fileio.c (expand_and_dir_to_file):
9322 * fileio.c (barf_or_query_if_file_exists):
9323 * fileio.c (check_executable):
9324 * fileio.c (Ffile_exists_p):
9325 * fileio.c (Ffile_writable_p):
9326 * fileio.c (Ffile_directory_p):
9327 * fileio.c (Ffile_regular_p):
9328 * fileio.c (Ffile_modes):
9329 * fileio.c (Ffile_newer_than_file_p):
9330 * fileio.c (Fverify_visited_file_modtime):
9331 * fileio.c (Fset_visited_file_modtime):
9332 * fileio.c (auto_save_1):
9337 * frame-msw.c (mswindows_init_frame_1):
9338 * frame-msw.c (mswindows_enable_frame):
9339 * frame-msw.c (error_frame_unsizable):
9340 * frame-msw.c (msprinter_init_frame_1):
9341 * frame-msw.c (msprinter_init_frame_3):
9342 * frame-msw.c (console_type_create_frame_mswindows):
9344 implement new enable/disable frame methods.
9347 * frame-x.c (x_enable_frame):
9348 * frame-x.c (console_type_create_frame_x):
9349 implement new enable/disable frame methods.
9352 * frame.c (Fdisable_frame):
9353 * frame.c (syms_of_frame):
9354 * frame.h (struct frame):
9355 implement new enable/disable frame methods/functions.
9360 * glyphs-msw.c (mswindows_widget_instantiate):
9361 comment that initial-focus should be implemented.
9364 * glyphs-widget.c (check_valid_instantiator):
9365 * glyphs-widget.c (check_valid_orientation):
9366 * glyphs-widget.c (check_valid_tab_orientation):
9367 * glyphs-widget.c (check_valid_justification):
9368 * glyphs-widget.c (check_valid_border):
9369 * glyphs-widget.c (check_valid_callback):
9370 * glyphs-widget.c (check_valid_int_or_function):
9371 * glyphs-widget.c (check_valid_string_or_vector):
9372 * glyphs-widget.c (check_valid_item_list_1):
9373 * glyphs-widget.c (widget_validate):
9374 * glyphs-widget.c (combo_box_validate):
9375 * glyphs-widget.c (widget_instantiate):
9376 * glyphs-widget.c (syms_of_glyphs_widget):
9377 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9378 * glyphs-widget.c (image_instantiator_combo_box):
9379 * glyphs-widget.c (image_instantiator_scrollbar):
9380 * glyphs-widget.c (image_instantiator_tab_control):
9381 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9383 support (unimplemented) keyword initial-focus.
9384 reindent long macros.
9386 * glyphs-x.c (x_redisplay_widget):
9387 * glyphs-x.c (x_button_instantiate):
9388 * glyphs-x.c (x_button_redisplay):
9389 * glyphs-x.c (x_progress_gauge_instantiate):
9390 * glyphs-x.c (x_edit_field_instantiate):
9391 * glyphs-x.c (x_combo_box_instantiate):
9392 * glyphs-x.c (x_tab_control_instantiate):
9393 * glyphs-x.c (x_label_instantiate):
9395 * gui-x.c (button_item_to_widget_value):
9396 * gui-x.c (gui_items_to_widget_values_1):
9397 * gui-x.c (gui_item_children_to_widget_values):
9398 * gui-x.c (gui_items_to_widget_values):
9400 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9401 add new flag to gui-parsing routines to indicate whether
9402 accelerator specs should be supported.
9404 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9406 * glyphs.h (struct Lisp_Image_Instance):
9407 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9408 add initial-focus flag.
9411 * gui.c (syms_of_gui):
9412 * gui.c (vars_of_gui):
9413 clean up menu-no-selection-hook.
9416 support delete-dialog-box-hook.
9418 * lread.c (Fload_internal):
9419 * lread.c (locate_file_in_directory_mapper):
9423 * lrecord.h (struct toolbar_button):
9424 * lrecord.h (syms_of_toolbar):
9425 document how to create a new object.
9427 * menubar-msw.c (mswindows_char_is_accelerator):
9428 may be called on frames w/o menus.
9430 * menubar.c (vars_of_menubar):
9431 clean up :filter docs.
9438 * process-nt.c (validate_signal_number):
9439 * process-nt.c (signal_cannot_launch):
9440 * process-nt.c (nt_create_process):
9441 * process-nt.c (nt_send_process):
9442 * process-nt.c (nt_kill_child_process):
9443 * process-nt.c (nt_open_network_stream):
9444 * process-nt.c (syms_of_process_nt):
9446 delete quote-handling. call new lisp code that does it better.
9448 * process-unix.c (connect_to_file_descriptor):
9449 * process-unix.c (allocate_pty):
9450 * process-unix.c (unix_send_process):
9451 * process-unix.c (unix_kill_child_process):
9452 * process-unix.c (unix_open_network_stream):
9453 * process-unix.c (unix_open_multicast_group):
9457 * process.c (Fstart_process_internal):
9458 (2). need to canonicalize process path even if absolute.
9460 * select-msw.c (symbol_to_ms_cf):
9461 * select-msw.c (ms_cf_to_symbol):
9462 * select-msw.c (cf_is_autofreed):
9463 * select-msw.c (mswindows_destroy_selection):
9465 * select.c (syms_of_select):
9467 support dibv5, fix bugs. (from Mike Alexander)
9469 * select.c (Fget_selection_internal):
9470 * select.c (select_convert_out):
9473 * sysdep.c (xemacs_stat):
9478 but keep original stat() here because we provide encapsulation
9482 * sysfile.h (fstat):
9483 remove stat garbage.
9487 don't include tchar.h. it's inappropriate because it makes
9488 compile-time distinctions when we want runtime distinctions.
9489 (we provide our own tchar replacements)
9492 use default object printer for toolbar-button.
9495 make sure we don't encapsulate.
9497 * window.c (vars_of_window):
9498 emphasize that temp-buffer-show-hook is obsolete.
9500 2000-08-05 Martin Buchholz <martin@xemacs.org>
9502 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9503 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9505 * events.c (Fevent_timestamp_lessp):
9506 Not 64-bit clean. Use EMACS_INT, not int.
9508 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
9510 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9511 unsigned int and changed the last enum to
9512 lrecord_type_last_built_in_type.
9513 (lrecord_implementations_table): changed prototype to know how
9514 long the array is supposed to be.
9515 (lrecord_type_count): new unsigned int to keep track of the
9516 current number of lisp lrecord types.
9517 (DEFINE_EXTERNAL_LRECORD):
9518 (DECLARE_EXTERNAL_LRECORD): Added these two for external
9519 dynamic-modules to declare new lisp types. They are the same
9520 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9521 int for each new type, and increment lrecord_type_count by 1.
9523 * alloc.c (lrecord_implementations_table): Changed to reference
9524 lrecord_type_last_built_in_type for the size of the array.
9525 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9527 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9529 * glyphs.h (check_valid_item_list): Renamed from
9530 check_valid_item_list_1.
9532 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9534 * select.c (Qselect_coerce): New.
9535 * select.c (Vselection_coercion_alist): New.
9536 * select.c (syms_of_select): Declare.
9537 * select.c (get-selection-internal): Use it.
9538 Use the new select-coerce functionality.
9540 * select.c (select_coerce): New.
9541 * select.h (select_coerce): Declare.
9542 New function to coerce one type of data into another.
9544 2000-08-03 Martin Buchholz <martin@xemacs.org>
9546 * callproc.c (Fcall_process_internal):
9547 (Fcall_process_internal):
9548 * process-unix.c (unix_create_process):
9549 Save and restore the value of errno, so that error messages are accurate.
9551 2000-08-01 Martin Buchholz <martin@xemacs.org>
9553 * elhash.c (print_hash_table):
9554 Fix printing of hash tables to also use `key-and-value' instead of `t'.
9555 Prettify docstrings and indentation.
9557 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
9559 * window.c (Fwindow_pixel_edges): Subtract frame border and
9562 2000-07-31 Andy Piper <andy@xemacs.org>
9564 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9565 will acknowledge the change.
9567 * glyphs.h: declare tab_control_order_only_changed.
9569 * glyphs-x.c (x_tab_control_redisplay): use
9570 tab_control_order_only_changed.
9572 * glyphs-widget.c (tab_control_order_only_changed): new function.
9574 * glyphs-msw.c (mswindows_tab_control_redisplay): use
9575 tab_control_order_only_changed.
9577 * gui.c (gui_item_equal_sans_selected): new function.
9578 (gui_item_equal): use it.
9580 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9581 :properties in favor of :items..
9583 * glyphs-widget.c (check_valid_item_list): rename from
9584 check_valid_item_list_1.
9585 (check_valid_item_list_1): renamed.
9586 (combo_box_validate): deprecate :properties in favor of :items.
9587 (widget_instantiate): ditto.
9588 (tab_control_update): ditto.
9589 (image_instantiator_combo_box): ditto.
9590 (image_instantiator_tree_view): ditto.
9591 (image_instantiator_tab_control): ditto.
9592 (layout_post_instantiate): remove dead code.
9594 * print.c (debug_print_no_newline): only write to debugger if in
9597 * elhash.c (Fmake_hash_table): update doc string.
9599 * event-msw.c (mswindows_wnd_proc): don't allow processing of
9600 messages whilst in GC. This at least stops XEmacs crashing but has
9601 the potential for wierd behaviour.
9603 2000-07-31 Martin Buchholz <martin@xemacs.org>
9606 Make existence of s&m files optional.
9608 * s/bsd386.h: Remove HAVE_GETLOADAVG.
9609 * s/freebsd.h: Remove HAVE_GETLOADAVG.
9610 * s/gnu.h: Remove HAVE_GETLOADAVG.
9611 * s/netbsd.h: Remove HAVE_GETLOADAVG.
9612 * s/sol2.h: Remove HAVE_GETLOADAVG.
9613 * lisp.h: Remove getloadavg() declaration.
9615 Include <sys/loadavg.h> if available.
9616 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9617 * config.h.in: Group together getloadavg()-related macros.
9618 Use only configure-time tests to detect getloadavg().
9620 2000-07-30 Martin Buchholz <martin@xemacs.org>
9622 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9624 2000-07-25 Andy Piper <andy@xemacs.org>
9626 * syswindows.h: add tchar.h for native builds.
9628 * frame.c (syms_of_frame): remove set-glyph-image.
9630 * general-slots.h: add Qset_glyph_image.
9632 * glyphs-widget.c (layout_update): add domain arg to
9634 (syms_of_glyphs_widget): remove set-glyph-image.
9636 2000-07-23 Ben Wing <ben@xemacs.org>
9638 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9641 2000-07-22 Andy Piper <andy@xemacs.org>
9643 * symsinit.h: add syms_of_win32().
9645 * gui-msw.c (syms_of_gui_mswindows): remove
9646 Fmswindows_shell_execute.
9647 (Fmswindows_shell_execute): moved to win32.c.
9649 * emacs.c (main_1): add syms_of_win32 ().
9651 * win32.c (init_potentially_nonexistent_functions): rewrite in
9652 compiler-friendly terms.
9653 (Fmswindows_shell_execute): move here from gui-msw.c.
9654 (syms_of_win32): new.
9656 * device-msw.c (Fmswindows_printer_list): clean up args to
9658 Don't include tchar under cygwin or mingw.
9659 (msprinter_default_printer): make cygwin-friendly.
9661 2000-07-21 Andy Piper <andy@xemacs.org>
9663 * glyphs-widget.c (image_instantiator_tree_view): use tab
9664 control's update function.
9665 (layout_property): new function. Retrieve items.
9667 * glyphs-msw.c (mswindows_tree_view_redisplay): new
9668 function. Re-populate the tree view from the pending items.
9670 * glyphs.c (instantiate_image_instantiator): Make sure the domain
9671 is designated the parent if the domain is an image instance. This
9672 is needed so that dirtiness can be cascade up the hierarchy and
9673 thus for layout children to be redisplayed correctly.
9674 (allocate_image_instance): rename glyph -> parent.
9676 * redisplay.h: change redisplay_output_layout signature.
9678 * redisplay-msw.c (mswindows_output_display_block): use domain
9681 * redisplay-x.c (x_output_display_block): use domain arg.
9683 2000-07-10 Andy Piper <andy@xemacs.org>
9685 * window.c (Fset_window_configuration): add comment.
9687 * redisplay-output.c (compare_runes):
9688 (redisplay_output_subwindow): redisplay rather than update subwindow.
9689 (redisplay_output_layout): ditto.
9691 * redisplay-msw.c (mswindows_frame_output_end):
9692 (mswindows_frame_output_end): make defer window pos optional.
9694 * lisp.h: add Flast.
9696 * glyphs.h (struct image_instantiator_methods): add dest_mask top
9697 normalize method. Change update method to be for changed
9698 instantiators. Add redisplay method. Change signature of layout
9700 (struct Lisp_Image_Instance): add instantiator.
9701 (IMAGE_INSTANCE_INSTANTIATOR): new.
9702 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9703 (XIMAGE_INSTANCE_INSTANTIATOR): new.
9704 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9707 (find_instantiator_differences): new function.
9708 (Fset_instantiator_property): new convenience function.
9709 (check_image_instance_structure): strictly check for vector
9711 (normalize_image_instantiator): make non-static.
9712 (instantiate_image_instantiator): pass on dest_mask and use new
9713 signatures for image_instance_layout and friends.
9714 (mark_image_instance): mark the instantiator. Mark the subwindow
9715 face not the widget face.
9716 (image_instance_equal): add instantiator.
9717 (image_instance_hash): ditto.
9718 (allocate_image_instance): ditto.
9719 (Fset_image_instance_property): removed.
9720 (Fimage_instance_file_name): ditto.
9721 (Fcolorize_image_instance): ditto.
9722 (image_instance_layout): add offsets to be set.
9723 (update_image_instance): new function. update an image instance
9724 from its changed instantiator.
9725 (inherit_normalize): add dest_mask.
9726 (xbm_normalize): ditto.
9727 (xface_normalize): ditto.
9728 (xpm_normalize): ditto.
9729 (text_update): set_property -> update.
9730 (image_instantiate): use the glyph identity as a hash key, not the
9732 (glyph_width): use new image_instance_layout signature.
9733 (glyph_ascent): ditto.
9734 (glyph_descent): ditto.
9735 (glyph_height): ditto.
9736 (glyph_query_geometry): ressurrect.
9737 (glyph_layout): ditto.
9738 (redisplay_subwindow): update -> redisplay.
9739 (syms_of_glyphs): add Fset_instantiator_property.
9740 (image_instantiator_format_create): set_property -> update.
9743 (autodetect_normalize): add dest_maks to signature.
9744 (x_redisplay_subwindow): update -> redisplay.
9745 (x_redisplay_widget): ditto.
9746 (x_button_redisplay): ditto.
9747 (x_progress_gauge_redisplay): ditto.
9748 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9750 (console_type_create_glyphs_x): update -> redisplay.
9751 (image_instantiator_format_create_glyphs_x): ditto.
9754 (check_valid_instantiator): disallow glyphs in the instantiator,
9755 they must now be vectors.
9756 (check_valid_instantiator_list): ditto.
9757 (glyph_instantiator_to_glyph): use internal symbol rather than
9759 (widget_update): renamed from widget_set_property. Call cascaded
9761 (redisplay_widget): renamed from update_widget.
9762 (widget_layout): image_instance_layout now takes position as well
9764 (widget_normalize): ditto.
9765 (widget_instantiate): ditto.
9766 (tab_control_query_geometry) ditto.:
9767 (tab_control_update): renamed from tab_control_set_property.
9768 (progress_gauge_update): set_property -> update.
9769 (layout_normalize): rewrite so that child instantiators are
9771 (layout_update): new function. Create glyphs from the normalized
9772 children and cope with any other layout keywords. We do not
9773 instantiate children here that will be take care of by
9774 redisplay_output_layout.
9775 (layout_instantiate): call layout_update and not much else.
9776 (layout_post_instantiate): not sure whether this is needed
9778 (layout_query_geometry): query glyph geometry rather than
9779 image_instance geometry.
9780 (layout_layout): set offsets from pass in parameters. Use glyph
9781 geometry and layout functions rather than image instance ones.
9782 (native_layout_layout): ditto.
9783 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9784 (image_instantiator_widget): set_property -> update.
9785 (image_instantiator_buttons): ditto.
9786 (image_instantiator_progress_guage): ditto.
9787 (image_instantiator_tab_control): ditto.
9788 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9789 (image_instantiator_layout): add update method.
9791 * glyphs-msw.c (bmp_normalize):
9792 (mswindows_resource_normalize): add dest_mask so that it can be
9793 proprogated by layout_normalize.
9794 (begin_defer_window_pos): make optional because it may not be the
9795 right thing to do and it introduces differences with X.
9796 (mswindows_unmap_subwindow): ditto.
9797 (mswindows_map_subwindow): ditto.
9798 (mswindows_redisplay_subwindow): renamed from
9799 mswindows_update_subwindow.
9800 (mswindows_redisplay_widget): ditto.
9801 (mswindows_button_redisplay): renamed from
9802 mswindows_button_update. Update is now what the instantiation
9803 function does for a changed instantiator.
9804 (mswindows_progress_gauge_instantiate): set the progress value
9805 here if appropriate.
9806 (mswindows_tab_control_redisplay): cope with re-ordering of the
9807 members of the tab widget by simply selecting the new top
9808 widget. This makes things appear ok if you click on a tab.
9809 (mswindows_combo_box_instantiate): image_instance_layout now takes
9810 position as well as size.
9811 (mswindows_progress_gauge_redisplay): renamed from
9812 mswindows_progress_gauge_update.
9813 (console_type_create_glyphs_mswindows): fix update -> redisplay.
9814 (image_instantiator_format_create_glyphs_mswindows): ditto.
9816 * glyphs-eimage.c (jpeg_normalize):
9819 (tiff_normalize): add dest_mask so that it can be proprogated by
9824 (hash_table_weakness_validate):
9825 (decode_hash_table_weakness):
9826 (Fhash_table_weakness):
9828 (syms_of_elhash): use Ben's naming scheme for hashtable types..
9830 * console.h (struct console_methods): move update_* to
9833 2000-07-20 Ben Wing <ben@xemacs.org>
9835 * *.[ch] (XSETOBJ): remove unused middle argument.
9836 lisp-disunion.h: correct wrap_object() to one argument.
9838 2000-07-15 Ben Wing <ben@xemacs.org>
9841 * s/cygwin32.h (CYGWIN_CONV_PATH):
9842 Add missing logb prototype for v1.1.
9843 Use post-b20 names and alias to pre-b20 names when pre-b20.
9845 * s/windowsnt.h: [5].
9847 2000-07-15 Ben Wing <ben@xemacs.org>
9849 * Makefile.in.in (x_objs):
9850 * Makefile.in.in (sheap_objs):
9851 * Makefile.in.in (objs):
9852 added win32.o, cosmetic cleanups.
9854 * alloc.c (Fmake_byte_code):
9855 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9856 etc. macros which declare their own args now.
9858 * alloc.c (syms_of_alloc):
9859 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9862 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9864 * buffer.c (Fget_file_buffer):
9865 Fixed GCPRO problem.
9867 * buffer.c (get_truename_buffer):
9868 Fixed comment about GC checking.
9870 * buffer.c (syms_of_buffer):
9871 Undeclared those dedicated frame funs.
9875 Define convenience macros for internal/external conversions.
9876 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9877 and Qenvironment_variable_encoding for cleaner code.
9880 Remove dedicated-frame; in lisp.
9882 * bytecode.c (funcall_compiled_function):
9885 * bytecode.c (syms_of_bytecode):
9889 * console-msw.c (mswindows_show_console): Rewrote.
9891 * console-msw.c (Fmswindows_debugging_output): New.
9892 Sends to OutputDebugString (special MSWin debugger interface).
9894 * console-msw.c (Fmswindows_message_box):
9895 Fixed stupid bugs so it works when called from kill-emacs.
9897 * console-msw.c (syms_of_console_mswindows):
9898 Declare Fmswindows_debugging_output.
9901 New MSWin prototypes.
9903 * console-msw.h (struct mswindows_frame):
9904 New entry last-click-mods for improved button-modifier support.
9906 * console-msw.h (FRAME_MSWINDOWS_POPUP):
9907 New struct entry `popup' with corresponding accessor.
9910 * console-x.c (split_up_display_spec):
9911 * console-x.c (get_display_arg_connection):
9912 * console-x.c (x_semi_canonicalize_console_connection):
9913 * console-x.c (x_canonicalize_device_connection):
9914 [[[6]]]: Change char to more specific type.
9915 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9917 * console-x.c (x_semi_canonicalize_console_connection):
9918 * console-x.c (x_canonicalize_device_connection):
9919 [[[9]]]: Fix up error signalling to use new structured error system.
9922 [[[4]]]: Define codesys aliases:
9923 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9924 Qx_color_name_encoding, Qx_display_name_encoding.
9926 * console.h (struct console_methods):
9927 New method make_dialog_box_internal supersedes older
9928 popup_dialog_box method.
9931 Define many new errors, part of new structured errors.
9933 * data.c (init_errors_once_early):
9934 * data.c (syms_of_data):
9937 * device-msw.c (mswindows_init_device):
9938 [[[5]]]: Cleanup to support NT 3.51.
9940 * device-msw.c (decode_devmode): Cleanup.
9942 * device-msw.c (mswindows_handle_print_setup_dialog_box):
9943 * device-msw.c (mswindows_handle_print_dialog_box):
9944 * device-msw.c (mswindows_handle_page_setup_dialog_box):
9945 * device-msw.c (syms_of_device_mswindows):
9946 Delete the dialog box primitives recently introduced by Kirill and
9947 instead interface to general dialog box interface.
9950 * device-x.c (compute_x_app_name):
9951 * device-x.c (x_init_device):
9952 * device-x.c (Fx_valid_keysym_name_p):
9953 * device-x.c (Fx_set_font_path):
9957 * device.h (wrap_device): New.
9958 First of its kind; meant to replace XSETDEVICE.
9960 * dialog-msw.c: Many file-dialog symbols.
9962 * dialog-msw.c (mswindows_register_popup_frame): New.
9963 * dialog-msw.c (mswindows_is_dialog_msg): New.
9964 For supporting kbd traversal in dialog boxes.
9966 * dialog-msw.c (dialog_proc):
9967 Support hitting ESC in dialogs.
9969 * dialog-msw.c (struct):
9970 Common dialog box errors.
9972 * dialog-msw.c (handle_file_dialog_box): New.
9973 Add file dialog code.
9975 * dialog-msw.c (handle_question_dialog_box):
9976 Redo existing code to support new question dialog syntax.
9978 * dialog-msw.c (console_type_create_dialog_mswindows):
9979 We support new dialog console method.
9981 * dialog-msw.c (syms_of_dialog_mswindows):
9982 * dialog-msw.c (vars_of_dialog_mswindows):
9983 New file dialog symbols, vars.
9986 * dialog-x.c (maybe_run_dbox_text_callback):
9987 * dialog-x.c (dbox_descriptor_to_widget_value):
9988 * dialog-x.c (x_make_dialog_box_internal):
9989 * dialog-x.c (console_type_create_dialog_x):
9990 Mule-ize entire file.
9991 Redo to support question dialog syntax.
9995 * dialog.c (Fmake_dialog_box_internal):
9996 * dialog.c (syms_of_dialog):
9997 Kill old popup-dialog-box, replace with new primitive.
9998 Just call device method or signal error.
10000 * eldap.c (Fldap_open):
10001 * eldap.c (Fldap_search_basic):
10002 * eldap.c (Fldap_add):
10003 * eldap.c (Fldap_modify):
10008 * emacs.c (make_arg_list_1):
10009 * emacs.c (make_arg_list):
10010 Mule-ize call to dll_init().
10014 * emacs.c (make_argc_argv):
10015 * emacs.c (free_argc_argv):
10016 * emacs.c (init_cmdargs):
10017 * emacs.c (main_1):
10018 * emacs.c (Fkill_emacs):
10019 * emacs.c (Fdump_emacs):
10020 Update comments about what can be used in syms_* etc.
10021 Call init_win32() when necessary.
10022 Fix up MS Win dialog box in kill-buffer to actually work right.
10033 * eval.c (condition_case_3):
10035 * eval.c (function_argcount):
10036 * eval.c (funcall_lambda):
10039 * eval.c (type_error): New.
10040 * eval.c (maybe_type_error): New.
10041 * eval.c (continuable_type_error): New.
10042 * eval.c (maybe_continuable_type_error): New.
10043 * eval.c (type_error_with_frob): New.
10044 * eval.c (maybe_type_error_with_frob): New.
10045 * eval.c (continuable_type_error_with_frob): New.
10046 * eval.c (maybe_continuable_type_error_with_frob): New.
10047 New functions for use with structured errors.
10050 * event-Xt.c (x_event_to_emacs_event):
10051 Buttons are now modifiers too.
10053 * event-Xt.c (emacs_Xt_current_event_timestamp):
10054 Implement new event method.
10055 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10058 * event-msw.c (ntpipe_shove_writer): [5].
10059 * event-msw.c (mswindows_enqueue_mouse_button_event):
10060 * event-msw.c (mswindows_drain_windows_queue):
10061 * event-msw.c (mswindows_wnd_proc): [7].
10062 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10063 * event-msw.c (mswindows_modifier_state):
10064 Throughout: support new button modifiers.
10066 * event-msw.c (emacs_mswindows_current_event_timestamp):
10067 Implement new event method.
10068 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10071 * event-stream.c (event_stream_current_event_timestamp): New.
10072 * event-stream.c (maybe_kbd_translate): New functionality.
10073 * event-stream.c (vars_of_event_stream):
10074 Document new kbd-translate-table functionality.
10076 * event-stream.c (Fcurrent_event_timestamp): New.
10077 New primitive for use in fabricated events.
10078 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10080 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10083 * events.c (Fmake_event):
10084 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10088 * events.c (format_event_object): fix gcc warnings.
10090 * events.c (Fevent_timestamp): Document new primitives.
10092 * events.c (TIMESTAMP_HALFSPACE): New.
10094 * events.c (Fevent_timestamp_lessp): New. New primitive for
10095 comparing timestamps correctly (half-space algorithm).
10097 * events.c (Fevent_modifier_bits): Doc fix.
10099 * events.c (Fevent_modifiers): Major doc addition.
10100 * events.c (event_x_y_pixel_internal): Typo fix.
10101 * events.c (syms_of_events): Declare new primitives.
10104 Update long comment for button modifiers, timestamps.
10106 * events.h (struct event_stream):
10107 New current_event_timestamp method.
10110 * extents.c (extent_in_region_p):
10111 * extents.c (decode_extent):
10112 * extents.c (Fset_extent_parent):
10113 * extents.c (decode_map_extents_flags):
10117 * extents.c (struct extent_at_arg):
10118 * extents.c (decode_extent_at_flag):
10119 * extents.c (extent_at_mapper):
10120 * extents.c (extent_at_bytind):
10121 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10122 * extents.c (Fextents_at): New primitive. [9].
10123 * extents.c (symbol_to_glyph_layout): [9].
10124 Support new primitive `extents-at'.
10127 * extents.c (get_text_property_bytind):
10128 extent_at_bytind has another arg.
10131 * extents.c (syms_of_extents): New primitive.
10133 * file-coding.c (Fmake_coding_system): [1].
10134 * file-coding.c (subsidiary_coding_system): fix gcc warning
10135 * file-coding.c (syms_of_file_coding): [2].
10137 * fileio.c (Fexpand_file_name):
10138 * fileio.c (Fsysnetunam):
10139 * fileio.c (Ffile_exists_p):
10140 * fileio.c (Ffile_executable_p):
10141 * fileio.c (Fverify_visited_file_modtime):
10144 * fileio.c (syms_of_fileio): [2].
10146 * filelock.c (lock_file_1):
10147 * filelock.c (current_lock_owner):
10148 * filelock.c (lock_if_free):
10149 * filelock.c (lock_file):
10150 * filelock.c (unlock_file):
10153 * fns.c (concat): Fix gcc warning.
10156 * fns.c (Fold_member):
10158 * fns.c (Fold_memq):
10159 * fns.c (memq_no_quit):
10161 * fns.c (Fold_assoc):
10163 * fns.c (Fold_assq):
10164 * fns.c (assq_no_quit):
10166 * fns.c (Fold_rassoc):
10168 * fns.c (Fold_rassq):
10169 * fns.c (rassq_no_quit):
10171 * fns.c (Fold_delete):
10173 * fns.c (Fold_delq):
10174 * fns.c (delq_no_quit):
10175 * fns.c (Fremassoc):
10176 * fns.c (Fremassq):
10177 * fns.c (remassq_no_quit):
10178 * fns.c (Fremrassoc):
10179 * fns.c (Fremrassq):
10180 * fns.c (remrassq_no_quit):
10181 * fns.c (Freverse):
10185 * frame-msw.c (mswindows_init_frame_1):
10186 * frame-msw.c (mswindows_delete_frame):
10187 Register popups with dialog code so keyboard traversing works.
10189 * frame-tty.c (tty_raise_frame_no_select): [1].
10192 * frame-x.c (x_set_frame_text_value):
10193 * frame-x.c (x_set_frame_properties):
10194 * frame-x.c (x_create_widgets):
10198 * frame.c (Fmouse_pixel_position): Minor doc fixes.
10200 * frame.h (wrap_frame): New.
10201 Macro like wrap_device.
10204 * general.c (SYMBOL):
10205 * general.c (syms_of_general):
10206 Major reorg. This is now just a wrapper and symbols themselves
10207 are listed in general-slots.h.
10209 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10210 * glyphs-msw.c (mswindows_resource_instantiate): [5].
10212 * glyphs-msw.c (mswindows_native_layout_instantiate):
10213 Add DS_CONTROL so keyboard traversal will work.
10216 * glyphs-widget.c (syms_of_glyphs_widget):
10217 Move some symbols to general-slots.h.
10220 * glyphs-x.c (xbm_instantiate_1):
10221 * glyphs-x.c (x_xbm_instantiate):
10222 * glyphs-x.c (x_xface_instantiate):
10223 * glyphs-x.c (autodetect_instantiate):
10224 * glyphs-x.c (cursor_font_instantiate):
10225 * glyphs-x.c (x_update_widget):
10226 * glyphs-x.c (x_widget_instantiate):
10227 * glyphs.c (bitmap_to_lisp_data):
10228 * glyphs.c (pixmap_to_lisp_data):
10231 * glyphs.c (syms_of_glyphs):
10235 * gui-x.c (print_widget_value):
10236 * gui-x.c (menu_separator_style_and_to_external):
10237 * gui-x.c (add_accel_and_to_external):
10238 * gui-x.c (button_item_to_widget_value):
10239 * gui-x.c (gui_items_to_widget_values_1):
10240 * gui-x.c (gui_items_to_widget_values):
10241 * gui-x.c (syms_of_gui_x):
10242 * gui-x.c (vars_of_gui_x):
10243 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
10247 Muleize, prototype changes matching gui-x.c.
10250 * gui.c (separator_string_p):
10251 * gui.c (gui_item_add_keyval_pair):
10252 * gui.c (make_gui_item_from_keywords_internal):
10253 * gui.c (signal_too_long_error):
10254 * gui.c (parse_gui_item_tree_item):
10255 * gui.c (syms_of_gui):
10256 * gui.c (vars_of_gui):
10258 menu-no-selection-hook moved here (used by MSWin).
10259 Move some symbols to general-slots.h.
10263 * insdel.c (get_buffer_pos_char):
10264 * insdel.c (get_buffer_range_char):
10267 * keymap.c (keymap_lookup_directly):
10268 * keymap.c (keymap_store):
10269 * keymap.c (ensure_meta_prefix_char_keymapp):
10270 * keymap.c (describe_map):
10272 Support new button modifiers.
10274 * lisp-disunion.h (wrap_object):
10275 * lisp-disunion.h (XSETOBJ):
10276 Rename make_obj to wrap_object.
10279 * lisp-union.h (make_int):
10280 * lisp-union.h (make_char):
10281 Support wrap_object.
10284 * lisp.h (LIST_LOOP):
10285 * lisp.h (EXTERNAL_LIST_LOOP):
10286 * lisp.h (LIST_LOOP_2):
10287 * lisp.h (EXTERNAL_LIST_LOOP_1):
10288 * lisp.h (EXTERNAL_LIST_LOOP_2):
10289 * lisp.h (EXTERNAL_LIST_LOOP_3):
10290 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10291 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10292 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10293 * lisp.h (EXTERNAL_ALIST_LOOP_5):
10294 * lisp.h (EXTERNAL_ALIST_LOOP_6):
10295 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10296 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10297 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10298 * lisp.h (struct Lisp_Symbol):
10299 * lisp.h (maybe_continuable_error_with_frob):
10300 Fix up section comments.
10301 Add new types for char to indicate usage.
10302 Delete symbols auto-generated from general-slots.h.
10303 Add prototypes for structured error functions.
10304 Add long comments describing looping macros and change interface
10305 so that lvalues are automatically declared.
10306 Add NO_DECLARE macro in case callers want to declare lvalues
10309 * lread.c (read_syntax_error):
10310 * lread.c (continuable_read_syntax_error):
10311 * lread.c (read_structure):
10312 * lread.c (sequence_reader):
10313 * lread.c (read_list_conser):
10314 * lread.c (read_compiled_function):
10315 Rename syntax_error and continuable_syntax_error to avoid clash
10316 with same-named structured error functions.
10318 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10319 * menubar-msw.c (populate_menu_add_item):
10320 * menubar-msw.c (populate_or_checksum_helper):
10325 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10326 Mule-ize whole file.
10328 * menubar.c (Fnormalize_menu_item_name): Add optimization.
10330 * mule-charset.c (Fmake_charset):
10331 * mule-wnnfns.c (Fwnn_set_param):
10334 * ntproc.c (create_child):
10335 * ntproc.c (Fwin32_set_current_locale):
10336 Add comments portending doom.
10339 * objects-msw.c (old_font_enum_callback_2):
10340 * objects-msw.c (font_enum_callback_1):
10341 * objects-msw.c (mswindows_enumerate_fonts):
10345 * objects-x.c (allocate_nearest_color):
10346 * objects-x.c (x_parse_nearest_color):
10347 * objects-x.c (x_initialize_color_instance):
10348 * objects-x.c (x_print_color_instance):
10349 * objects-x.c (x_finalize_color_instance):
10350 * objects-x.c (x_valid_color_name_p):
10351 * objects-x.c (x_initialize_font_instance):
10352 * objects-x.c (x_print_font_instance):
10353 * objects-x.c (valid_x_font_name_p):
10354 * objects-x.c (truename_via_FONT_prop):
10355 * objects-x.c (truename_via_random_props):
10356 * objects-x.c (truename_via_XListFonts):
10357 * objects-x.c (x_font_truename):
10358 * objects-x.c (x_font_instance_truename):
10359 * objects-x.c (x_font_instance_properties):
10360 * objects-x.c (x_list_fonts):
10361 * objects-x.c (x_find_charset_font):
10362 Mule-ize entire file.
10369 * print.c (std_handle_out_external):
10370 * print.c (debug_print_no_newline):
10371 * print.c (syms_of_print):
10372 Output to all debugger kinds in debug-print.
10373 Fix console-output code under MSWin to actually work.
10375 * process-nt.c (send_signal):
10376 * process-nt.c (nt_create_process):
10377 Use newer Unicode macros.
10379 * process-unix.c (unix_create_process):
10380 * process-unix.c (unix_canonicalize_host_name):
10381 * process-unix.c (unix_open_network_stream):
10387 * search.c (syms_of_search):
10390 * select-msw.c (mswindows_destroy_selection):
10393 * select-x.c (symbol_to_x_atom):
10396 * select.c (syms_of_select):
10399 * sound.c (Fplay_sound_file):
10403 * specifier.c (decode_specifier_type):
10404 * specifier.c (Fvalid_specifier_locale_type_p):
10405 * specifier.c (check_valid_locale_or_locale_type):
10406 * specifier.c (decode_locale):
10407 * specifier.c (decode_locale_type):
10408 * specifier.c (decode_locale_list):
10409 * specifier.c (check_valid_domain):
10410 * specifier.c (decode_specifier_tag_set):
10411 * specifier.c (Fcanonicalize_tag_set):
10412 * specifier.c (Fdefine_specifier_tag):
10413 * specifier.c (Fspecifier_tag_predicate):
10414 * specifier.c (check_valid_inst_list):
10415 * specifier.c (check_valid_spec_list):
10416 * specifier.c (decode_how_to_add_specification):
10417 * specifier.c (check_modifiable_specifier):
10418 * specifier.c (specifier_add_spec):
10419 * specifier.c (boolean_validate):
10420 * specifier.c (display_table_validate):
10423 * specifier.c (syms_of_specifier):
10424 Move some symbols to general-slots.h.
10428 * symbols.c (Fmapatoms):
10429 * symbols.c (Fapropos_internal):
10432 * symbols.c (set_default_buffer_slot_variable):
10433 * symbols.c (set_default_console_slot_variable):
10436 * symbols.c (defsymbol_massage_name_1):
10437 * symbols.c (defkeyword_massage_name):
10438 * symbols.c (deferror_1):
10439 * symbols.c (deferror):
10440 * symbols.c (deferror_massage_name_and_message):
10442 * symeval.h (DEFSYMBOL):
10443 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10445 * symbols.c (syms_of_symbols):
10449 * symsinit.h (init_win32): New.
10450 Also new is syms_of_dialog_mswindows.
10453 Add new Unicode macros, missing Cygwin wide-char functions,
10454 convenience conversion macros for Qmswindows_tstr, macros for
10455 encapsulating required MSWin <-> Cygwin filename conversions,
10456 prototype for dynamically-extracted (not in NT 3.51) functions.
10461 * tooltalk.c (Fadd_tooltalk_message_arg):
10462 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10463 * tooltalk.c (Fadd_tooltalk_pattern_arg):
10466 * tooltalk.c (syms_of_tooltalk):
10470 * unexnt.c (unexec):
10471 Fix up headers, declaration of unexec() to be more standard.
10473 2000-07-20 Martin Buchholz <martin@xemacs.org>
10475 * offix.h: Revert change to guard macros - they're used in offix.c!
10477 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10479 * lisp.h: Defsubred Fdelete.
10481 * console-msw.h: (msprinter_default_printer): Added.
10483 * console-msw.c (msprinter_canonicalize_console_connection):
10484 (msprinter_canonicalize_device_connection): Added.
10486 * device-msw.c (msprinter_default_printer):
10487 (Fmswingows_get_default_printer):
10488 (signal_enum_priner_error):
10489 (Fmswingows_printer_list): Added.
10491 2000-07-19 Martin Buchholz <martin@xemacs.org>
10493 * XEmacs 21.2.35 is released.
10495 2000-07-19 Martin Buchholz <martin@xemacs.org>
10497 * select-x.c (x_handle_selection_request):
10498 Text selected in xemacs and pasted into xterm failed to appear.
10499 Spelling fixes and cosmetic changes.
10501 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10503 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10504 XEmacs frame (fix for doubling chars in dialog boxes).
10506 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10508 * select.c (select_convert_in, select_convert_out):
10509 Don't call intern() every time.
10511 * select.c (Qselect_convert_in, Qselect_convert_out): New.
10512 * select.c (vars_of_select): Initialise them.
10514 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10516 * select.c (selection-coercible-types): New.
10518 * select.c (own-selection-internal):
10519 * select.c (get-selection-internal):
10520 MULE bug fix - these should default to COMPOUND_TEXT and not
10521 STRING for MULE. I think.
10523 * select.c (select_convert_out): Use selection-coercible-types
10524 to find types that we can attempt to perform coercions on.
10526 2000-07-18 Martin Buchholz <martin@xemacs.org>
10530 Add coding: cookie to identify encoding.
10532 * mule-canna.c (CANNA_mode_keys): make static.
10533 Use proper prototypes, even for functions of no arguments.
10534 Remove external prototype for Fding().
10536 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10538 * select.c (syms_of_select): Add missing DEFSUBR.
10540 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10542 * select.c (get_selection_internal, own_selection_internal):
10543 Make the type default to STRING, rather than placing a nil type
10544 into Vselection_alist.
10546 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10548 * gpmevent.c (tty_selection_exists_p):
10549 * gpmevent.c (tty_own_selection):
10550 Updated parameter lists.
10552 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10554 * select.h (selection-alist): Removed declaration.
10556 * select.h (get_local_selection):
10557 * select.c (get_local_selection):
10560 * select.h (convert_selection): Removed declaration.
10561 * select.c (convert_selection): Removed.
10562 This function belongs in Lisp.
10564 * select.h (select_convert_in): Declare.
10565 * select.h (select_convert_out): Declare.
10566 * select.c (select_convert_in): New.
10567 * select.c (select_convert_out): New.
10568 New conversion functions for other files to call.
10570 * select.h (select_notify_buffer_kill): Declare.
10571 * select.c (select_notify_buffer_kill): New.
10572 New functions that get called from kill-buffer.
10574 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10575 X-specific lisp code.
10577 * select.h: Declare some of the lisp-visible functions for
10580 * select.c (clean_local_selection_data): Removed. This was
10581 a disgusting function, and previously should have been in
10582 select-x.c in any case. The functionality is now provided
10583 in select-convert-from-integer (select.el).
10585 * select.c (available-selection-types): Fixed stupidity where
10586 INTEGER and ATOM got added twice. Also add STRING when we see an
10589 * select.c (get-selection-internal): Removed symbol stripping. No
10590 longer causes conversion when data comes from the internal cache.
10592 * select.c (syms_of_select): Added new functions.
10594 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10595 error checking - previously this called abort!
10597 * select-x.c (x_own_selection): Changed comment.
10599 * select-x.c (x_handle_selection_request): Use select_convert_out.
10600 Don't mess with selection-alist; it's an internal variable of select.c.
10602 * select-x.c (x_get_foreign_selection): Use select_convert_in.
10604 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10605 rather than messing with selection-alist.
10607 * select-msw.c (mswindows_get_foreign_selection):
10608 Use TO_INTERNAL_FORMAT rather than hacking.
10610 2000-07-14 Martin Buchholz <martin@xemacs.org>
10612 * process-unix.c (unix_open_multicast_group):
10613 (unix_open_multicast_group): Remove useless casts.
10615 2000-07-13 Martin Buchholz <martin@xemacs.org>
10617 * sound.c (Fplay_sound): Fix `unused variable' warning.
10619 * emacs.c (main): Use correct type for _environ on SCO5.
10621 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10623 * console.h (own_selection_method):
10624 * console.h (selection_exists_p_method):
10625 * console.h (available_selection_types_method): New.
10626 * console.h (register_selection_data_type_method): New.
10627 * console.h (selection_data_type_name): New.
10629 * console-msw.h (mswindows_destroy_selection): Declare it. New
10630 function & alist to track GlobalAlloc()'d handles that need
10631 releasing when the clipboard data gets replaced or emptied.
10633 * event-msw.c (mswindows_wnd_proc): Call it.
10635 * lisp.h, general.c (Qappend): New symbol representing a
10638 * select.c (own-selection-internal):
10639 * select.c (selection-exists-p):
10640 * select.c (available-selection-types): New.
10641 * select.c (register-selection-data-type): New.
10642 * select.c (selection-data-type-name): New. New functions to deal
10643 with device-specific selection data formats.
10644 * select.c (selection-converter-out-alist): Renamed.
10645 * select.c (selection-converter-in-alist): New.
10646 * select.c (selection-appender-alist): New. Added new alists.
10647 * select.c (syms_of_select, vars_of_select): Added new symbols &
10649 * select.c (get_local_selection): Split.
10650 * select.c: Removed spurious type checking - selections may now be
10651 of any type, not just strings.
10652 * select.c (own-selection-internal):
10654 * select.h, select.c (convert_selection): New. Created
10655 convert_selection() function based on get_local_selection().
10656 * select.h, select.c (QCF_*): New symbols representing mswindows
10658 * select.h, select.c (Qreplace_all, Qreplace_existing): New
10659 symbols representing `how-to-add' modes.
10661 * select-msw.c (x_sym_p): New.
10662 * select-msw.c (symbol_to_ms_cf): New.
10663 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10664 symbols & clipboard formats. Can also handle string names.
10665 * select-msw.c (mswindows_own_selection):
10666 * select-msw.c (mswindows_selection_exists_p):
10667 Added `data-type' parameter. Use it.
10668 * select-msw.c (mswindows_available_selection_types): New.
10669 * select-msw.c (mswindows_register_selection_data_type): New.
10670 * select-msw.c (mswindows_selection_data_type_name): New.
10671 * select-msw.c (mswindows_own_selection):
10672 * select-msw.c (mswindows_get_foreign_selection):
10673 * select-msw.c (mswindows_selection_exists_p): Rewrote.
10674 * select-msw.c (console_create_select_mswindows): Added new methods.
10675 * select-msw.c (mswindows_destroy_selection): New.
10676 * select-msw.c (Vhandle_alist): New list.
10677 * select-msw.c (mswindows_own_selection):
10679 * select-x.c (x_own_selection):
10680 * select-x.c (x_selection_exists_p):
10681 * select-x.c: Added some comments about maybe using new
10683 * select-x.c (x_own_selection):
10685 * specifier.c: Remove definition of Qappend (now in general.c)
10686 * specifier.c (syms_of_specifier): Remove Qappend.
10688 2000-07-12 Martin Buchholz <martin@xemacs.org>
10690 * config.h.in: Add socklen_t.
10692 * s/decosf4-0.h: No special compiler flags needed or desired.
10693 In particular, undefine _BSD for DEC OSF 4.0.
10695 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10697 * redisplay-msw.c (msprinter_frame_output_end): Added.
10698 (console_type_create_redisplay_mswindows): Referred the above.
10700 * frame.c (setup_frame_without_minibuffer): Do not create a
10701 default minibuffer frame on a printer device.
10703 * frame-msw.c (apply_dc_geometry): Added.
10704 (msprinter_start_page):
10705 (msprinter_init_frame_3):
10706 (msprinter_eject_page): Use it.
10708 * console-msw.h (struct msprinter_frame): Added pix_left and top,
10709 and removed residual duplex and orientation properties.
10711 2000-07-11 Martin Buchholz <martin@xemacs.org>
10713 * eval.c (function_argcount): Work around a DEC CC compiler bug.
10715 * unexalpha.c: Remove system prototypes from C sources!
10717 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
10719 * eval.c: Remove references to M-x edit-options in DEFUNs for
10720 `defvar' and `defconst'.
10722 2000-07-09 Martin Buchholz <martin@xemacs.org>
10724 * config.h.in: Remove SMART_INCLUDE hackery.
10726 PostgreSQL hacking:
10727 * config.h.in: Don't use SMART_INCLUDE.
10729 * postgresql.h: Include libpq-fe.h here. Fix typo.
10730 * inline.c: Simply #include "postgresql.h"
10732 - Don't use SMART_INCLUDE
10733 - Use simply "const".
10734 - Use standard doc string conventions.
10735 - Use correct type for result of PQstatus.
10737 2000-07-09 Martin Buchholz <martin@xemacs.org>
10739 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10741 C++ compilation changes.
10742 * config.h.in (EXTERN_C): Define.
10743 * config.h.in (not): This is also a C++ keyword.
10744 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10745 * cm.c: Use EXTERN_C.
10746 * redisplay-tty.c: Use EXTERN_C.
10747 * sysdep.c: Use EXTERN_C. Remove Gould support.
10749 2000-07-09 Martin Buchholz <martin@xemacs.org>
10751 * general.c: Remove duplicate definition for Qfunction.
10753 2000-07-08 Ben Wing <ben@xemacs.org>
10755 * device-msw.c (msprinter_init_device):
10756 * device-msw.c (sync_printer_with_devmode):
10757 * device-msw.c (handle_devmode_changes):
10758 * device-msw.c (print_dialog_worker):
10759 * device-msw.c (Fmsprinter_apply_settings):
10760 * device-msw.c (hash_devmode):
10761 * device-msw.c (Fmsprinter_settings_despecialize):
10762 use Qmswindows_tstr, not Qctext.
10764 * vm-limit.c (check_memory_limits):
10765 avoid infinite loop printing warning messages.
10767 2000-07-05 Craig Lanning <lanning@scra.org>
10769 * Makefile.in.in: Add support for including the Windows resources
10770 when building with the cygwin and mingw targets.
10772 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10773 not set or not correct.
10774 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10775 (init_initial_directory): Don't try to use $PWD on the
10776 WIN32_NATIVE target.
10779 [[Add -mwindows to eliminate console window.]] not required --ben
10780 (HAVE_NATIVE_SOUND): removed; now handled by configure.
10781 (MAIL_USE_POP): removed; now handled by configure.
10783 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10784 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10785 (HAVE_NATIVE_SOUND): removed; now handled by configure.
10786 (MAIL_USE_POP): removed; now handled by configure.
10787 (ENCAPSULATE_STAT): from Dan Holmsand, added.
10788 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10789 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10791 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10792 up from <winsock.h> via systime.h.
10793 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10794 (getpagesize): from Dan Holmsand, added.
10795 Added #endif which was left dangling by Ben's mega patch; added
10796 comment to help prevent this in the future.
10798 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10800 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10802 * console-msw.h (struct mswindows_device): Removed unnecessary
10803 cached device geometry values.
10804 Added update_tick and an accessor macro.
10805 (Lisp_Devmode): Added lrecord declaration.
10806 (struct msprinter_device): Contain devmode as a Lisp object.
10807 Added mswindows_get_selected_frame_hwnd();
10809 * console.h (struct console_methods): Indentation nitpicking.
10811 * device-msw.c (mswindows_init_device): Do not initialize geometry
10812 cache. Initialize update tick.
10813 (mswindows_device_system_metrics): Ask the device for its geometry.
10814 (global_free_2_maybe):
10815 (devmode_to_hglobal):
10816 (handle_printer_changes):
10817 (ensure_not_printing):
10818 (print_dialog_worker):
10819 (Fmsprinter_print_setup_dialog):
10820 (Fmsprinter_print_dialog):
10821 (plist_get_margin):
10822 (plist_set_margin):
10823 (Fmsprinter_page_setup_dialog): Added functions.
10824 (sync_printer_with_devmode):
10825 (handle_devmode_changes):
10826 (Fmsprinter_get_settings):
10827 (Fmsprinter_select_settings):
10828 (Fmsprinter_apply_settings):
10829 (allocate_devmode):
10830 (Fmsprinter_settings_copy):
10831 (Fmsprinter_settings_despecialize):
10833 (finalize_devmode):
10835 (hash_devmode): Added functions
10836 (syms_of_device_mswindows): Init devmode lrecord class.
10838 * device.h: Added an exfun for find-device.
10840 * event-msw.c (mswindows_wnd_proc): Do not update the cached
10841 geometry; although, recreate the device compatible DC.
10843 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10844 (msprinter_init_frame_3):
10845 (msprinter_frame_property):
10846 (msprinter_internal_frame_property_p):
10847 (msprinter_frame_properties):
10848 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10849 print job properties (will move to device settings).
10851 * lisp.h: Added symbols.
10853 * general.c (syms_of_general): Declared them.
10855 * hash.c (string_hash): Added.
10857 * lrecord.h (lrecord_type): Added devmode lrecord type.
10859 2000-07-02 Mike Sperber <mike@xemacs.org>
10861 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10864 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
10866 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10869 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
10871 * data.c (Fstring_to_number): Don't recognize floating point if
10874 2000-06-22 Martin Buchholz <martin@xemacs.org>
10876 * glyphs-widget.c (tab_control_query_geometry):
10877 (widget_query_geometry):
10878 (button_query_geometry):
10879 * glyphs.c (text_query_geometry):
10880 Enforce type correctness.
10882 2000-06-18 Martin Buchholz <martin@xemacs.org>
10884 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10885 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10887 2000-06-17 Martin Buchholz <martin@xemacs.org>
10889 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10890 conflicts with gcc's fixincluded version of FOO.h.
10892 * glyphs.h (image_instance_geometry): Remove trailing `,'
10894 2000-06-08 Mike Alexander <mta@arbortext.com>
10896 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10897 (shove_thread): Don't write the same output twice
10898 (make_ntpipe_output_stream): Increase priority of shove thread
10899 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10901 (ntpipe_shove_closer): Don't delete the pipe until we're done with
10904 2000-06-12 Ben Wing <ben@xemacs.org>
10906 * s\mingw32.h (sigset):
10907 * s\windowsnt.h (sigset):
10908 rename msw_ to mswindows_ for consistency with general convention.
10910 2000-06-12 Ben Wing <ben@xemacs.org>
10913 * console-msw.c (mswindows_get_console_hwnd):
10914 * console-msw.c (mswindows_ensure_console_allocated):
10915 * console-msw.c (mswindows_hide_console):
10916 * console-msw.c (mswindows_show_console):
10917 * console-msw.c (mswindows_ensure_console_buffered):
10918 * console-msw.c (mswindows_output_console_string):
10919 * console-msw.c (mswindows_windows9x_p):
10921 * device-msw.c (mswindows_get_workspace_coords):
10922 * device-msw.c (mswindows_device_system_metrics):
10923 * dialog-msw.c (mswindows_popup_dialog_box):
10924 * event-msw.c (mswindows_wnd_proc):
10925 * frame-msw.c (mswindows_size_frame_internal):
10926 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10927 * menubar-msw.c (displayable_menu_item):
10928 * menubar-msw.c (mswindows_char_is_accelerator):
10930 * nt.c (mswindows_sigset):
10931 * nt.c (mswindows_sigrelse):
10932 * nt.c (mswindows_sigpause):
10933 * nt.c (mswindows_raise):
10934 * nt.c (timer_proc):
10936 * ntproc.c (find_child_console):
10937 * ntproc.c (sys_kill):
10939 * print.c (std_handle_out_external):
10940 * process-nt.c (find_child_console):
10941 * process-nt.c (send_signal_the_95_way):
10942 * process-nt.c (ensure_console_window_exists):
10943 * process-nt.c (nt_create_process):
10945 rename msw_ to mswindows_ for consistency with general convention.
10949 include nt.h, not syswindows.h.
10951 * nt.c (mswindows_fstat):
10952 * nt.c (mswindows_stat):
10953 prefix mswindows_ instead of attempting to directly override the
10954 library functions. fix declarations.
10957 include syswindows.h. move some sysdep.h stuff here.
10960 include syswindows.h, not <windows.h>.
10968 * sysdep.c (sys_fstat):
10969 * sysdep.c (sys_stat):
10970 call mswindows versions when appropriate.
10973 move mswin decls to nt.h.
10976 add long comment describing appropriate use of the various windows
10979 2000-06-11 Ben Wing <ben@xemacs.org>
10981 * device-x.c: Correct doc string for sixth arg of x-get-resource.
10983 2000-06-10 Ben Wing <ben@xemacs.org>
10985 * Makefile.in.in (release):
10986 Correction to make sure xemacs.exe always dumped when correct.
10990 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10992 * buffer.c (set_buffer_internal):
10993 [[[[2]]]]: Remove HAVE_FEP code.
10995 * buffer.c (init_initial_directory):
10999 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11003 * callproc.c (call_process_cleanup):
11004 * callproc.c (Fold_call_process_internal):
11005 * callproc.c (child_setup):
11006 * callproc.c (getenv_internal):
11007 * callproc.c (init_callproc):
11008 * callproc.c (vars_of_callproc):
11009 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11010 __CYGWIN32__ -> CYGWIN.
11011 DOS_NT -> WIN32_NATIVE.
11012 Remove MSDOS support/references, converting to WIN32_NATIVE
11014 __MINGW32__ -> MINGW.
11015 Fix windows.h includes.
11016 Remove bogus HAVE_NTGUI.
11022 mswindows_message_outputted added for use in allowing startup
11023 errors on the console to be seen.
11025 * console-msw.c (msw_ensure_console_allocated):
11026 * console-msw.c (msw_output_console_string):
11027 * console-msw.c (DHEADER):
11028 * console-msw.c (DOPAQUE_DATA):
11029 * console-msw.c (DEVENT):
11030 * console-msw.c (DCONS):
11031 * console-msw.c (DCONSCDR):
11032 * console-msw.c (DSTRING):
11033 * console-msw.c (DVECTOR):
11034 * console-msw.c (DSYMBOL):
11035 * console-msw.c (DSYMNAME):
11038 * console-stream.c (stream_init_console):
11039 Fix text/binary problems.
11042 * device-msw.c (mswindows_finish_init_device):
11043 * device-msw.c (mswindows_delete_device):
11046 * device.c (handle_asynch_device_change):
11050 * dgif_lib.c (DGifOpenFileName):
11051 * dgif_lib.c (DGifOpenFileHandle):
11052 * dgif_lib.c (DGifGetLine):
11053 * dgif_lib.c (DGifGetPixel):
11054 Added config.h/lisp.h, fix up includes.
11061 * dired.c (file_name_completion):
11062 * dired.c (Ffile_attributes):
11063 * dired.c (syms_of_dired):
11067 * dumper.c (pdump_file_unmap):
11068 * dumper.c (pdump_load):
11072 * editfns.c (Ftemp_directory):
11073 * editfns.c (user_login_name):
11074 * editfns.c (Fuser_real_login_name):
11075 * editfns.c (get_home_directory):
11078 * elhash.c (finish_marking_weak_hash_tables):
11079 [[[[5]]]]: Fix GCC warnings.
11082 * emacs.c (mswindows_handle_hardware_exceptions):
11083 * emacs.c (make_arg_list_1):
11084 * emacs.c (main_1):
11085 * emacs.c (Fkill_emacs):
11086 * emacs.c (Fdump_emacs):
11088 Fix problems with nested crashes, add long comment.
11090 * event-Xt.c (init_event_Xt_late):
11094 * event-msw.c (mswindows_dde_callback):
11095 * event-msw.c (mswindows_handle_sticky_modifiers):
11096 * event-msw.c (mswindows_wnd_proc):
11100 * events.c (character_to_event):
11104 * fileio.c (Ffile_name_directory):
11105 * fileio.c (Ffile_name_nondirectory):
11106 * fileio.c (directory_file_name):
11107 * fileio.c (Fexpand_file_name):
11108 * fileio.c (Fsubstitute_in_file_name):
11109 * fileio.c (Ffile_name_absolute_p):
11110 * fileio.c (check_executable):
11111 * fileio.c (Ffile_readable_p):
11112 * fileio.c (Ffile_accessible_directory_p):
11113 * fileio.c (Ffile_modes):
11114 * fileio.c (Funix_sync):
11115 * fileio.c (vars_of_fileio):
11118 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11120 Expand getdefdir defn.
11121 Fix bogus rename() comment.
11123 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
11124 to use standard XEmacs include files, e.g. sysfile.h, rather
11125 than system-specific includes.
11131 * frame.c (vars_of_frame):
11135 * getloadavg.c (getloadavg):
11137 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
11138 (We don't use it elsewhere in the code; just add a comment.)
11145 * glyphs-msw.c (mswindows_resource_instantiate):
11148 * glyphs-x.c (x_native_layout_instantiate):
11151 * gui-msw.c (Fmswindows_shell_execute):
11160 * lread.c (locate_file_in_directory_mapper):
11167 * mem-limits.h (get_lim_data):
11179 * nt.c (rva_to_section):
11180 * nt.c (mswindows_executable_type):
11182 Fix closedir() defn.
11185 [[[[8]]]]: *_OK defs moved to sysfile.h.
11194 * print.c (std_handle_out_external):
11198 * process-nt.c (nt_create_process):
11200 try to fix process quoting somewhat.
11202 * process-unix.c (unix_create_process):
11206 * process.c (vars_of_process):
11213 * realpath.c (xrealpath):
11216 * redisplay-tty.c (init_tty_for_redisplay):
11226 * sheap.c (more_static_core):
11227 * sheap.c (report_sheap_usage):
11231 * signal.c (alarm_signal):
11238 * strftime.c (zone_name):
11241 * symsinit.h (init_sunpro):
11245 commctrl.h not in Cygwin b20.1.
11248 * sysdep.c (endif):
11249 * sysdep.c (sys_subshell):
11250 * sysdep.c (init_baud_rate):
11251 * sysdep.c (emacs_get_tty):
11252 * sysdep.c (emacs_set_tty):
11253 * sysdep.c (tty_init_sys_modes_on_device):
11254 * sysdep.c (init_system_name):
11255 * sysdep.c (sys_open):
11256 * sysdep.c (interruptible_open):
11257 * sysdep.c (sys_fopen):
11258 * sysdep.c (sys_mkdir):
11259 * sysdep.c (sys_rename):
11260 * sysdep.c (get_process_times_1):
11267 * sysdir.h (DIRENTRY_NONEMPTY):
11270 * sysdll.c (dll_init):
11276 added text/binary defs.
11282 * sysproc.h (EDESTADDRREQ):
11283 * sysproc.h (poll_fds_for_input):
11300 Always define WIN32_LEAN_AND_MEAN.
11302 * unexcw.c (unexec):
11306 * unexec.c (copy_text_and_data):
11307 * unexec.c (adjust_lnnoptrs):
11311 * unexnt.c (_start):
11314 2000-06-07 Ben Wing <ben@xemacs.org>
11316 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
11317 was used only as a model. We've long since extracted any useful
11318 logic or code out of this. (I just did an exhaustive search.)
11320 * s\msdos.h: Removed.
11322 * s\windows95.h: Removed.
11324 2000-06-10 Ben Wing <ben@xemacs.org>
11328 Don't use extern with fun defs.
11332 Remove nt\inc include.
11333 Remove getdisk, getdefdir. (The former is unused, the latter
11334 expanded in fileio.h.)
11337 * s\windowsnt.h (WIN32_NATIVE):
11338 * s\windowsnt.h (HAVE_STRCASECMP):
11340 Add long comment about preprocessor changes.
11341 Remove getdisk, getdefdir. (The former is unused, the latter
11342 expanded in fileio.h.)
11344 2000-06-10 Ben Wing <ben@xemacs.org>
11353 Remove bogus/unused NO_SOCK_SIGIO.
11355 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
11357 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11360 2000-06-04 Mike Sperber <mike@xemacs.org>
11362 * casetab.c (set_case_table): For `set-standard-case-table',
11363 actually deposit the new case tables where the rest of XEmacs can
11366 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
11368 * data.c (Faset): Don't cast XCHAR() to unsigned char.
11370 2000-06-05 Ben Wing <ben@xemacs.org>
11372 * callproc.c (child_setup): Don't do close_load_descs() under
11373 MS Windows. Put in a comment explaining why.
11375 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
11377 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11378 Toolkit shell" which breaks `kill-compilation' on Windows NT
11379 native, retaining STDERR handling improvements.
11381 2000-06-01 Andreas Jaeger <aj@suse.de>
11383 * s/s390.h: Support for S390, based on a patch by Martin
11384 Schwidefsky <schwidefsky@de.ibm.com>.
11386 2000-05-30 Andy Piper <andy@xemacs.org>
11388 * window.c (allocate_window):
11389 (make_dummy_parent):
11390 (Fset_window_configuration): use new hashtable type.
11392 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11393 (struct image_instantiator_methods):
11394 (struct Lisp_Image_Instance): make instance geometry signed.
11396 * glyphs.c (instantiate_image_instantiator):
11397 (image_instance_query_geometry):
11398 (image_instance_layout):
11399 (image_instance_layout):
11400 (query_string_geometry):
11401 (text_query_geometry):
11402 (image_instantiate):
11403 (image_instantiate):
11404 (cache_subwindow_instance_in_frame_maybe):
11405 (subwindow_query_geometry): make instance geometry signed.
11407 * glyphs-widget.c (widget_query_geometry):
11409 (button_query_geometry):
11410 (tree_view_query_geometry):
11411 (tab_control_query_geometry):
11412 (layout_query_geometry):
11414 (native_layout_layout): make instance geometry signed.
11416 2000-05-29 Olivier Galibert <galibert@pobox.com>
11418 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11421 * general.c (syms_of_general): Add Qfull_assoc symbol.
11423 * data.c (finish_marking_weak_lists): Mark full-assoc lists
11425 (decode_weak_list_type): Decode full-assoc type.
11426 (encode_weak_list_type): Encode full-assoc type.
11427 (Fmake_weak_list): Update doc string.
11429 2000-05-30 Andy Piper <andy@xemacs.org>
11431 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11433 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11434 (decode_hash_table_weakness): ditto.
11435 (Fhash_table_weakness): ditto.
11436 (Fhash_table_type): ditto.
11437 (finish_marking_weak_hash_tables): ditto.
11438 (hash_table_weakness_validate): ditto.
11439 (syms_of_elhash): ditto.
11441 2000-05-28 Martin Buchholz <martin@xemacs.org>
11443 * XEmacs 21.2.34 is released.
11445 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
11447 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11449 (updating_line_start_cache): Gone.
11450 (regenerate_window): Replace resetting of VERTICAL_CLIP by
11451 generic code to force a minimum of 1 line laid out in the
11454 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
11456 * glyphs.c (instantiate_image_instantiator): Check for initialized
11457 height & width no longer special cases IMAGE_NOTHING.
11458 (nothing_instantiate): Set height and width of instance.
11460 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
11462 * unexelf.c (unexec): Search for ".data" section.
11463 Initialize new_data2_offset from old_data_index.
11464 Remove redundant check for ElfW.
11466 2000-05-23 Andy Piper <andy@xemacs.org>
11468 * glyphs.c (get_image_instantiator_governing_domain): allow more
11469 specific domains as the governing domain rather than expecting an
11470 exact match. This fixes problems with layouts.
11472 2000-05-22 Andy Piper <andy@xemacs.org>
11474 * redisplay-output.c (compare_runes): check for non-images
11476 * glyphs.c (set_glyph_dirty_p): ditto.
11477 (update_glyph_cachel_data): ditto.
11479 * glyphs-widget.c (layout_post_instantiate): ditto.
11480 (layout_post_instantiate): ditto.
11482 * event-msw.c (mswindows_wnd_proc): warning removal.
11484 2000-05-12 Craig Lanning <CraigL@DyCon.com>
11486 * s\mingw32.h: Added #undef for CLASH_DETECTION.
11488 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11490 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11492 * nt.c (rva_to_section): mingw32 needs rva_to_section.
11493 (mswindows_executable_type): mingw32 now has enough headers for
11496 2000-05-20 Andy Piper <andy@xemacs.org>
11498 * console-msw.c (mswindows_output_last_error): ; -> ,
11500 2000-05-12 Andy Piper <andy@xemacs.org>
11502 * console-msw.c (FROB): compare ints with ints.
11504 2000-05-11 Andy Piper <andy@xemacs.org>
11506 * glyphs-x.c (x_finalize_image_instance): make minimal build
11509 2000-05-20 Ben Wing <ben@xemacs.org>
11512 * event-Xt.c (vars_of_event_Xt):
11513 move modifier-keys-are-sticky to event-stream.c.
11516 * event-msw.c (mswindows_enqueue_mouse_button_event):
11517 * event-msw.c (key_needs_default_processing_p):
11518 * event-msw.c (XEMSW_LCONTROL):
11519 * event-msw.c (mswindows_handle_sticky_modifiers):
11520 * event-msw.c (FROB):
11521 * event-msw.c (clear_sticky_modifiers):
11522 * event-msw.c (output_modifier_keyboard_state):
11523 * event-msw.c (output_alt_keyboard_state):
11524 * event-msw.c (mswindows_wnd_proc):
11525 * event-msw.c (mswindows_modifier_state):
11526 * event-msw.c (emacs_mswindows_handle_magic_event):
11527 implement sticky modifiers.
11530 * event-stream.c (vars_of_event_stream):
11531 move modifier-keys-are-sticky here.
11534 add CHECK_FUNCTION.
11537 implement map-range-table.
11540 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
11542 * redisplay-tty.c (reset_tty_modes):
11543 (tty_redisplay_shutdown): Adjust argument type to
11544 tty_frame_output_end.
11546 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
11548 * eval.c (Fbacktrace): Don't output a line with only right
11551 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
11553 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11554 (Fpq_reset_poll): Ditto.
11556 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
11558 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11560 2000-05-16 Ben Wing <ben@xemacs.org>
11563 * buffer.c (dfc_convert_to/from_internal_format):
11564 * buffer.c (reinit_vars_of_buffer):
11565 Fix conversion functions to allow reentrancy.
11568 * console-msw.c (mswindows_output_last_error):
11569 New fun, generally useful -- output a human-readable
11570 version of GetLastError() on the console.
11573 * console-msw.h (struct mswindows_frame):
11574 Changes for DeferWindowPos. Declare mswindows_output_last_error().
11576 * console-stream.c (stream_output_begin):
11577 * console-stream.c (stream_output_end):
11578 * console-stream.c (stream_output_vertical_divider):
11579 * console-stream.c (stream_clear_region):
11580 * console-stream.c (stream_flash):
11581 * console-stream.c (console_type_create_stream):
11582 Delete blank stream methods, not needed.
11584 * console.h (struct console_methods):
11585 Split begin/end methods into window and frame.
11588 * event-msw.c (mswindows_handle_paint):
11589 * event-msw.c (output_alt_keyboard_state):
11590 * event-msw.c (mswindows_wnd_proc):
11591 * event-msw.c (vars_of_event_mswindows):
11592 Comment about problems with ignored-expose.
11593 Define mswindows-debug-events; not really implemented.
11595 * frame-msw.c (mswindows_init_frame_1):
11599 * glyphs-msw.c (begin_defer_window_pos):
11600 * glyphs-msw.c (mswindows_unmap_subwindow):
11601 * glyphs-msw.c (mswindows_map_subwindow):
11602 * glyphs-msw.c (mswindows_resize_subwindow):
11603 Use DeferWindowPos to reduce flashing when mapping/unmapping.
11605 * glyphs.c (make_image_instance_1):
11608 * gutter.c (Fredisplay_gutter_area):
11609 Use new begin/end methods.
11611 * lisp.h (Dynarr_new2):
11615 * redisplay-msw.c (mswindows_frame_output_begin):
11616 * redisplay-msw.c (mswindows_frame_output_end):
11617 * redisplay-msw.c (console_type_create_redisplay_mswindows):
11618 New begin/end methods -- handle DeferWindowPos.
11620 * redisplay-output.c (redisplay_move_cursor):
11621 * redisplay-output.c (redraw_cursor_in_window):
11622 * redisplay-output.c (redisplay_update_line):
11623 * redisplay-output.c (redisplay_output_window):
11624 New begin/end methods.
11627 * redisplay-tty.c (tty_frame_output_begin):
11628 * redisplay-tty.c (tty_frame_output_end):
11629 * redisplay-tty.c (console_type_create_redisplay_tty):
11630 New begin/end methods.
11633 * redisplay-x.c (x_window_output_begin):
11634 * redisplay-x.c (x_window_output_end):
11635 * redisplay-x.c (console_type_create_redisplay_x):
11636 New begin/end methods.
11638 * redisplay.c (redisplay_frame):
11639 * redisplay.c (Fredisplay_echo_area):
11640 New begin/end methods.
11641 use MAYBE_DEVMETH for clear_frame; it may not exist.
11643 * window.h (WINDOW_XFRAME):
11644 WINDOW_XFOO macros -- get locale and decode struct pointer.
11647 2000-05-12 Ben Wing <ben@xemacs.org>
11650 * emacs.c (ensure_no_quitting_from_now_on):
11651 * emacs.c (fatal_error_signal):
11652 * emacs.c (mswindows_handle_hardware_exceptions):
11654 * emacs.c (Fkill_emacs):
11655 * emacs.c (shut_down_emacs):
11656 * emacs.c (assert_failed):
11657 various improvements in fatal error handling.
11660 move preparing_for_armageddon to emacs.c.
11663 declare fatal_error_in_progress.
11666 * print.c (std_handle_out_external):
11667 * print.c (std_handle_out_va):
11668 * print.c (stderr_out):
11669 * print.c (stdout_out):
11670 use console under mswin when no standard output.
11671 don't do code conversion during fatal error.
11673 * scrollbar.c (Fscrollbar_page_up):
11674 * scrollbar.c (Fscrollbar_page_down):
11675 fix missing else. reindent.
11677 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
11681 * glyphs.h (GLYPH_CACHEL_DESCENT):
11682 (GLYPH_CACHEL_DESCENT):
11683 (GLYPH_CACHEL_DESCENT):
11684 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11685 used in case these are inline functions.
11686 Use more absurd values to error check.
11688 include window.h for error check functions.
11690 2000-05-11 Ben Wing <ben@xemacs.org>
11692 * cmdloop.c (Freally_early_error_handler):
11693 Display message box under windows; otherwise, message will disappear
11694 before it can be viewed.
11697 * console-msw.c (Fmswindows_message_box):
11698 * console-msw.c (FROB):
11699 * console-msw.c (syms_of_console_mswindows):
11700 Define new fun `mswindows-message-box'.
11701 #### I will merge this into `popup-dialog-box'; just give me
11705 * general.c (syms_of_general):
11706 Some new symbols used in `mswindows-message-box'.
11709 * glyphs.c (Fset_image_instance_property):
11710 put warning in this fun.
11713 * glyphs.h (GLYPH_CACHEL_WIDTH):
11714 * glyphs.h (GLYPH_CACHEL_ASCENT):
11715 * glyphs.h (GLYPH_CACHEL):
11716 * glyphs.h (GLYPH_CACHEL_GLYPH):
11717 define error-checking versions to try to catch a bug i've seen --
11718 redisplay gets in an infinite loop because the glyph width of the
11719 continuation glyph is 65535.
11722 Extern message-box stuff.
11724 * window.c (allocate_window):
11725 * window.c (make_dummy_parent):
11726 * window.c (Fset_window_configuration):
11727 Use EQUAL not EQ for subwindow caches to make them work a bit
11728 better. (Something is still very broken.)
11731 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
11733 * glyphs.c (image_instantiate): Suppress gcc warnings.
11734 (Fmake_image_instance): Fix doc string.
11735 * specifier.c (Fmake_specifier): Ditto.
11737 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
11739 * paths.h.in (PATH_LOCK): Removed.
11740 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11741 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11743 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
11745 * fns.c (Ffeaturep): Update e-mail address in doc-string.
11746 Document (featurep '(and xemacs 21.02)).
11748 2000-05-09 Ben Wing <ben@xemacs.org>
11750 * buffer.c (complex_vars_of_buffer):
11751 update modeline-format doc.
11754 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11757 timeline of all released versions of Emacs, for use in creating
11758 authorship comments and in synching up.
11760 * glyphs-widget.c (image_instantiator_buttons):
11761 * glyphs-widget.c (image_instantiator_edit_fields):
11762 * glyphs-widget.c (image_instantiator_combo_box):
11763 * glyphs-widget.c (image_instantiator_scrollbar):
11764 * glyphs-widget.c (image_instantiator_progress_guage):
11765 * glyphs-widget.c (image_instantiator_tree_view):
11766 * glyphs-widget.c (image_instantiator_tab_control):
11767 * glyphs-widget.c (image_instantiator_labels):
11768 * glyphs-widget.c (image_instantiator_layout):
11769 * glyphs-widget.c (image_instantiator_native_layout):
11770 rename decode_domain method to governing_domain.
11773 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11774 * glyphs.c (add_entry_to_device_ii_format_list):
11775 make sure we don't put an entry more than once into the list.
11776 * glyphs.c (check_instance_cache_mapper):
11777 *************************************************************
11778 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11780 *************************************************************
11781 * glyphs.c (get_image_instantiator_governing_domain):
11782 clean up, expand on new concept of governing domain.
11783 * glyphs.c (instantiate_image_instantiator):
11784 * glyphs.c (allocate_image_instance):
11785 use governing_domain instead of cache_domain in naming.
11786 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11787 * glyphs.c (make_image_instance_1):
11788 * glyphs.c (Fmake_image_instance):
11789 allow for any domain (not just device), and process the
11790 governing domain correctly. very big doc fix.
11791 * glyphs.c (Fimage_instance_domain):
11792 new primitive, to retrieve the governing domain of an image instance.
11793 * glyphs.c (image_instantiate):
11794 use new governing_domain stuff. this fixes a crash you could get
11795 by instantiating certain widget glyphs in frame locales. (should
11796 signal an error instead of crashing.)
11797 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11798 * glyphs.c (Fglyphp): clean up doc.
11799 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11800 * glyphs.c (syms_of_glyphs):
11801 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11802 * glyphs.c (image_instantiator_format_create): add some comments about
11804 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11805 for current-display-table. (Apparently Hrjove implemented in 1998 a
11806 design I wrote up in 1996, but didn't update the doc string.)
11808 * glyphs.h: clean up a doc string.
11809 * glyphs.h (governing_domain):
11810 * glyphs.h (struct image_instantiator_methods):
11811 changes for governing_domain stuff.
11814 * gutter.c (Fgutter_specifier_p):
11815 * gutter.c (Fgutter_size_specifier_p):
11816 * gutter.c (Fgutter_visible_specifier_p):
11818 * objects.c (Fcolor_specifier_p):
11819 * objects.c (Ffont_specifier_p):
11820 * objects.c (Fface_boolean_specifier_p):
11821 doc strings moved to make-*-specifier.
11823 * redisplay.c (add_disp_table_entry_runes_1):
11824 * redisplay.c (generate_fstring_runes):
11825 * redisplay.c (screen):
11826 add random comments and doc strings.
11829 * specifier.c (Fmake_specifier):
11830 major overhaul of this doc string.
11832 * specifier.c (Fvalid_specifier_domain_p):
11833 comment about the bogosity of image instances being domains.
11834 * specifier.c (decode_domain):
11835 now non-static, used in glyphs.c.
11836 * specifier.c (specifier_instance):
11837 comment about the bogosity of image instances being domains.
11838 * specifier.c (Fgeneric_specifier_p):
11839 move doc string to make-generic-specifier.
11840 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11844 * specifier.h (DOMAIN_FRAME):
11845 * specifier.h (DOMAIN_LIVE_P):
11846 * specifier.h (DOMAIN_XDEVICE):
11848 add comments about problems with these macros.
11849 prototype for decode_domain.
11852 * toolbar.c (Ftoolbar_specifier_p):
11853 move doc string to `make-toolbar-specifier'.
11855 * window.c (window_unmap_subwindows_cache_mapper):
11856 *************************************************************
11857 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11859 *************************************************************
11861 2000-05-09 Andy Piper <andy@xemacs.org>
11863 * glyphs.h: declare reset_frame_subwindow_instance_cache.
11865 * window.c (Fset_window_configuration): reset the frame subwindow
11866 cache and re-initialize the window subwindow caches.
11868 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11870 2000-05-09 Ben Wing <ben@xemacs.org>
11872 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11875 2000-04-26 Mike Woolley <mike@bulsara.com>
11877 * ntheap.c: Changed recreate_heap to limit the amount reserved
11878 for the heap to that which is actually available. Also now
11879 displays a message box (with some dignostics) in the event that
11880 it still can't start.
11882 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11884 * callproc.c (Fold_call_process_internal): GCPRO path
11886 2000-05-08 Jan Vroonhof <jan@xemacs.org>
11888 Patch by Bill Perry.
11890 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11891 back data instead of #ifdef.
11892 (Fscrollbar_page_down): ditto.
11894 2000-05-07 Ben Wing <ben@xemacs.org>
11897 Kludge for defining Qmswindows_tstr.
11900 * nt.c (open_input_file):
11901 * nt.c (open_output_file):
11902 * nt.c (rva_to_section):
11903 * nt.c (mswindows_executable_type):
11904 Move all memory-mapped-file routines here (some were in unexnt.c,
11905 which is bad because they are used by process-nt.c, and unexnt
11906 won't be around when portable dumping). Synched the above routines
11910 Removed ifdef'd out bogus code.
11911 Fixed some prototypes.
11913 * nt.h (file_data):
11914 * nt.h (OFFSET_TO_RVA):
11915 * nt.h (RVA_TO_OFFSET):
11916 * nt.h (RVA_TO_PTR):
11917 Moved the memory-mapped-file structures, macros and prototypes
11918 here, to parallel nt.c. ntheap.h should really be removed
11919 entirely, and it's a non-portable-dumper specific file.
11921 * ntheap.h (round_to_next):
11922 Moved the memory-mapped-file structures, macros and prototypes
11925 * ntproc.c (compare_env):
11926 Moved rva_to_section and mswindows_executable_type to nt.c.
11927 Moved compare_env to process-nt.c.
11928 ntproc.c will die, one day.
11930 * ntproc.c (sys_spawnve):
11931 Account for win32_ -> mswindows_.
11934 * process-nt.c (struct nt_process_data):
11935 * process-nt.c (ensure_console_window_exists):
11936 * process-nt.c (compare_env):
11937 * process-nt.c (nt_create_process):
11938 * process-nt.c (nt_kill_process_by_pid):
11939 * process-nt.c (syms_of_process_nt):
11940 * process-nt.c (vars_of_process_nt):
11941 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11942 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11943 changes). Eliminate our old `nt-quote-process-args' mechanism.
11944 Synch up nt_create_process with FSF 20.6 sys_spawnve.
11945 Move compare_env here from ntproc.c.
11947 * process.c (Fprocess_send_region):
11948 Takes an optional fourth argument, BUFFER, which should fix some
11949 problems with call-process.
11952 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11955 Move ICC_BAR_CLASSES to syscommctrl.h.
11956 Add preliminary macros for MSWindows/Mule. More to come.
11959 * unexnt.c (unexec):
11960 open_output_file moved to nt.c.
11963 2000-05-05 Andy Piper <andy@xemacs.org>
11965 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11966 instance from the frame cache also since GC may catch up too late
11967 to make frame deletion sane.
11969 2000-05-04 Andy Piper <andy@xemacs.org>
11971 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11972 (x_finalize_image_instance): ungcpro on deletion.
11974 * glyphs.c (image_instantiator_format_create): give pointers a
11975 query geometry method so that the geometry is at least set.
11977 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11978 initialize layouts if using widgets.
11980 2000-05-03 Andy Piper <andy@xemacs.org>
11982 * nt.c: remove bogus reference to sysmmsystem.h
11984 * gui-x.c (popup_selection_callback): fix no selection abort.
11986 2000-05-02 Andy Piper <andy@xemacs.org>
11988 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11989 (mswindows_widget_instantiate): ditto.
11991 * glyphs-widget.c (initialize_widget_image_instance): initialize
11992 children correctly.
11993 (widget_instantiate): cope with children and items in the same
11996 * glyphs.c (mark_image_instance): cope with children as a first
11998 (image_instance_equal): ditto.
11999 (image_instance_hash): ditto.
12000 (image_instance_changed): ditto.
12002 2000-04-30 Andy Piper <andy@xemacs.org>
12004 * glyphs.c (subwindow_query_geometry): new function. Return some
12006 (subwindow_instantiate): don't assign dimensions if none have been
12008 (image_instantiator_format_create): add subwindow_query_geometry.
12009 (print_image_instance): cope with layouts as widgets.
12011 2000-04-29 Andy Piper <andy@xemacs.org>
12013 * frame.c (delete_frame_internal): call
12014 free_frame_subwindow_instance_cache so that all subwindows are
12015 finalized before their parent.
12016 (mark_frame): remove subwindow_cachels.
12017 (Fmake_frame): remove subwindow_cachel manipulation.
12018 (allocate_frame_core): subwindow_instance_cache is a weak list.
12019 (delete_frame_internal): set subwindow_instance_cache to nil.
12021 * glyphs-msw.c (mswindows_finalize_image_instance): make double
12023 (mswindows_finalize_image_instance): use the device
12024 not the domain as the domain may have died already.
12026 * glyphs-x.c (x_finalize_image_instance): ditto.
12027 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12030 * redisplay-output.c (redisplay_unmap_subwindows): update for
12031 subwindow instance cache as a weak list.
12032 (redisplay_unmap_subwindows_maybe): ditto.
12033 (redisplay_unmap_subwindows_except_us): ditto.
12035 * glyphs.c (unmap_subwindow): error checking will check the domain
12036 so don't deal with it here. Don't use cachels anymore.
12037 (map_subwindow): ditto.
12038 (update_subwindow_cachel_data): remove old accessor names.
12039 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12040 (Fresize_subwindow): don't update cachel.
12041 (mark_subwindow_cachels):
12042 (update_subwindow_cachel_data):
12043 (add_subwindow_cachel):
12044 (get_subwindow_cachel_index):
12045 (update_subwindow_cachel):
12046 (reset_subwindow_cachels):
12047 (mark_subwindow_cachels_as_not_updated): deleted.
12048 (cache_subwindow_instance_in_frame_maybe): new function. Add a
12049 subwindow instance to the frame cache.
12050 (find_matching_subwindow): update for subwindow instance cache as
12052 (update_widget_instances): ditto.
12053 (image_instance_type_to_mask):inlined.
12054 (free_frame_subwindow_instance_cache): new function. finalize all
12055 subwindows that are instantiated.
12057 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12058 of cachel information.
12059 (IMAGE_INSTANCE_DISPLAY_X):
12060 (IMAGE_INSTANCE_DISPLAY_Y):
12061 (IMAGE_INSTANCE_DISPLAY_WIDTH):
12062 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12063 (XIMAGE_INSTANCE_DISPLAY_X):
12064 (XIMAGE_INSTANCE_DISPLAY_Y):
12065 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12066 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12067 remove subwindow_cachel structure and function references.
12068 (image_instance_type_to_mask): inline from glyphs.c
12070 * redisplay.c (redisplay_frame): remove subwindow_cachel
12073 * frame.h (struct frame): remove subwindow_cachels.
12074 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12076 * frameslots.h: add subwindow_instance_cache.
12078 * window.c (replace_window): check subwindow cache of replacement.
12079 (window_unmap_subwindows_cache_mapper):
12080 (window_unmap_subwindows): new functions. Unmap all subwindows
12081 cached on this window.
12082 (mark_window_as_deleted): unmap all subwindows.
12084 2000-04-27 Andy Piper <andy@xemacs.org>
12086 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12088 * glyphs-widget.c (widget_layout): return something.
12089 (layout_layout): return something. Fail if not initialized.
12090 (layout_query_geometry): ditto.
12091 (image_instantiator_native_layout): new function. Initialized the
12092 native layout type.
12093 (widget_instantiate): don't do layout stuff here.
12095 * glyphs.c (instantiate_image_instantiator): reorded calling or
12096 instantiate and post_instantiate with layout in between.
12097 (image_instance_layout): be more selective about deciding whether
12098 the layout has been done or not.
12100 * glyphs.h (struct image_instantiator_methods): return a value
12101 from layout_method.
12103 2000-04-26 Andy Piper <andy@xemacs.org>
12105 * glyphs.c (allocate_image_instance): make initial width and
12106 height unspecified. Set initialized to 0.
12108 * syscommctrl.h new file. Encapsulates commctrl.h.
12110 * syswindows.h new file. Encapsulates windows.h.
12112 * ntplay.c: use new syswindows.h and syscommctrl.h header.
12114 * console-msw.h: ditto.
12116 * redisplay-tty.c (tty_output_display_block): remove layout references.
12118 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12119 window handle rather than just the frame.
12121 * glyphs.c (mark_image_instance): remove layout references.
12122 (print_image_instance): ditto.
12123 (image_instance_equal): ditto.
12124 (image_instance_hash): ditto.
12125 (decode_image_instance_type): ditto.
12126 (encode_image_instance_type): ditto.
12127 (image_instantiate): ditto.
12128 (allocate_glyph): ditto.
12129 (Fimage_instance_height): ditto.
12130 (Fimage_instance_width): ditto.
12131 (update_subwindow): ditto.
12133 * redisplay-x.c (x_output_display_block): recode for layouts as
12136 * redisplay-output.c (redisplay_output_layout): recode for layouts
12138 (compare_runes): remove layout references.
12140 * redisplay-msw.c (mswindows_output_display_block): recode for
12141 layouts as widgets.
12143 * glyphs-widget.c (image_instantiator_layout): remove
12144 layout_possible_dest_types.
12145 (layout_possible_dest_types): deleted.
12147 * glyphs.h (image_instance_type): remove layout references.
12148 (struct Lisp_Image_Instance): ditto. Add initialized flag.
12149 (IMAGE_INSTANCE_INITIALIZED): new accessor.
12150 (XIMAGE_INSTANCE_INITIALIZED): ditto.
12152 2000-04-25 Andy Piper <andy@xemacs.org>
12154 * glyphs-widget.c (image_instantiator_buttons):
12155 (image_instantiator_edit_fields):
12156 (image_instantiator_combo_box):
12157 (image_instantiator_scrollbar):
12158 (image_instantiator_progress_guage):
12159 (image_instantiator_tree_view):
12160 (image_instantiator_tab_control):
12161 (image_instantiator_labels):
12162 (image_instantiator_layout): call default post_instantiate method.
12163 (widget_post_instantiate): new function. Simply lays out the
12166 * glyphs.h (struct image_instantiator_methods): add
12167 post_instantiate method.
12169 * glyphs.c (instantiate_image_instantiator): add post_instantiate
12172 2000-04-23 Andy Piper <andy@xemacs.org>
12174 * glyphs.h (struct image_instantiator_methods): add
12175 decode_domain_method.
12176 (struct Lisp_Image_Instance): remove subwindow frame - it can be
12177 derived from the domain.
12178 (IMAGE_INSTANCE_FRAME): new accessor.
12179 (XIMAGE_INSTANCE_FRAME): ditto.
12181 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12182 instead of _SUBWINDOW_FRAME.
12183 (finalize_image_instance): ditto.
12184 (Fimage_instance_foreground): ditto.
12185 (Fimage_instance_background): ditto.
12186 (image_instantiate): ditto.
12187 (update_subwindow_cachel): ditto.
12188 (update_subwindow): ditto.
12189 (unmap_subwindow): ditto.
12190 (map_subwindow): ditto
12191 (subwindow_instantiate): ditto.
12192 * glyphs-msw.c (mswindows_update_widget): ditto.
12193 (mswindows_progress_gauge_instantiate): ditto.
12194 (mswindows_tab_control_update): ditto.
12195 * glyphs-x.c (x_update_widget): ditto.
12196 (x_widget_instantiate): ditto.
12197 (x_tab_control_instantiate): ditto.
12198 (x_tab_control_update): ditto.
12199 * event-msw.c (mswindows_wnd_proc): ditto
12201 * glyphs-widget.c (image_instantiator_layout): use
12202 subwindow_decode_domain.
12203 (image_instantiator_buttons): ditto.
12204 (image_instantiator_edit_fields): ditto.
12205 (image_instantiator_combo_box): ditto.
12206 (image_instantiator_scrollbar): ditto.
12207 (image_instantiator_progress_guage): ditto.
12208 (image_instantiator_tree_view): ditto.
12209 (image_instantiator_tab_control): ditto.
12210 (image_instantiator_labels): ditto.
12211 (image_instantiator_layout): ditto.
12213 * glyphs.c: add instance error checking to many functions.
12214 (instantiate_image_instantiator): decode device from cache_domain.
12215 (image_instantiate): partially rewrite by using
12216 decode_image_instantiator_domain to determine what domain the
12217 instance needs to be cached in.
12218 (decode_image_instantiator_domain): new function. Determine what
12219 domain the image needs to be cached in.
12220 (check_window_subwindow_cache): new error checking function.
12221 (check_instance_cache_mapper): ditto.
12222 (check_image_instance_structure): ditto.
12223 (subwindow_decode_domain): new function. Encodes a window as a
12224 subwindow's cache domain.
12225 (image_instantiator_format_create): use it for text and
12228 2000-04-21 Andy Piper <andy@xemacs.org>
12230 * glyphs.c (image_instance_device): new function.
12231 (image_instance_frame): new function.
12232 (image_instance_window): new function.
12233 (image_instance_live_p): new function.
12235 * window.c (mark_window_as_deleted): reset the subwindow_instance_
12238 * glyphs.h (struct Lisp_Image_Instance): device->domain.
12239 (IMAGE_INSTANCE_DOMAIN): new accessor.
12240 (XIMAGE_INSTANCE_DOMAIN): ditto.
12242 * glyphs-x.c (x_finalize_image_instance): device->domain.
12244 * glyphs-msw.c (init_image_instance_geometry): device->domain.
12245 (mswindows_finalize_image_instance): ditto.
12247 * glyphs-eimage.c (jpeg_instantiate): device->domain.
12248 (gif_instantiate): ditto.
12249 (png_instantiate): ditto.
12250 (tiff_instantiate): ditto.
12252 * glyphs.c (instantiate_image_instantiator): use domain rather
12254 (mark_image_instance): device -> domain.
12255 (print_image_instance): ditto.
12256 (finalize_image_instance): ditto.
12257 (image_instance_equal): ditto.
12258 (allocate_image_instance): ditto.
12259 (Fcolorize_image_instance): ditto.
12260 (query_string_geometry): ditto.
12261 (image_instantiate): ditto
12262 (query_string_font): ditto.
12263 (image_instantiate): ditto.
12264 (update_subwindow): ditto.
12265 (unmap_subwindow): ditto.
12266 (map_subwindow): ditto.
12267 (subwindow_instantiate): ditto.
12269 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12270 (DOMAIN_FRAME): ditto.
12271 (DOMAIN_WINDOW): ditto.
12272 (DOMAIN_LIVE_P): ditto.
12273 (XDOMAIN_DEVICE): ditto.
12274 (XDOMAIN_FRAME): ditto.
12275 (XDOMAIN_WINDOW): ditto.
12277 * specifier.c (Fvalid_specifier_domain_p): add image instances as
12278 a valid specifier domain.
12280 2000-04-19 Andy Piper <andy@xemacs.org>
12282 * glyphs-widget.c (syms_of_glyphs_widget): remove
12283 widget-callback-current-channel.
12284 (vars_of_glyphs_widget): ditto.
12287 * gui.c (get_gui_callback): revert to previous behaviour.
12289 2000-04-18 Andy Piper <andy@xemacs.org>
12291 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12292 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12293 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12295 * glyphs.c (image_instance_equal): add margin_width.
12296 (image_instance_hash): ditto.
12298 * glyphs-widget.c (widget_instantiate): deal with margin-width.
12299 (layout_query_geometry): ditto.
12300 (layout_layout): ditto.
12301 (syms_of_glyphs_widget): add margin-width.
12302 (image_instantiator_layout): allow margin-width.
12304 * glyphs.c (update_widget_instances): make a normal function.
12305 (syms_of_glyphs): remove Qupdate_widget_instances.
12308 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12309 so that we don't corrupt ideas about the last event or
12310 command. Remove widget-callback-current-channel fiddling.
12311 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12313 2000-05-01 Martin Buchholz <martin@xemacs.org>
12315 * XEmacs 21.2.33 is released.
12317 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
12319 * make-src-depend: Allow dots in header file name.
12321 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
12323 * mule-charset.h (struct charset_lookup): Add
12324 next_allocated_1_byte_leading_byte and
12325 next_allocated_2_byte_leading_byte.
12326 * mule-charset.c: Move above two variables so that those values
12329 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
12331 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12332 when string length is zero.
12333 (find_charsets_in_emchar_string): Ditto.
12335 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
12337 * lisp.h: extern Qdialog and Qmenubar.
12339 * gui-x.c: added events.h.
12340 also fixed typo which made the file uncompilable.
12342 * general.c: Added Qmenubar and Qdialog
12344 2000-04-28 Ben Wing <ben@xemacs.org>
12346 * frame-msw.c (mswindows_init_frame_1):
12347 * frame-msw.c (mswindows_mark_frame):
12348 * event-msw.c (mswindows_enqueue_dispatch_event):
12350 * console-msw.h (struct mswindows_frame):
12351 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12352 there are now three hash tables for callbacks.
12353 mswindows_enqueue_dispatch_event is no longer static.
12355 * dialog-x.c (maybe_run_dbox_text_callback):
12356 * dialog-x.c (dbox_descriptor_to_widget_value):
12357 switch to new cons3 form for callbacks.
12359 * glyphs-msw.c (mswindows_register_gui_item):
12360 * glyphs-msw.c (mswindows_widget_instantiate):
12361 * glyphs-msw.c (add_tree_item):
12362 * glyphs-msw.c (add_tab_item):
12363 new image instance parameter, so it can be passed to callback-ex.
12364 respect :callback-ex as well as :callback.
12366 * glyphs-widget.c (VALID_GUI_KEYWORDS):
12369 * glyphs.c (print_image_instance):
12370 prettify, e.g. now prints widget type.
12373 certain funs have new image instance parameter.
12376 * gui.c (get_gui_callback):
12377 * gui.c (gui_item_add_keyval_pair):
12378 * gui.c (gui_item_init):
12379 * gui.c (gui_add_item_keywords_to_plist):
12380 * gui.c (mark_gui_item):
12381 * gui.c (gui_item_hash):
12382 * gui.c (gui_item_equal):
12383 * gui.c (copy_gui_item):
12384 * gui.c (syms_of_gui):
12385 recognize callback-ex in a number of places.
12386 also, fix the annoying "can't get out of yes-no dialog" bug.
12389 * gui.h (struct Lisp_Gui_Item):
12390 recognize callback-ex in a number of places.
12392 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12393 new parameter in button_item_to_widget_value.
12395 * glyphs-x.c (x_update_widget):
12396 * glyphs-x.c (x_button_instantiate):
12397 * glyphs-x.c (x_button_update):
12398 * glyphs-x.c (x_progress_gauge_instantiate):
12399 * glyphs-x.c (x_edit_field_instantiate):
12400 * glyphs-x.c (x_combo_box_instantiate):
12401 * glyphs-x.c (x_tab_control_instantiate):
12402 * glyphs-x.c (x_label_instantiate):
12403 new image instance parameter in various places.
12406 * event-Xt.c (enqueue_Xt_dispatch_event):
12407 this fun gets exported.
12410 * gui-msw.c (mswindows_handle_gui_wm_command):
12411 handle both :callback and :callback-ex, and generate our own
12412 event because it's one of the callback-ex arguments.
12415 * gui-x.c (popup_selection_callback):
12416 handle both :callback and :callback-ex, and generate our own
12417 event because it's one of the callback-ex arguments.
12418 * gui-x.c (button_item_to_widget_value):
12419 * gui-x.c (gui_items_to_widget_values_1):
12420 * gui-x.c (gui_item_children_to_widget_values):
12421 * gui-x.c (gui_items_to_widget_values):
12422 new image instance parameter in various places.
12424 * fns.c (Freplace_list):
12425 fix small typo in doc string.
12428 declare enqueue_Xt_dispatch_event.
12430 2000-04-28 Ben Wing <ben@xemacs.org>
12433 * buffer.c (Frecord_buffer):
12434 * buffer.c (syms_of_buffer):
12435 delete record-buffer-hook.
12438 * fns.c (Freplace_list):
12439 * fns.c (syms_of_fns):
12440 new primitive replace-list.
12443 slot for old buffer-alist.
12446 exfun replace-list.
12449 * redisplay.c (redisplay_frame):
12450 * redisplay.c (syms_of_redisplay):
12451 * redisplay.c (vars_of_redisplay):
12452 new hook buffer-list-changed-hook.
12455 2000-04-27 Ben Wing <ben@xemacs.org>
12457 * extents.h: extern in_modeline_generation.
12459 * redisplay.c (generate_formatted_string_db): set
12460 in_modeline_generation.
12462 * extents.c (extent_changed_for_redisplay): don't mark redisplay
12463 flags if in modeline generation. otherwise frame-modified-tick
12464 is ticked far too often.
12465 Declare in_modeline_generation.
12467 2000-04-26 Ben Wing <ben@xemacs.org>
12469 * emacs.c (vars_of_emacs): document quick-build "error-checking"
12471 (vars_of_emacs): add quick-build as an error-checking option.
12472 A bit kludgy, but there doesn't seem much point in creating
12473 a real var for this.
12475 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12477 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
12479 * redisplay.h (struct display_line): Add a new variable,
12482 * redisplay.c (create_text_block): Set dl->line_continuation if
12483 the line continues.
12484 (create_string_text_block): Ditto.
12485 (regenerate_window_incrementally): Use line_continuation instead
12486 of searching continuation glyph.
12487 (add_margin_runes): Call add_glyph_rune.
12488 (add_glyph_rune): Handle margin glyph.
12490 2000-04-20 Martin Buchholz <martin@xemacs.org>
12492 * filelock.c (fill_in_lock_file_name):
12494 Check for IS_ANY_SEP instead of '/'.
12496 Avoid generating gratuitous garbage. Call user_login_name() directly.
12497 Never check errno without first seeing that system call failed.
12498 (unlock_file): Add GCPRO.
12499 (Flock_buffer): Fix docstring.
12500 (Ffile_locked_p): Fix docstring. Add GCPRO.
12502 2000-04-19 Martin Buchholz <martin@xemacs.org>
12504 * sysdep.c (get_pty_max_bytes):
12505 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12506 strings longer than 252 bytes.
12508 * md5.c: Unconditionally include ANSI header <limits.h>
12510 * glyphs-x.c (convert_EImage_to_XImage):
12511 * lisp-union.h (union Lisp_Object):
12512 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12514 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
12516 * filelock.c (current_lock_owner): Remove unused variable o, p.
12518 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
12520 * callint.c: Remove multiply defined symbol Qlet
12521 (syms_of_callint): ditto.
12523 2000-04-14 Andy Piper <andy@xemacs.org>
12525 * general.c (syms_of_general): add last-command, this-command, let
12528 * lisp.h: declare various symbols.
12530 * glyphs.h: declare Qwidget_callback_current_channel;
12532 * glyphs-widget.c (syms_of_glyphs_widget): add
12533 Qgui_callback_current_channel.
12534 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12536 * gui-msw.c (mswindows_handle_gui_wm_command): bind
12537 widget-callback-current-channel when invoking the interactive
12538 arg. Also bind last-command and next-command when invoking the
12540 * gui-x.c (popup_selection_callback): ditto.
12542 * gui.c (get_gui_callback): massage args so that we are always
12543 calling eval. This allows us to add our own variable bindings
12546 * glyphs-x.c (x_button_instantiate): use
12547 gui_items_to_widget_values since this is GC safe.
12548 (x_progress_gauge_instantiate): ditto.
12549 (x_edit_field_instantiate): ditto.
12550 (x_label_instantiate): ditto.
12552 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12553 (emacs_Xt_event_widget_focus_out): new function
12554 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12556 (emacs_Xt_event_add_widget_actions): new function. add focus
12557 functions as actions.
12558 (init_event_Xt_late): use it.
12560 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
12562 * event-stream.c (Fdispatch_event): Doc fix.
12564 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
12566 * postgresql.c: Remove all references to PQsetenv*.
12568 * postgresql.h: Remove references to PGsetenvHandler object.
12569 * lrecord.h (lrecord_type): Ditto.
12571 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12573 * glyphs-msw.h (struct mswindows_image_instance_data): Added
12574 real_heigh and real_width members, and accessor macros for these.
12576 * glyphs-msw.c (init_image_instance_geometry): New function.
12577 (init_image_instance_from_dibitmap): Use it.
12578 (mswindows_resource_instantiate): Use it.
12579 (init_image_instance_from_xbm_inline): Use it.
12580 (mswindows_initialize_image_instance_mask): Use real bitmap
12582 (mswindows_create_resized_bitmap): Ditto.
12583 (mswindows_create_resized_mask): Ditto.
12585 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12586 and bitmap to their surface size.
12588 2000-04-11 Jan Vroonhof <jan@xemacs.org>
12590 * process-unix.c (unix_send_process): Guard against process MIA
12591 after Faccept_process_output.
12593 2000-04-11 Ben Wing <ben@xemacs.org>
12595 * eval.c (unbind_to_hairy): fix brokenness introduced by
12596 nanosecond speed improvements.
12598 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
12600 * sunplay.c (init_device): To play sounds correctly, the device
12601 apparently needs to be initialized at least once by XEmacs. Make
12604 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
12606 * redisplay.c (add_margin_runes): Add text image glyph
12609 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
12611 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12612 gcc is newer than 2.5.
12614 2000-04-06 Colin Rafferty <colin@xemacs.org>
12616 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12618 * fns.c (size_bit_vector):
12619 * alloc.c (size_vector):
12620 (make_vector_internal):
12621 (make_bit_vector_internal):
12622 (sweep_bit_vectors_1):
12623 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12625 2000-04-06 Andy Piper <andy@xemacs.org>
12627 * gmalloc.c (malloc): undo previous change.
12632 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
12634 * line-number.c (buffer_line_number): Revert to former version.
12636 2000-04-06 Andy Piper <andy@xemacs.org>
12638 * gmalloc.c (malloc): add error checking.
12643 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12644 button_item_to_widget_value arg.
12646 * glyphs-x.c (x_button_instantiate): add extra
12647 button_item_to_widget_value arg.
12648 (x_progress_gauge_instantiate): ditto.
12649 (x_edit_field_instantiate): ditto.
12650 (x_label_instantiate): ditto.
12652 * gui-x.c (gui_items_to_widget_values_1): add extra
12653 button_item_to_widget_value arg.
12654 (button_item_to_widget_value): add extra menu_item_p arg.
12656 * gui-x.h: change signature of button_item_to_widget_value.
12658 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12659 button_item_to_widget_value arg.
12661 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
12663 * buffer.h (struct buffer): auto_save_modified should be long.
12665 2000-04-05 Andy Piper <andy@xemacs.org>
12667 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12669 (button_query_geometry): give a little more room so that athena
12672 2000-04-05 Andy Piper <andy@xemacs.org>
12674 * faces.c (complex_vars_of_faces): The widget face should inherit
12675 the font of the gui-element face.
12677 2000-04-04 Andy Piper <andy@xemacs.org>
12679 * glyphs-x.c (x_button_update): new function. unconditionally
12680 update a button's state when the instance is dirty.
12681 (image_instantiator_format_create_glyphs_x): add x_button_update.
12682 (x_widget_instantiate): remove old resize cruft.
12684 2000-04-02 Andy Piper <andy@xemacs.org>
12686 * frame.c (change_frame_size_1): The introduction of gutters means
12687 that we need to allow 0 as a potential frame dimension.
12689 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
12691 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12692 image glyph if allow_cursor.
12693 (add_hscroll_rune): Don't allow cursor to border glyph.
12694 (create_text_block): Ditto.
12696 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12697 text not in buffer.
12698 (redisplay_output_layout): Call ensure_face_cachel_complete for
12702 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
12704 * redisplay.c (add_glyph_rune): Adding text image as text runes.
12706 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12709 * redisplay-tty.c (tty_output_display_block): Delete the routine
12710 for text image glyph
12711 * redisplay-x.c (x_output_display_block): ditto
12712 * redisplay-msw.c (mswindows_output_display_block): ditto
12714 2000-02-02 Mike Alexander <mta@arbortext.com>
12716 Note: Some of these were committed by accident as part of other
12719 * regex.c (regex_compile): Avoid compiler warnings.
12721 * ntproc.c (sys_spawnve): Avoid compiler warnings.
12723 * nt.h: Declare term_ntproc correctly.
12725 * nt.c: Remove incorrect declaration of get_home_directory which
12726 is declared correctly in lisp.h.
12728 * keymap.c (get_keyelt): Avoid compiler warnings.
12729 (raw_lookup_key_mapper): Avoid compiler warnings.
12731 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12733 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12735 * filemode.c (mode_string): Avoid compiler warnings.
12737 * file-coding.c (Fcoding_system_aliasee): Add return statement to
12740 * events-mod.h: Undef some things that winuser.h defines differently.
12742 * data.c (Faset): Avoid compiler warnings.
12744 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12746 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
12748 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12749 Fall through to simple beep on error.
12750 Replace "extern" by real header file.
12752 * linuxplay.c: Use nativesound.h
12753 (play_sound_data): Return error code. Be less verbose on error.
12755 * sunplay.c: Use nativesound.h
12756 (play_sound_data): Return error code. Be less verbose on error.
12758 * ntplay.c: Use nativesound.h
12759 (play_sound_data): Return fake error code
12761 * sgiplay.c: Use nativesound.h
12762 (play_sound_data): Return error code
12764 * hpplay.c: Use nativesound.h, partially implement
12765 new error code. Break compilation until finished.
12766 (play_sound_data): error code.
12768 * nativesound.h (play_sound_file):
12769 (play_sound_data): Prototype in new header.
12771 2000-03-31 Andy Piper <andy@xemacs.org>
12773 * glyphs-widget.c: (button_query_geometry): new function. Adjust
12774 for toggle and radio buttons.
12775 (image_instantiator_buttons): use it.
12777 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
12779 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12780 (x_update_horizontal_scrollbar_callback): Return if no mirror was
12781 found. Scrollbar event probably belonged to some old config.
12783 2000-03-31 Andy Piper <andy@xemacs.org>
12785 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12787 (initialize_widget_image_instance): default layout to
12788 LAYOUT_HORIZONTAL rather than 0.
12789 (widget_instantiate): reverse the item list at the end rather than
12791 (layout_layout): re-code for the border text at the front of the
12792 item list rather than at the end.
12793 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12794 provided by the user.
12795 (widget_query_geometry): comment.
12797 2000-03-30 Andy Piper <andy@xemacs.org>
12799 * glyphs-widget.c (image_instantiator_layout): allow standard
12800 widget keywords in layouts.
12802 * gutter.c (output_gutter): cope with nil gutter contents.
12804 * frame.c (Fset_frame_properties): add gutter docs.
12806 2000-03-29 Andy Piper <andy@xemacs.org>
12808 * toolbar-msw.c (TBSTYLE_FLAT): add.
12809 (mswindows_output_toolbar): minor fiddling.
12811 2000-03-29 Andy Piper <andy@xemacs.org>
12813 * gutter.c (output_gutter): force gutter size recalculation if
12814 what we are trying to display won't fit.
12815 (update_gutter_geometry): new function. A per-gutter version of
12816 update_frame_gutter_geometry.
12817 (update_frame_gutter_geometry): use it.
12818 (redraw_exposed_gutter): add extra debugging output.
12820 2000-03-28 Mike Alexander <mta@arbortext.com>
12822 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12823 (pdump_file_unmap): Implement it on Windows
12824 (pdump_file_get): Save alocated handles for pdump_file_unmap
12826 2000-03-28 Andy Piper <andy@xemacs.org>
12828 * gui.c (get_gui_callback): treat Quit specially.
12830 2000-03-27 Andy Piper <andy@xemacs.org>
12832 * glyphs.c (image_instantiate): be careful to check in the same
12835 2000-03-27 Didier Verna <didier@xemacs.org>
12837 * config.h.in: define the proper SMART_INCLUDE macro.
12838 handle renaming of `foo_h_path' to `foo_h_file'.
12840 * database.c: ditto.
12844 * linuxplay.c: ditto.
12846 * terminfo.c: ditto.
12848 * tooltalk.h: ditto.
12850 2000-03-27 Andy Piper <andy@xemacs.org>
12852 * glyphs-msw.c (mswindows_update_widget): make sure the widget
12853 gets updated whenever the face might have changed.
12855 2000-03-26 Mike Alexander <mta@arbortext.com>
12857 * dumper.c (pdump_resource_free): Fix the comment.
12859 2000-03-21 Olivier Galibert <galibert@pobox.com>
12861 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12863 2000-03-22 Mike Alexander <mta@arbortext.com>
12865 * dumper.c: Include Windows headers on Windows
12866 (pdump_resource_free): Add a body to the function
12867 (pdump_load): exe_name -> exe_path and add some comments.
12869 2000-03-25 Mike Alexander <mta@arbortext.com>
12871 * gui.c (copy_gui_item_tree): Return a value in all cases
12873 2000-03-21 Didier Verna <didier@xemacs.org>
12875 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12877 (SMART_INCLUDE): new macro.
12878 (POSTGRES_INCLUDE): new macro to include postgresql headers from
12879 the proper location.
12881 * postgresql.c: use it.
12885 2000-03-24 Andy Piper <andy@xemacs.org>
12887 * gutter.c (redraw_exposed_gutters): must be "in display" when we
12890 2000-03-24 Andy Piper <andy@xemacs.org>
12892 * redisplay-output.c (compare_runes): use image_instance_changed
12893 to detect changes. Do not depend on glyphs_changed, only depend on
12895 (redisplay_output_layout): add debug messages.
12896 (compare_runes): ditto.
12898 * glyphs.h: declare new functions.
12899 (struct Lisp_Image_Instance): remove percent and associated
12902 * gui.h: declare new copying functions.
12904 * gui.c (copy_gui_item_tree): new function.
12905 (copy_gui_item): new function.
12906 (gui_item_id_hash): revert to standard hash.
12907 (gui_item_hash): ditto.
12908 (gui_item_hash_internal): deleted.
12909 (mark_gui_item): mark value.
12910 (gui_item_add_keyval_pair): add value.
12911 (gui_item_init): ditto.
12912 (gui_add_item_keywords_to_plist): ditto.
12913 (gui_item_equal): ditto.
12914 (syms_of_gui): add Q_value.
12916 * glyphs-x.c (x_progress_gauge_update): use pending items and
12917 value for setting the state.
12918 (x_update_widget): don't set items from pending here.
12920 * glyphs-widget.c (update_widget): update items here.
12921 (progress_gauge_set_property): use items for storing value. Put
12922 new value in pending items.
12924 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12925 items for new value. Convert percent -> value.
12926 (mswindows_tab_control_update): don't update items here.
12928 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12929 (update_subwindow): ditto.
12930 (image_instance_changed): new function. Compare hash values and
12931 past and present widget items.
12932 (image_instantiate): We more careful about where we instantiate
12934 (image_instantiate): add error checking.
12936 * gutter.c (syms_of_gutter): use -hook.
12938 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
12940 * console-tty.c (Fset_console_tty_input_coding_system): Use
12942 (Fset_console_tty_output_coding_system): Use Qterminal.
12943 (tty_init_console): Use Qkeyboard and Qterminal.
12945 2000-03-21 Ben Wing <ben@xemacs.org>
12947 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12948 From Mike Alexander <mta@arbortext.com>.
12950 2000-03-21 Ben Wing <ben@xemacs.org>
12952 * event-msw.c (mswindows_need_event): Horrible kludge to fix
12953 process brokenness. Proper implementation to come.
12955 Rename call-process-internal to old-call-process-internal.
12956 New impl. in process.el.
12958 2000-03-21 Martin Buchholz <martin@xemacs.org>
12960 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12962 2000-03-20 Andy Piper <andy@xemacs.org>
12964 * glyphs.c (full_list_hash): make hashes of the same elements in
12965 different orders return different values.
12967 2000-03-20 Martin Buchholz <martin@xemacs.org>
12969 * XEmacs 21.2.32 is released.
12971 2000-03-20 Martin Buchholz <martin@xemacs.org>
12973 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12974 (DFC_MALLOC_USE_CONVERTED_DATA):
12975 Add aliasing-safe casts to allow use with char* or unsigned char*
12978 * eldap.c (Fldap_open):
12979 (Fldap_search_basic):
12982 Make C++-compilable.
12983 Make sure GCPRO'ed variables are initialized.
12984 Use temp variables to avoid repeated calls to Flength.
12986 2000-03-16 Martin Buchholz <martin@xemacs.org>
12989 Make sure PATH_MAX is always defined.
12990 Include limits.h for PATH_MAX.
12991 Deprecate use of MAXPATHLEN.
12993 2000-03-10 Martin Buchholz <martin@xemacs.org>
12995 * emacs.c: Add reinit_vars_of_fileio.
12996 * symsinit.h: Add reinit_vars_of_fileio.
12997 * fileio.c (reinit_vars_of_fileio): New.
12998 * fileio.c (Fmake_temp_name):
12999 Initialize temp_name random number from microseconds to make
13000 collisions even less likely. Initialize always at process startup
13001 time. (make-temp-name) used to return the same file name twice in
13003 Random stylistic fiddling.
13006 2000-03-20 Andy Piper <andy@xemacs.org>
13008 * glyphs.c (image_instantiate): allow text glyphs to be
13009 instantiated in the minibuffer window.
13011 2000-03-19 Andy Piper <andy@xemacs.org>
13013 * glyphs.c (image_instance_hash): be careful about which items we
13016 * glyphs-widget.c (tab_control_set_property): record into pending
13017 items rather than the actual items.
13019 * glyphs-x.c (x_update_widget): use pending items to update with.
13021 * glyphs-msw.c (mswindows_tab_control_update): use pending items
13024 * glyphs.c (mark_image_instance): mark pending items.
13026 * window.c (Fset_window_configuration): record the buffer.
13027 (Fselect_window): totally revert previous change which breaks many
13030 2000-03-18 Andy Piper <andy@xemacs.org>
13032 * glyphs-msw.c (mswindows_tab_control_update): force selected
13035 * glyphs.c (image_instantiate): don't allow the minibuffer as a
13036 window domain cache, otherwise we get inconsistencies at
13037 startup. There is something fishy at startup which can lead to the
13038 minibuffer being the selected window when the gutter content is
13041 * gui.c (parse_gui_item_tree_list): add probably unnecessary
13043 (parse_gui_item_tree_children): ditto.
13044 (parse_gui_item_tree_item): ditto.
13046 * glyphs.c (Fupdate_widget_instances): return something.
13048 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
13050 * window.c (Fselect_window): Undo 2000-03-17 change.
13052 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
13054 * postgresql.c (Fpq_setenv): Remove this turkey when linking
13055 against v7.0 libraries. Insta-coredump city until the postgres
13058 2000-03-17 Andy Piper <andy@xemacs.org>
13060 * faces.c (complex_vars_of_faces): don't give the widget face an
13061 inherited background pixmap.
13063 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13066 * event-stream.c (Fdispatch_non_command_events): return something.
13068 * gutter.c (output_gutter): use widget face.
13069 (clear_gutter): ditto.
13071 * NEWS: adjust again.
13073 * window.c (Fselect_window): make sure this runs to completion to
13074 avoid oddities with Fset_window_configuration.
13075 (Fcurrent_window_configuration): in general do not save the
13076 minibuffer as the selected window.
13078 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13080 2000-03-16 Olivier Galibert <galibert@pobox.com>
13082 * emacs.c (Frunning_temacs_p): Revert previous patch.
13083 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13085 2000-03-16 Andy Piper <andy@xemacs.org>
13087 * glyphs-x.c (x_tab_control_update): if no widget values then
13090 * NEWS: update for new features.
13092 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13093 synthetic event to the native system.
13094 (reinit_vars_of_event_Xt): set force_event_pending to
13095 emacs_Xt_force_event_pending.
13097 * events.h (struct event_stream): add force_event_pending.
13099 * specifier.c (recompute_one_cached_specifier_in_window): add
13102 * redisplay.c (redisplay_frame): don't call
13103 update_frame_subwindows. Reset subwindow cachels when
13104 subwindows_changed, removing this was an optimization too far.
13106 * redisplay-output.c (compare_runes): reorganize so that we catch
13107 glyph changes when we want them. Set optimize_output when this
13108 would help layouts.
13109 (redisplay_output_layout): remove frame_really_changed, use
13110 optimize_output instead.
13112 * redisplay-msw.c (mswindows_output_display_block): reset
13113 optimize_output after outputting a glyph.
13114 * redisplay-x.c (x_output_display_block): ditto.
13115 * redisplay-tty.c (tty_output_display_block): ditto.
13117 * gutter.c: (specifier_vars_of_gutter): use new spec changed
13119 (gutter_specs_changed): do specific gutter positions.
13120 (top_gutter_specs_changed): new function. Only update the
13121 specified gutter specs.
13122 (bottom_gutter_specs_changed): ditto.
13123 (left_gutter_specs_changed): ditto.
13124 (right_gutter_specs_changed): ditto.
13126 * gui.c (gui_item_hash_internal): new function, does a real hash.
13127 (gui_item_id_hash): use it.
13128 (gui_item_hash): hash the eval'ed gui_item.
13130 * gui-x.c (popup_selection_callback): send an eval event to call
13131 Fupdate_widget_instances.
13133 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13134 to call Fupdate_widget_instances.
13136 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13137 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13139 * glyphs.c: (update_frame_subwindows): deleted.
13140 (Fupdate_widget_instances): new function for updating the dirty
13141 state of widgets that might have changed.
13142 (syms_of_glyphs): add Qupdate_widget_instances.
13143 (full_list_hash): hash a list completely.
13144 (image_instance_hash): use it for items and properties.
13146 * frame-msw.c (mswindows_size_frame_internal): remove unused
13149 * faces.h (struct face_cachel): fix comment.
13151 * event-stream.c (Fdispatch_non_command_events): new
13152 function. Process non-command events, forcing an event cycle
13154 (syms_of_event_stream): declare.
13155 (event_stream_force_event_pending): new function. Force an event
13156 on the native event queue so that an event cycle will occur next
13160 (struct ntpipe_shove_stream):
13161 (mswindows_enqueue_dispatch_event):
13162 (mswindows_dequeue_dispatch_event):
13163 (mswindows_cancel_dispatch_event):
13164 (mswindows_pump_outstanding_events):
13165 (mswindows_drain_windows_queue):
13166 (mswindows_handle_paint):
13167 (mswindows_wnd_proc):
13168 (mswindows_key_to_emacs_keysym):
13169 (get_process_input_waitable):
13170 (emacs_mswindows_delete_stream_pair): re-indent file.
13171 (mswindows_need_event): do not process further fds if the windows
13172 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13173 fixes the 100% cpu problem.
13174 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13176 2000-03-15 Olivier Galibert <galibert@pobox.com>
13182 * emacs.c: Moved dump file searching to dumper.c.
13183 (Frunning_temacs_p): Fixed.
13185 * alloc.c: Moved everything pdump-related to dumper.c. Removed
13186 last_lrecord_type_index_assigned.
13188 2000-02-20 Olivier Galibert <galibert@pobox.com>
13190 * symsinit.h: Added reinit parameter to init_console_stream
13193 * lisp.h: Added file parameter to pdump_load declaration.
13195 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13196 support. Added dump file searching.
13198 * config.h.in: Added EMACS_PROGNAME.
13200 * console-stream.c (init_console_stream): Fix reinitialisation
13201 when running from temacs.
13203 * alloc.c (pdump): Add id support.
13204 (pdump_load): Add file parameter and signature/id support.
13206 * Makefile.in.in: Add full pdump support.
13208 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
13210 * postgresql.c: Update documentation to reflect latest code
13212 (print_result): Show tuple counts in printed representation when
13214 (Fpq_put_nbytes): MULE-ize.
13215 (Fpq_get_line_async): Ditto.
13217 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
13219 * postgresql.c (Fpq_lo_import): Fix return value.
13220 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13222 2000-03-13 Ben Wing <ben@xemacs.org>
13224 * alloc.c (pdump_load):
13225 Fix compile warning under mswin.
13227 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
13229 * postgresql.c: Mule-ization, bug fixes.
13230 Use PG_CODING to encapsulate coding system name changes.
13231 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13232 (pg-coding-system): Create.
13234 (Fpq_conn_defaults): Mule-ize.
13235 (Fpq_connectdb): Mule-ize & bug fix.
13236 (Fpq_connect_start): Mule-ize.
13237 (Fpq_set_client_encoding): Mule-ize.
13238 (Fpq_finish): Document `DEAD' connection status.
13239 (Fpq_clear): Ditto.
13240 (Fpq_pgconn): Mule-ize.
13241 (Fpq_exec): Mule-ize & bug fix.
13242 (Fpq_send_query): Ditto.
13243 (Fpq_get_result): Ditto.
13244 (Fpq_res_status): Mule-ize.
13245 (Fpq_result_error_message): Mule-ize.
13246 (Fpq_ntuples): fix comments.
13247 (Fpq_fname): Mule-ize.
13248 (Fpq_fnumber): Mule-ize.
13249 (Fpq_ftype): fix comments.
13250 (Fpq_get_value): Mule-ize.
13251 (Fpq_cmd_status): Ditto.
13252 (Fpq_cmd_tuples): Ditto.
13253 (Fpq_oid_value): Ditto.
13254 (Fpq_notifies): Ditto.
13255 (Fpq_lo_import): Ditto.
13256 (Fpq_lo_export): Ditto.
13257 (Fpq_get_line): Ditto.
13258 (Fpq_put_line): Mule-ize and bug fix.
13259 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13261 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
13263 * postgresql.c (vars_of_postgresql): Mule-ize.
13264 (Fpq_conn_defaults): Ditto.
13266 2000-03-12 Ben Wing <ben@xemacs.org>
13268 * alloc.c (Fmake_byte_code):
13269 * alloc.c (debug_string_purity_print):
13270 * alloc.c (pdump_backtrace):
13271 * alloc.c (pdump_get_indirect_count):
13272 * alloc.c (pdump_register_sub):
13273 * alloc.c (pdump_register_object):
13274 * alloc.c (pdump_register_struct):
13275 * alloc.c (pdump_dump_data):
13276 * alloc.c (pdump_reloc_one):
13280 * console-msw.c (GetConsoleHwnd):
13281 * console-msw.c (msw_hide_console):
13282 * console-msw.c (msw_show_console):
13283 * console-msw.c (msw_ensure_console_buffered):
13284 * console-msw.c (msw_output_console_string):
13285 * console-msw.c (console_type_create_mswindows):
13287 a) Added functions to manipulate the console window for use with
13290 b) Added support for writing text to the console, which is now
13291 used under Windows when xemacs is not being run non-interactively,
13292 to write text that would otherwise be destined for stdout because
13293 under these circumstances, text written to stdout tends to
13294 disappear and not be seen.
13298 * event-Xt.c (x_event_to_emacs_event):
13299 * event-Xt.c (describe_event_window):
13300 * events-mod.h (XEMACS_MOD_CONTROL):
13302 * events.c (Fmake_event):
13303 * events.c (character_to_event):
13304 * events.c (event_to_character):
13305 * events.c (format_event_object):
13306 * events.c (Fevent_modifiers):
13308 * events.h (struct key_data):
13309 * events.h (struct button_data):
13310 * events.h (struct misc_user_data):
13311 * frame-x.c (Fcde_start_drag_internal):
13312 * frame-x.c (Foffix_start_drag_internal):
13313 * gpmevent.c (Freceive_gpm_event):
13315 * keymap.c (bucky_sym_to_bucky_bit):
13316 * keymap.c (control_meta_superify):
13317 * keymap.c (make_key_description):
13318 * keymap.c (keymap_lookup_directly):
13319 * keymap.c (create_bucky_submap):
13320 * keymap.c (keymap_store):
13321 * keymap.c (define_key_check_and_coerce_keysym):
13322 * keymap.c (define_key_parser):
13323 * keymap.c (define_key_alternate_name):
13324 * keymap.c (Fdefine_key):
13325 * keymap.c (raw_lookup_key_mapper):
13326 * keymap.c (struct map_keymap_unsorted_closure):
13327 * keymap.c (map_keymap_unsorted_mapper):
13328 * keymap.c (map_keymap_sort_predicate):
13329 * keymap.c (map_keymap_sorted):
13330 * keymap.c (accessible_keymaps_mapper_1):
13331 * keymap.c (where_is_recursive_mapper):
13332 * keymap.c (describe_map_mapper):
13333 * keymap.c (describe_map_sort_predicate):
13334 * keymap.c (describe_map):
13335 * keymap.c (complex_vars_of_keymap):
13336 And a number of other files, the key modifier preprocessor
13337 constants that xemacs uses have names that conflict with constants
13338 defined under MS Windows for other purposes, so they were renamed
13339 to begin with the prefix XEMACS_. The variables that hold such
13340 modifiers were changed to consistently be of type int to fix
13341 various compile warnings.
13343 * console.c (complex_vars_of_console):
13346 * device-msw.c (mswindows_finish_init_device):
13347 * device-msw.c (msw_get_workspace_coords):
13348 * device-msw.c (mswindows_device_system_metrics):
13349 and various other files, added support for a new
13350 device property called offset-workspace which returns the position
13351 of the upper left corner of the workspace area and goes along with
13352 the existing size-workspace property.
13355 * dialog-msw.c (push_bufbyte_string_as_unicode):
13356 * dialog-msw.c (mswindows_popup_dialog_box):
13357 Added support for XEmacs-style accelerator specifications in
13358 button text. Note: I didn't add support for this under X Windows,
13359 and somebody needs to do this.
13362 * dialog.c (Fpopup_dialog_box):
13363 Documented the support for accelerators that was just mentioned.
13365 editfns.c (get_home_directory): Changed behavior under Windows
13366 when HOME not defined; former behavior was irretrievably broken.
13369 * emacs.c (main_1):
13371 * minibuf.c (clear_echo_area_internal):
13372 * minibuf.c (echo_area_append):
13374 * print.c (std_handle_out_external):
13375 * print.c (std_handle_out_va):
13377 * print.c (write_string_to_stdio_stream):
13378 * print.c (output_string):
13379 * print.c (debug_print):
13380 * print.c (debug_backtrace):
13381 * print.c (debug_short_backtrace):
13382 Cleaned up the code that prints text to stdout so that this can be
13383 changed to output into a console window instead under MS Windows,
13384 as described above.
13387 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13388 * eval.c (internal_catch):
13389 * eval.c (unwind_to_catch):
13390 * eval.c (throw_or_bomb_out):
13391 * eval.c (condition_case_1):
13392 * eval.c (signal_1):
13393 * eval.c (check_error_state_sanity):
13394 * eval.c (call_with_suspended_errors_1):
13395 * eval.c (call_with_suspended_errors):
13396 * eval.c (reinit_vars_of_eval):
13397 Added code to catch throw loops and check for a pesky bug that may
13401 * event-msw.c (key_needs_default_processing_p):
13402 * event-msw.c (mswindows_wnd_proc):
13403 * event-msw.c (mswindows_modifier_state):
13404 * event-msw.c (emacs_mswindows_quit_p):
13405 * event-msw.c (vars_of_event_mswindows):
13406 a) Added support for using the alt key to select menu items as is
13407 standard under MS Windows. This is controlled using the variable
13408 menu-accelerator-enabled, just like under X Windows. There is an
13409 option on the options menu to turn this support on. I really
13410 think that it should be on by default under Windows, but I'm not
13411 going to make this change yet.
13413 b) Added support for dynamic display size changes under Windows.
13416 * event-stream.c (maybe_echo_keys):
13417 * event-stream.c (Fnext_event):
13418 * event-stream.c (command_builder_find_leaf):
13419 * event-stream.c (lookup_command_event):
13420 * event-stream.c (execute_command_event):
13421 * event-stream.c (pre_command_hook):
13422 * event-stream.c (post_command_hook):
13423 * event-stream.c (syms_of_event_stream):
13424 * event-stream.c (vars_of_event_stream):
13425 * event-stream.c (complex_vars_of_event_stream):
13426 * events.h (struct command_builder):
13428 a) Tried to clean up a little bit the horribly written x-specific
13429 accelerator code that crept into this file. I moved this code
13430 into menubar-x.c where it belongs. I also needed to move the
13431 command builder structure into the file events.h because it is
13432 accessed directly by this accelerator code. What I didn't do, but
13433 which should be done at some point, is to properly abstract this
13434 code using device methods instead of the kludgy way that it
13435 currently hooks into the event code.
13437 b) Added the lisp variables this-command-properties and
13438 last-command- properties, which should be used to synchronize two
13439 adjacent commands in preference to playing games with the variable
13440 this-command, which is typically what happens.
13442 c) Added some slightly nasty code to hook into the lisp support
13443 for shifted- motion-key selection. This is actually necessary for
13444 somewhat complicated reasons, which are described in
13445 simple.el. (NB: I think the proper thing would be to have the code
13446 that calls the pre and post command hooks also call out to generic
13447 lisp functions in simple.el, where all built-in stuff could be
13448 added. I will think about this more.)
13450 * event-unixoid.c (poll_fds_for_input):
13451 * lread.c (readchar):
13452 * redisplay-tty.c (tty_clear_frame):
13453 * redisplay-x.c (x_get_gc):
13454 * signal.c (interrupt_signal):
13455 And a whole bunch of other files: fixed up places that printed
13456 directly to stderr to instead call the function stderr_out so that
13457 the changes I made under Windows work correctly.
13459 * filemode.c (mode_string):
13463 * frame-msw.c (mswindows_size_frame_internal):
13464 Fixed the computation of frame size and position to keep the frame
13465 within the workspace area, rather than within the physical
13466 dimensions of the screen, so that the frame doesn't overlap window
13467 manager decorations, such as the start menu and toolbar, typically
13468 at the bottom of the screen.
13470 * frame.c (vars_of_frame):
13471 Changed the default frame title format under MS Windows to consist
13472 of buffername-XEmacs, which is standard under MS Windows. I think
13473 it might be a good idea to change this everywhere because I think
13474 it is superior to the current frame title format, but this is the
13475 kind of change that is likely to cause some people to get annoyed,
13476 so I'm not making it.
13478 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13480 * gui-msw.c (mswindows_handle_gui_wm_command):
13481 Fixed compile warnings.
13484 * gui-x.c (strdup_and_add_accel):
13485 * gui-x.c (button_item_to_widget_value):
13487 Added code to automatically put an accelerator onto the beginning
13488 of menu items that don't have one as is now the standard, and is
13489 described more later. Also fixed things so that the menu item
13490 name can be an evaluated expression, again a new standard.
13493 * gui.c (gui_item_add_keyval_pair):
13494 * gui.c (make_gui_item_from_keywords_internal):
13495 * gui.c (gui_add_item_keywords_to_plist):
13496 * gui.c (gui_item_accelerator):
13497 * gui.c (gui_name_accelerator):
13498 * gui.c (gui_item_included_p):
13499 * gui.c (gui_item_display_flush_left):
13500 * gui.c (gui_item_display_flush_right):
13501 * gui.c (parse_gui_item_tree_item):
13502 * gui.c (parse_gui_item_tree_children):
13503 * gui.c (parse_gui_item_tree_list):
13504 Mule-ized. Cleanup. GCPRO addition.
13506 * line-number.c (buffer_line_number):
13508 * lisp.h (EMACS_INT_MAX):
13509 Added the manifest constant EMACS_INT_MIN corresponding to the
13510 existing constant EMACS_INT_MAX. This is partially to fix compile
13511 warnings under Windows, and partly for cleanliness.
13514 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13515 * menubar-msw.c (msw_translate_menu_or_dialog_item):
13516 * menubar-msw.c (displayable_menu_item):
13517 * menubar-msw.c (populate_menu_add_item):
13518 * menubar-msw.c (populate_or_checksum_helper):
13519 * menubar-msw.c (populate_menu):
13520 * menubar-msw.c (update_frame_menubar_maybe):
13521 * menubar-msw.c (prune_menubar):
13522 * menubar-msw.c (msw_char_is_accelerator):
13523 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13524 * menubar-msw.c (mswindows_handle_wm_command):
13525 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13526 * menubar-msw.c (mswindows_handle_wm_initmenu):
13527 * menubar-msw.c (mswindows_update_frame_menubars):
13528 * menubar-msw.c (mswindows_free_frame_menubars):
13529 * menubar-msw.c (mswindows_popup_menu):
13530 Fixed a bug in handling accelerators where an extra character
13531 would be displayed in the menu item. Also generalized the
13532 function displayable_menu_item because it is now used by the
13533 dialog box code as well. And finally, added code in the functions
13534 that create the menubar to extract a list of accelerators for the
13535 top level menubar, which is used in the event code to determine
13536 whether a particular alt-key combination should be used to invoke
13537 a menu item, or should be passed through to access the standard
13538 XEmacs keymap binding for this key combination.
13540 Much needed GCPROing.
13543 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13544 * menubar-x.c (menu_item_descriptor_to_widget_value):
13545 * menubar-x.c (restore_in_menu_callback):
13546 * menubar-x.c (x_popup_menu):
13547 * menubar-x.c (menu_move_up):
13548 * menubar-x.c (menu_move_down):
13549 * menubar-x.c (menu_move_left):
13550 * menubar-x.c (menu_move_right):
13551 * menubar-x.c (menu_select_item):
13552 * menubar-x.c (command_builder_operate_menu_accelerator):
13553 * menubar-x.c (menu_accelerator_junk_on_error):
13554 * menubar-x.c (command_builder_find_menu_accelerator):
13555 * menubar-x.c (Faccelerate_menu):
13557 Moved a whole bunch of code here that was previously in
13558 event-stream.c as described above. There is also code connected
13559 to the new standard of adding an accelerator to the beginning of
13560 menu items that don't have one as described above and below.
13563 * menubar.c (menu_parse_submenu_keywords):
13564 * menubar.c (Fmenu_find_real_submenu):
13565 * menubar.c (Fnormalize_menu_item_name):
13566 * menubar.c (syms_of_menubar):
13567 * menubar.c (vars_of_menubar):
13568 * menubar.c (complex_vars_of_menubar):
13570 a) Cleaned up a bunch of documentation and improved it.
13572 b) XEmacs now automatically adds an accelerator onto the beginning
13573 of any menu items that don't have one. I did this because there
13574 will inevitably be some menu items on the main menubar that don't
13575 have accelerators on them because the package that adds that
13576 particular menu item hasn't yet been fixed up to have accelerators
13577 in them and it looked rather strange to have some items with and
13578 some items without accelerators, especially since even in items
13579 without accelerators, you can, at least under windows, still
13580 access the item through an accelerator corresponding to the first
13581 character in the item's name. If people don't like this behavior,
13582 I can add a variable to turn it off optionally, but I'm not sure
13583 this is a good idea because we really do need to have accelerators
13584 on all of the menu items, and if a package doesn't like the
13585 accelerators being put on the first character, then it should put
13586 the accelerators where they belong.
13588 c) I made a behavior change, which is that the descriptor that
13589 specifies the text of the menu item, which formerly was just a
13590 string, can now also be an evaluated expression. This makes this
13591 descriptor parallel with all of the others, which could also be
13592 evaluated expressions. This also obviates the need for the
13593 keyword :label, which was previously listed in the documentation
13594 as unimplemented, and which was for the same purpose.
13599 * ntproc.c (new_child):
13600 * ntproc.c (sys_spawnve):
13601 * ntproc.c (find_child_console):
13602 * ntproc.c (sys_kill):
13603 Fixed compile warnings. By the way, this file should really go
13604 away entirely, and this will happen as soon as Kirill makes his
13605 final round of process cleanups, which affect the function
13609 * process-nt.c (struct nt_process_data):
13610 * process-nt.c (find_process_from_pid):
13611 * process-nt.c (send_signal_the_nt_way):
13612 * process-nt.c (enable_child_signals):
13613 * process-nt.c (find_child_console):
13614 * process-nt.c (send_signal_the_95_way):
13615 * process-nt.c (nt_finalize_process_data):
13616 * process-nt.c (ensure_console_window_exists):
13617 * process-nt.c (nt_create_process):
13618 * process-nt.c (nt_kill_child_process):
13619 * process-nt.c (nt_kill_process_by_pid):
13620 * process-nt.c (nt_open_network_stream):
13621 * process-nt.c (vars_of_process_nt):
13622 Copied over code from Emacs 20.5 to correctly send signals to sub-
13623 processes under Windows 95. Also added code to automatically
13624 create and hide console window when a sub-process is created under
13625 Windows 95, which obviates the need for the separate runemacs.exe
13626 executable, and finally implemented some variables that were
13627 implemented in Emacs 20.5, but previously not in XEmacs. These
13628 include mswindows- start-process-share-console and
13629 mswindows-start-process-inherit-error-mode. (Both of these only
13630 apply to Windows 95.)
13632 * regex.c (regex_compile): Fixed a compile warning.
13635 * select-msw.c (mswindows_own_selection):
13636 * select-msw.c (mswindows_get_foreign_selection):
13637 * select-msw.c (mswindows_disown_selection):
13638 * select-msw.c (console_type_create_select_mswindows):
13639 * select-msw.c (syms_of_select_mswindows):
13640 Cleaned up the file and implemented the device method
13641 selection_exists_p, which had accidentally been left out. Also
13642 removed four lisp functions that were remnants from before the
13643 time when the selection code was properly device abstracted.
13644 These functions are no longer needed because there are generic
13645 equivalents, and because they were added recently and don't exist
13646 in FSF Emacs, I don't think there's any problem with just deleting
13650 * sysdep.c (sys_subshell):
13651 Fixed a compile warning, although in this case there's probably
13652 something wrong with this code, and it ought to be looked into
13653 more thoroughly by somebody who understands it.
13656 * window.c (Fwindow_text_area_height):
13657 * window.c (Fwindow_width):
13658 * window.c (Fwindow_full_width):
13659 * window.c (Fwindow_pixel_width):
13660 * window.c (debug_print_window):
13661 * window.c (syms_of_window):
13662 Added functions window-text-area-height and window-full-width,
13663 which are functions for returning various width and height
13664 characteristics of a window. (One of these functions is necessary
13665 for making the file dialog box work correctly, and the other one
13666 was added for completeness.) Also added a table to the
13667 documentation for window-height which describes the entire scheme
13668 for accessing width and height characteristics of a window.
13670 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13672 * nt.c (fstat): Added a comment for another problem with
13673 non-encapsulated [f]stat(), reported by Adrian Aichner
13674 <aichner@ecf.teradyne.com>.
13676 2000-03-11 Andy Piper <andy@xemacs.org>
13678 * window.c (make_dummy_parent): initialize subwindow instance
13680 (Fset_window_configuration): zero extent_modiff.
13682 2000-03-10 Andy Piper <andy@xemacs.org>
13684 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13685 more changes can be triggered.
13686 (Fredisplay_frame): ditto.
13687 (Fredraw_device): ditto.
13688 (Fredisplay_device): ditto.
13689 (redisplay_frame): make non-static.
13690 (redisplay_frame): call update_frame_gutter_geometry outside of
13693 * gutter.h: declare update_frame_gutter_geometry.
13695 * redisplay.h: declare redisplay_frame.
13697 * gutter.c (update_frame_gutter_geometry): move geometry changes
13698 in update_frame_gutters here. Geometry changes can only occur
13699 outside of redisplay.
13700 (update_frame_gutters): remove geometry change code.
13701 (Fredisplay_gutter_area): make sure that we are in display when we
13702 update and that we have flushed any size changes.
13704 2000-03-11 Andy Piper <andy@xemacs.org>
13706 * alloc.c (pdump_dump_data): remove i & count shadows.
13708 2000-02-27 Mike Alexander <mta@arbortext.com>
13710 * sysdep.h: Declare pdump_read_file
13712 * sysdep.c (pdump_read_file): New function
13714 * alloc.c (pdump_load): Call pdump_read_file to get the portable
13717 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
13719 * lrecord.h: add `lrecord_type_pgsetenv'.
13721 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
13723 * symsinit.h: declare (vars|syms)_of* functions.
13724 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13726 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
13728 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13730 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13733 * emacs.c (main_1): Call postgres initialization code.
13735 * postgresql.h: New file. PostgreSQL RDBMS support.
13736 * postgresql.c: New file.
13738 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
13740 * redisplay-output.c (redisplay_output_display_block): Disable
13743 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13745 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13746 (Fcanna_henkan_next): Ditto.
13747 (Fcanna_bunsetu_henkou): Ditto.
13748 (Fcanna_henkan_kakutei): Ditto.
13749 (Fcanna_henkan_end): Ditto.
13750 (Fcanna_henkan_quit): Ditto.
13751 (Fcanna_henkan_next): Set retun value correctly.
13752 (c2mu): Use unsigned char instead of signed char.
13754 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13756 * emacs.c (main_1): Always call syms_of_gui.
13757 * inline.c: include gui.h
13759 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13761 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13762 converted to Lisp_Object.
13763 (Qtop_bottom): New variable.
13764 (syms_of_redisplay): Initialize it.
13765 * redisplay.h (Vvisible_bell): Ditto.
13766 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13767 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13768 only flash top and bottom.
13770 2000-03-08 Andy Piper <andy@xemacs.org>
13772 * buffer.c (Frename_buffer): record new buffer name the right way.
13774 2000-03-08 Andy Piper <andy@xemacs.org>
13776 * glyphs.c (update_subwindow): increase hash depth so that widget
13777 items get picked up properly.
13779 * redisplay-output.c (compare_runes): increase hash depth so that
13780 widget items get picked up properly.
13782 2000-03-08 Andy Piper <andy@xemacs.org>
13784 * gutter.c (output_gutter): add some debug.
13786 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13787 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13788 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13790 * redisplay-output.c (compare_runes): use display_hash to
13791 determine if glyphs really are not the same.
13793 * glyphs.c (update_subwindow): check display_hash to see if
13794 anything really needs to be updated. If not then do
13795 nothing. Record the display_hash after updating.
13796 (image_instance_equal): compare the image_instance face also.
13798 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
13800 * redisplay.h: Fix comment style.
13802 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
13804 * consle-msw.h (struct mswindows_frame):
13805 Added new member paint_pending to indicate whether a WM_PAINT
13806 magic event has been queued for this frame.
13808 * event-msw.c (mswindows_drain_windows_queue):
13809 Don't queue a WM_PAINT magic event if one is already queued.
13810 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13812 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13814 2000-03-07 Didier Verna <didier@xemacs.org>
13816 * dired.c: #include `regex.h' after `sysfile.h'.
13818 2000-03-06 Martin Buchholz <martin@xemacs.org>
13820 * sound.c (init_nas_sound): Fix compiler warning.
13822 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13824 (MARK_STRUCT_AS_FREE):
13825 (MARK_STRUCT_AS_NOT_FREE):
13826 Make `gcc -fstrict-aliasing' work properly.
13828 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
13830 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13831 (mswindows_delete_device): Call CoUnnitialize().
13833 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13835 2000-02-25 <CraigL@DyCon.com>
13837 * process-nt.c: MinGW now has <shellapi.h>, but still needs
13840 * sysdep.c: This extern declaration for environ prevents MinGW
13841 from finding the variable in CRTDLL.DLL.
13843 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13845 (SHGFI_EXETYPE): ..
13846 (WM_MOUSEWHEEL): ..
13847 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13849 (MMRESULT): Removed, now defined in cygwin's windows headers.
13851 (uid_t,gid_t,pid_t,ssize_t): ..
13852 (_timeb): Removed, MinGW defines both _timeb and timeb.
13853 (HAVE_H_ERRNO): Added.
13854 (HAVE_TZNAME): Added, configure is not detecting this.
13856 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
13858 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13859 * syntax.c (syntax_match): Use it.
13861 * cmds.c: Import auto-fill-chars from FSF Emacs.
13862 (Vauto_fill_chars): New variables.
13863 (internal_self_insert): Check Vauto_fill_chars.
13865 Declare auto-fill-chars as a Lisp variable and initialize it.
13867 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
13869 * fileio.c (Fmake_symbolic_link):
13871 Run handlers even if local machine doesn't have symlinks.
13873 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
13875 * event-msw.c (mswindows_drain_windows_queue):
13876 Don't generate paint magic events for non-XEmacs frames.
13878 2000-03-05 Andy Piper <andy@xemacs.org>
13880 * redisplay.c (redisplay_frame): generate_displayable_area and
13881 friends assumes that we are not in GC, we therefore have to make
13882 sure that this doesn't happen.
13884 * gutter.c (calculate_gutter_size): generate_displayable_area
13885 assumes that we are not in GC, we therefore have to make sure that
13886 this doesn't happen.
13888 2000-03-05 Martin Buchholz <martin@xemacs.org>
13890 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13892 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
13894 * redisplay.c (regenerate_window): Make sure we set a sane value
13895 for end_pos even if we jump out of the loop.
13896 (regenerate_window): Answer Ben's question :-).
13897 (start_end_of_last_line): Add may_error argument.
13898 (start_of_last_line):
13899 (end_of_last_line): Pass may_error = 0.
13900 (end_of_last_line_may_error): New function.
13901 (pixel_to_glyph_translation): Use it, so we don't crash in
13904 2000-03-04 Andy Piper <andy@xemacs.org>
13906 * window.h (struct window): add gutter_extent_modiff.
13908 * window.c (allocate_window): zero out gutter_extent_modiff.
13910 * redisplay.h: declare sync_display_line_structs.
13912 * redisplay.c (add_glyph_rune): add a better comment.
13914 * redisplay-output.c (sync_display_line_structs): made non-static.
13915 (compare_runes): remove unneccesary glyph cachel access.
13917 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13919 * gutter.c (output_gutter): don't output the gutter if extent
13920 changes only involve extents in buffers. use 4 sets of display
13922 (gutter_extent_signal_changed_region_maybe): new function. Mark
13923 extents in gutters as changed.
13924 (update_frame_gutters): use 4 sets of display lines.
13925 (reset_gutter_display_lines): ditto.
13926 (free_frame_gutters): ditto.
13927 (redraw_exposed_gutter): force output of gutters.
13929 * frame.h (struct frame): add 4 sets of gutter display lines.
13931 * extents.c: (extent_changed_for_redisplay): signal changes to
13932 extents in strings in the gutter as well as extents in buffers.
13934 2000-03-02 Andy Piper <andy@xemacs.org>
13936 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13938 * frame.c (Fmake_frame): make sure the gutters get initialized
13939 after the frame is visible.
13940 (set_frame_selected_window): re-arrange compilation macros a
13942 (change_frame_size_1): mark gutters changed.
13944 * device.c (Fset_device_class): mark gutters changed.
13946 2000-03-01 Andy Piper <andy@xemacs.org>
13948 * window.c (window_top_frame_gutter_height): deleted.
13949 (window_bottom_frame_gutter_height): ditto.
13950 (window_left_frame_gutter_height): ditto.
13951 (window_right_frame_gutter_height): ditto.
13952 (window_top_gutter_height): don't use them.
13953 (window_bottom_gutter_height): ditto.
13954 (window_left_gutter_width): ditto.
13955 (window_right_gutter_width): ditto.
13956 (Fsplit_window): ditto.
13957 (Fwindow_pixel_edges): don't use border dimensions here.
13959 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13960 (update_scrollbar_instance): ditto.
13962 * redisplay.c (generate_modeline): don't take gutters into account.
13963 (generate_modeline): ditto.
13964 (redisplay_frame): small gutter display optimization.
13966 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13968 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13969 gutters into account.
13971 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13972 for window position and type.
13974 * gutter.c (get_gutter_coords): fix for frame gutters.
13975 (update_frame_gutters): update frame geometry if the gutters have
13977 (init_frame_gutters): record current gutter geometries.
13979 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13981 (mswindows_widget_instantiate): ditto.
13983 * frame.h (struct frame): add current_gutter_bounds.
13985 * frame.c (change_frame_size_1): position window and minibuffer
13986 appropriately taking into account the frame gutters.
13988 * frame-x.c: (x_initialize_frame_size): take into account the
13991 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
13993 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
13995 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
13997 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13999 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14001 * file-coding.c (reset_decoding_stream): Clear previous
14002 detection state when autodetect.
14004 2000-02-29 Didier Verna <didier@xemacs.org>
14006 * extents.c (set_extent_glyph_1): don't require extents to be
14009 2000-02-27 Andy Piper <andy@xemacs.org>
14011 * gutter.c (Fset_default_gutter_position): don't default left and
14012 right gutter visibility to t.
14013 (Fset_default_gutter_position): run
14014 default-gutter-position-changed-hook.
14015 (syms_of_gutter): add default-gutter-position-changed-hook.
14017 2000-02-26 Andy Piper <andy@xemacs.org>
14019 * specifier.c (Fmake_specifier): add gutter references.
14021 * gutter.h (RAW_WINDOW_GUTTER): new macro.
14023 * lisp.h: declare Fvalid_plist_p.
14025 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14027 (default_gutter_visible_p_changed_in_window): invalidate gutter as
14028 well as its visibility so that it gets reconstructed.
14029 (construct_window_gutter_spec): new function. Construct a string
14030 to be displayed in the gutter from a plist of strings. Take care
14031 to only use elements that are declared as visible.
14032 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14034 (gutter_validate): allow plists of strings in the specifier.
14035 (gutter_specs_changed): construct the real_gutter from the gutter
14036 specs using construct_window_gutter_spec.
14037 (gutter_visible_validate): gutter-visible is a new specifier type.
14038 (Fgutter_visible_specifier_p): new function for the new specifier.
14039 (syms_of_gutter): declare gutter-visible and
14040 Fgutter_visible_specifier_p.
14041 (specifier_type_create_gutter): intitalize new gutter-visible
14043 (reinit_specifier_type_create_gutter): ditto.
14044 (specifier_vars_of_gutter): use new specifier type for gutter
14046 (init_frame_gutters): construct real_gutter correctly.
14047 (Fgutter_specifier_p): beef up documentation.
14048 (Fgutter_size_specifier_p): ditto.
14050 * winslots.h: add real_gutter slots.
14052 2000-02-25 Andy Piper <andy@xemacs.org>
14054 * device-msw.c: Be kind to older cygwin versions. From Raymond
14055 Toy <toy@rtp.ericsson.se>.
14057 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14058 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14060 2000-02-25 Martin Buchholz <martin@xemacs.org>
14062 * elhash.c (MARK_OBJ): Practice macro hygiene.
14064 2000-02-24 Martin Buchholz <martin@xemacs.org>
14066 * miscplay.c: s/__inline__/inline/g;
14067 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14068 (get_device_compdc): INLINE ==> static inline
14069 * *.[ch]: Change INLINE to INLINE_HEADER globally.
14070 find -name '*.h' | \
14071 xargs global-replace \
14072 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14074 2000-02-25 Andy Piper <andy@xemacs.org>
14076 * window.c (window_top_frame_gutter_height): new function.
14077 (window_top_window_gutter_height): ditto.
14078 (window_top_gutter_height): use them.
14079 (window_bottom_frame_gutter_height): new function.
14080 (window_bottom_window_gutter_height): ditto.
14081 (window_bottom_gutter_height): use them.
14082 (window_left_window_gutter_width): new function.
14083 (window_left_frame_gutter_width): ditto.
14084 (window_left_gutter_width): use them.
14085 (window_right_window_gutter_width): new function.
14086 (window_right_frame_gutter_width): ditto.
14087 (window_right_gutter_width): use them.
14088 (window_pixel_height): new function. calulate window pixel height
14089 with frame gutter involvement.
14090 (Fsplit_window): calculate new sizes taking frame gutters into
14092 (window_char_height_to_pixel_height): don't include frame gutters.
14093 (window_char_height): use window_pixel_height.
14094 (window_pixheight): rename from window_pixel_height.
14095 (change_window_height): use it.
14096 (window_pixel_height_to_char_height): don't include frame gutters.
14097 (window_char_width_to_pixel_width): ditto.
14099 2000-02-25 Andy Piper <andy@xemacs.org>
14101 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14104 2000-02-24 Martin Buchholz <martin@xemacs.org>
14106 * alloc.c (staticpro):
14107 (staticpro_nodump):
14112 (compact_string_chars):
14113 (pdump_dump_wired):
14114 Convert: if (foo) abort(); ==> assert (! foo);
14116 * eldap.c (Fldap_search_basic):
14120 Fix compiler warnings, and possible crashes if (random) return
14121 value were to be used.
14123 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14125 * device-msw.c: Workaround ResetDC failure.
14127 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14128 applying a devmode.
14130 * redisplay-msw.c (get_frame_dc): Added start_page_p.
14131 (mswindows_text_width): Do not start printer page.
14133 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14135 * glyphs-msw.c: Added image methods to msprinter console and
14136 msprinter-specific image instantiation.
14138 2000-02-20 Mike Alexander <mta@arbortext.com>
14140 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14141 to avoid crashes when selection-sets-clipboard is on
14142 (mswindows_own_selection): ditto
14144 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14147 * redisplay-msw.c (get_frame_dc):
14148 (get_frame_compdc):
14150 * device-msw.c (mswindows_init_device):
14151 (mswindows_delete_device):
14152 (msprinter_init_device):
14153 (msprinter_delete_device):
14154 * frame-msw.c (mswindows_init_frame_1):
14155 (mswindows_delete_frame):
14156 (msprinter_init_frame_3):
14157 (msprinter_delete_frame): Move compatible DC to device object from
14158 frame object, for both mswindows and msprinter. Only one at a time
14159 is needed, it is a real waste to have one per frame!
14161 2000-02-23 Andy Piper <andy@xemacs.org>
14163 * glyphs.c: add dynamic width and height elements.
14164 (image_instance_equal): ditto.
14166 * glyphs-widget.c (widget_query_geometry): calculate width and
14167 height dynamically if required.
14168 (initialize_widget_image_instance): initialize dynamic dimensions.
14169 (widget_instantiate): pick-up dynamic dimensions.
14171 * glyphs.h (struct Lisp_Image_Instance): add width and height for
14172 dynamic determination. Add appropriate macros.
14174 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14176 (WINDOW_GUTTER_SIZE): ditto.
14177 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14179 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14181 (get_frame_dc): ditto.
14183 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14186 2000-02-23 Martin Buchholz <martin@xemacs.org>
14188 * XEmacs 21.2.31 is released.
14190 2000-02-22 Ben Wing <ben@xemacs.org>
14192 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14194 2000-02-22 Andy Piper <andy@xemacs.org>
14196 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14198 2000-02-21 Mike Sperber <mike@xemacs.org>
14202 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14205 2000-02-21 Mike Sperber <mike@xemacs.org>
14207 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14209 2000-02-21 Martin Buchholz <martin@xemacs.org>
14211 * XEmacs 21.2.30 is released.
14213 2000-02-20 Martin Buchholz <martin@xemacs.org>
14215 Performance hacking.
14217 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14218 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14219 * emacs.c (main_1):
14221 * console.c (DEFVAR_CONSOLE_LOCAL_1):
14222 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14223 * symeval.h (DEFVAR_SYMVAL_FWD):
14224 * symbols.c (guts_of_unbound_marker):
14225 Make all c_readonly objects also lisp_readonly and marked for life.
14226 * lrecord.h (struct lrecord_implementation):
14227 Document flags better.
14228 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14229 * lrecord.h (DECLARE_LRECORD):
14230 * lrecord.h (XSETRECORD):
14231 * lrecord.h (RECORDP):
14232 * lrecord.h (RECORD_TYPEP):
14233 * lrecord.h (RECORD_MARKER): New.
14234 * lrecord.h (error_check_*):
14235 * lrecord.h (CONCHECK_NONRECORD):
14236 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14237 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14238 * lrecord.h (set_lheader_implementation):
14239 * lrecord.h (enum lrecord_type): New.
14240 * symeval.h (SYMBOL_VALUE_MAGIC_P):
14241 * alloc.c (disksave_object_finalization_1):
14242 * alloc.c (mark_object):
14243 * alloc.c (lrecord_type_index):
14244 * alloc.c (tick_lcrecord_stats):
14245 * alloc.c (Fgarbage_collect):
14246 * alloc.c (init_alloc_once_early):
14247 * alloc.c (pdump_load):
14248 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14249 * alloc.c (lrecord_type_index): Delete.
14250 Make lisp object type indexes be constant.
14251 Makes (byte-compile) 5% faster.
14252 Put all marker functions into their own array.
14253 Makes (garbage-collect) 5% faster.
14254 Optimize SYMBOL_VALUE_MAGIC_P.
14255 Makes (byte-compile) 2-3% faster.
14256 * config.h.in (gc_checking_assert): New.
14257 * alloc.c: Use gc_checking_assert().
14258 * .dbxrc: Make compatible with new object type implementation.
14259 * .gdbinit: Make compatible with new object type implementation.
14260 * alloc.c: Delete all symbols defined only for debugging, such as
14261 Lisp_Type_Vector and lrecord_charset.
14263 2000-02-21 Andy Piper <andy@xemacs.org>
14265 * gui-msw.c (Fmswindows_shell_execute): fix file location
14268 * buffer.c (Fkill_buffer): remove buffer from alist buffer
14269 unshowing so that set_window_buffer doesn't undo
14270 kill_buffer_hook's hard work.
14272 * glyphs-widget.c (tab_control_query_geometry): don't count the
14273 first item when calculating geometry.
14275 * glyphs.c (map_subwindow): remove redundant code.
14276 (update_frame_subwindows): be more circumspect about when to
14279 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14280 when items haven't changed. Update faces if faces have changed as
14281 well as just the widget face.
14282 (x_tab_control_update): Update faces if faces have changed as well
14283 as just the widget face.
14285 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
14287 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14289 (build_syscolor_string): Use mswindows_color_to_string to try to
14291 (mswindows_device_system_metrics): Reverse the foreground and
14292 background colors so that they match the documentation.
14294 * objects-msw.c: (mswindows_X_color_map): tweak some values so
14295 they match the default Windows palette.
14296 (mswindows_color_to_string): New function.
14298 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
14300 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14302 2000-02-18 Olivier Galibert <galibert@pobox.com>
14304 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14305 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14307 * symbols.c (init_symbols_once_early): Removed obsolete
14308 DATA_SEG_BITS related kludge.
14309 (defvar_magic): Ditto.
14311 * malloc.c: Removed obsolete DATA_SEG_BITS
14313 * mem-limits.h: Ditto.
14315 * Makefile.in.in: Removed obsolete HAVE_SHM
14318 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
14320 * device-msw.c (mswindows_delete_device): Free DDE string
14323 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14325 * keymap.c (get_keyelt):
14326 * unexnt.c (unexec):
14327 * vm-limit.c (memory_warnings):
14328 * ntheap.c (recreate_heap):
14329 * ntheap.h (UNINIT_PTR):
14330 * select-msw.c (Fmswindows_get_clipboard):
14331 (Fmswindows_set_clipboard):
14332 * objects-msw.h (MSWINDOWS_BAD_HFONT):
14334 * menubar-msw.c (displayable_menu_item):
14336 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14337 * sysdep.c (sys_subshell):
14338 * process-nt.c (nt_create_process):
14339 * nt.c (normalize_filename):
14340 (dostounix_filename):
14341 (unixtodos_filename):
14342 * ntproc.c (win32_executable_type):
14343 * ntplay.c (play_sound_data_1):
14345 * editfns.c (get_home_directory):
14346 * event-msw.c (struct winsock_stream):
14347 (mswindows_dde_callback):
14348 * device-msw.c (msprinter_init_device):
14349 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14351 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14352 mswindows_clear_toolbar were swapped!
14354 * objects-msw.c:(colormap_t):
14356 * emacs.c (struct standard_args): Fixed const jumble.
14358 * glyphs-widget.c (update_widget): Fixed comparison notation.
14360 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14362 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14363 __declspec(noreturn) syntax.
14365 2000-02-19 Martin Buchholz <martin@xemacs.org>
14367 * eldap.c (Fldap_open):
14368 (Fldap_search_basic):
14371 Use new coding system conversion macros.
14373 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14375 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14377 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
14379 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14380 (Fldap_add, Fldap_modify, Fldap_delete): New functions
14382 * eldap.c (Qadd, Qreplace): New constant symbols
14383 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14384 interruptions by XEmacs signals
14385 Remove unnecessary calls to slow_down_interrupts and
14386 speed_up_interrupts
14387 (Fldap_search_basic): Renamed from Fldap_search_internal
14388 Added new optional parameter VERBOSE that triggers the
14389 display of progress messages
14390 Remove unnecessary calls to slow_down_interrupts and
14391 speed_up_interrupts
14392 LDAP result code analysis rewritten
14393 (Fldap_add, Fldap_modify, Fldap_delete): New functions
14394 (syms_of_eldap): Define the new symbols and functions
14397 2000-02-17 Martin Buchholz <martin@xemacs.org>
14399 * realpath.c: Determine PATH_MAX maximally portably.
14401 * insdel.c (bytecount_to_charcount): Optimize.
14402 The function used to be optimized for entirely ASCII sequences.
14403 Now it is optimized for successive characters from the same
14404 charset. This also wins big for _mostly_ ASCII sequences.
14406 * fileio.c (Ffile_truename): convert return from realpath() using
14407 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
14408 - Rewrite GCPROing slightly.
14410 * sysdep.c (sys_open): Do filename conversion, like all other
14411 sys_* functions. Fixes bug:
14412 (let ((file-name-coding-system 'iso-8859-2))
14413 (write-region x y latin2-name))
14414 ==> writes filename using internal encoding.
14416 2000-02-18 Martin Buchholz <martin@xemacs.org>
14418 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14419 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14420 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14421 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14422 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14423 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14424 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14425 (CONST_IF_NOT_DEBUG): Delete.
14426 * alloc.c (this_one_is_unmarkable): Delete.
14427 (mark_object): Don't check for this_one_is_unmarkable. Use the
14428 c_readonly flag instead.
14429 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14431 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
14433 * event-msw.c (mswindows_drain_windows_queue):
14434 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14435 away redundant repaint events.
14437 2000-02-17 Andy Piper <andy@xemacs.org>
14439 * redisplay.h: declare mark_redisplay_structs.
14441 * redisplay.c (redisplay_window):
14442 (redisplay_frame): don't check subwindows_state_changed.
14443 (mark_redisplay): mark gutters here.
14445 * glyphs.c: (instantiate_image_instantiator): always layout if we
14446 haven't done so already.
14447 (allocate_image_instance): don't mark as dirty.
14448 (update_subwindow): bind inhibit_quit.
14450 * gutter.c (mark_gutters): new function.
14452 * glyphs-x.c (x_update_widget): Always resize to get round a
14455 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14456 breaking absolutely everything.
14458 * gutter.h: declare mark_gutters.
14460 2000-02-16 Martin Buchholz <martin@xemacs.org>
14462 * XEmacs 21.2.29 is released.
14464 2000-02-15 Olivier Galibert <galibert@pobox.com>
14466 * fns.c (size_bit_vector): Fix computation of the size.
14468 2000-02-15 Martin Buchholz <martin@xemacs.org>
14470 * *.[ch]: Change CONST to const globally.
14471 find -name '*.[ch]' | \
14472 xargs global-replace \
14473 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14474 - Remove vestigial references to CONST_IS_LOSING
14476 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
14478 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14479 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14480 events instead of dispatching them directly.
14481 (mswindows_handle_paint): New function to do repainting.
14482 (mswindows_wnd_proc):
14483 (emacs_mswindows_handle_magic_event): Call above function.
14485 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
14487 * objects-msw.c (mswindows_create_font_variant): Return the new
14489 (initialize_font_instance): Get font metrics from the underlined
14490 variant of the font to cope with the case where the underlined
14491 font has a bigger descent.
14493 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
14495 * gui.c (gui_item_accelerator): Return the first underlined
14496 character in item name.
14498 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14500 * lisp.h: Added Qprinter.
14502 * general.c (syms_of_general): Initialized it.
14504 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14506 (get_frame_compdc): Made inline.
14508 * console.h (struct console_methods): Added eject_page method.
14510 * frame.h: Added FRAME_DISPLAY_P and friends.
14511 Aligned backslahes in many macros in more readable fashion.
14512 Added page_number to struct frame, and an accessor macro
14515 * defice.h: Added DEVICE_DISPLAY_P and friends.
14517 * device.c (Fdevice_printer_p): Used these.
14519 * frame.c (allocate_frame_core): Initialize page number.
14520 (Fprint_job_page_number):
14521 (Fprint_job_eject_page): Implemented.
14523 * frame-msw.c (msprinter_eject_page): Added method.
14524 (msprinter_start_page): Added.
14526 * window.c (Fwindow_truncated_p): Fixed docstring.
14527 (Fwindow_last_line_visible_height): Implemented.
14529 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
14531 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14533 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14535 * syntax.c (scan_words): Always advance at least one character.
14537 2000-02-13 Andy Piper <andy@xemacs.org>
14539 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14540 to make sure the glyph is in the cachels.
14542 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14543 global image instance flag.
14544 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14545 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14547 * glyphs.c (allocate_image_instance): set dirty bits correctly.
14548 (Fset_image_instance_property): mark layout as changed.
14549 (invalidate_glyph_geometry_maybe): mark layout as changed.
14550 (glyph_width): use new NEEDS_LAYOUT macro.
14551 (glyph_ascent): ditto.
14552 (glyph_descent): ditto.
14553 (glyph_height): ditto.
14554 (image_instance_layout): mark layout as clean after laying out.
14555 (update_subwindow): don't mark layout as clean here.
14557 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14558 should no longer be needed.
14560 * glyphs-x.c (x_update_widget): sanitize asserts.
14561 (x_finalize_image_instance): sanitize assignment to widgets.
14563 * glyphs-widget.c (widget_instantiate): don't need to clear the
14566 2000-02-13 Martin Buchholz <martin@xemacs.org>
14568 * sysdep.c (getcwd): Use standard prototype.
14569 * sysdep.h (getcwd): Use standard prototype.
14571 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14572 (sequence, start, end).
14573 Remove redundant type checking.
14574 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14575 view of `caller-protects') to avoid a crash where the real fix was
14578 2000-02-12 Martin Buchholz <martin@xemacs.org>
14580 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14582 * s/sol2.h: Remove feature macro initialization.
14584 * alloc.c (alloc_lcrecord): Add more type checking assertions.
14585 (vector_hash): New. Code from internal_hash.
14587 Fix up allocation subsystem comments.
14589 * config.h.in: Add __EXTENSIONS__ for Solaris.
14591 * systime.h (EMACS_GETTIMEOFDAY): New.
14592 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14593 Remove Solaris-specific code.
14594 Use void* for the (ignored) second arg for gettimeofday().
14596 * elhash.c (hash_table_hash): Implement it, finally.
14597 * elhash.c: Use hashcode_t.
14599 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14600 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14602 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14603 * fns.c (size_bit_vector):
14604 * alloc.c (size_vector):
14605 (make_vector_internal):
14606 (make_bit_vector_internal):
14607 (sweep_bit_vectors_1):
14608 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14610 2000-02-10 Martin Buchholz <martin@xemacs.org>
14612 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14613 Include strings.h to avoid warnings for bzero and strcasecmp.
14615 2000-02-10 Olivier Galibert <galibert@pobox.com>
14617 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14618 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14620 * fns.c (size_bit_vector): New. Declare bit vectors as a
14623 2000-02-10 Olivier Galibert <galibert@pobox.com>
14625 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14626 use a value field instead.
14627 (symbol_value_forward_forward): Use value field.
14628 (DEFVAR_SYMVAL_FWD): Use value field.
14629 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
14630 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14631 (DEFVAR_CONST_INT): Ditto.
14632 (DEFVAR_BOOL): Ditto.
14633 (DEFVAR_CONST_BOOL): Ditto.
14634 (DEFVAR_INT_MAGIC): Ditto.
14635 (DEFVAR_BOOL_MAGIC): Ditto.
14637 * symbols.c (guts_of_unbound_marker): Use value field.
14638 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14639 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14641 * lisp.h: Declare dumpopaque and noninteractive1.
14643 * alloc.c (dumpopaque): Added.
14644 (pdump_dump_opaquevec): Added.
14645 (pdump): Call pdump_dump_opaquevec to dump opaque data.
14646 (pdump_load): Reload opaque data. Sync noninteractive1 with
14649 2000-02-10 Andy Piper <andy@xemacs.org>
14651 * glyphs.c (image_instance_layout): if the size changes, mark it
14654 * redisplay-output.c (redisplay_output_layout): Update the
14656 (redisplay_output_subwindow): ditto.
14658 * glyphs.c (update_subwindow): make sure we reset flags for
14659 layouts as well as everything else.
14661 * glyphs-widget.c (layout_layout): don't need to set the instances
14664 2000-02-09 Martin Buchholz <martin@xemacs.org>
14666 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
14667 not HAVE_DLOPEN, which is a lower-level thing.
14669 * .cvsignore: Ignore gmon.out
14671 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
14673 * .cvsignore: Ignore portable dumper xemacs.dmp file
14675 2000-02-09 Andy Piper <andy@xemacs.org>
14677 * redisplay-output.c (redisplay_output_layout): be more clever
14678 about when we output based on the changed flags.
14680 * glyphs.h (struct image_instantiator_methods): add update_method.
14681 (struct Lisp_Image_Instance): add changed flags. Declare new
14682 macros for manipulating them.
14684 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14685 (image_instance_parent_glyph): find an image_instance's parent
14686 glyph or image_instance.
14687 (image_instance_layout): mark the size as changed.
14688 (set_image_instance_dirty_p): new function. mark an image
14689 instance, plus all of its parents, as dirty.
14690 (Fset_image_instance_property): use it.
14691 (Fglyph_animated_timeout_handler): use it.
14692 (update_subwindow): call update_widget and device methods for
14693 update_subwindow. Mark all changed flags as clean.
14694 (Fresize_subwindow): mark size as changed.
14696 * glyphs-x.c (x_finalize_image_instance): try and detect gc
14698 (x_update_subwindow): only resize subwindows here.
14699 (x_update_widget): new function. Update all changed properties of
14701 (x_resize_subwindow): deleted.
14702 (x_widget_set_property): deleted.
14703 (x_progress_gauge_set_property): deleted.
14704 (x_progress_gauge_update): new function. Implement recorded
14706 (x_tab_control_update): ditto.
14707 (x_tab_control_set_property): deleted.
14708 (console_type_create_glyphs_x): declare new functions.
14709 (image_instantiator_format_create_glyphs_x): ditto.
14711 * glyphs-widget.c (widget_set_property): mark text changed.
14712 (update_widget): new function. Update properties of a widget.
14713 (widget_instantiate): for layouts make sure we set their
14714 children's parent correctly.
14715 (tab_control_set_property): new function. Record changes that will
14716 take place under redisplay's control.
14717 (progress_gauge_set_property): ditto.
14718 (image_instantiator_progress_guage): declare new functions.
14719 (image_instantiator_tab_control): ditto.
14721 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14723 (mswindows_update_widget): new function. Update all properties on
14724 a widget that have changed.
14725 (mswindows_button_update): new function. Update a button's set
14727 (mswindows_tab_control_update): new function. Update the items in
14729 (mswindows_tab_control_set_property): deleted.
14730 (mswindows_progress_gauge_update): new function. Update the
14731 progress gauge's progress.
14732 (mswindows_widget_set_property): deleted. This is all done
14733 asynchronously now.
14734 (mswindows_progress_gauge_set_property): ditto.
14735 (console_type_create_glyphs_mswindows): declare new methods.
14736 (image_instantiator_format_create_glyphs_mswindows): ditto.
14738 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14739 (msprinter_set_frame_properties): ditto.
14741 * console.h (struct console_methods): Add update_widget_method.
14743 2000-02-09 Andy Piper <andy@xemacs.org>
14745 * gui-msw.c (Fmswindows_shell_execute): Make
14746 mswindows-shell-execute industrial strength.
14748 2000-02-08 Martin Buchholz <martin@xemacs.org>
14750 * lrecord.h: Make macro argument `props' match member function `plist'.
14753 * fns.c (Fremprop):
14754 * fns.c (Fobject_plist):
14757 Object property list frobbing cleanup.
14758 - Allow any lisp object (compared with `eq'), not just symbols, as
14759 keys in object plists.
14760 - Move symbol plist frobbing into symbols.c, where it belongs.
14761 - Move string plist frobbing into alloc.c, where it belongs.
14762 - Everything's an lrecord now, so no need to test for symbolp, etc.
14763 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14765 * extents.c: Reorder code to remove declarations.
14767 * frame.h (store_in_alist): Remove useless declaration.
14769 2000-02-07 Martin Buchholz <martin@xemacs.org>
14771 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14772 * config.h.in: Add HAVE_XCONVERTCASE.
14774 2000-02-07 Andy Piper <andy@xemacs.org>
14776 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14777 it breaks many things.
14779 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
14781 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14782 actually can start a common comment type.
14783 * src/syntax.h (SYNTAX_END_P): ditto for end.
14785 2000-02-07 Martin Buchholz <martin@xemacs.org>
14787 * XEmacs 21.2.28 is released.
14789 2000-02-06 Martin Buchholz <martin@xemacs.org>
14791 * event-Xt.c (x_keysym_to_character): New.
14792 (maybe_define_x_key_as_self_inserting_character): New.
14793 (x_has_keysym): New.
14794 Auto-define all keys on the keyboard as self-insert-key.
14796 2000-02-02 Martin Buchholz <martin@xemacs.org>
14798 * menubar.c (vars_of_menubar): A small code simplification.
14800 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14803 * ExternalClient.c:
14804 * EmacsShell-sub.c:
14807 Use consistent style for specifying X resources.
14809 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14810 This makes (dontusethis-set-symbol-value-handler) actually usable.
14812 * lrecord.h (lrecord_decription_type):
14813 * alloc.c (pdump_register_sub):
14816 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14817 Comply with XEmacs coding style.
14818 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14819 args, and XD_LISP_OBJECT_ARRAY with 3 args.
14821 * keymap.c (Faccessible_keymaps):
14822 Make (accessible-keymaps map "\C-h") do the Right Thing.
14823 Make (accessible-keymaps map []) do the Right Thing.
14824 Make (accessible-keymaps map "") do the Right Thing.
14825 (check_keymap_definition_loop): New function.
14826 (keymap_store_internal): Keep luser from shooting self in foot,
14827 via (define-key ctl-x-4-map "p" global-map).
14828 Remove fullness slot from struct Lisp_Keymap, since hash tables
14830 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14832 2000-01-30 Martin Buchholz <martin@xemacs.org>
14834 * redisplay.c (init_redisplay): Fix small memory leak.
14836 * elhash.c (pdump_reorganize_hash_table):
14837 Rename from reorganize_hash_table. Change prototype.
14838 Reuse the original memory for hentries. Save 100k.
14839 * alloc.c (PDUMP_READ): new macro.
14840 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14841 * alloc.c: No need to #ifndef before #undef.
14843 * print.c: Allow debug_print() to print readably by modifying
14844 debug_print_readably. Use consistent variable names.
14846 * .dbxrc: Try to get things to work even if stopped in a function
14847 without source available by explicitly specifying source files.
14848 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14850 * unexnt.c (_start): Removed bogus code which caused loading heap
14851 from differrent executable file.
14852 Removed bogus assignment to _fmode, which caused inconsistencies.
14854 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14856 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14857 Have spawnve encapsulation regard DONT_ENCAPSULATE.
14858 Do not preliminary `#define signal sigset'.
14860 * systime.h: Do not prototype environ on windows nt and cygwin,
14861 this conflicts with system header.
14863 * syssignal.h: Use correct define for WINDOWSNT
14865 * sysdep.h: Do not prototype environ on windows nt, this conflicts
14866 with system header.
14868 * sysdep.c (near start of file): Fixed commentary and rearranged
14869 ifdefs in readable order.
14870 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14873 (end_of_data): Do not compile in if using PDUMP.
14875 * symsinit.h: Prototyped vars_of_nt().
14877 * ntproc.c (windows9x_p): Added, instead of os_subtype.
14878 (find_child_console): Use it.
14879 (sys_kill): Use it.
14881 * ntheap.h: Do not extern os_subtype.
14883 * ntheap.c (cache_system_info): Do not cache unneeded:
14884 nt_major_version, nt_minor_version and os_subtype.
14885 (recreate_heap): Do not compile in when PDUMPing.
14887 * nt.c (geteuid and friends): Use the new varibale
14888 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14889 (init_user_info): Removed the above mentioned hackery.
14890 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14891 stat has been fixed in the C runtime.
14892 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14894 * file-coding.c (struct file_coding_dump): Do not define
14895 ucs_to_mule_table in the struct if not MULE.
14896 (struct struct lrecord_description fcd_description_1): Do not dump
14899 * emacs.c (main_1): Call vars_of_nt().
14900 (right before Fdump_emacs_data): Don't need lastfile if using both
14901 portabe dumper and system malloc.
14903 * alloc.c (Fmemory_limit): Conditionalized out.
14904 (pdump): Use OPEN_BINARY for the portable dump file.
14905 (pdump_load): Ditto.
14907 2000-02-02 Mike Alexander <mta@arbortext.com>
14909 * nt.c (convert_time): Set tm_isdst before calling mktime and
14910 avoid calling it at all if the compiler supports 64 bit integers.
14911 Also initialize utc_base_ft before using it.
14913 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
14915 * frame.c (change_frame_size_1): Take f->internal_border_width
14916 into consideration when calculating the width of the frame.
14918 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14920 * window.c (frame_min_height):
14921 (frame_size_valid_p):
14922 (frame_pixsize_valid_p): Added.
14923 (check_frame_size): Generalized.
14925 * window.h: Prototyped the above.
14928 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14929 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14930 Deleted Vwin32_* and Vbinary_process_* unused variables.
14932 * device-msw.c (msprinter_init_device): Do not get printer font
14933 list; Added DEVMODE functions.
14935 * frame-msw.c: Added lots of printer code.
14937 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14940 * console-msw.h: Added more msprinter device private slots.
14942 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14944 * event-msw.c (key_needs_default_processing_p): Added.
14945 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14947 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14949 * glyphs.c (image_instance_layout): Mark image instance as clean
14951 (glyph_dirty_p): Removed redundant function.
14952 (invalidate_glyph_geometry_maybe): Added.
14953 (update_glyph_cachel_data): Call it.
14955 * glyphs.h: Prototyped it.
14957 * redisplay.c (add_glyph_rune): Call it.
14958 (redisplay_window): Reset glyphs cachels when frame faces have
14959 changed, thus forcing recomputation of built-in border glyphs.
14961 2000-01-30 Martin Buchholz <martin@xemacs.org>
14963 * Makefile.in.in: Make portable dumper and purify play well together.
14964 Add imperfect, but better than nothing, support for pdump.
14965 Remove xemacs.dmp when temacs is re-generated.
14966 Don't ignore errors when dumping xemacs.
14968 * symbols.c (maybe_call_magic_handler): Remove one magic number.
14970 2000-01-28 Andy Piper <andy@xemacs.org>
14972 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14973 (setup_normal_frame): ditto.
14974 (setup_frame_without_minibuffer): ditto.
14975 (setup_minibuffer_frame): ditto.
14976 (delete_frame_internal): ditto.
14977 (Fmake_frame_invisible): ditto.
14978 (Ficonify_frame): ditto.
14980 * window.h: change Fset_window_buffer signature.
14982 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14983 (Fset_window_buffer): allow recording of buffer if the window is
14984 the selected window.
14985 (window_loop): Use new Fset_window signature.
14987 2000-01-23 Daniel Pittman <daniel@danann.net>
14989 * config.h.in: Added template for `HAVE_ATHENA_3D'
14991 2000-01-29 Andy Piper <andy@xemacs.org>
14993 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14995 * gutter.c (output_gutter): Don't output if the window isn't live.
14997 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14999 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15000 of 01/12/00: Moved SetFocus back here where it belongs.
15002 2000-01-23 Andy Piper <andy@xemacs.org>
15004 * s/cygwin32.h: declare printer things.
15006 2000-01-26 Andy Piper <andy@xemacs.org>
15008 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15011 2000-01-24 Andy Piper <andy@xemacs.org>
15013 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15014 (mswindows_button_instantiate): Make sure glyph is a pixmap.
15016 * glyphs-widget.c (widget_instantiate): Avoid shadows.
15018 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15020 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15022 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15023 (mswindows_output_display_block): Avoid local shadows.
15025 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15026 (mswindows_enqueue_mouse_button_event): ditto.
15027 (mswindows_handle_gui_wm_command): remove declaration.
15029 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15032 * console-msw.h: Avoid shadows.
15033 (mswindows_get_toolbar_button_text):
15034 (emacs_mswindows_create_stream_pair):
15035 (emacs_mswindows_delete_stream_pair):
15036 (mswindows_handle_toolbar_wm_command): declare.
15038 * device-msw.c (build_syscolor_string): Avoid shadows.
15040 2000-01-23 Andy Piper <andy@xemacs.org>
15042 * glyphs-widget.c (widget_instantiate): reverse the items for
15043 layouts so that children are in the expected order.
15045 2000-01-28 Martin Buchholz <martin@xemacs.org>
15047 * ralloc.c: safe_bcopy ==> memmove
15048 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15049 * s/msdos.h: Remove BCOPY macros.
15050 * insdel.c (gap_right): Remove BCOPY conditional code.
15051 * insdel.c (gap_left): Remove BCOPY conditional code.
15052 XEmacs demands a working ANSI C compiler - hence memmove.
15054 * regex.c (regex_compile): Remove accidental use of trigraphs.
15056 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15058 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15061 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15063 * event-msw.c (mswindows_drain_windows_queue): Added the
15065 (mswindows_need_event): Commented the call to
15066 mswindows_drain_windows_queue().
15067 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15070 * console-msw.h: Moved a few function prototypes here from
15073 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15074 parameter from unsigned short to unsigned long.
15075 (Fmswindows_shell_execute): Added return value.
15077 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15079 * sysdep.c (init_system_name):
15080 process-unix.c (unix_canonicalized_host_name):
15081 Don't call freeaddrinfo() if getaddrinfo() fails.
15083 * process-unix.c (unix_open_unix_network_stream):
15084 Moved the code to get a port # into address loop.
15086 2000-01-27 Martin Buchholz <martin@xemacs.org>
15088 * buffer.c (reinit_vars_of_buffer):
15089 The right place to initialize conversion_in_dynarr and
15090 conversion_out_dynarr.
15092 * alloc.c (pdump): Use the real open() till sys_open() is functional.
15094 * process-unix.c (unix_canonicalize_host_name): Muleize.
15095 (unix_open_network_stream): Muleize.
15097 * buffer.h: Fix up prototypes for ralloc.c functions.
15099 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15100 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15101 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15102 instead of gethostbyname()
15103 * process-unix.c: In unix_canonicalize_host_name() and
15104 unix_open_network_stream(), add code to use getaddrinfo()
15105 instead of gethostbyname().
15107 2000-01-27 Daniel Pittman <daniel@danann.net>
15109 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15110 libs when built with flat Athena.
15112 2000-01-27 Martin Buchholz <martin@xemacs.org>
15114 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15115 Use coding standards for function prototypes.
15117 2000-01-25 Martin Buchholz <martin@xemacs.org>
15119 * dialog-msw.c (push_lisp_string_as_unicode):
15120 * doc.c (unparesseuxify_doc_string):
15121 * dired.c (Fuser_name_completion_1):
15122 * dired.c (Fuser_name_all_completions):
15123 * dired.c (free_user_cache):
15124 * dired.c (user_name_completion):
15125 * console-x.c (get_display_arg_connection):
15126 * minibuf.c (clear_echo_area_internal):
15127 * minibuf.c (echo_area_append):
15128 * eldap.c (Fldap_open):
15129 * eldap.c (Fldap_search_internal):
15130 * frame-x.c (x_set_frame_text_value):
15131 * frame-x.c (x_set_frame_properties):
15132 * frame-x.c (x_create_widgets):
15133 * redisplay-tty.c (term_get_fkeys_1):
15134 * objects-x.c (x_parse_nearest_color):
15135 * objects-x.c (x_valid_color_name_p):
15136 * objects-x.c (x_initialize_font_instance):
15137 * objects-x.c (x_list_fonts):
15138 * objects-x.c (x_find_charset_font):
15139 * tooltalk.c (Fadd_tooltalk_message_arg):
15140 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15141 * tooltalk.c (Fadd_tooltalk_pattern_arg):
15142 * process-unix.c (unix_create_process):
15143 * ntproc.c (sys_spawnve):
15144 * sound.c (Fplay_sound_file):
15145 * sound.c (Fplay_sound):
15146 * buffer.c (init_initial_directory):
15147 * buffer.c (init_buffer):
15148 * editfns.c (init_editfns):
15149 * editfns.c (Ftemp_directory):
15150 * editfns.c (Fuser_full_name):
15151 * editfns.c (uncache_home_directory):
15152 * editfns.c (get_home_directory):
15153 * editfns.c (Fuser_home_directory):
15154 * editfns.c (Fformat_time_string):
15155 * editfns.c (Fcurrent_time_string):
15156 * gui-x.c (button_item_to_widget_value):
15157 * database.c (Fopen_database):
15158 * event-Xt.c (x_to_emacs_keysym):
15159 * event-Xt.c (x_event_to_emacs_event):
15160 * event-Xt.c (describe_event_window):
15161 * event-msw.c (mswindows_wnd_proc):
15162 * glyphs-eimage.c (jpeg_instantiate):
15163 * glyphs-eimage.c (gif_instantiate):
15164 * glyphs-eimage.c (png_instantiate):
15165 * glyphs-eimage.c (tiff_instantiate):
15166 * glyphs-x.c (xbm_instantiate_1):
15167 * glyphs-x.c (x_xbm_instantiate):
15168 * glyphs-x.c (x_xface_instantiate):
15169 * glyphs-x.c (autodetect_instantiate):
15170 * glyphs-x.c (cursor_font_instantiate):
15171 * glyphs-x.c (x_widget_instantiate):
15172 * glyphs-x.c (x_widget_set_property):
15173 * glyphs-x.c (x_widget_property):
15174 * glyphs-x.c (BUILD_GLYPH_INST):
15175 * print.c (write_string_to_stdio_stream):
15176 * print.c (output_string):
15177 * print.c (Falternate_debugging_output):
15178 * print.c (Fexternal_debugging_output):
15179 * glyphs-msw.c (extract_xpm_color_names):
15180 * glyphs-msw.c (mswindows_xpm_instantiate):
15181 * glyphs-msw.c (bmp_instantiate):
15182 * glyphs-msw.c (resource_name_to_resource):
15183 * glyphs-msw.c (mswindows_resource_instantiate):
15184 * glyphs-msw.c (xbm_instantiate_1):
15185 * glyphs-msw.c (mswindows_xbm_instantiate):
15186 * glyphs-msw.c (mswindows_xface_instantiate):
15187 * glyphs-msw.c (mswindows_widget_instantiate):
15188 * glyphs-msw.c (add_tree_item):
15189 * glyphs-msw.c (add_tab_item):
15190 * glyphs-msw.c (mswindows_combo_box_instantiate):
15191 * glyphs-msw.c (mswindows_widget_property):
15192 * glyphs-msw.c (mswindows_combo_box_property):
15193 * glyphs-msw.c (mswindows_widget_set_property):
15194 * console.c (stuff_buffered_input):
15195 * objects-msw.c (mswindows_initialize_color_instance):
15196 * objects-msw.c (mswindows_valid_color_name_p):
15197 * objects-msw.c (mswindows_list_fonts):
15198 * objects-msw.c (mswindows_font_instance_truename):
15199 * bytecode.c (optimize_compiled_function):
15200 * select-x.c (symbol_to_x_atom):
15201 * select-x.c (x_atom_to_symbol):
15202 * select-x.c (hack_motif_clipboard_selection):
15203 * select-x.c (selection_data_to_lisp_data):
15204 * select-x.c (lisp_data_to_selection_data):
15205 * select-x.c (Fx_get_cutbuffer_internal):
15206 * select-x.c (Fx_store_cutbuffer_internal):
15207 * buffer.h (TO_EXTERNAL_FORMAT): New function.
15208 * buffer.h (TO_INTERNAL_FORMAT): New function.
15209 * emacs.c (make_arg_list_1):
15210 * emacs.c (make_argc_argv):
15211 * emacs.c (main_1):
15212 * emacs.c (Fdump_emacs):
15213 * emacs.c (split_string_by_emchar_1):
15218 * device-x.c (x_init_device):
15219 * device-x.c (Fx_valid_keysym_name_p):
15220 * device-x.c (Fx_get_font_path):
15221 * device-x.c (Fx_set_font_path):
15222 * glyphs.c (bitmap_to_lisp_data):
15223 * glyphs.c (pixmap_to_lisp_data):
15224 * alloc.c (make_ext_string): Use coding system arguments. Update
15226 * alloc.c (build_string):
15227 * callproc.c (child_setup):
15228 * callproc.c (init_callproc):
15229 * fileio.c (lisp_strerror):
15230 * fileio.c (directory_file_name):
15231 * fileio.c (Fexpand_file_name):
15232 * fileio.c (Ffile_truename):
15233 * fileio.c (Fsysnetunam):
15234 * fileio.c (Fdo_auto_save):
15235 * sysdep.c (sys_readdir):
15236 * tests.c: New file. Allow adding C tests.
15237 Replace GET_* macros with a more comprehensible and flexible
15238 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15240 Any coding system can be used to do format conversion.
15241 Eliminate enum external_data_format.
15242 Eliminate convert_to_external_format.
15243 Eliminate convert_to_internal_format.
15244 Make sure file-name, keyboard, terminal, and ctext are always
15245 defined as coding systems or aliases. Make
15246 file-name-coding-system, terminal-coding-system, and
15247 keyboard-coding-system magical variables that are equivalent to
15248 defining the corresponding coding system aliases.
15250 * file-coding.c (Fcoding_system_canonical_name_p): New function.
15251 * file-coding.c (Fcoding_system_alias_p): New function.
15252 * file-coding.c (Fcoding_system_aliasee): New function.
15253 * file-coding.c (append_suffix_to_symbol): New function.
15254 * file-coding.c (dangling_coding_system_alias_p): New function.
15255 * file-coding.c (Ffind_coding_system):
15256 * file-coding.c (Fcopy_coding_system):
15257 * file-coding.c (encode_coding_no_conversion):
15258 * file-coding.c (syms_of_file_coding):
15259 * file-coding.c (vars_of_file_coding):
15260 Rewrite coding system alias code.
15261 Allow nested aliases, like symbolic links.
15262 Allow redefinition of coding system aliases.
15263 Prevent existence of dangling coding system aliases.
15265 * dired.c (Fuser_name_completion_1):
15266 * dired.c (Fuser_name_all_completions):
15267 A crash would happen if user did QUIT in the middle of building
15268 user_name_cache. Remove redundant code in mainline and unwind_protect.
15271 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
15273 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15274 an unsigned char *. Update all callers.
15276 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15278 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15280 2000-01-25 Martin Buchholz <martin@xemacs.org>
15282 * elhash.c (hentry_description): Use more portable definition.
15283 (resize_hash_table): Initialize new hentries using
15284 xnew_array_and_zero, thereby simplifying the code.
15286 * mule-charset.c (make_charset): Make sure entire object is
15287 initialized, to avoid Purify warnings.
15289 * alloc.c (resize_string): Fix unlikely crash with big strings.
15291 2000-01-24 Martin Buchholz <martin@xemacs.org>
15293 * realpath.c (xrealpath):
15294 Don't call getwd().
15296 2000-01-25 Martin Buchholz <martin@xemacs.org>
15298 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15300 1999-12-28 Max Matveev <max@melbourne.sgi.com>
15302 * unexelfsgi.c (unexec): Change the way we decide which segment
15303 should be extended.
15305 Assumption that .bss section should be outside the PT_LOADable
15306 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15307 it's present) is inside the 'data' segment. This would fail the
15308 test which was used to find a segment to grow and cover new
15309 heap. Instead of this assumption, I created another one - on IRIX
15310 the segment to grow should start below .bss and it's address
15311 should extent above the end of .bss. Once this segment is
15312 identified, it's grown to accommodate the new heap and new
15313 zero-length .bss section is added at the end of .data2.
15315 2000-01-25 Martin Buchholz <martin@xemacs.org>
15317 * eval.c (Feval): Wrong number of arguments should use original
15318 function, not the indirect_function version of it.
15320 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
15322 * glyphs-x.c (x_button_instantiate): Don't add image if
15323 it is not a pixmap.
15324 (x_locate_pixmap_file): Call Fexpand_file_name when file name
15327 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
15329 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15331 (DEFVAR_INT_MAGIC): Ditto.
15332 (DEFVAR_BOOL_MAGIC): Ditto.
15333 * glyphs.h: Reindent backslash.
15335 2000-01-24 Martin Buchholz <martin@xemacs.org>
15337 * glyphs-widget.c (layout_query_geometry):
15338 (layout_layout): Use correct types for gheight, gwidth.
15340 2000-01-24 Martin Buchholz <martin@xemacs.org>
15342 * EmacsManager.c (QueryGeometry): Purified.
15344 2000-01-23 Martin Buchholz <martin@xemacs.org>
15346 * alloc.c (make_float): Make sure entire object is initialized, to
15347 avoid Purify warnings.
15348 (pdump_register_sub): Remove useless assignment.
15349 (pdump): Use xmalloc, not malloc.
15350 (pdump_load): Use xmalloc, not malloc.
15352 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15359 * sysdep.c: Removed redundant #include <windows.h>
15361 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15363 * frame.c (delete_frame_internal): Do not delete device when its
15364 implementation so declares.
15365 (delete_frame_internal): Set device selected frame to nil when
15366 last frame goes away.
15368 * device-msw.c (msprinter_device_system_metrics): Implemented.
15369 (mswindows_device_system_metrics): Added 'device-dpi property.
15371 * device.c: (Fdevice_printer_p): Added.
15372 Added 'offset-workspace device metric.
15374 * console.h (device_metrics): Declared DM_offset_workspace.
15376 2000-01-23 Martin Buchholz <martin@xemacs.org>
15378 * fileio.c (Ffile_truename): Remove pointless and confusing
15379 initialization of elen.
15381 * glyphs-widget.c: Compiler warning fixes.
15383 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
15385 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15386 instead of a Lisp_Object as argument to make it consistent with
15387 the other LIVE_P macros.
15388 (CHECK_LIVE_PROCESS): New macro.
15390 * process.c: Declare Qprocess_live_p.
15391 (Fprocess_live_p): New function.
15392 (create_process): Use PROCESS_LIVE_P.
15393 (read_process_output): Ditto.
15394 (set_process_filter): Ditto.
15395 (Fdelete_process): Ditto.
15396 (kill_buffer_processes): Ditto
15397 (process_send_signal): Use CHECK_LIVE_PROCESS.
15398 (Fprocess_input_coding_system): Check whether process is still
15399 alive (fix PR#1061).
15400 (Fprocess_output_coding_system): Ditto.
15401 (Fprocess_coding_system): Ditto.
15402 (Fset_process_input_coding_system): Ditto.
15403 (Fset_process_output_coding_system): Ditto.
15405 2000-01-23 Andy Piper <andy@xemacs.org>
15407 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15410 * glyphs.c (mark_image_instance): take into account changed
15411 image_instance format.
15412 (image_instance_equal): ditto.
15413 (image_instance_hash): ditto.
15415 * glyphs-widget.c (widget_instantiate): Incorporate layout
15416 instantiation here. Delay layout of the layout until later.
15417 (layout_instantiate): deleted.
15418 (layout_query_geometry): new function. get the geometry of a
15420 (layout_layout): layout a layout dynamically.
15421 (image_instantiator_widget): New function - splitting up
15422 image_instantiator_format_create_glyphs_widget for netwinder
15424 (image_instantiator_buttons):
15425 (image_instantiator_edit_fields):
15426 (image_instantiator_combo_box):
15427 (image_instantiator_scrollbar):
15428 (image_instantiator_progress_guage):
15429 (image_instantiator_tree_view):
15430 (image_instantiator_tab_control):
15431 (image_instantiator_labels):
15432 (image_instantiator_layout): ditto.
15433 (image_instantiator_format_create_glyphs_widget): Call preceding
15436 2000-01-22 Martin Buchholz <martin@xemacs.org>
15438 * process.c (Fset_process_coding_system):
15439 * device-x.c (Fx_keysym_hash_table):
15442 * lstream.c (Lstream_write): Return documented value, not 0.
15444 * fileio.c (directory_file_name):
15445 (Fsubstitute_in_file_name):
15446 (Fsubstitute_insert_file_contents_internal):
15447 (Fwrite_region_internal):
15452 Remove vestigial APOLLO-conditional code.
15454 2000-01-21 Martin Buchholz <martin@xemacs.org>
15456 * getpagesize.h: Add guard macros.
15457 * libsst.h: Add guard macros.
15458 * libst.h: Add guard macros.
15459 * line-number.h: Add guard macros.
15460 * ndir.h: Add guard macros.
15461 * sysfloat.h: Add guard macros.
15462 * sysfile.h: Add guard macros.
15463 * sysproc.h: Add guard macros.
15464 * syswait.h: Add guard macros.
15465 * xintrinsic.h: Add guard macros.
15466 * xintrinsicp.h: Add guard macros.
15467 * xmmanager.h: Add guard macros.
15468 * xmmanagerp.h: Add guard macros.
15469 * xmprimitive.h: Add guard macros.
15470 * xmu.h: Add guard macros.
15471 * gpmevent.h: Add copyright statement. Add guard macros.
15472 * miscplay.h: Add guard macros.
15473 * *.h: Use consistent C-standards-approved guard macro names.
15475 * opaque.c (make_opaque): Switch parameter order.
15476 * opaque.h (make_opaque): Switch parameter order.
15477 Update all callers.
15478 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15480 * config.h.in (type_checking_assert): Added.
15481 (bufpos_checking_assert): Added.
15483 2000-01-21 Martin Buchholz <martin@xemacs.org>
15485 * alloc.c: Harmless pdump changes.
15487 - spell alignment correctly.
15488 * sysdep.c: Use countof()
15490 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15492 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15493 initially_selected_for_input() console method, default to 0.
15494 (semi_canonicalize_console_connection): Try to delegate to
15495 canonicalize_console_connection if no such console method.
15496 (canonicalize_console_connection): Vice versa.
15497 (print_console): Do not print nil connection.
15499 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15500 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15501 (XDEVIMPF_FRAMELESS_OK): Added.
15502 (CONSOLE_INHERITS_METHOD): Added.
15504 * console-msw.c (mswindows_canonicalize_console_connection):
15506 (mswindows_canonicalize_device_connection): Added.
15508 * console-msw.h (struct msprinter_device): Added this struct and
15510 (mswindows_device): Made fontlist a lisp object.
15512 * device.c (semi_canonicalize_device_connection): Try to delegate
15513 to canonicalize_device_connection if no such console method.
15514 (canonicalize_device_connection): Vice versa.
15515 (print_device): Do not print nil connection.
15517 * device-msw.c (mswindows_init_device): Call InitCommonControls
15519 (mswindows_delete_device): Removed fontlist deallocation.
15520 (mswindows_mark_device): Added.
15522 * events.c (event_equal): Added abort() at unreached code.
15523 (event_hash): Ditto.
15525 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15526 fallback tags of Windows devices.
15528 * general.c (syms_of_general): Initialized Qmsprinter.
15530 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15531 of fallback tags of Windows devices.
15533 * lisp.h: Declared Qmsprinter.
15535 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15537 (mswindows_list_fonts): Ditto.
15538 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15539 that it can be used by both mswindows and msprinter devices.
15540 (initialize_font_instance): Added.
15541 (mswindows_initialize_font_instance): Use it.
15542 (msprinter_initialize_font_instance): Added.
15544 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15545 and implementation flags check.
15546 (redisplay_without_hooks): Changed the call to the above.
15547 (Fredraw_device): Ditto.
15548 (Fredisplay_device): Ditto.
15550 * redisplay-msw.c (get_frame_dc): Implemented.
15551 (get_frame_compdc): Implemented.
15552 (many functions): Use the two functions above to get device
15553 contexts, ether for a window or a printer.
15555 2000-01-21 Olivier Galibert <galibert@pobox.com>
15557 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15558 initialization here.
15559 (init_symbols_once_early): Call it.
15560 * emacs.c (main_1): Call it.
15561 * symsinit.h: Declare it.
15563 2000-01-19 Olivier Galibert <galibert@pobox.com>
15565 * alloc.c: Use a lrecord_header * in the backtrace instead of a
15567 (pdump_backtrace): Ditto.
15568 (pdump_register_object): Ditto. Cleanup use of the pointers.
15569 (pdump_get_entry): Abort if trying to register a null pointer.
15570 (pdump_dump_data): Cleanup types when relocating.
15571 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15572 (pdump_dump_rtables): Remove bad casts.
15573 (pdump_load): Cleanup relocation w.r.t union type. Use a
15574 Lisp_Object instead of a EMACS_INT for the hashtable
15577 2000-01-20 Martin Buchholz <martin@xemacs.org>
15579 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15581 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15583 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15585 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15587 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15589 * faces.h (FACE_STRIKETHRU_P): Added.
15591 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15594 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15595 (mswindows_set_dc_font): New function, aware of font variants,
15596 separated from mswindows_update_dc.
15598 * objects-msw.h (struct mswindows_font_instance_data): Added
15601 * objects-msw.c (mswindows_finalize_font_instance): Delete all
15602 cached fonts and the data structure.
15603 (mswindows_initialize_font_instance): Added creation of font data
15605 (mswindows_print_font_instance): Print at least something.
15606 (mswindows_create_font_variant): Implemented.
15607 (mswindows_get_hfont): Implemented.
15609 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
15611 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15612 prototyping problem with msvc.
15614 * emacs.c (main_1): added syms_of_gui_mswindows() call
15616 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15617 syms_of_gui_mswindows() function
15619 * symsinit.h: added the prototype for syms_of_gui_mswindows()
15621 2000-01-18 Martin Buchholz <martin@xemacs.org>
15623 * XEmacs 21.2.27 is released.
15625 2000-01-18 Martin Buchholz <martin@xemacs.org>
15627 * glyphs-eimage.c (struct tiff_error_struct):
15629 (tiff_warning_func):
15630 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15635 * unexec.c: Remove vestigial Lucid C code.
15639 * libsst.c: Ansify.
15640 Remove declarations of errno and strerror().
15642 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
15644 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15646 2000-01-16 Martin Buchholz <martin@xemacs.org>
15648 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15651 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15656 Change enum eol_type to eol_type_t.
15658 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15660 * gui.c (get_gui_callback): Check cons before accessing car.
15662 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15664 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15665 (XSETSPECIFIER_TYPE): Ditto.
15667 2000-01-17 Didier Verna <didier@xemacs.org>
15669 * redisplay.c (generate_fstring_runes): compute string size in
15670 characters, not bytes.
15672 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
15674 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15676 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
15678 * print.c (print_error_message): Call print_prepare().
15680 2000-01-14 Martin Buchholz <martin@xemacs.org>
15682 * .dbxrc: Renamed from dbxrc.
15684 * events.c (event_to_character):
15685 Use `assert (foo)' instead of `if (!foo) abort()'
15687 * .gdbinit (xtype): Add documentation.
15688 * .gdbinit (check-temacs): New function.
15689 * .gdbinit (check-xemacs): New function.
15690 * dbxrc (check-xemacs): New function.
15691 * dbxrc (check-xemacs): New function.
15693 2000-01-14 Andy Piper <andy@xemacs.org>
15695 * glyphs-widget.c (widget_query_geometry): Make sure that we
15696 calculate default dimensions correctly.
15698 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15700 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15702 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15703 pdump_wire'd variable.
15705 * emacs.c: (main_1): Conditionalized calls to
15706 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15708 2000-01-13 Martin Buchholz <martin@xemacs.org>
15710 * window.c (Fset_window_configuration):
15711 * sysdep.c (_start):
15712 * input-method-motif.c (res):
15713 * event-Xt.c (Xt_process_to_emacs_event):
15714 Simple compiler warning fixes.
15716 * bytecode.c (funcall_compiled_function): Use the original
15717 function symbol on the backtrace list in preference to the
15718 compiled_function object in error messages.
15720 2000-01-13 Andy Piper <andy@xemacs.org>
15722 * glyphs-x.c (update_widget_face): Make sure we update the widget
15723 background as well as foreground.
15725 2000-01-13 Andy Piper <andy@xemacs.org>
15727 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15728 fields to subwindow.
15729 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15730 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15731 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15732 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15734 * glyphs-widget.c (check_valid_tab_orientation): new function.
15735 (initialize_widget_image_instance): zero orientation and
15737 (widget_instantiate): pick up orientation.
15738 (tab_control_query_geometry): return appropriate values for
15741 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15742 appropriate creation flags for left, right and bottom tabs.
15744 * s/cygwin32.h: add tab definitions.
15746 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15748 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15749 frame upon hiding a subwindow.
15750 (mswindows_button_instantiate): Changed the push button style to
15752 (mswindows_button_instantiate): Removed button BS_NOTIFY
15754 (mswindows_button_instantiate): Removed redundant check for
15755 a disabled gui item.
15756 (mswindows_button_instantiate): Made use of WS_TABSTOP
15757 consistent: "operable" controls (edit, button, tree, scroll) have
15758 this style, "display-only" ones (static, progress gauge) do
15759 not. This style is currently ignored by XEmacs though. Also,
15760 removed the WS_EX_CONTROLPARENT style - it is not for children,
15761 it is for their parents!
15762 (mswindows_edit_field_instantiate): Ditto.
15763 (mswindows_progress_gauge_instantiate): Ditto.
15764 (mswindows_tree_view_instantiate): Ditto.
15765 (mswindows_tab_control_instantiate): Ditto.
15766 (mswindows_scrollbar_instantiate): Ditto.
15767 (mswindows_combo_box_instantiate): Ditto.
15768 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15769 style to the "clip" window.
15770 (mswindows_button_instantiate): Removed compilation warning by
15771 equally typing terms of the ?: operator.
15773 2000-01-12 Didier Verna <didier@xemacs.org>
15775 * redisplay.c (generate_fstring_runes): new parameter holding the
15776 last modeline-format extent.
15777 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15778 extent, fill the glyph block with it.
15779 (generate_fstring_runes): handle these parameters.
15780 (generate_formatted_string_db): ditto.
15782 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15783 glyphs'extents in the modeline.
15785 1999-01-11 Mike Woolley <mike@bulsara.com>
15787 * ntheap.c: Reduced the reserved heap space from 1Gb down to
15788 256Mb, as a workaround for the non-starting problem many people
15791 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15793 * console-tty.c (Fset_console_tty_output_coding_system):
15794 Force redrawing tty frame.
15796 2000-01-10 Didier Verna <didier@xemacs.org>
15798 * redisplay.c (generate_fstring_runes): fix size computation bug.
15800 2000-01-09 William M. Perry <wmperry@aventail.com>
15802 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15804 2000-01-09 Andy Piper <andy@xemacs.org>
15806 * glyphs-msw.c: index -> i to avoid shadows.
15807 (xbm_create_bitmap_from_data): make static.
15808 (check_valid_string_or_int): deleted.
15809 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15811 * glyphs-x.c (x_update_subwindow): remove unused args.
15813 * glyphs.c (glyph_image_instance): return the thing. Don't set the
15814 back pointer - this is done in allocate_image_instance.
15815 (query_string_font): return Qnil to make the compiler happy.
15816 (unmap_subwindow): set to ~0 to make the compiler happy.
15817 (glyph_query_geometry): comment out until used.
15818 (glyph_layout): ditto.
15820 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
15822 * insdel.c (signal_after_change): Remove extraneous unbind_to().