1 2003-03-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
4 for &MCS-XXXXXXXX; values.
6 2003-03-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
8 * mule.c (Vxemacs_chise_version): Renamed from
10 (vars_of_mule): Add new variable `xemacs-chise-version'; define
11 `utf-2000-version' as an alias for `xemacs-chise-version'.
13 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
15 * mule-charset.c: Include <chise.h> when `CHISE' is defined.
16 (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
19 * config.h.in (CHISE): New macro.
21 2003-03-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
23 * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
25 (Qmap_ucs): New variable.
26 (syms_of_mule_charset): Add new symbol `=ucs'.
27 (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
29 * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
30 (simplify_char_spec): Likewise.
32 * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
34 * char-ucs.h (Qmap_ucs): New extern variable.
36 2003-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
38 * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
39 (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
40 don't define it when UTF2000 is not defined.
41 (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
42 `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
43 when UTF2000 is not defined.
44 (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
45 rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
47 2003-03-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
49 * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
51 * mule-charset.c (Vcharset_ucs_gb): Deleted.
53 (syms_of_mule_charset): Delete `ucs-gb'.
54 (complex_vars_of_mule_charset): Likewise.
56 2003-03-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
58 * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
60 * mule-charset.c (Vcharset_ucs_cns): Deleted.
62 (syms_of_mule_charset): Delete `ucs-cns'.
63 (complex_vars_of_mule_charset): Likewise.
65 2003-03-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
67 * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
69 * mule-charset.c (Vcharset_ucs_jis): Deleted.
71 (syms_of_mule_charset): Delete `ucs-jis'.
72 (complex_vars_of_mule_charset): Likewise.
74 2003-03-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
76 * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
78 * mule-charset.c (Vcharset_ucs_ks): Deleted.
80 (syms_of_mule_charset): Delete `ucs-ks'.
81 (complex_vars_of_mule_charset): Likewise.
83 2003-03-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
85 * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
86 (Qideograph_daikanwa_2): Deleted.
87 (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
88 (complex_vars_of_mule_charset): Likewise.
90 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
91 (LEADING_BYTE_DAIKANWA_1): Deleted.
92 (LEADING_BYTE_DAIKANWA_2): Deleted.
93 (MIN_CHAR_DAIKANWA): Deleted.
94 (MAX_CHAR_DAIKANWA): Deleted.
96 2003-02-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
98 * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
99 (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
100 ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
102 * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
103 (Vcharset_ideograph_daikanwa): Deleted.
104 (Qideograph_hanziku_{1..12}): Deleted.
105 (Qideograph_daikanwa): Deleted.
106 (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
107 Vcharset_ideograph_daikanwa.
108 (syms_of_mule_charset): Delete `ideograph-daikanwa' and
109 `ideograph-hanziku-{1..12}'.
110 (complex_vars_of_mule_charset): Likewise.
112 2003-02-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
114 * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
116 * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
117 (Qideograph_gt_pj_{1..11}): Deleted.
118 (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
119 (complex_vars_of_mule_charset): Likewise.
121 2003-02-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
123 * mule-charset.c (Vcharset_ucs_big5): Deleted.
124 (Vcharset_ideograph_gt): Deleted.
125 (Qucs_big5): Deleted.
126 (Qideograph_gt): Deleted.
127 (syms_of_mule_charset): Delete symbol `ucs-big5' and
129 (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
132 * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
133 (LEADING_BYTE_GT): Deleted.
134 (MIN_CHAR_GT): Deleted.
135 (MAX_CHAR_GT): Deleted.
137 2003-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
139 * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
141 2003-01-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
143 * chartab.c (save_uint8_byte_table): Add new argument `filter'.
144 (save_uint16_byte_table): Likewise.
145 (save_byte_table): Likewise; convert values by it.
146 (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
147 for `ideographic-structure'.
148 (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
149 as the filter for `ideographic-structure'.
151 2003-01-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
153 * chartab.c (put_char_composition): New function.
154 (Fput_char_attribute): Use `put_char_composition'; use
155 `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
157 * fns.c (simplify_char_spec): New function.
158 (char_ref_simplify_spec): New function.
159 (Fchar_refs_simplify_char_specs): New function.
160 (syms_of_fns): Add new builtin function
161 `char-refs-simplify-char-specs'.
163 2003-01-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
165 * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
166 (Qideograph_cbeta): Deleted.
167 (syms_of_mule_charset): Don't define `ideograph-cbeta'.
168 (complex_vars_of_mule_charset): Likewise.
170 * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
171 (MIN_CHAR_CBETA): Comment out.
172 (MAX_CHAR_CBETA): Likewise.
174 2002-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
176 * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
177 `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
178 CHISE client feature.
180 2002-12-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
182 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
184 2002-12-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
186 * mule-charset.c (charset_lookup_description_1): Use
187 `NUM_LEADING_BYTES' in UTF-2000.
189 2002-12-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
191 * char-ucs.h (GC_CHARSETP): Deleted.
193 2002-12-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
195 * char-ucs.h (MAX_CHAR_GT): Updated.
197 2002-12-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
199 * text-coding.c: Sync with XEmacs 21.4.10.
201 2002-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
203 * mule-charset.c (Vcharset_china3_jef): Deleted.
204 (Qchina3_jef): Deleted.
205 (syms_of_mule_charset): Don't define `china3-jef'.
206 (complex_vars_of_mule_charset): Likewise.
208 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
209 (MIN_CHAR_CHINA3_JEF): Comment out.
210 (MAX_CHAR_CHINA3_JEF): Comment out.
212 2002-11-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
214 * mule-charset.c (Vcharset_ucs_gb): New variable.
215 (Qucs_gb): New variable.
216 (syms_of_mule_charset): Add new symbol `ucs-gb'.
217 (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
219 * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
221 2002-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
223 * mule-charset.c (charset_code_point): if a coded-charset has a
224 final-byte, don't inherit the builtin range of the mother CCS.
226 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
228 * mule-charset.c (charset_code_point): Fix problem about
231 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
233 * mule-charset.c (decode_builtin_char): Reorganized.
235 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
237 * text-coding.c (char_encode_as_entity_reference): Modify for
238 `charset_code_point'.
239 (char_encode_shift_jis): Likewise.
240 (char_encode_big5): Likewise.
241 (char_encode_utf8): Likewise.
242 (char_encode_iso2022): Likewise.
244 * mule-charset.c (charset_code_point): Add new argument
246 (Fencode_char): Add new optional argument `defined_only'.
248 * chartab.c (put_char_table): Modify for `charset_code_point'.
250 * char-ucs.h (charset_code_point): Add new argument
252 (encode_char_1): Modify for `charset_code_point'.
254 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
256 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
257 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
259 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
261 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
262 (Qjis_x0208): Likewise.
263 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
264 XCHARSET_FINAL(charset).
265 (charset_code_point): Modify condition for final-byte based
267 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
268 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
269 in UTF-2000; specify `=jis-x0208' as the mother of
270 `japanese-jisx0208-1978', `japanese-jisx0208' and
271 `japanese-jisx0208-1990' in UTF-2000.
273 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
275 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
277 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
279 * text-coding.c (decode_coding_utf16): Support UTF-16.
280 (char_encode_utf16): Fixed.
282 2002-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
284 * text-coding.c (Qutf16): New variable in MULE.
285 (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
286 (Fcoding_system_type): Add `utf-16' in MULE.
287 (struct detection_state): Add a structure for utf16 in MULE.
288 (detect_coding_type): Setup st->utf16.mask in MULE.
289 (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
291 (reset_encoding_stream): Use `char_encode_utf16' and
292 `char_finish_utf16' for `CODESYS_UTF16' in MULE.
293 (detect_coding_utf16): New function [incomplete].
294 (decode_coding_utf16): New function [support only UCS-2].
295 (char_encode_utf16): New function.
296 (char_finish_utf16): New function.
297 (syms_of_file_coding): Add new symbol `utf-16'; setup
298 `coding_category_symbol[CODING_CATEGORY_UTF16]'.
300 * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
302 (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
303 (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
305 2002-10-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
307 * chartab.c (put_char_table): When a charset is specified as a
308 range in UTF-2000, don't support builtin characters.
310 2002-09-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
312 * mule-charset.c (decode_defined_char): Don't refer external
313 database if Qunbound or Qnil are found.
314 (Fsave_charset_mapping_table): Don't define it if
315 HAVE_CHISE_CLIENT is not defined.
316 (Freset_charset_mapping_table): New function.
317 (load_char_decoding_entry_maybe): Store Qnil if a character is not
318 found in external database.
319 (syms_of_mule_charset): Don't define `save-charset-mapping-table'
320 if HAVE_CHISE_CLIENT is not defined; add new builtin function
321 `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
323 2002-09-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
325 * text-coding.c (decode_coding_utf8): Check CCS is specified or
328 2002-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
330 * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
331 Q_lowercase, Q_uppercase in UTF-2000.
333 * chartab.c (get_char_table): Add special code for the standard
334 case table to use character attribute `->downcase' and
335 `->uppercase' for case operations in UTF-2000.
337 * casetab.c (Qflippedcase): New variable in UTF-2000.
338 (Q_lowercase): Likewise.
339 (Q_uppercase): Likewise.
340 (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
341 and `->uppercase' in UTF-2000.
342 (complex_vars_of_casetab): Assign attribute name `downcase' to
343 downcase and CANON table of Vstandard_case_table in UTF-2000;
344 assign attribute name `flippedcase' to upcase and EQV table of
345 Vstandard_case_table in UTF-2000.
347 2002-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
349 * text-coding.c (decode_add_er_char): Support isolated-chars.
350 (char_encode_as_entity_reference): Likewise.
352 2002-08-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
354 * emacs.c (Vutf_2000_lisp_directory): New variable.
355 (Vconfigure_utf_2000_lisp_directory): Likewise.
356 (complex_vars_of_emacs): Add new variable
357 `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
359 2002-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
361 * char-ucs.h (DECODE_CHAR): Delete special code for
362 `chinese-big5-1' and `chinese-big5-2'.
364 * mule-charset.c (Qbig5_1): New variable in UTF-2000.
366 (decode_defined_char): Support CONVERSION_BIG5_1 and
368 (decode_builtin_char): Likewise.
369 (charset_code_point): Likewise.
370 (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
371 'conversion in UTF-2000.
372 (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
373 (complex_vars_of_mule_charset): Define `chinese-big5-1' and
374 `chinese-big5-2' as children of `chinese-big5'.
376 * char-ucs.h (CONVERSION_BIG5_1): New macro.
377 (CONVERSION_BIG5_2): New macro.
379 2002-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
381 * text-coding.c (char_encode_big5): Support entity-reference.
383 2002-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
385 * text-coding.c (char_encode_as_entity_reference): New function.
386 (char_encode_utf8): Use `char_encode_as_entity_reference'.
388 2002-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
390 * text-coding.c (decode_coding_big5): Support entity-reference
393 2002-08-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
395 * text-coding.c (allocate_coding_system): Initialize initial
396 charsets for CODESYS_UTF8.
397 (Fmake_coding_system): Accept charset-g0, charset-g1 and
398 charset-g2 for CODESYS_UTF8.
399 (decode_coding_utf8): Use charset-g0.
400 (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
401 to force variants to map to UCS.
403 2002-07-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
405 * text-coding.c (Qutf_8_mcs): New variable.
406 (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
407 (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
408 instead of `utf-8' in UTF-2000.
410 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
412 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
413 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
414 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
415 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
416 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
417 CONVERSION_96x96x96x96 are introduced.
418 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
419 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
420 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
422 * char-ucs.h (CONVERSION_94): New macro.
423 (CONVERSION_96): New macro.
424 (CONVERSION_94x94): New macro.
425 (CONVERSION_96x96): New macro.
426 (CONVERSION_94x94x94): New macro.
427 (CONVERSION_96x96x96): New macro.
428 (CONVERSION_94x94x94x60): New macro.
429 (CONVERSION_94x94x94x94): New macro.
430 (CONVERSION_96x96x96x96): New macro.
432 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
434 * chartab.c (Vcharacter_variant_table): Deleted.
435 (Fchar_variants): Use character-attribute `->ucs-variants' instead
436 of `Vcharacter_variant_table'.
437 (Fput_char_attribute): Likewise.
438 (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
439 (complex_vars_of_chartab): Likewise.
441 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
443 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
445 * fns.c (Qideographic_structure): New variable.
446 (Qkeyword_char): New variable.
447 (ids_format_unit): New function.
448 (Fideographic_structure_to_ids): New function.
449 (syms_of_fns): Add new symbols `ideographic-structure' and
450 `:char'; add new builtin function `ideographic-structure-to-ids'.
452 * data.c (Fchar_ref_p): New function.
453 (syms_of_data): Add new builtin function `char-ref-p'.
455 * chartab.h: Add an EXFUN for `Ffind_char'.
457 2002-07-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
459 * text-coding.c (Vcharacter_composition_table): Deleted.
460 (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
463 * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
465 (Vcharacter_composition_table): Deleted.
466 (Fget_composite_char): Use the implementation for external-DB
467 support in every UTF-2000.
468 (Fput_char_attribute): Likewise.
469 (char_attribute_system_db_file): Don't define if external-DB
470 feature is not available.
471 (Fsave_char_attribute_table): Likewise.
472 (Fmount_char_attribute_table): Likewise.
473 (Fclose_char_attribute_table): Likewise.
474 (Freset_char_attribute_table): Likewise.
475 (Fload_char_attribute_table): Likewise.
476 (syms_of_chartab): Don't define `save-char-attribute-table',
477 `mount-char-attribute-table', `reset-char-attribute-table',
478 `close-char-attribute-table' and `load-char-attribute-table' if
479 external-DB feature is not available.
480 (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
482 2002-07-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
484 * text-coding.c (Qcomposition): Add extern if external-DB feature
486 (Vcharacter_composition_table): Don't add extern if external-DB
487 feature is supported.
488 (COMPOSE_ADD_CHAR): Modify for new data-representation of
489 character composition rule if external-DB feature is supported.
491 * chartab.c (Vcharacter_composition_table): Don't define if
492 external-DB feature is supported.
493 (Qcomposition): New variable.
494 (Fget_composite_char): New implementation for external-DB support.
495 (Fput_char_attribute): Use `composition' property of each
496 character instead of `Vcharacter_composition_table' to store
497 character-composition rules if external-DB feature is supported.
498 (syms_of_chartab): Add new symbol `composition'.
499 (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
500 external-DB feature is supported.
502 2002-07-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
504 * chartab.c (Vchar_db_stingy_mode): New variable.
505 (load_char_attribute_maybe): Close database if
506 Vchar_db_stingy_mode is not NIL.
507 (Fload_char_attribute_table_map_function): Use
508 `get_char_id_table_0' instead of `get_char_id_table'.
509 (vars_of_chartab): Add new variable `char-db-stingy-mode'.
511 * chartab.h (get_char_id_table_0): New inline function.
512 (get_char_id_table): Use `get_char_id_table_0'.
514 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
516 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
517 and `COMPOSE_ADD_CHAR'.
518 (decode_coding_iso2022): Use `decode_flush_er_chars'.
520 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
522 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
523 instead of `DECODE_ADD_UCS_CHAR'.
524 (COMPOSE_ADD_CHAR): Likewise.
526 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
528 * text-coding.c (decode_flush_er_chars): New inline function.
529 (decode_add_er_char): New function.
530 (decode_coding_utf8): Use `decode_flush_er_chars' and
531 `decode_add_er_char'.
533 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
535 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
536 done before `decode_output_utf8_partial_char'.
538 * mule-charset.c (complex_vars_of_mule_charset): Specify
539 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
540 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
542 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
544 * mule-charset.c (decode_defined_char): New function; search
546 (decode_builtin_char): Don't search mother if
547 XCHARSET_MAX_CODE(charset) == 0.
548 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
549 == 0 even if code >= XCHARSET_MAX_CODE(charset).
550 (Fdecode_char): Use `decode_defined_char' instead of
551 `DECODE_DEFINED_CHAR'.
552 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
553 mother of `Vcharset_ucs_jis'.
555 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
556 instead of `DECODE_DEFINED_CHAR'.
558 * char-ucs.h (decode_defined_char): Renamed from
559 `DECODE_DEFINED_CHAR'; changed to normal function.
560 (DECODE_CHAR): Use `decode_defined_char' instead of
561 `DECODE_DEFINED_CHAR'.
563 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
565 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
567 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
569 * text-coding.c (Vcoded_charset_entity_reference_alist): New
571 (Quse_entity_reference): New variable.
575 (coding_system_description): Add description for
577 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
578 (allocate_coding_system): Initialize `ccs_priority_list' in
580 (Fmake_coding_system): Add description about
581 'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
583 (Fcoding_system_property): Accept `disable-composition' and
584 `use-entity-reference' in UTF-2000.
585 (struct decoding_stream): Add new member `er_counter' and `er_buf'
587 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
588 (decode_coding_utf8): Decode entity-reference if
589 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
590 (char_encode_utf8): Encode non-Unicode characters as
591 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
593 (syms_of_file_coding): Add new symbols `use-entity-reference',
595 (vars_of_file_coding): Add new variable
596 `coded-charset-entity-reference-alist'.
597 (complex_vars_of_file_coding): Declare `disable-composition' and
598 `use-entity-reference' to be coding-system-properties in UTF-2000.
600 * file-coding.h (struct Lisp_Coding_System): Add new member
601 `use_entity_reference' and `ccs_priority_list'.
602 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
603 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
604 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
606 2002-07-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
608 * chartab.c (save_uint8_byte_table): Don't clear the table.
609 (save_uint16_byte_table): Likewise.
610 (save_byte_table): Likewise.
611 (Fmount_char_attribute_table): New function.
612 (syms_of_chartab): Add new builtin function
613 `mount-char-attribute-table'.
615 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
617 * mule-charset.c (Fsave_charset_mapping_table): Open database as
619 (load_char_decoding_entry_maybe): Open database as read-only mode.
621 * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
622 open database as "w+" mode.
623 (load_char_attribute_maybe): Open database as read-only mode.
624 (Fload_char_attribute_table): Likewise.
626 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
628 * chartab.c (mark_char_table): Don't refer `ct->db_file'.
629 (char_table_description): Delete member `db_file'.
630 (Fmake_char_table): Don't refer `ct->db_file'.
631 (Fcopy_char_table): Likewise.
632 (Fsave_char_attribute_table): Likewise.
633 (Fclose_char_attribute_table): Likewise.
634 (Freset_char_attribute_table): Likewise.
635 (load_char_attribute_maybe): Likewise.
636 (Fload_char_attribute_table): Likewise.
638 * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
640 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
642 * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
643 (Fsave_char_attribute_table): Don't check `ct->db_file' if
645 (load_char_attribute_maybe): Likewise.
646 (Fload_char_attribute_table): Likewise.
648 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
650 * chartab.c (Fclose_char_attribute_table): Set Qnil on
651 `ct->db_file' unconditionally.
653 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
655 * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
657 (char_table_description): Add description for `db_file' and `db'
659 (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
661 (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
662 (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
663 (Fclose_char_attribute_table): New function.
664 (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
665 (load_char_attribute_maybe): Change interface; use `cit->db_file'
667 (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
668 (syms_of_chartab): Add new builtin function
669 `Fclose_char_attribute_table'.
671 2002-06-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
673 * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
675 (load_char_attribute_maybe): Change interface.
676 (get_char_id_table): Modify for `load_char_attribute_maybe'.
678 2002-06-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
680 * database.h: Add an EXFUN for `Fdatabase_live_p'.
682 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
684 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
685 instead of `DECODE_CHAR' for mother; don't use special code for
686 chinese-big5 to use code space of chinese-big5-1 and
688 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
689 `MAX_CHAR_BIG5_CDP' for chinese-big5.
691 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
692 (MAX_CHAR_BIG5_CDP): Revival.
694 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
696 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
697 the XLFD registry-encoding name of `chinese-big5'.
699 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
701 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
702 (Qchinese_big5_cdp): Deleted.
703 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
704 (complex_vars_of_mule_charset): Delete coded-charset
707 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
708 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
709 `CHARSET_ID_OFFSET - n' for private CCS.
710 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
711 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
712 of `MIN_LEADING_BYTE'.
713 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
714 `(CHARSET_ID_OFFSET - 97)'.
715 (MIN_CHAR_BIG5_CDP): Deleted.
716 (MAX_CHAR_BIG5_CDP): Deleted.
718 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
720 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
722 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
724 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
725 (vars_of_mule): Add new variable `utf-2000-version' [moved from
728 * chartab.c (Vutf_2000_version): Moved to mule.c.
729 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
731 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
733 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
734 when HAVE_CHISE_CLIENT is not defined.
736 * mule.c (vars_of_mule): Provide feature `chise' when
737 HAVE_CHISE_CLIENT is defined.
739 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
741 * config.h.in (UTF2000): Add comment.
742 (HAVE_CHISE_CLIENT): New macro.
744 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
746 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
748 (Fput_char_attribute): Likewise.
749 (char_attribute_system_db_file): Encode file-name of attribute.
750 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
753 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
755 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
756 (Fsave_charset_mapping_table): Use
757 `char_attribute_system_db_file'.
758 (load_char_decoding_entry_maybe): Likewise.
760 * chartab.h (Qsystem_char_id): New external variable.
761 (char_attribute_system_db_file): New prototype.
763 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
764 (char_attribute_system_db_file): New function.
765 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
766 (Freset_char_attribute_table): Likewise.
767 (load_char_attribute_maybe): Likewise.
768 (Fload_char_attribute_table): Likewise.
769 (syms_of_chartab): Add new symbol `system-char-id'.
771 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
773 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
774 `XCHARSET_GRAPHIC(ccs)'.
776 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
778 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
780 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
782 * chartab.c (Q_ucs_variants): New variable.
783 (syms_of_chartab): Add new symbol `->ucs-variants'.
784 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
785 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
786 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
788 * mule-charset.c (load_char_decoding_entry_maybe): New function.
790 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
791 `HAVE_DATABASE' is defined.
792 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
793 `HAVE_DATABASE' is defined.
795 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
797 * chartab.c (Fsave_char_attribute_table): Don't clear internal
799 (Freset_char_attribute_table): New function.
800 (syms_of_chartab): Add new builtin function
801 `reset-char-attribute-table'.
803 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
805 * chartab.c (load_char_attribute_maybe): Don't make directories.
807 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
809 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
811 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
814 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
816 * mule-charset.c (Fsave_charset_mapping_table): Use
817 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
819 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
820 instead of `XCHARSET_CHARS'.
822 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
824 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
825 (XCHARSET_BYTE_SIZE): Likewise.
827 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
829 (XCHARSET_BYTE_SIZE): Likewise.
831 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
833 * chartab.c (Fput_char_attribute): Use exec-directory instead of
834 data-directory to store database.
835 (Fsave_char_attribute_table): Likewise.
836 (load_char_attribute_maybe): Likewise.
837 (Fload_char_attribute_table): Likewise.
839 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
841 * mule-charset.c (Fsave_charset_mapping_table): New function.
842 (syms_of_mule_charset): Add new builtin function
843 `save-charset-mapping-table'.
845 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
847 * char-ucs.h (decoding_table_check_elements): Delete prototype.
848 (get_ccs_octet_table): New inline function.
849 (put_ccs_octet_table): Likewise.
850 (decoding_table_put_char): Use `get_ccs_octet_table' and
851 `put_ccs_octet_table'.
852 (decoding_table_remove_char): Use `decoding_table_put_char'.
853 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
855 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
857 (make_charset): Use Qunbound instead Qnil as initial value of
860 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
862 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
863 element is Qunloaded.
864 (map_over_uint16_byte_table): Likewise.
865 (map_over_byte_table): Likewise.
866 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
867 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
868 database support, load encoding-table of the specified
869 coded-charset if it is not loaded yet.
870 (save_uint8_byte_table): New function of UTF-2000 with external
872 (save_uint16_byte_table): Likewise.
873 (save_byte_table): Likewise.
874 (Fput_char_attribute): Don't store value into external database
875 even if the external database feature is supported in UTF-2000;
876 set `attribute' as name of char-table if the external database
877 feature is supported.
878 (Fsave_char_attribute_table): New function in UTF-2000.
879 (syms_of_chartab): Add new builtin function
880 `save-char-attribute-table' in UTF-2000.
882 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
884 * chartab.c (char_attribute_table_to_put): New variable in
886 (Qput_char_table_map_function): Likewise.
887 (value_to_put): Likewise.
888 (Fput_char_table_map_function): New function in UTF-2000.
889 (put_char_table): Use `Fmap_char_attribute' for
890 CHARTAB_RANGE_CHARSET in UTF-2000.
891 (Fput_char_attribute): Store symbol instead of string in
892 `XCHAR_TABLE_NAME (table)'.
893 (load_char_attribute_maybe): Likewise.
894 (syms_of_chartab): Add new symbol/function
895 `put-char-table-map-function'.
897 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
899 * database.h: Add new EXFUN for `Fmap_database'.
901 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
902 (syms_of_database): Likewise.
904 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
906 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
907 (XCHAR_TABLE_UNLOADED): Likewise.
909 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
910 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
911 HAVE_DATABASE is defined.
912 (char_attribute_table_to_load): New variable of UTF-2000 with
913 external database support.
914 (Qload_char_attribute_table_map_function): Likewise.
915 (Fload_char_attribute_table_map_function): New function of
916 UTF-2000 with external database support.
917 (Fload_char_attribute_table): New function of UTF-2000.
918 (Fmap_char_attribute): Call Fload_char_attribute_table if
919 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
920 (syms_of_chartab): Add new symbol and function
921 `load-char-attribute-table-map-function' in UTF-2000 with external
922 database support; add new function `load-char-attribute-table' in
925 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
927 * chartab.h (load_char_attribute_maybe): New prototype for
928 UTF-2000 with DATABASE support.
929 (get_char_id_table): Use `load_char_attribute_maybe' if
930 HAVE_DATABASE is defined.
932 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
933 with DATABASE support.
935 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
937 * chartab.c (Fput_char_attribute): Use S-expression as key of
940 * chartab.h (get_char_id_table): Use S-expression as key of
943 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
945 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
946 if an element is not loaded, load the corresponding attributes
947 from an external database.
948 (map_over_uint16_byte_table): Likewise.
949 (map_over_byte_table): Likewise.
950 (map_char_table): Modify for `map_over_uint8_byte_table',
951 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
952 element is not loaded, load the corresponding attributes from an
954 (Fput_char_attribute): Change initial values to Qunloaded.
956 * chartab.h (get_char_id_table): If a character attribute is not
957 loaded and the attribute value is not found in an external
958 database, store Qunbound as the attribute value.
960 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
962 * chartab.c (BT_UINT8_unloaded): New macro.
963 (UINT8_VALUE_P): Accept Qunloaded.
964 (UINT8_ENCODE): Likewise.
965 (UINT8_DECODE): Likewise.
966 (BT_UINT16_unloaded): New macro.
967 (UINT16_VALUE_P): Accept Qunloaded.
968 (UINT16_ENCODE): Likewise.
969 (UINT16_DECODE): Likewise.
970 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
972 (mark_char_table): Mark `ct->name' in UTF-2000.
973 (char_table_description): Add `name' in UTF-2000.
974 (Fmake_char_table): Initialize `ct->name'.
975 (Fcopy_char_table): Copy `ct->name'.
976 (Fput_char_attribute): Store value into an external database if
977 HAVE_DATABASE is defined.
979 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
981 (CHAR_TABLE_NAME): New macro in UTF-2000.
982 (XCHAR_TABLE_NAME): New macro in UTF-2000.
983 (get_char_id_table): Try to read an external database if Qunloaded
984 is stored in a table.
986 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
989 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
991 * database.h: Add EXFUN definitions for Fopen_database,
992 Fput_database, Fget_database and Fclose_database.
994 * data.c (Qunloaded): New variable in UTF-2000.
996 * lisp.h (Qunloaded): New variable in UTF-2000.
998 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1000 * mule-charset.c (put_char_ccs_code_point): Modify for
1001 `decoding_table_remove_char' and `decoding_table_put_char'.
1002 (remove_char_ccs): Modify for `decoding_table_remove_char'.
1004 * char-ucs.h (decoding_table_remove_char): Change arguments to
1005 hide decoding_table vector.
1006 (decoding_table_put_char): Likewise.
1008 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1010 * mule-charset.c (decoding_table_remove_char): Moved to
1012 (decoding_table_put_char): Likewise.
1014 * char-ucs.h (decoding_table_check_elements): New prototype [moved
1015 from mule-charset.c].
1016 (decoding_table_remove_char): New inline function [moved from
1018 (decoding_table_put_char): Likewise.
1020 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1022 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1025 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1027 * mule-charset.c (decode_builtin_char): Support mother charsets.
1029 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1031 * mule-charset.c (Q94x94x60): New variable.
1032 (charset_code_point): Support conversion `94x94x60'.
1033 (Fmake_charset): Likewise.
1034 (syms_of_mule_charset): Add new symbol `94x94x60'.
1036 * char-ucs.h (CONVERSION_94x94x60): New macro.
1038 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1040 * mule-charset.c (charset_code_point): Unify code about
1043 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1045 * mule-charset.c (charset_code_point): Merge code about builtin
1046 characters into code about mother charsets; don't use
1047 `range_charset_code_point'.
1048 (range_charset_code_point): Deleted.
1050 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1052 * mule-charset.c (Qcode_offset): New variable.
1053 (Fmake_charset): Use `XUINT' to get value of `min-code' and
1054 `max-code'; accept new property `code-offset'.
1055 (syms_of_mule_charset): Add new symbol `code-offset'.
1057 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1059 * mule-charset.c (range_charset_code_point): Fixed.
1061 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1063 * mule-charset.c (decode_builtin_char): Change semantics of
1064 code-offset of coded-charset.
1065 (charset_code_point): Likewise.
1066 (range_charset_code_point): Likewise.
1067 (complex_vars_of_mule_charset): Modify for the change.
1069 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1071 * mule-charset.c (Fencode_char): Reverse arguments.
1073 * mule-charset.c (charset_code_point): Fixed.
1075 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1077 * mule-charset.c (Vcharset_mojikyo): Deleted.
1078 (Vcharset_mojikyo_2022_1): Deleted.
1079 (Vcharset_mojikyo_pj_{1..21}): Deleted.
1080 (Qmin_code): New variable in UTF-2000.
1081 (Qmax_code): Likewise.
1082 (Qmother): Likewise.
1083 (Qconversion): Likewise.
1085 (Qmojikyo): Deleted.
1086 (Qmojikyo_2022_1): Deleted.
1087 (Qmojikyo_pj_{1..22}): Deleted.
1088 (mark_charset): Mark `cs->mother'.
1089 (charset_description): Add description for `mother'.
1090 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1091 new arguments `mother' and `conversion'; use
1092 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1093 (charset_code_point): Moved from char-ucs.h; support `mother'
1095 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1096 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1097 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1098 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1099 allow 2 as the value of `graphic' in UTF-2000; add new properties
1100 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1101 require `final' in UTF-2000; modify for `make_charset'.
1102 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1103 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1104 (Fcharset_property): Support `mother', `min-code' and `max-code'.
1105 (Fencode_char): New function.
1106 (syms_of_mule_charset): Add new builtin function `encode-char' in
1107 UTF-2000; add new symbols `min-code', `max-code', `mother',
1108 `conversion' and `94x60'; delete symbols `mojikyo',
1109 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1110 (complex_vars_of_mule_charset): Modify for `make_charset' change;
1111 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1112 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1114 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1115 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1117 * char-ucs.h (Vcharset_mojikyo): Deleted.
1118 (Vcharset_mojikyo_2022_1): Deleted.
1119 (LEADING_BYTE_MOJIKYO): Deleted.
1120 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1121 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1122 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1123 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1124 add new member `mother'; add new member `conversion'.
1125 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1126 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1127 (CHARSET_MOTHER): New macro.
1128 (CHARSET_CONVERSION): New macro.
1129 (CONVERSION_IDENTICAL): New macro.
1130 (CONVERSION_94x60): New macro.
1131 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1132 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1133 (XCHARSET_MOTHER): New macro.
1134 (XCHARSET_CONVERSION): New macro.
1135 (MIN_CHAR_MOJIKYO): Deleted.
1136 (MAX_CHAR_MOJIKYO): Deleted.
1137 (DECODE_MOJIKYO_2022): Deleted.
1138 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1139 (charset_code_point): Changed to non-inline function.
1140 (encode_char_1): Use `charset_code_point'.
1141 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1143 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1145 * lread.c (read_compiled_function): Fix prototype.
1146 (read_vector): Likewise.
1148 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1150 * lrecord.h (struct lrecord_header): Delete `older'.
1151 (set_lheader_implementation): Delete code for `older'.
1152 (set_lheader_older_implementation): Deleted.
1153 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1154 (OLDER_RECORD_P): Deleted.
1155 (OLDER_RECORD_HEADER_P): Deleted.
1156 (alloc_older_lcrecord): Deleted.
1157 (alloc_older_lcrecord_type): Deleted.
1159 * alloc.c (all_older_lcrecords): Deleted.
1160 (alloc_older_lcrecord): Deleted.
1161 (disksave_object_finalization_1): Delete code for older objects.
1162 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1163 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1165 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1167 * mule-charset.c (decoding_table_put_char): Use `make_vector'
1168 instead of `make_older_vector'.
1169 (put_char_ccs_code_point): Likewise.
1170 (mark_charset): Mark `cs->decoding_table'.
1171 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1173 * lisp.h (make_older_vector): Deleted.
1174 (make_vector_newer): Deleted.
1176 * config.h.in (HAVE_GGC): Deleted.
1178 * alloc.c (make_older_vector): Deleted.
1179 (make_vector_newer_1): Deleted.
1180 (make_vector_newer): Deleted.
1182 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1184 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1185 (Qideograph_daikanwa_2): New variable.
1186 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1187 (complex_vars_of_mule_charset): Add new coded-charset
1188 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1189 `LEADING_BYTE_DAIKANWA'.
1191 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1192 (LEADING_BYTE_DAIKANWA_1): New macro.
1193 (LEADING_BYTE_DAIKANWA_2): New macro.
1194 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1196 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1198 * mule-charset.c (complex_vars_of_mule_charset): Change
1199 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1200 the second revised version.
1202 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1204 * mule-charset.c (Vcharset_ucs_smp): New variable.
1205 (Vcharset_ucs_sip): New variable.
1206 (Qucs_smp): New variable.
1207 (Qucs_sip): New variable.
1208 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1209 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1210 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1211 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1212 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1213 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1215 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1216 (LEADING_BYTE_UCS_SIP): New macro.
1217 (MIN_CHAR_SMP): New macro.
1218 (MAX_CHAR_SMP): New macro.
1219 (MIN_CHAR_SIP): New macro.
1220 (MAX_CHAR_SIP): New macro.
1222 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
1224 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1227 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1229 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1230 value; don't store value into `encoding_table' of `Lisp_Charset'.
1231 (mark_charset): `encoding_table' was deleted.
1232 (charset_description): Likewise.
1233 (make_charset): Likewise.
1234 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1235 `put_char_ccs_code_point'.
1237 * chartab.h (Fput_char_attribute): New EXFUN.
1239 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1240 is unified with normal symbol space.
1241 (Fget_char_attribute): Likewise.
1242 (Fput_char_attribute): Likewise; behavior of
1243 `put_char_ccs_code_point' is changed.
1245 * char-ucs.h: Include "elhash.h".
1246 (Vchar_attribute_hash_table): New external variable.
1247 (struct Lisp_Charset): Delete `encoding_table'.
1248 (CHARSET_ENCODING_TABLE): New implementation; refer
1249 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1252 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1254 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1257 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1259 * text-coding.c (char_encode_big5): Prefer charset-g1 than
1262 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1264 * chartab.c (uint8_byte_table_description): New constant.
1265 (uint8-byte-table): Use `uint8_byte_table_description'.
1266 (uint16_byte_table_description): New constant.
1267 (uint16-byte-table): Use `uint16_byte_table_description'.
1269 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1271 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1272 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1274 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1276 * mule-charset.c (Vcharset_ucs_ks): New variable.
1277 (Qucs_ks): New variable.
1278 (syms_of_mule_charset): Add new symbol `ucs-ks'.
1279 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1281 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1283 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1285 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1286 (Fdecode_char): Likewise.
1288 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1290 (Fdefine_char): Modify for Fdecode_char.
1291 (Ffind_char): Likewise.
1293 * mule-charset.c (Fdecode_char): Add new optional argument
1295 (Fdecode_builtin_char): Modify for `Fdecode_char'.
1297 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1299 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1300 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1301 (allocate_coding_system): Initialize initial-charsets of
1302 CODESYS_BIG5 in XEmacs UTF-2000.
1303 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1304 CODESYS_BIG5 in XEmacs UTF-2000.
1305 (decode_coding_big5): Use initial-charset-g0 and -g1 of
1306 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1308 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1310 (Qideograph_hanziku_{1 .. 12}): Likewise.
1311 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1313 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1314 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1315 `ideograph-hanziku-{1 .. 12}'.
1317 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1318 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1319 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1320 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1321 (DECODE_DEFINED_CHAR): New inline function.
1322 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1324 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1326 * mule-charset.c (Vcharset_china3_jef): Renamed from
1327 `Vcharset_japanese_jef_china3'.
1328 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1329 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1330 `{MIN|MAX}_CHAR_JEF_CHINA3'..
1331 (syms_of_mule_charset): Rename `china3-jef' from
1332 `japanese-jef-china3'.
1333 (complex_vars_of_mule_charset): Likewise; rename
1334 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1336 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1337 `LEADING_BYTE_JEF_CHINA3'.
1338 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1339 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1341 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1343 * mule-charset.c (encode_builtin_char_1): Comment out special code
1344 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1346 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1347 (MAX_CHAR_MOJIKYO_0): Comment out.
1348 (MIN_CHAR_CBETA): Changed to 0x00E20000.
1349 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1350 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1351 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1353 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1355 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1356 (Qideograph_cbeta): New variable.
1357 (encode_builtin_char_1): Comment out special code for
1358 coded-charset `mojikyo' and `japanese-jef-china3'.
1359 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1360 (complex_vars_of_mule_charset): Add new coded-charset
1363 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1364 (MIN_CHAR_CBETA): New macro.
1365 (MAX_CHAR_CBETA): New macro.
1367 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1369 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1370 (LEADING_BYTE_JEF_CHINA3): New macro.
1371 (MIN_CHAR_JEF_CHINA3): New macro.
1372 (MAX_CHAR_JEF_CHINA3): Likewise.
1373 (DECODE_CHAR): Fixed.
1375 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1377 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1378 (Qjapanese_jef_china3): New variable.
1379 (encode_builtin_char_1): Support `japanese-jef-china3'.
1380 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1381 (complex_vars_of_mule_charset): Add new coded-charset
1382 `japanese-jef-china3'.
1384 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1386 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1387 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1388 94^4, 96^3, 96^4, 128^n and 256^n set.
1389 (put_char_table): Use `XCHARSET_CELL_RANGE'.
1390 (map_char_table): Likewise.
1392 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1394 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1397 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1399 * chartab.h (get_char_id_table): New inline function.
1401 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1404 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1406 * chartab.h (decode_char_table_range): New prototype in XEmacs
1408 (put_char_id_table): New inline function in XEmacs UTF-2000.
1410 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1412 (decode_char_table_range): Delete static declaration in XEmacs
1415 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1417 * chartab.c (put_char_id_table): Use `put_char_table'.
1419 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1421 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1422 (map_over_uint16_byte_table): Likewise.
1423 (map_over_byte_table): Likewise.
1424 (map_char_table): Modify for `map_over_uint8_byte_table',
1425 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1428 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1430 * chartab.c (struct map_char_table_for_charset_arg): New
1432 (map_char_table_for_charset_fun): New function.
1433 (map_char_table): Use `map_char_table' for encoding_table of
1436 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1438 * chartab.c (map_char_table): Check a character is found in
1439 range->charset instead of non default value is defined in
1440 char-table when range is CHARTAB_RANGE_ROW.
1442 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1444 * chartab.c (map_char_id_table): Deleted.
1445 (Fmap_char_attribute): Use `map_char_table' instead of
1446 `map_char_id_table'.
1448 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1450 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1452 (update_syntax_table): Deleted in XEmacs UTF-2000.
1454 * syntax.c (find_defun_start): Use `syntax_table' instead of
1455 `mirror_syntax_table' in XEmacs UTF-2000.
1456 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1458 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1460 (Fmatching_paren): Likewise.
1461 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1463 (find_start_of_comment): Likewise.
1464 (find_end_of_comment): Likewise.
1465 (Fforward_comment): Likewise.
1466 (scan_lists): Likewise.
1467 (char_quoted): Likewise.
1468 (Fbackward_prefix_chars): Likewise.
1469 (scan_sexps_forward): Likewise.
1470 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1471 (update_syntax_table): Likewise.
1473 * search.c (skip_chars): Use `syntax_table' instead of
1474 `mirror_syntax_table' in XEmacs UTF-2000.
1475 (wordify): Likewise.
1476 (Freplace_match): Likewise.
1478 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1479 `mirror_syntax_table' in XEmacs UTF-2000.
1480 (WORDCHAR_P_UNSAFE): Likewise.
1481 (re_match_2_internal): Likewise.
1483 * font-lock.c (find_context): Use `buf->syntax_table' instead of
1484 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1486 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1487 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1489 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1492 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1494 (print_char_table): Print `default_value' in XEmacs UTF-2000.
1495 (char_table_description): Delete `mirror_table' in XEmacs
1497 (fill_char_table): Don't call `update_syntax_table' in XEmacs
1499 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1500 (Fcopy_char_table): Likewise.
1501 (put_char_table): Don't call `update_syntax_table' in XEmacs
1504 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1505 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1506 (casify_region_internal): Likewise.
1508 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1510 * buffer.c (common_init_complex_vars_of_buffer): Don't use
1511 `mirror_syntax_table' in XEmacs UTF-2000.
1513 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1514 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1515 (Fexpand_abbrev): Likewise.
1517 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1519 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1521 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1523 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1524 (map_over_uint16_byte_table): Likewise.
1525 (map_over_byte_table): Likewise.
1526 (get_char_id_table): Refer `cit->default_value'.
1527 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1528 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1529 of character-id ranges.
1530 (mark_char_table): Mark `ct->default_value'.
1531 (char_table_description): Add `default_value'.
1532 (fill_char_table): Use `default_value'.
1533 (decode_char_table_range): Decode `nil' as
1534 `CHARTAB_RANGE_DEFAULT'.
1535 (get_char_id_table): Refer `cit->default_value'.
1536 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1537 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1538 temporary hack; check value of char-table is bound or not.
1539 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1541 * chartab.h (struct Lisp_Char_Table): Add new member
1542 `default_value' in XEmacs UTF-2000.
1543 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1544 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1547 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1549 * chartab.h (Lisp_Char_ID_Table): Deleted.
1551 * chartab.c (char_table_description): Fix typo.
1552 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1553 `Lisp_Char_ID_Table'.
1555 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1557 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1560 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1563 * chartab.h (XCHAR_ID_TABLE): Deleted.
1564 (XSETCHAR_ID_TABLE): Deleted.
1565 (CHAR_ID_TABLE_P): Deleted.
1567 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1569 (Fget_composite_char): Likewise.
1570 (put_char_table): Likewise.
1571 (add_char_attribute_alist_mapper): Fixed.
1572 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1574 (Fget_char_attribute): Likewise.
1575 (Fget_char_attribute): Likewise.
1576 (Fmap_char_attribute): Likewise.
1578 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1580 (encode_char_1): Likewise.
1582 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1584 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1587 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1588 instead of `XCHAR_ID_TABLE'.
1589 (remove_char_ccs): Likewise.
1591 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1593 (Fget_composite_char): Likewise.
1594 (Fchar_variants): Likewise.
1595 (put_char_table): Likewise.
1596 (add_char_attribute_alist_mapper): Likewise.
1597 (Fchar_attribute_alist): Likewise.
1598 (Fget_char_attribute): Likewise.
1599 (Fput_char_attribute): Likewise.
1600 (Fmap_char_attribute): Likewise.
1601 (Fmap_char_attribute): Likewise.
1603 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1605 (encode_char_1): Likewise.
1607 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1609 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1610 `Lisp_Char_ID_Table'.
1611 (mark_char_id_table): Deleted.
1612 (print_char_id_table): Likewise.
1613 (char_id_table_equal): Likewise.
1614 (char_id_table_hash): Likewise.
1615 (char_id_table_description): Likewise.
1616 (char_id_table): Likewise.
1617 (make_char_id_table): Use `Fmake_char_table' and
1619 (get_char_id_table): Use `Lisp_Char_Table' instead of
1620 `Lisp_Char_ID_Table'.
1621 (put_char_id_table): Likewise.
1622 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1624 (Fremove_char_attribute): Likewise.
1625 (syms_of_chartab): Don't define type `char-id-table'.
1627 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1628 (char_id_table): Likewise.
1629 (GC_CHAR_ID_TABLE_P): Likewise.
1630 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1631 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1632 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1633 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1634 (get_char_id_table): Use `Lisp_Char_Table' instead of
1635 `Lisp_Char_ID_Table'.
1636 (put_char_id_table_0): Likewise.
1637 (put_char_id_table): Likewise.
1639 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1641 * chartab.h: Lisp_Byte_Table related codes are moved from
1644 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1646 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1648 * chartab.h: Don't include "chartab.h".
1649 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1650 (Lisp_Char_ID_Table): Likewise.
1651 (char_id_table): Likewise.
1652 (XCHAR_ID_TABLE): Likewise.
1653 (XSETCHAR_ID_TABLE): Likewise.
1654 (CHAR_ID_TABLE_P): Likewise.
1655 (GC_CHAR_ID_TABLE_P): Likewise.
1656 (get_char_id_table): Likewise.
1658 * char-ucs.h: Include "chartab.h".
1659 (struct Lisp_Char_ID_Table): Moved to chartab.h.
1660 (Lisp_Char_ID_Table): Likewise.
1661 (char_id_table): Likewise.
1662 (XCHAR_ID_TABLE): Likewise.
1663 (XSETCHAR_ID_TABLE): Likewise.
1664 (CHAR_ID_TABLE_P): Likewise.
1665 (GC_CHAR_ID_TABLE_P): Likewise.
1666 (get_char_id_table): Likewise.
1668 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1670 * chartab.c (copy_uint8_byte_table): New function.
1671 (copy_uint16_byte_table): New function.
1672 (copy_byte_table): New function.
1673 (map_over_uint8_byte_table): Modify to avoid huge numbers of
1675 (map_over_uint16_byte_table): Likewise.
1676 (map_over_byte_table): Likewise.
1677 (get_byte_table): Move prototype to chartab.h.
1678 (put_byte_table): Likewise.
1679 (put_char_id_table_0): Moved to chartab.h.
1680 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1681 (char_table_entry_equal): Likewise.
1682 (char_table_entry_hash): Likewise.
1683 (char_table_entry_description): Likewise.
1684 (char_table_entry): Likewise.
1685 (make_char_table_entry): Likewise.
1686 (copy_char_table_entry): Likewise.
1687 (get_non_ascii_char_table_value): Likewise.
1688 (map_over_charset_ascii): Likewise.
1689 (map_over_charset_control_1): Likewise.
1690 (map_over_charset_row): Likewise.
1691 (map_over_other_charset): Likewise.
1692 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1693 (print_char_table): Likewise.
1694 (char_table_equal): Likewise.
1695 (char_table_hash): Likewise.
1696 (char_table_description): Likewise.
1697 (fill_char_table): Likewise.
1698 (Fcopy_char_table): Likewise.
1699 (get_char_table): Likewise.
1700 (Fget_range_char_table): Likewise.
1701 (put_char_table): Likewise.
1702 (map_char_table): Likewise.
1703 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1706 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1708 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1709 `Vauto_fill_chars' in XEmacs UTF-2000.
1711 * chartab.h (get_byte_table): New prototype [moved from
1713 (put_byte_table): Likewise [moved from chartab.c].
1714 (put_char_id_table_0): New inline function [moved from chartab.c].
1715 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1716 (Lisp_Char_Table_Entry): Likewise.
1717 (char_table_entry): Likewise.
1718 (XCHAR_TABLE_ENTRY): Likewise.
1719 (XSETCHAR_TABLE_ENTRY): Likewise.
1720 (CHAR_TABLE_ENTRYP): Likewise.
1721 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1722 (NUM_ASCII_CHARS): Likewise.
1723 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1724 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1726 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1728 * chartab.c (get_char_id_table): Change interface.
1729 (put_char_id_table_0): New function.
1730 (put_char_id_table): Change interface; new implementation.
1731 (Fget_composite_char): Modify for interface change of
1732 `get_char_id_table'.
1733 (Fchar_variants): Likewise.
1734 (add_char_attribute_alist_mapper): Likewise.
1735 (Fchar_attribute_alist): Likewise.
1736 (Fget_char_attribute): Likewise.
1737 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1738 as same as character as the first argument like `put-char-table';
1739 modify for interface change of `put_char_id_table'.
1740 (Fremove_char_attribute): Modify for interface change of
1741 `put_char_id_table'.
1743 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1745 * text-coding.c: Sync up with XEmacs 21.2.41.
1746 (COMPOSE_ADD_CHAR): Modify for interface change of
1747 `get_char_id_table'.
1749 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1750 change of `put_char_id_table'.
1751 (remove_char_ccs): Likewise.
1753 * chartab.h (put_char_id_table): Change interface.
1755 * char-ucs.h (get_char_id_table): Change interface.
1756 (charset_code_point): Modify for interface change of
1757 `get_char_id_table'.
1758 (encode_char_1): Likewise.
1760 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1762 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1764 (map_over_uint16_byte_table): Likewise.
1765 (map_over_byte_table): Likewise.
1766 (map_char_id_table): Add new argument `range' like
1768 (Fmap_char_attribute): Add new argument `range' like
1771 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1773 * chartab.c (map_over_uint8_byte_table): Change interface of
1774 mapping function to use struct chartab_range instead of Emchar.
1775 (map_over_uint16_byte_table): Likewise.
1776 (map_over_byte_table): Likewise.
1777 (map_char_id_table): Likewise.
1778 (struct slow_map_char_id_table_arg): Deleted.
1779 (slow_map_char_id_table_fun): Deleted.
1780 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1781 function `slow_map_char_table_fun' instead of struct
1782 `slow_map_char_id_table_arg' and function
1783 `slow_map_char_id_table_fun'.
1785 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1787 * mule-charset.c: Move char-it-table related codes to chartab.c.
1788 (Vutf_2000_version): Moved to chartab.c.
1789 (Fdefine_char): Likewise.
1790 (Ffind_char): Likewise.
1791 (syms_of_mule_charset): Move types `uint8-byte-table',
1792 `uint16-byte-table', `byte-table' and `char-id-table' to
1793 chartab.c; move functions `char_attribute_list,
1794 `find_char_attribute_table, `char_attribute_alist,
1795 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1796 `map_char_attribute, `define_char, `find_char, `char_variants and
1797 `get_composite_char to chartab.c; move symbols `=>ucs',
1798 `->decomposition', `compat', `isolated', `initial', `medial',
1799 `final', `vertical', `noBreak', `fraction', `super', `sub',
1800 `circle', `square', `wide', `narrow', `small' and `font' to
1802 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1803 setting codes for `Vcharacter_composition_table' and
1804 `Vcharacter_variant_table' to chartab.c.
1805 (complex_vars_of_mule_charset): Move setting code for
1806 `Vchar_attribute_hash_table' to chartab.c.
1808 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1809 (make_char_id_table): New prototype.
1810 (put_char_id_table): Likewise.
1811 (Fget_char_attribute): Likewise.
1813 * chartab.c: Move char-id-table related code from mule-charset.c.
1814 (Vutf_2000_version): Moved from mule-charset.c.
1816 * char-ucs.h (Qucs): New external variable.
1817 (put_char_ccs_code_point): New prototype.
1818 (remove_char_ccs): Likewise.
1820 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1822 * mule-charset.c (Vcharset_ucs_jis): New variable.
1823 (Qucs_jis): Likewise.
1824 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1825 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1827 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1829 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1831 * mule-charset.c (map_over_uint8_byte_table): New function.
1832 (map_over_uint16_byte_table): Likewise.
1833 (map_over_byte_table): Likewise.
1834 (map_char_id_table): Likewise.
1835 (slow_map_char_id_table_fun): Likewise.
1836 (Fmap_char_attribute): Likewise.
1837 (syms_of_mule_charset): Add new function `map-char-attribute'.
1839 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1841 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1842 (syms_of_mule_charset): Add new function `find-char'.
1844 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1846 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1848 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1849 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1851 (complex_vars_of_mule_charset): Add new coded-charset
1852 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1853 `ideograph-gt-pj-*'.
1855 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1857 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1859 * mule-charset.c (encode_builtin_char_1): Purge codes about
1860 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1861 {MIN|MAX}_CHAR_HEBREW.
1862 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1863 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1865 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1866 (MAX_CHAR_GREEK): Purged.
1867 (MIN_CHAR_CYRILLIC): Purged.
1868 (MAX_CHAR_CYRILLIC): Purged.
1869 (MIN_CHAR_HEBREW): Commented out.
1870 (MAX_CHAR_HEBREW): Likewise.
1872 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1874 * mule-charset.c (Qto_ucs): New variable.
1875 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1876 (Fdefine_char): Likewise.
1877 (syms_of_mule_charset): Add new symbol `=>ucs'.
1879 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1881 * mule-charset.c (Fdecode_char): Fixed.
1883 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1885 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1886 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1889 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1891 * mule-charset.c (Vcharset_ucs_big5): New variable.
1892 (Qucs_big5): Likewise.
1893 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1894 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1896 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1898 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1900 * mule-charset.c (decode_builtin_char): Check Big5 code range
1901 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1903 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1905 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1906 (Qchinese_gb12345): Likewise.
1907 (Fdecode_builtin_char): Fixed.
1908 (syms_of_mule_charset): Add `chinese-gb12345'.
1909 (complex_vars_of_mule_charset): Add coded-charset
1912 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1913 (LEADING_BYTE_CHINESE_GB12345): New macro.
1915 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1917 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1918 and `latin-viscii-upper' for `latin-viscii'.
1920 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1922 * mule-charset.c (Fdecode_builtin_char): Comment out
1923 regularization code for ISO-IR GR representation.
1925 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1927 * mule-charset.c (decode_builtin_char): New function; renamed from
1928 `make_builtin_char'; return -1 instead of signal.
1929 (Fdecode_builtin_char): Use `decode_builtin_char'.
1931 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1932 `make_builtin_char'.
1933 (DECODE_CHAR): Use `decode_builtin_char' instead of
1934 `make_builtin_char'; use mapping table of `chinese-big5' for
1935 `chinese-big5-{1,2}'.
1937 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1939 * text-coding.c (char_encode_big5): New function.
1940 (char_finish_big5): Likewise.
1941 (reset_encoding_stream): Use `char_encode_big5' and
1942 `char_finish_big5' for CODESYS_BIG5.
1943 (mule_encode): Don't use `encode_coding_big5'.
1944 (encode_coding_big5): Deleted.
1946 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1948 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1949 0x81- in XEmacs UTF-2000.
1950 (detect_coding_big5): Likewise.
1952 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1954 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1955 generate character-id if the CCS property does not have
1956 corresponding predefined character.
1957 (make_builtin_char): Return -1 if corresponding predefined
1958 character is not found.
1959 (Fdecode_char): Return nil if corresponding character is not
1961 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1962 don't map to builtin ucs space.
1964 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1966 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1967 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1969 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1971 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1972 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1973 (Qideograph_gt): Likewise.
1974 (Qideograph_gt_pj_{1..11}): Likewise.
1975 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1976 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1977 `ideograph-gt-pj-11'.
1978 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1979 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1980 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1982 * char-ucs.h (LEADING_BYTE_GT): New macro.
1983 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1984 (MIN_CHAR_GT): Likewise.
1985 (MAX_CHAR_GT): Likewise.
1987 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1989 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1990 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1992 * doprnt.c (unsigned_int_converters): Add `c'.
1993 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1995 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1996 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1998 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1999 (MAX_CHAR_MOJIKYO_0): New macro.
2000 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2002 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2004 * mule-charset.c (Fdefine_char): Delete cemented out code.
2005 (encode_builtin_char_1): Modify for new allocation of builtin
2008 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2010 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2012 * mule-charset.c (Vcharset_ucs_cns): New variable.
2013 (Qucs_cns): New variable.
2014 (syms_of_mule_charset): Add new symbol `ucs-cns'.
2015 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2017 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2019 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2021 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
2023 * search.c (search_buffer): Make `charset_base_code' as
2024 character-id >> 6 to eliminate the corresponding last byte in
2025 UTF-8 representation [I'm not sure it is right thing].
2026 (boyer_moore): Likewise.
2028 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
2030 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2031 representation in MULE.
2033 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2035 * text-coding.c (Fmake_coding_system): Use
2036 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2037 `EXTERNAL_PROPERTY_LIST_LOOP'.
2039 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2041 * text-coding.c (decode_output_utf8_partial_char): New function.
2042 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2044 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2046 * text-coding.c (decode_coding_utf8): Output original byte
2047 sequence if it is broken; change order of conditions.
2049 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2052 * mb-multibyte.h (BYTE_ASCII_P):
2053 Use bit ops for char-signedness safety.
2054 (BYTE_C0_P): Use bit ops for char-signedness safety.
2055 (BYTE_C1_P): Use bit ops for char-signedness safety.
2057 * character.h: (XCHAR_OR_CHAR_INT):
2058 Always use inline function.
2059 Remove redundant type checking assert() - XINT will abort quite
2062 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2064 * text-coding.c: (Fencode_shift_jis_char):
2065 (Fencode_big5_char):
2066 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
2067 Replace 0 with '\0' when working with bytes.
2068 Replace initial "(" with "\(" in docstrings.
2070 (Fmake_coding_system):
2071 When type is ccl and value is vector, register it with a proper
2072 symbol. And checks whether the given ccl program is valid.
2073 (mule_decode): When calling ccl_driver, if src indicates
2074 NULL pointer, set an empty string instead.
2075 (mule_encode): Likewise.
2078 (detect_coding_sjis):
2079 (decode_coding_sjis):
2080 (detect_coding_big5):
2081 (decode_coding_big5):
2082 (detect_coding_ucs4):
2083 (decode_coding_ucs4):
2084 (detect_coding_utf8):
2085 (decode_coding_utf8):
2086 (detect_coding_iso2022):
2087 (decode_coding_iso2022):
2088 (decode_coding_no_conversion):
2090 Make all detecting and decoding functions take an Extbyte * arg.
2091 (text_encode_generic):
2092 (encode_coding_big5):
2093 (encode_coding_no_conversion):
2095 Make all encoding functions take a Bufbyte * arg.
2096 Use size_t instead of unsigned int for memory sizes.
2097 Only cast to unsigned char whenever dereferencing Extbyte *.
2099 (struct lrecord_description fcd_description_1): Use countof.
2100 (complex_vars_of_file_coding):
2101 Use countof instead of sizeof.
2102 Use CHECK_NATNUM instead of CHECK_INT.
2104 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2106 * mule-charset.c (Fget_char_attribute): Add new optional argument
2108 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2109 (remove_char_ccs): Likewise.
2111 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2113 * text-coding.c (char_encode_shift_jis): New implementation in
2115 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2118 * mule-charset.c (Vcharset_chinese_big5): New variable in
2120 (Qchinese_big5): New variable in UTF-2000.
2121 (BIG5_SAME_ROW): New macro in UTF-2000.
2122 (make_builtin_char): Use builtin characters of
2123 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2124 characters of `Vcharset_chinese_big5'.
2125 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2126 (complex_vars_of_mule_charset): Add new coded-charset
2127 `chinese-big5' in UTF-2000.
2129 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2130 (Vcharset_chinese_big5): New external variable declaration.
2131 (Vcharset_japanese_jisx0208_1990): Likewise.
2133 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2135 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2137 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2139 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2141 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2142 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2143 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2146 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2148 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2150 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2152 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2155 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2157 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2158 for `CHARSET_BY_ATTRIBUTES'.
2159 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2160 `CHARSET_BY_ATTRIBUTES'.
2162 * text-coding.c (struct decoding_stream): Rename member `CH' to
2164 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2165 (decode_coding_sjis): Likewise.
2166 (decode_coding_big5): Likewise.
2167 (decode_coding_ucs4): Likewise.
2168 (decode_coding_utf8): Likewise.
2169 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2170 `CHARSET_BY_ATTRIBUTES'.
2171 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2172 `str->counter'; decode 3, 4 bytes sets.
2173 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2175 (decode_coding_no_conversion): Use `str->cpos' instead of
2178 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2179 (Qmojikyo_2022_1): New variable.
2180 (make_charset): Don't use `CHARSET_TYPE_*'.
2181 (range_charset_code_point): Support coded-charset
2183 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2184 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2185 `CHARSET_BY_ATTRIBUTES'.
2186 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2187 `CHARSET_BY_ATTRIBUTES'.
2188 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2189 (complex_vars_of_mule_charset): Add new coded-charset
2192 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2193 interface; changed to inline function.
2195 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2196 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2197 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2198 (CHARSET_TYPE_94): Deleted.
2199 (CHARSET_TYPE_94X94): Deleted.
2200 (CHARSET_TYPE_96): Deleted.
2201 (CHARSET_TYPE_96X96): Deleted.
2202 (CHARSET_TYPE_128): Deleted.
2203 (CHARSET_TYPE_128X128): Deleted.
2204 (CHARSET_TYPE_256): Deleted.
2205 (CHARSET_TYPE_256X256): Deleted.
2206 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2208 (DECODE_MOJIKYO_2022): New inline function.
2209 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2210 `Vcharset_mojikyo_2022_1'.
2212 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2214 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2216 (put_byte_table): Likewise.
2217 (char_id_table_equal): Use `get_byte_table' [new implementation].
2219 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2221 * mule-charset.c: Include <limits.h> in UTF-2000.
2222 (BT_UINT8_MIN): New macro in UTF-2000.
2223 (BT_UINT8_MAX): New macro in UTF-2000.
2224 (BT_UINT8_t): New macro in UTF-2000.
2225 (BT_UINT8_nil): New macro in UTF-2000.
2226 (BT_UINT8_unbound): New macro in UTF-2000.
2227 (INT_UINT8_P): New inline function in UTF-2000.
2228 (UINT8_VALUE_P): New inline function in UTF-2000.
2229 (UINT8_ENCODE): New inline function in UTF-2000.
2230 (UINT8_DECODE): New inline function in UTF-2000.
2231 (mark_uint8_byte_table): New function in UTF-2000.
2232 (print_uint8_byte_table): New function in UTF-2000.
2233 (uint8_byte_table_equal): New function in UTF-2000.
2234 (uint8_byte_table_hash): New function in UTF-2000.
2235 (make_uint8_byte_table): New function in UTF-2000.
2236 (uint8_byte_table_same_value_p): New function in UTF-2000.
2237 (BT_UINT16_MIN): New macro in UTF-2000.
2238 (BT_UINT16_MAX): New macro in UTF-2000.
2239 (BT_UINT16_t): New macro in UTF-2000.
2240 (BT_UINT16_nil): New macro in UTF-2000.
2241 (BT_UINT16_unbound): New macro in UTF-2000.
2242 (INT_UINT16_P): New inline function in UTF-2000.
2243 (UINT16_VALUE_P): New inline function in UTF-2000.
2244 (UINT16_ENCODE): New inline function in UTF-2000.
2245 (UINT16_DECODE): New inline function in UTF-2000.
2246 (UINT8_TO_UINT16): New inline function in UTF-2000.
2247 (mark_uint16_byte_table): New function in UTF-2000.
2248 (print_uint16_byte_table): New function in UTF-2000.
2249 (uint16_byte_table_equal): New function in UTF-2000.
2250 (uint16_byte_table_hash): New function in UTF-2000.
2251 (make_uint16_byte_table): New function in UTF-2000.
2252 (uint16_byte_table_same_value_p): New function in UTF-2000.
2253 (print_byte_table): New function in UTF-2000.
2254 (byte-table): Use `print_byte_table' as printer.
2255 (make_byte_table): Delete second argument `older'.
2256 (byte_table_same_value_p): New function in UTF-2000.
2257 (copy_byte_table): Deleted.
2258 (get_byte_table): New function in UTF-2000.
2259 (put_byte_table): New function in UTF-2000.
2260 (print_char_id_table): New function in UTF-2000.
2261 (char-id-table): Use `print_char_id_table' as printer.
2262 (make_char_id_table): Delete second argument `older'.
2263 (get_char_id_table): Use `get_byte_table [new implementation].
2264 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2266 (Ffind_char_attribute_table): New function in UTF-2000.
2267 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2268 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2269 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2270 (syms_of_mule_charset): Add new function
2271 `find-char-attribute-table' in UTF-2000.
2273 * lrecord.h (enum lrecord_type): Add
2274 `lrecord_type_uint16_byte_table' and
2275 `lrecord_type_uint8_byte_table'.
2277 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2278 (Lisp_Uint8_Byte_Table): New type.
2279 (XUINT8_BYTE_TABLE): New macro.
2280 (XSETUINT8_BYTE_TABLE): New macro.
2281 (UINT8_BYTE_TABLE_P): New macro.
2282 (GC_UINT8_BYTE_TABLE_P): New macro.
2283 (struct Lisp_Uint16_Byte_Table): New structure.
2284 (Lisp_Uint16_Byte_Table): New type.
2285 (XUINT16_BYTE_TABLE): New macro.
2286 (XSETUINT16_BYTE_TABLE): New macro.
2287 (UINT16_BYTE_TABLE_P): New macro.
2288 (GC_UINT16_BYTE_TABLE_P): New macro.
2290 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2292 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2293 (Vcharacter_ideographic_strokes_table): Deleted.
2294 (Vcharacter_total_strokes_table): Deleted.
2295 (Vcharacter_morohashi_daikanwa_table): Deleted.
2296 (Vcharacter_decomposition_table): Deleted.
2297 (Qname): Deleted because it is duplicated.
2298 (Qideographic_radical): Deleted.
2299 (Qideographic_strokes): Deleted.
2300 (Qtotal_strokes): Deleted.
2301 (Qmorohashi_daikanwa): Deleted.
2302 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2303 `ideographic-radical', `ideographic-strokes', `total-strokes',
2304 `morohashi-daikanwa' and `->decomposition'.
2305 (Fget_char_attribute): Likewise.
2306 (Fput_char_attribute): Likewise; use `make-vector' instead of
2307 `make_older_vector' for `->decomposition' value.
2308 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2309 `ideograph-daikanwa'.
2310 (syms_of_mule_charset): Delete builtin symbols `name',
2311 `ideographic-radical', `ideographic-strokes', `total-strokes' and
2312 `morohashi-daikanwa'.
2313 (vars_of_mule_charset): Don't setup
2314 `Vcharacter_ideographic_radical_table',
2315 `Vcharacter_ideographic_strokes_table',
2316 `Vcharacter_total_strokes_table',
2317 `Vcharacter_morohashi_daikanwa_table' and
2318 `Vcharacter_decomposition_table'.
2320 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2322 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2323 `make_older_vector', `make_vector_newer_1' and
2324 `make_vector_newer'.
2326 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2327 `make_older_vector' and `make_vector_newer'.
2329 * config.h.in (HAVE_GGC): New macro.
2331 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2333 * mule-charset.c (struct char_attribute_list_closure): New
2334 structure in UTF-2000.
2335 (add_char_attribute_to_list_mapper): New function in UTF-2000.
2336 (Fchar_attribute_list): Likewise.
2337 (Fset_charset_mapping_table): Use `make_vector_newer'.
2338 (Fdecode_builtin_char): New function in UTF-2000.
2339 (syms_of_mule_charset): Add new function `char-attribute-list' and
2340 `decode-builtin-char' in UTF-2000.
2342 * lisp.h (make_vector_newer): New prototype.
2344 * alloc.c (make_vector_newer_1): New function.
2345 (make_vector_newer): New function.
2347 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2349 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2352 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2354 * mule-charset.c (Vchar_attribute_hash_table): New variable.
2355 (Vcharacter_attribute_table): Deleted.
2356 (Vcharacter_name_table): Deleted.
2357 (put_char_attribute): Deleted.
2358 (remove_char_attribute): Deleted.
2359 (struct char_attribute_alist_closure): New structure.
2360 (add_char_attribute_alist_mapper): New function.
2361 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2362 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2363 (Fget_char_attribute): Likewise.
2364 (Fput_char_attribute): Likewise.
2365 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2366 of `remove_char_attribute'.
2367 (Fdefine_char): Return character.
2368 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2369 and `Vcharacter_name_table'.
2370 (complex_vars_of_mule_charset): Likewise
2371 `Vchar_attribute_hash_table'.
2373 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2375 * character.h (CHARC_CHARSET): New macro.
2376 (CHARC_CHARSET_ID): New macro.
2377 (CHARC_CODE_POINT): New macro.
2378 (CHARC_COLUMNS): New macro.
2379 (CHARC_TO_CHAR): New inline function.
2380 (CHARC_EQ): New inline function.
2381 (CHARC_ASCII_EQ): New inline function.
2382 (CHARC_IS_SPACE): New inline function.
2383 (ASCII_TO_CHARC): New inline function.
2385 * char-ucs.h (encode_char_2): Deleted.
2386 (ENCODE_CHAR): Use `encode_char_1' again.
2387 (breakup_char_1): Likewise.
2388 (CHAR_TO_CHARC): New inline function.
2390 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2392 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2394 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2395 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2396 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2397 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2398 (create_string_text_block): Use `CHARC_ASCII_EQ' and
2400 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2402 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2404 (x_output_display_block): Use `CHARC_CHARSET' and
2407 * redisplay-tty.c (tty_output_display_block): Use
2409 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2411 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2413 * insdel.c (find_charsets_in_charc_string): Use
2415 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2416 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2417 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2418 (convert_charc_string_into_malloced_string): Likewise.
2420 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2422 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2423 instead of <Emchar_dynarr *> for buf; use
2424 `convert_bufbyte_string_into_charc_dynarr' instead of
2425 `convert_bufbyte_string_into_emchar_dynarr'; use
2426 `find_charsets_in_charc_string' instead of
2427 `find_charsets_in_emchar_string'.
2430 - Include "character.h".
2431 (struct rune): New member `cglyph'; delete member `chr'.
2433 * redisplay.c (redisplay_text_width_charc_string): New function;
2434 delete `redisplay_text_width_emchar_string'.
2435 (rtw_charc_dynarr): New variable; renamed from
2436 `rtw_emchar_dynarr'.
2437 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2438 `rtw_emchar_dynarr'; use
2439 `convert_bufbyte_string_into_charc_dynarr' instead of
2440 `convert_bufbyte_string_into_emchar_dynarr'; use
2441 `redisplay_text_width_charc_string' instead of
2442 `redisplay_text_width_emchar_string'.
2443 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2444 instead of `rtw_emchar_dynarr'; use
2445 `convert_bufbyte_string_into_charc_dynarr' instead of
2446 `convert_bufbyte_string_into_emchar_dynarr'.
2447 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2448 `redisplay_text_width_charc_string' instead of
2449 `redisplay_text_width_emchar_string'.
2450 (create_text_block): Modify for <struct rune> change.
2451 (generate_formatted_string_db): Likewise.
2452 (create_string_text_block): Likewise.
2453 (pixel_to_glyph_translation): Likewise.
2455 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2456 instead of <const Emchar *>.
2457 (x_text_width): Likewise.
2458 (x_output_display_block): Use <Charc_dynarr *> instead
2459 <Emchar_dynarr *>; modify for <structure rune> change.
2460 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2463 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2464 <const Emchar *>; use `charc_string_displayed_columns' instead of
2465 `emchar_string_displayed_columns'.
2466 (tty_output_display_block): Use <Charc_dynarr *> instead of
2467 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2468 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2469 (tty_output_charc_dynarr_dynarr): New variable; renamed from
2470 `tty_output_emchar_dynarr_dynarr'.
2471 (tty_output_charc_dynarr): New function; delete
2472 `tty_output_charc_dynarr'.
2474 * redisplay-output.c (compare_runes): Modify for `struct rune'.
2475 (redisplay_output_layout): Use <Charc_dynarr *> instead of
2476 <Emchar_dynarr *> for buf; use
2477 `convert_bufbyte_string_into_charc_dynarr' instead of
2478 `convert_bufbyte_string_into_emchar_dynarr'.
2480 * frame.c (title_string_charc_dynarr): New variable; renamed from
2481 `title_string_emchar_dynarr'.
2482 (generate_title_string): Use `title_string_charc_dynarr' instead
2483 of `title_string_emchar_dynarr'; use
2484 `convert_charc_string_into_malloced_string' instead of
2485 `convert_emchar_string_into_malloced_string'.
2486 (init_frame): Use `title_string_charc_dynarr' instead of
2487 `title_string_emchar_dynarr'.
2490 - Include "character.h".
2491 (struct console_methods): Use <const Charc *> instead of <const
2492 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2493 <Emchar_dynarr *> in output_string_method.
2495 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2498 * console-stream.c (stream_text_width): Use <const Charc *>
2499 instead of <const Emchar *>.
2501 * character.h (Charc_dynarr): New type.
2503 * char-ucs.h (structure Charc): New structure; define new type
2506 * char-lb.h (DECODE_CHAR): New inline function.
2507 (encode_char_1): New inline function.
2508 (ENCODE_CHAR): New macro.
2509 (structure Charc): New structure; define new type `Charc'.
2511 * char-1byte.h (Vcharset_control_1): New macro.
2512 (Vcharset_latin_iso8859_1): New macro.
2513 (DECODE_CHAR): New inline function.
2514 (encode_char_1): New inline function.
2515 (ENCODE_CHAR): New macro.
2516 (structure Charc): New structure; define new type `Charc'.
2518 * insdel.c (find_charsets_in_charc_string): New function; delete
2519 `find_charsets_in_emchar_string'.
2520 (charc_string_displayed_columns): New function; delete
2521 `emchar_string_displayed_columns'.
2522 (convert_bufbyte_string_into_charc_dynarr): New function; delete
2523 `convert_bufbyte_string_into_emchar_dynarr'.
2524 (convert_charc_string_into_bufbyte_dynarr): New function; delete
2525 `convert_charc_string_into_bufbyte_dynarr'.
2526 (convert_charc_string_into_malloced_string): New function; delete
2527 `convert_charc_string_into_malloced_string'.
2529 * buffer.h (find_charsets_in_charc_string): New prototype; delete
2530 `find_charsets_in_emchar_string'.
2531 (charc_string_displayed_columns): New prototype; delete
2532 `emchar_string_displayed_columns'.
2533 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2534 `convert_charc_string_into_bufbyte_dynarr'.
2535 (convert_charc_string_into_malloced_string): New prototype; delete
2536 `convert_charc_string_into_malloced_string'.
2538 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2540 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2542 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2544 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2546 * char-ucs.h: Use <short> for <Charset_ID>.
2548 * mule-charset.h, char-1byte.h: Use <unsigned char> for
2551 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2553 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2556 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2558 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2560 (Qmorohashi_daikanwa): New variable.
2561 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2562 for `morohashi-daikanwa' attribute.
2563 (Fget_char_attribute): Likewise.
2564 (Fput_char_attribute): Likewise.
2565 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2566 has the same value of `ideograph-daikanwa'.
2567 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2568 (vars_of_mule_charset): Setup
2569 `Vcharacter_morohashi_daikanwa_table'.
2571 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2573 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2575 (add_charset_to_list_mapper): Add `key' instead of
2576 `XCHARSET_NAME (value)' to return aliases.
2578 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2580 * mule-charset.c (Vcharacter_ideographic_radical_table): New
2582 (Vcharacter_ideographic_strokes_table): New variable.
2583 (Qideographic_radical): New variable.
2584 (Qideographic_strokes): New variable.
2585 (Fchar_attribute_alist): Use
2586 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2587 attribute; use `Vcharacter_ideographic_strokes_table' for
2588 `ideographic-strokes' attribute.
2589 (Fget_char_attribute): Likewise.
2590 (Fput_char_attribute): Likewise.
2591 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2592 `ideographic-strokes'.
2593 (vars_of_mule_charset): Setup
2594 `Vcharacter_ideographic_radical_table' and
2595 `Vcharacter_ideographic_strokes_table'.
2597 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2599 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2600 (Qtotal_strokes): New variable.
2601 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2602 `total-strokes' attribute.
2603 (Fget_char_attribute): Likewise.
2604 (Fput_char_attribute): Likewise.
2605 (syms_of_mule_charset): Add new symbol `total-strokes'.
2606 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2608 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2610 * mule-charset.c (Vcharacter_decomposition_table): New variable.
2611 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2613 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2614 `->decomposition' attribute.
2615 (Fput_char_attribute): Likewise.
2616 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2618 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2620 * mule-charset.c (decoding_table_check_elements): New function.
2621 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2623 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2625 * mule-charset.c (Fset_charset_mapping_table): Use
2626 `put_char_ccs_code_point'.
2628 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2630 * mule-charset.c (decoding_table_put_char): New inline function.
2631 (put_char_ccs_code_point): Use `decoding_table_put_char'.
2633 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2635 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2636 (XCHARSET_BYTE_SIZE): New macro.
2637 (decoding_table_remove_char): New inline function.
2638 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2639 `decoding_table_remove_char'.
2640 (remove_char_ccs): Use `decoding_table_remove_char'.
2641 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2643 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2645 * mule-charset.c (Vcharacter_name_table): New variable.
2646 (Qname): New variable.
2647 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2649 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2650 `Vcharacter_name_table' for `name' attribute.
2651 (Fremove_char_attribute): Use function `remove_char_ccs'.
2652 (put_char_ccs_code_point): New function.
2653 (remove_char_ccs): New function.
2654 (syms_of_mule_charset): Add new symbol `name'.
2655 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2657 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2659 * mule-charset.c (make_byte_table): Add new argument `older'.
2660 (make_char_id_table): Likewise.
2661 (copy_char_id_table): Comment out because it is not used.
2662 (put_char_id_table): Modify for `make_byte_table'.
2663 (Fput_char_attribute): Make encoding_table as older object;
2664 inherit older bit of `Vcharacter_composition_table'.
2665 (mark_charset): Don't mark `cs->encoding_table'.
2666 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2667 normal object; make `Vcharacter_composition_table' as an older
2668 object; delete staticpro for `Vcharacter_composition_table'; make
2669 `Vcharacter_variant_table' as a normal object.
2671 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2672 (mark_object): Don't check older object in UTF-2000.
2674 * lrecord.h (struct lrecord_header): Add new member `older' in
2676 (set_lheader_implementation): Setup `SLI_header->older' in
2678 (set_lheader_older_implementation): New macro in UTF-2000.
2679 (OLDER_RECORD_P): New macro in UTF-2000.
2680 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2681 (alloc_older_lcrecord): New prototype in UTF-2000.
2682 (alloc_older_lcrecord_type): New macro in UTF-2000.
2684 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2686 * mule-charset.c (byte_table_description): Use
2687 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2688 (char_id_table_description): Delete bogus `, 1'.
2689 (Fget_char_attribute): Refer encoding_table of each coded-charset
2690 to get value of coded-charset attribute of a character.
2691 (Fput_char_attribute): Use `make_older_vector' instead of
2692 `make_vector'; use encoding_table of each coded-charset to store
2693 value of coded-charset attribute of a character.
2694 (Fremove_char_attribute): Use encoding_table of each coded-charset
2695 to store value of coded-charset attribute of a character.
2696 (mark_charset): Mark `cs->encoding_table'; don't mark
2697 `cs->decoding_table'.
2698 (charset_description): Add description of new member
2700 (make_charset): Initialize `encoding_table'.
2702 * char-ucs.h (struct Lisp_Charset): Add new member
2704 (CHARSET_ENCODING_TABLE): New macro.
2705 (XCHARSET_ENCODING_TABLE): New macro.
2706 (charset_code_point): New implementation.
2707 (encode_char_1): Likewise.
2709 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2710 (disksave_object_finalization_1): Call finalizers of
2711 `all_older_lcrecords' in UTF-2000.
2712 (make_older_vector): New function in UTF-2000.
2713 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2716 * lisp.h (make_older_vector): New prototype in UTF-2000.
2718 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2720 * lrecord.h (enum lrecord_type): Rename
2721 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2723 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2724 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2725 `get_char_code_table'.
2727 * mule-charset.c (mark_char_id_table): Renamed from
2728 `mark_char_code_table'.
2729 (char_id_table_equal): Renamed from `char_code_table_equal'.
2730 (char_id_table_hash): Renamed from `char_code_table_hash'.
2731 (make_char_id_table): Renamed from `make_char_code_table'.
2732 (copy_char_id_table): Renamed from `copy_char_code_table'.
2733 (get_char_id_table): Renamed from `get_char_code_table'.
2734 (put_char_id_table): Renamed from `put_char_code_table'.
2735 (to_char_id): Renamed from `to_char_code'.
2737 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2738 `Lisp_Char_Code_Table'.
2739 (char_id_table): Renamed from `char_code_table'.
2740 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2741 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2742 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2743 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2744 (get_char_id_table): Renamed from `get_char_code_table'.
2746 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2748 * lrecord.h (enum lrecord_type): Rename
2749 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2751 * mule-charset.c (mark_byte_table): Renamed from
2752 `mark_char_byte_table'.
2753 (byte_table_equal): Renamed from `char_byte_table_equal'.
2754 (byte_table_hash): Renamed from `byte_table_hash'.
2755 (make_byte_table): Renamed from `make_byte_table'.
2756 (copy_byte_table): Renamed from `copy_char_byte_table'.
2758 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2759 `Lisp_Char_Byte_Table'.
2760 (byte_table): Renamed from `char_byte_table'.
2761 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2762 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2763 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2764 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2766 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2768 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2769 (dfc_convert_to_internal_format): Likewise.
2771 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2772 * text-coding.c (Fcoding_system_alias_p): New function.
2773 * text-coding.c (Fcoding_system_aliasee): New function.
2774 * text-coding.c (append_suffix_to_symbol): New function.
2775 * text-coding.c (dangling_coding_system_alias_p): New function.
2776 * text-coding.c (Ffind_coding_system):
2777 * text-coding.c (Fcopy_coding_system):
2778 * text-coding.c (encode_coding_no_conversion):
2779 * text-coding.c (syms_of_file_coding):
2780 * text-coding.c (vars_of_file_coding):
2781 Rewrite coding system alias code.
2782 Allow nested aliases, like symbolic links.
2783 Allow redefinition of coding system aliases.
2784 Prevent existence of dangling coding system aliases.
2785 Eliminate convert_to_external_format.
2786 Eliminate convert_to_internal_format.
2788 * text-coding.c: Change enum eol_type to eol_type_t.
2790 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2792 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2793 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2795 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2796 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2798 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2800 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2801 `ideograph-daikanwa'.
2803 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2804 (Vcharset_ucs_bmp): Likewise.
2805 (Vcharset_mojikyo): Add new extern variable definition.
2806 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2807 (Vcharset_latin_iso8859_3): Likewise.
2808 (Vcharset_latin_iso8859_4): Likewise.
2809 (Vcharset_latin_iso8859_9): Likewise.
2810 (Vcharset_latin_viscii_lower): Likewise.
2811 (Vcharset_latin_viscii_upper): Likewise.
2812 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2813 `mojikyo' code-point is used to decode.
2814 (encode_char_2): New function [to convert `mojikyo' code-point to
2815 Mojikyo font encoding].
2816 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2817 (breakup_char_1): Likewise.
2818 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2820 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2822 * text-coding.c (Fmake_coding_system): Add document about
2823 `disable-composition' property.
2825 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2827 * text-coding.c (Qdisable_composition): New variable; delete
2829 (Fmake_coding_system): Add new property `disable-composite';
2830 delete property `composite'.
2831 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2832 instead of `!CODING_SYSTEM_COMPOSITE'.
2833 (syms_of_file_coding): Add new symbol `disable-composition';
2834 delete symbol `composite'.
2836 * file-coding.h (struct Lisp_Coding_System): Add
2837 `disable_composition'; delete `enable_composition'.
2838 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2839 `CODING_SYSTEM_COMPOSITE'.
2840 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2841 `XCODING_SYSTEM_COMPOSITE'.
2843 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2845 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2848 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2850 * text-coding.c (Qcomposite): New variable.
2851 (Fmake_coding_system): Add new property `composite'.
2852 (struct decoding_stream): Add `combined_char_count',
2853 `combined_chars' and `combining_table' in UTF-2000.
2854 (COMPOSE_FLUSH_CHARS): New macro.
2855 (COMPOSE_ADD_CHAR): New macro.
2856 (reset_decoding_stream): Reset `str->combined_char_count' and
2857 `str->combining_table' in UTF-2000.
2858 (decode_coding_iso2022): Modify for character-decomposition.
2859 (syms_of_file_coding): Add new symbol `composite'.
2861 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2863 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2864 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2865 of `Vcharacter_composition_table' if `->decomposition' property
2867 (Qlatin_tcvn5712): New variable.
2868 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2869 (complex_vars_of_mule_charset): Add new coded-charset
2872 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2874 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2876 * file-coding.h (struct Lisp_Coding_System): Add
2877 `enable_composition'.
2878 (CODING_SYSTEM_COMPOSITE): New macro.
2879 (XCODING_SYSTEM_COMPOSITE): New macro.
2881 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2883 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2885 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2887 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2888 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2890 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2892 * mule-charset.c (Vcharset_mojikyo): New variable.
2893 (Fdefine_char): Don't use coded-charset which does not have
2894 non-builtin character range to allocate character-id.
2895 (Qmojikyo): New variable.
2896 (syms_of_mule_charset): Add new symbol `mojikyo'.
2897 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2899 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2900 (LEADING_BYTE_MOJIKYO): New macro.
2901 (MIN_CHAR_MOJIKYO): New macro.
2902 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2903 (MAX_CHAR_MOJIKYO): New macro.
2905 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2907 * mule-charset.c (remove_char_attribute): Fixed.
2909 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2911 * mule-charset.c (remove_char_attribute): New function.
2912 (Fremove_char_attribute): New function.
2913 (encode_builtin_char_1): Comment out builtin-support for
2914 greek-iso8859-7 and cyrillic-iso8859-5.
2915 (Fdecode_char): Check `code' is an integer.
2916 (syms_of_mule_charset): Add `remove-char-attribute'.
2917 (MIN_CHAR_GREEK): Deleted.
2918 (MAX_CHAR_GREEK): Likewise.
2919 (MIN_CHAR_CYRILLIC): Likewise.
2920 (MAX_CHAR_CYRILLIC): Likewise.
2921 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2922 MAX_CHAR_GREEK for `greek-iso8859-7'.
2924 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2925 (MAX_CHAR_GREEK): Likewise.
2926 (MIN_CHAR_CYRILLIC): Likewise.
2927 (MAX_CHAR_CYRILLIC): Likewise.
2929 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2931 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2932 format is used without `ucs' property.
2933 (Fdecode_char): Fix problem with GR representation.
2934 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2935 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2937 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2939 * mule-charset.c (make_builtin_char): New function.
2940 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2941 (Fset_charset_mapping_table): Modify for new representation of
2943 (Fdecode_char): New function.
2944 (syms_of_mule_charset): Add new builtin function `decode-char' in
2947 * char-ucs.h (make_builtin_char): New prototype.
2948 (DECODE_CHAR): New inline function.
2949 (MAKE_CHAR): Use `DECODE_CHAR'.
2951 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2953 * text-coding.c (parse_charset_conversion_specs): Use
2954 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2956 (iso2022_designate): Likewise.
2958 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2959 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2961 * mule-charset.c (Vcharset_ucs): New variable.
2962 (print_charset): Change design; use `CHARSET_CHARS' and
2963 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2964 (make_charset): Change signature to specify `chars' and
2965 `dimension' instead of `type'.
2966 (range_charset_code_point): Modify for 256^n-set.
2967 (encode_builtin_char_1): Encode as `ucs' in default.
2968 (Fmake_charset): Modify for `make_charset'.
2969 (Fmake_reverse_direction_charset): Likewise.
2970 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2972 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2975 * char-ucs.h (Vcharset_ucs): New variable.
2976 (LEADING_BYTE_UCS): New macro.
2977 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2978 and `chars' to `unsigned short' from `unsigned int'.
2979 (CHARSET_TYPE): Deleted.
2980 (XCHARSET_TYPE): Deleted.
2982 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2984 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2986 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2987 (ENCODE_CHAR): New macro.
2989 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2991 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2992 to 0.14 (Kawachi-Katakami).
2994 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2996 * text-coding.c (char_encode_shift_jis): Modify for
2997 `charset_code_point'.
2998 (char_encode_iso2022): Likewise.
3000 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3001 (integer) instead of list of <Lisp_Object>s (integers) as the
3002 format of code-point of a coded-charset.
3003 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3004 (encode_builtin_char_1): New function; delete
3005 `split_builtin_char'.
3006 (charset_code_point): Return <int> instead of <Lisp_Object>.
3007 (Fsplit_char): Don't use `SPLIT_CHAR'.
3009 * char-ucs.h (encode_builtin_char_1): New prototype; delete
3010 prototype for `split_builtin_char'.
3011 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3012 (charset_code_point): Likewise.
3013 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3014 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3016 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
3018 * mule-charset.c (complex_vars_of_mule_charset): Don't define
3019 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3021 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3023 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3025 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3026 (MAX_CHAR_OBS_94x94): Deleted.
3028 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3030 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3032 * char-ucs.h (MAX_CHAR_BMP): New macro.
3034 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3036 * text-coding.c: Sync with r21-2-24.
3038 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3040 * file-coding.c: Modify for UTF-2000.
3042 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3044 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3047 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3049 * mule-charset.c (split_builtin_char): Delete builtin support for
3050 `katakana-jisx0201'.
3051 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3052 BMP area in builtin representation.
3054 * char-ucs.h (MAKE_CHAR): Delete builtin support for
3055 `Vcharset_katakana_jisx0201'.
3057 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
3059 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3060 (Qisolated): New variable.
3061 (Qinitial): New variable.
3062 (Qmedial): New variable.
3063 (Qfinal): New variable.
3064 (Qvertical): New variable.
3065 (Qsmall): New variable.
3066 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3067 `Qvertical' and `Qsmall'.
3068 (Qmojikyo_pj_[1 .. 21]): New variable.
3069 (syms_of_mule_charset): Add new symbols `isolated', `initial',
3070 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3071 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3074 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3076 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3077 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3078 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3080 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3082 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3083 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3085 (Qjapanese_jisx0208_1990): New variable.
3086 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3087 (complex_vars_of_mule_charset): Add new coded-charset
3088 `japanese-jisx0208-1990'.
3090 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3091 (MIN_CHAR_JIS_X0208_1990): New macro.
3092 (MAX_CHAR_JIS_X0208_1990): New macro.
3094 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
3096 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3097 coded-charset is not found.
3099 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
3101 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3102 (Fdefine_char): Use `Fmake_char'.
3104 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3106 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3107 (Vcharset_hiragana_jisx0208): Deleted.
3108 (Vcharset_katakana_jisx0208): Deleted.
3109 (Qideograph_daikanwa): New variable.
3110 (Qhiragana_jisx0208): Deleted.
3111 (Qkatakana_jisx0208): Deleted.
3112 (split_builtin_char): Split `ideograph-daikanwa'.
3113 (Fsplit_char): New implementation for UTF-2000.
3114 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3115 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3116 (complex_vars_of_mule_charset): Add new coded-charset
3117 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3118 `katakana-jisx0208'.
3120 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3121 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3122 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3123 (MIN_CHAR_DAIKANWA): New macro.
3124 (MAX_CHAR_DAIKANWA): New macro.
3126 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3128 * data.c (Fstring_to_number): Don't recognize floating point if
3131 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3133 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3135 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3137 * mule-charset.c (Qsquare): New variable.
3138 (to_char_code): Add `Qsquare'.
3139 (syms_of_mule_charset): Add new symbol `square'.
3141 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3143 * mule-charset.c (Qcircle): New variable.
3144 (to_char_code): Add `Qcircle'.
3145 (syms_of_mule_charset): Add new symbol `circle'.
3147 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3149 * mule-charset.c (Qfont): New variable.
3150 (to_char_code): Add `Qfont'.
3151 (syms_of_mule_charset): Add new symbol `font'.
3153 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3155 * mule-charset.c (Qsub): New variable.
3156 (to_char_code): Add `Qsub'.
3157 (syms_of_mule_charset): Add new symbol `sub'.
3159 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3161 * mule-charset.c (Fput_char_attribute): Convert each element of
3162 VALUE to GL position if ATTRIBUTE is a GR-set,
3164 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3166 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3167 coded-charset is a GR-set.
3169 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3171 * mule-charset.c (Fput_char_attribute): Check each element of
3172 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3174 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3176 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3178 (Qethiopic_ucs): New variable in UTF-2000.
3179 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3180 (complex_vars_of_mule_charset): Add new coded-charset
3181 `ethiopic-ucs' in UTF-2000.
3183 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3184 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3186 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3188 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3190 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3192 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3195 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3197 * mule-charset.c (Vcharacter_variant_table): New variable.
3198 (Q_ucs): New variable.
3199 (Fchar_variants): New function.
3200 (Fput_char_attribute): Register `->ucs' value to
3201 `Vcharacter_variant_table'.
3202 (syms_of_mule_charset): Add new function `char-variants' and new
3204 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3206 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3208 * mule-charset.c (get_char_code_table): Allow negative character
3210 (put_char_code_table): Likewise.
3211 (Vcharacter_composition_table): New variable.
3212 (Q_decomposition): New variable.
3213 (Qwide): New variable.
3214 (Qnarrow): New variable.
3215 (Qcompat): New variable.
3216 (QnoBreak): New variable.
3217 (Qsuper): New variable.
3218 (Qfraction): New variable.
3219 (to_char_code): New function.
3220 (Fget_composite_char): New function.
3221 (Fput_char_attribute): Register `->decomposition' value to
3222 `Vcharacter_composition_table'.
3223 (syms_of_mule_charset): Add new function `get-composite-char', new
3224 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3225 `super' and `fraction'.
3226 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3228 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3230 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3231 character; copy the return value.
3233 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3235 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3237 * mule-charset.c (range_charset_code_point): Must use make_int.
3238 (split_builtin_char): New function.
3240 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3242 * mule-charset.c (char_byte_table): Change name from
3243 "char-code-table" to "char-byte-table".
3244 (mark_char_code_table): New function.
3245 (char_code_table_equal): New function.
3246 (char_code_table_hash): New function.
3247 (char_code_table_description): New constant.
3248 (char_code_table): New type.
3249 (make_char_code_table): New function.
3250 (copy_char_code_table): New function.
3251 (get_char_code_table): Modify for `char_code_table' type.
3252 (put_char_code_table): Likewise.
3253 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3256 * char-ucs.h (char_code_table): New type.
3257 (XCHAR_CODE_TABLE): New macro.
3258 (XSETCHAR_CODE_TABLE): New macro.
3259 (CHAR_CODE_TABLE_P): New macro.
3260 (GC_CHAR_CODE_TABLE_P): New macro.
3261 (struct Lisp_Char_Code_Table): New structure.
3263 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3265 * mule-charset.c (Fmake_charset): Setup byte_offset for
3268 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
3270 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3273 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3275 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3278 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3280 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3281 charset, it is regarded as a charset.
3282 (put_char_attribute): New function in UTF-2000.
3283 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3284 charset, mapping-table of the charset is modified.
3285 (Fdefine_char): New function in UTF-2000.
3286 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3287 `Fput_char_attribute'.
3288 (syms_of_mule_charset): Add new function `define-char' and new
3289 symbol `ucs' in UTF-2000.
3290 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3292 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3294 * mule-charset.c (Fcharset_name): Define `byte_offset' in
3295 non-UTF-2000 configuration.
3297 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3299 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3300 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3302 * mule-charset.c (mark_charset): `cs->encoding_table' has been
3304 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3305 (Fset_charset_mapping_table): Likewise.
3307 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3308 (CHARSET_ENCODING_TABLE): Delete.
3309 (XCHARSET_ENCODING_TABLE): Delete.
3310 (charset_code_point): New interface.
3312 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3314 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3315 instead of `charset_get_byte1' and `charset_get_byte2'.
3317 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3318 (charset_get_byte2): Deleted.
3320 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3322 * char-ucs.h (SPLIT_CHAR): New inline function.
3323 (breakup_char_1): Use `SPLIT_CHAR'.
3325 * mule-charset.c (range_charset_code_point): New function.
3326 (charset_code_point): New function.
3328 * char-ucs.h (range_charset_code_point): New interface.
3329 (breakup_char_1): Use `range_charset_code_point'.
3331 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3333 * mule-charset.c (Fmake_charset): Delete unused local variable
3336 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3337 (breakup_char_1): Find a charset and code-point in
3338 `Vcharacter_attribute_table'.
3340 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3342 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3345 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3347 * mule-charset.c (Vcharacter_attribute_table): New variable.
3348 (Fchar_attribute_alist): New function.
3349 (Fget_char_attribute): New function.
3350 (Fput_char_attribute): New function.
3351 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3353 (syms_of_mule_charset): Add new function `char-attribute-alist',
3354 `get-char-attribute' and `put-char-attribute'.
3355 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3357 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
3359 * mule-charset.c (Fmake_charset): Just use
3360 `get_unallocated_leading_byte'.
3362 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3363 sets; don't use final-byte based number for private sets.
3365 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3367 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3370 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3372 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3375 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3377 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3378 of `CHAR_LEADING_BYTE' in UTF-2000.
3380 * insdel.c (find_charsets_in_bufbyte_string): Use
3381 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3382 (find_charsets_in_emchar_string): Likewise.
3384 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3385 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3387 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3388 (CHAR_CHARSET_ID): New macro.
3390 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3392 * chartab.c (get_char_table): Don't use type `Charset_ID' for
3393 charset-id - MIN_LEADING_BYTE.
3394 (put_char_table): Likewise.
3396 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3398 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3399 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3400 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3401 (CHARSET_ID_OFFSET): New macro.
3402 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3403 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3404 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3405 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3407 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3409 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3410 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3411 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3412 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3413 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3415 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3417 * mule-charset.c (next_allocated_leading_byte): New variable in
3419 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3420 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3421 (get_unallocated_leading_byte): Simply use
3422 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3423 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3426 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3427 (MAX_LEADING_BYTE_PRIVATE): New macro.
3428 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3429 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3431 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3433 * mule-charset.c (Fmake_charset): Allocate final-byte based
3434 charset-id for 94-set, 96-set and 94x94-set.
3436 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3438 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3440 (Fmake_charset): Likewise.
3441 (complex_vars_of_mule_charset): Modify the font registry of
3442 `ucs-bmp' not to match `Ethiopic-Unicode'.
3444 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3446 * mule-charset.c (complex_vars_of_mule_charset): Add font
3447 registory of `ucs-bmp'.
3449 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3451 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3452 coded-charsets in `default-coded-charset-priority-list' when
3453 breaking up a character.
3455 * mule-charset.c (Vcharset_latin_viscii): New variable.
3456 (Qlatin_viscii): New variable.
3457 (make_charset): Don't use `decoding_table'.
3458 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3460 (Fset_charset_mapping_table): New implementation.
3461 (syms_of_mule_charset): Add new symbol `latin-viscii'.
3462 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3463 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3464 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3465 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3466 charset `latin_viscii'.
3468 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3469 (CHARSET_TYPE_94X94): Change to 1 from 2.
3470 (CHARSET_TYPE_96): Change to 2 from 1.
3471 (CHARSET_TYPE_128): New macro.
3472 (CHARSET_TYPE_128X128): Change to 5 from 4.
3473 (CHARSET_TYPE_256): New macro.
3474 (CHARSET_TYPE_256X256): Change to 7 from 5.
3475 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3477 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3479 * text-coding.c (char_encode_shift_jis): Refer
3480 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3481 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3483 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3484 (char_byte_table_equal): New function in UTF-2000.
3485 (char_byte_table_hash): New function in UTF-2000.
3486 (char_byte_table_description): New constant in UTF-2000.
3487 (char_byte_table): New type in UTF-2000.
3488 (make_char_byte_table): New function in UTF-2000.
3489 (copy_char_byte_table): New function in UTF-2000.
3490 (make_char_code_table): New macro in UTF-2000.
3491 (get_char_code_table): New function in UTF-2000.
3492 (put_char_code_table): New function in UTF-2000.
3493 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3494 (charset_description): Add setting in UTF-2000.
3495 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3496 `CHARSET_TO_BYTE1_TABLE(cs)'.
3497 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3498 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3499 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3500 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3501 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3502 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3503 `CHARSET_TO_BYTE2_TABLE(cs)'.
3505 * char-ucs.h (char_byte_table): New type.
3506 (XCHAR_BYTE_TABLE): New macro.
3507 (XSETCHAR_BYTE_TABLE): New macro.
3508 (CHAR_BYTE_TABLE_P): New macro.
3509 (GC_CHAR_BYTE_TABLE_P): New macro.
3510 (struct Lisp_Char_Byte_Table): New structure.
3511 (get_char_code_table): New interface.
3512 (Emchar_to_byte_table): Deleted.
3513 (get_byte_from_character_table): Deleted.
3514 (struct Lisp_Charset): Add `encoding_table'; delete
3515 `to_byte1_table' and `to_byte2_table'.
3516 (CHARSET_ENCODING_TABLE): New macro.
3517 (CHARSET_TO_BYTE1_TABLE): Deleted.
3518 (CHARSET_TO_BYTE2_TABLE): Deleted.
3519 (XCHARSET_ENCODING_TABLE): New macro.
3520 (XCHARSET_TO_BYTE1_TABLE): Deleted.
3521 (XCHARSET_TO_BYTE2_TABLE): Deleted.
3523 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3525 * mule-charset.c (syms_of_mule_charset): Delete charset alias
3526 `vietnamese-viscii-*'.
3528 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3530 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3531 (Qvietnamese_viscii_upper): New variable.
3532 (Fdefine_charset_alias): New function.
3533 (syms_of_mule_charset): Add new function `define-charset-alias'.
3534 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3535 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3538 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
3540 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3541 (MAX_CHAR_OBS_94x94): New macro.
3542 (breakup_char_1): Support obsolete XEmacs-UCS private code space
3545 * mule-charset.c (put_byte_from_character_table): Change unit size
3547 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3549 (Fmake_reverse_direction_charset): Modify dummy argument of
3550 `make_charset' for non-UTF-2000 environment.
3552 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3554 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3556 * mule-charset.c (destroy_byte_from_character_table): New macro.
3557 (latin_jisx0201_to_ucs): Deleted.
3558 (latin_iso8859_2_to_ucs): Deleted.
3559 (latin_iso8859_3_to_ucs): Deleted.
3560 (latin_iso8859_4_to_ucs): Deleted.
3561 (latin_iso8859_9_to_ucs): Deleted.
3562 (latin_viscii_lower_to_ucs): Deleted.
3563 (latin_viscii_upper_to_ucs): Deleted.
3564 (mark_charset): Mark `cs->decoding_table'.
3565 (Fcharset_mapping_table): Fix DOC-string.
3566 (Fset_charset_mapping_table): New function.
3567 (syms_of_mule_charset): Add nwe function
3568 `set-charset-mapping-table'.
3569 (complex_vars_of_mule_charset): Don't setup and use
3572 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
3574 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3577 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
3579 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3580 (Vcharset_katakana_jisx0208): New variable.
3581 (Qhiragana_jisx0208): New variable.
3582 (Qkatakana_jisx0208): New variable.
3583 (make_charset): Add new argument `byte_offset'.
3584 (charset_get_byte1): Modify for new coded-charset definition; use
3585 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3586 `XCHARSET_BYTE_OFFSET'.
3587 (Fmake_charset): Modify for `make_charset'.
3588 (Fmake_reverse_direction_charset): Likewise.
3589 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3590 `katakana-jisx0208'.
3591 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3592 `.' in font registry of charset `katakana-jisx0201',
3593 `latin-jisx0201', `vietnamese-viscii-lower' and
3594 `vietnamese-viscii-upper'; modify DOC-string of charset
3595 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3596 registry of charset `japanese-jisx0208' not to use font for JIS
3597 X0208:1990; add new charset `hiragana-jisx0208' and
3598 `katakana-jisx0208'.
3600 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3601 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3602 (struct Lisp_Charset): Add `byte_offset'.
3603 (CHARSET_BYTE_OFFSET): New macro.
3604 (XCHARSET_UCS_MIN): New macro.
3605 (XCHARSET_UCS_MAX): New macro.
3606 (XCHARSET_CODE_OFFSET): New macro.
3607 (XCHARSET_BYTE_OFFSET): New macro.
3608 (MIN_CHAR_HIRAGANA): New macro.
3609 (MAX_CHAR_HIRAGANA): New macro.
3610 (MIN_CHAR_KATAKANA): New macro.
3611 (MAX_CHAR_KATAKANA): New macro.
3612 (MAKE_CHAR): Modify for new coded-charset definition; use
3613 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3614 `XCHARSET_BYTE_OFFSET'.
3616 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3618 * mule-charset.c (CHAR96): Deleted.
3619 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3621 (latin_iso8859_2_to_ucs): Likewise.
3622 (latin_iso8859_3_to_ucs): Likewise.
3623 (latin_iso8859_4_to_ucs): Likewise.
3624 (latin_iso8859_9_to_ucs): Likewise.
3625 (latin_viscii_lower_to_ucs): Likewise.
3626 (latin_viscii_upper_to_ucs): Likewise.
3627 (latin_tcvn5712_to_ucs): Commented out.
3628 (make_charset): Change type of argument `decoding_table' from
3629 <Emchar*> to <Lisp_Object> [vector of characters].
3630 (Fmake_charset): Modify for `make_charset'.
3631 (Fmake_reverse_direction_charset): Likewise.
3632 (Fcharset_mapping_table): New function in UTF-2000.
3633 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3635 (complex_vars_of_mule_charset): Modify for type change of
3636 `*_to_ucs'; modify for `make_charset'.
3638 * char-ucs.h (struct Lisp_Charset): Change type of
3639 `decoding_table' from <Emchar*> to <Lisp_Object>.
3640 (MAKE_CHAR): Modify for new specification of `decoding_table'.
3642 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3644 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3645 error with non-UTF-2000-Mule.
3647 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
3649 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3651 (Vcharset_chinese_cns11643_4): Likewise.
3652 (Vcharset_chinese_cns11643_5): Likewise.
3653 (Vcharset_chinese_cns11643_6): Likewise.
3654 (Vcharset_chinese_cns11643_7): Likewise.
3655 (Qchinese_cns11643_3): Likewise.
3656 (Qchinese_cns11643_4): Likewise.
3657 (Qchinese_cns11643_5): Likewise.
3658 (Qchinese_cns11643_6): Likewise.
3659 (Qchinese_cns11643_7): Likewise.
3660 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3661 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3662 and `chinese-cns11643-7' to lisp/mule/chinese.el.
3663 (complex_vars_of_mule_charset): Likewise.
3665 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3667 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3669 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3670 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3672 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3674 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3676 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3677 (breakup_char_1): Likewise.
3679 * text-coding.c (char_encode_iso2022): Keep designated charsets if
3680 one of them includes the specified character.
3682 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3684 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3686 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3688 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3690 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3692 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3693 definition for non-UTF-2000 Mule.
3694 (latin_iso8859_3_to_ucs): Likewise.
3695 (latin_iso8859_4_to_ucs): Likewise.
3696 (latin_iso8859_9_to_ucs): Likewise.
3697 (latin_jisx0201_to_ucs): Likewise.
3698 (MIN_CHAR_THAI): Likewise.
3699 (MAX_CHAR_THAI): Likewise.
3700 (MIN_CHAR_GREEK): Likewise.
3701 (MAX_CHAR_GREEK): Likewise.
3702 (MIN_CHAR_HEBREW): Likewise.
3703 (MAX_CHAR_HEBREW): Likewise.
3704 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3705 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3706 (MIN_CHAR_CYRILLIC): Likewise.
3707 (MAX_CHAR_CYRILLIC): Likewise.
3709 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3711 * char-ucs.h (breakup_char_1): Use
3712 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3713 thai-tis620 and katakana-jisx0201 area.
3715 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3717 * char-ucs.h (breakup_char_1): Use
3718 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3721 * text-coding.c (reset_encoding_stream): Fixed.
3722 (char_encode_ucs4): Delete `& 255'.
3724 * char-ucs.h (breakup_char_1): Use
3725 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3727 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3729 * file-coding.c (Fmake_coding_system): Don't set up
3730 `codesys->fixed.size'.
3731 (encode_coding_no_conversion): Don't refer
3732 `str->codesys->fixed.size'.
3734 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3736 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3737 (latin_a_char_to_byte1): Deleted.
3738 (latin_a_char_to_byte2): Deleted.
3740 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3742 * mule-charset.c (make_charset): Add new argument `ucs_min',
3743 `ucs_max' and `code_offset'.
3744 (charset_get_byte1): New implementation [delete specific charset
3745 depended implementations].
3746 (Fmake_charset): Modify for `make_charset'.
3747 (Fmake_reverse_direction_charset): Likewise.
3748 (complex_vars_of_mule_charset): Likewise.
3750 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3752 (CHARSET_UCS_MIN): New macro.
3753 (CHARSET_UCS_MAX): New macro.
3754 (CHARSET_CODE_OFFSET): New macro.
3755 (MAKE_CHAR): Delete charset depended definitions [except
3758 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3760 * char-ucs.h (breakup_char_1): Use
3761 `Vdefault_coded_charset_priority_list' for C0-Controls,
3762 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3764 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3766 * char-ucs.h (charset_get_byte1): New function.
3767 (XCHARSET_GET_BYTE1): Deleted.
3768 (charset_get_byte2): New function.
3769 (XCHARSET_GET_BYTE2): Deleted.
3770 (Vdefault_coded_charset_priority_list): New external variable.
3771 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3772 `Vdefault_preferred_coded_charset_list'.
3774 * mule-charset.c (charset_get_byte1): New function.
3775 (charset_get_byte2): New function.
3776 (Vdefault_coded_charset_priority_list): New variable.
3777 (vars_of_mule_charset): Add new variable
3778 `default-coded-charset-priority-list'.
3780 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3782 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3783 (XCHARSET_GET_BYTE2): New inline function.
3784 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3785 `XCHARSET_GET_BYTE2'.
3787 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3789 * mule-charset.c (make_charset): Initialize
3790 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3791 NULL if table is not defined.
3793 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3795 * text-coding.c (char_encode_shift_jis): Use
3796 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3797 `ucs_to_latin_jisx0201'.
3799 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3800 (ucs_to_latin_iso8859_2): Deleted.
3801 (ucs_to_latin_iso8859_3): Deleted.
3802 (ucs_to_latin_iso8859_4): Deleted.
3803 (ucs_to_latin_iso8859_9): Deleted.
3804 (ucs_to_latin_viscii_lower): Deleted.
3805 (ucs_to_latin_viscii_upper): Deleted.
3806 (ucs_to_latin_tcvn5712): Deleted.
3807 (make_charset): Add new argument `decoding_table'; set up
3808 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3809 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3810 `decoding_table' is defined in UTF-2000.
3811 (Fmake_charset): Modify for `make_charset'.
3812 (Fmake_reverse_direction_charset): Likewise.
3813 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3814 and `GENERATE_96_SET'.
3816 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3817 (ucs_to_latin_jisx0201): Deleted.
3818 (latin_iso8859_2_to_ucs): Deleted.
3819 (ucs_to_latin_iso8859_2): Deleted.
3820 (latin_iso8859_3_to_ucs): Deleted.
3821 (ucs_to_latin_iso8859_3): Deleted.
3822 (latin_iso8859_4_to_ucs): Deleted.
3823 (ucs_to_latin_iso8859_4): Deleted.
3824 (latin_iso8859_9_to_ucs): Deleted.
3825 (ucs_to_latin_iso8859_9): Deleted.
3826 (latin_viscii_lower_to_ucs): Deleted.
3827 (ucs_to_latin_viscii_lower): Deleted.
3828 (latin_viscii_upper_to_ucs): Deleted.
3829 (ucs_to_latin_viscii_upper): Deleted.
3830 (struct Lisp_Charset): Renamed `encoding_table' to
3831 `to_byte1_table'; add `to_byte2_table'.
3832 (CHARSET_DECODING_TABLE): New macro.
3833 (CHARSET_TO_BYTE1_TABLE): New macro.
3834 (CHARSET_TO_BYTE2_TABLE): New macro.
3835 (XCHARSET_DECODING_TABLE): New macro.
3836 (XCHARSET_TO_BYTE1_TABLE): New macro.
3837 (XCHARSET_TO_BYTE2_TABLE): New macro.
3838 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3840 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3841 don't use `ucs_to_*' tables.
3843 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3845 * text-coding.c (Fmake_coding_system): Don't set up
3846 `codesys->fixed.size'.
3847 (encode_coding_no_conversion): Use `if' instead of `switch'.
3849 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3851 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3853 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3854 (Fmake_charset): Modify for `make_charset'.
3855 (Fmake_reverse_direction_charset): Likewise.
3856 (complex_vars_of_mule_charset): Likewise.
3858 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3860 * text-coding.c (char_encode_shift_jis): Use table
3861 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3863 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3865 * text-coding.c (text_encode_generic): Use `if' instead of
3867 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3870 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3872 * text-coding.c (encode_coding_sjis): Deleted.
3873 (char_encode_shift_jis): New function.
3874 (char_finish_shift_jis): New function.
3875 (reset_encoding_stream): Set up `encode_char' and `finish' for
3876 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3877 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3878 (char_encode_utf8): Treat `eol_type'.
3880 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3882 * file-coding.c (decode_coding_iso2022): Use
3883 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3885 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3887 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3890 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3892 * char-lb.h (CHAR_COLUMNS): New macro.
3894 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3896 * text-coding.c (char_encode_ucs4): New function.
3897 (char_finish_ucs4): New function.
3898 (encode_coding_ucs4): Deleted.
3899 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3900 (text_encode_generic): Delete local variable `charset' and `half'.
3901 (ucs_to_mule_table): Deleted.
3902 (mule_to_ucs_table): Deleted.
3903 (Fset_ucs_char): Deleted.
3904 (ucs_to_char): Deleted.
3905 (Fucs_char): Deleted.
3906 (Fset_char_ucs): Deleted.
3907 (Fchar_ucs): Deleted.
3908 (decode_ucs4): Deleted.
3909 (mule_char_to_ucs4): Deleted.
3910 (encode_ucs4): Deleted.
3911 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3912 (decode_coding_utf8): Likewise.
3913 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3914 (char_encode_iso2022): Fixed.
3915 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3916 `Fset_char_ucs' and `Fchar_ucs'.
3917 (complex_vars_of_file_coding): Don't initialize
3918 `ucs_to_mule_table'.
3920 * objects-tty.c (tty_initialize_font_instance): Don't use
3923 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3926 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3927 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3929 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3930 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3931 (emchar_string_displayed_columns): Likewise.
3933 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3934 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3935 (string_column_at_point): Likewise.
3936 (Fmove_to_column): Likewise.
3938 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3939 `encoding_table' and `decoding_table'.
3940 (CHARSET_REP_BYTES): Deleted.
3941 (XCHARSET_REP_BYTES): Deleted.
3942 (XCHARSET_COLUMNS): Deleted.
3943 (CHAR_COLUMNS): New macro.
3944 (lookup_composite_char): Deleted unconditionally.
3945 (composite_char_string): Likewise.
3947 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3949 * char-ucs.h (Emchar_to_byte_table): New type.
3950 (get_byte_from_character_table): New function interface.
3951 (Vcharset_latin_jisx0201): New variable.
3952 (latin_jisx0201_to_ucs): New variable.
3953 (ucs_to_latin_jisx0201): New variable.
3954 (Vcharset_latin_iso8859_2): New variable.
3955 (latin_iso8859_2_to_ucs): New variable.
3956 (ucs_to_latin_iso8859_2): New variable.
3957 (Vcharset_latin_iso8859_3): New variable.
3958 (latin_iso8859_3_to_ucs): New variable.
3959 (ucs_to_latin_iso8859_3): New variable.
3960 (Vcharset_latin_iso8859_4): New variable.
3961 (latin_iso8859_4_to_ucs): New variable.
3962 (ucs_to_latin_iso8859_4): New variable.
3963 (Vcharset_latin_iso8859_9): New variable.
3964 (latin_iso8859_9_to_ucs): New variable.
3965 (ucs_to_latin_iso8859_9): New variable.
3966 (Vcharset_latin_viscii_lower): New variable.
3967 (latin_viscii_lower_to_ucs): New variable.
3968 (ucs_to_latin_viscii_lower): New variable.
3969 (Vcharset_latin_viscii_upper): New variable.
3970 (latin_viscii_upper_to_ucs): New variable.
3971 (ucs_to_latin_viscii_upper): New variable.
3972 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3973 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3974 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3975 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3976 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3977 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3978 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3979 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3980 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3981 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3983 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3984 (Vcharset_latin_viscii_upper): New variable.
3985 (make_byte_from_character_table): New function.
3986 (put_byte_from_character_table): New function.
3987 (get_byte_from_character_table): New function.
3988 (CHAR96): New macro.
3989 (ucs_to_latin_jisx0201): New variable.
3990 (latin_jisx0201_to_ucs): New variable.
3991 (ucs_to_latin_iso8859_2): New variable.
3992 (latin_iso8859_2_to_ucs): New variable.
3993 (ucs_to_latin_iso8859_3): New variable.
3994 (latin_iso8859_3_to_ucs): New variable.
3995 (ucs_to_latin_iso8859_4): New variable.
3996 (latin_iso8859_4_to_ucs): New variable.
3997 (ucs_to_latin_iso8859_9): New variable.
3998 (latin_iso8859_9_to_ucs): New variable.
3999 (ucs_to_latin_viscii_lower): New variable.
4000 (latin_viscii_lower_to_ucs): New variable.
4001 (ucs_to_latin_viscii_upper): New variable.
4002 (latin_viscii_upper_to_ucs): New variable.
4003 (ucs_to_latin_tcvn5712): New variable.
4004 (latin_tcvn5712_to_ucs): New variable.
4005 (Qlatin_viscii_lower): New variable.
4006 (Qlatin_viscii_upper): New variable.
4007 (syms_of_mule_charset): Set up new symbol
4008 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4009 (complex_vars_of_mule_charset): Set up new charset
4010 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4011 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4012 `ucs_to_<CHARSET>' tables.
4014 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
4016 * text-coding.c: New file.
4018 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
4020 * mule-charset.c (Fmake_char): Fix problem of 256-set.
4022 * char-ucs.h (Vcharset_ucs_bmp): New variable.
4023 (MAKE_CHAR): Modify for `ucs-bmp'.
4024 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4025 non-MULE characters of BMP.
4027 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
4029 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4032 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
4035 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4036 - Include character.h for `CHAR_ASCII_P'.
4038 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4040 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4041 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4043 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4044 (BYTE_C0_P): Likewise.
4045 (BYTE_C1_P): Likewise.
4046 (Lstream_get_emchar_1): Likewise.
4047 (Lstream_fput_emchar): Likewise.
4048 (Lstream_funget_emchar): Likewise.
4049 (copy_internal_to_external): Likewise.
4050 (copy_external_to_internal): Likewise.
4052 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4053 (BYTE_C0_P): Likewise.
4054 (BYTE_C1_P): Likewise.
4055 (Lstream_get_emchar_1): Likewise.
4056 (Lstream_fput_emchar): Likewise.
4057 (Lstream_funget_emchar): Likewise.
4058 (copy_internal_to_external): Likewise.
4059 (copy_external_to_internal): Likewise.
4061 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4062 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4064 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4065 (BYTE_ASCII_P): Moved to mb-1byte.h.
4067 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
4069 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4071 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4072 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4073 (VALID_CHARPTR_P): Moved to mb-*byte.h.
4074 (VALIDATE_CHARPTR_BACKWARD): Likewise.
4075 (VALIDATE_CHARPTR_FORWARD): Likewise.
4076 (simple_charptr_emchar): Moved to mb-multibyte.h.
4077 (simple_set_charptr_emchar): Likewise.
4078 (simple_charptr_copy_char): Likewise.
4079 (non_ascii_charptr_emchar): Likewise.
4080 (non_ascii_set_charptr_emchar): Likewise.
4081 (non_ascii_charptr_copy_char): Likewise.
4082 (charptr_emchar): Moved to mb-*byte.h.
4083 (set_charptr_emchar): Likewise.
4084 (charptr_copy_char): Likewise.
4086 * mb-1byte.h, mb-multibyte.h: New files.
4088 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
4090 * mb-utf-8.h (MULTIBYTE): New macro.
4091 (MAX_EMCHAR_LEN): Moved from buffer.h.
4092 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4094 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4096 * mb-lb.h, multibyte.h: New files.
4098 * char-1byte.h (Charset_ID): Moved from buffer.h.
4099 (MIN_LEADING_BYTE): Likewise.
4100 (LEADING_BYTE_ASCII): Likewise.
4101 (NUM_LEADING_BYTES): Likewise.
4102 (CHARSETP): Likewise.
4103 (CHARSET_BY_LEADING_BYTE): Likewise.
4104 (XCHARSET_LEADING_BYTE): Likewise.
4105 (XCHARSET_GRAPHIC): Likewise.
4106 (XCHARSET_COLUMNS): Likewise.
4107 (XCHARSET_DIMENSION): Likewise.
4108 (CHAR_CHARSET): Likewise.
4109 (CHAR_LEADING_BYTE): Likewise.
4110 (BREAKUP_CHAR): Likewise.
4111 (Vcharset_ascii): Likewise.
4113 * buffer.h: Include multibyte.h unconditionally.
4114 (VALID_CHARPTR_P): Moved to multibyte.h.
4115 (ASSERT_VALID_CHARPTR): Likewise.
4116 (REAL_INC_CHARPTR): Likewise.
4117 (REAL_INC_CHARBYTIND): Likewise.
4118 (REAL_DEC_CHARPTR): Likewise.
4119 (INC_CHARPTR): Likewise.
4120 (INC_CHARBYTIND): Likewise.
4121 (DEC_CHARPTR): Likewise.
4122 (VALIDATE_CHARPTR_BACKWARD): Likewise.
4123 (VALIDATE_CHARPTR_FORWARD): Likewise.
4124 (charptr_n_addr): Likewise.
4125 (MAX_EMCHAR_LEN): Moved to mb-*.h.
4126 (simple_charptr_emchar): Moved to multibyte.h.
4127 (simple_set_charptr_emchar): Likewise.
4128 (simple_charptr_copy_char): Likewise.
4129 (non_ascii_charptr_emchar): Likewise.
4130 (non_ascii_set_charptr_emchar): Likewise.
4131 (non_ascii_charptr_copy_char): Likewise.
4132 (charptr_emchar): Likewise.
4133 (set_charptr_emchar): Likewise.
4134 (charptr_copy_char): Likewise.
4135 (charptr_emchar_n): Likewise.
4136 (Charset_ID): Moved to char-1byte.h.
4137 (Vcharset_ascii): Likewise.
4138 (CHAR_CHARSET): Likewise.
4139 (CHAR_LEADING_BYTE): Likewise.
4140 (LEADING_BYTE_ASCII): Likewise.
4141 (NUM_LEADING_BYTES): Likewise.
4142 (MIN_LEADING_BYTE): Likewise.
4143 (CHARSETP): Likewise.
4144 (CHARSET_BY_LEADING_BYTE): Likewise.
4145 (XCHARSET_LEADING_BYTE): Likewise.
4146 (XCHARSET_GRAPHIC): Likewise.
4147 (XCHARSET_COLUMNS): Likewise.
4148 (XCHARSET_DIMENSION): Likewise.
4149 (BREAKUP_CHAR): Likewise.
4151 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4153 * character.h: Add document about interface for characters.
4155 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4156 (MAKE_CHAR): Delete comment about
4157 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4158 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4159 (BREAKUP_CHAR): Modify name of arguments.
4160 (CHAR_CHARSET): Modify name of argument.
4162 * buffer.h: Delete document about Emchar accessors.
4164 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4166 * character.h (CHAR_INTP): Moved from buffer.h
4167 (CHAR_OR_CHAR_INTP): Likewise.
4168 (XCHAR_OR_CHAR_INT): Likewise.
4169 (CHECK_CHAR_COERCE_INT): Likewise.
4171 * buffer.h (CHAR_INTP): Moved to character.h
4172 (CHAR_OR_CHAR_INTP): Likewise.
4173 (XCHAR_OR_CHAR_INT): Likewise.
4174 (CHECK_CHAR_COERCE_INT): Likewise.
4176 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4179 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4180 - Include char-1byte.h, char-lb.h or char-ucs.h.
4182 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4184 * buffer.h: Include character unconditionally.
4185 (valid_char_p): Moved to char-*.h.
4186 (non_ascii_valid_char_p): Moved to char-lb.h.
4188 * char-1byte.h, char-lb.h, char-ucs.h: New files.
4190 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4192 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4193 in UTF-2000 because it is not ported yet and not to use
4194 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4195 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4196 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4198 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4199 (CHAR_ASCII_P): Moved from character.h.
4201 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4202 (CHAR_ASCII_P): Likewise.
4203 (CHAR_FIELD1_MASK): Deleted.
4204 (CHAR_FIELD2_MASK): Deleted.
4205 (CHAR_FIELD3_MASK): Deleted.
4206 (MAX_CHAR_BASIC_LATIN): New macro.
4207 (CHAR_FIELD1): Deleted.
4208 (CHAR_FIELD2_INTERNAL): Deleted.
4209 (CHAR_FIELD3_INTERNAL): Deleted.
4210 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4211 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4212 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4213 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4214 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4215 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4216 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4217 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4218 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4219 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4220 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4221 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4222 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4223 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4224 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4225 (MIN_CHAR_COMPOSITION): Deleted.
4226 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4227 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4229 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
4231 * buffer.h: Include mb-utf-8.h in UTF-2000.
4233 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4235 * mb-utf-8.h: New file.
4237 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
4239 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4242 * mule-charset.h, buffer.h (Charset_ID): New type.
4244 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
4246 * mule-canna.c (c2mu): Use `MAKE_CHAR',
4247 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4248 instead of `MULE_CHAR_PRIVATE_OFFSET',
4249 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4250 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4251 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4253 * character.h (Vcharset_japanese_jisx0212): New variable
4256 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
4258 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4259 (charset_by_attributes): Delete array about direction.
4260 (latin_a_char_to_charset): New variable in UTF-2000.
4261 (latin_a_char_to_byte1): New variable in UTF-2000.
4262 (latin_a_char_to_byte2): New variable in UTF-2000.
4263 (Qucs_bmp): New variable.
4264 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4266 (next_allocated_2_byte_leading_byte): Likewise.
4267 (non_ascii_set_charptr_emchar): Likewise.
4268 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4269 `CHARSET_TYPE_256X256' in UTF-2000; modify for
4270 `charset_by_attributes'.
4271 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4272 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4273 and `CHARSET_BY_LEADING_BYTE'.
4274 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4275 `utf-2000-version' to `vars_of_mule_charset'.
4276 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4277 define `leading-code-private-11' in UTF-2000; move setting of
4278 `utf-2000-version' from `syms_of_mule_charset'.
4279 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4282 * character.h (Charset_ID): New type.
4283 (LEADING_BYTE_UCS_BMP): New macro.
4284 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4285 (CHARSET_ID_OFFSET_94): New macro.
4286 (MIN_CHARSET_ID_PRIVATE_94): New macro.
4287 (MAX_CHARSET_ID_PRIVATE_94): New macro.
4288 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4290 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4291 (LEADING_BYTE_LATIN_JISX0201): Likewise.
4292 (CHARSET_ID_OFFSET_96): New macro.
4293 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4294 CHARSET_ID_OFFSET_96 and final-byte.
4295 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4296 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4297 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4298 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4299 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4300 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4301 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4302 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4303 (LEADING_BYTE_THAI_TIS620): Likewise.
4304 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4305 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4306 (CHARSET_ID_OFFSET_94x94): New macro.
4307 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4308 CHARSET_ID_OFFSET_94x94 and final-byte.
4309 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4310 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4311 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4312 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4313 (LEADING_BYTE_CHINESE_GB2312): Likewise.
4314 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4315 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4316 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4317 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4318 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4319 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4320 (CHARSET_TYPE_128X128): New macro.
4321 (CHARSET_TYPE_256X256): New macro.
4322 (XCHARSET_PRIVATE_P): Delete unconditionally.
4323 (charset_by_attributes): Delete array about direction.
4324 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4325 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4326 (MIN_CHAR_94): New macro.
4327 (MAX_CHAR_94): New macro.
4328 (MIN_CHAR_96): New macro.
4329 (MAX_CHAR_96): New macro.
4330 (MIN_CHAR_94x94): New macro.
4331 (MAX_CHAR_94x94): New macro.
4332 (MIN_CHAR_96x96): New macro.
4333 (MAX_CHAR_96x96): New macro.
4334 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4335 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4336 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4338 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4339 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4340 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4341 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4342 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4343 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4344 `XCHARSET_LEADING_BYTE' to make code-point.
4345 (latin_a_char_to_charset): New variable.
4346 (latin_a_char_to_byte1): New variable.
4347 (latin_a_char_to_byte2): New variable.
4348 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4349 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4350 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4352 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4353 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4354 (find_charsets_in_emchar_string): Likewise.
4355 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4357 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4359 (decode_coding_iso2022): Likewise.
4361 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4364 * redisplay.c (redisplay_text_width_emchar_string): Use
4365 `Charset_ID' instead of `unsigned char'.
4366 (redisplay_frame_text_width_string): Likewise.
4368 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4371 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4372 instead of `unsigned char'.
4373 (face_cachel_charset_font_metric_info): Likewise.
4375 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4376 (get_non_ascii_char_table_value): Likewise.
4377 (get_char_table): Likewise.
4378 (put_char_table): Likewise.
4379 (map_over_other_charset): Likewise.
4380 (map_char_table): Likewise.
4382 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4383 instead of `unsigned char'.
4385 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
4387 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4388 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4390 * mule-charset.c (leading_code_private_11): Don't define in
4393 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4394 in UTF-2000 because it is not ported yet and not to use
4395 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4397 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
4399 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4401 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4403 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4406 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4407 of unsigned char to store leading-byte.
4409 * chartab.c (get_non_ascii_char_table_value): Don't use
4410 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4412 * file-coding.c (encode_coding_big5): Delete bogus implementation
4415 * character.h (LEADING_BYTE_*): Delete definition for
4417 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4418 (LEADING_BYTE_PREFIX_P): Deleted.
4419 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4420 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4421 (BUFBYTE_LEADING_BYTE_P): Deleted.
4422 (CHARSET_PRIVATE_P): Deleted unconditionally.
4423 (rep_bytes_by_first_byte): Deleted unconditionally.
4424 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4425 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4426 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4427 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4428 (CHAR_FIELD2): Deleted.
4429 (CHAR_FIELD3): Deleted.
4430 (MAKE_CHAR): Delete definition for non-UTF-2000.
4431 (BREAKUP_CHAR_1_UNSAFE): Deleted.
4432 (breakup_char_1): New implementation.
4433 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4434 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4436 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4438 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4441 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4443 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4444 (CHARSET_PRIVATE_P): Likewise.
4445 (XCHARSET_PRIVATE_P): Likewise.
4446 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4448 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4450 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4452 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4454 * character.h (LEADING_BYTE_*): Changed in UTF2000.
4455 (NUM_LEADING_BYTES): Changed from 128 to 256.
4456 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4457 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4459 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4461 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4463 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4464 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4465 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4466 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4467 (Qchinese_cns11643_3): New variable in UTF2000.
4468 (Qchinese_cns11643_4): New variable in UTF2000.
4469 (Qchinese_cns11643_5): New variable in UTF2000.
4470 (Qchinese_cns11643_6): New variable in UTF2000.
4471 (Qchinese_cns11643_7): New variable in UTF2000.
4472 (syms_of_mule_charset): Define `chinese-cns11643-3',
4473 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4474 and `chinese-cns11643-7' in UTF2000.
4475 (vars_of_mule_charset): Initialize
4476 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4478 (complex_vars_of_mule_charset): Setup charset
4479 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4480 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4482 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4484 * mule-charset.c: Move setting for `leading-code-private-11' from
4485 `syms_of_mule_charset' to `vars_of_mule_charset'.
4487 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4489 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4490 and `NUM_LEADING_BYTES' in assert.
4492 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4494 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4496 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4497 `NUM_LEADING_BYTES' instead of 128.
4499 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
4501 * mule-charset.h (charset_by_leading_byte): Use
4502 `NUM_LEADING_BYTES' instead of 128.
4503 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4505 * mule-charset.c (charset_by_leading_byte): Use
4506 `NUM_LEADING_BYTES' instead of 128.
4507 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4509 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4512 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4514 * mule-charset.c (syms_of_mule_charset): Update to
4517 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4519 * file-coding.c (encode_coding_sjis): New implementation for
4520 UTF2000. (decode_coding_sjis): Ditto.
4522 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4524 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4525 Don't define in UTF2000.
4527 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4530 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4531 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4534 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4536 * config.h.in (CHAR_IS_UCS4): New macro.
4538 * mule-charset.c (rep_bytes_by_first_byte): Modify for
4539 conventional MULE representation.
4540 (syms_of_mule_charset): Update to 0.3 (Imamiya).
4542 * mule-charset.h: Reverted to original.
4544 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4545 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4546 "mule-charset.h" if CHAR_IS_UCS4 is defined.
4548 * character.h: New file.
4550 * file-coding.c (Fmake_coding_system): Set 1 to
4551 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4553 (encode_coding_no_conversion): New implementation for UTF2000.
4555 * file-coding.h (struct Lisp_Coding_System): Add new member
4558 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
4560 * file-coding.c (decode_coding_iso2022): Code-point arguments of
4561 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4562 (encode_coding_iso2022): New implementation for UTF2000.
4564 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4566 * mule-canna.c (c2mu): New implementation for UTF2000.
4569 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4571 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4573 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4575 * file-coding.c (reset_encoding_stream): Set 0 to
4576 `str->iso2022.current_char_boundary' in UTF2000.
4577 (encode_utf8): Don't define in UTF2000.
4578 (encode_coding_utf8): New implementation for UTF-8 representation
4580 (complex_vars_of_file_coding): Define coding-system `utf-8'.
4582 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4584 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4586 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4588 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4590 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4592 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4593 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4594 as UTF-8 in UTF2000.
4595 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4596 (non_ascii_valid_char_p): Don't define in UTF2000.
4597 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4598 (Lstream_get_emchar_1): Likewise.
4599 (utf-2000-version): New variable in UTF2000.
4601 * lread.c (read_escape): Add new reader `u'.
4603 * insdel.c (three_to_one_table): Don't define in UTF2000.
4604 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4605 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4607 (bytind_to_bufpos_func): Likewise.
4608 (buffer_mule_signal_inserted_region): Likewise.
4609 (vars_of_insdel): Don't initialize `three_to_one_table'.
4610 (init_buffer_text): Use `buf->text->mule_size' instead of
4611 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4614 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4615 UTF-8 representation in UTF2000.
4616 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4617 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4618 (decode_coding_iso2022): Don't define local variable `lb' in
4619 UTF2000; don't use LEADING_BYTE in UTF2000; use
4620 `DECODE_ADD_UCS_CHAR' in UTF2000.
4621 (convert_to_external_format): Decode as UTF-8 in UTF2000.
4623 * config.h.in (UTF2000): New macro.
4625 * buffer.h (struct buffer_text): Add new member `mule_size' and
4626 don't add `mule_shifter' and `mule_three_p' in UTF2000.
4627 (valid_char_p): Return always 1 in UTF2000.
4628 (MAX_EMCHAR_LEN): 6 in UTF2000.
4629 (three_to_one_table): Don't define in UTF2000.
4630 (real_bufpos_to_bytind): Modify for UTF-8 representation in
4632 (real_bytind_to_bufpos): Likewise.
4634 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4636 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4638 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4639 representation change.
4640 (Vutf_2000_version): New variable.
4641 (leading_code_private_11): New variable.
4642 (syms_of_mule_charset): Add new variables `utf-2000-version' and
4643 `leading-code-private-11'.
4645 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4646 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4647 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4648 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4649 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4650 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4651 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4652 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4653 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4654 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4655 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4656 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4657 (MIN_CHAR_GREEK): New macro.
4658 (MAX_CHAR_GREEK): New macro.
4659 (MIN_CHAR_CYRILLIC): New macro.
4660 (MAX_CHAR_CYRILLIC): New macro.
4661 (MIN_CHAR_HEBREW): New macro.
4662 (MAX_CHAR_HEBREW): New macro.
4663 (MIN_CHAR_THAI): New macro.
4664 (MAX_CHAR_THAI): New macro.
4665 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4666 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4667 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4668 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4669 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4670 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4671 (CHAR_FIELD2): New inline function.
4672 (CHAR_FIELD3): New inline function.
4673 (MULE_CHAR_PRIVATE_OFFSET): New macro.
4674 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4675 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4676 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4677 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4678 (MIN_CHAR_COMPOSITION): Likewise.
4679 (CHAR_LEADING_BYTE): Modified for character representation change.
4680 (MAKE_CHAR): Likewise.
4682 * lisp.h (Vcharset_latin_iso8859_1): New variable.
4683 (Vcharset_greek_iso8859_7): Likewise.
4684 (Vcharset_cyrillic_iso8859_5): Likewise.
4685 (Vcharset_hebrew_iso8859_8): Likewise.
4686 (Vcharset_thai_tis620): Likewise.
4687 (Vcharset_katakana_jisx0201): Likewise.
4689 2003-01-03 Stephen J. Turnbull <stephen@xemacs.org>
4691 * XEmacs 21.4.11 "Native Windows TTY Support" is released.
4693 2002-12-14 Ben Wing <ben@xemacs.org>
4695 * callint.c: Declaration error.
4697 * dumper.c (pdump_load): Warning fix.
4698 * process.c: GCPRO error.
4699 * glyphs.c (unmap_subwindow):
4700 * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
4701 * event-stream.c (maybe_kbd_translate): Wrong argument to
4702 character_to_event().
4704 * alloc.c (garbage_collect_1):
4706 * emacs.c (debug_can_access_memory):
4707 * emacs.c (fatal_error_signal):
4708 * emacs.c (mswindows_handle_hardware_exceptions):
4711 * emacs.c (assert_failed):
4712 * emacs.c (syms_of_emacs):
4715 * print.c (std_handle_out_va):
4716 * print.c (write_string_to_stdio_stream):
4717 * print.c (write_fmt_string):
4718 * print.c (printing_badness):
4719 * print.c (printing_major_badness):
4720 * print.c (print_internal):
4721 * print.c (debug_print_no_newline):
4722 * print.c (debug_backtrace):
4723 Be more defensive in handling bad values when printing. Add code
4724 from trunk involving inhibit_non_essential_printing_operations.
4725 When going down or in debug_print(), don't do external conversion
4726 and such and try really, really hard when printing to avoid core
4727 dumping. Add force-debugging-signal, debug_break().
4729 2002-12-12 Stephen J. Turnbull <stephen@xemacs.org>
4731 * dumper.c (pdump_load): Include sysdep.h; retry with truename.
4732 Analysis and original patch by Vin Shelton <acs@xemacs.org>.
4734 2002-12-02 Greg Allen <greg_allen@westlb-systems.co.uk>
4736 * database.c: Fix open_database. Berkeley DB API has changed in
4737 4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
4739 2002-11-26 Stephen J. Turnbull <stephen@xemacs.org>
4741 * specifier.c (Fvalid_specifier_type_p): Typo in comment.
4743 2002-11-13 Stephen J. Turnbull <stephen@xemacs.org>
4745 * event-Xt.c (Xt_timeout):
4746 (Xt_timeout_callback):
4747 (emacs_Xt_add_timeout):
4748 (emacs_Xt_remove_timeout):
4749 (Xt_timeout_to_emacs_event):
4750 Turn completed_timeouts from a stack into a queue. Fixes
4751 deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
4753 2002-11-07 Wolfram Gloger <wg@malloc.de>
4755 * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
4756 * emacs.c (main): Assert that mmap'd allocation is disabled.
4758 2002-10-14 Andy Piper <andy@xemacs.org>
4760 * glyphs-widget.c (layout_query_geometry): add in fiddle
4761 factor. Include border text in width layout calculation.
4762 (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
4764 2002-11-02 Stephen J. Turnbull <stephen@xemacs.org>
4766 * XEmacs 21.4.10 "Military Intelligence" is released.
4768 2002-10-17 Raymond Toy <toy@rtp.ericsson.se>
4770 * nas.c: Update for NAS 1.6 and later, from Jon Trulson. Was
4771 using the NAS private array SoundFileInfo that no longer exists in
4772 NAS 1.6 and later. Preserve backward compatibility with NAS 1.5a
4773 and earlier. This is broken for some versions between 1.5a and
4776 2002-10-10 Stephen J. Turnbull <stephen@xemacs.org>
4778 * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4780 * emacs.c (shut_down_emacs): Improve crash message.
4782 2002-10-09 Stephen J. Turnbull <stephen@xemacs.org>
4784 * file-coding.c (determine_real_coding_system): Check for coding
4785 cookie in first LINES_TO_CHECK lines (currently 2). Cater to
4786 shebangs and Python PEP 263.
4788 2002-10-08 Andy Piper <andy@xemacs.org>
4790 * glyphs-widget.c (layout_query_geometry): only resize dynamically
4791 if static sizes haven't been set.
4793 2002-08-30 Mike Alexander <mta@arbortext.com>
4795 * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4798 2002-10-03 Stephen J. Turnbull <stephen@xemacs.org>
4800 * callproc.c (child_setup): 21.4 doesn't have retry_close.
4802 2002-09-20 Mike Sperber <mike@xemacs.org>
4804 (This partially gets back my patch from 2002-07-20 without the
4806 * callproc.c (child_setup): Remove Ben's comment noting confusion
4807 over the file descriptors >= 3: close_process_descs() doesn't
4808 close those. Fix fd range to go up to MAXDESC-1 instead of 64.
4809 * process-unix.c (unix_create_process): Call
4810 begin_dont_check_for_quit to inhibit unwanted interaction (and
4811 thus breaking of X event synchronicity) in the child.
4813 2002-09-26 Golubev I. N. <gin@mo.msk.ru>
4815 * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4818 2002-08-20 Ben Sigelman <bhsigelm@cs.brown.edu>
4820 * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4821 instead of while(XtAppPending()&XtIMXEvent). Upon a gdm logout,
4822 the xemacs process did not exit, but looped infinitely here. This
4825 2002-09-28 Stephen J. Turnbull <stephen@xemacs.org>
4827 * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4828 (find_context): Improve comments.
4830 * regex.c (re_compile_fastmap): Gratuitous #ifdef comment fixes.
4831 (re_match_2): An XCHAR_TABLE operation was missing.
4833 Many of the following changes were inspired by Andy Piper's (now
4834 obsolete) patch to make syntax-table text property lookup optional.
4838 * syntax.h (top level): Document semantics of syntax flags.
4839 * syntax.c (comstr_start, Fforward_comment): Improve comments.
4840 * syntax.c, syntax.h (top level): Document syntax cache better in
4843 [Instrument syntax caching (temporary change)]
4845 * syntax.h (enum syntax_cache_statistics_functions, struct
4846 syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4847 SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4848 * syntax.c (scan_words, Fforward_comment, scan_lists,
4849 Fbackward_prefix_characters):
4850 * font-lock.c (find_context):
4851 Use them to instrument syntax caching.
4852 * syntax.c (struct syntax_cache_statistics, scs_statistics,
4853 syntax_cache_statistics_function_names): New type and variables.
4854 * syntax.c (update_syntax_cache): Update and report statistics.
4856 [Major syntax cache optimizations]
4858 syntax.c (lookup_syntax_properties): Default off.
4860 * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4861 * syntax.c (update_syntax_cache):
4862 Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4864 [Minor syntax cache optimizations and code clarifications]
4866 * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4867 SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4868 SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4869 SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4870 SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4871 (Code clarification.)
4873 * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4874 scan_lists): Compute code from syncode, use Boolean macros instead
4875 of redundant masking operations. (Code clarification; any decent
4876 compiler can do this optimization.)
4878 * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4881 * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4882 PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4883 use F*_single_property_change instead of F*_extent_change.
4884 Currently F*_single_property_change is _much_ less efficient.
4886 * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4887 * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT): Initialize
4888 syntax_cache.object properly, don't leave Qt or Qnil.
4889 (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4890 * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4891 tests for Qt or Qnil.
4893 2002-09-21 Stephen J. Turnbull <stephen@xemacs.org>
4895 * redisplay.c (point_in_line_start_cache):
4896 * extents.c (print_extent_1):
4899 * extents.c (Fset_extent_property): Document `syntax-table' property.
4901 * extents.h (Fnext_single_property_change): EXFUN it.
4903 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
4905 * search.c (clear_unused_search_regs): New static function.
4909 Use it. Fixes "stale match data" bug reported by Martin Stjernholm.
4910 Minor clarifications in comments.
4912 * regex.c (re_match_2_internal): Ensure no stale submatches.
4914 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
4916 * event-Xt.c (enqueue_focus_event): Add missing prototype.
4918 2002-08-29 Jerry James <james@xemacs.org>
4920 * lisp.h: structrures -> structures.
4922 2002-06-03 Andy Piper <andy@xemacs.org>
4924 * frame.c (frame_conversion_internal): add conversion appropriate
4925 for setting frame dimensions in pixels.
4927 * console.h (struct console_methods): add device-specific widget
4930 * emacs.c (main_1): initialize glyph vars.
4932 * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
4933 (handle_focus_event_2): new function. Allow focus to
4934 be set to a particular window and widget.
4935 (enqueue_focus_event): new function. Create a
4936 synthetic focus event.
4937 (emacs_Xt_handle_magic_event): call
4938 handle_focus_event_2.
4940 * frame.c (Fset_frame_pixel_height): new function. Allow
4941 pixel-based sizing. Does the right thing on character-oriented
4943 (Fset_frame_pixel_width): ditto.
4944 (Fset_frame_pixel_size): ditto.
4945 (syms_of_frame): declare.
4947 * general-slots.h: add :vertically-justify and
4948 :horizontally-justify.
4950 * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
4951 (mswindows_widget_border_width): new function.
4952 (mswindows_combo_box_instantiate): set border widths.
4953 (console_type_create_glyphs_mswindows): declare.
4956 (check_valid_justification): allow vertical and horizontal
4958 (widget_border_width): new function. Call device methods.
4959 (widget_instance_border_width): ditto.
4960 (logical_unit_height): new function. Determine the height of a
4961 logical-unit. Logical units are intended to provide grid-like
4962 layout for subcontrols in a layout. If the layout is
4963 :vertically-justify top then subcontrols will be positioned on
4964 logical-unit boundaries, thus allowing adjacent subcontrols to
4966 (widget_logical_unit_height): ditto for widgets.
4967 (redisplay_widget): misc cleanup.
4968 (widget_spacing): new function. Call device specific
4969 methods. Intended to be the default gap between adjacent widgets.
4970 (widget_query_geometry): use new spacing functions to determine
4971 appropriate geometry.
4972 (initialize_widget_image_instance): initialize horizontal and
4973 vertical justification.
4974 (widget_instantiate): use logica-units where appropriate for
4975 sizing large widgets.
4976 (button_query_geometry): use widget_instance_border_width.
4977 (tree_view_query_geometry): ditto.
4978 (tab_control_query_geometry): ditto.
4979 (edit_field_query_geometry): new function.
4980 (layout_update): pick up :justify, :horizontally-justify and
4981 :vertically-justify none of which worked previously. :justify is
4982 used as a fallback for both horizontal and vertical justification.
4983 (layout_query_geometry): use logical units to size appropriately.
4984 (layout_layout): ditto.
4985 (Fwidget_logical_to_character_width): new function. Allow users to
4986 convert from logical units to characters so that frame sizes can
4987 be set appropriately.
4988 (Fwidget_logical_to_character_height): ditto.
4989 (syms_of_glyphs_widget): declare.
4990 (image_instantiator_edit_fields): add edit_field_query_geometry.
4991 (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
4992 :horizontally-justify.
4993 (specifier_vars_of_glyphs_widget): new function. Declare
4994 Vwidget_border_width which is not yet used.
4996 * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
4997 (x_widget_border_width): new function.
4998 (x_widget_instantiate): create a sensible name for widgets.
4999 (console_type_create_glyphs_x): declare x_widget_border_width.
5001 * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5002 (struct Lisp_Image_Instance): add :vertically-justify and
5003 :horizontally-justify.
5004 (LAYOUT_JUSTIFY_TOP): new.
5005 (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5006 (ROUND_UP): new macro. Round argument up to next integral
5009 * redisplay-output.c (redisplay_output_layout): misc formatting.
5011 * symsinit.h: declare specifier_vars_of_glyphs_widget.
5013 2002-08-23 Stephen J. Turnbull <stephen@xemacs.org>
5015 * XEmacs 21.4.9 "Informed Management" is released.
5017 2002-08-19 Andy Piper <andy@xemacs.org>
5019 * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5022 * realpath.c (xrealpath): normalize drive spec also so that dir
5023 sep chars are not mixed on cygwin.
5025 2002-08-06 Jerry James <james@xemacs.org>
5027 * window.c (Fsplit_window): Count only half of the divider width
5028 against the left window when splitting horizontally.
5030 2002-06-24 Andy Piper <andy@xemacs.org>
5032 * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5033 toolbar was cleared.
5035 * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5036 function. Split out from mswindows_output_frame_toolbars.
5037 (mswindows_output_frame_toolbars): move clear pieces to
5038 mswindows_output_frame_toolbars.
5040 * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5041 out from gtk_output_frame_toolbars.
5042 (gtk_output_frame_toolbars): move clear pieces to
5043 gtk_clear_frame_toolbars.
5045 * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5046 the frame is cleared. How this ever worked before is a mystery.
5047 (x_output_frame_toolbars): Only output toolbars.
5048 (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5050 * gutter.c (update_gutter_geometry):
5051 Mark frame layout changed.
5052 (update_frame_gutter_geometry, update_frame_gutters):
5053 Respect frame_layout_changed.
5055 * console.h (struct console_methods): add
5056 clear_frame_toolbars_method.
5058 * redisplay.c (redisplay_frame): call
5059 update_frame_toolbars_geometry and re-order update_frame_toolbars.
5061 * toolbar.h: declare update_frame_toolbars_geometry.
5063 * toolbar.c (update_frame_toolbars_geometry): new function. Split
5064 out from update_frame_toolbars. Call clear_frame_toolbars.
5065 (update_frame_toolbars): only output, do not change geometry.
5067 * redisplay.c: add frame_layout_changed.
5069 * redisplay.h: add frame_layout_changed.
5070 (CLASS_RESET_CHANGED_FLAGS): set it.
5071 (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5072 (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5073 (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5075 * device.h (struct device): add frame_layout_changed.
5076 (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5078 * frame.h (struct frame): add frame_layout_changed.
5079 (MARK_FRAME_LAYOUT_CHANGED): new.
5081 2002-06-30 Mike Alexander <mta@arbortext.com>
5083 * event-msw.c (mswindows_need_event): Don't wait for a new message
5084 if the queue is not empty. Suggested by Paul Moore.
5086 2002-06-12 Andy Piper <andy@xemacs.org>
5088 * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5089 for printing on accurately.
5091 2002-06-09 Rick Rankin <rick_rankin@yahoo.com>
5093 * event-msw.c (mswindows_wnd_proc): Add a handler for the
5094 WM_ACTIVATE message. Make sure that the frame is visible if the
5095 window is visible. This seemss to fix the problem where XEmacs
5096 appears to freeze after switching desktops with certain virtual
5098 (debug_output_mswin_message): Added code to output message
5099 parameters for WM_WINDOWPOSCHANGED,
5100 WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5102 2002-05-25 Andy Piper <andy@xemacs.org>
5104 * select-x.c (vars_of_select_x): Fix docstring of
5105 x-selection-strict-motif-ownership
5107 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
5109 * keymap.c (get_keymap):
5110 Add comment about do_autoload GCPROs own args.
5112 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
5114 * bytecode.c (execute_optimized_program): check_opcode ifdef
5115 ERROR_CHECK_BYTE_CODE.
5117 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
5119 Thanks to Ben Wing and Michael Sperber.
5121 * eval.c (Fcommand_execute):
5124 (Fmacroexpand_internal):
5125 (function_argcount):
5126 callint.c (Fcall_interactively):
5127 Add comment about do_autoload GCPROs own args.
5129 * (do_autoload): GCPRO both args as well as local Lisp_Object.
5131 * eval.c (Ffuncall): Extra braces to placate GCC.
5133 2002-08-10 Stephen J. Turnbull <stephen@xemacs.org>
5135 * backtrace.h (grow_specpdl):
5137 * EmacsFrame.c (EmacsFrameSetValues):
5138 * eval.c (grow_specpdl):
5139 * ExternalShell.c (hack_event_masks_1):
5140 * glyphs-x.c (convert_EImage_to_XImage):
5141 (x_finalize_image_instance):
5142 * ralloc.c (page_size):
5144 * xgccache.c (gc_cache_hash):
5145 Fix unsigned comparison warnings.
5147 2002-07-29 Jerry James <james@xemacs.org>
5149 * lread.c (locate_file): Any nonnegative return value indicates
5150 success if MODE is nonnegative.
5152 2002-08-03 Brian A Palmer <bpalmer@rescomp.Stanford.EDU>
5154 * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5157 2002-07-17 Stephen J. Turnbull <stephen@xemacs.org>
5159 * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5161 * dumper.c (pdump_get_indirect_count):
5162 (pdump_scan_by_alignment):
5163 (pdump_dump_root_struct_ptrs):
5164 (pdump_dump_rtables):
5165 (pdump_dump_root_objects):
5167 * nas.c (WaveOpenDataForReading):
5168 * fns.c (print_bit_vector):
5169 * font-lock.c (SINGLE_SYNTAX_STYLE):
5170 * glyphs.c (check_for_ignored_expose):
5171 (find_matching_subwindow):
5173 * imgproc.c (get_histogram):
5174 * redisplay.c (point_in_line_start_cache):
5175 * redisplay-output.c (redisplay_unmap_subwindows):
5176 * symbols.c (defsymbol_massage_name_1):
5177 (defkeyword_massage_name):
5178 (deferror_massage_name_and_message):
5179 * redisplay-x.c (x_output_string):
5180 * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5181 * frame.h (struct frame):
5182 * filelock.c (current_lock_owner):
5183 * doprnt.c (emacs_doprnt_1):
5184 * lisp.h (struct Lisp_Bit_Vector):
5188 2002-02-13 Ben Wing <ben@xemacs.org>
5190 * event-stream.c (reset_key_echo):
5191 * event-stream.c (reset_this_command_keys):
5192 * event-stream.c (execute_command_event):
5193 If console is dead as a result of C-x 5 0, then post-command stuff
5194 needs to be careful and do only non-console-specific stuff.
5196 2002-07-01 Mike Sperber <mike@xemacs.org>
5198 * process-unix.c (unix_send_process): Mark coding_outstream as
5199 non-open upon SIGPIPE.
5201 * event-stream.c (Fnext_event): Reorder switch cases to something
5204 2001-08-13 Dmitry Astapov <adept@umc.com.ua>
5206 * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5207 Don't bogusly reinitialize ascii_character property.
5209 2002-07-08 Mike Sperber <mike@xemacs.org>
5211 * process.c (Fstart_process_internal): Do error checking before we
5212 fork off the child, so the child can't muck with the state of the
5215 2002-07-08 Mike Sperber <mike@xemacs.org>
5217 * ralloc.c (init_ralloc): Allocate properly for pdump.
5219 2002-06-12 Andy Piper <andy@xemacs.org>
5221 * glyphs.c (query_string_geometry): check the string.
5223 * glyphs-widget.c (widget_logical_unit_height): cope with nil
5226 2002-06-17 Jerry James <james@xemacs.org>
5228 * sysdll.c: Remove RTLD_GLOBAL initialization.
5229 * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5231 2002-06-25 Stephen J. Turnbull <stephen@xemacs.org>
5233 * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5235 2002-05-16 Mathias Grimmberger <mgri@zaphod.sax.de>
5237 * sysdep.c (sys_rename): Make sys_rename work for the case where
5238 Windows rename sets errno to EACCES if target file exists.
5240 2002-05-21 Jonathan Harris <jonathan@xemacs.org>
5242 * device-msw.c (mswindows_handle_page_setup_dialog_box):
5243 Fix detection of metric units to work on Win95
5245 2002-05-21 Stephen J. Turnbull <stephen@xemacs.org>
5247 * syswindows.h: #define LOCALE_RETURN_NUMBER. Why, I don't know.
5249 2002-04-25 Andy Piper <andy@xemacs.org>
5251 * redisplay.c (create_text_block): Remove extra comment trailer.
5253 2002-04-24 Andy Piper <andy@xemacs.org>
5255 * redisplay.c (create_text_block): Don't actually add propagation
5256 data if the line ends after we have added a glyph.
5258 2002-04-22 Andy Piper <andy@xemacs.org>
5260 * extents.c (extent_fragment_update): check for glyphs we have
5261 previously displayed.
5262 * extents.c (print_extent_1): warning removal.
5263 * extents.h: change prototype.
5264 * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5265 widths correctly for wide glyphs.
5266 * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5267 * redisplay.c (prop_type): add PROP_GLYPH.
5268 * redisplay.c (struct prop_block): add glyph type
5269 * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5270 to the propagation data.
5271 * redisplay.c (create_text_block): if there is a glyph in the
5272 propagation data use it to salt extent_fragment_update.
5273 * redisplay.c (create_string_text_block): ditto.
5275 2002-04-13 Nix <nix@esperi.demon.co.uk>
5277 * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5278 * redisplay-output.c (compare_runes): Compare them.
5279 * redisplay.c: Update copyright date.
5280 * redisplay.c (pos_data): Add need_baseline_computation field.
5281 * redisplay.c (add_glyph_rune): Update ascent, descent, and
5282 need_baseline_computation; zero yoffset. Set max_pixmap_height
5283 for all pixmaps, not just automatically positioned ones.
5284 * redisplay.c (calculate_yoffset): New, compute yoffset values.
5285 * redisplay.c (calculate_baseline): New, compute textual baseline.
5286 * redisplay.c (add_glyph_rune): Call them.
5287 * redisplay.c (create_text_block): Likewise.
5288 * redisplay.c (create_overlay_glyph_block): Likewise.
5289 * redisplay.c (add_margin_runes): Likewise.
5290 * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5292 * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5293 * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5294 * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5295 * redisplay-msw.c (mswindows_output_string): Likewise.
5296 * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5297 * redisplay-gtk.c (gtk_output_display_block): Likewise.
5298 * redisplay-x.c (x_output_display_block): Likewise.
5300 2002-03-28 Ben Wing <ben@xemacs.org>
5302 * redisplay.c: Fixed bug in redisplay
5303 w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5304 and down of the lines, since they're bigger than the line
5305 size. (It was seen most obviously when there's a horizontal scroll
5306 bar, e.g. do C-h a glyph or something like that.) The problem was
5307 that the glyph-contrib-p setting on glyphs was ignored even if it
5308 was set properly, which it wasn't until now.
5310 2002-04-24 Andy Piper <andy@xemacs.org>
5312 * lisp.h (Dynarr_end): Fix definition.
5314 2002-02-06 Adrian Aichner <adrian@xemacs.org>
5316 * redisplay.c (mark_redisplay): Remove call to
5317 update_frame_window_mirror.
5319 2001-11-15 Andy Piper <andy@xemacs.org>
5321 * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5324 2002-02-13 Andy Piper <andy@xemacs.org>
5326 * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5327 we did in fact enqueue the XM_MAPFRAME event.
5329 2002-01-15 Adrian Aichner <adrian@xemacs.org>
5331 * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5332 to fix problem switching between virtual desktops under virtuawin
5333 virtual window manager.
5335 2001-07-30 Adrian Aichner <adrian@xemacs.org>
5337 * event-msw.c: Typo fix.
5338 * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5339 magic XM_MAPFRAME event has been sent.
5341 2001-11-23 Andy Piper <andy@xemacs.org>
5343 * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5345 2001-11-21 Andy Piper <andy@xemacs.org>
5347 * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5348 mouse events outside the frame.
5350 2002-03-20 Andy Piper <andy@xemacs.org>
5352 * menubar-msw.c (mswindows_popup_menu): warning removal.
5353 * dialog-msw.c (dialog_popped_down): ditto.
5355 2001-12-11 Andy Piper <andy@xemacs.org>
5357 * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5358 * dialog-msw.c (mswindows_make_dialog_box_internal): set
5360 * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5361 * menubar-msw.c (mswindows_handle_wm_command): ditto.
5362 * menubar-msw.c (mswindows_popup_menu): ditto.
5364 2001-10-29 Andy Piper <andy@xemacs.org>
5366 * dialog-msw.c (handle_directory_dialog_box): quit if the user
5369 2002-01-03 Andy Piper <andy@xemacs.org>
5371 * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5375 2002-03-29 Jonathan Harris <jonathan@xemacs.org>
5377 * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5378 * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5379 * device-msw.c (mswindows_handle_page_setup_dialog_box):
5380 Detect and handle case where machine is set up for metric units
5382 2002-04-02 Andy Piper <andy@xemacs.org>
5384 * dired-msw.c (mswindows_get_files):
5385 * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5386 completely handled by XEmacs. Suggested by Thomas Vogler
5387 <mail@thomas-vogler.de>.
5389 2001-11-14 Andy Piper <andy@xemacs.org>
5391 * nt.c (REG_ROOT): change registry key to XEmacs.
5393 2002-04-27 Andy Piper <andy@xemacs.org>
5395 * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5397 2002-04-26 Andy Piper <andy@xemacs.org>
5399 * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5402 2002-03-14 Mike Alexander <mta@arbortext.com>
5404 * event-msw.c (mswindows_unwait_process): New, remove process from
5406 * process-nt.c (nt_finalize_process_data): Call
5407 mswindows_unwait_process
5408 * console-msw.h: Declare mswindows_unwait_process
5410 2002-05-14 Stephen J. Turnbull <stephen@xemacs.org>
5412 * editfns.c (Fdecode_time):
5413 (Fformat_time_string):
5414 Check for invalid time. Thanks to Nick Pakoulin <npak@ispras.ru>.
5415 (make_time): Warning elimination (change arg name).
5417 2001-11-24 Andy Piper <andy@xemacs.org>
5419 * window.c (Fsplit_window): Doc return type.
5421 2002-04-01 Andy Piper <andy@xemacs.org>
5423 * emacs.c (Fkill_emacs): Only output message box in interactive
5426 2002-04-26 Andy Piper <andy@xemacs.org>
5428 * config.h.in: pull in 21.5.x change to stop alloca warnings under
5431 2002-03-18 Gregory Steuck <greg-xemacs-patch@nest.cx>
5433 * unexelf.c: Use ELFSIZE or define from _LP64 to indicate a 64
5436 2002-05-09 Stephen J. Turnbull <stephen@xemacs.org>
5438 * XEmacs 21.4.8 "Honest Recruiter" is released.
5440 2002-05-07 Nix <nix@esperi.demon.co.uk>
5442 Supersedes 2002-04-17 patch.
5444 * process.h (PROCESS_LIVE_P): Use the process status as
5445 evidence of health, not the state of the input stream.
5446 (PROCESS_READABLE_P): Say if the process is readable
5447 from. (It may be dead nonetheless.)
5448 (CHECK_READABLE_PROCESS): Test for that condition.
5450 * process.c (create_process): Use PROCESS_READABLE_P.
5451 (read_process_output, set_process_filter): Likewise.
5453 * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5454 (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5456 This code is #if 0'd, this is not the time to add new functions:
5458 * process.c (Fprocess_readable_p): Report readability status.
5459 * process.c (Qprocess_readable_p): New, associated symbol...
5460 * process.c (syms_of_process): ... initialize it.
5462 2002-05-04 Stephen J. Turnbull <stephen@xemacs.org>
5464 * XEmacs 21.4.7 "Economic Science" is released.
5466 2002-04-17 Nix <nix@esperi.demon.co.uk>
5468 * process.h (PROCESS_LIVE_P): Use the process status as
5469 evidence of health, not the state of the input stream.
5471 2002-04-30 Charles G. Waldman <cgw@xemacs.org>
5473 * sysdep.c (sys_siglist): change "signum" to "signal"
5475 2001-04-21 Martin Buchholz <martin@xemacs.org>
5477 * s/darwin.h: New file.
5478 Thanks to Greg Parker <gparker@cs.stanford.edu>.
5480 2002-04-23 Andreas Jaeger <aj@suse.de>
5482 * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5483 which use lib64 for 64-bit libs.
5484 (START_FILES): Likewise.
5486 2002-02-11 Mike Sperber <mike@xemacs.org>
5489 (x_IO_error_handler):
5490 (x_init_device): Temporarily keep device in static variable
5491 `device_being_initialized' so we can recover gracefully from
5492 internal XOpenDevice failure. (XOpenDevice is documented to
5493 return NULL on failure, but sometimes calls the IO error handler
5496 2002-01-31 John H. Palmieri <palmieri@math.washington.edu>
5498 * dired.c (Ffile_name_all_completions): Change documentation --
5499 remove reference to completion-ignored-extensions.
5500 * dired.c (vars_of_dired): Change documentation for
5501 completion-ignored-extensions -- remove reference to
5502 file-name-all-completions.
5504 2002-03-06 Jerry James <james@xemacs.org>
5506 * emodules.c (emodules_load): Fix multiple loading of same module.
5508 2002-01-25 Andrew Begel <abegel@cs.berkeley.edu>
5509 * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5510 RTLD_LAZY to avoid incorrect symbol binding when using nested
5511 shared libraries on Solaris.
5513 2002-02-12 Stephen J. Turnbull <stephen@xemacs.org>
5515 * fileio.c (Ffind_file_name_handler): Improve docstring.
5517 2002-01-20 Stephen J. Turnbull <stephen@xemacs.org>
5519 * fns.c (Fmapconcat): Improve docstring.
5521 2002-01-03 Eric Gillespie, Jr. <epg@pretzelnet.org>
5523 * device-gtk.c: Add prototype for
5524 emacs_gtk_selection_clear_event_handle.
5525 (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5526 selection. Setup signal handler for "selection_clear_event"
5527 (emacs_gtk_selection_clear_event_handle).
5529 * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5530 other applications owning the clipboard (based on
5531 x_handle_selection_clear).
5533 2001-12-23 William M. Perry <wmperry@gnu.org>
5535 * menubar-gtk.c (gtk_popup_menu) Add sanity checks, fix crash.
5537 2002-01-04 Martin Buchholz <martin@xemacs.org>
5539 * keymap.c (define_key_alternate_name): Parenthesize EQ.
5541 2001-12-17 Stephen J. Turnbull <stephen@xemacs.org>
5543 * XEmacs 21.4.6 "Common Lisp" is released.
5545 2001-12-16 Torsten Duwe <duwe@caldera.de>
5547 * search.c (Freplace_match): Add missing sub-expression functionality.
5549 * buffer.c (decode_buffer): Add a check for pointer type to
5550 decode_buffer, before gcc's CSE optimization reorders a
5551 dereference in front of the allow_string test.
5553 2001-11-16 Darryl Okahata <darrylo@xemacs.org>
5555 * window.c (window_loop): Fix bug that sometimes prevented
5556 window_loop() from iterating across multiple devices. Also, at
5557 Ben's request, changed infloop-detecting code to abort() instead
5558 of silently terminating window_loop().
5560 2001-11-21 Stephen J. Turnbull <stephen@xemacs.org>
5562 Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5563 * editfns.c (make_time): New function.
5564 (Fencode_time): Use it instead of wasteful_word_to_lisp.
5565 * lisp.h (make_time): Prototype and comment it.
5566 * dired.c (wasteful_word_to_lisp): Deprecate.
5567 (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5569 2001-10-31 Kyle Jones <kyle_jones@wonderworks.com>
5571 * fileio.c (auto_save_1): Use current coding system, not
5574 2001-11-13 Ben Wing <ben@xemacs.org>
5577 * window.c (window_truncation_on):
5578 * window.c (syms_of_window):
5579 truncate-partial-width-windows should respect the buffer being
5580 displayed, like other redisplay vars.
5582 2001-11-13 Hirokazu FUKUI <hfukui@sannet.ne.jp>
5584 * event-stream.c (Fread_key_sequence): save current buffer.
5586 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
5588 * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5590 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
5592 * alloc.c (lcrecord_stats): Add space for types defined in modules.
5594 2001-10-26 Mike Alexander <mta@arbortext.com>
5596 * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5598 2001-10-25 Andy Piper <andy@xemacs.org>
5601 * dialog-msw.c (handle_directory_proc): new function.
5602 (handle_directory_dialog_box): new fucntion.
5603 (handle_file_dialog_box): use new directory dialog support.
5604 (mswindows_make_dialog_box_internal): ditto.
5605 * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5607 (mswindows_find_frame): make global.
5608 * fileio.c (Fexpand_file_name): build fix.
5609 * general-slots.h: add Qdirectory.
5610 * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5612 * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5613 cygwin not leaving win32 paths unchanged.
5614 * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5615 cygwin runtime to do path conversion.
5616 (Fmswindows_shell_execute): fix cygwin handling of URLs.
5617 (syms_of_win32): add new function.
5618 * window.c (window_loop): build fix.
5620 2001-10-15 Andy Piper <andy@xemacs.org>
5622 (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5624 2001-10-23 Stephen J. Turnbull <stephen@xemacs.org>
5626 * XEmacs 21.4.5 "Civil Service" is released.
5628 2001-04-08 Danny Colascione <qtmstr@optonline.net>
5630 * glyphs-x.c: Force buffer-tab highlight update when moving the
5631 buffer, avoiding an ugly black border, used for keyboard focus
5632 indication, on a widget that can never have keyboard focus, the
5635 2001-08-30 Daiki Ueno <ueno@unixuser.org>
5637 * process-unix.c (unix_open_multicast_group): Remove too much
5638 conversion between host and network byte order.
5640 2001-09-10 Nix <nix@esperi.demon.co.uk>
5642 * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5643 before replacing them.
5645 * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5648 * src/window.c (undedicate_windows): Use it.
5649 * src/window.h: Add prototype.
5651 2001-09-17 Ben Wing <ben@xemacs.org>
5653 * fileio.c (normalize_filename):
5654 * fileio.c (Fexpand_file_name):
5655 Fix various C++ compile errors in Andy's recent code.
5657 * callint.c (Fcall_interactively):
5658 * editfns.c (Ftemp_directory):
5659 * editfns.c (Fuser_full_name):
5660 * emacs.c (argmatch):
5661 * lread.c (locate_file_map_suffixes):
5662 * redisplay-x.c (x_ring_bell):
5663 Fix sign-compare warnings.
5665 2001-09-08 Andy Piper <andy@xemacs.org>
5667 * fileio.c (normalize_filename): copied from nt.c
5668 * (Ffile_name_directory): enable win32 paths under cygwin.
5669 * (Ffile_name_nondirectory): ditto.
5670 * (directory_file_name): ditto.
5671 * (Fexpand_file_name): ditto.
5672 * (Ffile_truename): ditto.
5673 * (Fsubstitute_in_file_name): ditto.
5674 * (Ffile_name_absolute_p): ditto.
5675 * (Ffile_readable_p): ditto.
5677 2001-09-08 Andy Piper <andy@xemacs.org>
5679 * device-msw.c (mswindows_finish_init_device): remove dde
5681 * device-msw.c (mswindows_init_dde): factor out from
5682 mswindows_finish_init_device()
5683 * device-msw.c (init_mswindows_very_early): new function
5684 initialize but don't enable dde.
5685 * emacs.c (main_1): call init_mswindows_very_early.
5687 * event-msw.c (mswindows_dde_callback): only execute when we are
5689 * symsinit.h: declare init_mswindows_very_early.
5691 2001-05-02 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5693 [sjt: This has been in 21.5 for months with no complaints.]
5695 * console.h (struct console_methods): Added flags member.
5696 (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5697 (CONMETH_IMPL_FLAG):
5698 (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5699 Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5701 * device.c (window_system_pixelated_geometry): Use the above macros.
5703 * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5704 implememntation flag.
5705 * device.h (DEVICE_DISPLAY_P): Use it.
5707 * frame.c (delete_frame_internal): Use the above macro.
5709 * redisplay.c (redisplay_device): Use it.
5710 (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5711 (redisplay_frame): Ditto.
5713 * device-msw.c (mswindows_device_implementation_flags): Removed.
5714 (msprinter_device_implementation_flags): Removed.
5715 (console_type_create_device_mswindows): Removed references to
5716 implementation_flags methods, set implementation flags here.
5717 (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5719 * device-gtk.c (gtk_device_implementation_flags): Removed method.
5720 (console_type_create_device_gtk): Removed method declaration.
5721 Added commented out statement which semantically matches the
5722 commented out statement in the above removed method.
5724 2001-04-14 Gordon Sadler <gbsadler1@lcisp.com>
5726 The attached patch fixes a few warnings.
5728 * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5729 * src/frame-gtk.c: guard against GNOME calls in GTK only
5730 * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5731 * src/select-gtk.c: prototype lisp_to_time
5733 2001-06-08 Ben Wing <ben@xemacs.org>
5735 ------ gc-in-window-procedure fixes ------
5738 * alloc.c (struct post_gc_action):
5739 * alloc.c (register_post_gc_action):
5740 * alloc.c (run_post_gc_actions):
5741 * alloc.c (garbage_collect_1):
5742 Create "post-gc actions", to avoid those dreaded "GC during window
5743 procedure" problems.
5746 Abort, clean and simple, when GC in window procedure. We want
5747 to flush these puppies out.
5750 * glyphs-msw.c (finalize_destroy_window):
5751 * glyphs-msw.c (mswindows_finalize_image_instance):
5752 Use a post-gc action when destroying subwindows.
5755 Declare register_post_gc_action().
5758 * scrollbar-msw.c (unshow_that_mofo):
5759 Use a post-gc action when unshowing scrollbar windows, if in gc.
5761 * redisplay.c (mark_redisplay):
5762 Add comment about the utter evilness of what's going down here.
5764 ------ cygwin setitimer fixes ------
5766 * Makefile.in.in (sheap_objs):
5767 * Makefile.in.in (profile_objs):
5768 * Makefile.in.in (objs):
5769 Compile profile.c only when HAVE_SETITIMER.
5771 * nt.c (mswindows_sigset):
5772 * nt.c (mswindows_sighold):
5773 * nt.c (mswindows_sigrelse):
5774 * nt.c (mswindows_sigpause):
5775 * nt.c (mswindows_raise):
5776 * nt.c (close_file_data):
5780 Move setitimer() emulation to win32.c, because Cygwin needs it too.
5783 * profile.c (Fstart_profiling):
5784 * profile.c (Fstop_profiling):
5785 Make sure we don't compile if no setitimer(). Use qxe_setitimer()
5786 instead of just plain setitimer().
5789 * signal.c (set_one_shot_timer):
5791 Define qxe_setitimer() as an encapsulation around setitimer() --
5792 call setitimer() directly unless Cygwin or MS Win, in which case
5793 we use our simulated version in win32.c.
5796 * systime.h (struct itimerval):
5797 * systime.h (ITIMER_REAL):
5798 Prototype mswindows_setitimer() and qxe_setitimer(). Long
5799 comment about "qxe" and the policy regarding encapsulation.
5802 * win32.c (setitimer_helper_proc):
5803 * win32.c (setitimer_helper_period):
5804 * win32.c (setitimer_helper):
5805 * win32.c (mswindows_setitimer):
5806 Move setitimer() emulation here, so Cygwin can use it.
5807 Rename a couple of functions and variables to be longer and more
5808 descriptive. In setitimer_helper_proc(), send the signal
5809 using either mswindows_raise() or (on Cygwin) kill(). If for
5810 some reason we are still getting lockups, we'll change the kill()
5811 to directly invoke the signal handlers.
5813 ------ windows shell fixes ------
5817 Comments about how these two files must die.
5819 * callproc.c (init_callproc):
5820 On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5821 not just COMSPEC. (more correct and closer to FSF.) Don't
5822 force a value for SHELL into the environment. (Comments added
5823 to explain why not.)
5825 * nt.c (init_user_info):
5826 Don't shove a fabricated SHELL into the environment. See above.
5828 2001-06-01 Ben Wing <ben@xemacs.org>
5830 * Makefile.in.in (ldflags):
5831 eliminate that pesky "defaulting to 00401000" warning.
5835 2001-06-15 Golubev I. N. <gin@mo.msk.ru>
5837 * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5838 * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5840 2001-04-24 Jerry James <james@xemacs.org>
5842 * faces.h: pass parameters to Fadd_spec_to_specifier in the
5845 2001-06-01 Ben Wing <ben@xemacs.org>
5847 * event-msw.c (debug_mswin_messages):
5848 conditionalize the messages that were causing compile errors.
5849 (if only macros could generate #ifdef statements ...)
5851 2001-07-28 Stephen J. Turnbull <stephen@xemacs.org>
5853 * XEmacs 21.4.4 "Artificial Intelligence" is released.
5855 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
5857 * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5859 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
5861 * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5862 * process-unix.c (unix_canonicalize_host_name):
5863 sysdep.c (init_system_name):
5864 Use it to conditionally support IPv6 canonicalization.
5866 2001-05-31 Paul Stodghill <stodghil@cs.cornell.edu>
5869 Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5871 2001-05-19 Paul Krause <paulkrause1@mediaone.net>
5873 * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5874 attempt is made to scroll when no scroll bar is available.
5876 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
5878 * input-method-motif.c (XIM_delete_frame): New callback.
5879 (XIM_init_frame): Register it. (Reapplied by SJT, it somehow
5880 got deleted from 21.4.3.)
5882 2001-06-01 Ben Wing <ben@xemacs.org>
5884 * nt.c (mswindows_utime):
5885 * nt.c (close_file_data):
5886 fix off-by-one-indirection error.
5888 2001-05-29 Adrian Aichner <adrian@xemacs.org>
5890 * fileio.c: Include nt.h. Remove lisp_string_set_file_times()
5891 because set_file_times() now takes Lisp_Object path, instead of
5893 * nt.c: Include buffer.h.
5894 * nt.c (convert_from_time_t): New.
5895 * nt.c (mswindows_utime): New. Use utime, since SetFileTime does
5896 not set mtime correctly.
5897 * nt.h: Declare mswindows_utime().
5898 * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5899 path, instead of char*.
5900 * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5902 2001-05-30 Ben Wing <ben@xemacs.org>
5906 (Stephen, just take all event-msw.c patches. This includes
5907 the "iconify" fix below.)
5910 * event-msw.c (mswindows_dequeue_dispatch_event):
5911 * event-msw.c (assert):
5912 * event-msw.c (emacs_mswindows_quit_p):
5913 * event-msw.c (debug_mswin_messages):
5914 * event-msw.c (debug_output_mswin_message):
5915 * event-msw.c (vars_of_event_mswindows):
5916 Fix yet more problems with C-g handling.
5917 Implement debug-mswindows-events.
5919 2001-05-24 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5921 * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5923 2001-05-23 Ben Wing <ben@xemacs.org>
5925 * event-msw.c (winsock_writer):
5926 * event-msw.c (winsock_closer):
5927 prior kludgy code was clobbering the buffer, thinking it was
5928 "unused" space to store an unneeded return value; instead, use
5929 the variable we've already got staring us in the face.
5931 2001-05-17 Andy Piper <andy@xemacs.org>
5933 * sysfile.h: don't assume that file attributes are boolean
5935 2001-05-23 Ben Wing <ben@xemacs.org>
5937 * device-msw.c (msprinter_init_device):
5938 signal an error rather than crash with an unavailable network
5939 printer (from Mike Alexander).
5942 * event-msw.c (struct winsock_stream):
5943 * event-msw.c (winsock_writer):
5944 * event-msw.c (winsock_closer):
5945 * event-msw.c (make_winsock_stream_1):
5946 cleanup headers. fix (hopefully) an error with data corruption
5947 when sending to a network connection.
5949 * fileio.c (Fexpand_file_name): Fix evil code that attempts
5950 to handle the ~user prefix by (a) always assuming we're referencing
5951 ourselves and not even verifying the user -- hence any file with
5952 a tilde as its first char is invalid! (b) if there wasn't a slash
5953 following the filename, the pointer was set *past* the end of
5954 file and we started reading from uninitialized memory. Now we
5955 simply treat these as files, always.
5957 * buffer.c (common_init_complex_vars_of_buffer): comment change.
5959 2001-05-19 Ben Wing <ben@xemacs.org>
5961 * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5964 * process-nt.c (vars_of_process_nt):
5965 remove unused mswindows-quote-process-args. rec for 21.4.
5967 2001-05-12 Ben Wing <ben@xemacs.org>
5969 * event-msw.c (mswindows_dde_callback):
5970 * event-msw.c (mswindows_wnd_proc):
5971 eliminate cygwin warnings.
5973 2001-05-06 Ben Wing <ben@xemacs.org>
5977 * device-msw.c (print_dialog_worker):
5978 * device-msw.c (mswindows_handle_print_dialog_box):
5979 * device-msw.c (syms_of_device_mswindows):
5980 * dialog-msw.c (mswindows_make_dialog_box_internal):
5982 implement printing the selection when it's selected.
5984 2001-05-20 Drazen Kacar <dave@arsdigita.com>
5986 * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
5988 2001-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
5990 * lisp.h (EMACS_INT_MAX): This should be one bit less since
5991 EMACS_INT is signed.
5993 2001-04-15 Michael Lausch <mla@1012surf.net>
5995 * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
5996 gtk_widget_request_size() to give scrollbar >0 width for
5999 2001-05-30 William M. Perry <wmperry@gnu.org>
6001 * event-gtk.c: Check for buttons as modifier keys.
6003 2001-05-25 Craig Lanning <CraigL@Knology.net>
6006 Properly find MinGW's <process.h> inside Cygwin's restructured
6007 include directories. Don't try to include <cygwin/version.h>
6008 since we are dropping support for MinGW in versions of Cygwin
6011 Drop support for MinGW in versions of Cygwin before b21.
6013 Properly find MinGW's <process.h> inside Cygwin's restructured
6014 include directories.
6016 Drop support for MinGW in versions of Cygwin before b21.
6018 Even though a.out.h is no longer detected by configure, allow
6019 MinGW to use it until we figure out how to do the job with Win32.
6021 2001-07-11 Matt Tucker <tuck@whistlingfish.net>
6023 * syntax.c (find_start_of_comment):
6024 Fix `unbalanced parentheses' bug when dealing with mixed comment
6025 styles in c++/java/etc. mode
6027 2001-05-29 Mike Alexander <mta@arbortext.com>
6029 * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6030 FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6032 2001-05-17 Andrew Begel <abegel@eecs.berkeley.edu>
6034 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6036 2001-03-31 Mike Sperber <mike@xemacs.org>
6038 * search.c (Freplace_match): Support FSF-style specification of
6039 match subexpression when applied to a buffer.
6041 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
6043 * event-stream.c (is_scrollbar_event): add missing semicolon
6045 2001-05-22 Isaac Hollander <ysh@mindspring.com>
6047 * Makefile.in.in: Use TAR macro instead of hardcoding
6048 tar. Allows use of GNU tar instead of system tar
6050 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
6052 * event-stream.c (is_scrollbar_event): add missing semicolon
6054 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
6056 * XEmacs 21.4.3 "Academic Rigor" is released.
6058 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
6060 * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6062 2001-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
6064 * buffer.c (Vcase_fold_search): Remove obsolete
6065 comment about non ASCII case-fold-search. This
6066 bug has been fixed by case-table changes.
6068 2001-05-11 Stephen J. Turnbull <stephen@xemacs.org>
6070 * event-msw.c: Restore include of events-mod.h.
6072 2001-04-22 zhaoway <zw@debian.org>
6074 * event-stream.c (is_scrollbar_event): Noop returning 0 if
6077 2001-05-10 Stephen J. Turnbull <stephen@xemacs.org>
6079 * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6081 2001-05-08 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
6083 * mule-charset.c (Fmake_charset): Add missing else.
6085 2001-04-23 Ben Wing <ben@xemacs.org>
6087 * event-msw.c (FAKE_MOD_QUIT):
6088 * event-msw.c (mswindows_dequeue_dispatch_event):
6089 * event-msw.c (mswindows_wnd_proc):
6090 * event-msw.c (emacs_mswindows_quit_p):
6091 Get critical quit working.
6093 2001-05-05 Ben Wing <ben@xemacs.org>
6097 * device-msw.c (mswindows_get_default_margin):
6098 * frame-msw.c (mswindows_size_frame_internal):
6099 * frame-msw.c (msprinter_init_frame_1):
6100 * frame-msw.c (vars_of_frame_mswindows):
6101 Change top/bottom margin defaults to 0.5 inches.
6103 2001-05-01 Martin Buchholz <martin@xemacs.org>
6105 Fix link error with gcc 3.0 on Linux.
6106 * terminfo.c (UP): Remove.
6107 * terminfo.c (BC): Remove.
6108 * terminfo.c (PC): Remove.
6109 They weren't used, and in any case, these symbols should be
6110 defined in the *library*.
6112 2001-05-03 Martin Buchholz <martin@xemacs.org>
6114 * s/aix4.h: Fix crash with xlc -O3.
6115 Improve comment explaining how -O3 works.
6117 2001-04-15 Ben Wing <ben@xemacs.org>
6120 * event-stream.c (Fnext_event):
6121 * event-stream.c (is_scrollbar_event):
6122 * event-stream.c (execute_command_event):
6123 Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6124 crash' problem. His fix introduces other problems. We filter
6125 out scrollbar events specifically, making them somewhat invisible
6126 to command-building, and not appearing in `this-command-keys'.
6127 More work is still needed (see comments in event-stream.c), but
6128 this fixes all the major problems.
6130 2001-04-20 Ben Wing <ben@xemacs.org>
6132 * .cvsignore: Added stuff for Windows.
6134 2001-04-28 Ben Wing <ben@xemacs.org>
6136 * buffer.c (Ferase_buffer):
6137 * editfns.c (buffer_insert1):
6138 * editfns.c (Finsert_before_markers):
6139 * editfns.c (Finsert_string):
6140 * editfns.c (Finsert_char):
6141 * editfns.c (Fdelete_region):
6142 * editfns.c (Fwiden):
6143 * editfns.c (Fnarrow_to_region):
6144 remove bogus lines setting zmacs_region_stays to 0.
6146 2001-04-15 Gunnar Evermann <ge204@eng.cam.ac.uk>
6148 * process-unix.c (unix_open_network_stream): If connect() fails
6149 invalidate file descriptor after closing it.
6151 2001-03-08 Mike Alexander <mta@arbortext.com>
6153 * event-msw.c (mswindows_need_event_in_modal_loop):
6154 Don't dispatch a message if we didn't get one.
6155 (mswindows_need_event):
6156 Terminate the correct process when one exits instead of the first
6157 one on Vprocess_list and look for process termination when in
6158 mswindows_protect_modal_loop.
6160 2001-04-19 Stephen J. Turnbull <stephen@xemacs.org>
6162 * XEmacs 21.4.1 "Copyleft" is released.
6164 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
6166 * input-method-motif.c (XIM_delete_frame): New callback.
6167 (XIM_init_frame): Register it.
6169 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
6171 * XEmacs 21.4.0 "Solid Vapor" is released.
6173 2001-04-15 Ben Wing <ben@xemacs.org>
6175 * cmdloop.c (call_command_loop):
6176 Fix braino in bit-rotting code.
6178 2001-04-07 Hrvoje Niksic <hniksic@arsdigita.com>
6180 * extents.c (Fset_extent_endpoints): Force creation of extent info
6181 in buffer_or_string.
6183 * extents.c (process_extents_for_insertion_mapper): Correctly
6184 check for open-open zero-length extents.
6186 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
6188 * lisp.h: New typedefs Memory_count, Element_count.
6191 Sign-compare warning elimination: several unsigned -> signed.
6192 Based on work by Ben Wing <ben@xemacs.org>.
6194 2001-04-14 Stephen J. Turnbull <stephen@xemacs.org>
6196 * XEmacs 21.2.47 "Zephir" is released.
6198 2001-04-02 Jan Vroonhof <jan@xemacs.org>
6200 * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6202 2001-04-03 Mike Sperber <mike@xemacs.org>
6204 * search.c: Revert previous patch due because of release.
6206 2001-03-30 Ben Wing <ben@xemacs.org>
6209 Add missing killpg prototype.
6212 Add a comment about fixing problems when a new entry is added
6215 * frame-msw.c (mswindows_init_frame_1):
6216 Fix compile warnings.
6218 * menubar.c (vars_of_menubar):
6219 Provide `menu-accelerator-support' to indicate that we properly
6220 support %_ in menu specifications, so that package code can
6221 conditionalize on this (and remove %_ from menu specifications
6226 * scrollbar-msw.c (can_scroll):
6228 Fix handling of mouse wheel under Windows to follow standards --
6229 now scrolls window under pointer, not selected window.
6231 2001-03-31 Mike Sperber <mike@xemacs.org>
6233 * search.c (Freplace_match): Support FSF-style specification of
6234 match subexpression when applied to a buffer.
6236 2001-03-15 Martin Buchholz <martin@xemacs.org>
6238 * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6239 function to modify KEYMAP, so map over a copy of the hash table.
6241 2001-03-21 Martin Buchholz <martin@xemacs.org>
6243 * XEmacs 21.2.46 "Urania" is released.
6245 2001-03-20 Dan Holmsand <dan@eyebee.com>
6247 * realpath.c (xrealpath): Make file-truename work with symlinks to
6248 /cygdrive paths on cygwin. Always lowercase drive-letters on
6250 (cygwin_readlink): Don't try to find canonical filename unless
6253 2001-03-15 Stephen J. Turnbull <stephen@xemacs.org>
6255 * ChangeLog: Log GTK merge.
6261 Revert gratuitous whitespace changes from GTK merge.
6263 * emacs.c: Document end of complex #ifdef @ l. 1495.
6266 2001-03-12 Andy Piper <andy@xemacs.org>
6268 * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6269 have to do likewise.
6271 2001-03-12 Andy Piper <andy@xemacs.org>
6273 * sysdep.c: we only support mingw now.
6275 2001-03-09 Andy Piper <andy@xemacs.org>
6277 * unexcw.c (copy_executable_and_dump_data_section): making approx
6278 overrun a warning only.
6280 2001-03-10 William M. Perry <wmperry@aventail.com>
6282 * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6283 satisfy Stephen's identical-after-cpp plea.
6285 2001-03-02 Ben Wing <ben@xemacs.org>
6288 * cmds.c (Fforward_char):
6292 Augment documentation of the most common motion commands to make
6293 note of the shifted-motion support.
6295 2001-03-02 Ben Wing <ben@xemacs.org>
6297 * nt.c (mswindows_fstat):
6298 * nt.c (mswindows_stat):
6299 * search.c (boyer_moore):
6300 Fix compile warnings under Windows.
6302 * sysdep.c (sys_readdir):
6303 Fix buggy filename-conversion code under Mule.
6305 2001-03-09 William M. Perry <wmperry@aventail.com>
6327 * redisplay-output.c:
6333 The Great GTK Merge.
6340 * emacs-widget-accessors.c:
6354 * native-gtk-toolbar.c:
6365 The Great GTK Merge: new files.
6367 2001-02-26 Ben Wing <ben@xemacs.org>
6369 Reapplied Lstream change.
6371 2001-02-26 Ben Wing <ben@xemacs.org>
6373 Undid the last change, since it is more controversial than I
6374 thought. It should be back in at some point soon.
6376 2001-02-25 Ben Wing <ben@xemacs.org>
6379 * callproc.c (Fold_call_process_internal):
6380 * event-msw.c (ntpipe_slurp_reader):
6381 * event-msw.c (ntpipe_shove_writer):
6382 * event-msw.c (winsock_reader):
6383 * event-msw.c (winsock_writer):
6385 * file-coding.c (detect_eol_type):
6386 * file-coding.c (detect_coding_type):
6387 * file-coding.c (determine_real_coding_system):
6388 * file-coding.c (Fdetect_coding_region):
6389 * file-coding.c (decoding_reader):
6390 * file-coding.c (decoding_writer):
6391 * file-coding.c (mule_decode):
6392 * file-coding.c (Fdecode_coding_region):
6393 * file-coding.c (encoding_reader):
6394 * file-coding.c (encoding_writer):
6395 * file-coding.c (mule_encode):
6396 * file-coding.c (Fencode_coding_region):
6397 * file-coding.c (detect_coding_sjis):
6398 * file-coding.c (decode_coding_sjis):
6399 * file-coding.c (encode_coding_sjis):
6400 * file-coding.c (detect_coding_big5):
6401 * file-coding.c (decode_coding_big5):
6402 * file-coding.c (encode_coding_big5):
6403 * file-coding.c (detect_coding_ucs4):
6404 * file-coding.c (decode_coding_ucs4):
6405 * file-coding.c (encode_coding_ucs4):
6406 * file-coding.c (detect_coding_utf8):
6407 * file-coding.c (decode_coding_utf8):
6408 * file-coding.c (encode_coding_utf8):
6409 * file-coding.c (detect_coding_iso2022):
6410 * file-coding.c (decode_coding_iso2022):
6411 * file-coding.c (encode_coding_iso2022):
6412 * file-coding.c (decode_coding_no_conversion):
6413 * file-coding.c (encode_coding_no_conversion):
6414 * glyphs-x.c (write_lisp_string_to_temp_file):
6415 * gpmevent.c (tty_get_foreign_selection):
6418 * lstream.c (Lstream_flush_out):
6419 * lstream.c (Lstream_adding):
6420 * lstream.c (Lstream_write_1):
6421 * lstream.c (Lstream_write):
6422 * lstream.c (Lstream_raw_read):
6423 * lstream.c (Lstream_read_more):
6424 * lstream.c (Lstream_read):
6425 * lstream.c (Lstream_unread):
6426 * lstream.c (Lstream_fputc):
6427 * lstream.c (stdio_reader):
6428 * lstream.c (stdio_writer):
6429 * lstream.c (filedesc_reader):
6430 * lstream.c (filedesc_writer):
6431 * lstream.c (lisp_string_reader):
6432 * lstream.c (struct fixed_buffer_stream):
6433 * lstream.c (make_fixed_buffer_input_stream):
6434 * lstream.c (make_fixed_buffer_output_stream):
6435 * lstream.c (fixed_buffer_reader):
6436 * lstream.c (fixed_buffer_writer):
6437 * lstream.c (struct resizing_buffer_stream):
6438 * lstream.c (resizing_buffer_writer):
6439 * lstream.c (dynarr_writer):
6440 * lstream.c (lisp_buffer_reader):
6441 * lstream.c (lisp_buffer_writer):
6443 * lstream.h (lstream_implementation):
6444 * lstream.h (struct lstream):
6446 * process-nt.c (nt_send_process):
6447 * process-unix.c (unix_send_process):
6449 Correct Lstream lossage due to mixing of signed and unsigned
6450 quantities. All Lstream uses of size_t and ssize_t are now a
6451 single signed data type Lstream_data_count. This fixes problems
6452 under Windows with sending large quantities of data to a process,
6453 and may well fix other subtle bugs.
6455 2001-02-23 Martin Buchholz <martin@xemacs.org>
6457 * XEmacs 21.2.45 "Thelxepeia" is released.
6459 2001-02-21 Martin Buchholz <martin@xemacs.org>
6461 * lisp-union.h (XSETINT):
6464 Reverse previous change of 2001-02-06.
6466 2001-02-20 Matt Tucker <tuck@whistlingfish.net>
6468 Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6470 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6471 * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6472 Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6473 * regex.c (POS_AS_IN_BUFFER): removed
6474 * regex.c (re_search_2):
6475 * regex.c (re_match_2):
6476 Don't use an offset of 1 when calculating buffer positions, since
6477 `BI_BUF_BEGV' does it already.
6479 2001-02-18 Wim Dumon <wim@easics.be>
6481 * insdel.c (prepare_to_modify_buffer): Also check for
6482 supersession when clash-detection is enabled.
6484 2001-02-17 Matt Tucker <tuck@whistlingfish.net>
6486 * regex.c (re_match_2_internal):
6487 Convert temp characters from 'const unsigned char' to 're_char'.
6488 Fix crashing bug with extended characters under mule.
6489 * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6490 syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6491 font-lock, pdump, and new syntax-table code.
6492 * syntax.c (find_start_of_comment):
6493 (find_end_of_comment):
6495 Fix crashing bugs involving moving beyond end of buffer.
6496 * syntax.c (find_start_of_comment):
6497 Fixed logic to allow proper detection of cases where the same
6498 character is used to end both a two-char comment start and a
6499 two-char comment end sequence. Fixes `(forward-comment -1)'.
6500 * syntax.c (find_start_of_comment):
6501 Return position just past last comment-end character for all cases
6502 (previously was only done for two-char comment-end sequences).
6503 * syntax.c (forward-comment):
6504 Take value returned from `find_end_of_comment', rather than
6506 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6507 Properly deal with BUFFERP (syntax_cache.object)
6509 2001-02-17 Martin Buchholz <martin@xemacs.org>
6511 * alloc.c (Fgarbage_collect):
6512 * alloc.c (make_bit_vector_from_byte_vector):
6513 -Wsign-compare-correctness.
6515 2001-02-16 Martin Buchholz <martin@xemacs.org>
6517 * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6518 (XSETCHAR): Likewise.
6519 (XSETOBJ): Likewise.
6521 2001-02-15 Martin Buchholz <martin@xemacs.org>
6523 * mule-canna.c (canna-func-delete_previous):
6524 Rename to canna-func-delete-previous.
6526 2001-02-14 Martin Buchholz <martin@xemacs.org>
6528 * mule-ccl.c (ccl_driver): Warning suppression. Use countof.
6530 2001-02-13 Matt Tucker <tuck@whistlingfish.net>
6532 * font-lock.c (find_context): Fix C++ compile errors introduced by
6535 2001-02-13 Martin Buchholz <martin@xemacs.org>
6537 * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6538 pragma, but earlier ones barf on the same pragma.
6540 2001-02-06 Mike Sperber <mike@xemacs.org>
6542 * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6543 `configure-mule-lisp-directory'.
6545 2001-02-12 Martin Buchholz <martin@xemacs.org>
6547 Make sure dump-id.c is compiled in the same way as other .c's.
6548 Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6549 * dump-id.h: Remove.
6550 * emacs.c: Move dump-id.h into dumper.h.
6551 * dumper.h: Move dump-id.h into dumper.h.
6553 Use standard .c.o rule for building dump-id.o.
6554 Remove preprocessor flags from link command.
6555 Add dump-id.o to ${otherobjs} if PDUMP.
6557 2001-02-07 Matt Tucker <tuck@whistlingfish.net>
6559 Port FSF 20.7 syntax table improvements.
6563 Fixups for new syntax table stuff.
6564 * dired.c: Include syntax.c.
6565 (Fdirectory_files): Initialize regex_match_object and
6567 * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6568 and Fget_char_property.
6570 Use ported FSF 20.7 syntax table improvements.
6575 2001-02-09 Martin Buchholz <martin@xemacs.org>
6577 * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6578 Unixware's enum boolean from sys/types.h.
6580 2001-02-10 Martin Buchholz <martin@xemacs.org>
6582 Fix support for building with latest Purify.
6583 * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6584 (PURIFY_FLAGS): Likewise.
6586 2001-02-09 Martin Buchholz <martin@xemacs.org>
6588 * fileio.c (lisp_string_set_file_times): New.
6589 * fileio.c (Fcopy_file): Use it.
6591 (copy-file filename non-ascii-filename t t)
6592 ==> No such file or directory, non-ascii-filename
6594 2001-02-10 Martin Buchholz <martin@xemacs.org>
6596 * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6597 USHRT_MAX seems clearer than ~0 anyways.
6599 2001-02-09 Martin Buchholz <martin@xemacs.org>
6601 dumper improvements. Inspired by Olivier.
6602 * dumper.c (pdump_max_align): New.
6603 * dumper.c (pdump_add_entry): Use pdump_max_align.
6604 * dumper.c (pdump_get_entry_list): Likewise.
6605 * dumper.c (pdump_scan_by_alignment): Likewise.
6606 Don't iterate through unnecessary alignments.
6607 * dumper.c (pdump_file_get): No need to align result of malloc().
6608 * dumper.c (pdump_mallocadr): Remove.
6609 The result of malloc() is guaranteed to be maximally aligned.
6610 * dumper.c: s/elmt/elt/g;
6611 * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6612 * dumper.c (pdump_alert_undump_object): Likewise.
6613 * dumper.c (pdump_align_table):
6614 Don't support alignments > 64.
6615 Store ALIGNOF's, not shift counts, in table.
6617 2001-02-09 Martin Buchholz <martin@xemacs.org>
6619 * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6620 * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6621 * systime.h: Use HAVE_UTIME.
6622 * sysdep.c (struct utimbuf): Remove.
6623 * sysdep.c (set_file_times): Prefer utime() to utimes().
6624 * config.h.in (HAVE_UTIME): New.
6625 * config.h.in (HAVE_UTIME_H): Remove.
6626 * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6628 2001-02-09 Martin Buchholz <martin@xemacs.org>
6630 * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6632 2001-02-08 Martin Buchholz <martin@xemacs.org>
6634 * s/irix6-0.h: Use the standard system memmove, not bcopy.
6636 2001-02-08 Martin Buchholz <martin@xemacs.org>
6638 * XEmacs 21.2.44 "Thalia" is released.
6640 2001-02-06 Martin Buchholz <martin@xemacs.org>
6642 Fixes crashes in kill-emacs on some systems.
6643 * process-unix.c (unix_kill_child_process):
6644 It's OK for kill() to fail with ESRCH.
6646 2001-02-07 Martin Buchholz <martin@xemacs.org>
6648 Contortions to make .gdbinit tricks work on most systems.
6649 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6650 * alloc.c (dbg_valmask): Make non-const.
6651 * alloc.c (dbg_typemask): Make non-const.
6652 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6653 * alloc.c (dbg_valbits): Make non-const.
6654 * alloc.c (dbg_gctypebits): Make non-const.
6655 * .gdbinit (decode_object): Make it work with AIX cc.
6657 2001-02-06 Martin Buchholz <martin@xemacs.org>
6659 * elhash.c (make_general_lisp_hash_table):
6660 Use simpler and more efficient calloc to clear entries.
6662 2001-02-07 Martin Buchholz <martin@xemacs.org>
6664 * window.c (window_scroll): Work around an AIX C compiler bug.
6665 Fixes 'scroll-up' does nothing problem with xlC.
6667 2001-02-05 Martin Buchholz <martin@xemacs.org>
6669 * .gdbinit: Remove obsolete comment.
6671 2001-01-31 Mike Alexander <mta@arbortext.com>
6673 * select.c (Fown_selection_internal): Set owned_p for device
6676 2001-02-01 Martin Buchholz <martin@xemacs.org>
6679 "not" cannot be used as a macro name as it is an operator in C++
6680 * config.h.in: Stop #defining `not'.
6681 * chartab.c (check_category_char): not ==> not_p
6682 * chartab.h: Likewise.
6683 * regex.c (re_match_2_internal): Likewise.
6685 2001-02-02 Martin Buchholz <martin@xemacs.org>
6687 * lisp-disunion.h: Fix up comments.
6689 2001-01-31 Martin Buchholz <martin@xemacs.org>
6691 * keymap.c (define_key_check_and_coerce_keysym):
6693 Support mouse-6 and mouse-7 bindings in the obvious way.
6695 2001-02-01 Martin Buchholz <martin@xemacs.org>
6697 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6699 2001-01-30 Martin Buchholz <martin@xemacs.org>
6701 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6702 Previous patch missed DEFVAR_INT_MAGIC.
6703 Make sure future DEFVAR_foo use correct types.
6704 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6705 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6706 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6707 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6708 * (DEFVAR_INT): Likewise.
6709 * redisplay.c (vertical_clip): Should be of type Fixnum.
6710 * redisplay.c (horizontal_clip): Likewise.
6711 * lisp.h (dump_add_opaque_int): New.
6712 (dump_add_opaque_fixnum): New.
6714 2001-01-29 Andy Piper <andy@xemacs.org>
6716 * glyphs-widget.c (check_valid_int_or_function): allow symbols
6717 since they can be eval'ed
6719 2001-01-29 Martin Buchholz <martin@xemacs.org>
6721 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6722 Oops, XEmacs redefines `class'. Use `typename' instead.
6724 2001-01-28 Martin Buchholz <martin@xemacs.org>
6726 * dumper.c: Fix C++ compile errors.
6728 2001-01-29 Martin Buchholz <martin@xemacs.org>
6730 * tparam.c: Use correct prototypes.
6732 2001-01-28 Martin Buchholz <martin@xemacs.org>
6734 * sysproc.h: #include util.h for NetBSD's openpty.
6736 2001-01-27 Martin Buchholz <martin@xemacs.org>
6738 More 64-bit correctness.
6739 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6740 Use a typedef `fixnum' for the type used for DEFVAR_INT.
6742 This finally finishes the 64-bit SGI port.
6743 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6744 * symbols.c: Fix up comments and type casts.
6745 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6746 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6747 * symeval.h (Fixnum): New type.
6748 * symeval.h (symbol_value_type): Fix up comment.
6764 * mule-canna.c: A million DEFVAR_INTs here...
6765 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6778 s/int/Fixnum/g in DEFVAR_INT declarations.
6780 2001-01-26 Martin Buchholz <martin@xemacs.org>
6782 Port pdump to SGI alignment-sensitive environment.
6783 Lisp Object sizeof methods now return aligned sizes. Rely on that.
6784 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6786 Define and use aligned reading and writing macros.
6787 Use buffered stdio instead of posix i/o for faster dumping.
6788 Eliminate kludgy 256 byte space for header.
6789 Read and write from dump file using structs for alignment safety.
6790 * dumper.c (pdump_align_stream): New.
6791 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6792 * dumper.c (PDUMP_READ_ALIGNED): New.
6793 * dumper.c (PDUMP_WRITE_ALIGNED): New.
6794 * dumper.c (pdump_static_Lisp_Object): New struct.
6795 * dumper.c (pdump_static_pointer): New struct.
6796 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6797 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6798 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6799 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6801 * dumper.c (pdump_backtrace):
6802 * dumper.c (pdump_get_indirect_count):
6803 * dumper.c (pdump_register_object):
6804 * dumper.c (pdump_register_struct):
6805 * dumper.c (pdump_reloc_one):
6806 * dumper.c (pdump_scan_by_alignment):
6807 * dumper.c (pdump_dump_from_root_struct_ptrs):
6808 * dumper.c (pdump_dump_opaques):
6809 * dumper.c (pdump_dump_rtables):
6810 * dumper.c (pdump_dump_from_root_objects):
6812 * dumper.c (pdump_load_finish):
6813 Use aligned reading and writing.
6815 * dumper.c (pdump_free): Make static.
6816 * dumper.c (pdump_hFile): Likewise.
6817 * dumper.c (pdump_hMap): Likewise.
6819 2001-01-26 Martin Buchholz <martin@xemacs.org>
6821 * XEmacs 21.2.43 "Terspichore" is released.
6823 2001-01-25 Martin Buchholz <martin@xemacs.org>
6825 Type fiddling for window_config.saved_windows_count
6826 * window.c (struct window_config):
6827 Make saved_windows_count member unsigned.
6828 * window.c (sizeof_window_config_for_n_windows):
6829 Make parameter unsigned.
6830 * window.c (mark_window_config):
6831 * window.c (window_config_equal):
6832 * window.c (free_window_configuration):
6833 * window.c (Fset_window_configuration):
6834 * window.c (count_windows):
6835 * window.c (Fcurrent_window_configuration):
6836 * window.c (reinit_vars_of_window):
6837 Update all callers and users.
6839 2001-01-25 Martin Buchholz <martin@xemacs.org>
6841 Alignment correctness for flexible arrays.
6842 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6843 Make alignment-correct. Add interesting comments.
6844 * alloc.c (size_vector):
6845 * alloc.c (make_vector_internal):
6846 * alloc.c (make_bit_vector_internal):
6847 * alloc.c (sweep_bit_vectors_1):
6848 * fns.c (size_bit_vector):
6849 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6850 * window.c (sizeof_window_config_for_n_windows):
6851 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6853 2001-01-24 Martin Buchholz <martin@xemacs.org>
6855 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6857 2001-01-23 Andy Piper <andy@xemacs.org>
6859 * select.c (Fown_selection_internal): pass owned_p
6861 * select-msw.c (mswindows_own_selection): New Signature.
6863 * console.h (struct console_methods): add owned_p to
6866 * select-x.c (x_own_selection): pass owned_p
6867 (hack_motif_clipboard_selection): use owned_p
6868 (vars_of_select_x): new variable -
6869 x_selection_strict_motif_ownership.
6871 2001-01-23 Martin Buchholz <martin@xemacs.org>
6873 * specifier.h (specifier_data_offset): Remove pointless parens.
6874 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6876 2001-01-24 Martin Buchholz <martin@xemacs.org>
6878 Make Lisp_Object sizeof methods be alignment-correct.
6879 pdump must restore objects to the same alignment as the C compiler
6880 assumes. It really matters on SGIs.
6881 * lstream.c (aligned_sizeof_lstream): New.
6882 (sizeof_lstream): Use aligned_sizeof_lstream.
6883 (Lstream_new): Likewise.
6884 * opaque.c (aligned_sizeof_opaque): New.
6885 (sizeof_opaque): Use aligned_sizeof_opaque.
6886 (make_opaque): Likewise.
6887 * specifier.c (aligned_sizeof_specifier): New.
6888 (sizeof_specifier): Use aligned_sizeof_specifier.
6889 (make_specifier_internal): Likewise.
6891 2001-01-23 Martin Buchholz <martin@xemacs.org>
6893 * lstream.h (struct lstream): Use max_align_t for trailing data.
6894 * specifier.h (struct Lisp_Specifier): Likewise.
6896 2001-01-22 Martin Buchholz <martin@xemacs.org>
6898 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6899 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6900 (CCL_SUSPEND): Likewise.
6901 (CCL_INVALID_CMD): Likewise.
6902 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6903 (ccl_driver): Likewise.
6904 (CCL_WRITE_CHAR): Macro hygiene.
6905 (CCL_WRITE_STRING): Macro hygiene.
6907 2001-01-22 Martin Buchholz <martin@xemacs.org>
6909 Port "portable" dumper to SunOS 4 and HP-UX.
6910 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6911 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6912 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6914 2001-01-22 Martin Buchholz <martin@xemacs.org>
6916 * lisp.h (ALIGNOF): A better definition for C++.
6918 2001-01-20 Martin Buchholz <martin@xemacs.org>
6921 Fix printf warnings: int format, long int arg.
6922 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6923 (PUSH_FAILURE_POINT): Use correct printf formats.
6924 (POP_FAILURE_POINT): Use correct printf formats.
6925 Use do {...} while (0)
6927 2001-01-20 Martin Buchholz <martin@xemacs.org>
6929 * XEmacs 21.2.42 "Poseidon" is released.
6931 2001-01-20 Martin Buchholz <martin@xemacs.org>
6933 * console-x.h: typo fix du jour. Remove #if 0'ed code.
6935 2001-01-19 Martin Buchholz <martin@xemacs.org>
6937 De-kludgify FIXED_TYPE free list frobbing.
6938 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6939 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6940 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6941 * alloc.c (Lisp_Free): New pseudo lisp object definition.
6942 * alloc.c (LRECORD_FREE_P): New.
6943 * alloc.c (MARK_LRECORD_AS_FREE): New.
6944 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6945 * alloc.c (STRUCT_FREE_P): Deleted.
6946 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6947 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6948 * alloc.c (STRING_CHARS_FREE_P): New.
6949 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6950 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6951 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6952 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6953 * alloc.c (resize_string): Use new definitions.
6954 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6955 * alloc.c (verify_string_chars_integrity): Use new definitions.
6956 * alloc.c (compact_string_chars): Use new definitions.
6957 * alloc.c: Update monster comments.
6958 * lrecord.h (lrecord_type): Add some new lrecord types for
6961 2001-01-18 Martin Buchholz <martin@xemacs.org>
6963 Improve alignment hackery.
6964 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6965 (max_align_t): Moved from opaque.h - general purpose.
6966 (ALIGN_PTR): Use size_t, not long.
6967 * opaque.h (max_align_t): Move to lisp.h.
6969 2001-01-18 Norbert Koch <nk@LF.net>
6971 * gui.h: Fix and add prototypes to fix build problems.
6973 2001-01-18 Martin Buchholz <martin@xemacs.org>
6975 temacs is going away, so `dump-temacs' is now a bad name.
6976 * .dbxrc (dump-temacs): Rename to `dmp'.
6977 * .gdbinit (dump-temacs): Rename to `dmp'.
6979 2001-01-17 Andy Piper <andy@xemacs.org>
6981 * glyphs.c (print_image_instance): comment to make martin happy.
6983 * glyphs-x.c (x_redisplay_widget): update faces after a frame
6986 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
6988 (mswindows_tab_control_redisplay): warning suppression.
6990 * glyphs-widget.c (widget_update): re-write to cope with updated
6992 (widget_instantiate): use new gui_item functions.
6993 (tab_control_update): deleted.
6994 (progress_gauge_update): deleted.
6995 (image_instantiator_progress_guage): take out update reference.
6996 (image_instantiator_tree_view): ditto.
6997 (image_instantiator_tab_control): ditto.
6999 * gui.c (widget_gui_parse_item_keywords): new function. Do things
7001 (gui_item_add_keyval_pair): re-write to cope with descriptors and
7002 return whether anything was changed.
7003 (update_gui_item_keywords): as it sounds.
7005 * gui.h: declare widget_gui_parse_item_keywords.
7007 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7008 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7010 2001-01-17 Martin Buchholz <martin@xemacs.org>
7012 * XEmacs 21.2.41 "Polyhymnia" is released.
7014 2001-01-16 Didier Verna <didier@xemacs.org>
7016 * glyphs.c (image_instantiate): don't use fallbacks when
7017 instantiating a face's background pixmap by inheritance.
7019 2001-01-14 Mike Sperber <mike@xemacs.org>
7021 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7022 Conditionalize accordingly.
7024 2001-01-16 Martin Buchholz <martin@xemacs.org>
7026 * dumper.c (pdump_file_get): Fix a compiler warning.
7028 2001-01-15 Martin Buchholz <martin@xemacs.org>
7030 Make Purify happy when pdumping.
7031 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7032 iniitalizing all bits of new lisp object memory.
7033 * symbols.c (Fmake_local_variable): Likewise.
7034 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7035 * symbols.c (Fdefvaralias): Likewise.
7036 * mule-charset.c (vars_of_mule_charset): Likewise.
7038 2001-01-15 Martin Buchholz <martin@xemacs.org>
7039 Add the `-nd' flag when running pre-dump operations under the debugger.
7040 * .dbxrc (run-temacs): Add `-nd'.
7041 * .dbxrc (update-elc): Likewise.
7042 * .dbxrc (dump-temacs): Likewise.
7043 * .gdbinit (run-temacs): Likewise.
7044 * .gdbinit (check-temacs): Likewise.
7045 * .gdbinit (update-elc): Likewise.
7046 * .gdbinit (dump-temacs): Likewise.
7048 2001-01-14 Martin Buchholz <martin@xemacs.org>
7050 Allow building 64-bit executables on AIX with GNU malloc, e.g.
7051 export OBJECT_MODE=64
7052 configure --pdump --use-union-type=no
7053 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7054 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7056 * miscplay.c (sndcnv8U_2mono):
7057 Avoid two uses of `++' in the same expression.
7058 Suppresses a GCC warning.
7060 2001-01-13 Martin Buchholz <martin@xemacs.org>
7062 Make sure future compilers don't miscompile alloc.c.
7064 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7065 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7067 2001-01-12 Martin Buchholz <martin@xemacs.org>
7069 * dumper.c: A little post-pdump-rename comment fixup.
7071 2001-01-09 Jerry James <james@eecs.ku.edu>
7073 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7075 2001-01-13 Martin Buchholz <martin@xemacs.org>
7077 * *.[ch]: Globally rename symbols using the following `pdump-rename'
7081 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7084 replace_symbol pdump_wire_lists pdump_weak_object_chains
7085 replace_symbol pdump_wire_list dump_add_weak_object_chain
7087 replace_symbol pdump_wires pdump_root_objects
7088 replace_symbol pdump_wire dump_add_root_object
7090 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7091 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7093 replace_symbol dumpstructinfos pdump_root_struct_ptrs
7094 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7095 replace_symbol dumpstructinfo pdump_root_struct_ptr
7096 replace_symbol dumpstruct dump_add_root_struct_ptr
7098 replace_symbol dumpopaque dump_add_opaque
7099 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7100 replace_symbol dumpopaqueinfos pdump_opaques
7101 replace_symbol dumpopaqueinfo pdump_opaque
7103 replace_symbol nb_structdump nb_root_struct_ptrs
7104 replace_symbol nb_opaquedump nb_opaques
7106 replace_symbol align_table pdump_align_table
7107 replace_symbol dump_header pdump_header
7109 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7110 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7113 2001-01-12 Martin Buchholz <martin@xemacs.org>
7115 * s/aix4.h: Keep the C for AIX compiler from overaggressively
7116 optimizing bytecount_to_charcount().
7118 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
7121 (HAVE_DLFCN_H): Removed.
7122 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7124 2001-01-06 Martin Buchholz <martin@xemacs.org>
7126 Portable dumper maintainability improvements.
7127 * alloc.c (staticpro):
7128 * alloc.c (staticpro_nodump):
7129 * alloc.c (garbage_collect_1):
7130 * alloc.c (reinit_alloc_once_early):
7131 * alloc.c (init_alloc_once_early):
7132 * alloc.c: Move dumper functions to alloc.c.
7133 * dumper.c (pdump_backtrace):
7134 * dumper.c (pdump_dump_structs):
7135 * dumper.c (pdump_dump_opaques):
7136 * dumper.c (pdump_dump_rtables):
7137 * dumper.c (pdump_dump_wired):
7139 * dumper.c (pdump_load_check):
7140 * dumper.c (pdump_load_finish):
7141 * dumper.c (pdump_file_unmap):
7142 * dumper.c (pdump_file_get):
7143 * dumper.c (pdump_resource_free):
7144 * dumper.c (pdump_resource_get):
7145 * dumper.c (pdump_file_free):
7146 * dumper.c (pdump_file_try):
7147 * dumper.c (pdump_load):
7148 Remove fixed size limits on staticpro(), staticpro_nodump(),
7149 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7150 Remove custom code for dumping lrecord_implementations_table - use
7152 Remove (most of the) custom code for dumping staticpros - dump it
7153 like any other dynarr.
7155 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
7156 * dumper.c: Moved functions from alloc.c.
7157 * alloc.c (dumpstruct): Moved to dumper.c.
7158 * alloc.c (dumpopaque): Likewise.
7159 * alloc.c (pdump_wire): Likewise.
7160 * alloc.c (pdump_wire_list): Likewise.
7162 * lisp.h (Dynarr_sizeof): New.
7163 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
7164 * lisp.h (Dynarr_end): New. Very slightly C++oid.
7165 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
7167 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7168 * lisp.h (dumpopaque): ditto.
7169 * lisp.h (pdump_wire): ditto.
7170 * lisp.h (pdump_wire_list): ditto.
7172 2001-01-09 Martin Buchholz <martin@xemacs.org>
7174 * make-src-depend (PrintPatternDeps):
7175 Use `sort' to make output independent of perl version.
7177 2001-01-08 Martin Buchholz <martin@xemacs.org>
7180 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7181 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7183 2001-01-03 Didier Verna <didier@xemacs.org>
7185 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7186 that `focus_frame' is alive before thinking of calling
7187 `redisplay_redraw_cursor' on it.
7189 2001-01-08 Martin Buchholz <martin@xemacs.org>
7191 * XEmacs 21.2.40 is released.
7193 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
7195 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7197 2001-01-06 Martin Buchholz <martin@xemacs.org>
7199 * alloc.c (dbg_valmask): Make const.
7200 * alloc.c (dbg_typemask): Make const.
7201 * alloc.c (dbg_USE_UNION_TYPE): Make const.
7202 * alloc.c (dbg_valbits): Make const.
7203 * alloc.c (dbg_gctypebits): Make const.
7205 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
7207 * redisplay-x.c (x_bevel_area):
7208 redisplay.h (struct rune):
7209 Typo fixes in comments.
7211 2001-01-05 Andy Piper <andy@xemacs.org>
7213 * glyphs-x.c (x_redisplay_widget): use size changed for offset
7216 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7218 2001-01-05 Martin Buchholz <martin@xemacs.org>
7220 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7222 * mule-ccl.c (stack_idx_of_map_multiple):
7223 Non const global data must not be initialized!
7224 Found by MIYASHITA Hisashi.
7226 2001-01-02 Andy Piper <andy@xemacs.org>
7228 * frame.c (change_frame_size): make sure frame size is always
7231 * glyphs.c (image_instance_layout): minor code reuse.
7233 * window.c (Fcurrent_window_configuration): revert previous
7236 2001-01-02 Martin Buchholz <martin@xemacs.org>
7239 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7241 2000-12-31 Andy Piper <andy@xemacs.org>
7243 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7244 when widget gets unmapped.
7246 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7247 function. Make sure widgets losing focus don't just drop it.
7248 (handle_focus_event_1): record the widget with focus.
7250 2000-12-31 Andy Piper <andy@xemacs.org>
7252 * window.c (allocate_window): use
7253 make_image_instance_cache_hash_table.
7254 (make_dummy_parent): ditto.
7255 (Fset_window_configuration): ditto.
7257 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
7259 * glyphs.c (process_image_string_instantiator): use
7261 (get_image_instantiator_governing_domain): ditto.
7262 (normalize_image_instantiator): ditto.
7263 (instantiate_image_instantiator): ditto.
7264 (make_image_instance_1): ditto.
7265 (image_instantiate): ditto. Key on glyph *and* instantiator type.
7266 (instantiator_eq_equal): new function for use with instance hash
7268 (instantiator_eq_hash): ditto.
7269 (make_image_instance_cache_hash_table): create a suitable hash
7270 table for storing image instances.
7272 * elhash.h (hash_table_weakness): new internal weakness type
7273 HASH_TABLE_KEY_CAR_VALUE_WEAK.
7274 declare new functions.
7276 * elhash.c (finish_marking_weak_hash_tables): introduce yet
7277 another weakness type for glyphs.
7278 (make_standard_lisp_hash_table): new function split out from
7279 make_general_lisp_hash_table.
7280 (make_lisp_hash_table): call make_standard_lisp_hash_table.
7281 (hash_table_instantiate): ditto.
7282 (Fmake_hash_table): ditto.
7284 2000-12-31 Martin Buchholz <martin@xemacs.org>
7286 * XEmacs 21.2.39 is released.
7288 2000-12-29 Andy Piper <andy@xemacs.org>
7290 * menubar.c (menubar_visible_p_changed): signal the frame changed.
7292 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7293 the frame has changed so that we pick up geometry changes such as
7296 2000-12-28 Andy Piper <andy@xemacs.org>
7298 * lastfile.c (my_ebss): make a char array so we can pad the
7299 bss. Fixes cygwin unexec.
7301 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7303 2000-12-26 Andy Piper <andy@xemacs.org>
7305 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7306 comments and try and be more precise about a non-/SIGIO world.
7307 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7310 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7311 we don't normalize to zero width or height.
7313 2000-12-24 Andy Piper <andy@xemacs.org>
7315 * Makefile.in.in (ldflags): add -mwindows when appropriate.
7317 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
7319 * s/sco5.h: SCO 5 has pty support.
7321 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
7323 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7324 input-method-xlib.c contains whole contents of input-method-xfs.c,
7325 so we can use input-method-xlib.c's code for USE_XFONTSET
7327 * input-method-xfs.c: removed.
7329 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
7331 * file-coding.h (enum coding_category_type): reorder enumerators to
7332 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
7333 (now one greater than largest real coding_category_type enumerator).
7334 * file-coding.c (coding_category_symbol, coding_category_by_priority,
7335 coding_category_system, fcd_descriptihon_1, decode_coding_category,
7336 Fcoding_category_list, Fset_coding_priority_list,
7337 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7338 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7340 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
7342 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7343 * redisplay-output.c (redisplay_output_window): Clear top of window
7344 when face is changed.
7345 * redisplay-x.c (x_redraw_exposed_window): Call
7346 redisplay_clear_top_of_window.
7347 * redisplay.h: Publish redisplay_clear_top_of_window.
7349 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
7351 * buffer.c (Fkill_buffer): Map over all devices.
7352 * window.c (window_loop): Remove UNSHOW_BUFFER code.
7353 (list_windows): New function.
7354 (list_all_windows): Ditto.
7355 (Freplace_buffer_in_windows): Use them.
7357 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7359 * database.c (berkdb_subtype): Recognize new subtype `queue'.
7360 (Fopen_database): Use `db_create' instead of `db_open'.
7361 (syms_of_database): Initialize Qqueue.
7363 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
7365 * buffer.c (common_init_complex_vars_of_buffer): Initialize
7366 buffer_local_face_property.
7367 * buffer.h (struct buffer): New member buffer_local_face_property.
7368 * window.c (Fset_window_buffer): Mark window's face as changed
7369 when buffer has buffer local face.
7370 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7371 * objects.c (color_after_change): Set buffer_local_face_property
7372 when locale of face specifier is buffer.
7373 * objects.c (font_after_change): Ditto.
7374 * objects.c (face_boolean_after_change): Ditto.
7375 * glyphs.c (image_after_change): Ditto.
7377 2000-12-09 Dan Holmsand <dan@eyebee.com>
7379 * nt.c (mswindows_fstat): Report file permissions, volume serial
7380 number, etc. Code adapted from FSF Emacs 20.7.
7382 2000-12-09 Dan Holmsand <dan@eyebee.com>
7384 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7385 of stat when we don't have symbolic links, to make sure
7386 mswindows_stat is called on mswindows.
7388 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
7390 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7392 2000-12-12 Martin Buchholz <martin@xemacs.org>
7394 * doprnt.c (emacs_doprnt_1): More printing fixes.
7395 Make printing of numbers compatible with libc and FSF Emacs.
7396 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7397 Use the system printf to do most of the hard work of formatting,
7398 instead of doprnt_1().
7399 Calculate memory to allocate for format string.
7400 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7401 (doprnt_1): Cleaner code and documentation.
7403 2000-12-01 Jerry James <james@eecs.ukans.edu>
7405 * Makefile.in.in: Use the loop variable to install headers.
7407 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7409 * window.c (Fsplit_window): Don't invalidate face cache.
7411 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7413 * minibuf.c (Fall_completions): Undo the previous change
7414 which removed checking elements start with space.
7416 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
7418 * mule-canna.c: Didier suppression.
7420 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
7422 * mule-canna.c: rename static unsigned char buf[] to key_buffer
7423 (warning suppression). Add English comment translations.
7425 2000-12-05 Martin Buchholz <martin@xemacs.org>
7427 * unexelfsgi.c (unexec): Better test for mmap failure.
7429 2000-12-05 Martin Buchholz <martin@xemacs.org>
7431 * XEmacs 21.2.38 is released.
7433 2000-12-05 Martin Buchholz <martin@xemacs.org>
7435 * redisplay.c (bar-cursor): Make a user variable.
7437 * symsinit.h: Add init_postgresql_from_environment.
7439 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7441 * regex.c: Convert to clean C.
7443 2000-12-05 Dan Holmsand <dan@eyebee.com>
7446 Don't #include sysfile.h. Revert to duplicating PATH_MAX
7448 (sys_readlink): renamed to system_readlink to avoid conflict with
7449 the other sys_readlink.
7451 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
7453 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7455 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
7457 * postgresql.c (init_postgresql_from_environment): new function.
7458 (vars_of_postgresql): Move code initializing Lisp variables out and
7459 into init_postgresql_from_environment.
7460 emacs.c (main_1): Call init_postgresql_from_environment if and only
7461 if running a dumped XEmacs.
7463 2000-08-31 Dan Holmsand <dan@eyebee.com>
7465 * buffer.c: Make find-file-compare-truenames default to true on
7468 * realpath.c (win32_abs_start):
7470 (win32_readlink): New functions.
7471 (xrealpath): Return really real filenames on windows.
7473 * fileio.c (Ffile_truename): Make file-truename work on windows.
7475 2000-11-29 Didier Verna <didier@xemacs.org>
7477 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7478 * faces.c (update_face_cachel_data): use it.
7479 * faces.c (add_face_cachel): use it. Complete background pixmap
7480 frobbing in face cache if `update_face_cachel_data' has not done so.
7482 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
7484 * search.c (string_match_1): Don't set last_thing_searched
7487 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
7489 * buffer.c: Include casetab.h
7490 (common_init_complex_vars_of_buffer): Use new case-table object.
7491 * buffer.h: Include casetab.h
7492 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7493 (DOWNCASE_TABLE_OF): Ditto.
7494 * bufslots.h: Remove char-tables and add case-table.
7495 * casetab.c: Include casetab.h
7496 (CASE_TABLE_P): Removed.
7497 (mark_case_table): New function.
7498 (allocate_case_table): New function.
7499 (Fcase_table_p): Use new case-table.
7500 (case_table_char): New function.
7501 (Fget_case_table): Ditto.
7502 (Fput_case_table): Ditto.
7503 (Fput_case_table_pair): Ditto.
7504 (Fcopy_case_table): Ditto.
7505 (Fcurrent_case_table): Return case-table.
7506 (Fstandard_case_table): Return case-table.
7507 (Fset_case_table): Fix doc-string.
7508 (set_case_table): Use case-table
7509 (syms_of_casetab): DEFSUBR new functions.
7510 (complex_vars_of_casetab): Set up standard case-table.
7511 * casetab.h: New file.
7512 * editfns.c: Include casetab.h
7513 (Fcompare_buffer_substrings): Use case-table.
7514 * inline.c: Include casetab.h
7515 * lisp.h: Remove bogus extern.
7516 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7517 * search.c: Include casetab.h
7518 (TRANSLATE_ASCII): Removed.
7519 (TRANSLATE): Unconditionally translate character.
7520 (looking_at_1): Use case-table.
7521 (string_match_1): Ditto.
7522 (fast_string_match): Ditto.
7523 (search_command): Ditto.
7524 (search_buffer): Separate boyer_moore. Check whether
7525 boyer_moore is possible.
7526 (simple_search): New function.
7527 (boyer_moore): Separated from search_buffer. Translate char.
7529 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
7531 * regex.c (RE_TR_ASCII): Removed.
7532 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7533 (PATFETCH): Call PATFETCH_RAW.
7534 (PATFETCH_RAW): Fetch Emchar.
7535 (PATUNFETCH): Decrement charptr.
7536 (GET_BUFFER_SPACE): Rename b to buf_end.
7538 (BUF_PUSH_2): Ditto.
7539 (BUF_PUSH_3): Ditto.
7540 (EXTEND_BUFFER): Ditto.
7541 (SET_LIST_BIT): Ditto.
7542 (regex_compile): Ditto. Translate non ASCII char.
7543 (compile_range): Ditto.
7544 (re_search_2): Ditto.
7545 (re_match_2_internal): Compare Emchar.
7546 (bcmp_translate): Ditto.
7548 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
7550 * lisp.h (basic char/int typedefs): comment improvement.
7552 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
7554 * emacs.c (main_1): unconditional pdump unstomping; don't save and
7555 unstomp inhibit_site_lisp. Improve comments.
7557 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
7559 * mule-charset.c (Fcharset_property): improve type checking, comments.
7561 2000-11-28 Andy Piper <andy@xemacs.org>
7563 * redisplay-output.c (redisplay_output_subwindow): make sure we do
7564 clipped display for windows in the gutter also.
7565 (redisplay_display_boxes_in_window_p): change semantics of return
7566 codes to be more intuitive.
7568 * gutter.h: declare display_boxes_in_gutter_p.
7570 * gutter.c (display_boxes_in_gutter_p): new function for
7573 2000-11-22 Andy Piper <andy@xemacs.org>
7575 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7578 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
7580 * callproc.c (Fold_call_process_internal):
7581 * gpm.c (Freceive_gpm_event):
7582 (tty_get_foreign_selection): Might be just warning supression.
7583 * fileio.c (Fwrite_region_internal):
7584 (Fset_visited_file_modtime):
7585 * keymap.c (event_matches_key_specifier_p):
7586 Initialize GCPROed variable.
7588 * menubar-x.c (command_builder_find_menu_accelerator):
7589 Initialize before use.
7591 2000-11-23 Andy Piper <andy@xemacs.org>
7593 * unexcw.c (unexec): make the resulting executable executable.
7595 2000-11-21 Martin Buchholz <martin@xemacs.org>
7597 * doc.c (get_doc_string):
7598 Use size_t, not int, for result of XSTRING_LENGTH.
7600 * cmds.c (Fdelete_char):
7601 * cmds.c (Fpoint_at_eol):
7602 * cmds.c (Fself_insert_command):
7603 Use EMACS_INT, not int, for result of XINT.
7604 Someday, someone will want to insert more than 2**31 identical characters.
7606 * cmds.c (Fdelete_char):
7607 * cmds.c (Fdelete_backward_char):
7608 * syntax.c (Fforward_word):
7609 * syntax.c (Fforward_comment):
7610 Make COUNT argument optional, for consistency with forward-char et al.
7612 2000-11-22 Martin Buchholz <martin@xemacs.org>
7615 * print.c (long_to_string):
7616 Return a useful value: the pointer at end of data written.
7619 Use `static const char * const' for constant strings.
7620 (union printf_arg): Delete `i', `ui' members.
7623 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7624 Do all printf-ing via the `l' specifier.
7625 Use EMACS_INT instead of int.
7628 2000-11-20 Didier Verna <didier@xemacs.org>
7630 * faces.c (update_face_cachel_data): don't frob the background
7631 pixmap when the window is being created. The face is needed but
7634 2000-11-20 Andy Piper <andy@xemacs.org>
7636 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7637 messing with a debug environment.
7639 2000-11-20 Martin Buchholz <martin@xemacs.org>
7641 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7643 2000-11-20 Martin Buchholz <martin@xemacs.org>
7645 * casetab.c (Fcase_table_p): Fix compile error and crash.
7647 2000-11-18 Philip Aston <philipa@mail.com>
7649 * s/cygwin32.h: Cygwin has SVR4-like pty support.
7651 2000-11-18 Martin Buchholz <martin@xemacs.org>
7653 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
7654 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7656 2000-11-17 Martin Buchholz <martin@xemacs.org>
7658 * config.h.in: Define HAVE_ELF_H if elf.h exists.
7659 * unexelf.c: Use HAVE_ELF_H.
7660 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7661 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7662 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7663 Greg Harrington <greg_harrington@hotmail.com> provided a machine
7665 So this is an unexelfsgi.c from a different line of development.
7667 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
7669 * regex.c (RE_TR_ASCII): New function.
7670 (RE_TRANSLATE): Call it.
7672 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
7674 * buffer.h (TRT_TABLE_OF): Remove assert.
7675 (IN_TRT_TABLE_DOMAIN): Removed.
7677 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
7679 * free-hook.c (log_gcpro):
7680 (show_gcprohist): Add support for GCPRO5.
7682 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
7684 * emacs.c (main_1): Improve -sd error message when --pdump=no.
7686 2000-11-16 Olivier Galibert <galibert@xemacs.org>
7688 * symeval.h: Declare flush_all_buffer_local_cache.
7690 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7691 (flush_buffer_local_cache): Added.
7692 (flush_all_buffer_local_cache): Added.
7694 * lrecord.h: Remove unused XD_LO_RESET_NIL.
7696 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7697 (pdump_dump_data): Ditto.
7698 (pdump_reloc_one): Ditto.
7699 (pdump): Remove unused pdump_qnil. Flush buffer local caches
7703 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
7705 * buffer.c: Remove if 0'ed entry.
7706 * buffer.h: Rewrite TRT to use char-table.
7707 * bufslots.h: Remove mirror tables.
7708 * casetab.c: Remove mirror tables.
7709 (CASE_TABLE_P): New macro.
7710 (Fcase_table_p): Element of a case table is string or char-table.
7711 (make_mirror_trt_table): Removed.
7712 (set_case_table): Setup char-table from strings for backward
7714 * dired.c (Fdirectory_files):
7715 * dired-msw.c: (mswindows_get_files):
7716 * lisp.h: Change prototype of re_pattern_buffer.
7717 * regex.c: (RE_TRANSLATE): New macro.
7718 (TRANSLATE_P): Ditto.
7719 Change translate to type RE_TRANSLATE_TYPE.
7720 * regex.h: Define RE_TRANSLATE_TYPE
7721 * search.c (TRANSLATE): New macro.
7722 (TRANSLATE_ASCII): New macro.
7723 Translate table is changed to Lisp_Object.
7724 (signal_failure): Inhibit return.
7726 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
7733 Do UNGCPRO before return.
7735 2000-11-14 Martin Buchholz <martin@xemacs.org>
7737 * XEmacs 21.2.37 is released.
7739 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
7741 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7742 Add comments about discarded return value.
7744 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
7747 * event-stream.c: Fix comments. Remove some #if 0'ed part.
7749 2000-10-27 Andy Piper <andy@xemacs.org>
7751 * gutter.c (Fset_default_gutter_position): default left and right
7753 (calculate_gutter_size): calculate resonable heuristic for left
7754 and right gutter sizes.
7755 (specifier_vars_of_gutter): change left and right gutter sizes to
7757 (calculate_gutter_size_from_display_lines): new function.
7758 (output_gutter): check for resizing on left and right gutters.
7759 (clear_gutter): don't special case top and left gutters.
7760 (specifier_vars_of_gutter): use new signature for
7761 set_specifier_caching.
7763 * glyphs-x.c (x_redisplay_widget): spelling fix.
7764 * glyphs.c (specifier_vars_of_glyphs):
7765 * menubar.c (specifier_vars_of_menubar):
7766 * redisplay.c (specifier_vars_of_redisplay):
7767 * toolbar.c (specifier_vars_of_toolbar):
7768 * window.c (specifier_vars_of_window):
7769 * scrollbar.c (specifier_vars_of_scrollbar):
7770 (complex_vars_of_scrollbar): use new signature for
7771 set_specifier_caching.
7773 * specifier.c (set_specifier_caching): include recompute flag.
7774 (recompute_one_cached_specifier_in_window): always recompute if
7776 (recompute_one_cached_specifier_in_frame): ditto.
7778 * specifier.h (struct specifier_caching): add recompute flag.
7780 2000-10-24 Andy Piper <andy@xemacs.org>
7782 * unexcw.c (copy_executable_and_dump_data_section): add new
7783 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7786 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7788 * console-x.h (x_device): New member modifier_release_time.
7789 * event-Xt.c (x_handle_sticky_modifiers):
7790 Bound interval modifier keys are sticky.
7791 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7792 * events.h: extern it.
7794 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7796 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7798 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7800 * event-stream.c (execute_command_event): Preserve current_events
7801 and the like when event is misc-user-event.
7802 Inhibit quit during the call to maybe_echo_keys.
7804 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
7806 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7807 symlink when buffer is killed.
7808 (inhibit_clash_detection): New variable.
7810 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
7812 * console.c (Fset_input_method): Trigger redisplay on tty.
7814 2000-11-07 Martin Buchholz <martin@xemacs.org>
7816 * process.c (Fprocess_status): Revert to previous behavior:
7817 (process-status "nosuchprocess") ==> nil
7819 2000-11-06 Martin Buchholz <martin@xemacs.org>
7821 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7822 Work around another GCC 2.95.2 optimizer bug.
7824 2000-11-02 Martin Buchholz <martin@xemacs.org>
7826 * process.c (Fget_process): Use LIST_LOOP_2.
7827 (kill_buffer_processes): Use LIST_LOOP_2.
7829 * minibuf.c (Fall_completions):
7830 Delete old non-functional code for FSF fourth argument.
7832 * frame.c (frame_matches_frame_spec):
7833 Renamed from `frame_matches_frametype'. Update all callers.
7834 (device_matches_device_spec):
7835 Renamed from 'device_matches_console_spec'. Update all callers.
7837 * doc.c (Fsubstitute_command_keys):
7838 Remove buffer overflow crash. Small code cleanups.
7840 * casetab.c (check_case_table): Simpler code.
7842 * window.c (Freplace_buffer_in_windows):
7843 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7844 (and similar implementation) as Fdelete_windows_on.
7847 * alloc.c (Fmake_list):
7848 * alloc.c (make_vector):
7849 * alloc.c (Fmake_vector):
7850 * alloc.c (make_bit_vector):
7851 * alloc.c (Fmake_bit_vector):
7852 * alloc.c (Fbit_vector):
7853 * alloc.c (Fmake_string):
7854 * alloc.c (Fpurecopy):
7855 * alloc.c (Fmemory_limit):
7857 * buffer.c (Fget_buffer):
7858 * buffer.c (Fkill_buffer):
7859 * buffer.c (complex_vars_of_buffer):
7860 * bytecode.c (Fcompiled_function_stack_depth):
7861 * callint.c (Fprefix_numeric_value):
7863 * event-stream.c (Fread_key_sequence):
7865 * casetab.c (Fcase_table_p):
7866 * casetab.c (check_case_table):
7867 * casetab.c (Fset_case_table):
7868 * casetab.c (Fset_standard_case_table):
7870 * chartab.c (Fchar_table_type):
7871 * chartab.c (Freset_char_table):
7872 * chartab.c (Fget_char_table):
7873 * chartab.c (Fget_range_char_table):
7874 * chartab.c (Fput_char_table):
7875 * chartab.c (Fmap_char_table):
7876 * chartab.c (Fcategory_table_p):
7877 * chartab.c (Fcheck_category_at):
7878 * chartab.c (Fchar_in_category_p):
7879 * chartab.c (Fcategory_table):
7880 * chartab.c (Fcopy_category_table):
7881 * chartab.c (Fset_category_table):
7882 * chartab.c (Fcategory_designator_p):
7883 * chartab.c (Fcategory_table_value_p):
7884 * cmds.c (Fdelete_char):
7885 * cmds.c (Fdelete_backward_char):
7886 * cmds.c (Fself_insert_command):
7887 * cmds.c (Fself_insert_internal):
7888 * console.c (Fvalid_console_type_p):
7889 * console.c (Fcdfw_console):
7890 * console.c (Fconsole_type):
7891 * console.c (Fconsole_name):
7892 * console.c (Fconsole_device_list):
7893 * console.c (Fconsole_on_window_system_p):
7897 * data.c (Fsubr_interactive):
7898 * data.c (Fchar_to_int):
7899 * data.c (Fint_to_char):
7902 * data.c (Fnumber_to_string):
7903 * data.c (Fstring_to_number):
7905 * database.c (mark_database):
7906 * database.c (finalize_database):
7907 * database.c (Fdatabase_live_p):
7908 * database.c (Fdatabasep):
7909 * device-x.c (Fx_get_resource):
7910 * device.c (Fdfw_device):
7912 * dired.c (Ffile_name_completion):
7913 * dired.c (Ffile_name_all_completions):
7914 * dired.c (Fuser_name_completion):
7915 * dired.c (Fuser_name_completion_1):
7916 * dired.c (Fuser_name_all_completions):
7917 * doc.c (Fdocumentation):
7918 * doc.c (Fdocumentation_property):
7919 * doc.c (Fsubstitute_command_keys):
7921 * editfns.c (Fchar_to_string):
7922 * editfns.c (Fstring_to_char):
7923 * editfns.c (Ftemp_directory):
7924 * editfns.c (Finsert_char):
7925 * editfns.c (Fbuffer_substring_no_properties):
7926 * editfns.c (Fnarrow_to_region):
7927 * editfns.c (Fchar_equal):
7928 * editfns.c (Fchar_Equal):
7929 * editfns.c (Ftranspose_regions):
7930 * emacs.c (Fdump_emacs):
7932 * eval.c (Fcommand_execute):
7933 * eval.c (Fautoload):
7934 * eval.c (Fbacktrace):
7935 * eval.c (Fbacktrace_frame):
7937 * events.c (Fcopy_event):
7938 * events.c (Fcharacter_to_event):
7939 * events.c (Fevent_button):
7940 * events.c (Fevent_process):
7942 * extents.c (Fnext_extent_change):
7943 * extents.c (Fextent_property):
7945 * faces.c (Fmake_face):
7947 * file-coding.c (Fencode_shift_jis_char):
7948 * file-coding.c (Fencode_big5_char):
7949 * fileio.c (Ffile_name_directory):
7950 * fileio.c (Ffile_name_nondirectory):
7951 * fileio.c (Ffile_name_as_directory):
7952 * fileio.c (Fdirectory_file_name):
7953 * fileio.c (Ffile_truename):
7954 * fileio.c (Fsubstitute_in_file_name):
7955 * fileio.c (Ffile_modes):
7956 * fileio.c (Fset_file_modes):
7957 * fileio.c (Fset_default_file_modes):
7958 * fileio.c (Fverify_visited_file_modtime):
7959 * floatfns.c (Facos):
7960 * floatfns.c (Fasin):
7961 * floatfns.c (Fatan):
7962 * floatfns.c (Fcos):
7963 * floatfns.c (Fsin):
7964 * floatfns.c (Ftan):
7965 * floatfns.c (Fbessel_j0):
7966 * floatfns.c (Fbessel_j1):
7967 * floatfns.c (Fbessel_jn):
7968 * floatfns.c (Fbessel_y0):
7969 * floatfns.c (Fbessel_y1):
7970 * floatfns.c (Fbessel_yn):
7971 * floatfns.c (Ferf):
7972 * floatfns.c (Ferfc):
7973 * floatfns.c (Flog_gamma):
7974 * floatfns.c (Fexp):
7975 * floatfns.c (Fexpt):
7976 * floatfns.c (Flog):
7977 * floatfns.c (Flog10):
7978 * floatfns.c (Fsqrt):
7979 * floatfns.c (Fcube_root):
7980 * floatfns.c (Facosh):
7981 * floatfns.c (Fasinh):
7982 * floatfns.c (Fatanh):
7983 * floatfns.c (Fcosh):
7984 * floatfns.c (Fsinh):
7985 * floatfns.c (Ftanh):
7986 * floatfns.c (Fabs):
7987 * floatfns.c (Ffloat):
7988 * floatfns.c (Flogb):
7989 * floatfns.c (Fceiling):
7990 * floatfns.c (Ffloor):
7991 * floatfns.c (Fround):
7992 * floatfns.c (Ftruncate):
7993 * floatfns.c (Ffceiling):
7994 * floatfns.c (Fffloor):
7995 * floatfns.c (Ffround):
7996 * floatfns.c (Fftruncate):
7997 * fns.c (Fstring_equal):
7998 * fns.c (Fstring_lessp):
8003 * fns.c (Fsubstring):
8005 * fns.c (Fold_assoc):
8006 * fns.c (assoc_no_quit):
8008 * fns.c (Fold_assq):
8009 * fns.c (assq_no_quit):
8011 * fns.c (Fold_rassoc):
8013 * fns.c (Fold_rassq):
8014 * fns.c (rassq_no_quit):
8015 * fns.c (Fremassoc):
8016 * fns.c (remassoc_no_quit):
8018 * fns.c (remassq_no_quit):
8019 * fns.c (Fremrassoc):
8020 * fns.c (Fremrassq):
8021 * fns.c (remrassq_no_quit):
8023 * fns.c (Fplist_get):
8024 * fns.c (Fplist_put):
8025 * fns.c (Fplist_remprop):
8026 * fns.c (Fplist_member):
8027 * fns.c (Flax_plist_get):
8028 * fns.c (Flax_plist_put):
8029 * fns.c (Flax_plist_remprop):
8030 * fns.c (Flax_plist_member):
8032 * fns.c (Fold_equal):
8034 * fns.c (Fbase64_encode_region):
8035 * fns.c (Fbase64_encode_string):
8036 * fns.c (Fbase64_decode_region):
8038 * frame.c (frame_matches_frame_spec):
8039 * frame.c (device_matches_device_spec):
8040 * frame.c (next_frame):
8041 * frame.c (previous_frame):
8042 * frame.c (Fnext_frame):
8043 * frame.c (Fprevious_frame):
8044 * frame.c (Fframe_property):
8045 * frame.c (Fset_frame_height):
8046 * frame.c (Fset_frame_size):
8050 * glyphs.c (decode_error_behavior_flag):
8051 * glyphs.c (Fmake_image_instance):
8052 * indent.c (Findent_to):
8053 * intl.c (Fignore_defer_gettext):
8054 * keymap.c (Fkeymapp):
8055 * keymap.c (Flookup_key):
8057 * lread.c (Fload_internal):
8058 * lread.c (Feval_buffer):
8059 * lread.c (Feval_region):
8060 * macros.c (Fexecute_kbd_macro):
8061 * marker.c (set_marker_internal):
8062 * marker.c (Fset_marker):
8063 * marker.c (set_marker_restricted):
8064 * marker.c (Fcopy_marker):
8065 * marker.c (noseeum_copy_marker):
8067 * menubar.c (Fpopup_menu):
8069 * mule-charset.c (Fcharset_name):
8070 * mule-charset.c (Fchar_charset):
8071 * mule-charset.c (Fchar_octet):
8072 * mule-charset.c (Fsplit_char):
8073 * mule-wnnfns.c (Fwnn_open):
8074 * mule-wnnfns.c (Fwnn_dict_comment):
8075 * mule-wnnfns.c (Fwnn_quit_henkan):
8076 * mule-wnnfns.c (Fwnn_word_toroku):
8077 * mule-wnnfns.c (Fwnn_word_sakujo):
8078 * mule-wnnfns.c (Fwnn_word_use):
8079 * mule-wnnfns.c (Fwnn_hindo_set):
8081 * objects.c (Fmake_color_instance):
8082 * objects.c (Fmake_font_instance):
8083 * print.c (Fwrite_char):
8085 * process.c (mark_process):
8086 * process.c (print_process):
8087 * process.c (get_process_from_usid):
8088 * process.c (Fprocessp):
8089 * process.c (Fprocess_live_p):
8090 * process.c (Fget_process):
8091 * process.c (Fget_buffer_process):
8092 * process.c (get_process):
8093 * process.c (Fprocess_id):
8094 * process.c (Fprocess_name):
8095 * process.c (Fprocess_command):
8096 * process.c (init_process_io_handles):
8097 * process.c (start_process_unwind):
8098 * process.c (Fstart_process_internal):
8099 * process.c (Fopen_multicast_group_internal):
8100 * process.c (Fset_process_window_size):
8101 * process.c (read_process_output):
8102 * process.c (send_process):
8103 * process.c (Fprocess_tty_name):
8104 * process.c (Fset_process_buffer):
8105 * process.c (Fprocess_buffer):
8106 * process.c (Fprocess_mark):
8107 * process.c (set_process_filter):
8108 * process.c (Fset_process_filter):
8109 * process.c (Fprocess_filter):
8110 * process.c (Fprocess_send_region):
8111 * process.c (Fprocess_send_string):
8112 * process.c (exec_sentinel):
8113 * process.c (Fset_process_sentinel):
8114 * process.c (Fprocess_sentinel):
8115 * process.c (status_notify):
8116 * process.c (Fprocess_status):
8117 * process.c (Fprocess_exit_status):
8118 * process.c (process_send_signal):
8119 * process.c (Fprocess_send_eof):
8120 * process.c (deactivate_process):
8121 * process.c (remove_process):
8122 * process.c (Fdelete_process):
8123 * process.c (kill_buffer_processes):
8124 * process.c (Fprocess_kill_without_query):
8125 * process.c (Fprocess_kill_without_query_p):
8127 * rangetab.c (Fget_range_table):
8128 * rangetab.c (Fput_range_table):
8129 * rangetab.c (Fremove_range_table):
8130 * rangetab.c (Fclear_range_table):
8132 * search.c (Fskip_chars_forward):
8133 * search.c (Fskip_chars_backward):
8134 * search.c (Fskip_syntax_forward):
8135 * search.c (Fskip_syntax_backward):
8136 * search.c (search_command):
8137 * search.c (Freplace_match):
8138 * search.c (Fregexp_quote):
8139 * select.c (Fown_selection_internal):
8140 * select.c (Fselection_owner_p):
8141 * select.c (Fselection_exists_p):
8142 * select.c (Fget_selection_internal):
8145 * symbols.c (Fintern):
8146 * symbols.c (Fintern_soft):
8147 * symbols.c (Funintern):
8148 * symbols.c (Fapropos_internal):
8149 * symbols.c (Fset_default):
8151 * syntax.c (Fsyntax_table_p):
8152 * syntax.c (Fcopy_syntax_table):
8153 * syntax.c (Fset_syntax_table):
8154 * syntax.c (Fchar_syntax):
8155 * syntax.c (syntax_match):
8156 * syntax.c (Fmatching_paren):
8157 * syntax.c (Fforward_word):
8158 * syntax.c (scan_lists):
8159 * syntax.c (Fscan_lists):
8160 * syntax.c (Fscan_sexps):
8161 * syntax.c (Fparse_partial_sexp):
8162 * toolbar.c (Fcheck_toolbar_button_syntax):
8165 * window.c (Fwindowp):
8166 * window.c (Fwindow_live_p):
8167 * window.c (Fwindow_point):
8168 * window.c (Fdelete_window):
8169 * window.c (Fnext_window):
8170 * window.c (Fprevious_window):
8171 * window.c (Fother_window):
8172 * window.c (window_loop):
8173 * window.c (Fget_lru_window):
8174 * window.c (Fsplit_window):
8175 * window.c (Fenlarge_window):
8176 * window.c (Fenlarge_window_pixels):
8177 * window.c (Fshrink_window):
8178 * window.c (Fshrink_window_pixels):
8179 * window.c (change_window_height):
8180 * window.c (Fwindow_configuration_p):
8181 * window.c (Fcurrent_window_configuration):
8183 * casefiddle.c (casify_object):
8184 * casefiddle.c (Fupcase):
8185 * casefiddle.c (Fdowncase):
8186 * casefiddle.c (Fcapitalize):
8187 * casefiddle.c (Fupcase_initials):
8188 * casefiddle.c (casify_region_internal):
8189 * casefiddle.c (casify_region):
8190 * casefiddle.c (Fupcase_region):
8191 * casefiddle.c (Fdowncase_region):
8192 * casefiddle.c (Fcapitalize_region):
8193 * casefiddle.c (Fupcase_initials_region):
8194 * casefiddle.c (Fupcase_word):
8195 * casefiddle.c (Fdowncase_word):
8196 * casefiddle.c (Fcapitalize_word):
8197 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
8198 Replace 0 with '\0' when working with bytes.
8199 Replace initial "(" with "\(" in docstrings.
8201 2000-11-01 Martin Buchholz <martin@xemacs.org>
8203 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8205 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8207 2000-10-31 Martin Buchholz <martin@xemacs.org>
8209 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
8211 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
8213 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8216 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
8218 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8219 (inhibit_auto_save_session): New variable.
8220 (vars_of_fileio): Declare and initialize them.
8221 * fileio.c (Fdo_auto_save): Don't create session file if
8222 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8224 2000-10-31 Martin Buchholz <martin@xemacs.org>
8226 * sgiplay.c (play_internal): C++ compilability.
8227 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8228 * callproc.c (Fold_call_process_internal):
8229 Remove unused vars `env', `first'.
8230 * scrollbar.c (update_scrollbar_instance):
8231 #### unused var `current_window'.
8232 * redisplay-tty.c: Put currently unused vars insert_mode_on,
8233 etc. within #ifdef NOT_YET.
8234 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8235 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8236 * specifier.c (specifier_instance):
8237 #### unused var `tag'.
8238 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8240 2000-10-27 Martin Buchholz <martin@xemacs.org>
8243 * fns.c (list_sort):
8244 * fns.c (Ffillarray):
8245 * fns.c (bytecode_nconc2):
8248 * fns.c (Fmapconcat):
8249 Be pedantically 64-bit correct. For the time when someone will
8250 want to have a list with length > 2**32.
8252 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8253 Work around MIPSpro compiler bug.
8255 * process-unix.c (unix_kill_child_process): Add snarky comment.
8256 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
8258 * config.h.in: Oops, _getpt ==> _getpty
8260 2000-10-26 Martin Buchholz <martin@xemacs.org>
8264 Use void*, not char*, as return type of alloca().
8266 * alloc.c (free_marker): Side effect inside assert expression!
8268 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
8270 * mule-charset.c (Fset_charset_ccl_program): To check
8271 if the given ccl program is valid, use setup_ccl_program()
8272 instead of CHECK_VECTOR().
8273 (Fmake_charset): Likewise.
8275 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
8277 * faces.c (get_extent_fragment_face_cache_index):
8278 Fix cachel.merged_faces memory leak.
8280 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
8282 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8283 Reset MSB of octets obtained by DECODE_SJIS
8284 because of the incompatibility with Emacs.
8285 (ccl_driver)<CCL_ENCODE_SJIS>:
8286 Set MSB of octets before passing them to
8287 ENCODE_SJIS because of the incompatibility
8290 2000-10-18 Daiki Ueno <ueno@unixuser.org>
8292 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8293 (DECLARE_LRECORD): Undo the last change.
8294 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8296 2000-10-17 Daiki Ueno <ueno@unixuser.org>
8298 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8299 the implementation to lrecord_implementations_table.
8301 2000-10-14 Daiki Ueno <ueno@unixuser.org>
8303 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8304 initial value of `lrecord_type_##c_name' and
8305 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8306 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8307 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8308 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8309 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8311 2000-10-17 Martin Buchholz <martin@xemacs.org>
8313 * miscplay.c (sndcnv8S_2mono):
8314 (sndcnv2monounsigned):
8315 (sndcnvULaw_2linear):
8317 Remove implementation-defined behavior.
8319 2000-10-12 Martin Buchholz <martin@xemacs.org>
8321 * input-method-xlib.c: Warning suppression.
8323 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
8325 * mule-ccl.c: Sync up with Emacs 21.0.90.
8326 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8328 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8330 (ccl_driver[WriteMultibyteChar2]): Bug fix.
8331 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8332 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8333 leading char belongs to official 2-dimensional charset.
8334 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8335 write the given character as is. Otherwise,
8336 if it is a multibyte char, convert it by
8337 non_ascii_set_charptr_emchar, then write it.
8338 (CCL_WRITE_STRING): Likewise.
8339 (ccl_get_compiled_code): New function.
8340 (setup_ccl_program): When ccl_prog is invalid,
8342 (Fregister_code_conversion_map): New function.
8343 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8345 * mule-ccl.h: Sync up with Emacs 21.0.90.
8346 (Fregister_ccl_program): export it.
8348 * redisplay-msw.c (separate_textual_runs):
8349 If ccl program is not valid, don't do ccl conversion.
8351 * redisplay-x.c (separate_textual_runs): Ditto.
8353 * file-coding.c (Fmake_coding_system):
8354 When type is ccl and value is vector, register it
8355 with a proper symbol. And checks whether the
8356 given ccl program is valid.
8357 (mule_decode): When calling ccl_driver, if src indicates
8358 NULL pointer, set an empty string instead.
8359 (mule_encode): Likewise.
8361 2000-10-11 Martin Buchholz <martin@xemacs.org>
8363 The following large batch of changes gets us back to a state of
8364 C++ compilability. Extbyte is now a char, which means that
8365 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8367 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8369 * sound.c (Fplay_sound): Type correctness.
8371 * select-x.c (hack_motif_clipboard_selection): Type correctness.
8372 (x_get_window_property): Type correctness.
8373 (receive_incremental_selection): unsigned char ==> Extbyte
8374 (selection_data_to_lisp_data): unsigned char ==> Extbyte
8375 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8376 (Fx_store_cutbuffer_internal): Type correctness.
8378 * process-unix.c (try_to_initialize_subtty): Type correctness.
8380 * objects-x.c (x_print_color_instance): Type correctness.
8381 (x_print_font_instance): Type correctness.
8382 (x_list_fonts): SExtbyte ==> Extbyte.
8383 (valid_x_font_name_p): SExtbyte ==> Extbyte.
8384 (x_find_charset_font): SExtbyte ==> Extbyte.
8385 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
8386 (truename_via_XListFonts): SExtbyte ==> Extbyte.
8387 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8390 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8391 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8392 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8393 (BYTE_C0_P): Use bit ops for char-signedness safety.
8394 (BYTE_C1_P): Use bit ops for char-signedness safety.
8395 (CHARSET_BY_LEADING_BYTE):
8396 (CHARSET_BY_ATTRIBUTES):
8397 Always use inline function.
8398 Use type_checking_assert.
8401 * mule-charset.c (non_ascii_charptr_copy_char):
8402 Modify to work with both ASCII and non-ASCII characters.
8403 Improve docs and variable names.
8404 Replace over-clever fall-through switch with a simple loop.
8405 (Lstream_get_emchar_1):
8406 Replace over-clever fall-through switch with a simple loop.
8408 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8409 Warning suppression.
8411 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8412 the return value of Lstream_getc, which could be EOF as well.
8414 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8416 * lisp.h: Make Extbyte a char, not unsigned char, so that external
8417 APIs can be used on Extbytes without casts. Risky!
8421 * input-method-xlib.c (XIM_init_device):
8422 Use Xlib.h instead of IntrinsicP.h.
8423 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8424 which will break in X11R7.
8425 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8426 to call XRegisterIMInstantiateCallback with correct types.
8428 * gui-x.c (button_item_to_widget_value): Type correctness.
8430 * glyphs.c (bitmap_to_lisp_data): Type correctness.
8432 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8433 (xbm_instantiate_1): Type correctness.
8434 (BUILD_GLYPH_INST): Type correctness.
8436 * fileio.c (Fsubstitute_in_file_name): Type correctness.
8439 (decode_coding_sjis):
8440 (decode_coding_big5):
8441 (decode_coding_ucs4):
8442 (decode_coding_utf8):
8443 (decode_coding_iso2022):
8444 (decode_coding_no_conversion):
8445 Make all decoding functions take an Extbyte * arg.
8446 (encode_coding_sjis):
8447 (encode_coding_big5):
8448 (encode_coding_ucs4):
8449 (encode_coding_utf8):
8450 (encode_coding_iso2022):
8451 (encode_coding_no_conversion):
8452 Make all encoding functions take a Bufbyte * arg.
8453 Use size_t instead of unsigned int for memory sizes.
8454 Only cast to unsigned char whenever dereferencing Extbyte *.
8456 * doc.c (unparesseuxify_doc_string): Type correctness.
8458 * console-x.c (split_up_display_spec):
8459 Rewrite without using details of internal string representation.
8460 (x_semi_canonicalize_device_connection): Type correctness.
8463 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8464 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8465 (HAVE_XFREE386): Removed.
8467 * buffer.h (DEC_CHARPTR): `const' correctness.
8468 (bufbyte_strcmp): New.
8469 (bufbyte_memcmp): New.
8471 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8473 * buffer.h (XCHAR_OR_CHAR_INT):
8474 Always use inline function.
8475 Remove redundant type checking assert() - XINT will abort quite nicely.
8477 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
8479 * search.c (Freplace_match): Set newtext to an empty string.
8481 2000-10-10 Martin Buchholz <martin@xemacs.org>
8483 * s/decosf1-3.h: Remove #include of stropts.h
8484 * s/ptx.h: Remove #include of stropts.h
8485 * s/usg5-4.h: Remove #include of stropts.h
8488 Use stropts.h, not sys/stropts.h.
8489 Use strtio.h, not sys/strtio.h.
8491 2000-10-04 Martin Buchholz <martin@xemacs.org>
8493 * XEmacs 21.2.36 is released.
8495 2000-09-21 Andy Piper <andy@xemacs.org>
8497 * glyphs-x.c (x_redisplay_widget): make sure non-structural
8498 changes still involve copying the widget tree.
8499 (update_widget_face): make sure a change is register in the widget
8500 tree. Call update_tab_widget_face appropriately.
8501 (update_tab_widget_face): ditto.
8502 (x_tab_control_redisplay): make sure non-structural changes still
8503 involve copying the widget tree.
8505 2000-08-31 Daiki Ueno <ueno@unixuser.org>
8507 * lread.c (locate_file): Check the path element is non-nil.
8509 2000-10-02 Martin Buchholz <martin@xemacs.org>
8511 * lisp.h: Warning suppression for SCO compilers.
8513 * redisplay-tty.c (reset_tty_modes): Fix crash.
8514 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8516 2000-09-27 Martin Buchholz <martin@xemacs.org>
8518 Big signal/process handling overhaul. Bugs fixed:
8519 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8520 M-x comint-kill-subjob should work for both values nil and t of
8521 process-connection-type. It was broken on most platforms.
8522 Testing on Irix and Cygwin still needed. Other plaforms tested.
8523 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
8524 * process-unix.c: Signal/Process handling overhaul.
8525 (pty_name): make 64 bytes, as `expect' does, for paranoia.
8526 (allocate_pty): Use all available modern methods of allocating
8527 ptys, falling back to old style BSD allocation as a last resort.
8528 Use allegedly more secure Unix98 pty allocation by default.
8529 (allocate_pty_the_old_fashioned_way): New. the last resort.
8530 (unix_create_process): Push ptem, ldterm, ttcompat where
8531 available. Autoconfiscate.
8532 (try_to_initialize_subtty): New.
8533 (unix_kill_child_process): Proper signal handling for ptys on most
8534 platforms, using special knowledge of AIX, BSD, etc...
8535 (unix_create_process): Always disconnect_controlling_terminal() for
8536 subprocesses, whether using ptys or not.
8537 * process.h: Remove old getpt-dependent PTY code.
8538 * process.c (Fprocess_send_signal): New, obvious generic function.
8539 (decode_signal): New.
8540 (Finterrupt_process):
8544 (Fcontinue_process):
8545 (Fsignal_process): Use decode_signal.
8546 (process_send_signal):
8547 Many docstring corrections.
8548 Allow any signal to be sent to a process object.
8549 * config.h.in: Add symbols for big signal/process overhaul.
8550 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8551 * sysproc.h: Include process-related headers, where available:
8552 sys/stropts.h sys/strtio.h pty.h libutil.h
8560 Remove old S&M pty stuff.
8561 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8562 * systty.h: Simplify cpp hackery, improve comments.
8563 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8565 * editfns.c (Fformat_time_string):
8566 Be a little more paranoid with the return value of ctime.
8568 * fileio.c (check_executable):
8570 Use symbolic constants X_OK, W_OK.
8572 * console-x.c (split_up_display_spec): Fix a warning.
8574 2000-10-02 Martin Buchholz <martin@xemacs.org>
8576 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8577 * ntproc.c (sys_spawnve): make_string ==> build_string
8578 Small clarity improvements.
8580 2000-09-30 Martin Buchholz <martin@xemacs.org>
8582 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8584 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8586 * config.h.in (HAVE_STRCASECMP): Remove.
8588 2000-09-29 Martin Buchholz <martin@xemacs.org>
8590 * redisplay-output.c (redisplay_output_pixmap):
8591 Cleaner and possibly more 64-bit correct code.
8593 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
8595 * dumper.c (pdump_load_finish): move restoration of
8596 `noninteractive1' to emacs.c (main_1).
8597 * emacs.c (main_1): protect LISP-visible command-line flags
8600 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
8602 * Makefile.in.in (versionclean): Use EXE_TARGET and
8603 DUMP_TARGET instead of literal program names.
8605 2000-09-20 Martin Buchholz <martin@xemacs.org>
8607 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8609 2000-09-19 Martin Buchholz <martin@xemacs.org>
8611 * *: Spelling mega-patch
8613 2000-09-19 Martin Buchholz <martin@xemacs.org>
8615 * fns.c (bad_bad_turtle):
8616 Delete "Eek!" comment, since we fixed the bug to which it refers.
8618 2000-09-16 Martin Buchholz <martin@xemacs.org>
8620 * alloca.c: Replace REGISTER with register.
8622 2000-09-16 Daiki Ueno <ueno@unixuser.org>
8624 * file-coding.c (ucs_to_char): Use countof.
8626 2000-09-16 Martin Buchholz <martin@xemacs.org>
8628 * file-coding.c: (ucs_to_char):
8629 (complex_vars_of_file_coding):
8630 Use countof instead of sizeof.
8631 Use CHECK_NATNUM instead of CHECK_INT.
8633 * sysdep.c (strcasecmp): Remove.
8634 * device-x.c (ascii_strcasecmp): New.
8635 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8636 Avoid using non-standard non-portable strcasecmp.
8638 2000-09-16 Martin Buchholz <martin@xemacs.org>
8640 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8641 * font-lock.c: remove reference to emacsfns.h.
8642 * search.c: small doc improvement.
8643 * event-Xt.c: correct file names in comments.
8644 * console-x.h Correct file names in comments.
8645 * frame.c: Correct file names in comments.
8646 * event-stream.c: remove Energize from comments.
8648 2000-09-15 Martin Buchholz <martin@xemacs.org>
8650 * symeval.h (DEFERROR_STANDARD):
8653 (DEFSYMBOL_NO_DUMP):
8654 (DEFSYMBOL_MULTIWORD_PREDICATE):
8655 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8657 The construct &##name is not sensible C.
8658 Fixes compilation errors with Unixware native compiler.
8660 2000-09-14 Martin Buchholz <martin@xemacs.org>
8662 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8663 (next_frame_internal): Removed. We now just have next_frame.
8665 Write a simpler and cleaner one-pass algorithm.
8666 Remove called_from_delete_device arg and #ifdefed-out code.
8668 Renamed from prev_frame. Update callers.
8669 Cleaned up to have an analogous implementation to next_frame.
8670 (other_visible_frames_internal): Remove the
8671 called_from_delete_device bogus arg, and hence, remove this
8672 function. Just use other_visible_frames().
8674 * window.c (Fnext_window):
8676 Since next_frame() is guaranteed to return a frame, remove check
8677 for nil inserted in previous patch.
8680 Make code look more like Fnext_window.
8682 Respect the `console' arg when iterating through windows.
8683 Fixes bug: (get-buffer-window buffer t device) not respecting
8685 This function needs more work, as others have pointed out.
8687 * frame.h: Rename prev_frame to previous_frame.
8688 device_matches_console_spec no longer takes a `frame' arg.
8693 Use EMACS_BLOCK_SIGNAL instead of sigblock.
8694 From "Golubev I. N." <gin@mo.msk.ru>.
8696 * make-src-depend: Fix typo.
8698 2000-09-13 Martin Buchholz <martin@xemacs.org>
8700 * window.c (Fnext_window):
8701 next_frame() might return nil, not a frame.
8703 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8705 * frame.c (next_frame_internal):
8706 We've passed a frame if we've passed its device.
8708 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8709 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8711 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
8713 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8714 Allow option to suppress accelerators in menu/dialog items.
8715 (populate_or_checksum_helper): Pass dialog title through above.
8717 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
8719 * event-msw.c (mswindows_key_to_emacs_keysym):
8720 Add "pause" key, fix "menu" key.
8722 2000-09-09 Martin Buchholz <martin@xemacs.org>
8724 * eval.c (reinit_vars_of_eval):
8725 Increase max_lisp_eval_depth to 1000,
8726 required for thai-xtis.el to byte-compile under some circumstances.
8728 2000-09-04 Martin Buchholz <martin@xemacs.org>
8730 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8733 2000-09-01 Martin Buchholz <martin@xemacs.org>
8735 * make-src-depend: Make the generated Makefiles smaller.
8737 * s/hpux.h (SETUP_SLAVE_PTY):
8738 Provide a %d in the format string for the errno argument.
8740 * editfns.c (Ftemp_directory):
8742 Avoid buffer overrun on very long file name.
8744 * input-method-xlib.c (XIM_init_device):
8745 6th parameter of XRegisterIMInstantiateCallback has different
8746 pointer types on different OSes, so simply cast to (void *).
8748 * unexhp9k800.c: Warning fixes. Fiddly changes.
8750 * sysdll.c (dll_open):
8751 shl_load will hang hard if passed a NULL filename.
8752 Simply return NULL for compatibility with dlopen.
8753 * sysdll.c: Conform to XEmacs coding standards.
8755 * sysdep.c (get_pty_max_bytes):
8756 Support pty input lines longer than 512 bytes on HP-UX 10.20.
8758 2000-08-31 Martin Buchholz <martin@xemacs.org>
8760 * tooltalk.c: Add #include <syssignal.h>
8762 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
8764 * s/hpux.h: Don't use undefined function sigunblock().
8766 2000-08-31 Martin Buchholz <martin@xemacs.org>
8768 * config.h.in: Add HAVE_BALLOON_HELP.
8769 * emacs.c: Use HAVE_BALLOON_HELP.
8770 * Makefile.in.in (x_objs):
8771 Make Balloon Help conditional on finding shape.h.
8773 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
8775 * syntax.c (regex_emacs_buffer_p): New variable.
8776 * syntax.h (regex_emacs_buffer_p): extern.
8777 * search.c (looking_at_1):
8779 (fast_string_match):
8780 (search_buffer): Set regex_emacs_buffer_p.
8781 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8782 when before_dot, at_dot, after_dot.
8784 2000-08-23 Andy Piper <andy@xemacs.org>
8786 * gui-x.c (popup_selection_callback): Only set action_occurred
8787 when we really have an image instance.
8788 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8790 2000-08-23 Andy Piper <andy@xemacs.org>
8792 * gui-msw.c (mswindows_handle_gui_wm_command): set
8794 * gui-x.c (popup_selection_callback): ditto.
8796 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8797 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8798 (struct Lisp_Image_Instance): add action_occurred flag.
8800 * glyphs.c (redisplay_subwindow): use action_occurred flag.
8801 (image_instance_changed): ditto.
8802 (reset_frame_subwindow_instance_cache): only unmap windows - do
8803 not remove them from the cache also.
8805 * glyphs-widget.c (tab_control_update): better debug.
8806 (progress_gauge_update): ditto.
8807 (layout_update): ditto.
8808 (layout_instantiate): ditto.
8809 (tab_control_order_only_changed): cope with null pending items.
8811 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8812 debug. Force selection of an item when an action occurred. Cope
8813 with null pending_items.
8814 (mswindows_progress_gauge_redisplay): better debug.
8815 * glyphs-x.c (x_tab_control_redisplay): ditto.
8817 * redisplay.c (redisplay_frame): reset the frame cache if the
8820 * window.c (Fset_window_configuration): potentially re-enable
8822 (window_unmap_subwindows): need to finalize instances here since
8823 it is only used in mark_window_as_deleted.
8825 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
8827 * nas.c (SndOpenDataForReading):
8828 nas.c (WaveOpenDataForReading):
8829 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8830 Somehow escaped from the 2000-08-14 patch.
8832 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
8834 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8835 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8837 2000-08-21 Andy Piper <andy@xemacs.org>
8839 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8840 window if it is not already displayed.
8842 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8843 it is not already displayed.
8845 * window.c (Fset_window_configuration): don't reset the frame
8848 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8849 instances from the frame cache if we are actually finalizing them.
8850 (reset_frame_subwindow_instance_cache): reset frame cache only
8851 after unmapping everything.
8852 (map_subwindow): set displayed flag after mapping.
8854 2000-08-21 Martin Buchholz <martin@xemacs.org>
8856 * data.c (indirect_function):
8857 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8859 * eval.c (function_argcount):
8860 Use original function when signaling errors.
8862 2000-08-18 Andy Piper <andy@xemacs.org>
8864 * frame.c (delete_frame_internal): use new
8865 free_frame_subwindow_instances name.
8867 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8868 (add_tab_item): make return type correct.
8869 (mswindows_tab_control_instantiate): assert index of tab.
8870 (mswindows_tab_control_redisplay): Re-code to use
8871 gui_item_equal_sans_selected and gui_item_list_find_selected.
8873 * glyphs-widget.c (tab_control_update): Correct comment.
8875 * window.c (window_unmap_subwindows): use new
8876 unmap_subwindow_instance_cache_mapper.
8877 (window_unmap_subwindows_cache_mapper): deleted.
8878 (Fset_window_configuration): comparisons should now be with
8879 EQ. Preserve the subwindow instance cache across configuration
8881 (allocate_window): ditto.
8882 (make_dummy_parent): ditto.
8884 * glyphs.c (free_frame_subwindow_instances): rename from
8885 free_frame_subwindow_instance_cache. finalize all instances rather
8886 than just those in the display cache.
8887 (finalize_all_subwindow_instances): walk windows unmapping and
8888 finalizing subwindows.
8889 (unmap_subwindow_instance_cache_mapper): moved from
8890 window.c. Allow finalization as well as unmapping.
8892 * gui.c (gui_item_list_find_selected): new function.
8894 * gui.h (gui_item_list_find_selected): declare.
8896 * glyphs-x.c (x_tab_control_redisplay): pick tab
8897 explicitly. Re-code to use gui_item_equal_sans_selected and
8898 gui_item_list_find_selected.
8900 * glyphs-x.h: add lwlib-utils.h
8902 * buffer.c (Frecord_buffer): undo previous change.
8904 2000-08-09 Vin Shelton <acs@xemacs.org>
8906 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8907 possible. Create temporary files more securely. The patch was
8908 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8909 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
8910 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8913 2000-08-07 Ben Wing <ben@xemacs.org>
8915 * getloadavg.c: remove duplicate (and windows-breaking)
8916 includes of fcntl.h and sys/file.h.
8918 * nt.c: remove duplicate getloadavg() definition.
8920 * sysdll.h (Qdll_filename_encoding): add missing stand-in
8923 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
8925 * eval.c (function_argcount): If function needs to be autoloaded
8926 actually use the loaded definition.
8929 2000-08-05 Ben Wing <ben@xemacs.org>
8931 * getloadavg.c: add prototype for getloadavg(). remove
8932 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8933 of the code). remove duplicate header includes.
8935 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8937 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8938 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8939 useful load average.
8941 * alloc.c (reinit_alloc_once_early): removed references to
8942 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8943 the lisp vars are the only things referencing the malloc_sbrk_*
8944 vars, and they were already if 0'd out. these vars only exist
8945 in the older malloc.c, which is basically unused, and they're
8946 only for informational purposes.
8948 * m\*.h: removed useless VIRT_ADDR_VARIES.
8950 * m\powerpc.h: removed stray NO_ARG_ARRAY.
8952 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
8954 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8955 color if the image is a mono pixmap.
8957 2000-07-30 Ben Wing <ben@xemacs.org>
8959 * Makefile.in.in (release):
8962 * buffer.c (directory_is_current_directory):
8963 * dired-msw.c (mswindows_get_files):
8965 * dired.c (Fdirectory_files):
8966 * dired.c (file_name_completion_stat):
8967 * dired.c (Ffile_attributes):
8968 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8969 preprocessor tricks, to avoid problems on some machines
8972 * callproc.c (egetenv): GC docs.
8975 * console-msw.h (struct mswindows_dialog_id):
8976 * lrecord.h (lrecord_type):
8977 New object for use with MSW dialogs.
8979 * console.h (struct console_methods):
8980 New enable/disable frame methods, for proper modal dialogs.
8982 * device-msw.c (msprinter_default_printer): Fix to follow
8983 proper Mule conventions.
8986 * device-msw.c (signal_open_printer_error):
8987 * device-msw.c (msprinter_init_device):
8988 * device-msw.c (ensure_not_printing):
8989 * device-msw.c (plist_get_margin):
8990 * device-msw.c (Fmsprinter_select_settings):
8991 * device-msw.c (finalize_devmode):
8992 * device-msw.c (Fmsprinter_settings_despecialize):
8993 * device-msw.c (signal_enum_priner_error):
8994 * extents.c (decode_extent):
8995 * extents.c (decode_map_extents_flags):
8996 * extents.c (decode_extent_at_flag):
8997 * extents.c (Fextent_at):
8998 * extents.c (Fextents_at):
8999 * extents.c (symbol_to_glyph_layout):
9000 [[[[2]]]] Use structured errors.
9003 * dialog-msw.c (mswindows_is_dialog_msg):
9004 * dialog-msw.c (mark_mswindows_dialog_id):
9005 * dialog-msw.c (dialog_proc):
9006 * dialog-msw.c (handle_question_dialog_box):
9007 * dialog-msw.c (syms_of_dialog_mswindows):
9008 Define new object to clean up marking; use it as a dialog identifier.
9009 Call new delete-dialog-box-hook.
9011 * dialog-x.c (dbox_selection_callback):
9012 * dialog-x.c (dbox_descriptor_to_widget_value):
9013 * dialog-x.c (x_make_dialog_box_internal):
9014 Call new delete-dialog-box-hook.
9018 * dialog.c (syms_of_dialog):
9019 * dialog.c (vars_of_dialog):
9020 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9023 * eval.c (signal_call_debugger):
9024 when noninteractive, output stack traces on the console instead
9025 of in a (never-seen) buffer.
9027 * eval.c (signal_type_error):
9028 * eval.c (invalid_argument_2):
9030 new funs for use w/structured errors.
9033 * event-Xt.c (x_to_emacs_keysym):
9034 * event-Xt.c (describe_event):
9035 * event-Xt.c (emacs_Xt_event_handler):
9036 * event-Xt.c (vars_of_event_Xt):
9038 * event-msw.c (mswindows_wnd_proc):
9039 * event-msw.c (vars_of_event_mswindows):
9040 rename {x,mswindows}-debug-events to debug-{}-events for
9041 consistency with other debug-foo variables.
9044 document next-event more clearly.
9046 * fileio.c (Ffile_name_directory):
9047 * fileio.c (Ffile_name_nondirectory):
9048 * fileio.c (Funhandled_file_name_directory):
9049 * fileio.c (file_name_as_directory):
9050 * fileio.c (Ffile_name_as_directory):
9051 * fileio.c (directory_file_name):
9052 * fileio.c (Fdirectory_file_name):
9053 * fileio.c (Fmake_temp_name):
9054 * fileio.c (Ffile_truename):
9055 * fileio.c (Fsubstitute_in_file_name):
9056 * fileio.c (expand_and_dir_to_file):
9057 * fileio.c (barf_or_query_if_file_exists):
9058 * fileio.c (check_executable):
9059 * fileio.c (Ffile_exists_p):
9060 * fileio.c (Ffile_writable_p):
9061 * fileio.c (Ffile_directory_p):
9062 * fileio.c (Ffile_regular_p):
9063 * fileio.c (Ffile_modes):
9064 * fileio.c (Ffile_newer_than_file_p):
9065 * fileio.c (Fverify_visited_file_modtime):
9066 * fileio.c (Fset_visited_file_modtime):
9067 * fileio.c (auto_save_1):
9072 * frame-msw.c (mswindows_init_frame_1):
9073 * frame-msw.c (mswindows_enable_frame):
9074 * frame-msw.c (error_frame_unsizable):
9075 * frame-msw.c (msprinter_init_frame_1):
9076 * frame-msw.c (msprinter_init_frame_3):
9077 * frame-msw.c (console_type_create_frame_mswindows):
9079 implement new enable/disable frame methods.
9082 * frame-x.c (x_enable_frame):
9083 * frame-x.c (console_type_create_frame_x):
9084 implement new enable/disable frame methods.
9087 * frame.c (Fdisable_frame):
9088 * frame.c (syms_of_frame):
9089 * frame.h (struct frame):
9090 implement new enable/disable frame methods/functions.
9095 * glyphs-msw.c (mswindows_widget_instantiate):
9096 comment that initial-focus should be implemented.
9099 * glyphs-widget.c (check_valid_instantiator):
9100 * glyphs-widget.c (check_valid_orientation):
9101 * glyphs-widget.c (check_valid_tab_orientation):
9102 * glyphs-widget.c (check_valid_justification):
9103 * glyphs-widget.c (check_valid_border):
9104 * glyphs-widget.c (check_valid_callback):
9105 * glyphs-widget.c (check_valid_int_or_function):
9106 * glyphs-widget.c (check_valid_string_or_vector):
9107 * glyphs-widget.c (check_valid_item_list_1):
9108 * glyphs-widget.c (widget_validate):
9109 * glyphs-widget.c (combo_box_validate):
9110 * glyphs-widget.c (widget_instantiate):
9111 * glyphs-widget.c (syms_of_glyphs_widget):
9112 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9113 * glyphs-widget.c (image_instantiator_combo_box):
9114 * glyphs-widget.c (image_instantiator_scrollbar):
9115 * glyphs-widget.c (image_instantiator_tab_control):
9116 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9118 support (unimplemented) keyword initial-focus.
9119 reindent long macros.
9121 * glyphs-x.c (x_redisplay_widget):
9122 * glyphs-x.c (x_button_instantiate):
9123 * glyphs-x.c (x_button_redisplay):
9124 * glyphs-x.c (x_progress_gauge_instantiate):
9125 * glyphs-x.c (x_edit_field_instantiate):
9126 * glyphs-x.c (x_combo_box_instantiate):
9127 * glyphs-x.c (x_tab_control_instantiate):
9128 * glyphs-x.c (x_label_instantiate):
9130 * gui-x.c (button_item_to_widget_value):
9131 * gui-x.c (gui_items_to_widget_values_1):
9132 * gui-x.c (gui_item_children_to_widget_values):
9133 * gui-x.c (gui_items_to_widget_values):
9135 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9136 add new flag to gui-parsing routines to indicate whether
9137 accelerator specs should be supported.
9139 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9141 * glyphs.h (struct Lisp_Image_Instance):
9142 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9143 add initial-focus flag.
9146 * gui.c (syms_of_gui):
9147 * gui.c (vars_of_gui):
9148 clean up menu-no-selection-hook.
9151 support delete-dialog-box-hook.
9153 * lread.c (Fload_internal):
9154 * lread.c (locate_file_in_directory_mapper):
9158 * lrecord.h (struct toolbar_button):
9159 * lrecord.h (syms_of_toolbar):
9160 document how to create a new object.
9162 * menubar-msw.c (mswindows_char_is_accelerator):
9163 may be called on frames w/o menus.
9165 * menubar.c (vars_of_menubar):
9166 clean up :filter docs.
9173 * process-nt.c (validate_signal_number):
9174 * process-nt.c (signal_cannot_launch):
9175 * process-nt.c (nt_create_process):
9176 * process-nt.c (nt_send_process):
9177 * process-nt.c (nt_kill_child_process):
9178 * process-nt.c (nt_open_network_stream):
9179 * process-nt.c (syms_of_process_nt):
9181 delete quote-handling. call new lisp code that does it better.
9183 * process-unix.c (connect_to_file_descriptor):
9184 * process-unix.c (allocate_pty):
9185 * process-unix.c (unix_send_process):
9186 * process-unix.c (unix_kill_child_process):
9187 * process-unix.c (unix_open_network_stream):
9188 * process-unix.c (unix_open_multicast_group):
9192 * process.c (Fstart_process_internal):
9193 (2). need to canonicalize process path even if absolute.
9195 * select-msw.c (symbol_to_ms_cf):
9196 * select-msw.c (ms_cf_to_symbol):
9197 * select-msw.c (cf_is_autofreed):
9198 * select-msw.c (mswindows_destroy_selection):
9200 * select.c (syms_of_select):
9202 support dibv5, fix bugs. (from Mike Alexander)
9204 * select.c (Fget_selection_internal):
9205 * select.c (select_convert_out):
9208 * sysdep.c (xemacs_stat):
9213 but keep original stat() here because we provide encapsulation
9217 * sysfile.h (fstat):
9218 remove stat garbage.
9222 don't include tchar.h. it's inappropriate because it makes
9223 compile-time distinctions when we want runtime distinctions.
9224 (we provide our own tchar replacements)
9227 use default object printer for toolbar-button.
9230 make sure we don't encapsulate.
9232 * window.c (vars_of_window):
9233 emphasize that temp-buffer-show-hook is obsolete.
9235 2000-08-05 Martin Buchholz <martin@xemacs.org>
9237 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9238 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9240 * events.c (Fevent_timestamp_lessp):
9241 Not 64-bit clean. Use EMACS_INT, not int.
9243 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
9245 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9246 unsigned int and changed the last enum to
9247 lrecord_type_last_built_in_type.
9248 (lrecord_implementations_table): changed prototype to know how
9249 long the array is supposed to be.
9250 (lrecord_type_count): new unsigned int to keep track of the
9251 current number of lisp lrecord types.
9252 (DEFINE_EXTERNAL_LRECORD):
9253 (DECLARE_EXTERNAL_LRECORD): Added these two for external
9254 dynamic-modules to declare new lisp types. They are the same
9255 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9256 int for each new type, and increment lrecord_type_count by 1.
9258 * alloc.c (lrecord_implementations_table): Changed to reference
9259 lrecord_type_last_built_in_type for the size of the array.
9260 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9262 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9264 * glyphs.h (check_valid_item_list): Renamed from
9265 check_valid_item_list_1.
9267 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9269 * select.c (Qselect_coerce): New.
9270 * select.c (Vselection_coercion_alist): New.
9271 * select.c (syms_of_select): Declare.
9272 * select.c (get-selection-internal): Use it.
9273 Use the new select-coerce functionality.
9275 * select.c (select_coerce): New.
9276 * select.h (select_coerce): Declare.
9277 New function to coerce one type of data into another.
9279 2000-08-03 Martin Buchholz <martin@xemacs.org>
9281 * callproc.c (Fcall_process_internal):
9282 (Fcall_process_internal):
9283 * process-unix.c (unix_create_process):
9284 Save and restore the value of errno, so that error messages are accurate.
9286 2000-08-01 Martin Buchholz <martin@xemacs.org>
9288 * elhash.c (print_hash_table):
9289 Fix printing of hash tables to also use `key-and-value' instead of `t'.
9290 Prettify docstrings and indentation.
9292 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
9294 * window.c (Fwindow_pixel_edges): Subtract frame border and
9297 2000-07-31 Andy Piper <andy@xemacs.org>
9299 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9300 will acknowledge the change.
9302 * glyphs.h: declare tab_control_order_only_changed.
9304 * glyphs-x.c (x_tab_control_redisplay): use
9305 tab_control_order_only_changed.
9307 * glyphs-widget.c (tab_control_order_only_changed): new function.
9309 * glyphs-msw.c (mswindows_tab_control_redisplay): use
9310 tab_control_order_only_changed.
9312 * gui.c (gui_item_equal_sans_selected): new function.
9313 (gui_item_equal): use it.
9315 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9316 :properties in favor of :items..
9318 * glyphs-widget.c (check_valid_item_list): rename from
9319 check_valid_item_list_1.
9320 (check_valid_item_list_1): renamed.
9321 (combo_box_validate): deprecate :properties in favor of :items.
9322 (widget_instantiate): ditto.
9323 (tab_control_update): ditto.
9324 (image_instantiator_combo_box): ditto.
9325 (image_instantiator_tree_view): ditto.
9326 (image_instantiator_tab_control): ditto.
9327 (layout_post_instantiate): remove dead code.
9329 * print.c (debug_print_no_newline): only write to debugger if in
9332 * elhash.c (Fmake_hash_table): update doc string.
9334 * event-msw.c (mswindows_wnd_proc): don't allow processing of
9335 messages whilst in GC. This at least stops XEmacs crashing but has
9336 the potential for wierd behaviour.
9338 2000-07-31 Martin Buchholz <martin@xemacs.org>
9341 Make existence of s&m files optional.
9343 * s/bsd386.h: Remove HAVE_GETLOADAVG.
9344 * s/freebsd.h: Remove HAVE_GETLOADAVG.
9345 * s/gnu.h: Remove HAVE_GETLOADAVG.
9346 * s/netbsd.h: Remove HAVE_GETLOADAVG.
9347 * s/sol2.h: Remove HAVE_GETLOADAVG.
9348 * lisp.h: Remove getloadavg() declaration.
9350 Include <sys/loadavg.h> if available.
9351 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9352 * config.h.in: Group together getloadavg()-related macros.
9353 Use only configure-time tests to detect getloadavg().
9355 2000-07-30 Martin Buchholz <martin@xemacs.org>
9357 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9359 2000-07-25 Andy Piper <andy@xemacs.org>
9361 * syswindows.h: add tchar.h for native builds.
9363 * frame.c (syms_of_frame): remove set-glyph-image.
9365 * general-slots.h: add Qset_glyph_image.
9367 * glyphs-widget.c (layout_update): add domain arg to
9369 (syms_of_glyphs_widget): remove set-glyph-image.
9371 2000-07-23 Ben Wing <ben@xemacs.org>
9373 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9376 2000-07-22 Andy Piper <andy@xemacs.org>
9378 * symsinit.h: add syms_of_win32().
9380 * gui-msw.c (syms_of_gui_mswindows): remove
9381 Fmswindows_shell_execute.
9382 (Fmswindows_shell_execute): moved to win32.c.
9384 * emacs.c (main_1): add syms_of_win32 ().
9386 * win32.c (init_potentially_nonexistent_functions): rewrite in
9387 compiler-friendly terms.
9388 (Fmswindows_shell_execute): move here from gui-msw.c.
9389 (syms_of_win32): new.
9391 * device-msw.c (Fmswindows_printer_list): clean up args to
9393 Don't include tchar under cygwin or mingw.
9394 (msprinter_default_printer): make cygwin-friendly.
9396 2000-07-21 Andy Piper <andy@xemacs.org>
9398 * glyphs-widget.c (image_instantiator_tree_view): use tab
9399 control's update function.
9400 (layout_property): new function. Retrieve items.
9402 * glyphs-msw.c (mswindows_tree_view_redisplay): new
9403 function. Re-populate the tree view from the pending items.
9405 * glyphs.c (instantiate_image_instantiator): Make sure the domain
9406 is designated the parent if the domain is an image instance. This
9407 is needed so that dirtiness can be cascade up the hierarchy and
9408 thus for layout children to be redisplayed correctly.
9409 (allocate_image_instance): rename glyph -> parent.
9411 * redisplay.h: change redisplay_output_layout signature.
9413 * redisplay-msw.c (mswindows_output_display_block): use domain
9416 * redisplay-x.c (x_output_display_block): use domain arg.
9418 2000-07-10 Andy Piper <andy@xemacs.org>
9420 * window.c (Fset_window_configuration): add comment.
9422 * redisplay-output.c (compare_runes):
9423 (redisplay_output_subwindow): redisplay rather than update subwindow.
9424 (redisplay_output_layout): ditto.
9426 * redisplay-msw.c (mswindows_frame_output_end):
9427 (mswindows_frame_output_end): make defer window pos optional.
9429 * lisp.h: add Flast.
9431 * glyphs.h (struct image_instantiator_methods): add dest_mask top
9432 normalize method. Change update method to be for changed
9433 instantiators. Add redisplay method. Change signature of layout
9435 (struct Lisp_Image_Instance): add instantiator.
9436 (IMAGE_INSTANCE_INSTANTIATOR): new.
9437 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9438 (XIMAGE_INSTANCE_INSTANTIATOR): new.
9439 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9442 (find_instantiator_differences): new function.
9443 (Fset_instantiator_property): new convenience function.
9444 (check_image_instance_structure): strictly check for vector
9446 (normalize_image_instantiator): make non-static.
9447 (instantiate_image_instantiator): pass on dest_mask and use new
9448 signatures for image_instance_layout and friends.
9449 (mark_image_instance): mark the instantiator. Mark the subwindow
9450 face not the widget face.
9451 (image_instance_equal): add instantiator.
9452 (image_instance_hash): ditto.
9453 (allocate_image_instance): ditto.
9454 (Fset_image_instance_property): removed.
9455 (Fimage_instance_file_name): ditto.
9456 (Fcolorize_image_instance): ditto.
9457 (image_instance_layout): add offsets to be set.
9458 (update_image_instance): new function. update an image instance
9459 from its changed instantiator.
9460 (inherit_normalize): add dest_mask.
9461 (xbm_normalize): ditto.
9462 (xface_normalize): ditto.
9463 (xpm_normalize): ditto.
9464 (text_update): set_property -> update.
9465 (image_instantiate): use the glyph identity as a hash key, not the
9467 (glyph_width): use new image_instance_layout signature.
9468 (glyph_ascent): ditto.
9469 (glyph_descent): ditto.
9470 (glyph_height): ditto.
9471 (glyph_query_geometry): ressurrect.
9472 (glyph_layout): ditto.
9473 (redisplay_subwindow): update -> redisplay.
9474 (syms_of_glyphs): add Fset_instantiator_property.
9475 (image_instantiator_format_create): set_property -> update.
9478 (autodetect_normalize): add dest_maks to signature.
9479 (x_redisplay_subwindow): update -> redisplay.
9480 (x_redisplay_widget): ditto.
9481 (x_button_redisplay): ditto.
9482 (x_progress_gauge_redisplay): ditto.
9483 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9485 (console_type_create_glyphs_x): update -> redisplay.
9486 (image_instantiator_format_create_glyphs_x): ditto.
9489 (check_valid_instantiator): disallow glyphs in the instantiator,
9490 they must now be vectors.
9491 (check_valid_instantiator_list): ditto.
9492 (glyph_instantiator_to_glyph): use internal symbol rather than
9494 (widget_update): renamed from widget_set_property. Call cascaded
9496 (redisplay_widget): renamed from update_widget.
9497 (widget_layout): image_instance_layout now takes position as well
9499 (widget_normalize): ditto.
9500 (widget_instantiate): ditto.
9501 (tab_control_query_geometry) ditto.:
9502 (tab_control_update): renamed from tab_control_set_property.
9503 (progress_gauge_update): set_property -> update.
9504 (layout_normalize): rewrite so that child instantiators are
9506 (layout_update): new function. Create glyphs from the normalized
9507 children and cope with any other layout keywords. We do not
9508 instantiate children here that will be take care of by
9509 redisplay_output_layout.
9510 (layout_instantiate): call layout_update and not much else.
9511 (layout_post_instantiate): not sure whether this is needed
9513 (layout_query_geometry): query glyph geometry rather than
9514 image_instance geometry.
9515 (layout_layout): set offsets from pass in parameters. Use glyph
9516 geometry and layout functions rather than image instance ones.
9517 (native_layout_layout): ditto.
9518 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9519 (image_instantiator_widget): set_property -> update.
9520 (image_instantiator_buttons): ditto.
9521 (image_instantiator_progress_guage): ditto.
9522 (image_instantiator_tab_control): ditto.
9523 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9524 (image_instantiator_layout): add update method.
9526 * glyphs-msw.c (bmp_normalize):
9527 (mswindows_resource_normalize): add dest_mask so that it can be
9528 proprogated by layout_normalize.
9529 (begin_defer_window_pos): make optional because it may not be the
9530 right thing to do and it introduces differences with X.
9531 (mswindows_unmap_subwindow): ditto.
9532 (mswindows_map_subwindow): ditto.
9533 (mswindows_redisplay_subwindow): renamed from
9534 mswindows_update_subwindow.
9535 (mswindows_redisplay_widget): ditto.
9536 (mswindows_button_redisplay): renamed from
9537 mswindows_button_update. Update is now what the instantiation
9538 function does for a changed instantiator.
9539 (mswindows_progress_gauge_instantiate): set the progress value
9540 here if appropriate.
9541 (mswindows_tab_control_redisplay): cope with re-ordering of the
9542 members of the tab widget by simply selecting the new top
9543 widget. This makes things appear ok if you click on a tab.
9544 (mswindows_combo_box_instantiate): image_instance_layout now takes
9545 position as well as size.
9546 (mswindows_progress_gauge_redisplay): renamed from
9547 mswindows_progress_gauge_update.
9548 (console_type_create_glyphs_mswindows): fix update -> redisplay.
9549 (image_instantiator_format_create_glyphs_mswindows): ditto.
9551 * glyphs-eimage.c (jpeg_normalize):
9554 (tiff_normalize): add dest_mask so that it can be proprogated by
9559 (hash_table_weakness_validate):
9560 (decode_hash_table_weakness):
9561 (Fhash_table_weakness):
9563 (syms_of_elhash): use Ben's naming scheme for hashtable types..
9565 * console.h (struct console_methods): move update_* to
9568 2000-07-20 Ben Wing <ben@xemacs.org>
9570 * *.[ch] (XSETOBJ): remove unused middle argument.
9571 lisp-disunion.h: correct wrap_object() to one argument.
9573 2000-07-15 Ben Wing <ben@xemacs.org>
9576 * s/cygwin32.h (CYGWIN_CONV_PATH):
9577 Add missing logb prototype for v1.1.
9578 Use post-b20 names and alias to pre-b20 names when pre-b20.
9580 * s/windowsnt.h: [5].
9582 2000-07-15 Ben Wing <ben@xemacs.org>
9584 * Makefile.in.in (x_objs):
9585 * Makefile.in.in (sheap_objs):
9586 * Makefile.in.in (objs):
9587 added win32.o, cosmetic cleanups.
9589 * alloc.c (Fmake_byte_code):
9590 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9591 etc. macros which declare their own args now.
9593 * alloc.c (syms_of_alloc):
9594 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9597 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9599 * buffer.c (Fget_file_buffer):
9600 Fixed GCPRO problem.
9602 * buffer.c (get_truename_buffer):
9603 Fixed comment about GC checking.
9605 * buffer.c (syms_of_buffer):
9606 Undeclared those dedicated frame funs.
9610 Define convenience macros for internal/external conversions.
9611 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9612 and Qenvironment_variable_encoding for cleaner code.
9615 Remove dedicated-frame; in lisp.
9617 * bytecode.c (funcall_compiled_function):
9620 * bytecode.c (syms_of_bytecode):
9624 * console-msw.c (mswindows_show_console): Rewrote.
9626 * console-msw.c (Fmswindows_debugging_output): New.
9627 Sends to OutputDebugString (special MSWin debugger interface).
9629 * console-msw.c (Fmswindows_message_box):
9630 Fixed stupid bugs so it works when called from kill-emacs.
9632 * console-msw.c (syms_of_console_mswindows):
9633 Declare Fmswindows_debugging_output.
9636 New MSWin prototypes.
9638 * console-msw.h (struct mswindows_frame):
9639 New entry last-click-mods for improved button-modifier support.
9641 * console-msw.h (FRAME_MSWINDOWS_POPUP):
9642 New struct entry `popup' with corresponding accessor.
9645 * console-x.c (split_up_display_spec):
9646 * console-x.c (get_display_arg_connection):
9647 * console-x.c (x_semi_canonicalize_console_connection):
9648 * console-x.c (x_canonicalize_device_connection):
9649 [[[6]]]: Change char to more specific type.
9650 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9652 * console-x.c (x_semi_canonicalize_console_connection):
9653 * console-x.c (x_canonicalize_device_connection):
9654 [[[9]]]: Fix up error signalling to use new structured error system.
9657 [[[4]]]: Define codesys aliases:
9658 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9659 Qx_color_name_encoding, Qx_display_name_encoding.
9661 * console.h (struct console_methods):
9662 New method make_dialog_box_internal supersedes older
9663 popup_dialog_box method.
9666 Define many new errors, part of new structured errors.
9668 * data.c (init_errors_once_early):
9669 * data.c (syms_of_data):
9672 * device-msw.c (mswindows_init_device):
9673 [[[5]]]: Cleanup to support NT 3.51.
9675 * device-msw.c (decode_devmode): Cleanup.
9677 * device-msw.c (mswindows_handle_print_setup_dialog_box):
9678 * device-msw.c (mswindows_handle_print_dialog_box):
9679 * device-msw.c (mswindows_handle_page_setup_dialog_box):
9680 * device-msw.c (syms_of_device_mswindows):
9681 Delete the dialog box primitives recently introduced by Kirill and
9682 instead interface to general dialog box interface.
9685 * device-x.c (compute_x_app_name):
9686 * device-x.c (x_init_device):
9687 * device-x.c (Fx_valid_keysym_name_p):
9688 * device-x.c (Fx_set_font_path):
9692 * device.h (wrap_device): New.
9693 First of its kind; meant to replace XSETDEVICE.
9695 * dialog-msw.c: Many file-dialog symbols.
9697 * dialog-msw.c (mswindows_register_popup_frame): New.
9698 * dialog-msw.c (mswindows_is_dialog_msg): New.
9699 For supporting kbd traversal in dialog boxes.
9701 * dialog-msw.c (dialog_proc):
9702 Support hitting ESC in dialogs.
9704 * dialog-msw.c (struct):
9705 Common dialog box errors.
9707 * dialog-msw.c (handle_file_dialog_box): New.
9708 Add file dialog code.
9710 * dialog-msw.c (handle_question_dialog_box):
9711 Redo existing code to support new question dialog syntax.
9713 * dialog-msw.c (console_type_create_dialog_mswindows):
9714 We support new dialog console method.
9716 * dialog-msw.c (syms_of_dialog_mswindows):
9717 * dialog-msw.c (vars_of_dialog_mswindows):
9718 New file dialog symbols, vars.
9721 * dialog-x.c (maybe_run_dbox_text_callback):
9722 * dialog-x.c (dbox_descriptor_to_widget_value):
9723 * dialog-x.c (x_make_dialog_box_internal):
9724 * dialog-x.c (console_type_create_dialog_x):
9725 Mule-ize entire file.
9726 Redo to support question dialog syntax.
9730 * dialog.c (Fmake_dialog_box_internal):
9731 * dialog.c (syms_of_dialog):
9732 Kill old popup-dialog-box, replace with new primitive.
9733 Just call device method or signal error.
9735 * eldap.c (Fldap_open):
9736 * eldap.c (Fldap_search_basic):
9737 * eldap.c (Fldap_add):
9738 * eldap.c (Fldap_modify):
9743 * emacs.c (make_arg_list_1):
9744 * emacs.c (make_arg_list):
9745 Mule-ize call to dll_init().
9749 * emacs.c (make_argc_argv):
9750 * emacs.c (free_argc_argv):
9751 * emacs.c (init_cmdargs):
9753 * emacs.c (Fkill_emacs):
9754 * emacs.c (Fdump_emacs):
9755 Update comments about what can be used in syms_* etc.
9756 Call init_win32() when necessary.
9757 Fix up MS Win dialog box in kill-buffer to actually work right.
9768 * eval.c (condition_case_3):
9770 * eval.c (function_argcount):
9771 * eval.c (funcall_lambda):
9774 * eval.c (type_error): New.
9775 * eval.c (maybe_type_error): New.
9776 * eval.c (continuable_type_error): New.
9777 * eval.c (maybe_continuable_type_error): New.
9778 * eval.c (type_error_with_frob): New.
9779 * eval.c (maybe_type_error_with_frob): New.
9780 * eval.c (continuable_type_error_with_frob): New.
9781 * eval.c (maybe_continuable_type_error_with_frob): New.
9782 New functions for use with structured errors.
9785 * event-Xt.c (x_event_to_emacs_event):
9786 Buttons are now modifiers too.
9788 * event-Xt.c (emacs_Xt_current_event_timestamp):
9789 Implement new event method.
9790 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9793 * event-msw.c (ntpipe_shove_writer): [5].
9794 * event-msw.c (mswindows_enqueue_mouse_button_event):
9795 * event-msw.c (mswindows_drain_windows_queue):
9796 * event-msw.c (mswindows_wnd_proc): [7].
9797 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9798 * event-msw.c (mswindows_modifier_state):
9799 Throughout: support new button modifiers.
9801 * event-msw.c (emacs_mswindows_current_event_timestamp):
9802 Implement new event method.
9803 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9806 * event-stream.c (event_stream_current_event_timestamp): New.
9807 * event-stream.c (maybe_kbd_translate): New functionality.
9808 * event-stream.c (vars_of_event_stream):
9809 Document new kbd-translate-table functionality.
9811 * event-stream.c (Fcurrent_event_timestamp): New.
9812 New primitive for use in fabricated events.
9813 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9815 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9818 * events.c (Fmake_event):
9819 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9823 * events.c (format_event_object): fix gcc warnings.
9825 * events.c (Fevent_timestamp): Document new primitives.
9827 * events.c (TIMESTAMP_HALFSPACE): New.
9829 * events.c (Fevent_timestamp_lessp): New. New primitive for
9830 comparing timestamps correctly (half-space algorithm).
9832 * events.c (Fevent_modifier_bits): Doc fix.
9834 * events.c (Fevent_modifiers): Major doc addition.
9835 * events.c (event_x_y_pixel_internal): Typo fix.
9836 * events.c (syms_of_events): Declare new primitives.
9839 Update long comment for button modifiers, timestamps.
9841 * events.h (struct event_stream):
9842 New current_event_timestamp method.
9845 * extents.c (extent_in_region_p):
9846 * extents.c (decode_extent):
9847 * extents.c (Fset_extent_parent):
9848 * extents.c (decode_map_extents_flags):
9852 * extents.c (struct extent_at_arg):
9853 * extents.c (decode_extent_at_flag):
9854 * extents.c (extent_at_mapper):
9855 * extents.c (extent_at_bytind):
9856 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9857 * extents.c (Fextents_at): New primitive. [9].
9858 * extents.c (symbol_to_glyph_layout): [9].
9859 Support new primitive `extents-at'.
9862 * extents.c (get_text_property_bytind):
9863 extent_at_bytind has another arg.
9866 * extents.c (syms_of_extents): New primitive.
9868 * file-coding.c (Fmake_coding_system): [1].
9869 * file-coding.c (subsidiary_coding_system): fix gcc warning
9870 * file-coding.c (syms_of_file_coding): [2].
9872 * fileio.c (Fexpand_file_name):
9873 * fileio.c (Fsysnetunam):
9874 * fileio.c (Ffile_exists_p):
9875 * fileio.c (Ffile_executable_p):
9876 * fileio.c (Fverify_visited_file_modtime):
9879 * fileio.c (syms_of_fileio): [2].
9881 * filelock.c (lock_file_1):
9882 * filelock.c (current_lock_owner):
9883 * filelock.c (lock_if_free):
9884 * filelock.c (lock_file):
9885 * filelock.c (unlock_file):
9888 * fns.c (concat): Fix gcc warning.
9891 * fns.c (Fold_member):
9893 * fns.c (Fold_memq):
9894 * fns.c (memq_no_quit):
9896 * fns.c (Fold_assoc):
9898 * fns.c (Fold_assq):
9899 * fns.c (assq_no_quit):
9901 * fns.c (Fold_rassoc):
9903 * fns.c (Fold_rassq):
9904 * fns.c (rassq_no_quit):
9906 * fns.c (Fold_delete):
9908 * fns.c (Fold_delq):
9909 * fns.c (delq_no_quit):
9910 * fns.c (Fremassoc):
9912 * fns.c (remassq_no_quit):
9913 * fns.c (Fremrassoc):
9914 * fns.c (Fremrassq):
9915 * fns.c (remrassq_no_quit):
9920 * frame-msw.c (mswindows_init_frame_1):
9921 * frame-msw.c (mswindows_delete_frame):
9922 Register popups with dialog code so keyboard traversing works.
9924 * frame-tty.c (tty_raise_frame_no_select): [1].
9927 * frame-x.c (x_set_frame_text_value):
9928 * frame-x.c (x_set_frame_properties):
9929 * frame-x.c (x_create_widgets):
9933 * frame.c (Fmouse_pixel_position): Minor doc fixes.
9935 * frame.h (wrap_frame): New.
9936 Macro like wrap_device.
9939 * general.c (SYMBOL):
9940 * general.c (syms_of_general):
9941 Major reorg. This is now just a wrapper and symbols themselves
9942 are listed in general-slots.h.
9944 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9945 * glyphs-msw.c (mswindows_resource_instantiate): [5].
9947 * glyphs-msw.c (mswindows_native_layout_instantiate):
9948 Add DS_CONTROL so keyboard traversal will work.
9951 * glyphs-widget.c (syms_of_glyphs_widget):
9952 Move some symbols to general-slots.h.
9955 * glyphs-x.c (xbm_instantiate_1):
9956 * glyphs-x.c (x_xbm_instantiate):
9957 * glyphs-x.c (x_xface_instantiate):
9958 * glyphs-x.c (autodetect_instantiate):
9959 * glyphs-x.c (cursor_font_instantiate):
9960 * glyphs-x.c (x_update_widget):
9961 * glyphs-x.c (x_widget_instantiate):
9962 * glyphs.c (bitmap_to_lisp_data):
9963 * glyphs.c (pixmap_to_lisp_data):
9966 * glyphs.c (syms_of_glyphs):
9970 * gui-x.c (print_widget_value):
9971 * gui-x.c (menu_separator_style_and_to_external):
9972 * gui-x.c (add_accel_and_to_external):
9973 * gui-x.c (button_item_to_widget_value):
9974 * gui-x.c (gui_items_to_widget_values_1):
9975 * gui-x.c (gui_items_to_widget_values):
9976 * gui-x.c (syms_of_gui_x):
9977 * gui-x.c (vars_of_gui_x):
9978 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
9982 Muleize, prototype changes matching gui-x.c.
9985 * gui.c (separator_string_p):
9986 * gui.c (gui_item_add_keyval_pair):
9987 * gui.c (make_gui_item_from_keywords_internal):
9988 * gui.c (signal_too_long_error):
9989 * gui.c (parse_gui_item_tree_item):
9990 * gui.c (syms_of_gui):
9991 * gui.c (vars_of_gui):
9993 menu-no-selection-hook moved here (used by MSWin).
9994 Move some symbols to general-slots.h.
9998 * insdel.c (get_buffer_pos_char):
9999 * insdel.c (get_buffer_range_char):
10002 * keymap.c (keymap_lookup_directly):
10003 * keymap.c (keymap_store):
10004 * keymap.c (ensure_meta_prefix_char_keymapp):
10005 * keymap.c (describe_map):
10007 Support new button modifiers.
10009 * lisp-disunion.h (wrap_object):
10010 * lisp-disunion.h (XSETOBJ):
10011 Rename make_obj to wrap_object.
10014 * lisp-union.h (make_int):
10015 * lisp-union.h (make_char):
10016 Support wrap_object.
10019 * lisp.h (LIST_LOOP):
10020 * lisp.h (EXTERNAL_LIST_LOOP):
10021 * lisp.h (LIST_LOOP_2):
10022 * lisp.h (EXTERNAL_LIST_LOOP_1):
10023 * lisp.h (EXTERNAL_LIST_LOOP_2):
10024 * lisp.h (EXTERNAL_LIST_LOOP_3):
10025 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10026 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10027 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10028 * lisp.h (EXTERNAL_ALIST_LOOP_5):
10029 * lisp.h (EXTERNAL_ALIST_LOOP_6):
10030 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10031 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10032 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10033 * lisp.h (struct Lisp_Symbol):
10034 * lisp.h (maybe_continuable_error_with_frob):
10035 Fix up section comments.
10036 Add new types for char to indicate usage.
10037 Delete symbols auto-generated from general-slots.h.
10038 Add prototypes for structured error functions.
10039 Add long comments describing looping macros and change interface
10040 so that lvalues are automatically declared.
10041 Add NO_DECLARE macro in case callers want to declare lvalues
10044 * lread.c (read_syntax_error):
10045 * lread.c (continuable_read_syntax_error):
10046 * lread.c (read_structure):
10047 * lread.c (sequence_reader):
10048 * lread.c (read_list_conser):
10049 * lread.c (read_compiled_function):
10050 Rename syntax_error and continuable_syntax_error to avoid clash
10051 with same-named structured error functions.
10053 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10054 * menubar-msw.c (populate_menu_add_item):
10055 * menubar-msw.c (populate_or_checksum_helper):
10060 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10061 Mule-ize whole file.
10063 * menubar.c (Fnormalize_menu_item_name): Add optimization.
10065 * mule-charset.c (Fmake_charset):
10066 * mule-wnnfns.c (Fwnn_set_param):
10069 * ntproc.c (create_child):
10070 * ntproc.c (Fwin32_set_current_locale):
10071 Add comments portending doom.
10074 * objects-msw.c (old_font_enum_callback_2):
10075 * objects-msw.c (font_enum_callback_1):
10076 * objects-msw.c (mswindows_enumerate_fonts):
10080 * objects-x.c (allocate_nearest_color):
10081 * objects-x.c (x_parse_nearest_color):
10082 * objects-x.c (x_initialize_color_instance):
10083 * objects-x.c (x_print_color_instance):
10084 * objects-x.c (x_finalize_color_instance):
10085 * objects-x.c (x_valid_color_name_p):
10086 * objects-x.c (x_initialize_font_instance):
10087 * objects-x.c (x_print_font_instance):
10088 * objects-x.c (valid_x_font_name_p):
10089 * objects-x.c (truename_via_FONT_prop):
10090 * objects-x.c (truename_via_random_props):
10091 * objects-x.c (truename_via_XListFonts):
10092 * objects-x.c (x_font_truename):
10093 * objects-x.c (x_font_instance_truename):
10094 * objects-x.c (x_font_instance_properties):
10095 * objects-x.c (x_list_fonts):
10096 * objects-x.c (x_find_charset_font):
10097 Mule-ize entire file.
10104 * print.c (std_handle_out_external):
10105 * print.c (debug_print_no_newline):
10106 * print.c (syms_of_print):
10107 Output to all debugger kinds in debug-print.
10108 Fix console-output code under MSWin to actually work.
10110 * process-nt.c (send_signal):
10111 * process-nt.c (nt_create_process):
10112 Use newer Unicode macros.
10114 * process-unix.c (unix_create_process):
10115 * process-unix.c (unix_canonicalize_host_name):
10116 * process-unix.c (unix_open_network_stream):
10122 * search.c (syms_of_search):
10125 * select-msw.c (mswindows_destroy_selection):
10128 * select-x.c (symbol_to_x_atom):
10131 * select.c (syms_of_select):
10134 * sound.c (Fplay_sound_file):
10138 * specifier.c (decode_specifier_type):
10139 * specifier.c (Fvalid_specifier_locale_type_p):
10140 * specifier.c (check_valid_locale_or_locale_type):
10141 * specifier.c (decode_locale):
10142 * specifier.c (decode_locale_type):
10143 * specifier.c (decode_locale_list):
10144 * specifier.c (check_valid_domain):
10145 * specifier.c (decode_specifier_tag_set):
10146 * specifier.c (Fcanonicalize_tag_set):
10147 * specifier.c (Fdefine_specifier_tag):
10148 * specifier.c (Fspecifier_tag_predicate):
10149 * specifier.c (check_valid_inst_list):
10150 * specifier.c (check_valid_spec_list):
10151 * specifier.c (decode_how_to_add_specification):
10152 * specifier.c (check_modifiable_specifier):
10153 * specifier.c (specifier_add_spec):
10154 * specifier.c (boolean_validate):
10155 * specifier.c (display_table_validate):
10158 * specifier.c (syms_of_specifier):
10159 Move some symbols to general-slots.h.
10163 * symbols.c (Fmapatoms):
10164 * symbols.c (Fapropos_internal):
10167 * symbols.c (set_default_buffer_slot_variable):
10168 * symbols.c (set_default_console_slot_variable):
10171 * symbols.c (defsymbol_massage_name_1):
10172 * symbols.c (defkeyword_massage_name):
10173 * symbols.c (deferror_1):
10174 * symbols.c (deferror):
10175 * symbols.c (deferror_massage_name_and_message):
10177 * symeval.h (DEFSYMBOL):
10178 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10180 * symbols.c (syms_of_symbols):
10184 * symsinit.h (init_win32): New.
10185 Also new is syms_of_dialog_mswindows.
10188 Add new Unicode macros, missing Cygwin wide-char functions,
10189 convenience conversion macros for Qmswindows_tstr, macros for
10190 encapsulating required MSWin <-> Cygwin filename conversions,
10191 prototype for dynamically-extracted (not in NT 3.51) functions.
10196 * tooltalk.c (Fadd_tooltalk_message_arg):
10197 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10198 * tooltalk.c (Fadd_tooltalk_pattern_arg):
10201 * tooltalk.c (syms_of_tooltalk):
10205 * unexnt.c (unexec):
10206 Fix up headers, declaration of unexec() to be more standard.
10208 2000-07-20 Martin Buchholz <martin@xemacs.org>
10210 * offix.h: Revert change to guard macros - they're used in offix.c!
10212 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10214 * lisp.h: Defsubred Fdelete.
10216 * console-msw.h: (msprinter_default_printer): Added.
10218 * console-msw.c (msprinter_canonicalize_console_connection):
10219 (msprinter_canonicalize_device_connection): Added.
10221 * device-msw.c (msprinter_default_printer):
10222 (Fmswingows_get_default_printer):
10223 (signal_enum_priner_error):
10224 (Fmswingows_printer_list): Added.
10226 2000-07-19 Martin Buchholz <martin@xemacs.org>
10228 * XEmacs 21.2.35 is released.
10230 2000-07-19 Martin Buchholz <martin@xemacs.org>
10232 * select-x.c (x_handle_selection_request):
10233 Text selected in xemacs and pasted into xterm failed to appear.
10234 Spelling fixes and cosmetic changes.
10236 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10238 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10239 XEmacs frame (fix for doubling chars in dialog boxes).
10241 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10243 * select.c (select_convert_in, select_convert_out):
10244 Don't call intern() every time.
10246 * select.c (Qselect_convert_in, Qselect_convert_out): New.
10247 * select.c (vars_of_select): Initialise them.
10249 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10251 * select.c (selection-coercible-types): New.
10253 * select.c (own-selection-internal):
10254 * select.c (get-selection-internal):
10255 MULE bug fix - these should default to COMPOUND_TEXT and not
10256 STRING for MULE. I think.
10258 * select.c (select_convert_out): Use selection-coercible-types
10259 to find types that we can attempt to perform coercions on.
10261 2000-07-18 Martin Buchholz <martin@xemacs.org>
10265 Add coding: cookie to identify encoding.
10267 * mule-canna.c (CANNA_mode_keys): make static.
10268 Use proper prototypes, even for functions of no arguments.
10269 Remove external prototype for Fding().
10271 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10273 * select.c (syms_of_select): Add missing DEFSUBR.
10275 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10277 * select.c (get_selection_internal, own_selection_internal):
10278 Make the type default to STRING, rather than placing a nil type
10279 into Vselection_alist.
10281 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10283 * gpmevent.c (tty_selection_exists_p):
10284 * gpmevent.c (tty_own_selection):
10285 Updated parameter lists.
10287 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10289 * select.h (selection-alist): Removed declaration.
10291 * select.h (get_local_selection):
10292 * select.c (get_local_selection):
10295 * select.h (convert_selection): Removed declaration.
10296 * select.c (convert_selection): Removed.
10297 This function belongs in Lisp.
10299 * select.h (select_convert_in): Declare.
10300 * select.h (select_convert_out): Declare.
10301 * select.c (select_convert_in): New.
10302 * select.c (select_convert_out): New.
10303 New conversion functions for other files to call.
10305 * select.h (select_notify_buffer_kill): Declare.
10306 * select.c (select_notify_buffer_kill): New.
10307 New functions that get called from kill-buffer.
10309 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10310 X-specific lisp code.
10312 * select.h: Declare some of the lisp-visible functions for
10315 * select.c (clean_local_selection_data): Removed. This was
10316 a disgusting function, and previously should have been in
10317 select-x.c in any case. The functionality is now provided
10318 in select-convert-from-integer (select.el).
10320 * select.c (available-selection-types): Fixed stupidity where
10321 INTEGER and ATOM got added twice. Also add STRING when we see an
10324 * select.c (get-selection-internal): Removed symbol stripping. No
10325 longer causes conversion when data comes from the internal cache.
10327 * select.c (syms_of_select): Added new functions.
10329 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10330 error checking - previously this called abort!
10332 * select-x.c (x_own_selection): Changed comment.
10334 * select-x.c (x_handle_selection_request): Use select_convert_out.
10335 Don't mess with selection-alist; it's an internal variable of select.c.
10337 * select-x.c (x_get_foreign_selection): Use select_convert_in.
10339 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10340 rather than messing with selection-alist.
10342 * select-msw.c (mswindows_get_foreign_selection):
10343 Use TO_INTERNAL_FORMAT rather than hacking.
10345 2000-07-14 Martin Buchholz <martin@xemacs.org>
10347 * process-unix.c (unix_open_multicast_group):
10348 (unix_open_multicast_group): Remove useless casts.
10350 2000-07-13 Martin Buchholz <martin@xemacs.org>
10352 * sound.c (Fplay_sound): Fix `unused variable' warning.
10354 * emacs.c (main): Use correct type for _environ on SCO5.
10356 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10358 * console.h (own_selection_method):
10359 * console.h (selection_exists_p_method):
10360 * console.h (available_selection_types_method): New.
10361 * console.h (register_selection_data_type_method): New.
10362 * console.h (selection_data_type_name): New.
10364 * console-msw.h (mswindows_destroy_selection): Declare it. New
10365 function & alist to track GlobalAlloc()'d handles that need
10366 releasing when the clipboard data gets replaced or emptied.
10368 * event-msw.c (mswindows_wnd_proc): Call it.
10370 * lisp.h, general.c (Qappend): New symbol representing a
10373 * select.c (own-selection-internal):
10374 * select.c (selection-exists-p):
10375 * select.c (available-selection-types): New.
10376 * select.c (register-selection-data-type): New.
10377 * select.c (selection-data-type-name): New. New functions to deal
10378 with device-specific selection data formats.
10379 * select.c (selection-converter-out-alist): Renamed.
10380 * select.c (selection-converter-in-alist): New.
10381 * select.c (selection-appender-alist): New. Added new alists.
10382 * select.c (syms_of_select, vars_of_select): Added new symbols &
10384 * select.c (get_local_selection): Split.
10385 * select.c: Removed spurious type checking - selections may now be
10386 of any type, not just strings.
10387 * select.c (own-selection-internal):
10389 * select.h, select.c (convert_selection): New. Created
10390 convert_selection() function based on get_local_selection().
10391 * select.h, select.c (QCF_*): New symbols representing mswindows
10393 * select.h, select.c (Qreplace_all, Qreplace_existing): New
10394 symbols representing `how-to-add' modes.
10396 * select-msw.c (x_sym_p): New.
10397 * select-msw.c (symbol_to_ms_cf): New.
10398 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10399 symbols & clipboard formats. Can also handle string names.
10400 * select-msw.c (mswindows_own_selection):
10401 * select-msw.c (mswindows_selection_exists_p):
10402 Added `data-type' parameter. Use it.
10403 * select-msw.c (mswindows_available_selection_types): New.
10404 * select-msw.c (mswindows_register_selection_data_type): New.
10405 * select-msw.c (mswindows_selection_data_type_name): New.
10406 * select-msw.c (mswindows_own_selection):
10407 * select-msw.c (mswindows_get_foreign_selection):
10408 * select-msw.c (mswindows_selection_exists_p): Rewrote.
10409 * select-msw.c (console_create_select_mswindows): Added new methods.
10410 * select-msw.c (mswindows_destroy_selection): New.
10411 * select-msw.c (Vhandle_alist): New list.
10412 * select-msw.c (mswindows_own_selection):
10414 * select-x.c (x_own_selection):
10415 * select-x.c (x_selection_exists_p):
10416 * select-x.c: Added some comments about maybe using new
10418 * select-x.c (x_own_selection):
10420 * specifier.c: Remove definition of Qappend (now in general.c)
10421 * specifier.c (syms_of_specifier): Remove Qappend.
10423 2000-07-12 Martin Buchholz <martin@xemacs.org>
10425 * config.h.in: Add socklen_t.
10427 * s/decosf4-0.h: No special compiler flags needed or desired.
10428 In particular, undefine _BSD for DEC OSF 4.0.
10430 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10432 * redisplay-msw.c (msprinter_frame_output_end): Added.
10433 (console_type_create_redisplay_mswindows): Referred the above.
10435 * frame.c (setup_frame_without_minibuffer): Do not create a
10436 default minibuffer frame on a printer device.
10438 * frame-msw.c (apply_dc_geometry): Added.
10439 (msprinter_start_page):
10440 (msprinter_init_frame_3):
10441 (msprinter_eject_page): Use it.
10443 * console-msw.h (struct msprinter_frame): Added pix_left and top,
10444 and removed residual duplex and orientation properties.
10446 2000-07-11 Martin Buchholz <martin@xemacs.org>
10448 * eval.c (function_argcount): Work around a DEC CC compiler bug.
10450 * unexalpha.c: Remove system prototypes from C sources!
10452 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
10454 * eval.c: Remove references to M-x edit-options in DEFUNs for
10455 `defvar' and `defconst'.
10457 2000-07-09 Martin Buchholz <martin@xemacs.org>
10459 * config.h.in: Remove SMART_INCLUDE hackery.
10461 PostgreSQL hacking:
10462 * config.h.in: Don't use SMART_INCLUDE.
10464 * postgresql.h: Include libpq-fe.h here. Fix typo.
10465 * inline.c: Simply #include "postgresql.h"
10467 - Don't use SMART_INCLUDE
10468 - Use simply "const".
10469 - Use standard doc string conventions.
10470 - Use correct type for result of PQstatus.
10472 2000-07-09 Martin Buchholz <martin@xemacs.org>
10474 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10476 C++ compilation changes.
10477 * config.h.in (EXTERN_C): Define.
10478 * config.h.in (not): This is also a C++ keyword.
10479 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10480 * cm.c: Use EXTERN_C.
10481 * redisplay-tty.c: Use EXTERN_C.
10482 * sysdep.c: Use EXTERN_C. Remove Gould support.
10484 2000-07-09 Martin Buchholz <martin@xemacs.org>
10486 * general.c: Remove duplicate definition for Qfunction.
10488 2000-07-08 Ben Wing <ben@xemacs.org>
10490 * device-msw.c (msprinter_init_device):
10491 * device-msw.c (sync_printer_with_devmode):
10492 * device-msw.c (handle_devmode_changes):
10493 * device-msw.c (print_dialog_worker):
10494 * device-msw.c (Fmsprinter_apply_settings):
10495 * device-msw.c (hash_devmode):
10496 * device-msw.c (Fmsprinter_settings_despecialize):
10497 use Qmswindows_tstr, not Qctext.
10499 * vm-limit.c (check_memory_limits):
10500 avoid infinite loop printing warning messages.
10502 2000-07-05 Craig Lanning <lanning@scra.org>
10504 * Makefile.in.in: Add support for including the Windows resources
10505 when building with the cygwin and mingw targets.
10507 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10508 not set or not correct.
10509 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10510 (init_initial_directory): Don't try to use $PWD on the
10511 WIN32_NATIVE target.
10514 [[Add -mwindows to eliminate console window.]] not required --ben
10515 (HAVE_NATIVE_SOUND): removed; now handled by configure.
10516 (MAIL_USE_POP): removed; now handled by configure.
10518 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10519 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10520 (HAVE_NATIVE_SOUND): removed; now handled by configure.
10521 (MAIL_USE_POP): removed; now handled by configure.
10522 (ENCAPSULATE_STAT): from Dan Holmsand, added.
10523 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10524 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10526 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10527 up from <winsock.h> via systime.h.
10528 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10529 (getpagesize): from Dan Holmsand, added.
10530 Added #endif which was left dangling by Ben's mega patch; added
10531 comment to help prevent this in the future.
10533 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10535 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10537 * console-msw.h (struct mswindows_device): Removed unnecessary
10538 cached device geometry values.
10539 Added update_tick and an accessor macro.
10540 (Lisp_Devmode): Added lrecord declaration.
10541 (struct msprinter_device): Contain devmode as a Lisp object.
10542 Added mswindows_get_selected_frame_hwnd();
10544 * console.h (struct console_methods): Indentation nitpicking.
10546 * device-msw.c (mswindows_init_device): Do not initialize geometry
10547 cache. Initialize update tick.
10548 (mswindows_device_system_metrics): Ask the device for its geometry.
10549 (global_free_2_maybe):
10550 (devmode_to_hglobal):
10551 (handle_printer_changes):
10552 (ensure_not_printing):
10553 (print_dialog_worker):
10554 (Fmsprinter_print_setup_dialog):
10555 (Fmsprinter_print_dialog):
10556 (plist_get_margin):
10557 (plist_set_margin):
10558 (Fmsprinter_page_setup_dialog): Added functions.
10559 (sync_printer_with_devmode):
10560 (handle_devmode_changes):
10561 (Fmsprinter_get_settings):
10562 (Fmsprinter_select_settings):
10563 (Fmsprinter_apply_settings):
10564 (allocate_devmode):
10565 (Fmsprinter_settings_copy):
10566 (Fmsprinter_settings_despecialize):
10568 (finalize_devmode):
10570 (hash_devmode): Added functions
10571 (syms_of_device_mswindows): Init devmode lrecord class.
10573 * device.h: Added an exfun for find-device.
10575 * event-msw.c (mswindows_wnd_proc): Do not update the cached
10576 geometry; although, recreate the device compatible DC.
10578 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10579 (msprinter_init_frame_3):
10580 (msprinter_frame_property):
10581 (msprinter_internal_frame_property_p):
10582 (msprinter_frame_properties):
10583 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10584 print job properties (will move to device settings).
10586 * lisp.h: Added symbols.
10588 * general.c (syms_of_general): Declared them.
10590 * hash.c (string_hash): Added.
10592 * lrecord.h (lrecord_type): Added devmode lrecord type.
10594 2000-07-02 Mike Sperber <mike@xemacs.org>
10596 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10599 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
10601 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10604 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
10606 * data.c (Fstring_to_number): Don't recognize floating point if
10609 2000-06-22 Martin Buchholz <martin@xemacs.org>
10611 * glyphs-widget.c (tab_control_query_geometry):
10612 (widget_query_geometry):
10613 (button_query_geometry):
10614 * glyphs.c (text_query_geometry):
10615 Enforce type correctness.
10617 2000-06-18 Martin Buchholz <martin@xemacs.org>
10619 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10620 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10622 2000-06-17 Martin Buchholz <martin@xemacs.org>
10624 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10625 conflicts with gcc's fixincluded version of FOO.h.
10627 * glyphs.h (image_instance_geometry): Remove trailing `,'
10629 2000-06-08 Mike Alexander <mta@arbortext.com>
10631 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10632 (shove_thread): Don't write the same output twice
10633 (make_ntpipe_output_stream): Increase priority of shove thread
10634 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10636 (ntpipe_shove_closer): Don't delete the pipe until we're done with
10639 2000-06-12 Ben Wing <ben@xemacs.org>
10641 * s\mingw32.h (sigset):
10642 * s\windowsnt.h (sigset):
10643 rename msw_ to mswindows_ for consistency with general convention.
10645 2000-06-12 Ben Wing <ben@xemacs.org>
10648 * console-msw.c (mswindows_get_console_hwnd):
10649 * console-msw.c (mswindows_ensure_console_allocated):
10650 * console-msw.c (mswindows_hide_console):
10651 * console-msw.c (mswindows_show_console):
10652 * console-msw.c (mswindows_ensure_console_buffered):
10653 * console-msw.c (mswindows_output_console_string):
10654 * console-msw.c (mswindows_windows9x_p):
10656 * device-msw.c (mswindows_get_workspace_coords):
10657 * device-msw.c (mswindows_device_system_metrics):
10658 * dialog-msw.c (mswindows_popup_dialog_box):
10659 * event-msw.c (mswindows_wnd_proc):
10660 * frame-msw.c (mswindows_size_frame_internal):
10661 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10662 * menubar-msw.c (displayable_menu_item):
10663 * menubar-msw.c (mswindows_char_is_accelerator):
10665 * nt.c (mswindows_sigset):
10666 * nt.c (mswindows_sigrelse):
10667 * nt.c (mswindows_sigpause):
10668 * nt.c (mswindows_raise):
10669 * nt.c (timer_proc):
10671 * ntproc.c (find_child_console):
10672 * ntproc.c (sys_kill):
10674 * print.c (std_handle_out_external):
10675 * process-nt.c (find_child_console):
10676 * process-nt.c (send_signal_the_95_way):
10677 * process-nt.c (ensure_console_window_exists):
10678 * process-nt.c (nt_create_process):
10680 rename msw_ to mswindows_ for consistency with general convention.
10684 include nt.h, not syswindows.h.
10686 * nt.c (mswindows_fstat):
10687 * nt.c (mswindows_stat):
10688 prefix mswindows_ instead of attempting to directly override the
10689 library functions. fix declarations.
10692 include syswindows.h. move some sysdep.h stuff here.
10695 include syswindows.h, not <windows.h>.
10703 * sysdep.c (sys_fstat):
10704 * sysdep.c (sys_stat):
10705 call mswindows versions when appropriate.
10708 move mswin decls to nt.h.
10711 add long comment describing appropriate use of the various windows
10714 2000-06-11 Ben Wing <ben@xemacs.org>
10716 * device-x.c: Correct doc string for sixth arg of x-get-resource.
10718 2000-06-10 Ben Wing <ben@xemacs.org>
10720 * Makefile.in.in (release):
10721 Correction to make sure xemacs.exe always dumped when correct.
10725 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10727 * buffer.c (set_buffer_internal):
10728 [[[[2]]]]: Remove HAVE_FEP code.
10730 * buffer.c (init_initial_directory):
10734 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10738 * callproc.c (call_process_cleanup):
10739 * callproc.c (Fold_call_process_internal):
10740 * callproc.c (child_setup):
10741 * callproc.c (getenv_internal):
10742 * callproc.c (init_callproc):
10743 * callproc.c (vars_of_callproc):
10744 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10745 __CYGWIN32__ -> CYGWIN.
10746 DOS_NT -> WIN32_NATIVE.
10747 Remove MSDOS support/references, converting to WIN32_NATIVE
10749 __MINGW32__ -> MINGW.
10750 Fix windows.h includes.
10751 Remove bogus HAVE_NTGUI.
10757 mswindows_message_outputted added for use in allowing startup
10758 errors on the console to be seen.
10760 * console-msw.c (msw_ensure_console_allocated):
10761 * console-msw.c (msw_output_console_string):
10762 * console-msw.c (DHEADER):
10763 * console-msw.c (DOPAQUE_DATA):
10764 * console-msw.c (DEVENT):
10765 * console-msw.c (DCONS):
10766 * console-msw.c (DCONSCDR):
10767 * console-msw.c (DSTRING):
10768 * console-msw.c (DVECTOR):
10769 * console-msw.c (DSYMBOL):
10770 * console-msw.c (DSYMNAME):
10773 * console-stream.c (stream_init_console):
10774 Fix text/binary problems.
10777 * device-msw.c (mswindows_finish_init_device):
10778 * device-msw.c (mswindows_delete_device):
10781 * device.c (handle_asynch_device_change):
10785 * dgif_lib.c (DGifOpenFileName):
10786 * dgif_lib.c (DGifOpenFileHandle):
10787 * dgif_lib.c (DGifGetLine):
10788 * dgif_lib.c (DGifGetPixel):
10789 Added config.h/lisp.h, fix up includes.
10796 * dired.c (file_name_completion):
10797 * dired.c (Ffile_attributes):
10798 * dired.c (syms_of_dired):
10802 * dumper.c (pdump_file_unmap):
10803 * dumper.c (pdump_load):
10807 * editfns.c (Ftemp_directory):
10808 * editfns.c (user_login_name):
10809 * editfns.c (Fuser_real_login_name):
10810 * editfns.c (get_home_directory):
10813 * elhash.c (finish_marking_weak_hash_tables):
10814 [[[[5]]]]: Fix GCC warnings.
10817 * emacs.c (mswindows_handle_hardware_exceptions):
10818 * emacs.c (make_arg_list_1):
10819 * emacs.c (main_1):
10820 * emacs.c (Fkill_emacs):
10821 * emacs.c (Fdump_emacs):
10823 Fix problems with nested crashes, add long comment.
10825 * event-Xt.c (init_event_Xt_late):
10829 * event-msw.c (mswindows_dde_callback):
10830 * event-msw.c (mswindows_handle_sticky_modifiers):
10831 * event-msw.c (mswindows_wnd_proc):
10835 * events.c (character_to_event):
10839 * fileio.c (Ffile_name_directory):
10840 * fileio.c (Ffile_name_nondirectory):
10841 * fileio.c (directory_file_name):
10842 * fileio.c (Fexpand_file_name):
10843 * fileio.c (Fsubstitute_in_file_name):
10844 * fileio.c (Ffile_name_absolute_p):
10845 * fileio.c (check_executable):
10846 * fileio.c (Ffile_readable_p):
10847 * fileio.c (Ffile_accessible_directory_p):
10848 * fileio.c (Ffile_modes):
10849 * fileio.c (Funix_sync):
10850 * fileio.c (vars_of_fileio):
10853 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10855 Expand getdefdir defn.
10856 Fix bogus rename() comment.
10858 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
10859 to use standard XEmacs include files, e.g. sysfile.h, rather
10860 than system-specific includes.
10866 * frame.c (vars_of_frame):
10870 * getloadavg.c (getloadavg):
10872 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
10873 (We don't use it elsewhere in the code; just add a comment.)
10880 * glyphs-msw.c (mswindows_resource_instantiate):
10883 * glyphs-x.c (x_native_layout_instantiate):
10886 * gui-msw.c (Fmswindows_shell_execute):
10895 * lread.c (locate_file_in_directory_mapper):
10902 * mem-limits.h (get_lim_data):
10914 * nt.c (rva_to_section):
10915 * nt.c (mswindows_executable_type):
10917 Fix closedir() defn.
10920 [[[[8]]]]: *_OK defs moved to sysfile.h.
10929 * print.c (std_handle_out_external):
10933 * process-nt.c (nt_create_process):
10935 try to fix process quoting somewhat.
10937 * process-unix.c (unix_create_process):
10941 * process.c (vars_of_process):
10948 * realpath.c (xrealpath):
10951 * redisplay-tty.c (init_tty_for_redisplay):
10961 * sheap.c (more_static_core):
10962 * sheap.c (report_sheap_usage):
10966 * signal.c (alarm_signal):
10973 * strftime.c (zone_name):
10976 * symsinit.h (init_sunpro):
10980 commctrl.h not in Cygwin b20.1.
10983 * sysdep.c (endif):
10984 * sysdep.c (sys_subshell):
10985 * sysdep.c (init_baud_rate):
10986 * sysdep.c (emacs_get_tty):
10987 * sysdep.c (emacs_set_tty):
10988 * sysdep.c (tty_init_sys_modes_on_device):
10989 * sysdep.c (init_system_name):
10990 * sysdep.c (sys_open):
10991 * sysdep.c (interruptible_open):
10992 * sysdep.c (sys_fopen):
10993 * sysdep.c (sys_mkdir):
10994 * sysdep.c (sys_rename):
10995 * sysdep.c (get_process_times_1):
11002 * sysdir.h (DIRENTRY_NONEMPTY):
11005 * sysdll.c (dll_init):
11011 added text/binary defs.
11017 * sysproc.h (EDESTADDRREQ):
11018 * sysproc.h (poll_fds_for_input):
11035 Always define WIN32_LEAN_AND_MEAN.
11037 * unexcw.c (unexec):
11041 * unexec.c (copy_text_and_data):
11042 * unexec.c (adjust_lnnoptrs):
11046 * unexnt.c (_start):
11049 2000-06-07 Ben Wing <ben@xemacs.org>
11051 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
11052 was used only as a model. We've long since extracted any useful
11053 logic or code out of this. (I just did an exhaustive search.)
11055 * s\msdos.h: Removed.
11057 * s\windows95.h: Removed.
11059 2000-06-10 Ben Wing <ben@xemacs.org>
11063 Don't use extern with fun defs.
11067 Remove nt\inc include.
11068 Remove getdisk, getdefdir. (The former is unused, the latter
11069 expanded in fileio.h.)
11072 * s\windowsnt.h (WIN32_NATIVE):
11073 * s\windowsnt.h (HAVE_STRCASECMP):
11075 Add long comment about preprocessor changes.
11076 Remove getdisk, getdefdir. (The former is unused, the latter
11077 expanded in fileio.h.)
11079 2000-06-10 Ben Wing <ben@xemacs.org>
11088 Remove bogus/unused NO_SOCK_SIGIO.
11090 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
11092 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11095 2000-06-04 Mike Sperber <mike@xemacs.org>
11097 * casetab.c (set_case_table): For `set-standard-case-table',
11098 actually deposit the new case tables where the rest of XEmacs can
11101 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
11103 * data.c (Faset): Don't cast XCHAR() to unsigned char.
11105 2000-06-05 Ben Wing <ben@xemacs.org>
11107 * callproc.c (child_setup): Don't do close_load_descs() under
11108 MS Windows. Put in a comment explaining why.
11110 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
11112 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11113 Toolkit shell" which breaks `kill-compilation' on Windows NT
11114 native, retaining STDERR handling improvements.
11116 2000-06-01 Andreas Jaeger <aj@suse.de>
11118 * s/s390.h: Support for S390, based on a patch by Martin
11119 Schwidefsky <schwidefsky@de.ibm.com>.
11121 2000-05-30 Andy Piper <andy@xemacs.org>
11123 * window.c (allocate_window):
11124 (make_dummy_parent):
11125 (Fset_window_configuration): use new hashtable type.
11127 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11128 (struct image_instantiator_methods):
11129 (struct Lisp_Image_Instance): make instance geometry signed.
11131 * glyphs.c (instantiate_image_instantiator):
11132 (image_instance_query_geometry):
11133 (image_instance_layout):
11134 (image_instance_layout):
11135 (query_string_geometry):
11136 (text_query_geometry):
11137 (image_instantiate):
11138 (image_instantiate):
11139 (cache_subwindow_instance_in_frame_maybe):
11140 (subwindow_query_geometry): make instance geometry signed.
11142 * glyphs-widget.c (widget_query_geometry):
11144 (button_query_geometry):
11145 (tree_view_query_geometry):
11146 (tab_control_query_geometry):
11147 (layout_query_geometry):
11149 (native_layout_layout): make instance geometry signed.
11151 2000-05-29 Olivier Galibert <galibert@pobox.com>
11153 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11156 * general.c (syms_of_general): Add Qfull_assoc symbol.
11158 * data.c (finish_marking_weak_lists): Mark full-assoc lists
11160 (decode_weak_list_type): Decode full-assoc type.
11161 (encode_weak_list_type): Encode full-assoc type.
11162 (Fmake_weak_list): Update doc string.
11164 2000-05-30 Andy Piper <andy@xemacs.org>
11166 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11168 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11169 (decode_hash_table_weakness): ditto.
11170 (Fhash_table_weakness): ditto.
11171 (Fhash_table_type): ditto.
11172 (finish_marking_weak_hash_tables): ditto.
11173 (hash_table_weakness_validate): ditto.
11174 (syms_of_elhash): ditto.
11176 2000-05-28 Martin Buchholz <martin@xemacs.org>
11178 * XEmacs 21.2.34 is released.
11180 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
11182 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11184 (updating_line_start_cache): Gone.
11185 (regenerate_window): Replace resetting of VERTICAL_CLIP by
11186 generic code to force a minimum of 1 line laid out in the
11189 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
11191 * glyphs.c (instantiate_image_instantiator): Check for initialized
11192 height & width no longer special cases IMAGE_NOTHING.
11193 (nothing_instantiate): Set height and width of instance.
11195 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
11197 * unexelf.c (unexec): Search for ".data" section.
11198 Initialize new_data2_offset from old_data_index.
11199 Remove redundant check for ElfW.
11201 2000-05-23 Andy Piper <andy@xemacs.org>
11203 * glyphs.c (get_image_instantiator_governing_domain): allow more
11204 specific domains as the governing domain rather than expecting an
11205 exact match. This fixes problems with layouts.
11207 2000-05-22 Andy Piper <andy@xemacs.org>
11209 * redisplay-output.c (compare_runes): check for non-images
11211 * glyphs.c (set_glyph_dirty_p): ditto.
11212 (update_glyph_cachel_data): ditto.
11214 * glyphs-widget.c (layout_post_instantiate): ditto.
11215 (layout_post_instantiate): ditto.
11217 * event-msw.c (mswindows_wnd_proc): warning removal.
11219 2000-05-12 Craig Lanning <CraigL@DyCon.com>
11221 * s\mingw32.h: Added #undef for CLASH_DETECTION.
11223 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11225 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11227 * nt.c (rva_to_section): mingw32 needs rva_to_section.
11228 (mswindows_executable_type): mingw32 now has enough headers for
11231 2000-05-20 Andy Piper <andy@xemacs.org>
11233 * console-msw.c (mswindows_output_last_error): ; -> ,
11235 2000-05-12 Andy Piper <andy@xemacs.org>
11237 * console-msw.c (FROB): compare ints with ints.
11239 2000-05-11 Andy Piper <andy@xemacs.org>
11241 * glyphs-x.c (x_finalize_image_instance): make minimal build
11244 2000-05-20 Ben Wing <ben@xemacs.org>
11247 * event-Xt.c (vars_of_event_Xt):
11248 move modifier-keys-are-sticky to event-stream.c.
11251 * event-msw.c (mswindows_enqueue_mouse_button_event):
11252 * event-msw.c (key_needs_default_processing_p):
11253 * event-msw.c (XEMSW_LCONTROL):
11254 * event-msw.c (mswindows_handle_sticky_modifiers):
11255 * event-msw.c (FROB):
11256 * event-msw.c (clear_sticky_modifiers):
11257 * event-msw.c (output_modifier_keyboard_state):
11258 * event-msw.c (output_alt_keyboard_state):
11259 * event-msw.c (mswindows_wnd_proc):
11260 * event-msw.c (mswindows_modifier_state):
11261 * event-msw.c (emacs_mswindows_handle_magic_event):
11262 implement sticky modifiers.
11265 * event-stream.c (vars_of_event_stream):
11266 move modifier-keys-are-sticky here.
11269 add CHECK_FUNCTION.
11272 implement map-range-table.
11275 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
11277 * redisplay-tty.c (reset_tty_modes):
11278 (tty_redisplay_shutdown): Adjust argument type to
11279 tty_frame_output_end.
11281 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
11283 * eval.c (Fbacktrace): Don't output a line with only right
11286 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
11288 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11289 (Fpq_reset_poll): Ditto.
11291 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
11293 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11295 2000-05-16 Ben Wing <ben@xemacs.org>
11298 * buffer.c (dfc_convert_to/from_internal_format):
11299 * buffer.c (reinit_vars_of_buffer):
11300 Fix conversion functions to allow reentrancy.
11303 * console-msw.c (mswindows_output_last_error):
11304 New fun, generally useful -- output a human-readable
11305 version of GetLastError() on the console.
11308 * console-msw.h (struct mswindows_frame):
11309 Changes for DeferWindowPos. Declare mswindows_output_last_error().
11311 * console-stream.c (stream_output_begin):
11312 * console-stream.c (stream_output_end):
11313 * console-stream.c (stream_output_vertical_divider):
11314 * console-stream.c (stream_clear_region):
11315 * console-stream.c (stream_flash):
11316 * console-stream.c (console_type_create_stream):
11317 Delete blank stream methods, not needed.
11319 * console.h (struct console_methods):
11320 Split begin/end methods into window and frame.
11323 * event-msw.c (mswindows_handle_paint):
11324 * event-msw.c (output_alt_keyboard_state):
11325 * event-msw.c (mswindows_wnd_proc):
11326 * event-msw.c (vars_of_event_mswindows):
11327 Comment about problems with ignored-expose.
11328 Define mswindows-debug-events; not really implemented.
11330 * frame-msw.c (mswindows_init_frame_1):
11334 * glyphs-msw.c (begin_defer_window_pos):
11335 * glyphs-msw.c (mswindows_unmap_subwindow):
11336 * glyphs-msw.c (mswindows_map_subwindow):
11337 * glyphs-msw.c (mswindows_resize_subwindow):
11338 Use DeferWindowPos to reduce flashing when mapping/unmapping.
11340 * glyphs.c (make_image_instance_1):
11343 * gutter.c (Fredisplay_gutter_area):
11344 Use new begin/end methods.
11346 * lisp.h (Dynarr_new2):
11350 * redisplay-msw.c (mswindows_frame_output_begin):
11351 * redisplay-msw.c (mswindows_frame_output_end):
11352 * redisplay-msw.c (console_type_create_redisplay_mswindows):
11353 New begin/end methods -- handle DeferWindowPos.
11355 * redisplay-output.c (redisplay_move_cursor):
11356 * redisplay-output.c (redraw_cursor_in_window):
11357 * redisplay-output.c (redisplay_update_line):
11358 * redisplay-output.c (redisplay_output_window):
11359 New begin/end methods.
11362 * redisplay-tty.c (tty_frame_output_begin):
11363 * redisplay-tty.c (tty_frame_output_end):
11364 * redisplay-tty.c (console_type_create_redisplay_tty):
11365 New begin/end methods.
11368 * redisplay-x.c (x_window_output_begin):
11369 * redisplay-x.c (x_window_output_end):
11370 * redisplay-x.c (console_type_create_redisplay_x):
11371 New begin/end methods.
11373 * redisplay.c (redisplay_frame):
11374 * redisplay.c (Fredisplay_echo_area):
11375 New begin/end methods.
11376 use MAYBE_DEVMETH for clear_frame; it may not exist.
11378 * window.h (WINDOW_XFRAME):
11379 WINDOW_XFOO macros -- get locale and decode struct pointer.
11382 2000-05-12 Ben Wing <ben@xemacs.org>
11385 * emacs.c (ensure_no_quitting_from_now_on):
11386 * emacs.c (fatal_error_signal):
11387 * emacs.c (mswindows_handle_hardware_exceptions):
11389 * emacs.c (Fkill_emacs):
11390 * emacs.c (shut_down_emacs):
11391 * emacs.c (assert_failed):
11392 various improvements in fatal error handling.
11395 move preparing_for_armageddon to emacs.c.
11398 declare fatal_error_in_progress.
11401 * print.c (std_handle_out_external):
11402 * print.c (std_handle_out_va):
11403 * print.c (stderr_out):
11404 * print.c (stdout_out):
11405 use console under mswin when no standard output.
11406 don't do code conversion during fatal error.
11408 * scrollbar.c (Fscrollbar_page_up):
11409 * scrollbar.c (Fscrollbar_page_down):
11410 fix missing else. reindent.
11412 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
11416 * glyphs.h (GLYPH_CACHEL_DESCENT):
11417 (GLYPH_CACHEL_DESCENT):
11418 (GLYPH_CACHEL_DESCENT):
11419 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11420 used in case these are inline functions.
11421 Use more absurd values to error check.
11423 include window.h for error check functions.
11425 2000-05-11 Ben Wing <ben@xemacs.org>
11427 * cmdloop.c (Freally_early_error_handler):
11428 Display message box under windows; otherwise, message will disappear
11429 before it can be viewed.
11432 * console-msw.c (Fmswindows_message_box):
11433 * console-msw.c (FROB):
11434 * console-msw.c (syms_of_console_mswindows):
11435 Define new fun `mswindows-message-box'.
11436 #### I will merge this into `popup-dialog-box'; just give me
11440 * general.c (syms_of_general):
11441 Some new symbols used in `mswindows-message-box'.
11444 * glyphs.c (Fset_image_instance_property):
11445 put warning in this fun.
11448 * glyphs.h (GLYPH_CACHEL_WIDTH):
11449 * glyphs.h (GLYPH_CACHEL_ASCENT):
11450 * glyphs.h (GLYPH_CACHEL):
11451 * glyphs.h (GLYPH_CACHEL_GLYPH):
11452 define error-checking versions to try to catch a bug i've seen --
11453 redisplay gets in an infinite loop because the glyph width of the
11454 continuation glyph is 65535.
11457 Extern message-box stuff.
11459 * window.c (allocate_window):
11460 * window.c (make_dummy_parent):
11461 * window.c (Fset_window_configuration):
11462 Use EQUAL not EQ for subwindow caches to make them work a bit
11463 better. (Something is still very broken.)
11466 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
11468 * glyphs.c (image_instantiate): Suppress gcc warnings.
11469 (Fmake_image_instance): Fix doc string.
11470 * specifier.c (Fmake_specifier): Ditto.
11472 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
11474 * paths.h.in (PATH_LOCK): Removed.
11475 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11476 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11478 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
11480 * fns.c (Ffeaturep): Update e-mail address in doc-string.
11481 Document (featurep '(and xemacs 21.02)).
11483 2000-05-09 Ben Wing <ben@xemacs.org>
11485 * buffer.c (complex_vars_of_buffer):
11486 update modeline-format doc.
11489 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11492 timeline of all released versions of Emacs, for use in creating
11493 authorship comments and in synching up.
11495 * glyphs-widget.c (image_instantiator_buttons):
11496 * glyphs-widget.c (image_instantiator_edit_fields):
11497 * glyphs-widget.c (image_instantiator_combo_box):
11498 * glyphs-widget.c (image_instantiator_scrollbar):
11499 * glyphs-widget.c (image_instantiator_progress_guage):
11500 * glyphs-widget.c (image_instantiator_tree_view):
11501 * glyphs-widget.c (image_instantiator_tab_control):
11502 * glyphs-widget.c (image_instantiator_labels):
11503 * glyphs-widget.c (image_instantiator_layout):
11504 * glyphs-widget.c (image_instantiator_native_layout):
11505 rename decode_domain method to governing_domain.
11508 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11509 * glyphs.c (add_entry_to_device_ii_format_list):
11510 make sure we don't put an entry more than once into the list.
11511 * glyphs.c (check_instance_cache_mapper):
11512 *************************************************************
11513 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11515 *************************************************************
11516 * glyphs.c (get_image_instantiator_governing_domain):
11517 clean up, expand on new concept of governing domain.
11518 * glyphs.c (instantiate_image_instantiator):
11519 * glyphs.c (allocate_image_instance):
11520 use governing_domain instead of cache_domain in naming.
11521 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11522 * glyphs.c (make_image_instance_1):
11523 * glyphs.c (Fmake_image_instance):
11524 allow for any domain (not just device), and process the
11525 governing domain correctly. very big doc fix.
11526 * glyphs.c (Fimage_instance_domain):
11527 new primitive, to retrieve the governing domain of an image instance.
11528 * glyphs.c (image_instantiate):
11529 use new governing_domain stuff. this fixes a crash you could get
11530 by instantiating certain widget glyphs in frame locales. (should
11531 signal an error instead of crashing.)
11532 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11533 * glyphs.c (Fglyphp): clean up doc.
11534 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11535 * glyphs.c (syms_of_glyphs):
11536 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11537 * glyphs.c (image_instantiator_format_create): add some comments about
11539 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11540 for current-display-table. (Apparently Hrjove implemented in 1998 a
11541 design I wrote up in 1996, but didn't update the doc string.)
11543 * glyphs.h: clean up a doc string.
11544 * glyphs.h (governing_domain):
11545 * glyphs.h (struct image_instantiator_methods):
11546 changes for governing_domain stuff.
11549 * gutter.c (Fgutter_specifier_p):
11550 * gutter.c (Fgutter_size_specifier_p):
11551 * gutter.c (Fgutter_visible_specifier_p):
11553 * objects.c (Fcolor_specifier_p):
11554 * objects.c (Ffont_specifier_p):
11555 * objects.c (Fface_boolean_specifier_p):
11556 doc strings moved to make-*-specifier.
11558 * redisplay.c (add_disp_table_entry_runes_1):
11559 * redisplay.c (generate_fstring_runes):
11560 * redisplay.c (screen):
11561 add random comments and doc strings.
11564 * specifier.c (Fmake_specifier):
11565 major overhaul of this doc string.
11567 * specifier.c (Fvalid_specifier_domain_p):
11568 comment about the bogosity of image instances being domains.
11569 * specifier.c (decode_domain):
11570 now non-static, used in glyphs.c.
11571 * specifier.c (specifier_instance):
11572 comment about the bogosity of image instances being domains.
11573 * specifier.c (Fgeneric_specifier_p):
11574 move doc string to make-generic-specifier.
11575 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11579 * specifier.h (DOMAIN_FRAME):
11580 * specifier.h (DOMAIN_LIVE_P):
11581 * specifier.h (DOMAIN_XDEVICE):
11583 add comments about problems with these macros.
11584 prototype for decode_domain.
11587 * toolbar.c (Ftoolbar_specifier_p):
11588 move doc string to `make-toolbar-specifier'.
11590 * window.c (window_unmap_subwindows_cache_mapper):
11591 *************************************************************
11592 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11594 *************************************************************
11596 2000-05-09 Andy Piper <andy@xemacs.org>
11598 * glyphs.h: declare reset_frame_subwindow_instance_cache.
11600 * window.c (Fset_window_configuration): reset the frame subwindow
11601 cache and re-initialize the window subwindow caches.
11603 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11605 2000-05-09 Ben Wing <ben@xemacs.org>
11607 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11610 2000-04-26 Mike Woolley <mike@bulsara.com>
11612 * ntheap.c: Changed recreate_heap to limit the amount reserved
11613 for the heap to that which is actually available. Also now
11614 displays a message box (with some dignostics) in the event that
11615 it still can't start.
11617 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11619 * callproc.c (Fold_call_process_internal): GCPRO path
11621 2000-05-08 Jan Vroonhof <jan@xemacs.org>
11623 Patch by Bill Perry.
11625 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11626 back data instead of #ifdef.
11627 (Fscrollbar_page_down): ditto.
11629 2000-05-07 Ben Wing <ben@xemacs.org>
11632 Kludge for defining Qmswindows_tstr.
11635 * nt.c (open_input_file):
11636 * nt.c (open_output_file):
11637 * nt.c (rva_to_section):
11638 * nt.c (mswindows_executable_type):
11639 Move all memory-mapped-file routines here (some were in unexnt.c,
11640 which is bad because they are used by process-nt.c, and unexnt
11641 won't be around when portable dumping). Synched the above routines
11645 Removed ifdef'd out bogus code.
11646 Fixed some prototypes.
11648 * nt.h (file_data):
11649 * nt.h (OFFSET_TO_RVA):
11650 * nt.h (RVA_TO_OFFSET):
11651 * nt.h (RVA_TO_PTR):
11652 Moved the memory-mapped-file structures, macros and prototypes
11653 here, to parallel nt.c. ntheap.h should really be removed
11654 entirely, and it's a non-portable-dumper specific file.
11656 * ntheap.h (round_to_next):
11657 Moved the memory-mapped-file structures, macros and prototypes
11660 * ntproc.c (compare_env):
11661 Moved rva_to_section and mswindows_executable_type to nt.c.
11662 Moved compare_env to process-nt.c.
11663 ntproc.c will die, one day.
11665 * ntproc.c (sys_spawnve):
11666 Account for win32_ -> mswindows_.
11669 * process-nt.c (struct nt_process_data):
11670 * process-nt.c (ensure_console_window_exists):
11671 * process-nt.c (compare_env):
11672 * process-nt.c (nt_create_process):
11673 * process-nt.c (nt_kill_process_by_pid):
11674 * process-nt.c (syms_of_process_nt):
11675 * process-nt.c (vars_of_process_nt):
11676 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11677 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11678 changes). Eliminate our old `nt-quote-process-args' mechanism.
11679 Synch up nt_create_process with FSF 20.6 sys_spawnve.
11680 Move compare_env here from ntproc.c.
11682 * process.c (Fprocess_send_region):
11683 Takes an optional fourth argument, BUFFER, which should fix some
11684 problems with call-process.
11687 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11690 Move ICC_BAR_CLASSES to syscommctrl.h.
11691 Add preliminary macros for MSWindows/Mule. More to come.
11694 * unexnt.c (unexec):
11695 open_output_file moved to nt.c.
11698 2000-05-05 Andy Piper <andy@xemacs.org>
11700 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11701 instance from the frame cache also since GC may catch up too late
11702 to make frame deletion sane.
11704 2000-05-04 Andy Piper <andy@xemacs.org>
11706 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11707 (x_finalize_image_instance): ungcpro on deletion.
11709 * glyphs.c (image_instantiator_format_create): give pointers a
11710 query geometry method so that the geometry is at least set.
11712 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11713 initialize layouts if using widgets.
11715 2000-05-03 Andy Piper <andy@xemacs.org>
11717 * nt.c: remove bogus reference to sysmmsystem.h
11719 * gui-x.c (popup_selection_callback): fix no selection abort.
11721 2000-05-02 Andy Piper <andy@xemacs.org>
11723 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11724 (mswindows_widget_instantiate): ditto.
11726 * glyphs-widget.c (initialize_widget_image_instance): initialize
11727 children correctly.
11728 (widget_instantiate): cope with children and items in the same
11731 * glyphs.c (mark_image_instance): cope with children as a first
11733 (image_instance_equal): ditto.
11734 (image_instance_hash): ditto.
11735 (image_instance_changed): ditto.
11737 2000-04-30 Andy Piper <andy@xemacs.org>
11739 * glyphs.c (subwindow_query_geometry): new function. Return some
11741 (subwindow_instantiate): don't assign dimensions if none have been
11743 (image_instantiator_format_create): add subwindow_query_geometry.
11744 (print_image_instance): cope with layouts as widgets.
11746 2000-04-29 Andy Piper <andy@xemacs.org>
11748 * frame.c (delete_frame_internal): call
11749 free_frame_subwindow_instance_cache so that all subwindows are
11750 finalized before their parent.
11751 (mark_frame): remove subwindow_cachels.
11752 (Fmake_frame): remove subwindow_cachel manipulation.
11753 (allocate_frame_core): subwindow_instance_cache is a weak list.
11754 (delete_frame_internal): set subwindow_instance_cache to nil.
11756 * glyphs-msw.c (mswindows_finalize_image_instance): make double
11758 (mswindows_finalize_image_instance): use the device
11759 not the domain as the domain may have died already.
11761 * glyphs-x.c (x_finalize_image_instance): ditto.
11762 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11765 * redisplay-output.c (redisplay_unmap_subwindows): update for
11766 subwindow instance cache as a weak list.
11767 (redisplay_unmap_subwindows_maybe): ditto.
11768 (redisplay_unmap_subwindows_except_us): ditto.
11770 * glyphs.c (unmap_subwindow): error checking will check the domain
11771 so don't deal with it here. Don't use cachels anymore.
11772 (map_subwindow): ditto.
11773 (update_subwindow_cachel_data): remove old accessor names.
11774 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11775 (Fresize_subwindow): don't update cachel.
11776 (mark_subwindow_cachels):
11777 (update_subwindow_cachel_data):
11778 (add_subwindow_cachel):
11779 (get_subwindow_cachel_index):
11780 (update_subwindow_cachel):
11781 (reset_subwindow_cachels):
11782 (mark_subwindow_cachels_as_not_updated): deleted.
11783 (cache_subwindow_instance_in_frame_maybe): new function. Add a
11784 subwindow instance to the frame cache.
11785 (find_matching_subwindow): update for subwindow instance cache as
11787 (update_widget_instances): ditto.
11788 (image_instance_type_to_mask):inlined.
11789 (free_frame_subwindow_instance_cache): new function. finalize all
11790 subwindows that are instantiated.
11792 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11793 of cachel information.
11794 (IMAGE_INSTANCE_DISPLAY_X):
11795 (IMAGE_INSTANCE_DISPLAY_Y):
11796 (IMAGE_INSTANCE_DISPLAY_WIDTH):
11797 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11798 (XIMAGE_INSTANCE_DISPLAY_X):
11799 (XIMAGE_INSTANCE_DISPLAY_Y):
11800 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11801 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11802 remove subwindow_cachel structure and function references.
11803 (image_instance_type_to_mask): inline from glyphs.c
11805 * redisplay.c (redisplay_frame): remove subwindow_cachel
11808 * frame.h (struct frame): remove subwindow_cachels.
11809 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11811 * frameslots.h: add subwindow_instance_cache.
11813 * window.c (replace_window): check subwindow cache of replacement.
11814 (window_unmap_subwindows_cache_mapper):
11815 (window_unmap_subwindows): new functions. Unmap all subwindows
11816 cached on this window.
11817 (mark_window_as_deleted): unmap all subwindows.
11819 2000-04-27 Andy Piper <andy@xemacs.org>
11821 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11823 * glyphs-widget.c (widget_layout): return something.
11824 (layout_layout): return something. Fail if not initialized.
11825 (layout_query_geometry): ditto.
11826 (image_instantiator_native_layout): new function. Initialized the
11827 native layout type.
11828 (widget_instantiate): don't do layout stuff here.
11830 * glyphs.c (instantiate_image_instantiator): reorded calling or
11831 instantiate and post_instantiate with layout in between.
11832 (image_instance_layout): be more selective about deciding whether
11833 the layout has been done or not.
11835 * glyphs.h (struct image_instantiator_methods): return a value
11836 from layout_method.
11838 2000-04-26 Andy Piper <andy@xemacs.org>
11840 * glyphs.c (allocate_image_instance): make initial width and
11841 height unspecified. Set initialized to 0.
11843 * syscommctrl.h new file. Encapsulates commctrl.h.
11845 * syswindows.h new file. Encapsulates windows.h.
11847 * ntplay.c: use new syswindows.h and syscommctrl.h header.
11849 * console-msw.h: ditto.
11851 * redisplay-tty.c (tty_output_display_block): remove layout references.
11853 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11854 window handle rather than just the frame.
11856 * glyphs.c (mark_image_instance): remove layout references.
11857 (print_image_instance): ditto.
11858 (image_instance_equal): ditto.
11859 (image_instance_hash): ditto.
11860 (decode_image_instance_type): ditto.
11861 (encode_image_instance_type): ditto.
11862 (image_instantiate): ditto.
11863 (allocate_glyph): ditto.
11864 (Fimage_instance_height): ditto.
11865 (Fimage_instance_width): ditto.
11866 (update_subwindow): ditto.
11868 * redisplay-x.c (x_output_display_block): recode for layouts as
11871 * redisplay-output.c (redisplay_output_layout): recode for layouts
11873 (compare_runes): remove layout references.
11875 * redisplay-msw.c (mswindows_output_display_block): recode for
11876 layouts as widgets.
11878 * glyphs-widget.c (image_instantiator_layout): remove
11879 layout_possible_dest_types.
11880 (layout_possible_dest_types): deleted.
11882 * glyphs.h (image_instance_type): remove layout references.
11883 (struct Lisp_Image_Instance): ditto. Add initialized flag.
11884 (IMAGE_INSTANCE_INITIALIZED): new accessor.
11885 (XIMAGE_INSTANCE_INITIALIZED): ditto.
11887 2000-04-25 Andy Piper <andy@xemacs.org>
11889 * glyphs-widget.c (image_instantiator_buttons):
11890 (image_instantiator_edit_fields):
11891 (image_instantiator_combo_box):
11892 (image_instantiator_scrollbar):
11893 (image_instantiator_progress_guage):
11894 (image_instantiator_tree_view):
11895 (image_instantiator_tab_control):
11896 (image_instantiator_labels):
11897 (image_instantiator_layout): call default post_instantiate method.
11898 (widget_post_instantiate): new function. Simply lays out the
11901 * glyphs.h (struct image_instantiator_methods): add
11902 post_instantiate method.
11904 * glyphs.c (instantiate_image_instantiator): add post_instantiate
11907 2000-04-23 Andy Piper <andy@xemacs.org>
11909 * glyphs.h (struct image_instantiator_methods): add
11910 decode_domain_method.
11911 (struct Lisp_Image_Instance): remove subwindow frame - it can be
11912 derived from the domain.
11913 (IMAGE_INSTANCE_FRAME): new accessor.
11914 (XIMAGE_INSTANCE_FRAME): ditto.
11916 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11917 instead of _SUBWINDOW_FRAME.
11918 (finalize_image_instance): ditto.
11919 (Fimage_instance_foreground): ditto.
11920 (Fimage_instance_background): ditto.
11921 (image_instantiate): ditto.
11922 (update_subwindow_cachel): ditto.
11923 (update_subwindow): ditto.
11924 (unmap_subwindow): ditto.
11925 (map_subwindow): ditto
11926 (subwindow_instantiate): ditto.
11927 * glyphs-msw.c (mswindows_update_widget): ditto.
11928 (mswindows_progress_gauge_instantiate): ditto.
11929 (mswindows_tab_control_update): ditto.
11930 * glyphs-x.c (x_update_widget): ditto.
11931 (x_widget_instantiate): ditto.
11932 (x_tab_control_instantiate): ditto.
11933 (x_tab_control_update): ditto.
11934 * event-msw.c (mswindows_wnd_proc): ditto
11936 * glyphs-widget.c (image_instantiator_layout): use
11937 subwindow_decode_domain.
11938 (image_instantiator_buttons): ditto.
11939 (image_instantiator_edit_fields): ditto.
11940 (image_instantiator_combo_box): ditto.
11941 (image_instantiator_scrollbar): ditto.
11942 (image_instantiator_progress_guage): ditto.
11943 (image_instantiator_tree_view): ditto.
11944 (image_instantiator_tab_control): ditto.
11945 (image_instantiator_labels): ditto.
11946 (image_instantiator_layout): ditto.
11948 * glyphs.c: add instance error checking to many functions.
11949 (instantiate_image_instantiator): decode device from cache_domain.
11950 (image_instantiate): partially rewrite by using
11951 decode_image_instantiator_domain to determine what domain the
11952 instance needs to be cached in.
11953 (decode_image_instantiator_domain): new function. Determine what
11954 domain the image needs to be cached in.
11955 (check_window_subwindow_cache): new error checking function.
11956 (check_instance_cache_mapper): ditto.
11957 (check_image_instance_structure): ditto.
11958 (subwindow_decode_domain): new function. Encodes a window as a
11959 subwindow's cache domain.
11960 (image_instantiator_format_create): use it for text and
11963 2000-04-21 Andy Piper <andy@xemacs.org>
11965 * glyphs.c (image_instance_device): new function.
11966 (image_instance_frame): new function.
11967 (image_instance_window): new function.
11968 (image_instance_live_p): new function.
11970 * window.c (mark_window_as_deleted): reset the subwindow_instance_
11973 * glyphs.h (struct Lisp_Image_Instance): device->domain.
11974 (IMAGE_INSTANCE_DOMAIN): new accessor.
11975 (XIMAGE_INSTANCE_DOMAIN): ditto.
11977 * glyphs-x.c (x_finalize_image_instance): device->domain.
11979 * glyphs-msw.c (init_image_instance_geometry): device->domain.
11980 (mswindows_finalize_image_instance): ditto.
11982 * glyphs-eimage.c (jpeg_instantiate): device->domain.
11983 (gif_instantiate): ditto.
11984 (png_instantiate): ditto.
11985 (tiff_instantiate): ditto.
11987 * glyphs.c (instantiate_image_instantiator): use domain rather
11989 (mark_image_instance): device -> domain.
11990 (print_image_instance): ditto.
11991 (finalize_image_instance): ditto.
11992 (image_instance_equal): ditto.
11993 (allocate_image_instance): ditto.
11994 (Fcolorize_image_instance): ditto.
11995 (query_string_geometry): ditto.
11996 (image_instantiate): ditto
11997 (query_string_font): ditto.
11998 (image_instantiate): ditto.
11999 (update_subwindow): ditto.
12000 (unmap_subwindow): ditto.
12001 (map_subwindow): ditto.
12002 (subwindow_instantiate): ditto.
12004 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12005 (DOMAIN_FRAME): ditto.
12006 (DOMAIN_WINDOW): ditto.
12007 (DOMAIN_LIVE_P): ditto.
12008 (XDOMAIN_DEVICE): ditto.
12009 (XDOMAIN_FRAME): ditto.
12010 (XDOMAIN_WINDOW): ditto.
12012 * specifier.c (Fvalid_specifier_domain_p): add image instances as
12013 a valid specifier domain.
12015 2000-04-19 Andy Piper <andy@xemacs.org>
12017 * glyphs-widget.c (syms_of_glyphs_widget): remove
12018 widget-callback-current-channel.
12019 (vars_of_glyphs_widget): ditto.
12022 * gui.c (get_gui_callback): revert to previous behaviour.
12024 2000-04-18 Andy Piper <andy@xemacs.org>
12026 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12027 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12028 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12030 * glyphs.c (image_instance_equal): add margin_width.
12031 (image_instance_hash): ditto.
12033 * glyphs-widget.c (widget_instantiate): deal with margin-width.
12034 (layout_query_geometry): ditto.
12035 (layout_layout): ditto.
12036 (syms_of_glyphs_widget): add margin-width.
12037 (image_instantiator_layout): allow margin-width.
12039 * glyphs.c (update_widget_instances): make a normal function.
12040 (syms_of_glyphs): remove Qupdate_widget_instances.
12043 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12044 so that we don't corrupt ideas about the last event or
12045 command. Remove widget-callback-current-channel fiddling.
12046 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12048 2000-05-01 Martin Buchholz <martin@xemacs.org>
12050 * XEmacs 21.2.33 is released.
12052 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
12054 * make-src-depend: Allow dots in header file name.
12056 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
12058 * mule-charset.h (struct charset_lookup): Add
12059 next_allocated_1_byte_leading_byte and
12060 next_allocated_2_byte_leading_byte.
12061 * mule-charset.c: Move above two variables so that those values
12064 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
12066 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12067 when string length is zero.
12068 (find_charsets_in_emchar_string): Ditto.
12070 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
12072 * lisp.h: extern Qdialog and Qmenubar.
12074 * gui-x.c: added events.h.
12075 also fixed typo which made the file uncompilable.
12077 * general.c: Added Qmenubar and Qdialog
12079 2000-04-28 Ben Wing <ben@xemacs.org>
12081 * frame-msw.c (mswindows_init_frame_1):
12082 * frame-msw.c (mswindows_mark_frame):
12083 * event-msw.c (mswindows_enqueue_dispatch_event):
12085 * console-msw.h (struct mswindows_frame):
12086 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12087 there are now three hash tables for callbacks.
12088 mswindows_enqueue_dispatch_event is no longer static.
12090 * dialog-x.c (maybe_run_dbox_text_callback):
12091 * dialog-x.c (dbox_descriptor_to_widget_value):
12092 switch to new cons3 form for callbacks.
12094 * glyphs-msw.c (mswindows_register_gui_item):
12095 * glyphs-msw.c (mswindows_widget_instantiate):
12096 * glyphs-msw.c (add_tree_item):
12097 * glyphs-msw.c (add_tab_item):
12098 new image instance parameter, so it can be passed to callback-ex.
12099 respect :callback-ex as well as :callback.
12101 * glyphs-widget.c (VALID_GUI_KEYWORDS):
12104 * glyphs.c (print_image_instance):
12105 prettify, e.g. now prints widget type.
12108 certain funs have new image instance parameter.
12111 * gui.c (get_gui_callback):
12112 * gui.c (gui_item_add_keyval_pair):
12113 * gui.c (gui_item_init):
12114 * gui.c (gui_add_item_keywords_to_plist):
12115 * gui.c (mark_gui_item):
12116 * gui.c (gui_item_hash):
12117 * gui.c (gui_item_equal):
12118 * gui.c (copy_gui_item):
12119 * gui.c (syms_of_gui):
12120 recognize callback-ex in a number of places.
12121 also, fix the annoying "can't get out of yes-no dialog" bug.
12124 * gui.h (struct Lisp_Gui_Item):
12125 recognize callback-ex in a number of places.
12127 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12128 new parameter in button_item_to_widget_value.
12130 * glyphs-x.c (x_update_widget):
12131 * glyphs-x.c (x_button_instantiate):
12132 * glyphs-x.c (x_button_update):
12133 * glyphs-x.c (x_progress_gauge_instantiate):
12134 * glyphs-x.c (x_edit_field_instantiate):
12135 * glyphs-x.c (x_combo_box_instantiate):
12136 * glyphs-x.c (x_tab_control_instantiate):
12137 * glyphs-x.c (x_label_instantiate):
12138 new image instance parameter in various places.
12141 * event-Xt.c (enqueue_Xt_dispatch_event):
12142 this fun gets exported.
12145 * gui-msw.c (mswindows_handle_gui_wm_command):
12146 handle both :callback and :callback-ex, and generate our own
12147 event because it's one of the callback-ex arguments.
12150 * gui-x.c (popup_selection_callback):
12151 handle both :callback and :callback-ex, and generate our own
12152 event because it's one of the callback-ex arguments.
12153 * gui-x.c (button_item_to_widget_value):
12154 * gui-x.c (gui_items_to_widget_values_1):
12155 * gui-x.c (gui_item_children_to_widget_values):
12156 * gui-x.c (gui_items_to_widget_values):
12157 new image instance parameter in various places.
12159 * fns.c (Freplace_list):
12160 fix small typo in doc string.
12163 declare enqueue_Xt_dispatch_event.
12165 2000-04-28 Ben Wing <ben@xemacs.org>
12168 * buffer.c (Frecord_buffer):
12169 * buffer.c (syms_of_buffer):
12170 delete record-buffer-hook.
12173 * fns.c (Freplace_list):
12174 * fns.c (syms_of_fns):
12175 new primitive replace-list.
12178 slot for old buffer-alist.
12181 exfun replace-list.
12184 * redisplay.c (redisplay_frame):
12185 * redisplay.c (syms_of_redisplay):
12186 * redisplay.c (vars_of_redisplay):
12187 new hook buffer-list-changed-hook.
12190 2000-04-27 Ben Wing <ben@xemacs.org>
12192 * extents.h: extern in_modeline_generation.
12194 * redisplay.c (generate_formatted_string_db): set
12195 in_modeline_generation.
12197 * extents.c (extent_changed_for_redisplay): don't mark redisplay
12198 flags if in modeline generation. otherwise frame-modified-tick
12199 is ticked far too often.
12200 Declare in_modeline_generation.
12202 2000-04-26 Ben Wing <ben@xemacs.org>
12204 * emacs.c (vars_of_emacs): document quick-build "error-checking"
12206 (vars_of_emacs): add quick-build as an error-checking option.
12207 A bit kludgy, but there doesn't seem much point in creating
12208 a real var for this.
12210 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12212 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
12214 * redisplay.h (struct display_line): Add a new variable,
12217 * redisplay.c (create_text_block): Set dl->line_continuation if
12218 the line continues.
12219 (create_string_text_block): Ditto.
12220 (regenerate_window_incrementally): Use line_continuation instead
12221 of searching continuation glyph.
12222 (add_margin_runes): Call add_glyph_rune.
12223 (add_glyph_rune): Handle margin glyph.
12225 2000-04-20 Martin Buchholz <martin@xemacs.org>
12227 * filelock.c (fill_in_lock_file_name):
12229 Check for IS_ANY_SEP instead of '/'.
12231 Avoid generating gratuitous garbage. Call user_login_name() directly.
12232 Never check errno without first seeing that system call failed.
12233 (unlock_file): Add GCPRO.
12234 (Flock_buffer): Fix docstring.
12235 (Ffile_locked_p): Fix docstring. Add GCPRO.
12237 2000-04-19 Martin Buchholz <martin@xemacs.org>
12239 * sysdep.c (get_pty_max_bytes):
12240 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12241 strings longer than 252 bytes.
12243 * md5.c: Unconditionally include ANSI header <limits.h>
12245 * glyphs-x.c (convert_EImage_to_XImage):
12246 * lisp-union.h (union Lisp_Object):
12247 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12249 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
12251 * filelock.c (current_lock_owner): Remove unused variable o, p.
12253 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
12255 * callint.c: Remove multiply defined symbol Qlet
12256 (syms_of_callint): ditto.
12258 2000-04-14 Andy Piper <andy@xemacs.org>
12260 * general.c (syms_of_general): add last-command, this-command, let
12263 * lisp.h: declare various symbols.
12265 * glyphs.h: declare Qwidget_callback_current_channel;
12267 * glyphs-widget.c (syms_of_glyphs_widget): add
12268 Qgui_callback_current_channel.
12269 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12271 * gui-msw.c (mswindows_handle_gui_wm_command): bind
12272 widget-callback-current-channel when invoking the interactive
12273 arg. Also bind last-command and next-command when invoking the
12275 * gui-x.c (popup_selection_callback): ditto.
12277 * gui.c (get_gui_callback): massage args so that we are always
12278 calling eval. This allows us to add our own variable bindings
12281 * glyphs-x.c (x_button_instantiate): use
12282 gui_items_to_widget_values since this is GC safe.
12283 (x_progress_gauge_instantiate): ditto.
12284 (x_edit_field_instantiate): ditto.
12285 (x_label_instantiate): ditto.
12287 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12288 (emacs_Xt_event_widget_focus_out): new function
12289 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12291 (emacs_Xt_event_add_widget_actions): new function. add focus
12292 functions as actions.
12293 (init_event_Xt_late): use it.
12295 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
12297 * event-stream.c (Fdispatch_event): Doc fix.
12299 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
12301 * postgresql.c: Remove all references to PQsetenv*.
12303 * postgresql.h: Remove references to PGsetenvHandler object.
12304 * lrecord.h (lrecord_type): Ditto.
12306 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12308 * glyphs-msw.h (struct mswindows_image_instance_data): Added
12309 real_heigh and real_width members, and accessor macros for these.
12311 * glyphs-msw.c (init_image_instance_geometry): New function.
12312 (init_image_instance_from_dibitmap): Use it.
12313 (mswindows_resource_instantiate): Use it.
12314 (init_image_instance_from_xbm_inline): Use it.
12315 (mswindows_initialize_image_instance_mask): Use real bitmap
12317 (mswindows_create_resized_bitmap): Ditto.
12318 (mswindows_create_resized_mask): Ditto.
12320 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12321 and bitmap to their surface size.
12323 2000-04-11 Jan Vroonhof <jan@xemacs.org>
12325 * process-unix.c (unix_send_process): Guard against process MIA
12326 after Faccept_process_output.
12328 2000-04-11 Ben Wing <ben@xemacs.org>
12330 * eval.c (unbind_to_hairy): fix brokenness introduced by
12331 nanosecond speed improvements.
12333 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
12335 * sunplay.c (init_device): To play sounds correctly, the device
12336 apparently needs to be initialized at least once by XEmacs. Make
12339 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
12341 * redisplay.c (add_margin_runes): Add text image glyph
12344 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
12346 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12347 gcc is newer than 2.5.
12349 2000-04-06 Colin Rafferty <colin@xemacs.org>
12351 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12353 * fns.c (size_bit_vector):
12354 * alloc.c (size_vector):
12355 (make_vector_internal):
12356 (make_bit_vector_internal):
12357 (sweep_bit_vectors_1):
12358 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12360 2000-04-06 Andy Piper <andy@xemacs.org>
12362 * gmalloc.c (malloc): undo previous change.
12367 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
12369 * line-number.c (buffer_line_number): Revert to former version.
12371 2000-04-06 Andy Piper <andy@xemacs.org>
12373 * gmalloc.c (malloc): add error checking.
12378 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12379 button_item_to_widget_value arg.
12381 * glyphs-x.c (x_button_instantiate): add extra
12382 button_item_to_widget_value arg.
12383 (x_progress_gauge_instantiate): ditto.
12384 (x_edit_field_instantiate): ditto.
12385 (x_label_instantiate): ditto.
12387 * gui-x.c (gui_items_to_widget_values_1): add extra
12388 button_item_to_widget_value arg.
12389 (button_item_to_widget_value): add extra menu_item_p arg.
12391 * gui-x.h: change signature of button_item_to_widget_value.
12393 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12394 button_item_to_widget_value arg.
12396 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
12398 * buffer.h (struct buffer): auto_save_modified should be long.
12400 2000-04-05 Andy Piper <andy@xemacs.org>
12402 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12404 (button_query_geometry): give a little more room so that athena
12407 2000-04-05 Andy Piper <andy@xemacs.org>
12409 * faces.c (complex_vars_of_faces): The widget face should inherit
12410 the font of the gui-element face.
12412 2000-04-04 Andy Piper <andy@xemacs.org>
12414 * glyphs-x.c (x_button_update): new function. unconditionally
12415 update a button's state when the instance is dirty.
12416 (image_instantiator_format_create_glyphs_x): add x_button_update.
12417 (x_widget_instantiate): remove old resize cruft.
12419 2000-04-02 Andy Piper <andy@xemacs.org>
12421 * frame.c (change_frame_size_1): The introduction of gutters means
12422 that we need to allow 0 as a potential frame dimension.
12424 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
12426 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12427 image glyph if allow_cursor.
12428 (add_hscroll_rune): Don't allow cursor to border glyph.
12429 (create_text_block): Ditto.
12431 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12432 text not in buffer.
12433 (redisplay_output_layout): Call ensure_face_cachel_complete for
12437 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
12439 * redisplay.c (add_glyph_rune): Adding text image as text runes.
12441 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12444 * redisplay-tty.c (tty_output_display_block): Delete the routine
12445 for text image glyph
12446 * redisplay-x.c (x_output_display_block): ditto
12447 * redisplay-msw.c (mswindows_output_display_block): ditto
12449 2000-02-02 Mike Alexander <mta@arbortext.com>
12451 Note: Some of these were committed by accident as part of other
12454 * regex.c (regex_compile): Avoid compiler warnings.
12456 * ntproc.c (sys_spawnve): Avoid compiler warnings.
12458 * nt.h: Declare term_ntproc correctly.
12460 * nt.c: Remove incorrect declaration of get_home_directory which
12461 is declared correctly in lisp.h.
12463 * keymap.c (get_keyelt): Avoid compiler warnings.
12464 (raw_lookup_key_mapper): Avoid compiler warnings.
12466 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12468 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12470 * filemode.c (mode_string): Avoid compiler warnings.
12472 * file-coding.c (Fcoding_system_aliasee): Add return statement to
12475 * events-mod.h: Undef some things that winuser.h defines differently.
12477 * data.c (Faset): Avoid compiler warnings.
12479 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12481 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
12483 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12484 Fall through to simple beep on error.
12485 Replace "extern" by real header file.
12487 * linuxplay.c: Use nativesound.h
12488 (play_sound_data): Return error code. Be less verbose on error.
12490 * sunplay.c: Use nativesound.h
12491 (play_sound_data): Return error code. Be less verbose on error.
12493 * ntplay.c: Use nativesound.h
12494 (play_sound_data): Return fake error code
12496 * sgiplay.c: Use nativesound.h
12497 (play_sound_data): Return error code
12499 * hpplay.c: Use nativesound.h, partially implement
12500 new error code. Break compilation until finished.
12501 (play_sound_data): error code.
12503 * nativesound.h (play_sound_file):
12504 (play_sound_data): Prototype in new header.
12506 2000-03-31 Andy Piper <andy@xemacs.org>
12508 * glyphs-widget.c: (button_query_geometry): new function. Adjust
12509 for toggle and radio buttons.
12510 (image_instantiator_buttons): use it.
12512 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
12514 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12515 (x_update_horizontal_scrollbar_callback): Return if no mirror was
12516 found. Scrollbar event probably belonged to some old config.
12518 2000-03-31 Andy Piper <andy@xemacs.org>
12520 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12522 (initialize_widget_image_instance): default layout to
12523 LAYOUT_HORIZONTAL rather than 0.
12524 (widget_instantiate): reverse the item list at the end rather than
12526 (layout_layout): re-code for the border text at the front of the
12527 item list rather than at the end.
12528 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12529 provided by the user.
12530 (widget_query_geometry): comment.
12532 2000-03-30 Andy Piper <andy@xemacs.org>
12534 * glyphs-widget.c (image_instantiator_layout): allow standard
12535 widget keywords in layouts.
12537 * gutter.c (output_gutter): cope with nil gutter contents.
12539 * frame.c (Fset_frame_properties): add gutter docs.
12541 2000-03-29 Andy Piper <andy@xemacs.org>
12543 * toolbar-msw.c (TBSTYLE_FLAT): add.
12544 (mswindows_output_toolbar): minor fiddling.
12546 2000-03-29 Andy Piper <andy@xemacs.org>
12548 * gutter.c (output_gutter): force gutter size recalculation if
12549 what we are trying to display won't fit.
12550 (update_gutter_geometry): new function. A per-gutter version of
12551 update_frame_gutter_geometry.
12552 (update_frame_gutter_geometry): use it.
12553 (redraw_exposed_gutter): add extra debugging output.
12555 2000-03-28 Mike Alexander <mta@arbortext.com>
12557 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12558 (pdump_file_unmap): Implement it on Windows
12559 (pdump_file_get): Save alocated handles for pdump_file_unmap
12561 2000-03-28 Andy Piper <andy@xemacs.org>
12563 * gui.c (get_gui_callback): treat Quit specially.
12565 2000-03-27 Andy Piper <andy@xemacs.org>
12567 * glyphs.c (image_instantiate): be careful to check in the same
12570 2000-03-27 Didier Verna <didier@xemacs.org>
12572 * config.h.in: define the proper SMART_INCLUDE macro.
12573 handle renaming of `foo_h_path' to `foo_h_file'.
12575 * database.c: ditto.
12579 * linuxplay.c: ditto.
12581 * terminfo.c: ditto.
12583 * tooltalk.h: ditto.
12585 2000-03-27 Andy Piper <andy@xemacs.org>
12587 * glyphs-msw.c (mswindows_update_widget): make sure the widget
12588 gets updated whenever the face might have changed.
12590 2000-03-26 Mike Alexander <mta@arbortext.com>
12592 * dumper.c (pdump_resource_free): Fix the comment.
12594 2000-03-21 Olivier Galibert <galibert@pobox.com>
12596 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12598 2000-03-22 Mike Alexander <mta@arbortext.com>
12600 * dumper.c: Include Windows headers on Windows
12601 (pdump_resource_free): Add a body to the function
12602 (pdump_load): exe_name -> exe_path and add some comments.
12604 2000-03-25 Mike Alexander <mta@arbortext.com>
12606 * gui.c (copy_gui_item_tree): Return a value in all cases
12608 2000-03-21 Didier Verna <didier@xemacs.org>
12610 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12612 (SMART_INCLUDE): new macro.
12613 (POSTGRES_INCLUDE): new macro to include postgresql headers from
12614 the proper location.
12616 * postgresql.c: use it.
12620 2000-03-24 Andy Piper <andy@xemacs.org>
12622 * gutter.c (redraw_exposed_gutters): must be "in display" when we
12625 2000-03-24 Andy Piper <andy@xemacs.org>
12627 * redisplay-output.c (compare_runes): use image_instance_changed
12628 to detect changes. Do not depend on glyphs_changed, only depend on
12630 (redisplay_output_layout): add debug messages.
12631 (compare_runes): ditto.
12633 * glyphs.h: declare new functions.
12634 (struct Lisp_Image_Instance): remove percent and associated
12637 * gui.h: declare new copying functions.
12639 * gui.c (copy_gui_item_tree): new function.
12640 (copy_gui_item): new function.
12641 (gui_item_id_hash): revert to standard hash.
12642 (gui_item_hash): ditto.
12643 (gui_item_hash_internal): deleted.
12644 (mark_gui_item): mark value.
12645 (gui_item_add_keyval_pair): add value.
12646 (gui_item_init): ditto.
12647 (gui_add_item_keywords_to_plist): ditto.
12648 (gui_item_equal): ditto.
12649 (syms_of_gui): add Q_value.
12651 * glyphs-x.c (x_progress_gauge_update): use pending items and
12652 value for setting the state.
12653 (x_update_widget): don't set items from pending here.
12655 * glyphs-widget.c (update_widget): update items here.
12656 (progress_gauge_set_property): use items for storing value. Put
12657 new value in pending items.
12659 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12660 items for new value. Convert percent -> value.
12661 (mswindows_tab_control_update): don't update items here.
12663 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12664 (update_subwindow): ditto.
12665 (image_instance_changed): new function. Compare hash values and
12666 past and present widget items.
12667 (image_instantiate): We more careful about where we instantiate
12669 (image_instantiate): add error checking.
12671 * gutter.c (syms_of_gutter): use -hook.
12673 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
12675 * console-tty.c (Fset_console_tty_input_coding_system): Use
12677 (Fset_console_tty_output_coding_system): Use Qterminal.
12678 (tty_init_console): Use Qkeyboard and Qterminal.
12680 2000-03-21 Ben Wing <ben@xemacs.org>
12682 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12683 From Mike Alexander <mta@arbortext.com>.
12685 2000-03-21 Ben Wing <ben@xemacs.org>
12687 * event-msw.c (mswindows_need_event): Horrible kludge to fix
12688 process brokenness. Proper implementation to come.
12690 Rename call-process-internal to old-call-process-internal.
12691 New impl. in process.el.
12693 2000-03-21 Martin Buchholz <martin@xemacs.org>
12695 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12697 2000-03-20 Andy Piper <andy@xemacs.org>
12699 * glyphs.c (full_list_hash): make hashes of the same elements in
12700 different orders return different values.
12702 2000-03-20 Martin Buchholz <martin@xemacs.org>
12704 * XEmacs 21.2.32 is released.
12706 2000-03-20 Martin Buchholz <martin@xemacs.org>
12708 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12709 (DFC_MALLOC_USE_CONVERTED_DATA):
12710 Add aliasing-safe casts to allow use with char* or unsigned char*
12713 * eldap.c (Fldap_open):
12714 (Fldap_search_basic):
12717 Make C++-compilable.
12718 Make sure GCPRO'ed variables are initialized.
12719 Use temp variables to avoid repeated calls to Flength.
12721 2000-03-16 Martin Buchholz <martin@xemacs.org>
12724 Make sure PATH_MAX is always defined.
12725 Include limits.h for PATH_MAX.
12726 Deprecate use of MAXPATHLEN.
12728 2000-03-10 Martin Buchholz <martin@xemacs.org>
12730 * emacs.c: Add reinit_vars_of_fileio.
12731 * symsinit.h: Add reinit_vars_of_fileio.
12732 * fileio.c (reinit_vars_of_fileio): New.
12733 * fileio.c (Fmake_temp_name):
12734 Initialize temp_name random number from microseconds to make
12735 collisions even less likely. Initialize always at process startup
12736 time. (make-temp-name) used to return the same file name twice in
12738 Random stylistic fiddling.
12741 2000-03-20 Andy Piper <andy@xemacs.org>
12743 * glyphs.c (image_instantiate): allow text glyphs to be
12744 instantiated in the minibuffer window.
12746 2000-03-19 Andy Piper <andy@xemacs.org>
12748 * glyphs.c (image_instance_hash): be careful about which items we
12751 * glyphs-widget.c (tab_control_set_property): record into pending
12752 items rather than the actual items.
12754 * glyphs-x.c (x_update_widget): use pending items to update with.
12756 * glyphs-msw.c (mswindows_tab_control_update): use pending items
12759 * glyphs.c (mark_image_instance): mark pending items.
12761 * window.c (Fset_window_configuration): record the buffer.
12762 (Fselect_window): totally revert previous change which breaks many
12765 2000-03-18 Andy Piper <andy@xemacs.org>
12767 * glyphs-msw.c (mswindows_tab_control_update): force selected
12770 * glyphs.c (image_instantiate): don't allow the minibuffer as a
12771 window domain cache, otherwise we get inconsistencies at
12772 startup. There is something fishy at startup which can lead to the
12773 minibuffer being the selected window when the gutter content is
12776 * gui.c (parse_gui_item_tree_list): add probably unnecessary
12778 (parse_gui_item_tree_children): ditto.
12779 (parse_gui_item_tree_item): ditto.
12781 * glyphs.c (Fupdate_widget_instances): return something.
12783 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
12785 * window.c (Fselect_window): Undo 2000-03-17 change.
12787 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
12789 * postgresql.c (Fpq_setenv): Remove this turkey when linking
12790 against v7.0 libraries. Insta-coredump city until the postgres
12793 2000-03-17 Andy Piper <andy@xemacs.org>
12795 * faces.c (complex_vars_of_faces): don't give the widget face an
12796 inherited background pixmap.
12798 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12801 * event-stream.c (Fdispatch_non_command_events): return something.
12803 * gutter.c (output_gutter): use widget face.
12804 (clear_gutter): ditto.
12806 * NEWS: adjust again.
12808 * window.c (Fselect_window): make sure this runs to completion to
12809 avoid oddities with Fset_window_configuration.
12810 (Fcurrent_window_configuration): in general do not save the
12811 minibuffer as the selected window.
12813 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12815 2000-03-16 Olivier Galibert <galibert@pobox.com>
12817 * emacs.c (Frunning_temacs_p): Revert previous patch.
12818 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12820 2000-03-16 Andy Piper <andy@xemacs.org>
12822 * glyphs-x.c (x_tab_control_update): if no widget values then
12825 * NEWS: update for new features.
12827 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12828 synthetic event to the native system.
12829 (reinit_vars_of_event_Xt): set force_event_pending to
12830 emacs_Xt_force_event_pending.
12832 * events.h (struct event_stream): add force_event_pending.
12834 * specifier.c (recompute_one_cached_specifier_in_window): add
12837 * redisplay.c (redisplay_frame): don't call
12838 update_frame_subwindows. Reset subwindow cachels when
12839 subwindows_changed, removing this was an optimization too far.
12841 * redisplay-output.c (compare_runes): reorganize so that we catch
12842 glyph changes when we want them. Set optimize_output when this
12843 would help layouts.
12844 (redisplay_output_layout): remove frame_really_changed, use
12845 optimize_output instead.
12847 * redisplay-msw.c (mswindows_output_display_block): reset
12848 optimize_output after outputting a glyph.
12849 * redisplay-x.c (x_output_display_block): ditto.
12850 * redisplay-tty.c (tty_output_display_block): ditto.
12852 * gutter.c: (specifier_vars_of_gutter): use new spec changed
12854 (gutter_specs_changed): do specific gutter positions.
12855 (top_gutter_specs_changed): new function. Only update the
12856 specified gutter specs.
12857 (bottom_gutter_specs_changed): ditto.
12858 (left_gutter_specs_changed): ditto.
12859 (right_gutter_specs_changed): ditto.
12861 * gui.c (gui_item_hash_internal): new function, does a real hash.
12862 (gui_item_id_hash): use it.
12863 (gui_item_hash): hash the eval'ed gui_item.
12865 * gui-x.c (popup_selection_callback): send an eval event to call
12866 Fupdate_widget_instances.
12868 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12869 to call Fupdate_widget_instances.
12871 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12872 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12874 * glyphs.c: (update_frame_subwindows): deleted.
12875 (Fupdate_widget_instances): new function for updating the dirty
12876 state of widgets that might have changed.
12877 (syms_of_glyphs): add Qupdate_widget_instances.
12878 (full_list_hash): hash a list completely.
12879 (image_instance_hash): use it for items and properties.
12881 * frame-msw.c (mswindows_size_frame_internal): remove unused
12884 * faces.h (struct face_cachel): fix comment.
12886 * event-stream.c (Fdispatch_non_command_events): new
12887 function. Process non-command events, forcing an event cycle
12889 (syms_of_event_stream): declare.
12890 (event_stream_force_event_pending): new function. Force an event
12891 on the native event queue so that an event cycle will occur next
12895 (struct ntpipe_shove_stream):
12896 (mswindows_enqueue_dispatch_event):
12897 (mswindows_dequeue_dispatch_event):
12898 (mswindows_cancel_dispatch_event):
12899 (mswindows_pump_outstanding_events):
12900 (mswindows_drain_windows_queue):
12901 (mswindows_handle_paint):
12902 (mswindows_wnd_proc):
12903 (mswindows_key_to_emacs_keysym):
12904 (get_process_input_waitable):
12905 (emacs_mswindows_delete_stream_pair): re-indent file.
12906 (mswindows_need_event): do not process further fds if the windows
12907 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12908 fixes the 100% cpu problem.
12909 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12911 2000-03-15 Olivier Galibert <galibert@pobox.com>
12917 * emacs.c: Moved dump file searching to dumper.c.
12918 (Frunning_temacs_p): Fixed.
12920 * alloc.c: Moved everything pdump-related to dumper.c. Removed
12921 last_lrecord_type_index_assigned.
12923 2000-02-20 Olivier Galibert <galibert@pobox.com>
12925 * symsinit.h: Added reinit parameter to init_console_stream
12928 * lisp.h: Added file parameter to pdump_load declaration.
12930 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12931 support. Added dump file searching.
12933 * config.h.in: Added EMACS_PROGNAME.
12935 * console-stream.c (init_console_stream): Fix reinitialisation
12936 when running from temacs.
12938 * alloc.c (pdump): Add id support.
12939 (pdump_load): Add file parameter and signature/id support.
12941 * Makefile.in.in: Add full pdump support.
12943 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
12945 * postgresql.c: Update documentation to reflect latest code
12947 (print_result): Show tuple counts in printed representation when
12949 (Fpq_put_nbytes): MULE-ize.
12950 (Fpq_get_line_async): Ditto.
12952 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
12954 * postgresql.c (Fpq_lo_import): Fix return value.
12955 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12957 2000-03-13 Ben Wing <ben@xemacs.org>
12959 * alloc.c (pdump_load):
12960 Fix compile warning under mswin.
12962 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
12964 * postgresql.c: Mule-ization, bug fixes.
12965 Use PG_CODING to encapsulate coding system name changes.
12966 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12967 (pg-coding-system): Create.
12969 (Fpq_conn_defaults): Mule-ize.
12970 (Fpq_connectdb): Mule-ize & bug fix.
12971 (Fpq_connect_start): Mule-ize.
12972 (Fpq_set_client_encoding): Mule-ize.
12973 (Fpq_finish): Document `DEAD' connection status.
12974 (Fpq_clear): Ditto.
12975 (Fpq_pgconn): Mule-ize.
12976 (Fpq_exec): Mule-ize & bug fix.
12977 (Fpq_send_query): Ditto.
12978 (Fpq_get_result): Ditto.
12979 (Fpq_res_status): Mule-ize.
12980 (Fpq_result_error_message): Mule-ize.
12981 (Fpq_ntuples): fix comments.
12982 (Fpq_fname): Mule-ize.
12983 (Fpq_fnumber): Mule-ize.
12984 (Fpq_ftype): fix comments.
12985 (Fpq_get_value): Mule-ize.
12986 (Fpq_cmd_status): Ditto.
12987 (Fpq_cmd_tuples): Ditto.
12988 (Fpq_oid_value): Ditto.
12989 (Fpq_notifies): Ditto.
12990 (Fpq_lo_import): Ditto.
12991 (Fpq_lo_export): Ditto.
12992 (Fpq_get_line): Ditto.
12993 (Fpq_put_line): Mule-ize and bug fix.
12994 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
12996 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
12998 * postgresql.c (vars_of_postgresql): Mule-ize.
12999 (Fpq_conn_defaults): Ditto.
13001 2000-03-12 Ben Wing <ben@xemacs.org>
13003 * alloc.c (Fmake_byte_code):
13004 * alloc.c (debug_string_purity_print):
13005 * alloc.c (pdump_backtrace):
13006 * alloc.c (pdump_get_indirect_count):
13007 * alloc.c (pdump_register_sub):
13008 * alloc.c (pdump_register_object):
13009 * alloc.c (pdump_register_struct):
13010 * alloc.c (pdump_dump_data):
13011 * alloc.c (pdump_reloc_one):
13015 * console-msw.c (GetConsoleHwnd):
13016 * console-msw.c (msw_hide_console):
13017 * console-msw.c (msw_show_console):
13018 * console-msw.c (msw_ensure_console_buffered):
13019 * console-msw.c (msw_output_console_string):
13020 * console-msw.c (console_type_create_mswindows):
13022 a) Added functions to manipulate the console window for use with
13025 b) Added support for writing text to the console, which is now
13026 used under Windows when xemacs is not being run non-interactively,
13027 to write text that would otherwise be destined for stdout because
13028 under these circumstances, text written to stdout tends to
13029 disappear and not be seen.
13033 * event-Xt.c (x_event_to_emacs_event):
13034 * event-Xt.c (describe_event_window):
13035 * events-mod.h (XEMACS_MOD_CONTROL):
13037 * events.c (Fmake_event):
13038 * events.c (character_to_event):
13039 * events.c (event_to_character):
13040 * events.c (format_event_object):
13041 * events.c (Fevent_modifiers):
13043 * events.h (struct key_data):
13044 * events.h (struct button_data):
13045 * events.h (struct misc_user_data):
13046 * frame-x.c (Fcde_start_drag_internal):
13047 * frame-x.c (Foffix_start_drag_internal):
13048 * gpmevent.c (Freceive_gpm_event):
13050 * keymap.c (bucky_sym_to_bucky_bit):
13051 * keymap.c (control_meta_superify):
13052 * keymap.c (make_key_description):
13053 * keymap.c (keymap_lookup_directly):
13054 * keymap.c (create_bucky_submap):
13055 * keymap.c (keymap_store):
13056 * keymap.c (define_key_check_and_coerce_keysym):
13057 * keymap.c (define_key_parser):
13058 * keymap.c (define_key_alternate_name):
13059 * keymap.c (Fdefine_key):
13060 * keymap.c (raw_lookup_key_mapper):
13061 * keymap.c (struct map_keymap_unsorted_closure):
13062 * keymap.c (map_keymap_unsorted_mapper):
13063 * keymap.c (map_keymap_sort_predicate):
13064 * keymap.c (map_keymap_sorted):
13065 * keymap.c (accessible_keymaps_mapper_1):
13066 * keymap.c (where_is_recursive_mapper):
13067 * keymap.c (describe_map_mapper):
13068 * keymap.c (describe_map_sort_predicate):
13069 * keymap.c (describe_map):
13070 * keymap.c (complex_vars_of_keymap):
13071 And a number of other files, the key modifier preprocessor
13072 constants that xemacs uses have names that conflict with constants
13073 defined under MS Windows for other purposes, so they were renamed
13074 to begin with the prefix XEMACS_. The variables that hold such
13075 modifiers were changed to consistently be of type int to fix
13076 various compile warnings.
13078 * console.c (complex_vars_of_console):
13081 * device-msw.c (mswindows_finish_init_device):
13082 * device-msw.c (msw_get_workspace_coords):
13083 * device-msw.c (mswindows_device_system_metrics):
13084 and various other files, added support for a new
13085 device property called offset-workspace which returns the position
13086 of the upper left corner of the workspace area and goes along with
13087 the existing size-workspace property.
13090 * dialog-msw.c (push_bufbyte_string_as_unicode):
13091 * dialog-msw.c (mswindows_popup_dialog_box):
13092 Added support for XEmacs-style accelerator specifications in
13093 button text. Note: I didn't add support for this under X Windows,
13094 and somebody needs to do this.
13097 * dialog.c (Fpopup_dialog_box):
13098 Documented the support for accelerators that was just mentioned.
13100 editfns.c (get_home_directory): Changed behavior under Windows
13101 when HOME not defined; former behavior was irretrievably broken.
13104 * emacs.c (main_1):
13106 * minibuf.c (clear_echo_area_internal):
13107 * minibuf.c (echo_area_append):
13109 * print.c (std_handle_out_external):
13110 * print.c (std_handle_out_va):
13112 * print.c (write_string_to_stdio_stream):
13113 * print.c (output_string):
13114 * print.c (debug_print):
13115 * print.c (debug_backtrace):
13116 * print.c (debug_short_backtrace):
13117 Cleaned up the code that prints text to stdout so that this can be
13118 changed to output into a console window instead under MS Windows,
13119 as described above.
13122 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13123 * eval.c (internal_catch):
13124 * eval.c (unwind_to_catch):
13125 * eval.c (throw_or_bomb_out):
13126 * eval.c (condition_case_1):
13127 * eval.c (signal_1):
13128 * eval.c (check_error_state_sanity):
13129 * eval.c (call_with_suspended_errors_1):
13130 * eval.c (call_with_suspended_errors):
13131 * eval.c (reinit_vars_of_eval):
13132 Added code to catch throw loops and check for a pesky bug that may
13136 * event-msw.c (key_needs_default_processing_p):
13137 * event-msw.c (mswindows_wnd_proc):
13138 * event-msw.c (mswindows_modifier_state):
13139 * event-msw.c (emacs_mswindows_quit_p):
13140 * event-msw.c (vars_of_event_mswindows):
13141 a) Added support for using the alt key to select menu items as is
13142 standard under MS Windows. This is controlled using the variable
13143 menu-accelerator-enabled, just like under X Windows. There is an
13144 option on the options menu to turn this support on. I really
13145 think that it should be on by default under Windows, but I'm not
13146 going to make this change yet.
13148 b) Added support for dynamic display size changes under Windows.
13151 * event-stream.c (maybe_echo_keys):
13152 * event-stream.c (Fnext_event):
13153 * event-stream.c (command_builder_find_leaf):
13154 * event-stream.c (lookup_command_event):
13155 * event-stream.c (execute_command_event):
13156 * event-stream.c (pre_command_hook):
13157 * event-stream.c (post_command_hook):
13158 * event-stream.c (syms_of_event_stream):
13159 * event-stream.c (vars_of_event_stream):
13160 * event-stream.c (complex_vars_of_event_stream):
13161 * events.h (struct command_builder):
13163 a) Tried to clean up a little bit the horribly written x-specific
13164 accelerator code that crept into this file. I moved this code
13165 into menubar-x.c where it belongs. I also needed to move the
13166 command builder structure into the file events.h because it is
13167 accessed directly by this accelerator code. What I didn't do, but
13168 which should be done at some point, is to properly abstract this
13169 code using device methods instead of the kludgy way that it
13170 currently hooks into the event code.
13172 b) Added the lisp variables this-command-properties and
13173 last-command- properties, which should be used to synchronize two
13174 adjacent commands in preference to playing games with the variable
13175 this-command, which is typically what happens.
13177 c) Added some slightly nasty code to hook into the lisp support
13178 for shifted- motion-key selection. This is actually necessary for
13179 somewhat complicated reasons, which are described in
13180 simple.el. (NB: I think the proper thing would be to have the code
13181 that calls the pre and post command hooks also call out to generic
13182 lisp functions in simple.el, where all built-in stuff could be
13183 added. I will think about this more.)
13185 * event-unixoid.c (poll_fds_for_input):
13186 * lread.c (readchar):
13187 * redisplay-tty.c (tty_clear_frame):
13188 * redisplay-x.c (x_get_gc):
13189 * signal.c (interrupt_signal):
13190 And a whole bunch of other files: fixed up places that printed
13191 directly to stderr to instead call the function stderr_out so that
13192 the changes I made under Windows work correctly.
13194 * filemode.c (mode_string):
13198 * frame-msw.c (mswindows_size_frame_internal):
13199 Fixed the computation of frame size and position to keep the frame
13200 within the workspace area, rather than within the physical
13201 dimensions of the screen, so that the frame doesn't overlap window
13202 manager decorations, such as the start menu and toolbar, typically
13203 at the bottom of the screen.
13205 * frame.c (vars_of_frame):
13206 Changed the default frame title format under MS Windows to consist
13207 of buffername-XEmacs, which is standard under MS Windows. I think
13208 it might be a good idea to change this everywhere because I think
13209 it is superior to the current frame title format, but this is the
13210 kind of change that is likely to cause some people to get annoyed,
13211 so I'm not making it.
13213 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13215 * gui-msw.c (mswindows_handle_gui_wm_command):
13216 Fixed compile warnings.
13219 * gui-x.c (strdup_and_add_accel):
13220 * gui-x.c (button_item_to_widget_value):
13222 Added code to automatically put an accelerator onto the beginning
13223 of menu items that don't have one as is now the standard, and is
13224 described more later. Also fixed things so that the menu item
13225 name can be an evaluated expression, again a new standard.
13228 * gui.c (gui_item_add_keyval_pair):
13229 * gui.c (make_gui_item_from_keywords_internal):
13230 * gui.c (gui_add_item_keywords_to_plist):
13231 * gui.c (gui_item_accelerator):
13232 * gui.c (gui_name_accelerator):
13233 * gui.c (gui_item_included_p):
13234 * gui.c (gui_item_display_flush_left):
13235 * gui.c (gui_item_display_flush_right):
13236 * gui.c (parse_gui_item_tree_item):
13237 * gui.c (parse_gui_item_tree_children):
13238 * gui.c (parse_gui_item_tree_list):
13239 Mule-ized. Cleanup. GCPRO addition.
13241 * line-number.c (buffer_line_number):
13243 * lisp.h (EMACS_INT_MAX):
13244 Added the manifest constant EMACS_INT_MIN corresponding to the
13245 existing constant EMACS_INT_MAX. This is partially to fix compile
13246 warnings under Windows, and partly for cleanliness.
13249 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13250 * menubar-msw.c (msw_translate_menu_or_dialog_item):
13251 * menubar-msw.c (displayable_menu_item):
13252 * menubar-msw.c (populate_menu_add_item):
13253 * menubar-msw.c (populate_or_checksum_helper):
13254 * menubar-msw.c (populate_menu):
13255 * menubar-msw.c (update_frame_menubar_maybe):
13256 * menubar-msw.c (prune_menubar):
13257 * menubar-msw.c (msw_char_is_accelerator):
13258 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13259 * menubar-msw.c (mswindows_handle_wm_command):
13260 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13261 * menubar-msw.c (mswindows_handle_wm_initmenu):
13262 * menubar-msw.c (mswindows_update_frame_menubars):
13263 * menubar-msw.c (mswindows_free_frame_menubars):
13264 * menubar-msw.c (mswindows_popup_menu):
13265 Fixed a bug in handling accelerators where an extra character
13266 would be displayed in the menu item. Also generalized the
13267 function displayable_menu_item because it is now used by the
13268 dialog box code as well. And finally, added code in the functions
13269 that create the menubar to extract a list of accelerators for the
13270 top level menubar, which is used in the event code to determine
13271 whether a particular alt-key combination should be used to invoke
13272 a menu item, or should be passed through to access the standard
13273 XEmacs keymap binding for this key combination.
13275 Much needed GCPROing.
13278 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13279 * menubar-x.c (menu_item_descriptor_to_widget_value):
13280 * menubar-x.c (restore_in_menu_callback):
13281 * menubar-x.c (x_popup_menu):
13282 * menubar-x.c (menu_move_up):
13283 * menubar-x.c (menu_move_down):
13284 * menubar-x.c (menu_move_left):
13285 * menubar-x.c (menu_move_right):
13286 * menubar-x.c (menu_select_item):
13287 * menubar-x.c (command_builder_operate_menu_accelerator):
13288 * menubar-x.c (menu_accelerator_junk_on_error):
13289 * menubar-x.c (command_builder_find_menu_accelerator):
13290 * menubar-x.c (Faccelerate_menu):
13292 Moved a whole bunch of code here that was previously in
13293 event-stream.c as described above. There is also code connected
13294 to the new standard of adding an accelerator to the beginning of
13295 menu items that don't have one as described above and below.
13298 * menubar.c (menu_parse_submenu_keywords):
13299 * menubar.c (Fmenu_find_real_submenu):
13300 * menubar.c (Fnormalize_menu_item_name):
13301 * menubar.c (syms_of_menubar):
13302 * menubar.c (vars_of_menubar):
13303 * menubar.c (complex_vars_of_menubar):
13305 a) Cleaned up a bunch of documentation and improved it.
13307 b) XEmacs now automatically adds an accelerator onto the beginning
13308 of any menu items that don't have one. I did this because there
13309 will inevitably be some menu items on the main menubar that don't
13310 have accelerators on them because the package that adds that
13311 particular menu item hasn't yet been fixed up to have accelerators
13312 in them and it looked rather strange to have some items with and
13313 some items without accelerators, especially since even in items
13314 without accelerators, you can, at least under windows, still
13315 access the item through an accelerator corresponding to the first
13316 character in the item's name. If people don't like this behavior,
13317 I can add a variable to turn it off optionally, but I'm not sure
13318 this is a good idea because we really do need to have accelerators
13319 on all of the menu items, and if a package doesn't like the
13320 accelerators being put on the first character, then it should put
13321 the accelerators where they belong.
13323 c) I made a behavior change, which is that the descriptor that
13324 specifies the text of the menu item, which formerly was just a
13325 string, can now also be an evaluated expression. This makes this
13326 descriptor parallel with all of the others, which could also be
13327 evaluated expressions. This also obviates the need for the
13328 keyword :label, which was previously listed in the documentation
13329 as unimplemented, and which was for the same purpose.
13334 * ntproc.c (new_child):
13335 * ntproc.c (sys_spawnve):
13336 * ntproc.c (find_child_console):
13337 * ntproc.c (sys_kill):
13338 Fixed compile warnings. By the way, this file should really go
13339 away entirely, and this will happen as soon as Kirill makes his
13340 final round of process cleanups, which affect the function
13344 * process-nt.c (struct nt_process_data):
13345 * process-nt.c (find_process_from_pid):
13346 * process-nt.c (send_signal_the_nt_way):
13347 * process-nt.c (enable_child_signals):
13348 * process-nt.c (find_child_console):
13349 * process-nt.c (send_signal_the_95_way):
13350 * process-nt.c (nt_finalize_process_data):
13351 * process-nt.c (ensure_console_window_exists):
13352 * process-nt.c (nt_create_process):
13353 * process-nt.c (nt_kill_child_process):
13354 * process-nt.c (nt_kill_process_by_pid):
13355 * process-nt.c (nt_open_network_stream):
13356 * process-nt.c (vars_of_process_nt):
13357 Copied over code from Emacs 20.5 to correctly send signals to sub-
13358 processes under Windows 95. Also added code to automatically
13359 create and hide console window when a sub-process is created under
13360 Windows 95, which obviates the need for the separate runemacs.exe
13361 executable, and finally implemented some variables that were
13362 implemented in Emacs 20.5, but previously not in XEmacs. These
13363 include mswindows- start-process-share-console and
13364 mswindows-start-process-inherit-error-mode. (Both of these only
13365 apply to Windows 95.)
13367 * regex.c (regex_compile): Fixed a compile warning.
13370 * select-msw.c (mswindows_own_selection):
13371 * select-msw.c (mswindows_get_foreign_selection):
13372 * select-msw.c (mswindows_disown_selection):
13373 * select-msw.c (console_type_create_select_mswindows):
13374 * select-msw.c (syms_of_select_mswindows):
13375 Cleaned up the file and implemented the device method
13376 selection_exists_p, which had accidentally been left out. Also
13377 removed four lisp functions that were remnants from before the
13378 time when the selection code was properly device abstracted.
13379 These functions are no longer needed because there are generic
13380 equivalents, and because they were added recently and don't exist
13381 in FSF Emacs, I don't think there's any problem with just deleting
13385 * sysdep.c (sys_subshell):
13386 Fixed a compile warning, although in this case there's probably
13387 something wrong with this code, and it ought to be looked into
13388 more thoroughly by somebody who understands it.
13391 * window.c (Fwindow_text_area_height):
13392 * window.c (Fwindow_width):
13393 * window.c (Fwindow_full_width):
13394 * window.c (Fwindow_pixel_width):
13395 * window.c (debug_print_window):
13396 * window.c (syms_of_window):
13397 Added functions window-text-area-height and window-full-width,
13398 which are functions for returning various width and height
13399 characteristics of a window. (One of these functions is necessary
13400 for making the file dialog box work correctly, and the other one
13401 was added for completeness.) Also added a table to the
13402 documentation for window-height which describes the entire scheme
13403 for accessing width and height characteristics of a window.
13405 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13407 * nt.c (fstat): Added a comment for another problem with
13408 non-encapsulated [f]stat(), reported by Adrian Aichner
13409 <aichner@ecf.teradyne.com>.
13411 2000-03-11 Andy Piper <andy@xemacs.org>
13413 * window.c (make_dummy_parent): initialize subwindow instance
13415 (Fset_window_configuration): zero extent_modiff.
13417 2000-03-10 Andy Piper <andy@xemacs.org>
13419 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13420 more changes can be triggered.
13421 (Fredisplay_frame): ditto.
13422 (Fredraw_device): ditto.
13423 (Fredisplay_device): ditto.
13424 (redisplay_frame): make non-static.
13425 (redisplay_frame): call update_frame_gutter_geometry outside of
13428 * gutter.h: declare update_frame_gutter_geometry.
13430 * redisplay.h: declare redisplay_frame.
13432 * gutter.c (update_frame_gutter_geometry): move geometry changes
13433 in update_frame_gutters here. Geometry changes can only occur
13434 outside of redisplay.
13435 (update_frame_gutters): remove geometry change code.
13436 (Fredisplay_gutter_area): make sure that we are in display when we
13437 update and that we have flushed any size changes.
13439 2000-03-11 Andy Piper <andy@xemacs.org>
13441 * alloc.c (pdump_dump_data): remove i & count shadows.
13443 2000-02-27 Mike Alexander <mta@arbortext.com>
13445 * sysdep.h: Declare pdump_read_file
13447 * sysdep.c (pdump_read_file): New function
13449 * alloc.c (pdump_load): Call pdump_read_file to get the portable
13452 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
13454 * lrecord.h: add `lrecord_type_pgsetenv'.
13456 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
13458 * symsinit.h: declare (vars|syms)_of* functions.
13459 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13461 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
13463 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13465 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13468 * emacs.c (main_1): Call postgres initialization code.
13470 * postgresql.h: New file. PostgreSQL RDBMS support.
13471 * postgresql.c: New file.
13473 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
13475 * redisplay-output.c (redisplay_output_display_block): Disable
13478 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13480 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13481 (Fcanna_henkan_next): Ditto.
13482 (Fcanna_bunsetu_henkou): Ditto.
13483 (Fcanna_henkan_kakutei): Ditto.
13484 (Fcanna_henkan_end): Ditto.
13485 (Fcanna_henkan_quit): Ditto.
13486 (Fcanna_henkan_next): Set retun value correctly.
13487 (c2mu): Use unsigned char instead of signed char.
13489 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13491 * emacs.c (main_1): Always call syms_of_gui.
13492 * inline.c: include gui.h
13494 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13496 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13497 converted to Lisp_Object.
13498 (Qtop_bottom): New variable.
13499 (syms_of_redisplay): Initialize it.
13500 * redisplay.h (Vvisible_bell): Ditto.
13501 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13502 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13503 only flash top and bottom.
13505 2000-03-08 Andy Piper <andy@xemacs.org>
13507 * buffer.c (Frename_buffer): record new buffer name the right way.
13509 2000-03-08 Andy Piper <andy@xemacs.org>
13511 * glyphs.c (update_subwindow): increase hash depth so that widget
13512 items get picked up properly.
13514 * redisplay-output.c (compare_runes): increase hash depth so that
13515 widget items get picked up properly.
13517 2000-03-08 Andy Piper <andy@xemacs.org>
13519 * gutter.c (output_gutter): add some debug.
13521 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13522 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13523 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13525 * redisplay-output.c (compare_runes): use display_hash to
13526 determine if glyphs really are not the same.
13528 * glyphs.c (update_subwindow): check display_hash to see if
13529 anything really needs to be updated. If not then do
13530 nothing. Record the display_hash after updating.
13531 (image_instance_equal): compare the image_instance face also.
13533 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
13535 * redisplay.h: Fix comment style.
13537 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
13539 * consle-msw.h (struct mswindows_frame):
13540 Added new member paint_pending to indicate whether a WM_PAINT
13541 magic event has been queued for this frame.
13543 * event-msw.c (mswindows_drain_windows_queue):
13544 Don't queue a WM_PAINT magic event if one is already queued.
13545 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13547 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13549 2000-03-07 Didier Verna <didier@xemacs.org>
13551 * dired.c: #include `regex.h' after `sysfile.h'.
13553 2000-03-06 Martin Buchholz <martin@xemacs.org>
13555 * sound.c (init_nas_sound): Fix compiler warning.
13557 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13559 (MARK_STRUCT_AS_FREE):
13560 (MARK_STRUCT_AS_NOT_FREE):
13561 Make `gcc -fstrict-aliasing' work properly.
13563 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
13565 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13566 (mswindows_delete_device): Call CoUnnitialize().
13568 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13570 2000-02-25 <CraigL@DyCon.com>
13572 * process-nt.c: MinGW now has <shellapi.h>, but still needs
13575 * sysdep.c: This extern declaration for environ prevents MinGW
13576 from finding the variable in CRTDLL.DLL.
13578 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13580 (SHGFI_EXETYPE): ..
13581 (WM_MOUSEWHEEL): ..
13582 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13584 (MMRESULT): Removed, now defined in cygwin's windows headers.
13586 (uid_t,gid_t,pid_t,ssize_t): ..
13587 (_timeb): Removed, MinGW defines both _timeb and timeb.
13588 (HAVE_H_ERRNO): Added.
13589 (HAVE_TZNAME): Added, configure is not detecting this.
13591 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
13593 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13594 * syntax.c (syntax_match): Use it.
13596 * cmds.c: Import auto-fill-chars from FSF Emacs.
13597 (Vauto_fill_chars): New variables.
13598 (internal_self_insert): Check Vauto_fill_chars.
13600 Declare auto-fill-chars as a Lisp variable and initialize it.
13602 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
13604 * fileio.c (Fmake_symbolic_link):
13606 Run handlers even if local machine doesn't have symlinks.
13608 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
13610 * event-msw.c (mswindows_drain_windows_queue):
13611 Don't generate paint magic events for non-XEmacs frames.
13613 2000-03-05 Andy Piper <andy@xemacs.org>
13615 * redisplay.c (redisplay_frame): generate_displayable_area and
13616 friends assumes that we are not in GC, we therefore have to make
13617 sure that this doesn't happen.
13619 * gutter.c (calculate_gutter_size): generate_displayable_area
13620 assumes that we are not in GC, we therefore have to make sure that
13621 this doesn't happen.
13623 2000-03-05 Martin Buchholz <martin@xemacs.org>
13625 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13627 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
13629 * redisplay.c (regenerate_window): Make sure we set a sane value
13630 for end_pos even if we jump out of the loop.
13631 (regenerate_window): Answer Ben's question :-).
13632 (start_end_of_last_line): Add may_error argument.
13633 (start_of_last_line):
13634 (end_of_last_line): Pass may_error = 0.
13635 (end_of_last_line_may_error): New function.
13636 (pixel_to_glyph_translation): Use it, so we don't crash in
13639 2000-03-04 Andy Piper <andy@xemacs.org>
13641 * window.h (struct window): add gutter_extent_modiff.
13643 * window.c (allocate_window): zero out gutter_extent_modiff.
13645 * redisplay.h: declare sync_display_line_structs.
13647 * redisplay.c (add_glyph_rune): add a better comment.
13649 * redisplay-output.c (sync_display_line_structs): made non-static.
13650 (compare_runes): remove unneccesary glyph cachel access.
13652 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13654 * gutter.c (output_gutter): don't output the gutter if extent
13655 changes only involve extents in buffers. use 4 sets of display
13657 (gutter_extent_signal_changed_region_maybe): new function. Mark
13658 extents in gutters as changed.
13659 (update_frame_gutters): use 4 sets of display lines.
13660 (reset_gutter_display_lines): ditto.
13661 (free_frame_gutters): ditto.
13662 (redraw_exposed_gutter): force output of gutters.
13664 * frame.h (struct frame): add 4 sets of gutter display lines.
13666 * extents.c: (extent_changed_for_redisplay): signal changes to
13667 extents in strings in the gutter as well as extents in buffers.
13669 2000-03-02 Andy Piper <andy@xemacs.org>
13671 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13673 * frame.c (Fmake_frame): make sure the gutters get initialized
13674 after the frame is visible.
13675 (set_frame_selected_window): re-arrange compilation macros a
13677 (change_frame_size_1): mark gutters changed.
13679 * device.c (Fset_device_class): mark gutters changed.
13681 2000-03-01 Andy Piper <andy@xemacs.org>
13683 * window.c (window_top_frame_gutter_height): deleted.
13684 (window_bottom_frame_gutter_height): ditto.
13685 (window_left_frame_gutter_height): ditto.
13686 (window_right_frame_gutter_height): ditto.
13687 (window_top_gutter_height): don't use them.
13688 (window_bottom_gutter_height): ditto.
13689 (window_left_gutter_width): ditto.
13690 (window_right_gutter_width): ditto.
13691 (Fsplit_window): ditto.
13692 (Fwindow_pixel_edges): don't use border dimensions here.
13694 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13695 (update_scrollbar_instance): ditto.
13697 * redisplay.c (generate_modeline): don't take gutters into account.
13698 (generate_modeline): ditto.
13699 (redisplay_frame): small gutter display optimization.
13701 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13703 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13704 gutters into account.
13706 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13707 for window position and type.
13709 * gutter.c (get_gutter_coords): fix for frame gutters.
13710 (update_frame_gutters): update frame geometry if the gutters have
13712 (init_frame_gutters): record current gutter geometries.
13714 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13716 (mswindows_widget_instantiate): ditto.
13718 * frame.h (struct frame): add current_gutter_bounds.
13720 * frame.c (change_frame_size_1): position window and minibuffer
13721 appropriately taking into account the frame gutters.
13723 * frame-x.c: (x_initialize_frame_size): take into account the
13726 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
13728 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
13730 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
13732 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13734 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13736 * file-coding.c (reset_decoding_stream): Clear previous
13737 detection state when autodetect.
13739 2000-02-29 Didier Verna <didier@xemacs.org>
13741 * extents.c (set_extent_glyph_1): don't require extents to be
13744 2000-02-27 Andy Piper <andy@xemacs.org>
13746 * gutter.c (Fset_default_gutter_position): don't default left and
13747 right gutter visibility to t.
13748 (Fset_default_gutter_position): run
13749 default-gutter-position-changed-hook.
13750 (syms_of_gutter): add default-gutter-position-changed-hook.
13752 2000-02-26 Andy Piper <andy@xemacs.org>
13754 * specifier.c (Fmake_specifier): add gutter references.
13756 * gutter.h (RAW_WINDOW_GUTTER): new macro.
13758 * lisp.h: declare Fvalid_plist_p.
13760 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13762 (default_gutter_visible_p_changed_in_window): invalidate gutter as
13763 well as its visibility so that it gets reconstructed.
13764 (construct_window_gutter_spec): new function. Construct a string
13765 to be displayed in the gutter from a plist of strings. Take care
13766 to only use elements that are declared as visible.
13767 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13769 (gutter_validate): allow plists of strings in the specifier.
13770 (gutter_specs_changed): construct the real_gutter from the gutter
13771 specs using construct_window_gutter_spec.
13772 (gutter_visible_validate): gutter-visible is a new specifier type.
13773 (Fgutter_visible_specifier_p): new function for the new specifier.
13774 (syms_of_gutter): declare gutter-visible and
13775 Fgutter_visible_specifier_p.
13776 (specifier_type_create_gutter): intitalize new gutter-visible
13778 (reinit_specifier_type_create_gutter): ditto.
13779 (specifier_vars_of_gutter): use new specifier type for gutter
13781 (init_frame_gutters): construct real_gutter correctly.
13782 (Fgutter_specifier_p): beef up documentation.
13783 (Fgutter_size_specifier_p): ditto.
13785 * winslots.h: add real_gutter slots.
13787 2000-02-25 Andy Piper <andy@xemacs.org>
13789 * device-msw.c: Be kind to older cygwin versions. From Raymond
13790 Toy <toy@rtp.ericsson.se>.
13792 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13793 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13795 2000-02-25 Martin Buchholz <martin@xemacs.org>
13797 * elhash.c (MARK_OBJ): Practice macro hygiene.
13799 2000-02-24 Martin Buchholz <martin@xemacs.org>
13801 * miscplay.c: s/__inline__/inline/g;
13802 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13803 (get_device_compdc): INLINE ==> static inline
13804 * *.[ch]: Change INLINE to INLINE_HEADER globally.
13805 find -name '*.h' | \
13806 xargs global-replace \
13807 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13809 2000-02-25 Andy Piper <andy@xemacs.org>
13811 * window.c (window_top_frame_gutter_height): new function.
13812 (window_top_window_gutter_height): ditto.
13813 (window_top_gutter_height): use them.
13814 (window_bottom_frame_gutter_height): new function.
13815 (window_bottom_window_gutter_height): ditto.
13816 (window_bottom_gutter_height): use them.
13817 (window_left_window_gutter_width): new function.
13818 (window_left_frame_gutter_width): ditto.
13819 (window_left_gutter_width): use them.
13820 (window_right_window_gutter_width): new function.
13821 (window_right_frame_gutter_width): ditto.
13822 (window_right_gutter_width): use them.
13823 (window_pixel_height): new function. calulate window pixel height
13824 with frame gutter involvement.
13825 (Fsplit_window): calculate new sizes taking frame gutters into
13827 (window_char_height_to_pixel_height): don't include frame gutters.
13828 (window_char_height): use window_pixel_height.
13829 (window_pixheight): rename from window_pixel_height.
13830 (change_window_height): use it.
13831 (window_pixel_height_to_char_height): don't include frame gutters.
13832 (window_char_width_to_pixel_width): ditto.
13834 2000-02-25 Andy Piper <andy@xemacs.org>
13836 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13839 2000-02-24 Martin Buchholz <martin@xemacs.org>
13841 * alloc.c (staticpro):
13842 (staticpro_nodump):
13847 (compact_string_chars):
13848 (pdump_dump_wired):
13849 Convert: if (foo) abort(); ==> assert (! foo);
13851 * eldap.c (Fldap_search_basic):
13855 Fix compiler warnings, and possible crashes if (random) return
13856 value were to be used.
13858 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13860 * device-msw.c: Workaround ResetDC failure.
13862 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13863 applying a devmode.
13865 * redisplay-msw.c (get_frame_dc): Added start_page_p.
13866 (mswindows_text_width): Do not start printer page.
13868 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13870 * glyphs-msw.c: Added image methods to msprinter console and
13871 msprinter-specific image instantiation.
13873 2000-02-20 Mike Alexander <mta@arbortext.com>
13875 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13876 to avoid crashes when selection-sets-clipboard is on
13877 (mswindows_own_selection): ditto
13879 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13882 * redisplay-msw.c (get_frame_dc):
13883 (get_frame_compdc):
13885 * device-msw.c (mswindows_init_device):
13886 (mswindows_delete_device):
13887 (msprinter_init_device):
13888 (msprinter_delete_device):
13889 * frame-msw.c (mswindows_init_frame_1):
13890 (mswindows_delete_frame):
13891 (msprinter_init_frame_3):
13892 (msprinter_delete_frame): Move compatible DC to device object from
13893 frame object, for both mswindows and msprinter. Only one at a time
13894 is needed, it is a real waste to have one per frame!
13896 2000-02-23 Andy Piper <andy@xemacs.org>
13898 * glyphs.c: add dynamic width and height elements.
13899 (image_instance_equal): ditto.
13901 * glyphs-widget.c (widget_query_geometry): calculate width and
13902 height dynamically if required.
13903 (initialize_widget_image_instance): initialize dynamic dimensions.
13904 (widget_instantiate): pick-up dynamic dimensions.
13906 * glyphs.h (struct Lisp_Image_Instance): add width and height for
13907 dynamic determination. Add appropriate macros.
13909 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13911 (WINDOW_GUTTER_SIZE): ditto.
13912 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13914 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13916 (get_frame_dc): ditto.
13918 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13921 2000-02-23 Martin Buchholz <martin@xemacs.org>
13923 * XEmacs 21.2.31 is released.
13925 2000-02-22 Ben Wing <ben@xemacs.org>
13927 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13929 2000-02-22 Andy Piper <andy@xemacs.org>
13931 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13933 2000-02-21 Mike Sperber <mike@xemacs.org>
13937 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13940 2000-02-21 Mike Sperber <mike@xemacs.org>
13942 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13944 2000-02-21 Martin Buchholz <martin@xemacs.org>
13946 * XEmacs 21.2.30 is released.
13948 2000-02-20 Martin Buchholz <martin@xemacs.org>
13950 Performance hacking.
13952 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13953 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13954 * emacs.c (main_1):
13956 * console.c (DEFVAR_CONSOLE_LOCAL_1):
13957 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13958 * symeval.h (DEFVAR_SYMVAL_FWD):
13959 * symbols.c (guts_of_unbound_marker):
13960 Make all c_readonly objects also lisp_readonly and marked for life.
13961 * lrecord.h (struct lrecord_implementation):
13962 Document flags better.
13963 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13964 * lrecord.h (DECLARE_LRECORD):
13965 * lrecord.h (XSETRECORD):
13966 * lrecord.h (RECORDP):
13967 * lrecord.h (RECORD_TYPEP):
13968 * lrecord.h (RECORD_MARKER): New.
13969 * lrecord.h (error_check_*):
13970 * lrecord.h (CONCHECK_NONRECORD):
13971 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13972 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13973 * lrecord.h (set_lheader_implementation):
13974 * lrecord.h (enum lrecord_type): New.
13975 * symeval.h (SYMBOL_VALUE_MAGIC_P):
13976 * alloc.c (disksave_object_finalization_1):
13977 * alloc.c (mark_object):
13978 * alloc.c (lrecord_type_index):
13979 * alloc.c (tick_lcrecord_stats):
13980 * alloc.c (Fgarbage_collect):
13981 * alloc.c (init_alloc_once_early):
13982 * alloc.c (pdump_load):
13983 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
13984 * alloc.c (lrecord_type_index): Delete.
13985 Make lisp object type indexes be constant.
13986 Makes (byte-compile) 5% faster.
13987 Put all marker functions into their own array.
13988 Makes (garbage-collect) 5% faster.
13989 Optimize SYMBOL_VALUE_MAGIC_P.
13990 Makes (byte-compile) 2-3% faster.
13991 * config.h.in (gc_checking_assert): New.
13992 * alloc.c: Use gc_checking_assert().
13993 * .dbxrc: Make compatible with new object type implementation.
13994 * .gdbinit: Make compatible with new object type implementation.
13995 * alloc.c: Delete all symbols defined only for debugging, such as
13996 Lisp_Type_Vector and lrecord_charset.
13998 2000-02-21 Andy Piper <andy@xemacs.org>
14000 * gui-msw.c (Fmswindows_shell_execute): fix file location
14003 * buffer.c (Fkill_buffer): remove buffer from alist buffer
14004 unshowing so that set_window_buffer doesn't undo
14005 kill_buffer_hook's hard work.
14007 * glyphs-widget.c (tab_control_query_geometry): don't count the
14008 first item when calculating geometry.
14010 * glyphs.c (map_subwindow): remove redundant code.
14011 (update_frame_subwindows): be more circumspect about when to
14014 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14015 when items haven't changed. Update faces if faces have changed as
14016 well as just the widget face.
14017 (x_tab_control_update): Update faces if faces have changed as well
14018 as just the widget face.
14020 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
14022 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14024 (build_syscolor_string): Use mswindows_color_to_string to try to
14026 (mswindows_device_system_metrics): Reverse the foreground and
14027 background colors so that they match the documentation.
14029 * objects-msw.c: (mswindows_X_color_map): tweak some values so
14030 they match the default Windows palette.
14031 (mswindows_color_to_string): New function.
14033 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
14035 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14037 2000-02-18 Olivier Galibert <galibert@pobox.com>
14039 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14040 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14042 * symbols.c (init_symbols_once_early): Removed obsolete
14043 DATA_SEG_BITS related kludge.
14044 (defvar_magic): Ditto.
14046 * malloc.c: Removed obsolete DATA_SEG_BITS
14048 * mem-limits.h: Ditto.
14050 * Makefile.in.in: Removed obsolete HAVE_SHM
14053 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
14055 * device-msw.c (mswindows_delete_device): Free DDE string
14058 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14060 * keymap.c (get_keyelt):
14061 * unexnt.c (unexec):
14062 * vm-limit.c (memory_warnings):
14063 * ntheap.c (recreate_heap):
14064 * ntheap.h (UNINIT_PTR):
14065 * select-msw.c (Fmswindows_get_clipboard):
14066 (Fmswindows_set_clipboard):
14067 * objects-msw.h (MSWINDOWS_BAD_HFONT):
14069 * menubar-msw.c (displayable_menu_item):
14071 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14072 * sysdep.c (sys_subshell):
14073 * process-nt.c (nt_create_process):
14074 * nt.c (normalize_filename):
14075 (dostounix_filename):
14076 (unixtodos_filename):
14077 * ntproc.c (win32_executable_type):
14078 * ntplay.c (play_sound_data_1):
14080 * editfns.c (get_home_directory):
14081 * event-msw.c (struct winsock_stream):
14082 (mswindows_dde_callback):
14083 * device-msw.c (msprinter_init_device):
14084 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14086 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14087 mswindows_clear_toolbar were swapped!
14089 * objects-msw.c:(colormap_t):
14091 * emacs.c (struct standard_args): Fixed const jumble.
14093 * glyphs-widget.c (update_widget): Fixed comparison notation.
14095 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14097 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14098 __declspec(noreturn) syntax.
14100 2000-02-19 Martin Buchholz <martin@xemacs.org>
14102 * eldap.c (Fldap_open):
14103 (Fldap_search_basic):
14106 Use new coding system conversion macros.
14108 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14110 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14112 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
14114 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14115 (Fldap_add, Fldap_modify, Fldap_delete): New functions
14117 * eldap.c (Qadd, Qreplace): New constant symbols
14118 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14119 interruptions by XEmacs signals
14120 Remove unnecessary calls to slow_down_interrupts and
14121 speed_up_interrupts
14122 (Fldap_search_basic): Renamed from Fldap_search_internal
14123 Added new optional parameter VERBOSE that triggers the
14124 display of progress messages
14125 Remove unnecessary calls to slow_down_interrupts and
14126 speed_up_interrupts
14127 LDAP result code analysis rewritten
14128 (Fldap_add, Fldap_modify, Fldap_delete): New functions
14129 (syms_of_eldap): Define the new symbols and functions
14132 2000-02-17 Martin Buchholz <martin@xemacs.org>
14134 * realpath.c: Determine PATH_MAX maximally portably.
14136 * insdel.c (bytecount_to_charcount): Optimize.
14137 The function used to be optimized for entirely ASCII sequences.
14138 Now it is optimized for successive characters from the same
14139 charset. This also wins big for _mostly_ ASCII sequences.
14141 * fileio.c (Ffile_truename): convert return from realpath() using
14142 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
14143 - Rewrite GCPROing slightly.
14145 * sysdep.c (sys_open): Do filename conversion, like all other
14146 sys_* functions. Fixes bug:
14147 (let ((file-name-coding-system 'iso-8859-2))
14148 (write-region x y latin2-name))
14149 ==> writes filename using internal encoding.
14151 2000-02-18 Martin Buchholz <martin@xemacs.org>
14153 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14154 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14155 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14156 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14157 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14158 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14159 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14160 (CONST_IF_NOT_DEBUG): Delete.
14161 * alloc.c (this_one_is_unmarkable): Delete.
14162 (mark_object): Don't check for this_one_is_unmarkable. Use the
14163 c_readonly flag instead.
14164 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14166 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
14168 * event-msw.c (mswindows_drain_windows_queue):
14169 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14170 away redundant repaint events.
14172 2000-02-17 Andy Piper <andy@xemacs.org>
14174 * redisplay.h: declare mark_redisplay_structs.
14176 * redisplay.c (redisplay_window):
14177 (redisplay_frame): don't check subwindows_state_changed.
14178 (mark_redisplay): mark gutters here.
14180 * glyphs.c: (instantiate_image_instantiator): always layout if we
14181 haven't done so already.
14182 (allocate_image_instance): don't mark as dirty.
14183 (update_subwindow): bind inhibit_quit.
14185 * gutter.c (mark_gutters): new function.
14187 * glyphs-x.c (x_update_widget): Always resize to get round a
14190 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14191 breaking absolutely everything.
14193 * gutter.h: declare mark_gutters.
14195 2000-02-16 Martin Buchholz <martin@xemacs.org>
14197 * XEmacs 21.2.29 is released.
14199 2000-02-15 Olivier Galibert <galibert@pobox.com>
14201 * fns.c (size_bit_vector): Fix computation of the size.
14203 2000-02-15 Martin Buchholz <martin@xemacs.org>
14205 * *.[ch]: Change CONST to const globally.
14206 find -name '*.[ch]' | \
14207 xargs global-replace \
14208 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14209 - Remove vestigial references to CONST_IS_LOSING
14211 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
14213 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14214 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14215 events instead of dispatching them directly.
14216 (mswindows_handle_paint): New function to do repainting.
14217 (mswindows_wnd_proc):
14218 (emacs_mswindows_handle_magic_event): Call above function.
14220 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
14222 * objects-msw.c (mswindows_create_font_variant): Return the new
14224 (initialize_font_instance): Get font metrics from the underlined
14225 variant of the font to cope with the case where the underlined
14226 font has a bigger descent.
14228 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
14230 * gui.c (gui_item_accelerator): Return the first underlined
14231 character in item name.
14233 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14235 * lisp.h: Added Qprinter.
14237 * general.c (syms_of_general): Initialized it.
14239 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14241 (get_frame_compdc): Made inline.
14243 * console.h (struct console_methods): Added eject_page method.
14245 * frame.h: Added FRAME_DISPLAY_P and friends.
14246 Aligned backslahes in many macros in more readable fashion.
14247 Added page_number to struct frame, and an accessor macro
14250 * defice.h: Added DEVICE_DISPLAY_P and friends.
14252 * device.c (Fdevice_printer_p): Used these.
14254 * frame.c (allocate_frame_core): Initialize page number.
14255 (Fprint_job_page_number):
14256 (Fprint_job_eject_page): Implemented.
14258 * frame-msw.c (msprinter_eject_page): Added method.
14259 (msprinter_start_page): Added.
14261 * window.c (Fwindow_truncated_p): Fixed docstring.
14262 (Fwindow_last_line_visible_height): Implemented.
14264 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
14266 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14268 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14270 * syntax.c (scan_words): Always advance at least one character.
14272 2000-02-13 Andy Piper <andy@xemacs.org>
14274 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14275 to make sure the glyph is in the cachels.
14277 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14278 global image instance flag.
14279 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14280 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14282 * glyphs.c (allocate_image_instance): set dirty bits correctly.
14283 (Fset_image_instance_property): mark layout as changed.
14284 (invalidate_glyph_geometry_maybe): mark layout as changed.
14285 (glyph_width): use new NEEDS_LAYOUT macro.
14286 (glyph_ascent): ditto.
14287 (glyph_descent): ditto.
14288 (glyph_height): ditto.
14289 (image_instance_layout): mark layout as clean after laying out.
14290 (update_subwindow): don't mark layout as clean here.
14292 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14293 should no longer be needed.
14295 * glyphs-x.c (x_update_widget): sanitize asserts.
14296 (x_finalize_image_instance): sanitize assignment to widgets.
14298 * glyphs-widget.c (widget_instantiate): don't need to clear the
14301 2000-02-13 Martin Buchholz <martin@xemacs.org>
14303 * sysdep.c (getcwd): Use standard prototype.
14304 * sysdep.h (getcwd): Use standard prototype.
14306 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14307 (sequence, start, end).
14308 Remove redundant type checking.
14309 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14310 view of `caller-protects') to avoid a crash where the real fix was
14313 2000-02-12 Martin Buchholz <martin@xemacs.org>
14315 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14317 * s/sol2.h: Remove feature macro initialization.
14319 * alloc.c (alloc_lcrecord): Add more type checking assertions.
14320 (vector_hash): New. Code from internal_hash.
14322 Fix up allocation subsystem comments.
14324 * config.h.in: Add __EXTENSIONS__ for Solaris.
14326 * systime.h (EMACS_GETTIMEOFDAY): New.
14327 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14328 Remove Solaris-specific code.
14329 Use void* for the (ignored) second arg for gettimeofday().
14331 * elhash.c (hash_table_hash): Implement it, finally.
14332 * elhash.c: Use hashcode_t.
14334 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14335 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14337 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14338 * fns.c (size_bit_vector):
14339 * alloc.c (size_vector):
14340 (make_vector_internal):
14341 (make_bit_vector_internal):
14342 (sweep_bit_vectors_1):
14343 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14345 2000-02-10 Martin Buchholz <martin@xemacs.org>
14347 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14348 Include strings.h to avoid warnings for bzero and strcasecmp.
14350 2000-02-10 Olivier Galibert <galibert@pobox.com>
14352 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14353 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14355 * fns.c (size_bit_vector): New. Declare bit vectors as a
14358 2000-02-10 Olivier Galibert <galibert@pobox.com>
14360 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14361 use a value field instead.
14362 (symbol_value_forward_forward): Use value field.
14363 (DEFVAR_SYMVAL_FWD): Use value field.
14364 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
14365 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14366 (DEFVAR_CONST_INT): Ditto.
14367 (DEFVAR_BOOL): Ditto.
14368 (DEFVAR_CONST_BOOL): Ditto.
14369 (DEFVAR_INT_MAGIC): Ditto.
14370 (DEFVAR_BOOL_MAGIC): Ditto.
14372 * symbols.c (guts_of_unbound_marker): Use value field.
14373 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14374 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14376 * lisp.h: Declare dumpopaque and noninteractive1.
14378 * alloc.c (dumpopaque): Added.
14379 (pdump_dump_opaquevec): Added.
14380 (pdump): Call pdump_dump_opaquevec to dump opaque data.
14381 (pdump_load): Reload opaque data. Sync noninteractive1 with
14384 2000-02-10 Andy Piper <andy@xemacs.org>
14386 * glyphs.c (image_instance_layout): if the size changes, mark it
14389 * redisplay-output.c (redisplay_output_layout): Update the
14391 (redisplay_output_subwindow): ditto.
14393 * glyphs.c (update_subwindow): make sure we reset flags for
14394 layouts as well as everything else.
14396 * glyphs-widget.c (layout_layout): don't need to set the instances
14399 2000-02-09 Martin Buchholz <martin@xemacs.org>
14401 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
14402 not HAVE_DLOPEN, which is a lower-level thing.
14404 * .cvsignore: Ignore gmon.out
14406 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
14408 * .cvsignore: Ignore portable dumper xemacs.dmp file
14410 2000-02-09 Andy Piper <andy@xemacs.org>
14412 * redisplay-output.c (redisplay_output_layout): be more clever
14413 about when we output based on the changed flags.
14415 * glyphs.h (struct image_instantiator_methods): add update_method.
14416 (struct Lisp_Image_Instance): add changed flags. Declare new
14417 macros for manipulating them.
14419 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14420 (image_instance_parent_glyph): find an image_instance's parent
14421 glyph or image_instance.
14422 (image_instance_layout): mark the size as changed.
14423 (set_image_instance_dirty_p): new function. mark an image
14424 instance, plus all of its parents, as dirty.
14425 (Fset_image_instance_property): use it.
14426 (Fglyph_animated_timeout_handler): use it.
14427 (update_subwindow): call update_widget and device methods for
14428 update_subwindow. Mark all changed flags as clean.
14429 (Fresize_subwindow): mark size as changed.
14431 * glyphs-x.c (x_finalize_image_instance): try and detect gc
14433 (x_update_subwindow): only resize subwindows here.
14434 (x_update_widget): new function. Update all changed properties of
14436 (x_resize_subwindow): deleted.
14437 (x_widget_set_property): deleted.
14438 (x_progress_gauge_set_property): deleted.
14439 (x_progress_gauge_update): new function. Implement recorded
14441 (x_tab_control_update): ditto.
14442 (x_tab_control_set_property): deleted.
14443 (console_type_create_glyphs_x): declare new functions.
14444 (image_instantiator_format_create_glyphs_x): ditto.
14446 * glyphs-widget.c (widget_set_property): mark text changed.
14447 (update_widget): new function. Update properties of a widget.
14448 (widget_instantiate): for layouts make sure we set their
14449 children's parent correctly.
14450 (tab_control_set_property): new function. Record changes that will
14451 take place under redisplay's control.
14452 (progress_gauge_set_property): ditto.
14453 (image_instantiator_progress_guage): declare new functions.
14454 (image_instantiator_tab_control): ditto.
14456 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14458 (mswindows_update_widget): new function. Update all properties on
14459 a widget that have changed.
14460 (mswindows_button_update): new function. Update a button's set
14462 (mswindows_tab_control_update): new function. Update the items in
14464 (mswindows_tab_control_set_property): deleted.
14465 (mswindows_progress_gauge_update): new function. Update the
14466 progress gauge's progress.
14467 (mswindows_widget_set_property): deleted. This is all done
14468 asynchronously now.
14469 (mswindows_progress_gauge_set_property): ditto.
14470 (console_type_create_glyphs_mswindows): declare new methods.
14471 (image_instantiator_format_create_glyphs_mswindows): ditto.
14473 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14474 (msprinter_set_frame_properties): ditto.
14476 * console.h (struct console_methods): Add update_widget_method.
14478 2000-02-09 Andy Piper <andy@xemacs.org>
14480 * gui-msw.c (Fmswindows_shell_execute): Make
14481 mswindows-shell-execute industrial strength.
14483 2000-02-08 Martin Buchholz <martin@xemacs.org>
14485 * lrecord.h: Make macro argument `props' match member function `plist'.
14488 * fns.c (Fremprop):
14489 * fns.c (Fobject_plist):
14492 Object property list frobbing cleanup.
14493 - Allow any lisp object (compared with `eq'), not just symbols, as
14494 keys in object plists.
14495 - Move symbol plist frobbing into symbols.c, where it belongs.
14496 - Move string plist frobbing into alloc.c, where it belongs.
14497 - Everything's an lrecord now, so no need to test for symbolp, etc.
14498 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14500 * extents.c: Reorder code to remove declarations.
14502 * frame.h (store_in_alist): Remove useless declaration.
14504 2000-02-07 Martin Buchholz <martin@xemacs.org>
14506 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14507 * config.h.in: Add HAVE_XCONVERTCASE.
14509 2000-02-07 Andy Piper <andy@xemacs.org>
14511 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14512 it breaks many things.
14514 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
14516 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14517 actually can start a common comment type.
14518 * src/syntax.h (SYNTAX_END_P): ditto for end.
14520 2000-02-07 Martin Buchholz <martin@xemacs.org>
14522 * XEmacs 21.2.28 is released.
14524 2000-02-06 Martin Buchholz <martin@xemacs.org>
14526 * event-Xt.c (x_keysym_to_character): New.
14527 (maybe_define_x_key_as_self_inserting_character): New.
14528 (x_has_keysym): New.
14529 Auto-define all keys on the keyboard as self-insert-key.
14531 2000-02-02 Martin Buchholz <martin@xemacs.org>
14533 * menubar.c (vars_of_menubar): A small code simplification.
14535 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14538 * ExternalClient.c:
14539 * EmacsShell-sub.c:
14542 Use consistent style for specifying X resources.
14544 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14545 This makes (dontusethis-set-symbol-value-handler) actually usable.
14547 * lrecord.h (lrecord_decription_type):
14548 * alloc.c (pdump_register_sub):
14551 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14552 Comply with XEmacs coding style.
14553 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14554 args, and XD_LISP_OBJECT_ARRAY with 3 args.
14556 * keymap.c (Faccessible_keymaps):
14557 Make (accessible-keymaps map "\C-h") do the Right Thing.
14558 Make (accessible-keymaps map []) do the Right Thing.
14559 Make (accessible-keymaps map "") do the Right Thing.
14560 (check_keymap_definition_loop): New function.
14561 (keymap_store_internal): Keep luser from shooting self in foot,
14562 via (define-key ctl-x-4-map "p" global-map).
14563 Remove fullness slot from struct Lisp_Keymap, since hash tables
14565 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14567 2000-01-30 Martin Buchholz <martin@xemacs.org>
14569 * redisplay.c (init_redisplay): Fix small memory leak.
14571 * elhash.c (pdump_reorganize_hash_table):
14572 Rename from reorganize_hash_table. Change prototype.
14573 Reuse the original memory for hentries. Save 100k.
14574 * alloc.c (PDUMP_READ): new macro.
14575 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14576 * alloc.c: No need to #ifndef before #undef.
14578 * print.c: Allow debug_print() to print readably by modifying
14579 debug_print_readably. Use consistent variable names.
14581 * .dbxrc: Try to get things to work even if stopped in a function
14582 without source available by explicitly specifying source files.
14583 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14585 * unexnt.c (_start): Removed bogus code which caused loading heap
14586 from differrent executable file.
14587 Removed bogus assignment to _fmode, which caused inconsistencies.
14589 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14591 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14592 Have spawnve encapsulation regard DONT_ENCAPSULATE.
14593 Do not preliminary `#define signal sigset'.
14595 * systime.h: Do not prototype environ on windows nt and cygwin,
14596 this conflicts with system header.
14598 * syssignal.h: Use correct define for WINDOWSNT
14600 * sysdep.h: Do not prototype environ on windows nt, this conflicts
14601 with system header.
14603 * sysdep.c (near start of file): Fixed commentary and rearranged
14604 ifdefs in readable order.
14605 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14608 (end_of_data): Do not compile in if using PDUMP.
14610 * symsinit.h: Prototyped vars_of_nt().
14612 * ntproc.c (windows9x_p): Added, instead of os_subtype.
14613 (find_child_console): Use it.
14614 (sys_kill): Use it.
14616 * ntheap.h: Do not extern os_subtype.
14618 * ntheap.c (cache_system_info): Do not cache unneeded:
14619 nt_major_version, nt_minor_version and os_subtype.
14620 (recreate_heap): Do not compile in when PDUMPing.
14622 * nt.c (geteuid and friends): Use the new varibale
14623 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14624 (init_user_info): Removed the above mentioned hackery.
14625 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14626 stat has been fixed in the C runtime.
14627 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14629 * file-coding.c (struct file_coding_dump): Do not define
14630 ucs_to_mule_table in the struct if not MULE.
14631 (struct struct lrecord_description fcd_description_1): Do not dump
14634 * emacs.c (main_1): Call vars_of_nt().
14635 (right before Fdump_emacs_data): Don't need lastfile if using both
14636 portabe dumper and system malloc.
14638 * alloc.c (Fmemory_limit): Conditionalized out.
14639 (pdump): Use OPEN_BINARY for the portable dump file.
14640 (pdump_load): Ditto.
14642 2000-02-02 Mike Alexander <mta@arbortext.com>
14644 * nt.c (convert_time): Set tm_isdst before calling mktime and
14645 avoid calling it at all if the compiler supports 64 bit integers.
14646 Also initialize utc_base_ft before using it.
14648 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
14650 * frame.c (change_frame_size_1): Take f->internal_border_width
14651 into consideration when calculating the width of the frame.
14653 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14655 * window.c (frame_min_height):
14656 (frame_size_valid_p):
14657 (frame_pixsize_valid_p): Added.
14658 (check_frame_size): Generalized.
14660 * window.h: Prototyped the above.
14663 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14664 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14665 Deleted Vwin32_* and Vbinary_process_* unused variables.
14667 * device-msw.c (msprinter_init_device): Do not get printer font
14668 list; Added DEVMODE functions.
14670 * frame-msw.c: Added lots of printer code.
14672 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14675 * console-msw.h: Added more msprinter device private slots.
14677 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14679 * event-msw.c (key_needs_default_processing_p): Added.
14680 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14682 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14684 * glyphs.c (image_instance_layout): Mark image instance as clean
14686 (glyph_dirty_p): Removed redundant function.
14687 (invalidate_glyph_geometry_maybe): Added.
14688 (update_glyph_cachel_data): Call it.
14690 * glyphs.h: Prototyped it.
14692 * redisplay.c (add_glyph_rune): Call it.
14693 (redisplay_window): Reset glyphs cachels when frame faces have
14694 changed, thus forcing recomputation of built-in border glyphs.
14696 2000-01-30 Martin Buchholz <martin@xemacs.org>
14698 * Makefile.in.in: Make portable dumper and purify play well together.
14699 Add imperfect, but better than nothing, support for pdump.
14700 Remove xemacs.dmp when temacs is re-generated.
14701 Don't ignore errors when dumping xemacs.
14703 * symbols.c (maybe_call_magic_handler): Remove one magic number.
14705 2000-01-28 Andy Piper <andy@xemacs.org>
14707 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14708 (setup_normal_frame): ditto.
14709 (setup_frame_without_minibuffer): ditto.
14710 (setup_minibuffer_frame): ditto.
14711 (delete_frame_internal): ditto.
14712 (Fmake_frame_invisible): ditto.
14713 (Ficonify_frame): ditto.
14715 * window.h: change Fset_window_buffer signature.
14717 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14718 (Fset_window_buffer): allow recording of buffer if the window is
14719 the selected window.
14720 (window_loop): Use new Fset_window signature.
14722 2000-01-23 Daniel Pittman <daniel@danann.net>
14724 * config.h.in: Added template for `HAVE_ATHENA_3D'
14726 2000-01-29 Andy Piper <andy@xemacs.org>
14728 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14730 * gutter.c (output_gutter): Don't output if the window isn't live.
14732 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14734 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14735 of 01/12/00: Moved SetFocus back here where it belongs.
14737 2000-01-23 Andy Piper <andy@xemacs.org>
14739 * s/cygwin32.h: declare printer things.
14741 2000-01-26 Andy Piper <andy@xemacs.org>
14743 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14746 2000-01-24 Andy Piper <andy@xemacs.org>
14748 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14749 (mswindows_button_instantiate): Make sure glyph is a pixmap.
14751 * glyphs-widget.c (widget_instantiate): Avoid shadows.
14753 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14755 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14757 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14758 (mswindows_output_display_block): Avoid local shadows.
14760 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14761 (mswindows_enqueue_mouse_button_event): ditto.
14762 (mswindows_handle_gui_wm_command): remove declaration.
14764 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14767 * console-msw.h: Avoid shadows.
14768 (mswindows_get_toolbar_button_text):
14769 (emacs_mswindows_create_stream_pair):
14770 (emacs_mswindows_delete_stream_pair):
14771 (mswindows_handle_toolbar_wm_command): declare.
14773 * device-msw.c (build_syscolor_string): Avoid shadows.
14775 2000-01-23 Andy Piper <andy@xemacs.org>
14777 * glyphs-widget.c (widget_instantiate): reverse the items for
14778 layouts so that children are in the expected order.
14780 2000-01-28 Martin Buchholz <martin@xemacs.org>
14782 * ralloc.c: safe_bcopy ==> memmove
14783 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14784 * s/msdos.h: Remove BCOPY macros.
14785 * insdel.c (gap_right): Remove BCOPY conditional code.
14786 * insdel.c (gap_left): Remove BCOPY conditional code.
14787 XEmacs demands a working ANSI C compiler - hence memmove.
14789 * regex.c (regex_compile): Remove accidental use of trigraphs.
14791 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14793 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14796 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14798 * event-msw.c (mswindows_drain_windows_queue): Added the
14800 (mswindows_need_event): Commented the call to
14801 mswindows_drain_windows_queue().
14802 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14805 * console-msw.h: Moved a few function prototypes here from
14808 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14809 parameter from unsigned short to unsigned long.
14810 (Fmswindows_shell_execute): Added return value.
14812 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14814 * sysdep.c (init_system_name):
14815 process-unix.c (unix_canonicalized_host_name):
14816 Don't call freeaddrinfo() if getaddrinfo() fails.
14818 * process-unix.c (unix_open_unix_network_stream):
14819 Moved the code to get a port # into address loop.
14821 2000-01-27 Martin Buchholz <martin@xemacs.org>
14823 * buffer.c (reinit_vars_of_buffer):
14824 The right place to initialize conversion_in_dynarr and
14825 conversion_out_dynarr.
14827 * alloc.c (pdump): Use the real open() till sys_open() is functional.
14829 * process-unix.c (unix_canonicalize_host_name): Muleize.
14830 (unix_open_network_stream): Muleize.
14832 * buffer.h: Fix up prototypes for ralloc.c functions.
14834 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14835 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14836 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14837 instead of gethostbyname()
14838 * process-unix.c: In unix_canonicalize_host_name() and
14839 unix_open_network_stream(), add code to use getaddrinfo()
14840 instead of gethostbyname().
14842 2000-01-27 Daniel Pittman <daniel@danann.net>
14844 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14845 libs when built with flat Athena.
14847 2000-01-27 Martin Buchholz <martin@xemacs.org>
14849 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14850 Use coding standards for function prototypes.
14852 2000-01-25 Martin Buchholz <martin@xemacs.org>
14854 * dialog-msw.c (push_lisp_string_as_unicode):
14855 * doc.c (unparesseuxify_doc_string):
14856 * dired.c (Fuser_name_completion_1):
14857 * dired.c (Fuser_name_all_completions):
14858 * dired.c (free_user_cache):
14859 * dired.c (user_name_completion):
14860 * console-x.c (get_display_arg_connection):
14861 * minibuf.c (clear_echo_area_internal):
14862 * minibuf.c (echo_area_append):
14863 * eldap.c (Fldap_open):
14864 * eldap.c (Fldap_search_internal):
14865 * frame-x.c (x_set_frame_text_value):
14866 * frame-x.c (x_set_frame_properties):
14867 * frame-x.c (x_create_widgets):
14868 * redisplay-tty.c (term_get_fkeys_1):
14869 * objects-x.c (x_parse_nearest_color):
14870 * objects-x.c (x_valid_color_name_p):
14871 * objects-x.c (x_initialize_font_instance):
14872 * objects-x.c (x_list_fonts):
14873 * objects-x.c (x_find_charset_font):
14874 * tooltalk.c (Fadd_tooltalk_message_arg):
14875 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14876 * tooltalk.c (Fadd_tooltalk_pattern_arg):
14877 * process-unix.c (unix_create_process):
14878 * ntproc.c (sys_spawnve):
14879 * sound.c (Fplay_sound_file):
14880 * sound.c (Fplay_sound):
14881 * buffer.c (init_initial_directory):
14882 * buffer.c (init_buffer):
14883 * editfns.c (init_editfns):
14884 * editfns.c (Ftemp_directory):
14885 * editfns.c (Fuser_full_name):
14886 * editfns.c (uncache_home_directory):
14887 * editfns.c (get_home_directory):
14888 * editfns.c (Fuser_home_directory):
14889 * editfns.c (Fformat_time_string):
14890 * editfns.c (Fcurrent_time_string):
14891 * gui-x.c (button_item_to_widget_value):
14892 * database.c (Fopen_database):
14893 * event-Xt.c (x_to_emacs_keysym):
14894 * event-Xt.c (x_event_to_emacs_event):
14895 * event-Xt.c (describe_event_window):
14896 * event-msw.c (mswindows_wnd_proc):
14897 * glyphs-eimage.c (jpeg_instantiate):
14898 * glyphs-eimage.c (gif_instantiate):
14899 * glyphs-eimage.c (png_instantiate):
14900 * glyphs-eimage.c (tiff_instantiate):
14901 * glyphs-x.c (xbm_instantiate_1):
14902 * glyphs-x.c (x_xbm_instantiate):
14903 * glyphs-x.c (x_xface_instantiate):
14904 * glyphs-x.c (autodetect_instantiate):
14905 * glyphs-x.c (cursor_font_instantiate):
14906 * glyphs-x.c (x_widget_instantiate):
14907 * glyphs-x.c (x_widget_set_property):
14908 * glyphs-x.c (x_widget_property):
14909 * glyphs-x.c (BUILD_GLYPH_INST):
14910 * print.c (write_string_to_stdio_stream):
14911 * print.c (output_string):
14912 * print.c (Falternate_debugging_output):
14913 * print.c (Fexternal_debugging_output):
14914 * glyphs-msw.c (extract_xpm_color_names):
14915 * glyphs-msw.c (mswindows_xpm_instantiate):
14916 * glyphs-msw.c (bmp_instantiate):
14917 * glyphs-msw.c (resource_name_to_resource):
14918 * glyphs-msw.c (mswindows_resource_instantiate):
14919 * glyphs-msw.c (xbm_instantiate_1):
14920 * glyphs-msw.c (mswindows_xbm_instantiate):
14921 * glyphs-msw.c (mswindows_xface_instantiate):
14922 * glyphs-msw.c (mswindows_widget_instantiate):
14923 * glyphs-msw.c (add_tree_item):
14924 * glyphs-msw.c (add_tab_item):
14925 * glyphs-msw.c (mswindows_combo_box_instantiate):
14926 * glyphs-msw.c (mswindows_widget_property):
14927 * glyphs-msw.c (mswindows_combo_box_property):
14928 * glyphs-msw.c (mswindows_widget_set_property):
14929 * console.c (stuff_buffered_input):
14930 * objects-msw.c (mswindows_initialize_color_instance):
14931 * objects-msw.c (mswindows_valid_color_name_p):
14932 * objects-msw.c (mswindows_list_fonts):
14933 * objects-msw.c (mswindows_font_instance_truename):
14934 * bytecode.c (optimize_compiled_function):
14935 * select-x.c (symbol_to_x_atom):
14936 * select-x.c (x_atom_to_symbol):
14937 * select-x.c (hack_motif_clipboard_selection):
14938 * select-x.c (selection_data_to_lisp_data):
14939 * select-x.c (lisp_data_to_selection_data):
14940 * select-x.c (Fx_get_cutbuffer_internal):
14941 * select-x.c (Fx_store_cutbuffer_internal):
14942 * buffer.h (TO_EXTERNAL_FORMAT): New function.
14943 * buffer.h (TO_INTERNAL_FORMAT): New function.
14944 * emacs.c (make_arg_list_1):
14945 * emacs.c (make_argc_argv):
14946 * emacs.c (main_1):
14947 * emacs.c (Fdump_emacs):
14948 * emacs.c (split_string_by_emchar_1):
14953 * device-x.c (x_init_device):
14954 * device-x.c (Fx_valid_keysym_name_p):
14955 * device-x.c (Fx_get_font_path):
14956 * device-x.c (Fx_set_font_path):
14957 * glyphs.c (bitmap_to_lisp_data):
14958 * glyphs.c (pixmap_to_lisp_data):
14959 * alloc.c (make_ext_string): Use coding system arguments. Update
14961 * alloc.c (build_string):
14962 * callproc.c (child_setup):
14963 * callproc.c (init_callproc):
14964 * fileio.c (lisp_strerror):
14965 * fileio.c (directory_file_name):
14966 * fileio.c (Fexpand_file_name):
14967 * fileio.c (Ffile_truename):
14968 * fileio.c (Fsysnetunam):
14969 * fileio.c (Fdo_auto_save):
14970 * sysdep.c (sys_readdir):
14971 * tests.c: New file. Allow adding C tests.
14972 Replace GET_* macros with a more comprehensible and flexible
14973 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14975 Any coding system can be used to do format conversion.
14976 Eliminate enum external_data_format.
14977 Eliminate convert_to_external_format.
14978 Eliminate convert_to_internal_format.
14979 Make sure file-name, keyboard, terminal, and ctext are always
14980 defined as coding systems or aliases. Make
14981 file-name-coding-system, terminal-coding-system, and
14982 keyboard-coding-system magical variables that are equivalent to
14983 defining the corresponding coding system aliases.
14985 * file-coding.c (Fcoding_system_canonical_name_p): New function.
14986 * file-coding.c (Fcoding_system_alias_p): New function.
14987 * file-coding.c (Fcoding_system_aliasee): New function.
14988 * file-coding.c (append_suffix_to_symbol): New function.
14989 * file-coding.c (dangling_coding_system_alias_p): New function.
14990 * file-coding.c (Ffind_coding_system):
14991 * file-coding.c (Fcopy_coding_system):
14992 * file-coding.c (encode_coding_no_conversion):
14993 * file-coding.c (syms_of_file_coding):
14994 * file-coding.c (vars_of_file_coding):
14995 Rewrite coding system alias code.
14996 Allow nested aliases, like symbolic links.
14997 Allow redefinition of coding system aliases.
14998 Prevent existence of dangling coding system aliases.
15000 * dired.c (Fuser_name_completion_1):
15001 * dired.c (Fuser_name_all_completions):
15002 A crash would happen if user did QUIT in the middle of building
15003 user_name_cache. Remove redundant code in mainline and unwind_protect.
15006 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
15008 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15009 an unsigned char *. Update all callers.
15011 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15013 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15015 2000-01-25 Martin Buchholz <martin@xemacs.org>
15017 * elhash.c (hentry_description): Use more portable definition.
15018 (resize_hash_table): Initialize new hentries using
15019 xnew_array_and_zero, thereby simplifying the code.
15021 * mule-charset.c (make_charset): Make sure entire object is
15022 initialized, to avoid Purify warnings.
15024 * alloc.c (resize_string): Fix unlikely crash with big strings.
15026 2000-01-24 Martin Buchholz <martin@xemacs.org>
15028 * realpath.c (xrealpath):
15029 Don't call getwd().
15031 2000-01-25 Martin Buchholz <martin@xemacs.org>
15033 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15035 1999-12-28 Max Matveev <max@melbourne.sgi.com>
15037 * unexelfsgi.c (unexec): Change the way we decide which segment
15038 should be extended.
15040 Assumption that .bss section should be outside the PT_LOADable
15041 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15042 it's present) is inside the 'data' segment. This would fail the
15043 test which was used to find a segment to grow and cover new
15044 heap. Instead of this assumption, I created another one - on IRIX
15045 the segment to grow should start below .bss and it's address
15046 should extent above the end of .bss. Once this segment is
15047 identified, it's grown to accommodate the new heap and new
15048 zero-length .bss section is added at the end of .data2.
15050 2000-01-25 Martin Buchholz <martin@xemacs.org>
15052 * eval.c (Feval): Wrong number of arguments should use original
15053 function, not the indirect_function version of it.
15055 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
15057 * glyphs-x.c (x_button_instantiate): Don't add image if
15058 it is not a pixmap.
15059 (x_locate_pixmap_file): Call Fexpand_file_name when file name
15062 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
15064 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15066 (DEFVAR_INT_MAGIC): Ditto.
15067 (DEFVAR_BOOL_MAGIC): Ditto.
15068 * glyphs.h: Reindent backslash.
15070 2000-01-24 Martin Buchholz <martin@xemacs.org>
15072 * glyphs-widget.c (layout_query_geometry):
15073 (layout_layout): Use correct types for gheight, gwidth.
15075 2000-01-24 Martin Buchholz <martin@xemacs.org>
15077 * EmacsManager.c (QueryGeometry): Purified.
15079 2000-01-23 Martin Buchholz <martin@xemacs.org>
15081 * alloc.c (make_float): Make sure entire object is initialized, to
15082 avoid Purify warnings.
15083 (pdump_register_sub): Remove useless assignment.
15084 (pdump): Use xmalloc, not malloc.
15085 (pdump_load): Use xmalloc, not malloc.
15087 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15094 * sysdep.c: Removed redundant #include <windows.h>
15096 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15098 * frame.c (delete_frame_internal): Do not delete device when its
15099 implementation so declares.
15100 (delete_frame_internal): Set device selected frame to nil when
15101 last frame goes away.
15103 * device-msw.c (msprinter_device_system_metrics): Implemented.
15104 (mswindows_device_system_metrics): Added 'device-dpi property.
15106 * device.c: (Fdevice_printer_p): Added.
15107 Added 'offset-workspace device metric.
15109 * console.h (device_metrics): Declared DM_offset_workspace.
15111 2000-01-23 Martin Buchholz <martin@xemacs.org>
15113 * fileio.c (Ffile_truename): Remove pointless and confusing
15114 initialization of elen.
15116 * glyphs-widget.c: Compiler warning fixes.
15118 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
15120 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15121 instead of a Lisp_Object as argument to make it consistent with
15122 the other LIVE_P macros.
15123 (CHECK_LIVE_PROCESS): New macro.
15125 * process.c: Declare Qprocess_live_p.
15126 (Fprocess_live_p): New function.
15127 (create_process): Use PROCESS_LIVE_P.
15128 (read_process_output): Ditto.
15129 (set_process_filter): Ditto.
15130 (Fdelete_process): Ditto.
15131 (kill_buffer_processes): Ditto
15132 (process_send_signal): Use CHECK_LIVE_PROCESS.
15133 (Fprocess_input_coding_system): Check whether process is still
15134 alive (fix PR#1061).
15135 (Fprocess_output_coding_system): Ditto.
15136 (Fprocess_coding_system): Ditto.
15137 (Fset_process_input_coding_system): Ditto.
15138 (Fset_process_output_coding_system): Ditto.
15140 2000-01-23 Andy Piper <andy@xemacs.org>
15142 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15145 * glyphs.c (mark_image_instance): take into account changed
15146 image_instance format.
15147 (image_instance_equal): ditto.
15148 (image_instance_hash): ditto.
15150 * glyphs-widget.c (widget_instantiate): Incorporate layout
15151 instantiation here. Delay layout of the layout until later.
15152 (layout_instantiate): deleted.
15153 (layout_query_geometry): new function. get the geometry of a
15155 (layout_layout): layout a layout dynamically.
15156 (image_instantiator_widget): New function - splitting up
15157 image_instantiator_format_create_glyphs_widget for netwinder
15159 (image_instantiator_buttons):
15160 (image_instantiator_edit_fields):
15161 (image_instantiator_combo_box):
15162 (image_instantiator_scrollbar):
15163 (image_instantiator_progress_guage):
15164 (image_instantiator_tree_view):
15165 (image_instantiator_tab_control):
15166 (image_instantiator_labels):
15167 (image_instantiator_layout): ditto.
15168 (image_instantiator_format_create_glyphs_widget): Call preceding
15171 2000-01-22 Martin Buchholz <martin@xemacs.org>
15173 * process.c (Fset_process_coding_system):
15174 * device-x.c (Fx_keysym_hash_table):
15177 * lstream.c (Lstream_write): Return documented value, not 0.
15179 * fileio.c (directory_file_name):
15180 (Fsubstitute_in_file_name):
15181 (Fsubstitute_insert_file_contents_internal):
15182 (Fwrite_region_internal):
15187 Remove vestigial APOLLO-conditional code.
15189 2000-01-21 Martin Buchholz <martin@xemacs.org>
15191 * getpagesize.h: Add guard macros.
15192 * libsst.h: Add guard macros.
15193 * libst.h: Add guard macros.
15194 * line-number.h: Add guard macros.
15195 * ndir.h: Add guard macros.
15196 * sysfloat.h: Add guard macros.
15197 * sysfile.h: Add guard macros.
15198 * sysproc.h: Add guard macros.
15199 * syswait.h: Add guard macros.
15200 * xintrinsic.h: Add guard macros.
15201 * xintrinsicp.h: Add guard macros.
15202 * xmmanager.h: Add guard macros.
15203 * xmmanagerp.h: Add guard macros.
15204 * xmprimitive.h: Add guard macros.
15205 * xmu.h: Add guard macros.
15206 * gpmevent.h: Add copyright statement. Add guard macros.
15207 * miscplay.h: Add guard macros.
15208 * *.h: Use consistent C-standards-approved guard macro names.
15210 * opaque.c (make_opaque): Switch parameter order.
15211 * opaque.h (make_opaque): Switch parameter order.
15212 Update all callers.
15213 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15215 * config.h.in (type_checking_assert): Added.
15216 (bufpos_checking_assert): Added.
15218 2000-01-21 Martin Buchholz <martin@xemacs.org>
15220 * alloc.c: Harmless pdump changes.
15222 - spell alignment correctly.
15223 * sysdep.c: Use countof()
15225 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15227 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15228 initially_selected_for_input() console method, default to 0.
15229 (semi_canonicalize_console_connection): Try to delegate to
15230 canonicalize_console_connection if no such console method.
15231 (canonicalize_console_connection): Vice versa.
15232 (print_console): Do not print nil connection.
15234 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15235 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15236 (XDEVIMPF_FRAMELESS_OK): Added.
15237 (CONSOLE_INHERITS_METHOD): Added.
15239 * console-msw.c (mswindows_canonicalize_console_connection):
15241 (mswindows_canonicalize_device_connection): Added.
15243 * console-msw.h (struct msprinter_device): Added this struct and
15245 (mswindows_device): Made fontlist a lisp object.
15247 * device.c (semi_canonicalize_device_connection): Try to delegate
15248 to canonicalize_device_connection if no such console method.
15249 (canonicalize_device_connection): Vice versa.
15250 (print_device): Do not print nil connection.
15252 * device-msw.c (mswindows_init_device): Call InitCommonControls
15254 (mswindows_delete_device): Removed fontlist deallocation.
15255 (mswindows_mark_device): Added.
15257 * events.c (event_equal): Added abort() at unreached code.
15258 (event_hash): Ditto.
15260 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15261 fallback tags of Windows devices.
15263 * general.c (syms_of_general): Initialized Qmsprinter.
15265 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15266 of fallback tags of Windows devices.
15268 * lisp.h: Declared Qmsprinter.
15270 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15272 (mswindows_list_fonts): Ditto.
15273 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15274 that it can be used by both mswindows and msprinter devices.
15275 (initialize_font_instance): Added.
15276 (mswindows_initialize_font_instance): Use it.
15277 (msprinter_initialize_font_instance): Added.
15279 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15280 and implementation flags check.
15281 (redisplay_without_hooks): Changed the call to the above.
15282 (Fredraw_device): Ditto.
15283 (Fredisplay_device): Ditto.
15285 * redisplay-msw.c (get_frame_dc): Implemented.
15286 (get_frame_compdc): Implemented.
15287 (many functions): Use the two functions above to get device
15288 contexts, ether for a window or a printer.
15290 2000-01-21 Olivier Galibert <galibert@pobox.com>
15292 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15293 initialization here.
15294 (init_symbols_once_early): Call it.
15295 * emacs.c (main_1): Call it.
15296 * symsinit.h: Declare it.
15298 2000-01-19 Olivier Galibert <galibert@pobox.com>
15300 * alloc.c: Use a lrecord_header * in the backtrace instead of a
15302 (pdump_backtrace): Ditto.
15303 (pdump_register_object): Ditto. Cleanup use of the pointers.
15304 (pdump_get_entry): Abort if trying to register a null pointer.
15305 (pdump_dump_data): Cleanup types when relocating.
15306 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15307 (pdump_dump_rtables): Remove bad casts.
15308 (pdump_load): Cleanup relocation w.r.t union type. Use a
15309 Lisp_Object instead of a EMACS_INT for the hashtable
15312 2000-01-20 Martin Buchholz <martin@xemacs.org>
15314 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15316 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15318 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15320 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15322 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15324 * faces.h (FACE_STRIKETHRU_P): Added.
15326 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15329 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15330 (mswindows_set_dc_font): New function, aware of font variants,
15331 separated from mswindows_update_dc.
15333 * objects-msw.h (struct mswindows_font_instance_data): Added
15336 * objects-msw.c (mswindows_finalize_font_instance): Delete all
15337 cached fonts and the data structure.
15338 (mswindows_initialize_font_instance): Added creation of font data
15340 (mswindows_print_font_instance): Print at least something.
15341 (mswindows_create_font_variant): Implemented.
15342 (mswindows_get_hfont): Implemented.
15344 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
15346 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15347 prototyping problem with msvc.
15349 * emacs.c (main_1): added syms_of_gui_mswindows() call
15351 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15352 syms_of_gui_mswindows() function
15354 * symsinit.h: added the prototype for syms_of_gui_mswindows()
15356 2000-01-18 Martin Buchholz <martin@xemacs.org>
15358 * XEmacs 21.2.27 is released.
15360 2000-01-18 Martin Buchholz <martin@xemacs.org>
15362 * glyphs-eimage.c (struct tiff_error_struct):
15364 (tiff_warning_func):
15365 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15370 * unexec.c: Remove vestigial Lucid C code.
15374 * libsst.c: Ansify.
15375 Remove declarations of errno and strerror().
15377 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
15379 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15381 2000-01-16 Martin Buchholz <martin@xemacs.org>
15383 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15386 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15391 Change enum eol_type to eol_type_t.
15393 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15395 * gui.c (get_gui_callback): Check cons before accessing car.
15397 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15399 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15400 (XSETSPECIFIER_TYPE): Ditto.
15402 2000-01-17 Didier Verna <didier@xemacs.org>
15404 * redisplay.c (generate_fstring_runes): compute string size in
15405 characters, not bytes.
15407 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
15409 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15411 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
15413 * print.c (print_error_message): Call print_prepare().
15415 2000-01-14 Martin Buchholz <martin@xemacs.org>
15417 * .dbxrc: Renamed from dbxrc.
15419 * events.c (event_to_character):
15420 Use `assert (foo)' instead of `if (!foo) abort()'
15422 * .gdbinit (xtype): Add documentation.
15423 * .gdbinit (check-temacs): New function.
15424 * .gdbinit (check-xemacs): New function.
15425 * dbxrc (check-xemacs): New function.
15426 * dbxrc (check-xemacs): New function.
15428 2000-01-14 Andy Piper <andy@xemacs.org>
15430 * glyphs-widget.c (widget_query_geometry): Make sure that we
15431 calculate default dimensions correctly.
15433 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15435 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15437 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15438 pdump_wire'd variable.
15440 * emacs.c: (main_1): Conditionalized calls to
15441 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15443 2000-01-13 Martin Buchholz <martin@xemacs.org>
15445 * window.c (Fset_window_configuration):
15446 * sysdep.c (_start):
15447 * input-method-motif.c (res):
15448 * event-Xt.c (Xt_process_to_emacs_event):
15449 Simple compiler warning fixes.
15451 * bytecode.c (funcall_compiled_function): Use the original
15452 function symbol on the backtrace list in preference to the
15453 compiled_function object in error messages.
15455 2000-01-13 Andy Piper <andy@xemacs.org>
15457 * glyphs-x.c (update_widget_face): Make sure we update the widget
15458 background as well as foreground.
15460 2000-01-13 Andy Piper <andy@xemacs.org>
15462 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15463 fields to subwindow.
15464 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15465 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15466 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15467 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15469 * glyphs-widget.c (check_valid_tab_orientation): new function.
15470 (initialize_widget_image_instance): zero orientation and
15472 (widget_instantiate): pick up orientation.
15473 (tab_control_query_geometry): return appropriate values for
15476 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15477 appropriate creation flags for left, right and bottom tabs.
15479 * s/cygwin32.h: add tab definitions.
15481 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15483 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15484 frame upon hiding a subwindow.
15485 (mswindows_button_instantiate): Changed the push button style to
15487 (mswindows_button_instantiate): Removed button BS_NOTIFY
15489 (mswindows_button_instantiate): Removed redundant check for
15490 a disabled gui item.
15491 (mswindows_button_instantiate): Made use of WS_TABSTOP
15492 consistent: "operable" controls (edit, button, tree, scroll) have
15493 this style, "display-only" ones (static, progress gauge) do
15494 not. This style is currently ignored by XEmacs though. Also,
15495 removed the WS_EX_CONTROLPARENT style - it is not for children,
15496 it is for their parents!
15497 (mswindows_edit_field_instantiate): Ditto.
15498 (mswindows_progress_gauge_instantiate): Ditto.
15499 (mswindows_tree_view_instantiate): Ditto.
15500 (mswindows_tab_control_instantiate): Ditto.
15501 (mswindows_scrollbar_instantiate): Ditto.
15502 (mswindows_combo_box_instantiate): Ditto.
15503 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15504 style to the "clip" window.
15505 (mswindows_button_instantiate): Removed compilation warning by
15506 equally typing terms of the ?: operator.
15508 2000-01-12 Didier Verna <didier@xemacs.org>
15510 * redisplay.c (generate_fstring_runes): new parameter holding the
15511 last modeline-format extent.
15512 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15513 extent, fill the glyph block with it.
15514 (generate_fstring_runes): handle these parameters.
15515 (generate_formatted_string_db): ditto.
15517 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15518 glyphs'extents in the modeline.
15520 1999-01-11 Mike Woolley <mike@bulsara.com>
15522 * ntheap.c: Reduced the reserved heap space from 1Gb down to
15523 256Mb, as a workaround for the non-starting problem many people
15526 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15528 * console-tty.c (Fset_console_tty_output_coding_system):
15529 Force redrawing tty frame.
15531 2000-01-10 Didier Verna <didier@xemacs.org>
15533 * redisplay.c (generate_fstring_runes): fix size computation bug.
15535 2000-01-09 William M. Perry <wmperry@aventail.com>
15537 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15539 2000-01-09 Andy Piper <andy@xemacs.org>
15541 * glyphs-msw.c: index -> i to avoid shadows.
15542 (xbm_create_bitmap_from_data): make static.
15543 (check_valid_string_or_int): deleted.
15544 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15546 * glyphs-x.c (x_update_subwindow): remove unused args.
15548 * glyphs.c (glyph_image_instance): return the thing. Don't set the
15549 back pointer - this is done in allocate_image_instance.
15550 (query_string_font): return Qnil to make the compiler happy.
15551 (unmap_subwindow): set to ~0 to make the compiler happy.
15552 (glyph_query_geometry): comment out until used.
15553 (glyph_layout): ditto.
15555 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
15557 * insdel.c (signal_after_change): Remove extraneous unbind_to().