1 2003-02-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
4 (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
5 ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
7 * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
8 (Vcharset_ideograph_daikanwa): Deleted.
9 (Qideograph_hanziku_{1..12}): Deleted.
10 (Qideograph_daikanwa): Deleted.
11 (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
12 Vcharset_ideograph_daikanwa.
13 (syms_of_mule_charset): Delete `ideograph-daikanwa' and
14 `ideograph-hanziku-{1..12}'.
15 (complex_vars_of_mule_charset): Likewise.
17 2003-02-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
19 * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
21 * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
22 (Qideograph_gt_pj_{1..11}): Deleted.
23 (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
24 (complex_vars_of_mule_charset): Likewise.
26 2003-02-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
28 * mule-charset.c (Vcharset_ucs_big5): Deleted.
29 (Vcharset_ideograph_gt): Deleted.
31 (Qideograph_gt): Deleted.
32 (syms_of_mule_charset): Delete symbol `ucs-big5' and
34 (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
37 * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
38 (LEADING_BYTE_GT): Deleted.
39 (MIN_CHAR_GT): Deleted.
40 (MAX_CHAR_GT): Deleted.
42 2003-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
44 * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
46 2003-01-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
48 * chartab.c (save_uint8_byte_table): Add new argument `filter'.
49 (save_uint16_byte_table): Likewise.
50 (save_byte_table): Likewise; convert values by it.
51 (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
52 for `ideographic-structure'.
53 (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
54 as the filter for `ideographic-structure'.
56 2003-01-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
58 * chartab.c (put_char_composition): New function.
59 (Fput_char_attribute): Use `put_char_composition'; use
60 `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
62 * fns.c (simplify_char_spec): New function.
63 (char_ref_simplify_spec): New function.
64 (Fchar_refs_simplify_char_specs): New function.
65 (syms_of_fns): Add new builtin function
66 `char-refs-simplify-char-specs'.
68 2003-01-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
70 * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
71 (Qideograph_cbeta): Deleted.
72 (syms_of_mule_charset): Don't define `ideograph-cbeta'.
73 (complex_vars_of_mule_charset): Likewise.
75 * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
76 (MIN_CHAR_CBETA): Comment out.
77 (MAX_CHAR_CBETA): Likewise.
79 2002-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
81 * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
82 `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
85 2002-12-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
87 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
89 2002-12-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
91 * mule-charset.c (charset_lookup_description_1): Use
92 `NUM_LEADING_BYTES' in UTF-2000.
94 2002-12-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
96 * char-ucs.h (GC_CHARSETP): Deleted.
98 2002-12-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
100 * char-ucs.h (MAX_CHAR_GT): Updated.
102 2002-12-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
104 * text-coding.c: Sync with XEmacs 21.4.10.
106 2002-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
108 * mule-charset.c (Vcharset_china3_jef): Deleted.
109 (Qchina3_jef): Deleted.
110 (syms_of_mule_charset): Don't define `china3-jef'.
111 (complex_vars_of_mule_charset): Likewise.
113 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
114 (MIN_CHAR_CHINA3_JEF): Comment out.
115 (MAX_CHAR_CHINA3_JEF): Comment out.
117 2002-11-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
119 * mule-charset.c (Vcharset_ucs_gb): New variable.
120 (Qucs_gb): New variable.
121 (syms_of_mule_charset): Add new symbol `ucs-gb'.
122 (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
124 * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
126 2002-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
128 * mule-charset.c (charset_code_point): if a coded-charset has a
129 final-byte, don't inherit the builtin range of the mother CCS.
131 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
133 * mule-charset.c (charset_code_point): Fix problem about
136 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
138 * mule-charset.c (decode_builtin_char): Reorganized.
140 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
142 * text-coding.c (char_encode_as_entity_reference): Modify for
143 `charset_code_point'.
144 (char_encode_shift_jis): Likewise.
145 (char_encode_big5): Likewise.
146 (char_encode_utf8): Likewise.
147 (char_encode_iso2022): Likewise.
149 * mule-charset.c (charset_code_point): Add new argument
151 (Fencode_char): Add new optional argument `defined_only'.
153 * chartab.c (put_char_table): Modify for `charset_code_point'.
155 * char-ucs.h (charset_code_point): Add new argument
157 (encode_char_1): Modify for `charset_code_point'.
159 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
161 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
162 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
164 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
166 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
167 (Qjis_x0208): Likewise.
168 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
169 XCHARSET_FINAL(charset).
170 (charset_code_point): Modify condition for final-byte based
172 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
173 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
174 in UTF-2000; specify `=jis-x0208' as the mother of
175 `japanese-jisx0208-1978', `japanese-jisx0208' and
176 `japanese-jisx0208-1990' in UTF-2000.
178 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
180 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
182 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
184 * text-coding.c (decode_coding_utf16): Support UTF-16.
185 (char_encode_utf16): Fixed.
187 2002-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
189 * text-coding.c (Qutf16): New variable in MULE.
190 (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
191 (Fcoding_system_type): Add `utf-16' in MULE.
192 (struct detection_state): Add a structure for utf16 in MULE.
193 (detect_coding_type): Setup st->utf16.mask in MULE.
194 (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
196 (reset_encoding_stream): Use `char_encode_utf16' and
197 `char_finish_utf16' for `CODESYS_UTF16' in MULE.
198 (detect_coding_utf16): New function [incomplete].
199 (decode_coding_utf16): New function [support only UCS-2].
200 (char_encode_utf16): New function.
201 (char_finish_utf16): New function.
202 (syms_of_file_coding): Add new symbol `utf-16'; setup
203 `coding_category_symbol[CODING_CATEGORY_UTF16]'.
205 * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
207 (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
208 (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
210 2002-10-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
212 * chartab.c (put_char_table): When a charset is specified as a
213 range in UTF-2000, don't support builtin characters.
215 2002-09-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
217 * mule-charset.c (decode_defined_char): Don't refer external
218 database if Qunbound or Qnil are found.
219 (Fsave_charset_mapping_table): Don't define it if
220 HAVE_CHISE_CLIENT is not defined.
221 (Freset_charset_mapping_table): New function.
222 (load_char_decoding_entry_maybe): Store Qnil if a character is not
223 found in external database.
224 (syms_of_mule_charset): Don't define `save-charset-mapping-table'
225 if HAVE_CHISE_CLIENT is not defined; add new builtin function
226 `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
228 2002-09-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
230 * text-coding.c (decode_coding_utf8): Check CCS is specified or
233 2002-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
235 * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
236 Q_lowercase, Q_uppercase in UTF-2000.
238 * chartab.c (get_char_table): Add special code for the standard
239 case table to use character attribute `->downcase' and
240 `->uppercase' for case operations in UTF-2000.
242 * casetab.c (Qflippedcase): New variable in UTF-2000.
243 (Q_lowercase): Likewise.
244 (Q_uppercase): Likewise.
245 (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
246 and `->uppercase' in UTF-2000.
247 (complex_vars_of_casetab): Assign attribute name `downcase' to
248 downcase and CANON table of Vstandard_case_table in UTF-2000;
249 assign attribute name `flippedcase' to upcase and EQV table of
250 Vstandard_case_table in UTF-2000.
252 2002-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
254 * text-coding.c (decode_add_er_char): Support isolated-chars.
255 (char_encode_as_entity_reference): Likewise.
257 2002-08-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
259 * emacs.c (Vutf_2000_lisp_directory): New variable.
260 (Vconfigure_utf_2000_lisp_directory): Likewise.
261 (complex_vars_of_emacs): Add new variable
262 `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
264 2002-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
266 * char-ucs.h (DECODE_CHAR): Delete special code for
267 `chinese-big5-1' and `chinese-big5-2'.
269 * mule-charset.c (Qbig5_1): New variable in UTF-2000.
271 (decode_defined_char): Support CONVERSION_BIG5_1 and
273 (decode_builtin_char): Likewise.
274 (charset_code_point): Likewise.
275 (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
276 'conversion in UTF-2000.
277 (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
278 (complex_vars_of_mule_charset): Define `chinese-big5-1' and
279 `chinese-big5-2' as children of `chinese-big5'.
281 * char-ucs.h (CONVERSION_BIG5_1): New macro.
282 (CONVERSION_BIG5_2): New macro.
284 2002-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
286 * text-coding.c (char_encode_big5): Support entity-reference.
288 2002-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
290 * text-coding.c (char_encode_as_entity_reference): New function.
291 (char_encode_utf8): Use `char_encode_as_entity_reference'.
293 2002-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
295 * text-coding.c (decode_coding_big5): Support entity-reference
298 2002-08-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
300 * text-coding.c (allocate_coding_system): Initialize initial
301 charsets for CODESYS_UTF8.
302 (Fmake_coding_system): Accept charset-g0, charset-g1 and
303 charset-g2 for CODESYS_UTF8.
304 (decode_coding_utf8): Use charset-g0.
305 (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
306 to force variants to map to UCS.
308 2002-07-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
310 * text-coding.c (Qutf_8_mcs): New variable.
311 (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
312 (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
313 instead of `utf-8' in UTF-2000.
315 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
317 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
318 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
319 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
320 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
321 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
322 CONVERSION_96x96x96x96 are introduced.
323 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
324 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
325 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
327 * char-ucs.h (CONVERSION_94): New macro.
328 (CONVERSION_96): New macro.
329 (CONVERSION_94x94): New macro.
330 (CONVERSION_96x96): New macro.
331 (CONVERSION_94x94x94): New macro.
332 (CONVERSION_96x96x96): New macro.
333 (CONVERSION_94x94x94x60): New macro.
334 (CONVERSION_94x94x94x94): New macro.
335 (CONVERSION_96x96x96x96): New macro.
337 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
339 * chartab.c (Vcharacter_variant_table): Deleted.
340 (Fchar_variants): Use character-attribute `->ucs-variants' instead
341 of `Vcharacter_variant_table'.
342 (Fput_char_attribute): Likewise.
343 (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
344 (complex_vars_of_chartab): Likewise.
346 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
348 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
350 * fns.c (Qideographic_structure): New variable.
351 (Qkeyword_char): New variable.
352 (ids_format_unit): New function.
353 (Fideographic_structure_to_ids): New function.
354 (syms_of_fns): Add new symbols `ideographic-structure' and
355 `:char'; add new builtin function `ideographic-structure-to-ids'.
357 * data.c (Fchar_ref_p): New function.
358 (syms_of_data): Add new builtin function `char-ref-p'.
360 * chartab.h: Add an EXFUN for `Ffind_char'.
362 2002-07-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
364 * text-coding.c (Vcharacter_composition_table): Deleted.
365 (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
368 * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
370 (Vcharacter_composition_table): Deleted.
371 (Fget_composite_char): Use the implementation for external-DB
372 support in every UTF-2000.
373 (Fput_char_attribute): Likewise.
374 (char_attribute_system_db_file): Don't define if external-DB
375 feature is not available.
376 (Fsave_char_attribute_table): Likewise.
377 (Fmount_char_attribute_table): Likewise.
378 (Fclose_char_attribute_table): Likewise.
379 (Freset_char_attribute_table): Likewise.
380 (Fload_char_attribute_table): Likewise.
381 (syms_of_chartab): Don't define `save-char-attribute-table',
382 `mount-char-attribute-table', `reset-char-attribute-table',
383 `close-char-attribute-table' and `load-char-attribute-table' if
384 external-DB feature is not available.
385 (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
387 2002-07-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
389 * text-coding.c (Qcomposition): Add extern if external-DB feature
391 (Vcharacter_composition_table): Don't add extern if external-DB
392 feature is supported.
393 (COMPOSE_ADD_CHAR): Modify for new data-representation of
394 character composition rule if external-DB feature is supported.
396 * chartab.c (Vcharacter_composition_table): Don't define if
397 external-DB feature is supported.
398 (Qcomposition): New variable.
399 (Fget_composite_char): New implementation for external-DB support.
400 (Fput_char_attribute): Use `composition' property of each
401 character instead of `Vcharacter_composition_table' to store
402 character-composition rules if external-DB feature is supported.
403 (syms_of_chartab): Add new symbol `composition'.
404 (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
405 external-DB feature is supported.
407 2002-07-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
409 * chartab.c (Vchar_db_stingy_mode): New variable.
410 (load_char_attribute_maybe): Close database if
411 Vchar_db_stingy_mode is not NIL.
412 (Fload_char_attribute_table_map_function): Use
413 `get_char_id_table_0' instead of `get_char_id_table'.
414 (vars_of_chartab): Add new variable `char-db-stingy-mode'.
416 * chartab.h (get_char_id_table_0): New inline function.
417 (get_char_id_table): Use `get_char_id_table_0'.
419 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
421 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
422 and `COMPOSE_ADD_CHAR'.
423 (decode_coding_iso2022): Use `decode_flush_er_chars'.
425 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
427 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
428 instead of `DECODE_ADD_UCS_CHAR'.
429 (COMPOSE_ADD_CHAR): Likewise.
431 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
433 * text-coding.c (decode_flush_er_chars): New inline function.
434 (decode_add_er_char): New function.
435 (decode_coding_utf8): Use `decode_flush_er_chars' and
436 `decode_add_er_char'.
438 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
440 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
441 done before `decode_output_utf8_partial_char'.
443 * mule-charset.c (complex_vars_of_mule_charset): Specify
444 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
445 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
447 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
449 * mule-charset.c (decode_defined_char): New function; search
451 (decode_builtin_char): Don't search mother if
452 XCHARSET_MAX_CODE(charset) == 0.
453 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
454 == 0 even if code >= XCHARSET_MAX_CODE(charset).
455 (Fdecode_char): Use `decode_defined_char' instead of
456 `DECODE_DEFINED_CHAR'.
457 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
458 mother of `Vcharset_ucs_jis'.
460 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
461 instead of `DECODE_DEFINED_CHAR'.
463 * char-ucs.h (decode_defined_char): Renamed from
464 `DECODE_DEFINED_CHAR'; changed to normal function.
465 (DECODE_CHAR): Use `decode_defined_char' instead of
466 `DECODE_DEFINED_CHAR'.
468 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
470 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
472 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
474 * text-coding.c (Vcoded_charset_entity_reference_alist): New
476 (Quse_entity_reference): New variable.
480 (coding_system_description): Add description for
482 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
483 (allocate_coding_system): Initialize `ccs_priority_list' in
485 (Fmake_coding_system): Add description about
486 'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
488 (Fcoding_system_property): Accept `disable-composition' and
489 `use-entity-reference' in UTF-2000.
490 (struct decoding_stream): Add new member `er_counter' and `er_buf'
492 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
493 (decode_coding_utf8): Decode entity-reference if
494 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
495 (char_encode_utf8): Encode non-Unicode characters as
496 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
498 (syms_of_file_coding): Add new symbols `use-entity-reference',
500 (vars_of_file_coding): Add new variable
501 `coded-charset-entity-reference-alist'.
502 (complex_vars_of_file_coding): Declare `disable-composition' and
503 `use-entity-reference' to be coding-system-properties in UTF-2000.
505 * file-coding.h (struct Lisp_Coding_System): Add new member
506 `use_entity_reference' and `ccs_priority_list'.
507 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
508 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
509 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
511 2002-07-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
513 * chartab.c (save_uint8_byte_table): Don't clear the table.
514 (save_uint16_byte_table): Likewise.
515 (save_byte_table): Likewise.
516 (Fmount_char_attribute_table): New function.
517 (syms_of_chartab): Add new builtin function
518 `mount-char-attribute-table'.
520 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
522 * mule-charset.c (Fsave_charset_mapping_table): Open database as
524 (load_char_decoding_entry_maybe): Open database as read-only mode.
526 * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
527 open database as "w+" mode.
528 (load_char_attribute_maybe): Open database as read-only mode.
529 (Fload_char_attribute_table): Likewise.
531 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
533 * chartab.c (mark_char_table): Don't refer `ct->db_file'.
534 (char_table_description): Delete member `db_file'.
535 (Fmake_char_table): Don't refer `ct->db_file'.
536 (Fcopy_char_table): Likewise.
537 (Fsave_char_attribute_table): Likewise.
538 (Fclose_char_attribute_table): Likewise.
539 (Freset_char_attribute_table): Likewise.
540 (load_char_attribute_maybe): Likewise.
541 (Fload_char_attribute_table): Likewise.
543 * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
545 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
547 * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
548 (Fsave_char_attribute_table): Don't check `ct->db_file' if
550 (load_char_attribute_maybe): Likewise.
551 (Fload_char_attribute_table): Likewise.
553 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
555 * chartab.c (Fclose_char_attribute_table): Set Qnil on
556 `ct->db_file' unconditionally.
558 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
560 * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
562 (char_table_description): Add description for `db_file' and `db'
564 (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
566 (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
567 (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
568 (Fclose_char_attribute_table): New function.
569 (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
570 (load_char_attribute_maybe): Change interface; use `cit->db_file'
572 (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
573 (syms_of_chartab): Add new builtin function
574 `Fclose_char_attribute_table'.
576 2002-06-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
578 * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
580 (load_char_attribute_maybe): Change interface.
581 (get_char_id_table): Modify for `load_char_attribute_maybe'.
583 2002-06-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
585 * database.h: Add an EXFUN for `Fdatabase_live_p'.
587 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
589 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
590 instead of `DECODE_CHAR' for mother; don't use special code for
591 chinese-big5 to use code space of chinese-big5-1 and
593 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
594 `MAX_CHAR_BIG5_CDP' for chinese-big5.
596 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
597 (MAX_CHAR_BIG5_CDP): Revival.
599 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
601 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
602 the XLFD registry-encoding name of `chinese-big5'.
604 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
606 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
607 (Qchinese_big5_cdp): Deleted.
608 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
609 (complex_vars_of_mule_charset): Delete coded-charset
612 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
613 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
614 `CHARSET_ID_OFFSET - n' for private CCS.
615 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
616 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
617 of `MIN_LEADING_BYTE'.
618 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
619 `(CHARSET_ID_OFFSET - 97)'.
620 (MIN_CHAR_BIG5_CDP): Deleted.
621 (MAX_CHAR_BIG5_CDP): Deleted.
623 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
625 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
627 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
629 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
630 (vars_of_mule): Add new variable `utf-2000-version' [moved from
633 * chartab.c (Vutf_2000_version): Moved to mule.c.
634 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
636 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
638 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
639 when HAVE_CHISE_CLIENT is not defined.
641 * mule.c (vars_of_mule): Provide feature `chise' when
642 HAVE_CHISE_CLIENT is defined.
644 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
646 * config.h.in (UTF2000): Add comment.
647 (HAVE_CHISE_CLIENT): New macro.
649 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
651 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
653 (Fput_char_attribute): Likewise.
654 (char_attribute_system_db_file): Encode file-name of attribute.
655 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
658 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
660 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
661 (Fsave_charset_mapping_table): Use
662 `char_attribute_system_db_file'.
663 (load_char_decoding_entry_maybe): Likewise.
665 * chartab.h (Qsystem_char_id): New external variable.
666 (char_attribute_system_db_file): New prototype.
668 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
669 (char_attribute_system_db_file): New function.
670 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
671 (Freset_char_attribute_table): Likewise.
672 (load_char_attribute_maybe): Likewise.
673 (Fload_char_attribute_table): Likewise.
674 (syms_of_chartab): Add new symbol `system-char-id'.
676 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
678 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
679 `XCHARSET_GRAPHIC(ccs)'.
681 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
683 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
685 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
687 * chartab.c (Q_ucs_variants): New variable.
688 (syms_of_chartab): Add new symbol `->ucs-variants'.
689 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
690 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
691 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
693 * mule-charset.c (load_char_decoding_entry_maybe): New function.
695 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
696 `HAVE_DATABASE' is defined.
697 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
698 `HAVE_DATABASE' is defined.
700 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
702 * chartab.c (Fsave_char_attribute_table): Don't clear internal
704 (Freset_char_attribute_table): New function.
705 (syms_of_chartab): Add new builtin function
706 `reset-char-attribute-table'.
708 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
710 * chartab.c (load_char_attribute_maybe): Don't make directories.
712 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
714 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
716 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
719 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
721 * mule-charset.c (Fsave_charset_mapping_table): Use
722 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
724 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
725 instead of `XCHARSET_CHARS'.
727 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
729 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
730 (XCHARSET_BYTE_SIZE): Likewise.
732 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
734 (XCHARSET_BYTE_SIZE): Likewise.
736 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
738 * chartab.c (Fput_char_attribute): Use exec-directory instead of
739 data-directory to store database.
740 (Fsave_char_attribute_table): Likewise.
741 (load_char_attribute_maybe): Likewise.
742 (Fload_char_attribute_table): Likewise.
744 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
746 * mule-charset.c (Fsave_charset_mapping_table): New function.
747 (syms_of_mule_charset): Add new builtin function
748 `save-charset-mapping-table'.
750 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
752 * char-ucs.h (decoding_table_check_elements): Delete prototype.
753 (get_ccs_octet_table): New inline function.
754 (put_ccs_octet_table): Likewise.
755 (decoding_table_put_char): Use `get_ccs_octet_table' and
756 `put_ccs_octet_table'.
757 (decoding_table_remove_char): Use `decoding_table_put_char'.
758 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
760 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
762 (make_charset): Use Qunbound instead Qnil as initial value of
765 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
767 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
768 element is Qunloaded.
769 (map_over_uint16_byte_table): Likewise.
770 (map_over_byte_table): Likewise.
771 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
772 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
773 database support, load encoding-table of the specified
774 coded-charset if it is not loaded yet.
775 (save_uint8_byte_table): New function of UTF-2000 with external
777 (save_uint16_byte_table): Likewise.
778 (save_byte_table): Likewise.
779 (Fput_char_attribute): Don't store value into external database
780 even if the external database feature is supported in UTF-2000;
781 set `attribute' as name of char-table if the external database
782 feature is supported.
783 (Fsave_char_attribute_table): New function in UTF-2000.
784 (syms_of_chartab): Add new builtin function
785 `save-char-attribute-table' in UTF-2000.
787 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
789 * chartab.c (char_attribute_table_to_put): New variable in
791 (Qput_char_table_map_function): Likewise.
792 (value_to_put): Likewise.
793 (Fput_char_table_map_function): New function in UTF-2000.
794 (put_char_table): Use `Fmap_char_attribute' for
795 CHARTAB_RANGE_CHARSET in UTF-2000.
796 (Fput_char_attribute): Store symbol instead of string in
797 `XCHAR_TABLE_NAME (table)'.
798 (load_char_attribute_maybe): Likewise.
799 (syms_of_chartab): Add new symbol/function
800 `put-char-table-map-function'.
802 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
804 * database.h: Add new EXFUN for `Fmap_database'.
806 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
807 (syms_of_database): Likewise.
809 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
811 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
812 (XCHAR_TABLE_UNLOADED): Likewise.
814 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
815 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
816 HAVE_DATABASE is defined.
817 (char_attribute_table_to_load): New variable of UTF-2000 with
818 external database support.
819 (Qload_char_attribute_table_map_function): Likewise.
820 (Fload_char_attribute_table_map_function): New function of
821 UTF-2000 with external database support.
822 (Fload_char_attribute_table): New function of UTF-2000.
823 (Fmap_char_attribute): Call Fload_char_attribute_table if
824 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
825 (syms_of_chartab): Add new symbol and function
826 `load-char-attribute-table-map-function' in UTF-2000 with external
827 database support; add new function `load-char-attribute-table' in
830 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
832 * chartab.h (load_char_attribute_maybe): New prototype for
833 UTF-2000 with DATABASE support.
834 (get_char_id_table): Use `load_char_attribute_maybe' if
835 HAVE_DATABASE is defined.
837 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
838 with DATABASE support.
840 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
842 * chartab.c (Fput_char_attribute): Use S-expression as key of
845 * chartab.h (get_char_id_table): Use S-expression as key of
848 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
850 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
851 if an element is not loaded, load the corresponding attributes
852 from an external database.
853 (map_over_uint16_byte_table): Likewise.
854 (map_over_byte_table): Likewise.
855 (map_char_table): Modify for `map_over_uint8_byte_table',
856 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
857 element is not loaded, load the corresponding attributes from an
859 (Fput_char_attribute): Change initial values to Qunloaded.
861 * chartab.h (get_char_id_table): If a character attribute is not
862 loaded and the attribute value is not found in an external
863 database, store Qunbound as the attribute value.
865 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
867 * chartab.c (BT_UINT8_unloaded): New macro.
868 (UINT8_VALUE_P): Accept Qunloaded.
869 (UINT8_ENCODE): Likewise.
870 (UINT8_DECODE): Likewise.
871 (BT_UINT16_unloaded): New macro.
872 (UINT16_VALUE_P): Accept Qunloaded.
873 (UINT16_ENCODE): Likewise.
874 (UINT16_DECODE): Likewise.
875 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
877 (mark_char_table): Mark `ct->name' in UTF-2000.
878 (char_table_description): Add `name' in UTF-2000.
879 (Fmake_char_table): Initialize `ct->name'.
880 (Fcopy_char_table): Copy `ct->name'.
881 (Fput_char_attribute): Store value into an external database if
882 HAVE_DATABASE is defined.
884 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
886 (CHAR_TABLE_NAME): New macro in UTF-2000.
887 (XCHAR_TABLE_NAME): New macro in UTF-2000.
888 (get_char_id_table): Try to read an external database if Qunloaded
889 is stored in a table.
891 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
894 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
896 * database.h: Add EXFUN definitions for Fopen_database,
897 Fput_database, Fget_database and Fclose_database.
899 * data.c (Qunloaded): New variable in UTF-2000.
901 * lisp.h (Qunloaded): New variable in UTF-2000.
903 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
905 * mule-charset.c (put_char_ccs_code_point): Modify for
906 `decoding_table_remove_char' and `decoding_table_put_char'.
907 (remove_char_ccs): Modify for `decoding_table_remove_char'.
909 * char-ucs.h (decoding_table_remove_char): Change arguments to
910 hide decoding_table vector.
911 (decoding_table_put_char): Likewise.
913 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
915 * mule-charset.c (decoding_table_remove_char): Moved to
917 (decoding_table_put_char): Likewise.
919 * char-ucs.h (decoding_table_check_elements): New prototype [moved
920 from mule-charset.c].
921 (decoding_table_remove_char): New inline function [moved from
923 (decoding_table_put_char): Likewise.
925 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
927 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
930 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
932 * mule-charset.c (decode_builtin_char): Support mother charsets.
934 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
936 * mule-charset.c (Q94x94x60): New variable.
937 (charset_code_point): Support conversion `94x94x60'.
938 (Fmake_charset): Likewise.
939 (syms_of_mule_charset): Add new symbol `94x94x60'.
941 * char-ucs.h (CONVERSION_94x94x60): New macro.
943 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
945 * mule-charset.c (charset_code_point): Unify code about
948 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
950 * mule-charset.c (charset_code_point): Merge code about builtin
951 characters into code about mother charsets; don't use
952 `range_charset_code_point'.
953 (range_charset_code_point): Deleted.
955 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
957 * mule-charset.c (Qcode_offset): New variable.
958 (Fmake_charset): Use `XUINT' to get value of `min-code' and
959 `max-code'; accept new property `code-offset'.
960 (syms_of_mule_charset): Add new symbol `code-offset'.
962 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
964 * mule-charset.c (range_charset_code_point): Fixed.
966 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
968 * mule-charset.c (decode_builtin_char): Change semantics of
969 code-offset of coded-charset.
970 (charset_code_point): Likewise.
971 (range_charset_code_point): Likewise.
972 (complex_vars_of_mule_charset): Modify for the change.
974 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
976 * mule-charset.c (Fencode_char): Reverse arguments.
978 * mule-charset.c (charset_code_point): Fixed.
980 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
982 * mule-charset.c (Vcharset_mojikyo): Deleted.
983 (Vcharset_mojikyo_2022_1): Deleted.
984 (Vcharset_mojikyo_pj_{1..21}): Deleted.
985 (Qmin_code): New variable in UTF-2000.
986 (Qmax_code): Likewise.
988 (Qconversion): Likewise.
991 (Qmojikyo_2022_1): Deleted.
992 (Qmojikyo_pj_{1..22}): Deleted.
993 (mark_charset): Mark `cs->mother'.
994 (charset_description): Add description for `mother'.
995 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
996 new arguments `mother' and `conversion'; use
997 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
998 (charset_code_point): Moved from char-ucs.h; support `mother'
1000 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1001 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1002 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1003 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1004 allow 2 as the value of `graphic' in UTF-2000; add new properties
1005 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1006 require `final' in UTF-2000; modify for `make_charset'.
1007 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1008 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1009 (Fcharset_property): Support `mother', `min-code' and `max-code'.
1010 (Fencode_char): New function.
1011 (syms_of_mule_charset): Add new builtin function `encode-char' in
1012 UTF-2000; add new symbols `min-code', `max-code', `mother',
1013 `conversion' and `94x60'; delete symbols `mojikyo',
1014 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1015 (complex_vars_of_mule_charset): Modify for `make_charset' change;
1016 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1017 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1019 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1020 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1022 * char-ucs.h (Vcharset_mojikyo): Deleted.
1023 (Vcharset_mojikyo_2022_1): Deleted.
1024 (LEADING_BYTE_MOJIKYO): Deleted.
1025 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1026 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1027 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1028 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1029 add new member `mother'; add new member `conversion'.
1030 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1031 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1032 (CHARSET_MOTHER): New macro.
1033 (CHARSET_CONVERSION): New macro.
1034 (CONVERSION_IDENTICAL): New macro.
1035 (CONVERSION_94x60): New macro.
1036 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1037 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1038 (XCHARSET_MOTHER): New macro.
1039 (XCHARSET_CONVERSION): New macro.
1040 (MIN_CHAR_MOJIKYO): Deleted.
1041 (MAX_CHAR_MOJIKYO): Deleted.
1042 (DECODE_MOJIKYO_2022): Deleted.
1043 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1044 (charset_code_point): Changed to non-inline function.
1045 (encode_char_1): Use `charset_code_point'.
1046 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1048 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1050 * lread.c (read_compiled_function): Fix prototype.
1051 (read_vector): Likewise.
1053 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1055 * lrecord.h (struct lrecord_header): Delete `older'.
1056 (set_lheader_implementation): Delete code for `older'.
1057 (set_lheader_older_implementation): Deleted.
1058 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1059 (OLDER_RECORD_P): Deleted.
1060 (OLDER_RECORD_HEADER_P): Deleted.
1061 (alloc_older_lcrecord): Deleted.
1062 (alloc_older_lcrecord_type): Deleted.
1064 * alloc.c (all_older_lcrecords): Deleted.
1065 (alloc_older_lcrecord): Deleted.
1066 (disksave_object_finalization_1): Delete code for older objects.
1067 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1068 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1070 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1072 * mule-charset.c (decoding_table_put_char): Use `make_vector'
1073 instead of `make_older_vector'.
1074 (put_char_ccs_code_point): Likewise.
1075 (mark_charset): Mark `cs->decoding_table'.
1076 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1078 * lisp.h (make_older_vector): Deleted.
1079 (make_vector_newer): Deleted.
1081 * config.h.in (HAVE_GGC): Deleted.
1083 * alloc.c (make_older_vector): Deleted.
1084 (make_vector_newer_1): Deleted.
1085 (make_vector_newer): Deleted.
1087 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1089 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1090 (Qideograph_daikanwa_2): New variable.
1091 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1092 (complex_vars_of_mule_charset): Add new coded-charset
1093 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1094 `LEADING_BYTE_DAIKANWA'.
1096 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1097 (LEADING_BYTE_DAIKANWA_1): New macro.
1098 (LEADING_BYTE_DAIKANWA_2): New macro.
1099 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1101 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1103 * mule-charset.c (complex_vars_of_mule_charset): Change
1104 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1105 the second revised version.
1107 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1109 * mule-charset.c (Vcharset_ucs_smp): New variable.
1110 (Vcharset_ucs_sip): New variable.
1111 (Qucs_smp): New variable.
1112 (Qucs_sip): New variable.
1113 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1114 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1115 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1116 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1117 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1118 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1120 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1121 (LEADING_BYTE_UCS_SIP): New macro.
1122 (MIN_CHAR_SMP): New macro.
1123 (MAX_CHAR_SMP): New macro.
1124 (MIN_CHAR_SIP): New macro.
1125 (MAX_CHAR_SIP): New macro.
1127 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
1129 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1132 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1134 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1135 value; don't store value into `encoding_table' of `Lisp_Charset'.
1136 (mark_charset): `encoding_table' was deleted.
1137 (charset_description): Likewise.
1138 (make_charset): Likewise.
1139 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1140 `put_char_ccs_code_point'.
1142 * chartab.h (Fput_char_attribute): New EXFUN.
1144 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1145 is unified with normal symbol space.
1146 (Fget_char_attribute): Likewise.
1147 (Fput_char_attribute): Likewise; behavior of
1148 `put_char_ccs_code_point' is changed.
1150 * char-ucs.h: Include "elhash.h".
1151 (Vchar_attribute_hash_table): New external variable.
1152 (struct Lisp_Charset): Delete `encoding_table'.
1153 (CHARSET_ENCODING_TABLE): New implementation; refer
1154 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1157 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1159 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1162 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1164 * text-coding.c (char_encode_big5): Prefer charset-g1 than
1167 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1169 * chartab.c (uint8_byte_table_description): New constant.
1170 (uint8-byte-table): Use `uint8_byte_table_description'.
1171 (uint16_byte_table_description): New constant.
1172 (uint16-byte-table): Use `uint16_byte_table_description'.
1174 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1176 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1177 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1179 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1181 * mule-charset.c (Vcharset_ucs_ks): New variable.
1182 (Qucs_ks): New variable.
1183 (syms_of_mule_charset): Add new symbol `ucs-ks'.
1184 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1186 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1188 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1190 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1191 (Fdecode_char): Likewise.
1193 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1195 (Fdefine_char): Modify for Fdecode_char.
1196 (Ffind_char): Likewise.
1198 * mule-charset.c (Fdecode_char): Add new optional argument
1200 (Fdecode_builtin_char): Modify for `Fdecode_char'.
1202 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1204 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1205 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1206 (allocate_coding_system): Initialize initial-charsets of
1207 CODESYS_BIG5 in XEmacs UTF-2000.
1208 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1209 CODESYS_BIG5 in XEmacs UTF-2000.
1210 (decode_coding_big5): Use initial-charset-g0 and -g1 of
1211 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1213 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1215 (Qideograph_hanziku_{1 .. 12}): Likewise.
1216 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1218 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1219 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1220 `ideograph-hanziku-{1 .. 12}'.
1222 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1223 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1224 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1225 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1226 (DECODE_DEFINED_CHAR): New inline function.
1227 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1229 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1231 * mule-charset.c (Vcharset_china3_jef): Renamed from
1232 `Vcharset_japanese_jef_china3'.
1233 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1234 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1235 `{MIN|MAX}_CHAR_JEF_CHINA3'..
1236 (syms_of_mule_charset): Rename `china3-jef' from
1237 `japanese-jef-china3'.
1238 (complex_vars_of_mule_charset): Likewise; rename
1239 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1241 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1242 `LEADING_BYTE_JEF_CHINA3'.
1243 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1244 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1246 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1248 * mule-charset.c (encode_builtin_char_1): Comment out special code
1249 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1251 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1252 (MAX_CHAR_MOJIKYO_0): Comment out.
1253 (MIN_CHAR_CBETA): Changed to 0x00E20000.
1254 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1255 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1256 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1258 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1260 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1261 (Qideograph_cbeta): New variable.
1262 (encode_builtin_char_1): Comment out special code for
1263 coded-charset `mojikyo' and `japanese-jef-china3'.
1264 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1265 (complex_vars_of_mule_charset): Add new coded-charset
1268 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1269 (MIN_CHAR_CBETA): New macro.
1270 (MAX_CHAR_CBETA): New macro.
1272 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1274 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1275 (LEADING_BYTE_JEF_CHINA3): New macro.
1276 (MIN_CHAR_JEF_CHINA3): New macro.
1277 (MAX_CHAR_JEF_CHINA3): Likewise.
1278 (DECODE_CHAR): Fixed.
1280 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1282 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1283 (Qjapanese_jef_china3): New variable.
1284 (encode_builtin_char_1): Support `japanese-jef-china3'.
1285 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1286 (complex_vars_of_mule_charset): Add new coded-charset
1287 `japanese-jef-china3'.
1289 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1291 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1292 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1293 94^4, 96^3, 96^4, 128^n and 256^n set.
1294 (put_char_table): Use `XCHARSET_CELL_RANGE'.
1295 (map_char_table): Likewise.
1297 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1299 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1302 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1304 * chartab.h (get_char_id_table): New inline function.
1306 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1309 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1311 * chartab.h (decode_char_table_range): New prototype in XEmacs
1313 (put_char_id_table): New inline function in XEmacs UTF-2000.
1315 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1317 (decode_char_table_range): Delete static declaration in XEmacs
1320 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1322 * chartab.c (put_char_id_table): Use `put_char_table'.
1324 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1326 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1327 (map_over_uint16_byte_table): Likewise.
1328 (map_over_byte_table): Likewise.
1329 (map_char_table): Modify for `map_over_uint8_byte_table',
1330 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1333 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1335 * chartab.c (struct map_char_table_for_charset_arg): New
1337 (map_char_table_for_charset_fun): New function.
1338 (map_char_table): Use `map_char_table' for encoding_table of
1341 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1343 * chartab.c (map_char_table): Check a character is found in
1344 range->charset instead of non default value is defined in
1345 char-table when range is CHARTAB_RANGE_ROW.
1347 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1349 * chartab.c (map_char_id_table): Deleted.
1350 (Fmap_char_attribute): Use `map_char_table' instead of
1351 `map_char_id_table'.
1353 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1355 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1357 (update_syntax_table): Deleted in XEmacs UTF-2000.
1359 * syntax.c (find_defun_start): Use `syntax_table' instead of
1360 `mirror_syntax_table' in XEmacs UTF-2000.
1361 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1363 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1365 (Fmatching_paren): Likewise.
1366 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1368 (find_start_of_comment): Likewise.
1369 (find_end_of_comment): Likewise.
1370 (Fforward_comment): Likewise.
1371 (scan_lists): Likewise.
1372 (char_quoted): Likewise.
1373 (Fbackward_prefix_chars): Likewise.
1374 (scan_sexps_forward): Likewise.
1375 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1376 (update_syntax_table): Likewise.
1378 * search.c (skip_chars): Use `syntax_table' instead of
1379 `mirror_syntax_table' in XEmacs UTF-2000.
1380 (wordify): Likewise.
1381 (Freplace_match): Likewise.
1383 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1384 `mirror_syntax_table' in XEmacs UTF-2000.
1385 (WORDCHAR_P_UNSAFE): Likewise.
1386 (re_match_2_internal): Likewise.
1388 * font-lock.c (find_context): Use `buf->syntax_table' instead of
1389 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1391 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1392 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1394 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1397 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1399 (print_char_table): Print `default_value' in XEmacs UTF-2000.
1400 (char_table_description): Delete `mirror_table' in XEmacs
1402 (fill_char_table): Don't call `update_syntax_table' in XEmacs
1404 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1405 (Fcopy_char_table): Likewise.
1406 (put_char_table): Don't call `update_syntax_table' in XEmacs
1409 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1410 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1411 (casify_region_internal): Likewise.
1413 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1415 * buffer.c (common_init_complex_vars_of_buffer): Don't use
1416 `mirror_syntax_table' in XEmacs UTF-2000.
1418 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1419 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1420 (Fexpand_abbrev): Likewise.
1422 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1424 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1426 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1428 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1429 (map_over_uint16_byte_table): Likewise.
1430 (map_over_byte_table): Likewise.
1431 (get_char_id_table): Refer `cit->default_value'.
1432 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1433 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1434 of character-id ranges.
1435 (mark_char_table): Mark `ct->default_value'.
1436 (char_table_description): Add `default_value'.
1437 (fill_char_table): Use `default_value'.
1438 (decode_char_table_range): Decode `nil' as
1439 `CHARTAB_RANGE_DEFAULT'.
1440 (get_char_id_table): Refer `cit->default_value'.
1441 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1442 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1443 temporary hack; check value of char-table is bound or not.
1444 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1446 * chartab.h (struct Lisp_Char_Table): Add new member
1447 `default_value' in XEmacs UTF-2000.
1448 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1449 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1452 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1454 * chartab.h (Lisp_Char_ID_Table): Deleted.
1456 * chartab.c (char_table_description): Fix typo.
1457 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1458 `Lisp_Char_ID_Table'.
1460 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1462 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1465 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1468 * chartab.h (XCHAR_ID_TABLE): Deleted.
1469 (XSETCHAR_ID_TABLE): Deleted.
1470 (CHAR_ID_TABLE_P): Deleted.
1472 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1474 (Fget_composite_char): Likewise.
1475 (put_char_table): Likewise.
1476 (add_char_attribute_alist_mapper): Fixed.
1477 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1479 (Fget_char_attribute): Likewise.
1480 (Fget_char_attribute): Likewise.
1481 (Fmap_char_attribute): Likewise.
1483 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1485 (encode_char_1): Likewise.
1487 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1489 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1492 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1493 instead of `XCHAR_ID_TABLE'.
1494 (remove_char_ccs): Likewise.
1496 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1498 (Fget_composite_char): Likewise.
1499 (Fchar_variants): Likewise.
1500 (put_char_table): Likewise.
1501 (add_char_attribute_alist_mapper): Likewise.
1502 (Fchar_attribute_alist): Likewise.
1503 (Fget_char_attribute): Likewise.
1504 (Fput_char_attribute): Likewise.
1505 (Fmap_char_attribute): Likewise.
1506 (Fmap_char_attribute): Likewise.
1508 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1510 (encode_char_1): Likewise.
1512 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1514 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1515 `Lisp_Char_ID_Table'.
1516 (mark_char_id_table): Deleted.
1517 (print_char_id_table): Likewise.
1518 (char_id_table_equal): Likewise.
1519 (char_id_table_hash): Likewise.
1520 (char_id_table_description): Likewise.
1521 (char_id_table): Likewise.
1522 (make_char_id_table): Use `Fmake_char_table' and
1524 (get_char_id_table): Use `Lisp_Char_Table' instead of
1525 `Lisp_Char_ID_Table'.
1526 (put_char_id_table): Likewise.
1527 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1529 (Fremove_char_attribute): Likewise.
1530 (syms_of_chartab): Don't define type `char-id-table'.
1532 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1533 (char_id_table): Likewise.
1534 (GC_CHAR_ID_TABLE_P): Likewise.
1535 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1536 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1537 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1538 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1539 (get_char_id_table): Use `Lisp_Char_Table' instead of
1540 `Lisp_Char_ID_Table'.
1541 (put_char_id_table_0): Likewise.
1542 (put_char_id_table): Likewise.
1544 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1546 * chartab.h: Lisp_Byte_Table related codes are moved from
1549 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1551 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1553 * chartab.h: Don't include "chartab.h".
1554 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1555 (Lisp_Char_ID_Table): Likewise.
1556 (char_id_table): Likewise.
1557 (XCHAR_ID_TABLE): Likewise.
1558 (XSETCHAR_ID_TABLE): Likewise.
1559 (CHAR_ID_TABLE_P): Likewise.
1560 (GC_CHAR_ID_TABLE_P): Likewise.
1561 (get_char_id_table): Likewise.
1563 * char-ucs.h: Include "chartab.h".
1564 (struct Lisp_Char_ID_Table): Moved to chartab.h.
1565 (Lisp_Char_ID_Table): Likewise.
1566 (char_id_table): Likewise.
1567 (XCHAR_ID_TABLE): Likewise.
1568 (XSETCHAR_ID_TABLE): Likewise.
1569 (CHAR_ID_TABLE_P): Likewise.
1570 (GC_CHAR_ID_TABLE_P): Likewise.
1571 (get_char_id_table): Likewise.
1573 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1575 * chartab.c (copy_uint8_byte_table): New function.
1576 (copy_uint16_byte_table): New function.
1577 (copy_byte_table): New function.
1578 (map_over_uint8_byte_table): Modify to avoid huge numbers of
1580 (map_over_uint16_byte_table): Likewise.
1581 (map_over_byte_table): Likewise.
1582 (get_byte_table): Move prototype to chartab.h.
1583 (put_byte_table): Likewise.
1584 (put_char_id_table_0): Moved to chartab.h.
1585 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1586 (char_table_entry_equal): Likewise.
1587 (char_table_entry_hash): Likewise.
1588 (char_table_entry_description): Likewise.
1589 (char_table_entry): Likewise.
1590 (make_char_table_entry): Likewise.
1591 (copy_char_table_entry): Likewise.
1592 (get_non_ascii_char_table_value): Likewise.
1593 (map_over_charset_ascii): Likewise.
1594 (map_over_charset_control_1): Likewise.
1595 (map_over_charset_row): Likewise.
1596 (map_over_other_charset): Likewise.
1597 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1598 (print_char_table): Likewise.
1599 (char_table_equal): Likewise.
1600 (char_table_hash): Likewise.
1601 (char_table_description): Likewise.
1602 (fill_char_table): Likewise.
1603 (Fcopy_char_table): Likewise.
1604 (get_char_table): Likewise.
1605 (Fget_range_char_table): Likewise.
1606 (put_char_table): Likewise.
1607 (map_char_table): Likewise.
1608 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1611 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1613 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1614 `Vauto_fill_chars' in XEmacs UTF-2000.
1616 * chartab.h (get_byte_table): New prototype [moved from
1618 (put_byte_table): Likewise [moved from chartab.c].
1619 (put_char_id_table_0): New inline function [moved from chartab.c].
1620 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1621 (Lisp_Char_Table_Entry): Likewise.
1622 (char_table_entry): Likewise.
1623 (XCHAR_TABLE_ENTRY): Likewise.
1624 (XSETCHAR_TABLE_ENTRY): Likewise.
1625 (CHAR_TABLE_ENTRYP): Likewise.
1626 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1627 (NUM_ASCII_CHARS): Likewise.
1628 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1629 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1631 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1633 * chartab.c (get_char_id_table): Change interface.
1634 (put_char_id_table_0): New function.
1635 (put_char_id_table): Change interface; new implementation.
1636 (Fget_composite_char): Modify for interface change of
1637 `get_char_id_table'.
1638 (Fchar_variants): Likewise.
1639 (add_char_attribute_alist_mapper): Likewise.
1640 (Fchar_attribute_alist): Likewise.
1641 (Fget_char_attribute): Likewise.
1642 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1643 as same as character as the first argument like `put-char-table';
1644 modify for interface change of `put_char_id_table'.
1645 (Fremove_char_attribute): Modify for interface change of
1646 `put_char_id_table'.
1648 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1650 * text-coding.c: Sync up with XEmacs 21.2.41.
1651 (COMPOSE_ADD_CHAR): Modify for interface change of
1652 `get_char_id_table'.
1654 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1655 change of `put_char_id_table'.
1656 (remove_char_ccs): Likewise.
1658 * chartab.h (put_char_id_table): Change interface.
1660 * char-ucs.h (get_char_id_table): Change interface.
1661 (charset_code_point): Modify for interface change of
1662 `get_char_id_table'.
1663 (encode_char_1): Likewise.
1665 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1667 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1669 (map_over_uint16_byte_table): Likewise.
1670 (map_over_byte_table): Likewise.
1671 (map_char_id_table): Add new argument `range' like
1673 (Fmap_char_attribute): Add new argument `range' like
1676 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1678 * chartab.c (map_over_uint8_byte_table): Change interface of
1679 mapping function to use struct chartab_range instead of Emchar.
1680 (map_over_uint16_byte_table): Likewise.
1681 (map_over_byte_table): Likewise.
1682 (map_char_id_table): Likewise.
1683 (struct slow_map_char_id_table_arg): Deleted.
1684 (slow_map_char_id_table_fun): Deleted.
1685 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1686 function `slow_map_char_table_fun' instead of struct
1687 `slow_map_char_id_table_arg' and function
1688 `slow_map_char_id_table_fun'.
1690 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1692 * mule-charset.c: Move char-it-table related codes to chartab.c.
1693 (Vutf_2000_version): Moved to chartab.c.
1694 (Fdefine_char): Likewise.
1695 (Ffind_char): Likewise.
1696 (syms_of_mule_charset): Move types `uint8-byte-table',
1697 `uint16-byte-table', `byte-table' and `char-id-table' to
1698 chartab.c; move functions `char_attribute_list,
1699 `find_char_attribute_table, `char_attribute_alist,
1700 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1701 `map_char_attribute, `define_char, `find_char, `char_variants and
1702 `get_composite_char to chartab.c; move symbols `=>ucs',
1703 `->decomposition', `compat', `isolated', `initial', `medial',
1704 `final', `vertical', `noBreak', `fraction', `super', `sub',
1705 `circle', `square', `wide', `narrow', `small' and `font' to
1707 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1708 setting codes for `Vcharacter_composition_table' and
1709 `Vcharacter_variant_table' to chartab.c.
1710 (complex_vars_of_mule_charset): Move setting code for
1711 `Vchar_attribute_hash_table' to chartab.c.
1713 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1714 (make_char_id_table): New prototype.
1715 (put_char_id_table): Likewise.
1716 (Fget_char_attribute): Likewise.
1718 * chartab.c: Move char-id-table related code from mule-charset.c.
1719 (Vutf_2000_version): Moved from mule-charset.c.
1721 * char-ucs.h (Qucs): New external variable.
1722 (put_char_ccs_code_point): New prototype.
1723 (remove_char_ccs): Likewise.
1725 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1727 * mule-charset.c (Vcharset_ucs_jis): New variable.
1728 (Qucs_jis): Likewise.
1729 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1730 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1732 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1734 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1736 * mule-charset.c (map_over_uint8_byte_table): New function.
1737 (map_over_uint16_byte_table): Likewise.
1738 (map_over_byte_table): Likewise.
1739 (map_char_id_table): Likewise.
1740 (slow_map_char_id_table_fun): Likewise.
1741 (Fmap_char_attribute): Likewise.
1742 (syms_of_mule_charset): Add new function `map-char-attribute'.
1744 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1746 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1747 (syms_of_mule_charset): Add new function `find-char'.
1749 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1751 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1753 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1754 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1756 (complex_vars_of_mule_charset): Add new coded-charset
1757 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1758 `ideograph-gt-pj-*'.
1760 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1762 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1764 * mule-charset.c (encode_builtin_char_1): Purge codes about
1765 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1766 {MIN|MAX}_CHAR_HEBREW.
1767 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1768 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1770 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1771 (MAX_CHAR_GREEK): Purged.
1772 (MIN_CHAR_CYRILLIC): Purged.
1773 (MAX_CHAR_CYRILLIC): Purged.
1774 (MIN_CHAR_HEBREW): Commented out.
1775 (MAX_CHAR_HEBREW): Likewise.
1777 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1779 * mule-charset.c (Qto_ucs): New variable.
1780 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1781 (Fdefine_char): Likewise.
1782 (syms_of_mule_charset): Add new symbol `=>ucs'.
1784 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1786 * mule-charset.c (Fdecode_char): Fixed.
1788 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1790 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1791 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1794 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1796 * mule-charset.c (Vcharset_ucs_big5): New variable.
1797 (Qucs_big5): Likewise.
1798 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1799 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1801 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1803 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1805 * mule-charset.c (decode_builtin_char): Check Big5 code range
1806 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1808 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1810 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1811 (Qchinese_gb12345): Likewise.
1812 (Fdecode_builtin_char): Fixed.
1813 (syms_of_mule_charset): Add `chinese-gb12345'.
1814 (complex_vars_of_mule_charset): Add coded-charset
1817 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1818 (LEADING_BYTE_CHINESE_GB12345): New macro.
1820 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1822 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1823 and `latin-viscii-upper' for `latin-viscii'.
1825 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1827 * mule-charset.c (Fdecode_builtin_char): Comment out
1828 regularization code for ISO-IR GR representation.
1830 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1832 * mule-charset.c (decode_builtin_char): New function; renamed from
1833 `make_builtin_char'; return -1 instead of signal.
1834 (Fdecode_builtin_char): Use `decode_builtin_char'.
1836 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1837 `make_builtin_char'.
1838 (DECODE_CHAR): Use `decode_builtin_char' instead of
1839 `make_builtin_char'; use mapping table of `chinese-big5' for
1840 `chinese-big5-{1,2}'.
1842 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1844 * text-coding.c (char_encode_big5): New function.
1845 (char_finish_big5): Likewise.
1846 (reset_encoding_stream): Use `char_encode_big5' and
1847 `char_finish_big5' for CODESYS_BIG5.
1848 (mule_encode): Don't use `encode_coding_big5'.
1849 (encode_coding_big5): Deleted.
1851 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1853 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1854 0x81- in XEmacs UTF-2000.
1855 (detect_coding_big5): Likewise.
1857 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1859 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1860 generate character-id if the CCS property does not have
1861 corresponding predefined character.
1862 (make_builtin_char): Return -1 if corresponding predefined
1863 character is not found.
1864 (Fdecode_char): Return nil if corresponding character is not
1866 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1867 don't map to builtin ucs space.
1869 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1871 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1872 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1874 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1876 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1877 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1878 (Qideograph_gt): Likewise.
1879 (Qideograph_gt_pj_{1..11}): Likewise.
1880 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1881 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1882 `ideograph-gt-pj-11'.
1883 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1884 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1885 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1887 * char-ucs.h (LEADING_BYTE_GT): New macro.
1888 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1889 (MIN_CHAR_GT): Likewise.
1890 (MAX_CHAR_GT): Likewise.
1892 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1894 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1895 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1897 * doprnt.c (unsigned_int_converters): Add `c'.
1898 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1900 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1901 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1903 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1904 (MAX_CHAR_MOJIKYO_0): New macro.
1905 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1907 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1909 * mule-charset.c (Fdefine_char): Delete cemented out code.
1910 (encode_builtin_char_1): Modify for new allocation of builtin
1913 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1915 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1917 * mule-charset.c (Vcharset_ucs_cns): New variable.
1918 (Qucs_cns): New variable.
1919 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1920 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1922 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1924 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1926 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1928 * search.c (search_buffer): Make `charset_base_code' as
1929 character-id >> 6 to eliminate the corresponding last byte in
1930 UTF-8 representation [I'm not sure it is right thing].
1931 (boyer_moore): Likewise.
1933 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1935 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1936 representation in MULE.
1938 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1940 * text-coding.c (Fmake_coding_system): Use
1941 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1942 `EXTERNAL_PROPERTY_LIST_LOOP'.
1944 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1946 * text-coding.c (decode_output_utf8_partial_char): New function.
1947 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1949 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1951 * text-coding.c (decode_coding_utf8): Output original byte
1952 sequence if it is broken; change order of conditions.
1954 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1957 * mb-multibyte.h (BYTE_ASCII_P):
1958 Use bit ops for char-signedness safety.
1959 (BYTE_C0_P): Use bit ops for char-signedness safety.
1960 (BYTE_C1_P): Use bit ops for char-signedness safety.
1962 * character.h: (XCHAR_OR_CHAR_INT):
1963 Always use inline function.
1964 Remove redundant type checking assert() - XINT will abort quite
1967 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1969 * text-coding.c: (Fencode_shift_jis_char):
1970 (Fencode_big5_char):
1971 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1972 Replace 0 with '\0' when working with bytes.
1973 Replace initial "(" with "\(" in docstrings.
1975 (Fmake_coding_system):
1976 When type is ccl and value is vector, register it with a proper
1977 symbol. And checks whether the given ccl program is valid.
1978 (mule_decode): When calling ccl_driver, if src indicates
1979 NULL pointer, set an empty string instead.
1980 (mule_encode): Likewise.
1983 (detect_coding_sjis):
1984 (decode_coding_sjis):
1985 (detect_coding_big5):
1986 (decode_coding_big5):
1987 (detect_coding_ucs4):
1988 (decode_coding_ucs4):
1989 (detect_coding_utf8):
1990 (decode_coding_utf8):
1991 (detect_coding_iso2022):
1992 (decode_coding_iso2022):
1993 (decode_coding_no_conversion):
1995 Make all detecting and decoding functions take an Extbyte * arg.
1996 (text_encode_generic):
1997 (encode_coding_big5):
1998 (encode_coding_no_conversion):
2000 Make all encoding functions take a Bufbyte * arg.
2001 Use size_t instead of unsigned int for memory sizes.
2002 Only cast to unsigned char whenever dereferencing Extbyte *.
2004 (struct lrecord_description fcd_description_1): Use countof.
2005 (complex_vars_of_file_coding):
2006 Use countof instead of sizeof.
2007 Use CHECK_NATNUM instead of CHECK_INT.
2009 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2011 * mule-charset.c (Fget_char_attribute): Add new optional argument
2013 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2014 (remove_char_ccs): Likewise.
2016 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2018 * text-coding.c (char_encode_shift_jis): New implementation in
2020 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2023 * mule-charset.c (Vcharset_chinese_big5): New variable in
2025 (Qchinese_big5): New variable in UTF-2000.
2026 (BIG5_SAME_ROW): New macro in UTF-2000.
2027 (make_builtin_char): Use builtin characters of
2028 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2029 characters of `Vcharset_chinese_big5'.
2030 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2031 (complex_vars_of_mule_charset): Add new coded-charset
2032 `chinese-big5' in UTF-2000.
2034 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2035 (Vcharset_chinese_big5): New external variable declaration.
2036 (Vcharset_japanese_jisx0208_1990): Likewise.
2038 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2040 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2042 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2044 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2046 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2047 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2048 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2051 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2053 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2055 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2057 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2060 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2062 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2063 for `CHARSET_BY_ATTRIBUTES'.
2064 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2065 `CHARSET_BY_ATTRIBUTES'.
2067 * text-coding.c (struct decoding_stream): Rename member `CH' to
2069 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2070 (decode_coding_sjis): Likewise.
2071 (decode_coding_big5): Likewise.
2072 (decode_coding_ucs4): Likewise.
2073 (decode_coding_utf8): Likewise.
2074 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2075 `CHARSET_BY_ATTRIBUTES'.
2076 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2077 `str->counter'; decode 3, 4 bytes sets.
2078 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2080 (decode_coding_no_conversion): Use `str->cpos' instead of
2083 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2084 (Qmojikyo_2022_1): New variable.
2085 (make_charset): Don't use `CHARSET_TYPE_*'.
2086 (range_charset_code_point): Support coded-charset
2088 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2089 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2090 `CHARSET_BY_ATTRIBUTES'.
2091 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2092 `CHARSET_BY_ATTRIBUTES'.
2093 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2094 (complex_vars_of_mule_charset): Add new coded-charset
2097 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2098 interface; changed to inline function.
2100 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2101 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2102 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2103 (CHARSET_TYPE_94): Deleted.
2104 (CHARSET_TYPE_94X94): Deleted.
2105 (CHARSET_TYPE_96): Deleted.
2106 (CHARSET_TYPE_96X96): Deleted.
2107 (CHARSET_TYPE_128): Deleted.
2108 (CHARSET_TYPE_128X128): Deleted.
2109 (CHARSET_TYPE_256): Deleted.
2110 (CHARSET_TYPE_256X256): Deleted.
2111 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2113 (DECODE_MOJIKYO_2022): New inline function.
2114 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2115 `Vcharset_mojikyo_2022_1'.
2117 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2119 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2121 (put_byte_table): Likewise.
2122 (char_id_table_equal): Use `get_byte_table' [new implementation].
2124 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2126 * mule-charset.c: Include <limits.h> in UTF-2000.
2127 (BT_UINT8_MIN): New macro in UTF-2000.
2128 (BT_UINT8_MAX): New macro in UTF-2000.
2129 (BT_UINT8_t): New macro in UTF-2000.
2130 (BT_UINT8_nil): New macro in UTF-2000.
2131 (BT_UINT8_unbound): New macro in UTF-2000.
2132 (INT_UINT8_P): New inline function in UTF-2000.
2133 (UINT8_VALUE_P): New inline function in UTF-2000.
2134 (UINT8_ENCODE): New inline function in UTF-2000.
2135 (UINT8_DECODE): New inline function in UTF-2000.
2136 (mark_uint8_byte_table): New function in UTF-2000.
2137 (print_uint8_byte_table): New function in UTF-2000.
2138 (uint8_byte_table_equal): New function in UTF-2000.
2139 (uint8_byte_table_hash): New function in UTF-2000.
2140 (make_uint8_byte_table): New function in UTF-2000.
2141 (uint8_byte_table_same_value_p): New function in UTF-2000.
2142 (BT_UINT16_MIN): New macro in UTF-2000.
2143 (BT_UINT16_MAX): New macro in UTF-2000.
2144 (BT_UINT16_t): New macro in UTF-2000.
2145 (BT_UINT16_nil): New macro in UTF-2000.
2146 (BT_UINT16_unbound): New macro in UTF-2000.
2147 (INT_UINT16_P): New inline function in UTF-2000.
2148 (UINT16_VALUE_P): New inline function in UTF-2000.
2149 (UINT16_ENCODE): New inline function in UTF-2000.
2150 (UINT16_DECODE): New inline function in UTF-2000.
2151 (UINT8_TO_UINT16): New inline function in UTF-2000.
2152 (mark_uint16_byte_table): New function in UTF-2000.
2153 (print_uint16_byte_table): New function in UTF-2000.
2154 (uint16_byte_table_equal): New function in UTF-2000.
2155 (uint16_byte_table_hash): New function in UTF-2000.
2156 (make_uint16_byte_table): New function in UTF-2000.
2157 (uint16_byte_table_same_value_p): New function in UTF-2000.
2158 (print_byte_table): New function in UTF-2000.
2159 (byte-table): Use `print_byte_table' as printer.
2160 (make_byte_table): Delete second argument `older'.
2161 (byte_table_same_value_p): New function in UTF-2000.
2162 (copy_byte_table): Deleted.
2163 (get_byte_table): New function in UTF-2000.
2164 (put_byte_table): New function in UTF-2000.
2165 (print_char_id_table): New function in UTF-2000.
2166 (char-id-table): Use `print_char_id_table' as printer.
2167 (make_char_id_table): Delete second argument `older'.
2168 (get_char_id_table): Use `get_byte_table [new implementation].
2169 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2171 (Ffind_char_attribute_table): New function in UTF-2000.
2172 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2173 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2174 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2175 (syms_of_mule_charset): Add new function
2176 `find-char-attribute-table' in UTF-2000.
2178 * lrecord.h (enum lrecord_type): Add
2179 `lrecord_type_uint16_byte_table' and
2180 `lrecord_type_uint8_byte_table'.
2182 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2183 (Lisp_Uint8_Byte_Table): New type.
2184 (XUINT8_BYTE_TABLE): New macro.
2185 (XSETUINT8_BYTE_TABLE): New macro.
2186 (UINT8_BYTE_TABLE_P): New macro.
2187 (GC_UINT8_BYTE_TABLE_P): New macro.
2188 (struct Lisp_Uint16_Byte_Table): New structure.
2189 (Lisp_Uint16_Byte_Table): New type.
2190 (XUINT16_BYTE_TABLE): New macro.
2191 (XSETUINT16_BYTE_TABLE): New macro.
2192 (UINT16_BYTE_TABLE_P): New macro.
2193 (GC_UINT16_BYTE_TABLE_P): New macro.
2195 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2197 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2198 (Vcharacter_ideographic_strokes_table): Deleted.
2199 (Vcharacter_total_strokes_table): Deleted.
2200 (Vcharacter_morohashi_daikanwa_table): Deleted.
2201 (Vcharacter_decomposition_table): Deleted.
2202 (Qname): Deleted because it is duplicated.
2203 (Qideographic_radical): Deleted.
2204 (Qideographic_strokes): Deleted.
2205 (Qtotal_strokes): Deleted.
2206 (Qmorohashi_daikanwa): Deleted.
2207 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2208 `ideographic-radical', `ideographic-strokes', `total-strokes',
2209 `morohashi-daikanwa' and `->decomposition'.
2210 (Fget_char_attribute): Likewise.
2211 (Fput_char_attribute): Likewise; use `make-vector' instead of
2212 `make_older_vector' for `->decomposition' value.
2213 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2214 `ideograph-daikanwa'.
2215 (syms_of_mule_charset): Delete builtin symbols `name',
2216 `ideographic-radical', `ideographic-strokes', `total-strokes' and
2217 `morohashi-daikanwa'.
2218 (vars_of_mule_charset): Don't setup
2219 `Vcharacter_ideographic_radical_table',
2220 `Vcharacter_ideographic_strokes_table',
2221 `Vcharacter_total_strokes_table',
2222 `Vcharacter_morohashi_daikanwa_table' and
2223 `Vcharacter_decomposition_table'.
2225 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2227 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2228 `make_older_vector', `make_vector_newer_1' and
2229 `make_vector_newer'.
2231 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2232 `make_older_vector' and `make_vector_newer'.
2234 * config.h.in (HAVE_GGC): New macro.
2236 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2238 * mule-charset.c (struct char_attribute_list_closure): New
2239 structure in UTF-2000.
2240 (add_char_attribute_to_list_mapper): New function in UTF-2000.
2241 (Fchar_attribute_list): Likewise.
2242 (Fset_charset_mapping_table): Use `make_vector_newer'.
2243 (Fdecode_builtin_char): New function in UTF-2000.
2244 (syms_of_mule_charset): Add new function `char-attribute-list' and
2245 `decode-builtin-char' in UTF-2000.
2247 * lisp.h (make_vector_newer): New prototype.
2249 * alloc.c (make_vector_newer_1): New function.
2250 (make_vector_newer): New function.
2252 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2254 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2257 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2259 * mule-charset.c (Vchar_attribute_hash_table): New variable.
2260 (Vcharacter_attribute_table): Deleted.
2261 (Vcharacter_name_table): Deleted.
2262 (put_char_attribute): Deleted.
2263 (remove_char_attribute): Deleted.
2264 (struct char_attribute_alist_closure): New structure.
2265 (add_char_attribute_alist_mapper): New function.
2266 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2267 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2268 (Fget_char_attribute): Likewise.
2269 (Fput_char_attribute): Likewise.
2270 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2271 of `remove_char_attribute'.
2272 (Fdefine_char): Return character.
2273 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2274 and `Vcharacter_name_table'.
2275 (complex_vars_of_mule_charset): Likewise
2276 `Vchar_attribute_hash_table'.
2278 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2280 * character.h (CHARC_CHARSET): New macro.
2281 (CHARC_CHARSET_ID): New macro.
2282 (CHARC_CODE_POINT): New macro.
2283 (CHARC_COLUMNS): New macro.
2284 (CHARC_TO_CHAR): New inline function.
2285 (CHARC_EQ): New inline function.
2286 (CHARC_ASCII_EQ): New inline function.
2287 (CHARC_IS_SPACE): New inline function.
2288 (ASCII_TO_CHARC): New inline function.
2290 * char-ucs.h (encode_char_2): Deleted.
2291 (ENCODE_CHAR): Use `encode_char_1' again.
2292 (breakup_char_1): Likewise.
2293 (CHAR_TO_CHARC): New inline function.
2295 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2297 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2299 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2300 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2301 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2302 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2303 (create_string_text_block): Use `CHARC_ASCII_EQ' and
2305 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2307 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2309 (x_output_display_block): Use `CHARC_CHARSET' and
2312 * redisplay-tty.c (tty_output_display_block): Use
2314 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2316 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2318 * insdel.c (find_charsets_in_charc_string): Use
2320 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2321 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2322 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2323 (convert_charc_string_into_malloced_string): Likewise.
2325 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2327 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2328 instead of <Emchar_dynarr *> for buf; use
2329 `convert_bufbyte_string_into_charc_dynarr' instead of
2330 `convert_bufbyte_string_into_emchar_dynarr'; use
2331 `find_charsets_in_charc_string' instead of
2332 `find_charsets_in_emchar_string'.
2335 - Include "character.h".
2336 (struct rune): New member `cglyph'; delete member `chr'.
2338 * redisplay.c (redisplay_text_width_charc_string): New function;
2339 delete `redisplay_text_width_emchar_string'.
2340 (rtw_charc_dynarr): New variable; renamed from
2341 `rtw_emchar_dynarr'.
2342 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2343 `rtw_emchar_dynarr'; use
2344 `convert_bufbyte_string_into_charc_dynarr' instead of
2345 `convert_bufbyte_string_into_emchar_dynarr'; use
2346 `redisplay_text_width_charc_string' instead of
2347 `redisplay_text_width_emchar_string'.
2348 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2349 instead of `rtw_emchar_dynarr'; use
2350 `convert_bufbyte_string_into_charc_dynarr' instead of
2351 `convert_bufbyte_string_into_emchar_dynarr'.
2352 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2353 `redisplay_text_width_charc_string' instead of
2354 `redisplay_text_width_emchar_string'.
2355 (create_text_block): Modify for <struct rune> change.
2356 (generate_formatted_string_db): Likewise.
2357 (create_string_text_block): Likewise.
2358 (pixel_to_glyph_translation): Likewise.
2360 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2361 instead of <const Emchar *>.
2362 (x_text_width): Likewise.
2363 (x_output_display_block): Use <Charc_dynarr *> instead
2364 <Emchar_dynarr *>; modify for <structure rune> change.
2365 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2368 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2369 <const Emchar *>; use `charc_string_displayed_columns' instead of
2370 `emchar_string_displayed_columns'.
2371 (tty_output_display_block): Use <Charc_dynarr *> instead of
2372 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2373 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2374 (tty_output_charc_dynarr_dynarr): New variable; renamed from
2375 `tty_output_emchar_dynarr_dynarr'.
2376 (tty_output_charc_dynarr): New function; delete
2377 `tty_output_charc_dynarr'.
2379 * redisplay-output.c (compare_runes): Modify for `struct rune'.
2380 (redisplay_output_layout): Use <Charc_dynarr *> instead of
2381 <Emchar_dynarr *> for buf; use
2382 `convert_bufbyte_string_into_charc_dynarr' instead of
2383 `convert_bufbyte_string_into_emchar_dynarr'.
2385 * frame.c (title_string_charc_dynarr): New variable; renamed from
2386 `title_string_emchar_dynarr'.
2387 (generate_title_string): Use `title_string_charc_dynarr' instead
2388 of `title_string_emchar_dynarr'; use
2389 `convert_charc_string_into_malloced_string' instead of
2390 `convert_emchar_string_into_malloced_string'.
2391 (init_frame): Use `title_string_charc_dynarr' instead of
2392 `title_string_emchar_dynarr'.
2395 - Include "character.h".
2396 (struct console_methods): Use <const Charc *> instead of <const
2397 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2398 <Emchar_dynarr *> in output_string_method.
2400 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2403 * console-stream.c (stream_text_width): Use <const Charc *>
2404 instead of <const Emchar *>.
2406 * character.h (Charc_dynarr): New type.
2408 * char-ucs.h (structure Charc): New structure; define new type
2411 * char-lb.h (DECODE_CHAR): New inline function.
2412 (encode_char_1): New inline function.
2413 (ENCODE_CHAR): New macro.
2414 (structure Charc): New structure; define new type `Charc'.
2416 * char-1byte.h (Vcharset_control_1): New macro.
2417 (Vcharset_latin_iso8859_1): New macro.
2418 (DECODE_CHAR): New inline function.
2419 (encode_char_1): New inline function.
2420 (ENCODE_CHAR): New macro.
2421 (structure Charc): New structure; define new type `Charc'.
2423 * insdel.c (find_charsets_in_charc_string): New function; delete
2424 `find_charsets_in_emchar_string'.
2425 (charc_string_displayed_columns): New function; delete
2426 `emchar_string_displayed_columns'.
2427 (convert_bufbyte_string_into_charc_dynarr): New function; delete
2428 `convert_bufbyte_string_into_emchar_dynarr'.
2429 (convert_charc_string_into_bufbyte_dynarr): New function; delete
2430 `convert_charc_string_into_bufbyte_dynarr'.
2431 (convert_charc_string_into_malloced_string): New function; delete
2432 `convert_charc_string_into_malloced_string'.
2434 * buffer.h (find_charsets_in_charc_string): New prototype; delete
2435 `find_charsets_in_emchar_string'.
2436 (charc_string_displayed_columns): New prototype; delete
2437 `emchar_string_displayed_columns'.
2438 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2439 `convert_charc_string_into_bufbyte_dynarr'.
2440 (convert_charc_string_into_malloced_string): New prototype; delete
2441 `convert_charc_string_into_malloced_string'.
2443 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2445 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2447 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2449 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2451 * char-ucs.h: Use <short> for <Charset_ID>.
2453 * mule-charset.h, char-1byte.h: Use <unsigned char> for
2456 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2458 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2461 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2463 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2465 (Qmorohashi_daikanwa): New variable.
2466 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2467 for `morohashi-daikanwa' attribute.
2468 (Fget_char_attribute): Likewise.
2469 (Fput_char_attribute): Likewise.
2470 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2471 has the same value of `ideograph-daikanwa'.
2472 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2473 (vars_of_mule_charset): Setup
2474 `Vcharacter_morohashi_daikanwa_table'.
2476 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2478 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2480 (add_charset_to_list_mapper): Add `key' instead of
2481 `XCHARSET_NAME (value)' to return aliases.
2483 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2485 * mule-charset.c (Vcharacter_ideographic_radical_table): New
2487 (Vcharacter_ideographic_strokes_table): New variable.
2488 (Qideographic_radical): New variable.
2489 (Qideographic_strokes): New variable.
2490 (Fchar_attribute_alist): Use
2491 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2492 attribute; use `Vcharacter_ideographic_strokes_table' for
2493 `ideographic-strokes' attribute.
2494 (Fget_char_attribute): Likewise.
2495 (Fput_char_attribute): Likewise.
2496 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2497 `ideographic-strokes'.
2498 (vars_of_mule_charset): Setup
2499 `Vcharacter_ideographic_radical_table' and
2500 `Vcharacter_ideographic_strokes_table'.
2502 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2504 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2505 (Qtotal_strokes): New variable.
2506 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2507 `total-strokes' attribute.
2508 (Fget_char_attribute): Likewise.
2509 (Fput_char_attribute): Likewise.
2510 (syms_of_mule_charset): Add new symbol `total-strokes'.
2511 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2513 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2515 * mule-charset.c (Vcharacter_decomposition_table): New variable.
2516 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2518 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2519 `->decomposition' attribute.
2520 (Fput_char_attribute): Likewise.
2521 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2523 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2525 * mule-charset.c (decoding_table_check_elements): New function.
2526 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2528 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2530 * mule-charset.c (Fset_charset_mapping_table): Use
2531 `put_char_ccs_code_point'.
2533 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2535 * mule-charset.c (decoding_table_put_char): New inline function.
2536 (put_char_ccs_code_point): Use `decoding_table_put_char'.
2538 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2540 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2541 (XCHARSET_BYTE_SIZE): New macro.
2542 (decoding_table_remove_char): New inline function.
2543 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2544 `decoding_table_remove_char'.
2545 (remove_char_ccs): Use `decoding_table_remove_char'.
2546 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2548 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2550 * mule-charset.c (Vcharacter_name_table): New variable.
2551 (Qname): New variable.
2552 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2554 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2555 `Vcharacter_name_table' for `name' attribute.
2556 (Fremove_char_attribute): Use function `remove_char_ccs'.
2557 (put_char_ccs_code_point): New function.
2558 (remove_char_ccs): New function.
2559 (syms_of_mule_charset): Add new symbol `name'.
2560 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2562 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2564 * mule-charset.c (make_byte_table): Add new argument `older'.
2565 (make_char_id_table): Likewise.
2566 (copy_char_id_table): Comment out because it is not used.
2567 (put_char_id_table): Modify for `make_byte_table'.
2568 (Fput_char_attribute): Make encoding_table as older object;
2569 inherit older bit of `Vcharacter_composition_table'.
2570 (mark_charset): Don't mark `cs->encoding_table'.
2571 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2572 normal object; make `Vcharacter_composition_table' as an older
2573 object; delete staticpro for `Vcharacter_composition_table'; make
2574 `Vcharacter_variant_table' as a normal object.
2576 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2577 (mark_object): Don't check older object in UTF-2000.
2579 * lrecord.h (struct lrecord_header): Add new member `older' in
2581 (set_lheader_implementation): Setup `SLI_header->older' in
2583 (set_lheader_older_implementation): New macro in UTF-2000.
2584 (OLDER_RECORD_P): New macro in UTF-2000.
2585 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2586 (alloc_older_lcrecord): New prototype in UTF-2000.
2587 (alloc_older_lcrecord_type): New macro in UTF-2000.
2589 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2591 * mule-charset.c (byte_table_description): Use
2592 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2593 (char_id_table_description): Delete bogus `, 1'.
2594 (Fget_char_attribute): Refer encoding_table of each coded-charset
2595 to get value of coded-charset attribute of a character.
2596 (Fput_char_attribute): Use `make_older_vector' instead of
2597 `make_vector'; use encoding_table of each coded-charset to store
2598 value of coded-charset attribute of a character.
2599 (Fremove_char_attribute): Use encoding_table of each coded-charset
2600 to store value of coded-charset attribute of a character.
2601 (mark_charset): Mark `cs->encoding_table'; don't mark
2602 `cs->decoding_table'.
2603 (charset_description): Add description of new member
2605 (make_charset): Initialize `encoding_table'.
2607 * char-ucs.h (struct Lisp_Charset): Add new member
2609 (CHARSET_ENCODING_TABLE): New macro.
2610 (XCHARSET_ENCODING_TABLE): New macro.
2611 (charset_code_point): New implementation.
2612 (encode_char_1): Likewise.
2614 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2615 (disksave_object_finalization_1): Call finalizers of
2616 `all_older_lcrecords' in UTF-2000.
2617 (make_older_vector): New function in UTF-2000.
2618 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2621 * lisp.h (make_older_vector): New prototype in UTF-2000.
2623 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2625 * lrecord.h (enum lrecord_type): Rename
2626 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2628 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2629 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2630 `get_char_code_table'.
2632 * mule-charset.c (mark_char_id_table): Renamed from
2633 `mark_char_code_table'.
2634 (char_id_table_equal): Renamed from `char_code_table_equal'.
2635 (char_id_table_hash): Renamed from `char_code_table_hash'.
2636 (make_char_id_table): Renamed from `make_char_code_table'.
2637 (copy_char_id_table): Renamed from `copy_char_code_table'.
2638 (get_char_id_table): Renamed from `get_char_code_table'.
2639 (put_char_id_table): Renamed from `put_char_code_table'.
2640 (to_char_id): Renamed from `to_char_code'.
2642 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2643 `Lisp_Char_Code_Table'.
2644 (char_id_table): Renamed from `char_code_table'.
2645 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2646 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2647 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2648 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2649 (get_char_id_table): Renamed from `get_char_code_table'.
2651 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2653 * lrecord.h (enum lrecord_type): Rename
2654 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2656 * mule-charset.c (mark_byte_table): Renamed from
2657 `mark_char_byte_table'.
2658 (byte_table_equal): Renamed from `char_byte_table_equal'.
2659 (byte_table_hash): Renamed from `byte_table_hash'.
2660 (make_byte_table): Renamed from `make_byte_table'.
2661 (copy_byte_table): Renamed from `copy_char_byte_table'.
2663 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2664 `Lisp_Char_Byte_Table'.
2665 (byte_table): Renamed from `char_byte_table'.
2666 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2667 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2668 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2669 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2671 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2673 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2674 (dfc_convert_to_internal_format): Likewise.
2676 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2677 * text-coding.c (Fcoding_system_alias_p): New function.
2678 * text-coding.c (Fcoding_system_aliasee): New function.
2679 * text-coding.c (append_suffix_to_symbol): New function.
2680 * text-coding.c (dangling_coding_system_alias_p): New function.
2681 * text-coding.c (Ffind_coding_system):
2682 * text-coding.c (Fcopy_coding_system):
2683 * text-coding.c (encode_coding_no_conversion):
2684 * text-coding.c (syms_of_file_coding):
2685 * text-coding.c (vars_of_file_coding):
2686 Rewrite coding system alias code.
2687 Allow nested aliases, like symbolic links.
2688 Allow redefinition of coding system aliases.
2689 Prevent existence of dangling coding system aliases.
2690 Eliminate convert_to_external_format.
2691 Eliminate convert_to_internal_format.
2693 * text-coding.c: Change enum eol_type to eol_type_t.
2695 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2697 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2698 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2700 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2701 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2703 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2705 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2706 `ideograph-daikanwa'.
2708 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2709 (Vcharset_ucs_bmp): Likewise.
2710 (Vcharset_mojikyo): Add new extern variable definition.
2711 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2712 (Vcharset_latin_iso8859_3): Likewise.
2713 (Vcharset_latin_iso8859_4): Likewise.
2714 (Vcharset_latin_iso8859_9): Likewise.
2715 (Vcharset_latin_viscii_lower): Likewise.
2716 (Vcharset_latin_viscii_upper): Likewise.
2717 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2718 `mojikyo' code-point is used to decode.
2719 (encode_char_2): New function [to convert `mojikyo' code-point to
2720 Mojikyo font encoding].
2721 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2722 (breakup_char_1): Likewise.
2723 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2725 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2727 * text-coding.c (Fmake_coding_system): Add document about
2728 `disable-composition' property.
2730 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2732 * text-coding.c (Qdisable_composition): New variable; delete
2734 (Fmake_coding_system): Add new property `disable-composite';
2735 delete property `composite'.
2736 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2737 instead of `!CODING_SYSTEM_COMPOSITE'.
2738 (syms_of_file_coding): Add new symbol `disable-composition';
2739 delete symbol `composite'.
2741 * file-coding.h (struct Lisp_Coding_System): Add
2742 `disable_composition'; delete `enable_composition'.
2743 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2744 `CODING_SYSTEM_COMPOSITE'.
2745 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2746 `XCODING_SYSTEM_COMPOSITE'.
2748 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2750 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2753 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2755 * text-coding.c (Qcomposite): New variable.
2756 (Fmake_coding_system): Add new property `composite'.
2757 (struct decoding_stream): Add `combined_char_count',
2758 `combined_chars' and `combining_table' in UTF-2000.
2759 (COMPOSE_FLUSH_CHARS): New macro.
2760 (COMPOSE_ADD_CHAR): New macro.
2761 (reset_decoding_stream): Reset `str->combined_char_count' and
2762 `str->combining_table' in UTF-2000.
2763 (decode_coding_iso2022): Modify for character-decomposition.
2764 (syms_of_file_coding): Add new symbol `composite'.
2766 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2768 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2769 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2770 of `Vcharacter_composition_table' if `->decomposition' property
2772 (Qlatin_tcvn5712): New variable.
2773 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2774 (complex_vars_of_mule_charset): Add new coded-charset
2777 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2779 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2781 * file-coding.h (struct Lisp_Coding_System): Add
2782 `enable_composition'.
2783 (CODING_SYSTEM_COMPOSITE): New macro.
2784 (XCODING_SYSTEM_COMPOSITE): New macro.
2786 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2788 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2790 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2792 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2793 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2795 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2797 * mule-charset.c (Vcharset_mojikyo): New variable.
2798 (Fdefine_char): Don't use coded-charset which does not have
2799 non-builtin character range to allocate character-id.
2800 (Qmojikyo): New variable.
2801 (syms_of_mule_charset): Add new symbol `mojikyo'.
2802 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2804 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2805 (LEADING_BYTE_MOJIKYO): New macro.
2806 (MIN_CHAR_MOJIKYO): New macro.
2807 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2808 (MAX_CHAR_MOJIKYO): New macro.
2810 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2812 * mule-charset.c (remove_char_attribute): Fixed.
2814 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2816 * mule-charset.c (remove_char_attribute): New function.
2817 (Fremove_char_attribute): New function.
2818 (encode_builtin_char_1): Comment out builtin-support for
2819 greek-iso8859-7 and cyrillic-iso8859-5.
2820 (Fdecode_char): Check `code' is an integer.
2821 (syms_of_mule_charset): Add `remove-char-attribute'.
2822 (MIN_CHAR_GREEK): Deleted.
2823 (MAX_CHAR_GREEK): Likewise.
2824 (MIN_CHAR_CYRILLIC): Likewise.
2825 (MAX_CHAR_CYRILLIC): Likewise.
2826 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2827 MAX_CHAR_GREEK for `greek-iso8859-7'.
2829 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2830 (MAX_CHAR_GREEK): Likewise.
2831 (MIN_CHAR_CYRILLIC): Likewise.
2832 (MAX_CHAR_CYRILLIC): Likewise.
2834 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2836 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2837 format is used without `ucs' property.
2838 (Fdecode_char): Fix problem with GR representation.
2839 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2840 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2842 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2844 * mule-charset.c (make_builtin_char): New function.
2845 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2846 (Fset_charset_mapping_table): Modify for new representation of
2848 (Fdecode_char): New function.
2849 (syms_of_mule_charset): Add new builtin function `decode-char' in
2852 * char-ucs.h (make_builtin_char): New prototype.
2853 (DECODE_CHAR): New inline function.
2854 (MAKE_CHAR): Use `DECODE_CHAR'.
2856 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2858 * text-coding.c (parse_charset_conversion_specs): Use
2859 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2861 (iso2022_designate): Likewise.
2863 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2864 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2866 * mule-charset.c (Vcharset_ucs): New variable.
2867 (print_charset): Change design; use `CHARSET_CHARS' and
2868 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2869 (make_charset): Change signature to specify `chars' and
2870 `dimension' instead of `type'.
2871 (range_charset_code_point): Modify for 256^n-set.
2872 (encode_builtin_char_1): Encode as `ucs' in default.
2873 (Fmake_charset): Modify for `make_charset'.
2874 (Fmake_reverse_direction_charset): Likewise.
2875 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2877 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2880 * char-ucs.h (Vcharset_ucs): New variable.
2881 (LEADING_BYTE_UCS): New macro.
2882 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2883 and `chars' to `unsigned short' from `unsigned int'.
2884 (CHARSET_TYPE): Deleted.
2885 (XCHARSET_TYPE): Deleted.
2887 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2889 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2891 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2892 (ENCODE_CHAR): New macro.
2894 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2896 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2897 to 0.14 (Kawachi-Katakami).
2899 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2901 * text-coding.c (char_encode_shift_jis): Modify for
2902 `charset_code_point'.
2903 (char_encode_iso2022): Likewise.
2905 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2906 (integer) instead of list of <Lisp_Object>s (integers) as the
2907 format of code-point of a coded-charset.
2908 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2909 (encode_builtin_char_1): New function; delete
2910 `split_builtin_char'.
2911 (charset_code_point): Return <int> instead of <Lisp_Object>.
2912 (Fsplit_char): Don't use `SPLIT_CHAR'.
2914 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2915 prototype for `split_builtin_char'.
2916 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2917 (charset_code_point): Likewise.
2918 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2919 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2921 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2923 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2924 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2926 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2928 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2930 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2931 (MAX_CHAR_OBS_94x94): Deleted.
2933 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2935 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2937 * char-ucs.h (MAX_CHAR_BMP): New macro.
2939 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2941 * text-coding.c: Sync with r21-2-24.
2943 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2945 * file-coding.c: Modify for UTF-2000.
2947 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2949 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2952 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2954 * mule-charset.c (split_builtin_char): Delete builtin support for
2955 `katakana-jisx0201'.
2956 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2957 BMP area in builtin representation.
2959 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2960 `Vcharset_katakana_jisx0201'.
2962 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2964 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2965 (Qisolated): New variable.
2966 (Qinitial): New variable.
2967 (Qmedial): New variable.
2968 (Qfinal): New variable.
2969 (Qvertical): New variable.
2970 (Qsmall): New variable.
2971 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2972 `Qvertical' and `Qsmall'.
2973 (Qmojikyo_pj_[1 .. 21]): New variable.
2974 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2975 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2976 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2979 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2981 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2982 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2983 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2985 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2987 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2988 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2990 (Qjapanese_jisx0208_1990): New variable.
2991 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2992 (complex_vars_of_mule_charset): Add new coded-charset
2993 `japanese-jisx0208-1990'.
2995 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2996 (MIN_CHAR_JIS_X0208_1990): New macro.
2997 (MAX_CHAR_JIS_X0208_1990): New macro.
2999 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
3001 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3002 coded-charset is not found.
3004 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
3006 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3007 (Fdefine_char): Use `Fmake_char'.
3009 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3011 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3012 (Vcharset_hiragana_jisx0208): Deleted.
3013 (Vcharset_katakana_jisx0208): Deleted.
3014 (Qideograph_daikanwa): New variable.
3015 (Qhiragana_jisx0208): Deleted.
3016 (Qkatakana_jisx0208): Deleted.
3017 (split_builtin_char): Split `ideograph-daikanwa'.
3018 (Fsplit_char): New implementation for UTF-2000.
3019 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3020 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3021 (complex_vars_of_mule_charset): Add new coded-charset
3022 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3023 `katakana-jisx0208'.
3025 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3026 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3027 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3028 (MIN_CHAR_DAIKANWA): New macro.
3029 (MAX_CHAR_DAIKANWA): New macro.
3031 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3033 * data.c (Fstring_to_number): Don't recognize floating point if
3036 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3038 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3040 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3042 * mule-charset.c (Qsquare): New variable.
3043 (to_char_code): Add `Qsquare'.
3044 (syms_of_mule_charset): Add new symbol `square'.
3046 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3048 * mule-charset.c (Qcircle): New variable.
3049 (to_char_code): Add `Qcircle'.
3050 (syms_of_mule_charset): Add new symbol `circle'.
3052 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3054 * mule-charset.c (Qfont): New variable.
3055 (to_char_code): Add `Qfont'.
3056 (syms_of_mule_charset): Add new symbol `font'.
3058 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3060 * mule-charset.c (Qsub): New variable.
3061 (to_char_code): Add `Qsub'.
3062 (syms_of_mule_charset): Add new symbol `sub'.
3064 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3066 * mule-charset.c (Fput_char_attribute): Convert each element of
3067 VALUE to GL position if ATTRIBUTE is a GR-set,
3069 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3071 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3072 coded-charset is a GR-set.
3074 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3076 * mule-charset.c (Fput_char_attribute): Check each element of
3077 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3079 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3081 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3083 (Qethiopic_ucs): New variable in UTF-2000.
3084 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3085 (complex_vars_of_mule_charset): Add new coded-charset
3086 `ethiopic-ucs' in UTF-2000.
3088 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3089 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3091 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3093 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3095 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3097 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3100 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3102 * mule-charset.c (Vcharacter_variant_table): New variable.
3103 (Q_ucs): New variable.
3104 (Fchar_variants): New function.
3105 (Fput_char_attribute): Register `->ucs' value to
3106 `Vcharacter_variant_table'.
3107 (syms_of_mule_charset): Add new function `char-variants' and new
3109 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3111 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3113 * mule-charset.c (get_char_code_table): Allow negative character
3115 (put_char_code_table): Likewise.
3116 (Vcharacter_composition_table): New variable.
3117 (Q_decomposition): New variable.
3118 (Qwide): New variable.
3119 (Qnarrow): New variable.
3120 (Qcompat): New variable.
3121 (QnoBreak): New variable.
3122 (Qsuper): New variable.
3123 (Qfraction): New variable.
3124 (to_char_code): New function.
3125 (Fget_composite_char): New function.
3126 (Fput_char_attribute): Register `->decomposition' value to
3127 `Vcharacter_composition_table'.
3128 (syms_of_mule_charset): Add new function `get-composite-char', new
3129 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3130 `super' and `fraction'.
3131 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3133 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3135 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3136 character; copy the return value.
3138 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3140 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3142 * mule-charset.c (range_charset_code_point): Must use make_int.
3143 (split_builtin_char): New function.
3145 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3147 * mule-charset.c (char_byte_table): Change name from
3148 "char-code-table" to "char-byte-table".
3149 (mark_char_code_table): New function.
3150 (char_code_table_equal): New function.
3151 (char_code_table_hash): New function.
3152 (char_code_table_description): New constant.
3153 (char_code_table): New type.
3154 (make_char_code_table): New function.
3155 (copy_char_code_table): New function.
3156 (get_char_code_table): Modify for `char_code_table' type.
3157 (put_char_code_table): Likewise.
3158 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3161 * char-ucs.h (char_code_table): New type.
3162 (XCHAR_CODE_TABLE): New macro.
3163 (XSETCHAR_CODE_TABLE): New macro.
3164 (CHAR_CODE_TABLE_P): New macro.
3165 (GC_CHAR_CODE_TABLE_P): New macro.
3166 (struct Lisp_Char_Code_Table): New structure.
3168 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3170 * mule-charset.c (Fmake_charset): Setup byte_offset for
3173 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
3175 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3178 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3180 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3183 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3185 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3186 charset, it is regarded as a charset.
3187 (put_char_attribute): New function in UTF-2000.
3188 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3189 charset, mapping-table of the charset is modified.
3190 (Fdefine_char): New function in UTF-2000.
3191 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3192 `Fput_char_attribute'.
3193 (syms_of_mule_charset): Add new function `define-char' and new
3194 symbol `ucs' in UTF-2000.
3195 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3197 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3199 * mule-charset.c (Fcharset_name): Define `byte_offset' in
3200 non-UTF-2000 configuration.
3202 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3204 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3205 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3207 * mule-charset.c (mark_charset): `cs->encoding_table' has been
3209 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3210 (Fset_charset_mapping_table): Likewise.
3212 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3213 (CHARSET_ENCODING_TABLE): Delete.
3214 (XCHARSET_ENCODING_TABLE): Delete.
3215 (charset_code_point): New interface.
3217 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3219 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3220 instead of `charset_get_byte1' and `charset_get_byte2'.
3222 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3223 (charset_get_byte2): Deleted.
3225 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3227 * char-ucs.h (SPLIT_CHAR): New inline function.
3228 (breakup_char_1): Use `SPLIT_CHAR'.
3230 * mule-charset.c (range_charset_code_point): New function.
3231 (charset_code_point): New function.
3233 * char-ucs.h (range_charset_code_point): New interface.
3234 (breakup_char_1): Use `range_charset_code_point'.
3236 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3238 * mule-charset.c (Fmake_charset): Delete unused local variable
3241 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3242 (breakup_char_1): Find a charset and code-point in
3243 `Vcharacter_attribute_table'.
3245 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3247 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3250 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3252 * mule-charset.c (Vcharacter_attribute_table): New variable.
3253 (Fchar_attribute_alist): New function.
3254 (Fget_char_attribute): New function.
3255 (Fput_char_attribute): New function.
3256 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3258 (syms_of_mule_charset): Add new function `char-attribute-alist',
3259 `get-char-attribute' and `put-char-attribute'.
3260 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3262 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
3264 * mule-charset.c (Fmake_charset): Just use
3265 `get_unallocated_leading_byte'.
3267 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3268 sets; don't use final-byte based number for private sets.
3270 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3272 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3275 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3277 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3280 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3282 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3283 of `CHAR_LEADING_BYTE' in UTF-2000.
3285 * insdel.c (find_charsets_in_bufbyte_string): Use
3286 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3287 (find_charsets_in_emchar_string): Likewise.
3289 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3290 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3292 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3293 (CHAR_CHARSET_ID): New macro.
3295 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3297 * chartab.c (get_char_table): Don't use type `Charset_ID' for
3298 charset-id - MIN_LEADING_BYTE.
3299 (put_char_table): Likewise.
3301 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3303 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3304 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3305 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3306 (CHARSET_ID_OFFSET): New macro.
3307 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3308 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3309 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3310 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3312 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3314 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3315 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3316 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3317 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3318 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3320 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3322 * mule-charset.c (next_allocated_leading_byte): New variable in
3324 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3325 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3326 (get_unallocated_leading_byte): Simply use
3327 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3328 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3331 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3332 (MAX_LEADING_BYTE_PRIVATE): New macro.
3333 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3334 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3336 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3338 * mule-charset.c (Fmake_charset): Allocate final-byte based
3339 charset-id for 94-set, 96-set and 94x94-set.
3341 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3343 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3345 (Fmake_charset): Likewise.
3346 (complex_vars_of_mule_charset): Modify the font registry of
3347 `ucs-bmp' not to match `Ethiopic-Unicode'.
3349 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3351 * mule-charset.c (complex_vars_of_mule_charset): Add font
3352 registory of `ucs-bmp'.
3354 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3356 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3357 coded-charsets in `default-coded-charset-priority-list' when
3358 breaking up a character.
3360 * mule-charset.c (Vcharset_latin_viscii): New variable.
3361 (Qlatin_viscii): New variable.
3362 (make_charset): Don't use `decoding_table'.
3363 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3365 (Fset_charset_mapping_table): New implementation.
3366 (syms_of_mule_charset): Add new symbol `latin-viscii'.
3367 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3368 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3369 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3370 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3371 charset `latin_viscii'.
3373 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3374 (CHARSET_TYPE_94X94): Change to 1 from 2.
3375 (CHARSET_TYPE_96): Change to 2 from 1.
3376 (CHARSET_TYPE_128): New macro.
3377 (CHARSET_TYPE_128X128): Change to 5 from 4.
3378 (CHARSET_TYPE_256): New macro.
3379 (CHARSET_TYPE_256X256): Change to 7 from 5.
3380 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3382 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3384 * text-coding.c (char_encode_shift_jis): Refer
3385 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3386 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3388 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3389 (char_byte_table_equal): New function in UTF-2000.
3390 (char_byte_table_hash): New function in UTF-2000.
3391 (char_byte_table_description): New constant in UTF-2000.
3392 (char_byte_table): New type in UTF-2000.
3393 (make_char_byte_table): New function in UTF-2000.
3394 (copy_char_byte_table): New function in UTF-2000.
3395 (make_char_code_table): New macro in UTF-2000.
3396 (get_char_code_table): New function in UTF-2000.
3397 (put_char_code_table): New function in UTF-2000.
3398 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3399 (charset_description): Add setting in UTF-2000.
3400 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3401 `CHARSET_TO_BYTE1_TABLE(cs)'.
3402 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3403 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3404 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3405 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3406 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3407 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3408 `CHARSET_TO_BYTE2_TABLE(cs)'.
3410 * char-ucs.h (char_byte_table): New type.
3411 (XCHAR_BYTE_TABLE): New macro.
3412 (XSETCHAR_BYTE_TABLE): New macro.
3413 (CHAR_BYTE_TABLE_P): New macro.
3414 (GC_CHAR_BYTE_TABLE_P): New macro.
3415 (struct Lisp_Char_Byte_Table): New structure.
3416 (get_char_code_table): New interface.
3417 (Emchar_to_byte_table): Deleted.
3418 (get_byte_from_character_table): Deleted.
3419 (struct Lisp_Charset): Add `encoding_table'; delete
3420 `to_byte1_table' and `to_byte2_table'.
3421 (CHARSET_ENCODING_TABLE): New macro.
3422 (CHARSET_TO_BYTE1_TABLE): Deleted.
3423 (CHARSET_TO_BYTE2_TABLE): Deleted.
3424 (XCHARSET_ENCODING_TABLE): New macro.
3425 (XCHARSET_TO_BYTE1_TABLE): Deleted.
3426 (XCHARSET_TO_BYTE2_TABLE): Deleted.
3428 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3430 * mule-charset.c (syms_of_mule_charset): Delete charset alias
3431 `vietnamese-viscii-*'.
3433 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3435 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3436 (Qvietnamese_viscii_upper): New variable.
3437 (Fdefine_charset_alias): New function.
3438 (syms_of_mule_charset): Add new function `define-charset-alias'.
3439 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3440 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3443 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
3445 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3446 (MAX_CHAR_OBS_94x94): New macro.
3447 (breakup_char_1): Support obsolete XEmacs-UCS private code space
3450 * mule-charset.c (put_byte_from_character_table): Change unit size
3452 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3454 (Fmake_reverse_direction_charset): Modify dummy argument of
3455 `make_charset' for non-UTF-2000 environment.
3457 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3459 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3461 * mule-charset.c (destroy_byte_from_character_table): New macro.
3462 (latin_jisx0201_to_ucs): Deleted.
3463 (latin_iso8859_2_to_ucs): Deleted.
3464 (latin_iso8859_3_to_ucs): Deleted.
3465 (latin_iso8859_4_to_ucs): Deleted.
3466 (latin_iso8859_9_to_ucs): Deleted.
3467 (latin_viscii_lower_to_ucs): Deleted.
3468 (latin_viscii_upper_to_ucs): Deleted.
3469 (mark_charset): Mark `cs->decoding_table'.
3470 (Fcharset_mapping_table): Fix DOC-string.
3471 (Fset_charset_mapping_table): New function.
3472 (syms_of_mule_charset): Add nwe function
3473 `set-charset-mapping-table'.
3474 (complex_vars_of_mule_charset): Don't setup and use
3477 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
3479 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3482 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
3484 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3485 (Vcharset_katakana_jisx0208): New variable.
3486 (Qhiragana_jisx0208): New variable.
3487 (Qkatakana_jisx0208): New variable.
3488 (make_charset): Add new argument `byte_offset'.
3489 (charset_get_byte1): Modify for new coded-charset definition; use
3490 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3491 `XCHARSET_BYTE_OFFSET'.
3492 (Fmake_charset): Modify for `make_charset'.
3493 (Fmake_reverse_direction_charset): Likewise.
3494 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3495 `katakana-jisx0208'.
3496 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3497 `.' in font registry of charset `katakana-jisx0201',
3498 `latin-jisx0201', `vietnamese-viscii-lower' and
3499 `vietnamese-viscii-upper'; modify DOC-string of charset
3500 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3501 registry of charset `japanese-jisx0208' not to use font for JIS
3502 X0208:1990; add new charset `hiragana-jisx0208' and
3503 `katakana-jisx0208'.
3505 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3506 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3507 (struct Lisp_Charset): Add `byte_offset'.
3508 (CHARSET_BYTE_OFFSET): New macro.
3509 (XCHARSET_UCS_MIN): New macro.
3510 (XCHARSET_UCS_MAX): New macro.
3511 (XCHARSET_CODE_OFFSET): New macro.
3512 (XCHARSET_BYTE_OFFSET): New macro.
3513 (MIN_CHAR_HIRAGANA): New macro.
3514 (MAX_CHAR_HIRAGANA): New macro.
3515 (MIN_CHAR_KATAKANA): New macro.
3516 (MAX_CHAR_KATAKANA): New macro.
3517 (MAKE_CHAR): Modify for new coded-charset definition; use
3518 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3519 `XCHARSET_BYTE_OFFSET'.
3521 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3523 * mule-charset.c (CHAR96): Deleted.
3524 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3526 (latin_iso8859_2_to_ucs): Likewise.
3527 (latin_iso8859_3_to_ucs): Likewise.
3528 (latin_iso8859_4_to_ucs): Likewise.
3529 (latin_iso8859_9_to_ucs): Likewise.
3530 (latin_viscii_lower_to_ucs): Likewise.
3531 (latin_viscii_upper_to_ucs): Likewise.
3532 (latin_tcvn5712_to_ucs): Commented out.
3533 (make_charset): Change type of argument `decoding_table' from
3534 <Emchar*> to <Lisp_Object> [vector of characters].
3535 (Fmake_charset): Modify for `make_charset'.
3536 (Fmake_reverse_direction_charset): Likewise.
3537 (Fcharset_mapping_table): New function in UTF-2000.
3538 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3540 (complex_vars_of_mule_charset): Modify for type change of
3541 `*_to_ucs'; modify for `make_charset'.
3543 * char-ucs.h (struct Lisp_Charset): Change type of
3544 `decoding_table' from <Emchar*> to <Lisp_Object>.
3545 (MAKE_CHAR): Modify for new specification of `decoding_table'.
3547 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3549 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3550 error with non-UTF-2000-Mule.
3552 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
3554 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3556 (Vcharset_chinese_cns11643_4): Likewise.
3557 (Vcharset_chinese_cns11643_5): Likewise.
3558 (Vcharset_chinese_cns11643_6): Likewise.
3559 (Vcharset_chinese_cns11643_7): Likewise.
3560 (Qchinese_cns11643_3): Likewise.
3561 (Qchinese_cns11643_4): Likewise.
3562 (Qchinese_cns11643_5): Likewise.
3563 (Qchinese_cns11643_6): Likewise.
3564 (Qchinese_cns11643_7): Likewise.
3565 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3566 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3567 and `chinese-cns11643-7' to lisp/mule/chinese.el.
3568 (complex_vars_of_mule_charset): Likewise.
3570 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3572 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3574 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3575 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3577 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3579 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3581 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3582 (breakup_char_1): Likewise.
3584 * text-coding.c (char_encode_iso2022): Keep designated charsets if
3585 one of them includes the specified character.
3587 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3589 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3591 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3593 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3595 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3597 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3598 definition for non-UTF-2000 Mule.
3599 (latin_iso8859_3_to_ucs): Likewise.
3600 (latin_iso8859_4_to_ucs): Likewise.
3601 (latin_iso8859_9_to_ucs): Likewise.
3602 (latin_jisx0201_to_ucs): Likewise.
3603 (MIN_CHAR_THAI): Likewise.
3604 (MAX_CHAR_THAI): Likewise.
3605 (MIN_CHAR_GREEK): Likewise.
3606 (MAX_CHAR_GREEK): Likewise.
3607 (MIN_CHAR_HEBREW): Likewise.
3608 (MAX_CHAR_HEBREW): Likewise.
3609 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3610 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3611 (MIN_CHAR_CYRILLIC): Likewise.
3612 (MAX_CHAR_CYRILLIC): Likewise.
3614 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3616 * char-ucs.h (breakup_char_1): Use
3617 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3618 thai-tis620 and katakana-jisx0201 area.
3620 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3622 * char-ucs.h (breakup_char_1): Use
3623 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3626 * text-coding.c (reset_encoding_stream): Fixed.
3627 (char_encode_ucs4): Delete `& 255'.
3629 * char-ucs.h (breakup_char_1): Use
3630 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3632 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3634 * file-coding.c (Fmake_coding_system): Don't set up
3635 `codesys->fixed.size'.
3636 (encode_coding_no_conversion): Don't refer
3637 `str->codesys->fixed.size'.
3639 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3641 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3642 (latin_a_char_to_byte1): Deleted.
3643 (latin_a_char_to_byte2): Deleted.
3645 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3647 * mule-charset.c (make_charset): Add new argument `ucs_min',
3648 `ucs_max' and `code_offset'.
3649 (charset_get_byte1): New implementation [delete specific charset
3650 depended implementations].
3651 (Fmake_charset): Modify for `make_charset'.
3652 (Fmake_reverse_direction_charset): Likewise.
3653 (complex_vars_of_mule_charset): Likewise.
3655 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3657 (CHARSET_UCS_MIN): New macro.
3658 (CHARSET_UCS_MAX): New macro.
3659 (CHARSET_CODE_OFFSET): New macro.
3660 (MAKE_CHAR): Delete charset depended definitions [except
3663 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3665 * char-ucs.h (breakup_char_1): Use
3666 `Vdefault_coded_charset_priority_list' for C0-Controls,
3667 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3669 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3671 * char-ucs.h (charset_get_byte1): New function.
3672 (XCHARSET_GET_BYTE1): Deleted.
3673 (charset_get_byte2): New function.
3674 (XCHARSET_GET_BYTE2): Deleted.
3675 (Vdefault_coded_charset_priority_list): New external variable.
3676 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3677 `Vdefault_preferred_coded_charset_list'.
3679 * mule-charset.c (charset_get_byte1): New function.
3680 (charset_get_byte2): New function.
3681 (Vdefault_coded_charset_priority_list): New variable.
3682 (vars_of_mule_charset): Add new variable
3683 `default-coded-charset-priority-list'.
3685 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3687 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3688 (XCHARSET_GET_BYTE2): New inline function.
3689 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3690 `XCHARSET_GET_BYTE2'.
3692 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3694 * mule-charset.c (make_charset): Initialize
3695 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3696 NULL if table is not defined.
3698 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3700 * text-coding.c (char_encode_shift_jis): Use
3701 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3702 `ucs_to_latin_jisx0201'.
3704 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3705 (ucs_to_latin_iso8859_2): Deleted.
3706 (ucs_to_latin_iso8859_3): Deleted.
3707 (ucs_to_latin_iso8859_4): Deleted.
3708 (ucs_to_latin_iso8859_9): Deleted.
3709 (ucs_to_latin_viscii_lower): Deleted.
3710 (ucs_to_latin_viscii_upper): Deleted.
3711 (ucs_to_latin_tcvn5712): Deleted.
3712 (make_charset): Add new argument `decoding_table'; set up
3713 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3714 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3715 `decoding_table' is defined in UTF-2000.
3716 (Fmake_charset): Modify for `make_charset'.
3717 (Fmake_reverse_direction_charset): Likewise.
3718 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3719 and `GENERATE_96_SET'.
3721 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3722 (ucs_to_latin_jisx0201): Deleted.
3723 (latin_iso8859_2_to_ucs): Deleted.
3724 (ucs_to_latin_iso8859_2): Deleted.
3725 (latin_iso8859_3_to_ucs): Deleted.
3726 (ucs_to_latin_iso8859_3): Deleted.
3727 (latin_iso8859_4_to_ucs): Deleted.
3728 (ucs_to_latin_iso8859_4): Deleted.
3729 (latin_iso8859_9_to_ucs): Deleted.
3730 (ucs_to_latin_iso8859_9): Deleted.
3731 (latin_viscii_lower_to_ucs): Deleted.
3732 (ucs_to_latin_viscii_lower): Deleted.
3733 (latin_viscii_upper_to_ucs): Deleted.
3734 (ucs_to_latin_viscii_upper): Deleted.
3735 (struct Lisp_Charset): Renamed `encoding_table' to
3736 `to_byte1_table'; add `to_byte2_table'.
3737 (CHARSET_DECODING_TABLE): New macro.
3738 (CHARSET_TO_BYTE1_TABLE): New macro.
3739 (CHARSET_TO_BYTE2_TABLE): New macro.
3740 (XCHARSET_DECODING_TABLE): New macro.
3741 (XCHARSET_TO_BYTE1_TABLE): New macro.
3742 (XCHARSET_TO_BYTE2_TABLE): New macro.
3743 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3745 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3746 don't use `ucs_to_*' tables.
3748 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3750 * text-coding.c (Fmake_coding_system): Don't set up
3751 `codesys->fixed.size'.
3752 (encode_coding_no_conversion): Use `if' instead of `switch'.
3754 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3756 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3758 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3759 (Fmake_charset): Modify for `make_charset'.
3760 (Fmake_reverse_direction_charset): Likewise.
3761 (complex_vars_of_mule_charset): Likewise.
3763 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3765 * text-coding.c (char_encode_shift_jis): Use table
3766 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3768 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3770 * text-coding.c (text_encode_generic): Use `if' instead of
3772 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3775 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3777 * text-coding.c (encode_coding_sjis): Deleted.
3778 (char_encode_shift_jis): New function.
3779 (char_finish_shift_jis): New function.
3780 (reset_encoding_stream): Set up `encode_char' and `finish' for
3781 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3782 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3783 (char_encode_utf8): Treat `eol_type'.
3785 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3787 * file-coding.c (decode_coding_iso2022): Use
3788 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3790 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3792 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3795 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3797 * char-lb.h (CHAR_COLUMNS): New macro.
3799 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3801 * text-coding.c (char_encode_ucs4): New function.
3802 (char_finish_ucs4): New function.
3803 (encode_coding_ucs4): Deleted.
3804 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3805 (text_encode_generic): Delete local variable `charset' and `half'.
3806 (ucs_to_mule_table): Deleted.
3807 (mule_to_ucs_table): Deleted.
3808 (Fset_ucs_char): Deleted.
3809 (ucs_to_char): Deleted.
3810 (Fucs_char): Deleted.
3811 (Fset_char_ucs): Deleted.
3812 (Fchar_ucs): Deleted.
3813 (decode_ucs4): Deleted.
3814 (mule_char_to_ucs4): Deleted.
3815 (encode_ucs4): Deleted.
3816 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3817 (decode_coding_utf8): Likewise.
3818 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3819 (char_encode_iso2022): Fixed.
3820 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3821 `Fset_char_ucs' and `Fchar_ucs'.
3822 (complex_vars_of_file_coding): Don't initialize
3823 `ucs_to_mule_table'.
3825 * objects-tty.c (tty_initialize_font_instance): Don't use
3828 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3831 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3832 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3834 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3835 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3836 (emchar_string_displayed_columns): Likewise.
3838 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3839 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3840 (string_column_at_point): Likewise.
3841 (Fmove_to_column): Likewise.
3843 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3844 `encoding_table' and `decoding_table'.
3845 (CHARSET_REP_BYTES): Deleted.
3846 (XCHARSET_REP_BYTES): Deleted.
3847 (XCHARSET_COLUMNS): Deleted.
3848 (CHAR_COLUMNS): New macro.
3849 (lookup_composite_char): Deleted unconditionally.
3850 (composite_char_string): Likewise.
3852 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3854 * char-ucs.h (Emchar_to_byte_table): New type.
3855 (get_byte_from_character_table): New function interface.
3856 (Vcharset_latin_jisx0201): New variable.
3857 (latin_jisx0201_to_ucs): New variable.
3858 (ucs_to_latin_jisx0201): New variable.
3859 (Vcharset_latin_iso8859_2): New variable.
3860 (latin_iso8859_2_to_ucs): New variable.
3861 (ucs_to_latin_iso8859_2): New variable.
3862 (Vcharset_latin_iso8859_3): New variable.
3863 (latin_iso8859_3_to_ucs): New variable.
3864 (ucs_to_latin_iso8859_3): New variable.
3865 (Vcharset_latin_iso8859_4): New variable.
3866 (latin_iso8859_4_to_ucs): New variable.
3867 (ucs_to_latin_iso8859_4): New variable.
3868 (Vcharset_latin_iso8859_9): New variable.
3869 (latin_iso8859_9_to_ucs): New variable.
3870 (ucs_to_latin_iso8859_9): New variable.
3871 (Vcharset_latin_viscii_lower): New variable.
3872 (latin_viscii_lower_to_ucs): New variable.
3873 (ucs_to_latin_viscii_lower): New variable.
3874 (Vcharset_latin_viscii_upper): New variable.
3875 (latin_viscii_upper_to_ucs): New variable.
3876 (ucs_to_latin_viscii_upper): New variable.
3877 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3878 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3879 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3880 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3881 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3882 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3883 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3884 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3885 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3886 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3888 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3889 (Vcharset_latin_viscii_upper): New variable.
3890 (make_byte_from_character_table): New function.
3891 (put_byte_from_character_table): New function.
3892 (get_byte_from_character_table): New function.
3893 (CHAR96): New macro.
3894 (ucs_to_latin_jisx0201): New variable.
3895 (latin_jisx0201_to_ucs): New variable.
3896 (ucs_to_latin_iso8859_2): New variable.
3897 (latin_iso8859_2_to_ucs): New variable.
3898 (ucs_to_latin_iso8859_3): New variable.
3899 (latin_iso8859_3_to_ucs): New variable.
3900 (ucs_to_latin_iso8859_4): New variable.
3901 (latin_iso8859_4_to_ucs): New variable.
3902 (ucs_to_latin_iso8859_9): New variable.
3903 (latin_iso8859_9_to_ucs): New variable.
3904 (ucs_to_latin_viscii_lower): New variable.
3905 (latin_viscii_lower_to_ucs): New variable.
3906 (ucs_to_latin_viscii_upper): New variable.
3907 (latin_viscii_upper_to_ucs): New variable.
3908 (ucs_to_latin_tcvn5712): New variable.
3909 (latin_tcvn5712_to_ucs): New variable.
3910 (Qlatin_viscii_lower): New variable.
3911 (Qlatin_viscii_upper): New variable.
3912 (syms_of_mule_charset): Set up new symbol
3913 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3914 (complex_vars_of_mule_charset): Set up new charset
3915 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3916 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3917 `ucs_to_<CHARSET>' tables.
3919 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3921 * text-coding.c: New file.
3923 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3925 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3927 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3928 (MAKE_CHAR): Modify for `ucs-bmp'.
3929 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3930 non-MULE characters of BMP.
3932 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3934 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3937 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3940 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3941 - Include character.h for `CHAR_ASCII_P'.
3943 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3945 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3946 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3948 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3949 (BYTE_C0_P): Likewise.
3950 (BYTE_C1_P): Likewise.
3951 (Lstream_get_emchar_1): Likewise.
3952 (Lstream_fput_emchar): Likewise.
3953 (Lstream_funget_emchar): Likewise.
3954 (copy_internal_to_external): Likewise.
3955 (copy_external_to_internal): Likewise.
3957 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3958 (BYTE_C0_P): Likewise.
3959 (BYTE_C1_P): Likewise.
3960 (Lstream_get_emchar_1): Likewise.
3961 (Lstream_fput_emchar): Likewise.
3962 (Lstream_funget_emchar): Likewise.
3963 (copy_internal_to_external): Likewise.
3964 (copy_external_to_internal): Likewise.
3966 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3967 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3969 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3970 (BYTE_ASCII_P): Moved to mb-1byte.h.
3972 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3974 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3976 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3977 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3978 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3979 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3980 (VALIDATE_CHARPTR_FORWARD): Likewise.
3981 (simple_charptr_emchar): Moved to mb-multibyte.h.
3982 (simple_set_charptr_emchar): Likewise.
3983 (simple_charptr_copy_char): Likewise.
3984 (non_ascii_charptr_emchar): Likewise.
3985 (non_ascii_set_charptr_emchar): Likewise.
3986 (non_ascii_charptr_copy_char): Likewise.
3987 (charptr_emchar): Moved to mb-*byte.h.
3988 (set_charptr_emchar): Likewise.
3989 (charptr_copy_char): Likewise.
3991 * mb-1byte.h, mb-multibyte.h: New files.
3993 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3995 * mb-utf-8.h (MULTIBYTE): New macro.
3996 (MAX_EMCHAR_LEN): Moved from buffer.h.
3997 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3999 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4001 * mb-lb.h, multibyte.h: New files.
4003 * char-1byte.h (Charset_ID): Moved from buffer.h.
4004 (MIN_LEADING_BYTE): Likewise.
4005 (LEADING_BYTE_ASCII): Likewise.
4006 (NUM_LEADING_BYTES): Likewise.
4007 (CHARSETP): Likewise.
4008 (CHARSET_BY_LEADING_BYTE): Likewise.
4009 (XCHARSET_LEADING_BYTE): Likewise.
4010 (XCHARSET_GRAPHIC): Likewise.
4011 (XCHARSET_COLUMNS): Likewise.
4012 (XCHARSET_DIMENSION): Likewise.
4013 (CHAR_CHARSET): Likewise.
4014 (CHAR_LEADING_BYTE): Likewise.
4015 (BREAKUP_CHAR): Likewise.
4016 (Vcharset_ascii): Likewise.
4018 * buffer.h: Include multibyte.h unconditionally.
4019 (VALID_CHARPTR_P): Moved to multibyte.h.
4020 (ASSERT_VALID_CHARPTR): Likewise.
4021 (REAL_INC_CHARPTR): Likewise.
4022 (REAL_INC_CHARBYTIND): Likewise.
4023 (REAL_DEC_CHARPTR): Likewise.
4024 (INC_CHARPTR): Likewise.
4025 (INC_CHARBYTIND): Likewise.
4026 (DEC_CHARPTR): Likewise.
4027 (VALIDATE_CHARPTR_BACKWARD): Likewise.
4028 (VALIDATE_CHARPTR_FORWARD): Likewise.
4029 (charptr_n_addr): Likewise.
4030 (MAX_EMCHAR_LEN): Moved to mb-*.h.
4031 (simple_charptr_emchar): Moved to multibyte.h.
4032 (simple_set_charptr_emchar): Likewise.
4033 (simple_charptr_copy_char): Likewise.
4034 (non_ascii_charptr_emchar): Likewise.
4035 (non_ascii_set_charptr_emchar): Likewise.
4036 (non_ascii_charptr_copy_char): Likewise.
4037 (charptr_emchar): Likewise.
4038 (set_charptr_emchar): Likewise.
4039 (charptr_copy_char): Likewise.
4040 (charptr_emchar_n): Likewise.
4041 (Charset_ID): Moved to char-1byte.h.
4042 (Vcharset_ascii): Likewise.
4043 (CHAR_CHARSET): Likewise.
4044 (CHAR_LEADING_BYTE): Likewise.
4045 (LEADING_BYTE_ASCII): Likewise.
4046 (NUM_LEADING_BYTES): Likewise.
4047 (MIN_LEADING_BYTE): Likewise.
4048 (CHARSETP): Likewise.
4049 (CHARSET_BY_LEADING_BYTE): Likewise.
4050 (XCHARSET_LEADING_BYTE): Likewise.
4051 (XCHARSET_GRAPHIC): Likewise.
4052 (XCHARSET_COLUMNS): Likewise.
4053 (XCHARSET_DIMENSION): Likewise.
4054 (BREAKUP_CHAR): Likewise.
4056 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4058 * character.h: Add document about interface for characters.
4060 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4061 (MAKE_CHAR): Delete comment about
4062 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4063 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4064 (BREAKUP_CHAR): Modify name of arguments.
4065 (CHAR_CHARSET): Modify name of argument.
4067 * buffer.h: Delete document about Emchar accessors.
4069 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4071 * character.h (CHAR_INTP): Moved from buffer.h
4072 (CHAR_OR_CHAR_INTP): Likewise.
4073 (XCHAR_OR_CHAR_INT): Likewise.
4074 (CHECK_CHAR_COERCE_INT): Likewise.
4076 * buffer.h (CHAR_INTP): Moved to character.h
4077 (CHAR_OR_CHAR_INTP): Likewise.
4078 (XCHAR_OR_CHAR_INT): Likewise.
4079 (CHECK_CHAR_COERCE_INT): Likewise.
4081 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4084 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4085 - Include char-1byte.h, char-lb.h or char-ucs.h.
4087 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4089 * buffer.h: Include character unconditionally.
4090 (valid_char_p): Moved to char-*.h.
4091 (non_ascii_valid_char_p): Moved to char-lb.h.
4093 * char-1byte.h, char-lb.h, char-ucs.h: New files.
4095 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4097 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4098 in UTF-2000 because it is not ported yet and not to use
4099 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4100 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4101 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4103 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4104 (CHAR_ASCII_P): Moved from character.h.
4106 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4107 (CHAR_ASCII_P): Likewise.
4108 (CHAR_FIELD1_MASK): Deleted.
4109 (CHAR_FIELD2_MASK): Deleted.
4110 (CHAR_FIELD3_MASK): Deleted.
4111 (MAX_CHAR_BASIC_LATIN): New macro.
4112 (CHAR_FIELD1): Deleted.
4113 (CHAR_FIELD2_INTERNAL): Deleted.
4114 (CHAR_FIELD3_INTERNAL): Deleted.
4115 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4116 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4117 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4118 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4119 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4120 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4121 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4122 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4123 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4124 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4125 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4126 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4127 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4128 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4129 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4130 (MIN_CHAR_COMPOSITION): Deleted.
4131 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4132 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4134 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
4136 * buffer.h: Include mb-utf-8.h in UTF-2000.
4138 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4140 * mb-utf-8.h: New file.
4142 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
4144 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4147 * mule-charset.h, buffer.h (Charset_ID): New type.
4149 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
4151 * mule-canna.c (c2mu): Use `MAKE_CHAR',
4152 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4153 instead of `MULE_CHAR_PRIVATE_OFFSET',
4154 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4155 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4156 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4158 * character.h (Vcharset_japanese_jisx0212): New variable
4161 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
4163 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4164 (charset_by_attributes): Delete array about direction.
4165 (latin_a_char_to_charset): New variable in UTF-2000.
4166 (latin_a_char_to_byte1): New variable in UTF-2000.
4167 (latin_a_char_to_byte2): New variable in UTF-2000.
4168 (Qucs_bmp): New variable.
4169 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4171 (next_allocated_2_byte_leading_byte): Likewise.
4172 (non_ascii_set_charptr_emchar): Likewise.
4173 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4174 `CHARSET_TYPE_256X256' in UTF-2000; modify for
4175 `charset_by_attributes'.
4176 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4177 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4178 and `CHARSET_BY_LEADING_BYTE'.
4179 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4180 `utf-2000-version' to `vars_of_mule_charset'.
4181 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4182 define `leading-code-private-11' in UTF-2000; move setting of
4183 `utf-2000-version' from `syms_of_mule_charset'.
4184 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4187 * character.h (Charset_ID): New type.
4188 (LEADING_BYTE_UCS_BMP): New macro.
4189 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4190 (CHARSET_ID_OFFSET_94): New macro.
4191 (MIN_CHARSET_ID_PRIVATE_94): New macro.
4192 (MAX_CHARSET_ID_PRIVATE_94): New macro.
4193 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4195 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4196 (LEADING_BYTE_LATIN_JISX0201): Likewise.
4197 (CHARSET_ID_OFFSET_96): New macro.
4198 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4199 CHARSET_ID_OFFSET_96 and final-byte.
4200 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4201 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4202 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4203 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4204 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4205 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4206 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4207 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4208 (LEADING_BYTE_THAI_TIS620): Likewise.
4209 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4210 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4211 (CHARSET_ID_OFFSET_94x94): New macro.
4212 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4213 CHARSET_ID_OFFSET_94x94 and final-byte.
4214 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4215 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4216 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4217 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4218 (LEADING_BYTE_CHINESE_GB2312): Likewise.
4219 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4220 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4221 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4222 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4223 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4224 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4225 (CHARSET_TYPE_128X128): New macro.
4226 (CHARSET_TYPE_256X256): New macro.
4227 (XCHARSET_PRIVATE_P): Delete unconditionally.
4228 (charset_by_attributes): Delete array about direction.
4229 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4230 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4231 (MIN_CHAR_94): New macro.
4232 (MAX_CHAR_94): New macro.
4233 (MIN_CHAR_96): New macro.
4234 (MAX_CHAR_96): New macro.
4235 (MIN_CHAR_94x94): New macro.
4236 (MAX_CHAR_94x94): New macro.
4237 (MIN_CHAR_96x96): New macro.
4238 (MAX_CHAR_96x96): New macro.
4239 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4240 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4241 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4243 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4244 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4245 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4246 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4247 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4248 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4249 `XCHARSET_LEADING_BYTE' to make code-point.
4250 (latin_a_char_to_charset): New variable.
4251 (latin_a_char_to_byte1): New variable.
4252 (latin_a_char_to_byte2): New variable.
4253 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4254 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4255 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4257 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4258 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4259 (find_charsets_in_emchar_string): Likewise.
4260 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4262 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4264 (decode_coding_iso2022): Likewise.
4266 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4269 * redisplay.c (redisplay_text_width_emchar_string): Use
4270 `Charset_ID' instead of `unsigned char'.
4271 (redisplay_frame_text_width_string): Likewise.
4273 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4276 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4277 instead of `unsigned char'.
4278 (face_cachel_charset_font_metric_info): Likewise.
4280 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4281 (get_non_ascii_char_table_value): Likewise.
4282 (get_char_table): Likewise.
4283 (put_char_table): Likewise.
4284 (map_over_other_charset): Likewise.
4285 (map_char_table): Likewise.
4287 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4288 instead of `unsigned char'.
4290 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
4292 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4293 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4295 * mule-charset.c (leading_code_private_11): Don't define in
4298 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4299 in UTF-2000 because it is not ported yet and not to use
4300 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4302 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
4304 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4306 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4308 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4311 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4312 of unsigned char to store leading-byte.
4314 * chartab.c (get_non_ascii_char_table_value): Don't use
4315 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4317 * file-coding.c (encode_coding_big5): Delete bogus implementation
4320 * character.h (LEADING_BYTE_*): Delete definition for
4322 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4323 (LEADING_BYTE_PREFIX_P): Deleted.
4324 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4325 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4326 (BUFBYTE_LEADING_BYTE_P): Deleted.
4327 (CHARSET_PRIVATE_P): Deleted unconditionally.
4328 (rep_bytes_by_first_byte): Deleted unconditionally.
4329 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4330 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4331 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4332 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4333 (CHAR_FIELD2): Deleted.
4334 (CHAR_FIELD3): Deleted.
4335 (MAKE_CHAR): Delete definition for non-UTF-2000.
4336 (BREAKUP_CHAR_1_UNSAFE): Deleted.
4337 (breakup_char_1): New implementation.
4338 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4339 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4341 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4343 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4346 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4348 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4349 (CHARSET_PRIVATE_P): Likewise.
4350 (XCHARSET_PRIVATE_P): Likewise.
4351 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4353 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4355 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4357 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4359 * character.h (LEADING_BYTE_*): Changed in UTF2000.
4360 (NUM_LEADING_BYTES): Changed from 128 to 256.
4361 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4362 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4364 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4366 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4368 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4369 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4370 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4371 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4372 (Qchinese_cns11643_3): New variable in UTF2000.
4373 (Qchinese_cns11643_4): New variable in UTF2000.
4374 (Qchinese_cns11643_5): New variable in UTF2000.
4375 (Qchinese_cns11643_6): New variable in UTF2000.
4376 (Qchinese_cns11643_7): New variable in UTF2000.
4377 (syms_of_mule_charset): Define `chinese-cns11643-3',
4378 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4379 and `chinese-cns11643-7' in UTF2000.
4380 (vars_of_mule_charset): Initialize
4381 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4383 (complex_vars_of_mule_charset): Setup charset
4384 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4385 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4387 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4389 * mule-charset.c: Move setting for `leading-code-private-11' from
4390 `syms_of_mule_charset' to `vars_of_mule_charset'.
4392 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4394 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4395 and `NUM_LEADING_BYTES' in assert.
4397 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4399 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4401 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4402 `NUM_LEADING_BYTES' instead of 128.
4404 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
4406 * mule-charset.h (charset_by_leading_byte): Use
4407 `NUM_LEADING_BYTES' instead of 128.
4408 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4410 * mule-charset.c (charset_by_leading_byte): Use
4411 `NUM_LEADING_BYTES' instead of 128.
4412 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4414 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4417 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4419 * mule-charset.c (syms_of_mule_charset): Update to
4422 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4424 * file-coding.c (encode_coding_sjis): New implementation for
4425 UTF2000. (decode_coding_sjis): Ditto.
4427 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4429 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4430 Don't define in UTF2000.
4432 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4435 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4436 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4439 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4441 * config.h.in (CHAR_IS_UCS4): New macro.
4443 * mule-charset.c (rep_bytes_by_first_byte): Modify for
4444 conventional MULE representation.
4445 (syms_of_mule_charset): Update to 0.3 (Imamiya).
4447 * mule-charset.h: Reverted to original.
4449 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4450 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4451 "mule-charset.h" if CHAR_IS_UCS4 is defined.
4453 * character.h: New file.
4455 * file-coding.c (Fmake_coding_system): Set 1 to
4456 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4458 (encode_coding_no_conversion): New implementation for UTF2000.
4460 * file-coding.h (struct Lisp_Coding_System): Add new member
4463 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
4465 * file-coding.c (decode_coding_iso2022): Code-point arguments of
4466 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4467 (encode_coding_iso2022): New implementation for UTF2000.
4469 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4471 * mule-canna.c (c2mu): New implementation for UTF2000.
4474 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4476 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4478 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4480 * file-coding.c (reset_encoding_stream): Set 0 to
4481 `str->iso2022.current_char_boundary' in UTF2000.
4482 (encode_utf8): Don't define in UTF2000.
4483 (encode_coding_utf8): New implementation for UTF-8 representation
4485 (complex_vars_of_file_coding): Define coding-system `utf-8'.
4487 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4489 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4491 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4493 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4495 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4497 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4498 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4499 as UTF-8 in UTF2000.
4500 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4501 (non_ascii_valid_char_p): Don't define in UTF2000.
4502 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4503 (Lstream_get_emchar_1): Likewise.
4504 (utf-2000-version): New variable in UTF2000.
4506 * lread.c (read_escape): Add new reader `u'.
4508 * insdel.c (three_to_one_table): Don't define in UTF2000.
4509 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4510 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4512 (bytind_to_bufpos_func): Likewise.
4513 (buffer_mule_signal_inserted_region): Likewise.
4514 (vars_of_insdel): Don't initialize `three_to_one_table'.
4515 (init_buffer_text): Use `buf->text->mule_size' instead of
4516 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4519 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4520 UTF-8 representation in UTF2000.
4521 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4522 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4523 (decode_coding_iso2022): Don't define local variable `lb' in
4524 UTF2000; don't use LEADING_BYTE in UTF2000; use
4525 `DECODE_ADD_UCS_CHAR' in UTF2000.
4526 (convert_to_external_format): Decode as UTF-8 in UTF2000.
4528 * config.h.in (UTF2000): New macro.
4530 * buffer.h (struct buffer_text): Add new member `mule_size' and
4531 don't add `mule_shifter' and `mule_three_p' in UTF2000.
4532 (valid_char_p): Return always 1 in UTF2000.
4533 (MAX_EMCHAR_LEN): 6 in UTF2000.
4534 (three_to_one_table): Don't define in UTF2000.
4535 (real_bufpos_to_bytind): Modify for UTF-8 representation in
4537 (real_bytind_to_bufpos): Likewise.
4539 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4541 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4543 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4544 representation change.
4545 (Vutf_2000_version): New variable.
4546 (leading_code_private_11): New variable.
4547 (syms_of_mule_charset): Add new variables `utf-2000-version' and
4548 `leading-code-private-11'.
4550 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4551 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4552 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4553 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4554 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4555 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4556 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4557 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4558 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4559 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4560 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4561 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4562 (MIN_CHAR_GREEK): New macro.
4563 (MAX_CHAR_GREEK): New macro.
4564 (MIN_CHAR_CYRILLIC): New macro.
4565 (MAX_CHAR_CYRILLIC): New macro.
4566 (MIN_CHAR_HEBREW): New macro.
4567 (MAX_CHAR_HEBREW): New macro.
4568 (MIN_CHAR_THAI): New macro.
4569 (MAX_CHAR_THAI): New macro.
4570 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4571 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4572 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4573 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4574 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4575 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4576 (CHAR_FIELD2): New inline function.
4577 (CHAR_FIELD3): New inline function.
4578 (MULE_CHAR_PRIVATE_OFFSET): New macro.
4579 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4580 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4581 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4582 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4583 (MIN_CHAR_COMPOSITION): Likewise.
4584 (CHAR_LEADING_BYTE): Modified for character representation change.
4585 (MAKE_CHAR): Likewise.
4587 * lisp.h (Vcharset_latin_iso8859_1): New variable.
4588 (Vcharset_greek_iso8859_7): Likewise.
4589 (Vcharset_cyrillic_iso8859_5): Likewise.
4590 (Vcharset_hebrew_iso8859_8): Likewise.
4591 (Vcharset_thai_tis620): Likewise.
4592 (Vcharset_katakana_jisx0201): Likewise.
4594 2002-11-02 Stephen J. Turnbull <stephen@xemacs.org>
4596 * XEmacs 21.4.10 "Military Intelligence" is released.
4598 2002-10-17 Raymond Toy <toy@rtp.ericsson.se>
4600 * nas.c: Update for NAS 1.6 and later, from Jon Trulson. Was
4601 using the NAS private array SoundFileInfo that no longer exists in
4602 NAS 1.6 and later. Preserve backward compatibility with NAS 1.5a
4603 and earlier. This is broken for some versions between 1.5a and
4606 2002-10-10 Stephen J. Turnbull <stephen@xemacs.org>
4608 * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4610 * emacs.c (shut_down_emacs): Improve crash message.
4612 2002-10-09 Stephen J. Turnbull <stephen@xemacs.org>
4614 * file-coding.c (determine_real_coding_system): Check for coding
4615 cookie in first LINES_TO_CHECK lines (currently 2). Cater to
4616 shebangs and Python PEP 263.
4618 2002-10-08 Andy Piper <andy@xemacs.org>
4620 * glyphs-widget.c (layout_query_geometry): only resize dynamically
4621 if static sizes haven't been set.
4623 2002-08-30 Mike Alexander <mta@arbortext.com>
4625 * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4628 2002-10-03 Stephen J. Turnbull <stephen@xemacs.org>
4630 * callproc.c (child_setup): 21.4 doesn't have retry_close.
4632 2002-09-20 Mike Sperber <mike@xemacs.org>
4634 (This partially gets back my patch from 2002-07-20 without the
4636 * callproc.c (child_setup): Remove Ben's comment noting confusion
4637 over the file descriptors >= 3: close_process_descs() doesn't
4638 close those. Fix fd range to go up to MAXDESC-1 instead of 64.
4639 * process-unix.c (unix_create_process): Call
4640 begin_dont_check_for_quit to inhibit unwanted interaction (and
4641 thus breaking of X event synchronicity) in the child.
4643 2002-09-26 Golubev I. N. <gin@mo.msk.ru>
4645 * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4648 2002-08-20 Ben Sigelman <bhsigelm@cs.brown.edu>
4650 * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4651 instead of while(XtAppPending()&XtIMXEvent). Upon a gdm logout,
4652 the xemacs process did not exit, but looped infinitely here. This
4655 2002-09-28 Stephen J. Turnbull <stephen@xemacs.org>
4657 * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4658 (find_context): Improve comments.
4660 * regex.c (re_compile_fastmap): Gratuitous #ifdef comment fixes.
4661 (re_match_2): An XCHAR_TABLE operation was missing.
4663 Many of the following changes were inspired by Andy Piper's (now
4664 obsolete) patch to make syntax-table text property lookup optional.
4668 * syntax.h (top level): Document semantics of syntax flags.
4669 * syntax.c (comstr_start, Fforward_comment): Improve comments.
4670 * syntax.c, syntax.h (top level): Document syntax cache better in
4673 [Instrument syntax caching (temporary change)]
4675 * syntax.h (enum syntax_cache_statistics_functions, struct
4676 syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4677 SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4678 * syntax.c (scan_words, Fforward_comment, scan_lists,
4679 Fbackward_prefix_characters):
4680 * font-lock.c (find_context):
4681 Use them to instrument syntax caching.
4682 * syntax.c (struct syntax_cache_statistics, scs_statistics,
4683 syntax_cache_statistics_function_names): New type and variables.
4684 * syntax.c (update_syntax_cache): Update and report statistics.
4686 [Major syntax cache optimizations]
4688 syntax.c (lookup_syntax_properties): Default off.
4690 * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4691 * syntax.c (update_syntax_cache):
4692 Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4694 [Minor syntax cache optimizations and code clarifications]
4696 * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4697 SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4698 SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4699 SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4700 SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4701 (Code clarification.)
4703 * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4704 scan_lists): Compute code from syncode, use Boolean macros instead
4705 of redundant masking operations. (Code clarification; any decent
4706 compiler can do this optimization.)
4708 * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4711 * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4712 PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4713 use F*_single_property_change instead of F*_extent_change.
4714 Currently F*_single_property_change is _much_ less efficient.
4716 * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4717 * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT): Initialize
4718 syntax_cache.object properly, don't leave Qt or Qnil.
4719 (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4720 * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4721 tests for Qt or Qnil.
4723 2002-09-21 Stephen J. Turnbull <stephen@xemacs.org>
4725 * redisplay.c (point_in_line_start_cache):
4726 * extents.c (print_extent_1):
4729 * extents.c (Fset_extent_property): Document `syntax-table' property.
4731 * extents.h (Fnext_single_property_change): EXFUN it.
4733 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
4735 * search.c (clear_unused_search_regs): New static function.
4739 Use it. Fixes "stale match data" bug reported by Martin Stjernholm.
4740 Minor clarifications in comments.
4742 * regex.c (re_match_2_internal): Ensure no stale submatches.
4744 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
4746 * event-Xt.c (enqueue_focus_event): Add missing prototype.
4748 2002-08-29 Jerry James <james@xemacs.org>
4750 * lisp.h: structrures -> structures.
4752 2002-06-03 Andy Piper <andy@xemacs.org>
4754 * frame.c (frame_conversion_internal): add conversion appropriate
4755 for setting frame dimensions in pixels.
4757 * console.h (struct console_methods): add device-specific widget
4760 * emacs.c (main_1): initialize glyph vars.
4762 * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
4763 (handle_focus_event_2): new function. Allow focus to
4764 be set to a particular window and widget.
4765 (enqueue_focus_event): new function. Create a
4766 synthetic focus event.
4767 (emacs_Xt_handle_magic_event): call
4768 handle_focus_event_2.
4770 * frame.c (Fset_frame_pixel_height): new function. Allow
4771 pixel-based sizing. Does the right thing on character-oriented
4773 (Fset_frame_pixel_width): ditto.
4774 (Fset_frame_pixel_size): ditto.
4775 (syms_of_frame): declare.
4777 * general-slots.h: add :vertically-justify and
4778 :horizontally-justify.
4780 * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
4781 (mswindows_widget_border_width): new function.
4782 (mswindows_combo_box_instantiate): set border widths.
4783 (console_type_create_glyphs_mswindows): declare.
4786 (check_valid_justification): allow vertical and horizontal
4788 (widget_border_width): new function. Call device methods.
4789 (widget_instance_border_width): ditto.
4790 (logical_unit_height): new function. Determine the height of a
4791 logical-unit. Logical units are intended to provide grid-like
4792 layout for subcontrols in a layout. If the layout is
4793 :vertically-justify top then subcontrols will be positioned on
4794 logical-unit boundaries, thus allowing adjacent subcontrols to
4796 (widget_logical_unit_height): ditto for widgets.
4797 (redisplay_widget): misc cleanup.
4798 (widget_spacing): new function. Call device specific
4799 methods. Intended to be the default gap between adjacent widgets.
4800 (widget_query_geometry): use new spacing functions to determine
4801 appropriate geometry.
4802 (initialize_widget_image_instance): initialize horizontal and
4803 vertical justification.
4804 (widget_instantiate): use logica-units where appropriate for
4805 sizing large widgets.
4806 (button_query_geometry): use widget_instance_border_width.
4807 (tree_view_query_geometry): ditto.
4808 (tab_control_query_geometry): ditto.
4809 (edit_field_query_geometry): new function.
4810 (layout_update): pick up :justify, :horizontally-justify and
4811 :vertically-justify none of which worked previously. :justify is
4812 used as a fallback for both horizontal and vertical justification.
4813 (layout_query_geometry): use logical units to size appropriately.
4814 (layout_layout): ditto.
4815 (Fwidget_logical_to_character_width): new function. Allow users to
4816 convert from logical units to characters so that frame sizes can
4817 be set appropriately.
4818 (Fwidget_logical_to_character_height): ditto.
4819 (syms_of_glyphs_widget): declare.
4820 (image_instantiator_edit_fields): add edit_field_query_geometry.
4821 (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
4822 :horizontally-justify.
4823 (specifier_vars_of_glyphs_widget): new function. Declare
4824 Vwidget_border_width which is not yet used.
4826 * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
4827 (x_widget_border_width): new function.
4828 (x_widget_instantiate): create a sensible name for widgets.
4829 (console_type_create_glyphs_x): declare x_widget_border_width.
4831 * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
4832 (struct Lisp_Image_Instance): add :vertically-justify and
4833 :horizontally-justify.
4834 (LAYOUT_JUSTIFY_TOP): new.
4835 (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
4836 (ROUND_UP): new macro. Round argument up to next integral
4839 * redisplay-output.c (redisplay_output_layout): misc formatting.
4841 * symsinit.h: declare specifier_vars_of_glyphs_widget.
4843 2002-08-23 Stephen J. Turnbull <stephen@xemacs.org>
4845 * XEmacs 21.4.9 "Informed Management" is released.
4847 2002-08-19 Andy Piper <andy@xemacs.org>
4849 * fileio.c (Ffile_truename): on cygwin using win32 normalize to
4852 * realpath.c (xrealpath): normalize drive spec also so that dir
4853 sep chars are not mixed on cygwin.
4855 2002-08-06 Jerry James <james@xemacs.org>
4857 * window.c (Fsplit_window): Count only half of the divider width
4858 against the left window when splitting horizontally.
4860 2002-06-24 Andy Piper <andy@xemacs.org>
4862 * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
4863 toolbar was cleared.
4865 * toolbar-msw.c (mswindows_clear_frame_toolbars): new
4866 function. Split out from mswindows_output_frame_toolbars.
4867 (mswindows_output_frame_toolbars): move clear pieces to
4868 mswindows_output_frame_toolbars.
4870 * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
4871 out from gtk_output_frame_toolbars.
4872 (gtk_output_frame_toolbars): move clear pieces to
4873 gtk_clear_frame_toolbars.
4875 * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
4876 the frame is cleared. How this ever worked before is a mystery.
4877 (x_output_frame_toolbars): Only output toolbars.
4878 (x_clear_frame_toolbars): new. Clear previous toolbar locations.
4880 * gutter.c (update_gutter_geometry):
4881 Mark frame layout changed.
4882 (update_frame_gutter_geometry, update_frame_gutters):
4883 Respect frame_layout_changed.
4885 * console.h (struct console_methods): add
4886 clear_frame_toolbars_method.
4888 * redisplay.c (redisplay_frame): call
4889 update_frame_toolbars_geometry and re-order update_frame_toolbars.
4891 * toolbar.h: declare update_frame_toolbars_geometry.
4893 * toolbar.c (update_frame_toolbars_geometry): new function. Split
4894 out from update_frame_toolbars. Call clear_frame_toolbars.
4895 (update_frame_toolbars): only output, do not change geometry.
4897 * redisplay.c: add frame_layout_changed.
4899 * redisplay.h: add frame_layout_changed.
4900 (CLASS_RESET_CHANGED_FLAGS): set it.
4901 (GLOBAL_RESET_CHANGED_FLAGS): ditto.
4902 (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
4903 (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
4905 * device.h (struct device): add frame_layout_changed.
4906 (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
4908 * frame.h (struct frame): add frame_layout_changed.
4909 (MARK_FRAME_LAYOUT_CHANGED): new.
4911 2002-06-30 Mike Alexander <mta@arbortext.com>
4913 * event-msw.c (mswindows_need_event): Don't wait for a new message
4914 if the queue is not empty. Suggested by Paul Moore.
4916 2002-06-12 Andy Piper <andy@xemacs.org>
4918 * frame-msw.c (msprinter_init_frame_3): calculate the frame size
4919 for printing on accurately.
4921 2002-06-09 Rick Rankin <rick_rankin@yahoo.com>
4923 * event-msw.c (mswindows_wnd_proc): Add a handler for the
4924 WM_ACTIVATE message. Make sure that the frame is visible if the
4925 window is visible. This seemss to fix the problem where XEmacs
4926 appears to freeze after switching desktops with certain virtual
4928 (debug_output_mswin_message): Added code to output message
4929 parameters for WM_WINDOWPOSCHANGED,
4930 WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
4932 2002-05-25 Andy Piper <andy@xemacs.org>
4934 * select-x.c (vars_of_select_x): Fix docstring of
4935 x-selection-strict-motif-ownership
4937 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
4939 * keymap.c (get_keymap):
4940 Add comment about do_autoload GCPROs own args.
4942 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
4944 * bytecode.c (execute_optimized_program): check_opcode ifdef
4945 ERROR_CHECK_BYTE_CODE.
4947 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
4949 Thanks to Ben Wing and Michael Sperber.
4951 * eval.c (Fcommand_execute):
4954 (Fmacroexpand_internal):
4955 (function_argcount):
4956 callint.c (Fcall_interactively):
4957 Add comment about do_autoload GCPROs own args.
4959 * (do_autoload): GCPRO both args as well as local Lisp_Object.
4961 * eval.c (Ffuncall): Extra braces to placate GCC.
4963 2002-08-10 Stephen J. Turnbull <stephen@xemacs.org>
4965 * backtrace.h (grow_specpdl):
4967 * EmacsFrame.c (EmacsFrameSetValues):
4968 * eval.c (grow_specpdl):
4969 * ExternalShell.c (hack_event_masks_1):
4970 * glyphs-x.c (convert_EImage_to_XImage):
4971 (x_finalize_image_instance):
4972 * ralloc.c (page_size):
4974 * xgccache.c (gc_cache_hash):
4975 Fix unsigned comparison warnings.
4977 2002-07-29 Jerry James <james@xemacs.org>
4979 * lread.c (locate_file): Any nonnegative return value indicates
4980 success if MODE is nonnegative.
4982 2002-08-03 Brian A Palmer <bpalmer@rescomp.Stanford.EDU>
4984 * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
4987 2002-07-17 Stephen J. Turnbull <stephen@xemacs.org>
4989 * process-unix.c (unix_send_process): #ifdef the coding_stream member.
4991 * dumper.c (pdump_get_indirect_count):
4992 (pdump_scan_by_alignment):
4993 (pdump_dump_root_struct_ptrs):
4994 (pdump_dump_rtables):
4995 (pdump_dump_root_objects):
4997 * nas.c (WaveOpenDataForReading):
4998 * fns.c (print_bit_vector):
4999 * font-lock.c (SINGLE_SYNTAX_STYLE):
5000 * glyphs.c (check_for_ignored_expose):
5001 (find_matching_subwindow):
5003 * imgproc.c (get_histogram):
5004 * redisplay.c (point_in_line_start_cache):
5005 * redisplay-output.c (redisplay_unmap_subwindows):
5006 * symbols.c (defsymbol_massage_name_1):
5007 (defkeyword_massage_name):
5008 (deferror_massage_name_and_message):
5009 * redisplay-x.c (x_output_string):
5010 * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5011 * frame.h (struct frame):
5012 * filelock.c (current_lock_owner):
5013 * doprnt.c (emacs_doprnt_1):
5014 * lisp.h (struct Lisp_Bit_Vector):
5018 2002-02-13 Ben Wing <ben@xemacs.org>
5020 * event-stream.c (reset_key_echo):
5021 * event-stream.c (reset_this_command_keys):
5022 * event-stream.c (execute_command_event):
5023 If console is dead as a result of C-x 5 0, then post-command stuff
5024 needs to be careful and do only non-console-specific stuff.
5026 2002-07-01 Mike Sperber <mike@xemacs.org>
5028 * process-unix.c (unix_send_process): Mark coding_outstream as
5029 non-open upon SIGPIPE.
5031 * event-stream.c (Fnext_event): Reorder switch cases to something
5034 2001-08-13 Dmitry Astapov <adept@umc.com.ua>
5036 * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5037 Don't bogusly reinitialize ascii_character property.
5039 2002-07-08 Mike Sperber <mike@xemacs.org>
5041 * process.c (Fstart_process_internal): Do error checking before we
5042 fork off the child, so the child can't muck with the state of the
5045 2002-07-08 Mike Sperber <mike@xemacs.org>
5047 * ralloc.c (init_ralloc): Allocate properly for pdump.
5049 2002-06-12 Andy Piper <andy@xemacs.org>
5051 * glyphs.c (query_string_geometry): check the string.
5053 * glyphs-widget.c (widget_logical_unit_height): cope with nil
5056 2002-06-17 Jerry James <james@xemacs.org>
5058 * sysdll.c: Remove RTLD_GLOBAL initialization.
5059 * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5061 2002-06-25 Stephen J. Turnbull <stephen@xemacs.org>
5063 * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5065 2002-05-16 Mathias Grimmberger <mgri@zaphod.sax.de>
5067 * sysdep.c (sys_rename): Make sys_rename work for the case where
5068 Windows rename sets errno to EACCES if target file exists.
5070 2002-05-21 Jonathan Harris <jonathan@xemacs.org>
5072 * device-msw.c (mswindows_handle_page_setup_dialog_box):
5073 Fix detection of metric units to work on Win95
5075 2002-05-21 Stephen J. Turnbull <stephen@xemacs.org>
5077 * syswindows.h: #define LOCALE_RETURN_NUMBER. Why, I don't know.
5079 2002-04-25 Andy Piper <andy@xemacs.org>
5081 * redisplay.c (create_text_block): Remove extra comment trailer.
5083 2002-04-24 Andy Piper <andy@xemacs.org>
5085 * redisplay.c (create_text_block): Don't actually add propagation
5086 data if the line ends after we have added a glyph.
5088 2002-04-22 Andy Piper <andy@xemacs.org>
5090 * extents.c (extent_fragment_update): check for glyphs we have
5091 previously displayed.
5092 * extents.c (print_extent_1): warning removal.
5093 * extents.h: change prototype.
5094 * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5095 widths correctly for wide glyphs.
5096 * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5097 * redisplay.c (prop_type): add PROP_GLYPH.
5098 * redisplay.c (struct prop_block): add glyph type
5099 * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5100 to the propagation data.
5101 * redisplay.c (create_text_block): if there is a glyph in the
5102 propagation data use it to salt extent_fragment_update.
5103 * redisplay.c (create_string_text_block): ditto.
5105 2002-04-13 Nix <nix@esperi.demon.co.uk>
5107 * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5108 * redisplay-output.c (compare_runes): Compare them.
5109 * redisplay.c: Update copyright date.
5110 * redisplay.c (pos_data): Add need_baseline_computation field.
5111 * redisplay.c (add_glyph_rune): Update ascent, descent, and
5112 need_baseline_computation; zero yoffset. Set max_pixmap_height
5113 for all pixmaps, not just automatically positioned ones.
5114 * redisplay.c (calculate_yoffset): New, compute yoffset values.
5115 * redisplay.c (calculate_baseline): New, compute textual baseline.
5116 * redisplay.c (add_glyph_rune): Call them.
5117 * redisplay.c (create_text_block): Likewise.
5118 * redisplay.c (create_overlay_glyph_block): Likewise.
5119 * redisplay.c (add_margin_runes): Likewise.
5120 * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5122 * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5123 * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5124 * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5125 * redisplay-msw.c (mswindows_output_string): Likewise.
5126 * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5127 * redisplay-gtk.c (gtk_output_display_block): Likewise.
5128 * redisplay-x.c (x_output_display_block): Likewise.
5130 2002-03-28 Ben Wing <ben@xemacs.org>
5132 * redisplay.c: Fixed bug in redisplay
5133 w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5134 and down of the lines, since they're bigger than the line
5135 size. (It was seen most obviously when there's a horizontal scroll
5136 bar, e.g. do C-h a glyph or something like that.) The problem was
5137 that the glyph-contrib-p setting on glyphs was ignored even if it
5138 was set properly, which it wasn't until now.
5140 2002-04-24 Andy Piper <andy@xemacs.org>
5142 * lisp.h (Dynarr_end): Fix definition.
5144 2002-02-06 Adrian Aichner <adrian@xemacs.org>
5146 * redisplay.c (mark_redisplay): Remove call to
5147 update_frame_window_mirror.
5149 2001-11-15 Andy Piper <andy@xemacs.org>
5151 * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5154 2002-02-13 Andy Piper <andy@xemacs.org>
5156 * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5157 we did in fact enqueue the XM_MAPFRAME event.
5159 2002-01-15 Adrian Aichner <adrian@xemacs.org>
5161 * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5162 to fix problem switching between virtual desktops under virtuawin
5163 virtual window manager.
5165 2001-07-30 Adrian Aichner <adrian@xemacs.org>
5167 * event-msw.c: Typo fix.
5168 * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5169 magic XM_MAPFRAME event has been sent.
5171 2001-11-23 Andy Piper <andy@xemacs.org>
5173 * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5175 2001-11-21 Andy Piper <andy@xemacs.org>
5177 * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5178 mouse events outside the frame.
5180 2002-03-20 Andy Piper <andy@xemacs.org>
5182 * menubar-msw.c (mswindows_popup_menu): warning removal.
5183 * dialog-msw.c (dialog_popped_down): ditto.
5185 2001-12-11 Andy Piper <andy@xemacs.org>
5187 * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5188 * dialog-msw.c (mswindows_make_dialog_box_internal): set
5190 * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5191 * menubar-msw.c (mswindows_handle_wm_command): ditto.
5192 * menubar-msw.c (mswindows_popup_menu): ditto.
5194 2001-10-29 Andy Piper <andy@xemacs.org>
5196 * dialog-msw.c (handle_directory_dialog_box): quit if the user
5199 2002-01-03 Andy Piper <andy@xemacs.org>
5201 * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5205 2002-03-29 Jonathan Harris <jonathan@xemacs.org>
5207 * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5208 * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5209 * device-msw.c (mswindows_handle_page_setup_dialog_box):
5210 Detect and handle case where machine is set up for metric units
5212 2002-04-02 Andy Piper <andy@xemacs.org>
5214 * dired-msw.c (mswindows_get_files):
5215 * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5216 completely handled by XEmacs. Suggested by Thomas Vogler
5217 <mail@thomas-vogler.de>.
5219 2001-11-14 Andy Piper <andy@xemacs.org>
5221 * nt.c (REG_ROOT): change registry key to XEmacs.
5223 2002-04-27 Andy Piper <andy@xemacs.org>
5225 * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5227 2002-04-26 Andy Piper <andy@xemacs.org>
5229 * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5232 2002-03-14 Mike Alexander <mta@arbortext.com>
5234 * event-msw.c (mswindows_unwait_process): New, remove process from
5236 * process-nt.c (nt_finalize_process_data): Call
5237 mswindows_unwait_process
5238 * console-msw.h: Declare mswindows_unwait_process
5240 2002-05-14 Stephen J. Turnbull <stephen@xemacs.org>
5242 * editfns.c (Fdecode_time):
5243 (Fformat_time_string):
5244 Check for invalid time. Thanks to Nick Pakoulin <npak@ispras.ru>.
5245 (make_time): Warning elimination (change arg name).
5247 2001-11-24 Andy Piper <andy@xemacs.org>
5249 * window.c (Fsplit_window): Doc return type.
5251 2002-04-01 Andy Piper <andy@xemacs.org>
5253 * emacs.c (Fkill_emacs): Only output message box in interactive
5256 2002-04-26 Andy Piper <andy@xemacs.org>
5258 * config.h.in: pull in 21.5.x change to stop alloca warnings under
5261 2002-03-18 Gregory Steuck <greg-xemacs-patch@nest.cx>
5263 * unexelf.c: Use ELFSIZE or define from _LP64 to indicate a 64
5266 2002-05-09 Stephen J. Turnbull <stephen@xemacs.org>
5268 * XEmacs 21.4.8 "Honest Recruiter" is released.
5270 2002-05-07 Nix <nix@esperi.demon.co.uk>
5272 Supersedes 2002-04-17 patch.
5274 * process.h (PROCESS_LIVE_P): Use the process status as
5275 evidence of health, not the state of the input stream.
5276 (PROCESS_READABLE_P): Say if the process is readable
5277 from. (It may be dead nonetheless.)
5278 (CHECK_READABLE_PROCESS): Test for that condition.
5280 * process.c (create_process): Use PROCESS_READABLE_P.
5281 (read_process_output, set_process_filter): Likewise.
5283 * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5284 (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5286 This code is #if 0'd, this is not the time to add new functions:
5288 * process.c (Fprocess_readable_p): Report readability status.
5289 * process.c (Qprocess_readable_p): New, associated symbol...
5290 * process.c (syms_of_process): ... initialize it.
5292 2002-05-04 Stephen J. Turnbull <stephen@xemacs.org>
5294 * XEmacs 21.4.7 "Economic Science" is released.
5296 2002-04-17 Nix <nix@esperi.demon.co.uk>
5298 * process.h (PROCESS_LIVE_P): Use the process status as
5299 evidence of health, not the state of the input stream.
5301 2002-04-30 Charles G. Waldman <cgw@xemacs.org>
5303 * sysdep.c (sys_siglist): change "signum" to "signal"
5305 2001-04-21 Martin Buchholz <martin@xemacs.org>
5307 * s/darwin.h: New file.
5308 Thanks to Greg Parker <gparker@cs.stanford.edu>.
5310 2002-04-23 Andreas Jaeger <aj@suse.de>
5312 * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5313 which use lib64 for 64-bit libs.
5314 (START_FILES): Likewise.
5316 2002-02-11 Mike Sperber <mike@xemacs.org>
5319 (x_IO_error_handler):
5320 (x_init_device): Temporarily keep device in static variable
5321 `device_being_initialized' so we can recover gracefully from
5322 internal XOpenDevice failure. (XOpenDevice is documented to
5323 return NULL on failure, but sometimes calls the IO error handler
5326 2002-01-31 John H. Palmieri <palmieri@math.washington.edu>
5328 * dired.c (Ffile_name_all_completions): Change documentation --
5329 remove reference to completion-ignored-extensions.
5330 * dired.c (vars_of_dired): Change documentation for
5331 completion-ignored-extensions -- remove reference to
5332 file-name-all-completions.
5334 2002-03-06 Jerry James <james@xemacs.org>
5336 * emodules.c (emodules_load): Fix multiple loading of same module.
5338 2002-01-25 Andrew Begel <abegel@cs.berkeley.edu>
5339 * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5340 RTLD_LAZY to avoid incorrect symbol binding when using nested
5341 shared libraries on Solaris.
5343 2002-02-12 Stephen J. Turnbull <stephen@xemacs.org>
5345 * fileio.c (Ffind_file_name_handler): Improve docstring.
5347 2002-01-20 Stephen J. Turnbull <stephen@xemacs.org>
5349 * fns.c (Fmapconcat): Improve docstring.
5351 2002-01-03 Eric Gillespie, Jr. <epg@pretzelnet.org>
5353 * device-gtk.c: Add prototype for
5354 emacs_gtk_selection_clear_event_handle.
5355 (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5356 selection. Setup signal handler for "selection_clear_event"
5357 (emacs_gtk_selection_clear_event_handle).
5359 * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5360 other applications owning the clipboard (based on
5361 x_handle_selection_clear).
5363 2001-12-23 William M. Perry <wmperry@gnu.org>
5365 * menubar-gtk.c (gtk_popup_menu) Add sanity checks, fix crash.
5367 2002-01-04 Martin Buchholz <martin@xemacs.org>
5369 * keymap.c (define_key_alternate_name): Parenthesize EQ.
5371 2001-12-17 Stephen J. Turnbull <stephen@xemacs.org>
5373 * XEmacs 21.4.6 "Common Lisp" is released.
5375 2001-12-16 Torsten Duwe <duwe@caldera.de>
5377 * search.c (Freplace_match): Add missing sub-expression functionality.
5379 * buffer.c (decode_buffer): Add a check for pointer type to
5380 decode_buffer, before gcc's CSE optimization reorders a
5381 dereference in front of the allow_string test.
5383 2001-11-16 Darryl Okahata <darrylo@xemacs.org>
5385 * window.c (window_loop): Fix bug that sometimes prevented
5386 window_loop() from iterating across multiple devices. Also, at
5387 Ben's request, changed infloop-detecting code to abort() instead
5388 of silently terminating window_loop().
5390 2001-11-21 Stephen J. Turnbull <stephen@xemacs.org>
5392 Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5393 * editfns.c (make_time): New function.
5394 (Fencode_time): Use it instead of wasteful_word_to_lisp.
5395 * lisp.h (make_time): Prototype and comment it.
5396 * dired.c (wasteful_word_to_lisp): Deprecate.
5397 (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5399 2001-10-31 Kyle Jones <kyle_jones@wonderworks.com>
5401 * fileio.c (auto_save_1): Use current coding system, not
5404 2001-11-13 Ben Wing <ben@xemacs.org>
5407 * window.c (window_truncation_on):
5408 * window.c (syms_of_window):
5409 truncate-partial-width-windows should respect the buffer being
5410 displayed, like other redisplay vars.
5412 2001-11-13 Hirokazu FUKUI <hfukui@sannet.ne.jp>
5414 * event-stream.c (Fread_key_sequence): save current buffer.
5416 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
5418 * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5420 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
5422 * alloc.c (lcrecord_stats): Add space for types defined in modules.
5424 2001-10-26 Mike Alexander <mta@arbortext.com>
5426 * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5428 2001-10-25 Andy Piper <andy@xemacs.org>
5431 * dialog-msw.c (handle_directory_proc): new function.
5432 (handle_directory_dialog_box): new fucntion.
5433 (handle_file_dialog_box): use new directory dialog support.
5434 (mswindows_make_dialog_box_internal): ditto.
5435 * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5437 (mswindows_find_frame): make global.
5438 * fileio.c (Fexpand_file_name): build fix.
5439 * general-slots.h: add Qdirectory.
5440 * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5442 * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5443 cygwin not leaving win32 paths unchanged.
5444 * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5445 cygwin runtime to do path conversion.
5446 (Fmswindows_shell_execute): fix cygwin handling of URLs.
5447 (syms_of_win32): add new function.
5448 * window.c (window_loop): build fix.
5450 2001-10-15 Andy Piper <andy@xemacs.org>
5452 (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5454 2001-10-23 Stephen J. Turnbull <stephen@xemacs.org>
5456 * XEmacs 21.4.5 "Civil Service" is released.
5458 2001-04-08 Danny Colascione <qtmstr@optonline.net>
5460 * glyphs-x.c: Force buffer-tab highlight update when moving the
5461 buffer, avoiding an ugly black border, used for keyboard focus
5462 indication, on a widget that can never have keyboard focus, the
5465 2001-08-30 Daiki Ueno <ueno@unixuser.org>
5467 * process-unix.c (unix_open_multicast_group): Remove too much
5468 conversion between host and network byte order.
5470 2001-09-10 Nix <nix@esperi.demon.co.uk>
5472 * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5473 before replacing them.
5475 * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5478 * src/window.c (undedicate_windows): Use it.
5479 * src/window.h: Add prototype.
5481 2001-09-17 Ben Wing <ben@xemacs.org>
5483 * fileio.c (normalize_filename):
5484 * fileio.c (Fexpand_file_name):
5485 Fix various C++ compile errors in Andy's recent code.
5487 * callint.c (Fcall_interactively):
5488 * editfns.c (Ftemp_directory):
5489 * editfns.c (Fuser_full_name):
5490 * emacs.c (argmatch):
5491 * lread.c (locate_file_map_suffixes):
5492 * redisplay-x.c (x_ring_bell):
5493 Fix sign-compare warnings.
5495 2001-09-08 Andy Piper <andy@xemacs.org>
5497 * fileio.c (normalize_filename): copied from nt.c
5498 * (Ffile_name_directory): enable win32 paths under cygwin.
5499 * (Ffile_name_nondirectory): ditto.
5500 * (directory_file_name): ditto.
5501 * (Fexpand_file_name): ditto.
5502 * (Ffile_truename): ditto.
5503 * (Fsubstitute_in_file_name): ditto.
5504 * (Ffile_name_absolute_p): ditto.
5505 * (Ffile_readable_p): ditto.
5507 2001-09-08 Andy Piper <andy@xemacs.org>
5509 * device-msw.c (mswindows_finish_init_device): remove dde
5511 * device-msw.c (mswindows_init_dde): factor out from
5512 mswindows_finish_init_device()
5513 * device-msw.c (init_mswindows_very_early): new function
5514 initialize but don't enable dde.
5515 * emacs.c (main_1): call init_mswindows_very_early.
5517 * event-msw.c (mswindows_dde_callback): only execute when we are
5519 * symsinit.h: declare init_mswindows_very_early.
5521 2001-05-02 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5523 [sjt: This has been in 21.5 for months with no complaints.]
5525 * console.h (struct console_methods): Added flags member.
5526 (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5527 (CONMETH_IMPL_FLAG):
5528 (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5529 Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5531 * device.c (window_system_pixelated_geometry): Use the above macros.
5533 * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5534 implememntation flag.
5535 * device.h (DEVICE_DISPLAY_P): Use it.
5537 * frame.c (delete_frame_internal): Use the above macro.
5539 * redisplay.c (redisplay_device): Use it.
5540 (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5541 (redisplay_frame): Ditto.
5543 * device-msw.c (mswindows_device_implementation_flags): Removed.
5544 (msprinter_device_implementation_flags): Removed.
5545 (console_type_create_device_mswindows): Removed references to
5546 implementation_flags methods, set implementation flags here.
5547 (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5549 * device-gtk.c (gtk_device_implementation_flags): Removed method.
5550 (console_type_create_device_gtk): Removed method declaration.
5551 Added commented out statement which semantically matches the
5552 commented out statement in the above removed method.
5554 2001-04-14 Gordon Sadler <gbsadler1@lcisp.com>
5556 The attached patch fixes a few warnings.
5558 * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5559 * src/frame-gtk.c: guard against GNOME calls in GTK only
5560 * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5561 * src/select-gtk.c: prototype lisp_to_time
5563 2001-06-08 Ben Wing <ben@xemacs.org>
5565 ------ gc-in-window-procedure fixes ------
5568 * alloc.c (struct post_gc_action):
5569 * alloc.c (register_post_gc_action):
5570 * alloc.c (run_post_gc_actions):
5571 * alloc.c (garbage_collect_1):
5572 Create "post-gc actions", to avoid those dreaded "GC during window
5573 procedure" problems.
5576 Abort, clean and simple, when GC in window procedure. We want
5577 to flush these puppies out.
5580 * glyphs-msw.c (finalize_destroy_window):
5581 * glyphs-msw.c (mswindows_finalize_image_instance):
5582 Use a post-gc action when destroying subwindows.
5585 Declare register_post_gc_action().
5588 * scrollbar-msw.c (unshow_that_mofo):
5589 Use a post-gc action when unshowing scrollbar windows, if in gc.
5591 * redisplay.c (mark_redisplay):
5592 Add comment about the utter evilness of what's going down here.
5594 ------ cygwin setitimer fixes ------
5596 * Makefile.in.in (sheap_objs):
5597 * Makefile.in.in (profile_objs):
5598 * Makefile.in.in (objs):
5599 Compile profile.c only when HAVE_SETITIMER.
5601 * nt.c (mswindows_sigset):
5602 * nt.c (mswindows_sighold):
5603 * nt.c (mswindows_sigrelse):
5604 * nt.c (mswindows_sigpause):
5605 * nt.c (mswindows_raise):
5606 * nt.c (close_file_data):
5610 Move setitimer() emulation to win32.c, because Cygwin needs it too.
5613 * profile.c (Fstart_profiling):
5614 * profile.c (Fstop_profiling):
5615 Make sure we don't compile if no setitimer(). Use qxe_setitimer()
5616 instead of just plain setitimer().
5619 * signal.c (set_one_shot_timer):
5621 Define qxe_setitimer() as an encapsulation around setitimer() --
5622 call setitimer() directly unless Cygwin or MS Win, in which case
5623 we use our simulated version in win32.c.
5626 * systime.h (struct itimerval):
5627 * systime.h (ITIMER_REAL):
5628 Prototype mswindows_setitimer() and qxe_setitimer(). Long
5629 comment about "qxe" and the policy regarding encapsulation.
5632 * win32.c (setitimer_helper_proc):
5633 * win32.c (setitimer_helper_period):
5634 * win32.c (setitimer_helper):
5635 * win32.c (mswindows_setitimer):
5636 Move setitimer() emulation here, so Cygwin can use it.
5637 Rename a couple of functions and variables to be longer and more
5638 descriptive. In setitimer_helper_proc(), send the signal
5639 using either mswindows_raise() or (on Cygwin) kill(). If for
5640 some reason we are still getting lockups, we'll change the kill()
5641 to directly invoke the signal handlers.
5643 ------ windows shell fixes ------
5647 Comments about how these two files must die.
5649 * callproc.c (init_callproc):
5650 On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5651 not just COMSPEC. (more correct and closer to FSF.) Don't
5652 force a value for SHELL into the environment. (Comments added
5653 to explain why not.)
5655 * nt.c (init_user_info):
5656 Don't shove a fabricated SHELL into the environment. See above.
5658 2001-06-01 Ben Wing <ben@xemacs.org>
5660 * Makefile.in.in (ldflags):
5661 eliminate that pesky "defaulting to 00401000" warning.
5665 2001-06-15 Golubev I. N. <gin@mo.msk.ru>
5667 * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5668 * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5670 2001-04-24 Jerry James <james@xemacs.org>
5672 * faces.h: pass parameters to Fadd_spec_to_specifier in the
5675 2001-06-01 Ben Wing <ben@xemacs.org>
5677 * event-msw.c (debug_mswin_messages):
5678 conditionalize the messages that were causing compile errors.
5679 (if only macros could generate #ifdef statements ...)
5681 2001-07-28 Stephen J. Turnbull <stephen@xemacs.org>
5683 * XEmacs 21.4.4 "Artificial Intelligence" is released.
5685 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
5687 * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5689 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
5691 * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5692 * process-unix.c (unix_canonicalize_host_name):
5693 sysdep.c (init_system_name):
5694 Use it to conditionally support IPv6 canonicalization.
5696 2001-05-31 Paul Stodghill <stodghil@cs.cornell.edu>
5699 Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5701 2001-05-19 Paul Krause <paulkrause1@mediaone.net>
5703 * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5704 attempt is made to scroll when no scroll bar is available.
5706 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
5708 * input-method-motif.c (XIM_delete_frame): New callback.
5709 (XIM_init_frame): Register it. (Reapplied by SJT, it somehow
5710 got deleted from 21.4.3.)
5712 2001-06-01 Ben Wing <ben@xemacs.org>
5714 * nt.c (mswindows_utime):
5715 * nt.c (close_file_data):
5716 fix off-by-one-indirection error.
5718 2001-05-29 Adrian Aichner <adrian@xemacs.org>
5720 * fileio.c: Include nt.h. Remove lisp_string_set_file_times()
5721 because set_file_times() now takes Lisp_Object path, instead of
5723 * nt.c: Include buffer.h.
5724 * nt.c (convert_from_time_t): New.
5725 * nt.c (mswindows_utime): New. Use utime, since SetFileTime does
5726 not set mtime correctly.
5727 * nt.h: Declare mswindows_utime().
5728 * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5729 path, instead of char*.
5730 * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5732 2001-05-30 Ben Wing <ben@xemacs.org>
5736 (Stephen, just take all event-msw.c patches. This includes
5737 the "iconify" fix below.)
5740 * event-msw.c (mswindows_dequeue_dispatch_event):
5741 * event-msw.c (assert):
5742 * event-msw.c (emacs_mswindows_quit_p):
5743 * event-msw.c (debug_mswin_messages):
5744 * event-msw.c (debug_output_mswin_message):
5745 * event-msw.c (vars_of_event_mswindows):
5746 Fix yet more problems with C-g handling.
5747 Implement debug-mswindows-events.
5749 2001-05-24 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5751 * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5753 2001-05-23 Ben Wing <ben@xemacs.org>
5755 * event-msw.c (winsock_writer):
5756 * event-msw.c (winsock_closer):
5757 prior kludgy code was clobbering the buffer, thinking it was
5758 "unused" space to store an unneeded return value; instead, use
5759 the variable we've already got staring us in the face.
5761 2001-05-17 Andy Piper <andy@xemacs.org>
5763 * sysfile.h: don't assume that file attributes are boolean
5765 2001-05-23 Ben Wing <ben@xemacs.org>
5767 * device-msw.c (msprinter_init_device):
5768 signal an error rather than crash with an unavailable network
5769 printer (from Mike Alexander).
5772 * event-msw.c (struct winsock_stream):
5773 * event-msw.c (winsock_writer):
5774 * event-msw.c (winsock_closer):
5775 * event-msw.c (make_winsock_stream_1):
5776 cleanup headers. fix (hopefully) an error with data corruption
5777 when sending to a network connection.
5779 * fileio.c (Fexpand_file_name): Fix evil code that attempts
5780 to handle the ~user prefix by (a) always assuming we're referencing
5781 ourselves and not even verifying the user -- hence any file with
5782 a tilde as its first char is invalid! (b) if there wasn't a slash
5783 following the filename, the pointer was set *past* the end of
5784 file and we started reading from uninitialized memory. Now we
5785 simply treat these as files, always.
5787 * buffer.c (common_init_complex_vars_of_buffer): comment change.
5789 2001-05-19 Ben Wing <ben@xemacs.org>
5791 * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5794 * process-nt.c (vars_of_process_nt):
5795 remove unused mswindows-quote-process-args. rec for 21.4.
5797 2001-05-12 Ben Wing <ben@xemacs.org>
5799 * event-msw.c (mswindows_dde_callback):
5800 * event-msw.c (mswindows_wnd_proc):
5801 eliminate cygwin warnings.
5803 2001-05-06 Ben Wing <ben@xemacs.org>
5807 * device-msw.c (print_dialog_worker):
5808 * device-msw.c (mswindows_handle_print_dialog_box):
5809 * device-msw.c (syms_of_device_mswindows):
5810 * dialog-msw.c (mswindows_make_dialog_box_internal):
5812 implement printing the selection when it's selected.
5814 2001-05-20 Drazen Kacar <dave@arsdigita.com>
5816 * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
5818 2001-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
5820 * lisp.h (EMACS_INT_MAX): This should be one bit less since
5821 EMACS_INT is signed.
5823 2001-04-15 Michael Lausch <mla@1012surf.net>
5825 * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
5826 gtk_widget_request_size() to give scrollbar >0 width for
5829 2001-05-30 William M. Perry <wmperry@gnu.org>
5831 * event-gtk.c: Check for buttons as modifier keys.
5833 2001-05-25 Craig Lanning <CraigL@Knology.net>
5836 Properly find MinGW's <process.h> inside Cygwin's restructured
5837 include directories. Don't try to include <cygwin/version.h>
5838 since we are dropping support for MinGW in versions of Cygwin
5841 Drop support for MinGW in versions of Cygwin before b21.
5843 Properly find MinGW's <process.h> inside Cygwin's restructured
5844 include directories.
5846 Drop support for MinGW in versions of Cygwin before b21.
5848 Even though a.out.h is no longer detected by configure, allow
5849 MinGW to use it until we figure out how to do the job with Win32.
5851 2001-07-11 Matt Tucker <tuck@whistlingfish.net>
5853 * syntax.c (find_start_of_comment):
5854 Fix `unbalanced parentheses' bug when dealing with mixed comment
5855 styles in c++/java/etc. mode
5857 2001-05-29 Mike Alexander <mta@arbortext.com>
5859 * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
5860 FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
5862 2001-05-17 Andrew Begel <abegel@eecs.berkeley.edu>
5864 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
5866 2001-03-31 Mike Sperber <mike@xemacs.org>
5868 * search.c (Freplace_match): Support FSF-style specification of
5869 match subexpression when applied to a buffer.
5871 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
5873 * event-stream.c (is_scrollbar_event): add missing semicolon
5875 2001-05-22 Isaac Hollander <ysh@mindspring.com>
5877 * Makefile.in.in: Use TAR macro instead of hardcoding
5878 tar. Allows use of GNU tar instead of system tar
5880 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
5882 * event-stream.c (is_scrollbar_event): add missing semicolon
5884 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
5886 * XEmacs 21.4.3 "Academic Rigor" is released.
5888 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
5890 * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
5892 2001-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
5894 * buffer.c (Vcase_fold_search): Remove obsolete
5895 comment about non ASCII case-fold-search. This
5896 bug has been fixed by case-table changes.
5898 2001-05-11 Stephen J. Turnbull <stephen@xemacs.org>
5900 * event-msw.c: Restore include of events-mod.h.
5902 2001-04-22 zhaoway <zw@debian.org>
5904 * event-stream.c (is_scrollbar_event): Noop returning 0 if
5907 2001-05-10 Stephen J. Turnbull <stephen@xemacs.org>
5909 * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
5911 2001-05-08 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
5913 * mule-charset.c (Fmake_charset): Add missing else.
5915 2001-04-23 Ben Wing <ben@xemacs.org>
5917 * event-msw.c (FAKE_MOD_QUIT):
5918 * event-msw.c (mswindows_dequeue_dispatch_event):
5919 * event-msw.c (mswindows_wnd_proc):
5920 * event-msw.c (emacs_mswindows_quit_p):
5921 Get critical quit working.
5923 2001-05-05 Ben Wing <ben@xemacs.org>
5927 * device-msw.c (mswindows_get_default_margin):
5928 * frame-msw.c (mswindows_size_frame_internal):
5929 * frame-msw.c (msprinter_init_frame_1):
5930 * frame-msw.c (vars_of_frame_mswindows):
5931 Change top/bottom margin defaults to 0.5 inches.
5933 2001-05-01 Martin Buchholz <martin@xemacs.org>
5935 Fix link error with gcc 3.0 on Linux.
5936 * terminfo.c (UP): Remove.
5937 * terminfo.c (BC): Remove.
5938 * terminfo.c (PC): Remove.
5939 They weren't used, and in any case, these symbols should be
5940 defined in the *library*.
5942 2001-05-03 Martin Buchholz <martin@xemacs.org>
5944 * s/aix4.h: Fix crash with xlc -O3.
5945 Improve comment explaining how -O3 works.
5947 2001-04-15 Ben Wing <ben@xemacs.org>
5950 * event-stream.c (Fnext_event):
5951 * event-stream.c (is_scrollbar_event):
5952 * event-stream.c (execute_command_event):
5953 Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
5954 crash' problem. His fix introduces other problems. We filter
5955 out scrollbar events specifically, making them somewhat invisible
5956 to command-building, and not appearing in `this-command-keys'.
5957 More work is still needed (see comments in event-stream.c), but
5958 this fixes all the major problems.
5960 2001-04-20 Ben Wing <ben@xemacs.org>
5962 * .cvsignore: Added stuff for Windows.
5964 2001-04-28 Ben Wing <ben@xemacs.org>
5966 * buffer.c (Ferase_buffer):
5967 * editfns.c (buffer_insert1):
5968 * editfns.c (Finsert_before_markers):
5969 * editfns.c (Finsert_string):
5970 * editfns.c (Finsert_char):
5971 * editfns.c (Fdelete_region):
5972 * editfns.c (Fwiden):
5973 * editfns.c (Fnarrow_to_region):
5974 remove bogus lines setting zmacs_region_stays to 0.
5976 2001-04-15 Gunnar Evermann <ge204@eng.cam.ac.uk>
5978 * process-unix.c (unix_open_network_stream): If connect() fails
5979 invalidate file descriptor after closing it.
5981 2001-03-08 Mike Alexander <mta@arbortext.com>
5983 * event-msw.c (mswindows_need_event_in_modal_loop):
5984 Don't dispatch a message if we didn't get one.
5985 (mswindows_need_event):
5986 Terminate the correct process when one exits instead of the first
5987 one on Vprocess_list and look for process termination when in
5988 mswindows_protect_modal_loop.
5990 2001-04-19 Stephen J. Turnbull <stephen@xemacs.org>
5992 * XEmacs 21.4.1 "Copyleft" is released.
5994 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
5996 * input-method-motif.c (XIM_delete_frame): New callback.
5997 (XIM_init_frame): Register it.
5999 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
6001 * XEmacs 21.4.0 "Solid Vapor" is released.
6003 2001-04-15 Ben Wing <ben@xemacs.org>
6005 * cmdloop.c (call_command_loop):
6006 Fix braino in bit-rotting code.
6008 2001-04-07 Hrvoje Niksic <hniksic@arsdigita.com>
6010 * extents.c (Fset_extent_endpoints): Force creation of extent info
6011 in buffer_or_string.
6013 * extents.c (process_extents_for_insertion_mapper): Correctly
6014 check for open-open zero-length extents.
6016 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
6018 * lisp.h: New typedefs Memory_count, Element_count.
6021 Sign-compare warning elimination: several unsigned -> signed.
6022 Based on work by Ben Wing <ben@xemacs.org>.
6024 2001-04-14 Stephen J. Turnbull <stephen@xemacs.org>
6026 * XEmacs 21.2.47 "Zephir" is released.
6028 2001-04-02 Jan Vroonhof <jan@xemacs.org>
6030 * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6032 2001-04-03 Mike Sperber <mike@xemacs.org>
6034 * search.c: Revert previous patch due because of release.
6036 2001-03-30 Ben Wing <ben@xemacs.org>
6039 Add missing killpg prototype.
6042 Add a comment about fixing problems when a new entry is added
6045 * frame-msw.c (mswindows_init_frame_1):
6046 Fix compile warnings.
6048 * menubar.c (vars_of_menubar):
6049 Provide `menu-accelerator-support' to indicate that we properly
6050 support %_ in menu specifications, so that package code can
6051 conditionalize on this (and remove %_ from menu specifications
6056 * scrollbar-msw.c (can_scroll):
6058 Fix handling of mouse wheel under Windows to follow standards --
6059 now scrolls window under pointer, not selected window.
6061 2001-03-31 Mike Sperber <mike@xemacs.org>
6063 * search.c (Freplace_match): Support FSF-style specification of
6064 match subexpression when applied to a buffer.
6066 2001-03-15 Martin Buchholz <martin@xemacs.org>
6068 * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6069 function to modify KEYMAP, so map over a copy of the hash table.
6071 2001-03-21 Martin Buchholz <martin@xemacs.org>
6073 * XEmacs 21.2.46 "Urania" is released.
6075 2001-03-20 Dan Holmsand <dan@eyebee.com>
6077 * realpath.c (xrealpath): Make file-truename work with symlinks to
6078 /cygdrive paths on cygwin. Always lowercase drive-letters on
6080 (cygwin_readlink): Don't try to find canonical filename unless
6083 2001-03-15 Stephen J. Turnbull <stephen@xemacs.org>
6085 * ChangeLog: Log GTK merge.
6091 Revert gratuitous whitespace changes from GTK merge.
6093 * emacs.c: Document end of complex #ifdef @ l. 1495.
6096 2001-03-12 Andy Piper <andy@xemacs.org>
6098 * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6099 have to do likewise.
6101 2001-03-12 Andy Piper <andy@xemacs.org>
6103 * sysdep.c: we only support mingw now.
6105 2001-03-09 Andy Piper <andy@xemacs.org>
6107 * unexcw.c (copy_executable_and_dump_data_section): making approx
6108 overrun a warning only.
6110 2001-03-10 William M. Perry <wmperry@aventail.com>
6112 * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6113 satisfy Stephen's identical-after-cpp plea.
6115 2001-03-02 Ben Wing <ben@xemacs.org>
6118 * cmds.c (Fforward_char):
6122 Augment documentation of the most common motion commands to make
6123 note of the shifted-motion support.
6125 2001-03-02 Ben Wing <ben@xemacs.org>
6127 * nt.c (mswindows_fstat):
6128 * nt.c (mswindows_stat):
6129 * search.c (boyer_moore):
6130 Fix compile warnings under Windows.
6132 * sysdep.c (sys_readdir):
6133 Fix buggy filename-conversion code under Mule.
6135 2001-03-09 William M. Perry <wmperry@aventail.com>
6157 * redisplay-output.c:
6163 The Great GTK Merge.
6170 * emacs-widget-accessors.c:
6184 * native-gtk-toolbar.c:
6195 The Great GTK Merge: new files.
6197 2001-02-26 Ben Wing <ben@xemacs.org>
6199 Reapplied Lstream change.
6201 2001-02-26 Ben Wing <ben@xemacs.org>
6203 Undid the last change, since it is more controversial than I
6204 thought. It should be back in at some point soon.
6206 2001-02-25 Ben Wing <ben@xemacs.org>
6209 * callproc.c (Fold_call_process_internal):
6210 * event-msw.c (ntpipe_slurp_reader):
6211 * event-msw.c (ntpipe_shove_writer):
6212 * event-msw.c (winsock_reader):
6213 * event-msw.c (winsock_writer):
6215 * file-coding.c (detect_eol_type):
6216 * file-coding.c (detect_coding_type):
6217 * file-coding.c (determine_real_coding_system):
6218 * file-coding.c (Fdetect_coding_region):
6219 * file-coding.c (decoding_reader):
6220 * file-coding.c (decoding_writer):
6221 * file-coding.c (mule_decode):
6222 * file-coding.c (Fdecode_coding_region):
6223 * file-coding.c (encoding_reader):
6224 * file-coding.c (encoding_writer):
6225 * file-coding.c (mule_encode):
6226 * file-coding.c (Fencode_coding_region):
6227 * file-coding.c (detect_coding_sjis):
6228 * file-coding.c (decode_coding_sjis):
6229 * file-coding.c (encode_coding_sjis):
6230 * file-coding.c (detect_coding_big5):
6231 * file-coding.c (decode_coding_big5):
6232 * file-coding.c (encode_coding_big5):
6233 * file-coding.c (detect_coding_ucs4):
6234 * file-coding.c (decode_coding_ucs4):
6235 * file-coding.c (encode_coding_ucs4):
6236 * file-coding.c (detect_coding_utf8):
6237 * file-coding.c (decode_coding_utf8):
6238 * file-coding.c (encode_coding_utf8):
6239 * file-coding.c (detect_coding_iso2022):
6240 * file-coding.c (decode_coding_iso2022):
6241 * file-coding.c (encode_coding_iso2022):
6242 * file-coding.c (decode_coding_no_conversion):
6243 * file-coding.c (encode_coding_no_conversion):
6244 * glyphs-x.c (write_lisp_string_to_temp_file):
6245 * gpmevent.c (tty_get_foreign_selection):
6248 * lstream.c (Lstream_flush_out):
6249 * lstream.c (Lstream_adding):
6250 * lstream.c (Lstream_write_1):
6251 * lstream.c (Lstream_write):
6252 * lstream.c (Lstream_raw_read):
6253 * lstream.c (Lstream_read_more):
6254 * lstream.c (Lstream_read):
6255 * lstream.c (Lstream_unread):
6256 * lstream.c (Lstream_fputc):
6257 * lstream.c (stdio_reader):
6258 * lstream.c (stdio_writer):
6259 * lstream.c (filedesc_reader):
6260 * lstream.c (filedesc_writer):
6261 * lstream.c (lisp_string_reader):
6262 * lstream.c (struct fixed_buffer_stream):
6263 * lstream.c (make_fixed_buffer_input_stream):
6264 * lstream.c (make_fixed_buffer_output_stream):
6265 * lstream.c (fixed_buffer_reader):
6266 * lstream.c (fixed_buffer_writer):
6267 * lstream.c (struct resizing_buffer_stream):
6268 * lstream.c (resizing_buffer_writer):
6269 * lstream.c (dynarr_writer):
6270 * lstream.c (lisp_buffer_reader):
6271 * lstream.c (lisp_buffer_writer):
6273 * lstream.h (lstream_implementation):
6274 * lstream.h (struct lstream):
6276 * process-nt.c (nt_send_process):
6277 * process-unix.c (unix_send_process):
6279 Correct Lstream lossage due to mixing of signed and unsigned
6280 quantities. All Lstream uses of size_t and ssize_t are now a
6281 single signed data type Lstream_data_count. This fixes problems
6282 under Windows with sending large quantities of data to a process,
6283 and may well fix other subtle bugs.
6285 2001-02-23 Martin Buchholz <martin@xemacs.org>
6287 * XEmacs 21.2.45 "Thelxepeia" is released.
6289 2001-02-21 Martin Buchholz <martin@xemacs.org>
6291 * lisp-union.h (XSETINT):
6294 Reverse previous change of 2001-02-06.
6296 2001-02-20 Matt Tucker <tuck@whistlingfish.net>
6298 Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6300 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6301 * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6302 Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6303 * regex.c (POS_AS_IN_BUFFER): removed
6304 * regex.c (re_search_2):
6305 * regex.c (re_match_2):
6306 Don't use an offset of 1 when calculating buffer positions, since
6307 `BI_BUF_BEGV' does it already.
6309 2001-02-18 Wim Dumon <wim@easics.be>
6311 * insdel.c (prepare_to_modify_buffer): Also check for
6312 supersession when clash-detection is enabled.
6314 2001-02-17 Matt Tucker <tuck@whistlingfish.net>
6316 * regex.c (re_match_2_internal):
6317 Convert temp characters from 'const unsigned char' to 're_char'.
6318 Fix crashing bug with extended characters under mule.
6319 * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6320 syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6321 font-lock, pdump, and new syntax-table code.
6322 * syntax.c (find_start_of_comment):
6323 (find_end_of_comment):
6325 Fix crashing bugs involving moving beyond end of buffer.
6326 * syntax.c (find_start_of_comment):
6327 Fixed logic to allow proper detection of cases where the same
6328 character is used to end both a two-char comment start and a
6329 two-char comment end sequence. Fixes `(forward-comment -1)'.
6330 * syntax.c (find_start_of_comment):
6331 Return position just past last comment-end character for all cases
6332 (previously was only done for two-char comment-end sequences).
6333 * syntax.c (forward-comment):
6334 Take value returned from `find_end_of_comment', rather than
6336 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6337 Properly deal with BUFFERP (syntax_cache.object)
6339 2001-02-17 Martin Buchholz <martin@xemacs.org>
6341 * alloc.c (Fgarbage_collect):
6342 * alloc.c (make_bit_vector_from_byte_vector):
6343 -Wsign-compare-correctness.
6345 2001-02-16 Martin Buchholz <martin@xemacs.org>
6347 * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6348 (XSETCHAR): Likewise.
6349 (XSETOBJ): Likewise.
6351 2001-02-15 Martin Buchholz <martin@xemacs.org>
6353 * mule-canna.c (canna-func-delete_previous):
6354 Rename to canna-func-delete-previous.
6356 2001-02-14 Martin Buchholz <martin@xemacs.org>
6358 * mule-ccl.c (ccl_driver): Warning suppression. Use countof.
6360 2001-02-13 Matt Tucker <tuck@whistlingfish.net>
6362 * font-lock.c (find_context): Fix C++ compile errors introduced by
6365 2001-02-13 Martin Buchholz <martin@xemacs.org>
6367 * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6368 pragma, but earlier ones barf on the same pragma.
6370 2001-02-06 Mike Sperber <mike@xemacs.org>
6372 * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6373 `configure-mule-lisp-directory'.
6375 2001-02-12 Martin Buchholz <martin@xemacs.org>
6377 Make sure dump-id.c is compiled in the same way as other .c's.
6378 Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6379 * dump-id.h: Remove.
6380 * emacs.c: Move dump-id.h into dumper.h.
6381 * dumper.h: Move dump-id.h into dumper.h.
6383 Use standard .c.o rule for building dump-id.o.
6384 Remove preprocessor flags from link command.
6385 Add dump-id.o to ${otherobjs} if PDUMP.
6387 2001-02-07 Matt Tucker <tuck@whistlingfish.net>
6389 Port FSF 20.7 syntax table improvements.
6393 Fixups for new syntax table stuff.
6394 * dired.c: Include syntax.c.
6395 (Fdirectory_files): Initialize regex_match_object and
6397 * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6398 and Fget_char_property.
6400 Use ported FSF 20.7 syntax table improvements.
6405 2001-02-09 Martin Buchholz <martin@xemacs.org>
6407 * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6408 Unixware's enum boolean from sys/types.h.
6410 2001-02-10 Martin Buchholz <martin@xemacs.org>
6412 Fix support for building with latest Purify.
6413 * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6414 (PURIFY_FLAGS): Likewise.
6416 2001-02-09 Martin Buchholz <martin@xemacs.org>
6418 * fileio.c (lisp_string_set_file_times): New.
6419 * fileio.c (Fcopy_file): Use it.
6421 (copy-file filename non-ascii-filename t t)
6422 ==> No such file or directory, non-ascii-filename
6424 2001-02-10 Martin Buchholz <martin@xemacs.org>
6426 * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6427 USHRT_MAX seems clearer than ~0 anyways.
6429 2001-02-09 Martin Buchholz <martin@xemacs.org>
6431 dumper improvements. Inspired by Olivier.
6432 * dumper.c (pdump_max_align): New.
6433 * dumper.c (pdump_add_entry): Use pdump_max_align.
6434 * dumper.c (pdump_get_entry_list): Likewise.
6435 * dumper.c (pdump_scan_by_alignment): Likewise.
6436 Don't iterate through unnecessary alignments.
6437 * dumper.c (pdump_file_get): No need to align result of malloc().
6438 * dumper.c (pdump_mallocadr): Remove.
6439 The result of malloc() is guaranteed to be maximally aligned.
6440 * dumper.c: s/elmt/elt/g;
6441 * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6442 * dumper.c (pdump_alert_undump_object): Likewise.
6443 * dumper.c (pdump_align_table):
6444 Don't support alignments > 64.
6445 Store ALIGNOF's, not shift counts, in table.
6447 2001-02-09 Martin Buchholz <martin@xemacs.org>
6449 * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6450 * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6451 * systime.h: Use HAVE_UTIME.
6452 * sysdep.c (struct utimbuf): Remove.
6453 * sysdep.c (set_file_times): Prefer utime() to utimes().
6454 * config.h.in (HAVE_UTIME): New.
6455 * config.h.in (HAVE_UTIME_H): Remove.
6456 * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6458 2001-02-09 Martin Buchholz <martin@xemacs.org>
6460 * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6462 2001-02-08 Martin Buchholz <martin@xemacs.org>
6464 * s/irix6-0.h: Use the standard system memmove, not bcopy.
6466 2001-02-08 Martin Buchholz <martin@xemacs.org>
6468 * XEmacs 21.2.44 "Thalia" is released.
6470 2001-02-06 Martin Buchholz <martin@xemacs.org>
6472 Fixes crashes in kill-emacs on some systems.
6473 * process-unix.c (unix_kill_child_process):
6474 It's OK for kill() to fail with ESRCH.
6476 2001-02-07 Martin Buchholz <martin@xemacs.org>
6478 Contortions to make .gdbinit tricks work on most systems.
6479 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6480 * alloc.c (dbg_valmask): Make non-const.
6481 * alloc.c (dbg_typemask): Make non-const.
6482 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6483 * alloc.c (dbg_valbits): Make non-const.
6484 * alloc.c (dbg_gctypebits): Make non-const.
6485 * .gdbinit (decode_object): Make it work with AIX cc.
6487 2001-02-06 Martin Buchholz <martin@xemacs.org>
6489 * elhash.c (make_general_lisp_hash_table):
6490 Use simpler and more efficient calloc to clear entries.
6492 2001-02-07 Martin Buchholz <martin@xemacs.org>
6494 * window.c (window_scroll): Work around an AIX C compiler bug.
6495 Fixes 'scroll-up' does nothing problem with xlC.
6497 2001-02-05 Martin Buchholz <martin@xemacs.org>
6499 * .gdbinit: Remove obsolete comment.
6501 2001-01-31 Mike Alexander <mta@arbortext.com>
6503 * select.c (Fown_selection_internal): Set owned_p for device
6506 2001-02-01 Martin Buchholz <martin@xemacs.org>
6509 "not" cannot be used as a macro name as it is an operator in C++
6510 * config.h.in: Stop #defining `not'.
6511 * chartab.c (check_category_char): not ==> not_p
6512 * chartab.h: Likewise.
6513 * regex.c (re_match_2_internal): Likewise.
6515 2001-02-02 Martin Buchholz <martin@xemacs.org>
6517 * lisp-disunion.h: Fix up comments.
6519 2001-01-31 Martin Buchholz <martin@xemacs.org>
6521 * keymap.c (define_key_check_and_coerce_keysym):
6523 Support mouse-6 and mouse-7 bindings in the obvious way.
6525 2001-02-01 Martin Buchholz <martin@xemacs.org>
6527 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6529 2001-01-30 Martin Buchholz <martin@xemacs.org>
6531 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6532 Previous patch missed DEFVAR_INT_MAGIC.
6533 Make sure future DEFVAR_foo use correct types.
6534 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6535 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6536 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6537 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6538 * (DEFVAR_INT): Likewise.
6539 * redisplay.c (vertical_clip): Should be of type Fixnum.
6540 * redisplay.c (horizontal_clip): Likewise.
6541 * lisp.h (dump_add_opaque_int): New.
6542 (dump_add_opaque_fixnum): New.
6544 2001-01-29 Andy Piper <andy@xemacs.org>
6546 * glyphs-widget.c (check_valid_int_or_function): allow symbols
6547 since they can be eval'ed
6549 2001-01-29 Martin Buchholz <martin@xemacs.org>
6551 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6552 Oops, XEmacs redefines `class'. Use `typename' instead.
6554 2001-01-28 Martin Buchholz <martin@xemacs.org>
6556 * dumper.c: Fix C++ compile errors.
6558 2001-01-29 Martin Buchholz <martin@xemacs.org>
6560 * tparam.c: Use correct prototypes.
6562 2001-01-28 Martin Buchholz <martin@xemacs.org>
6564 * sysproc.h: #include util.h for NetBSD's openpty.
6566 2001-01-27 Martin Buchholz <martin@xemacs.org>
6568 More 64-bit correctness.
6569 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6570 Use a typedef `fixnum' for the type used for DEFVAR_INT.
6572 This finally finishes the 64-bit SGI port.
6573 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6574 * symbols.c: Fix up comments and type casts.
6575 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6576 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6577 * symeval.h (Fixnum): New type.
6578 * symeval.h (symbol_value_type): Fix up comment.
6594 * mule-canna.c: A million DEFVAR_INTs here...
6595 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6608 s/int/Fixnum/g in DEFVAR_INT declarations.
6610 2001-01-26 Martin Buchholz <martin@xemacs.org>
6612 Port pdump to SGI alignment-sensitive environment.
6613 Lisp Object sizeof methods now return aligned sizes. Rely on that.
6614 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6616 Define and use aligned reading and writing macros.
6617 Use buffered stdio instead of posix i/o for faster dumping.
6618 Eliminate kludgy 256 byte space for header.
6619 Read and write from dump file using structs for alignment safety.
6620 * dumper.c (pdump_align_stream): New.
6621 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6622 * dumper.c (PDUMP_READ_ALIGNED): New.
6623 * dumper.c (PDUMP_WRITE_ALIGNED): New.
6624 * dumper.c (pdump_static_Lisp_Object): New struct.
6625 * dumper.c (pdump_static_pointer): New struct.
6626 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6627 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6628 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6629 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6631 * dumper.c (pdump_backtrace):
6632 * dumper.c (pdump_get_indirect_count):
6633 * dumper.c (pdump_register_object):
6634 * dumper.c (pdump_register_struct):
6635 * dumper.c (pdump_reloc_one):
6636 * dumper.c (pdump_scan_by_alignment):
6637 * dumper.c (pdump_dump_from_root_struct_ptrs):
6638 * dumper.c (pdump_dump_opaques):
6639 * dumper.c (pdump_dump_rtables):
6640 * dumper.c (pdump_dump_from_root_objects):
6642 * dumper.c (pdump_load_finish):
6643 Use aligned reading and writing.
6645 * dumper.c (pdump_free): Make static.
6646 * dumper.c (pdump_hFile): Likewise.
6647 * dumper.c (pdump_hMap): Likewise.
6649 2001-01-26 Martin Buchholz <martin@xemacs.org>
6651 * XEmacs 21.2.43 "Terspichore" is released.
6653 2001-01-25 Martin Buchholz <martin@xemacs.org>
6655 Type fiddling for window_config.saved_windows_count
6656 * window.c (struct window_config):
6657 Make saved_windows_count member unsigned.
6658 * window.c (sizeof_window_config_for_n_windows):
6659 Make parameter unsigned.
6660 * window.c (mark_window_config):
6661 * window.c (window_config_equal):
6662 * window.c (free_window_configuration):
6663 * window.c (Fset_window_configuration):
6664 * window.c (count_windows):
6665 * window.c (Fcurrent_window_configuration):
6666 * window.c (reinit_vars_of_window):
6667 Update all callers and users.
6669 2001-01-25 Martin Buchholz <martin@xemacs.org>
6671 Alignment correctness for flexible arrays.
6672 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6673 Make alignment-correct. Add interesting comments.
6674 * alloc.c (size_vector):
6675 * alloc.c (make_vector_internal):
6676 * alloc.c (make_bit_vector_internal):
6677 * alloc.c (sweep_bit_vectors_1):
6678 * fns.c (size_bit_vector):
6679 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6680 * window.c (sizeof_window_config_for_n_windows):
6681 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6683 2001-01-24 Martin Buchholz <martin@xemacs.org>
6685 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6687 2001-01-23 Andy Piper <andy@xemacs.org>
6689 * select.c (Fown_selection_internal): pass owned_p
6691 * select-msw.c (mswindows_own_selection): New Signature.
6693 * console.h (struct console_methods): add owned_p to
6696 * select-x.c (x_own_selection): pass owned_p
6697 (hack_motif_clipboard_selection): use owned_p
6698 (vars_of_select_x): new variable -
6699 x_selection_strict_motif_ownership.
6701 2001-01-23 Martin Buchholz <martin@xemacs.org>
6703 * specifier.h (specifier_data_offset): Remove pointless parens.
6704 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6706 2001-01-24 Martin Buchholz <martin@xemacs.org>
6708 Make Lisp_Object sizeof methods be alignment-correct.
6709 pdump must restore objects to the same alignment as the C compiler
6710 assumes. It really matters on SGIs.
6711 * lstream.c (aligned_sizeof_lstream): New.
6712 (sizeof_lstream): Use aligned_sizeof_lstream.
6713 (Lstream_new): Likewise.
6714 * opaque.c (aligned_sizeof_opaque): New.
6715 (sizeof_opaque): Use aligned_sizeof_opaque.
6716 (make_opaque): Likewise.
6717 * specifier.c (aligned_sizeof_specifier): New.
6718 (sizeof_specifier): Use aligned_sizeof_specifier.
6719 (make_specifier_internal): Likewise.
6721 2001-01-23 Martin Buchholz <martin@xemacs.org>
6723 * lstream.h (struct lstream): Use max_align_t for trailing data.
6724 * specifier.h (struct Lisp_Specifier): Likewise.
6726 2001-01-22 Martin Buchholz <martin@xemacs.org>
6728 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6729 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6730 (CCL_SUSPEND): Likewise.
6731 (CCL_INVALID_CMD): Likewise.
6732 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6733 (ccl_driver): Likewise.
6734 (CCL_WRITE_CHAR): Macro hygiene.
6735 (CCL_WRITE_STRING): Macro hygiene.
6737 2001-01-22 Martin Buchholz <martin@xemacs.org>
6739 Port "portable" dumper to SunOS 4 and HP-UX.
6740 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6741 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6742 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6744 2001-01-22 Martin Buchholz <martin@xemacs.org>
6746 * lisp.h (ALIGNOF): A better definition for C++.
6748 2001-01-20 Martin Buchholz <martin@xemacs.org>
6751 Fix printf warnings: int format, long int arg.
6752 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6753 (PUSH_FAILURE_POINT): Use correct printf formats.
6754 (POP_FAILURE_POINT): Use correct printf formats.
6755 Use do {...} while (0)
6757 2001-01-20 Martin Buchholz <martin@xemacs.org>
6759 * XEmacs 21.2.42 "Poseidon" is released.
6761 2001-01-20 Martin Buchholz <martin@xemacs.org>
6763 * console-x.h: typo fix du jour. Remove #if 0'ed code.
6765 2001-01-19 Martin Buchholz <martin@xemacs.org>
6767 De-kludgify FIXED_TYPE free list frobbing.
6768 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6769 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6770 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6771 * alloc.c (Lisp_Free): New pseudo lisp object definition.
6772 * alloc.c (LRECORD_FREE_P): New.
6773 * alloc.c (MARK_LRECORD_AS_FREE): New.
6774 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6775 * alloc.c (STRUCT_FREE_P): Deleted.
6776 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6777 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6778 * alloc.c (STRING_CHARS_FREE_P): New.
6779 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6780 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6781 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6782 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6783 * alloc.c (resize_string): Use new definitions.
6784 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6785 * alloc.c (verify_string_chars_integrity): Use new definitions.
6786 * alloc.c (compact_string_chars): Use new definitions.
6787 * alloc.c: Update monster comments.
6788 * lrecord.h (lrecord_type): Add some new lrecord types for
6791 2001-01-18 Martin Buchholz <martin@xemacs.org>
6793 Improve alignment hackery.
6794 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6795 (max_align_t): Moved from opaque.h - general purpose.
6796 (ALIGN_PTR): Use size_t, not long.
6797 * opaque.h (max_align_t): Move to lisp.h.
6799 2001-01-18 Norbert Koch <nk@LF.net>
6801 * gui.h: Fix and add prototypes to fix build problems.
6803 2001-01-18 Martin Buchholz <martin@xemacs.org>
6805 temacs is going away, so `dump-temacs' is now a bad name.
6806 * .dbxrc (dump-temacs): Rename to `dmp'.
6807 * .gdbinit (dump-temacs): Rename to `dmp'.
6809 2001-01-17 Andy Piper <andy@xemacs.org>
6811 * glyphs.c (print_image_instance): comment to make martin happy.
6813 * glyphs-x.c (x_redisplay_widget): update faces after a frame
6816 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
6818 (mswindows_tab_control_redisplay): warning suppression.
6820 * glyphs-widget.c (widget_update): re-write to cope with updated
6822 (widget_instantiate): use new gui_item functions.
6823 (tab_control_update): deleted.
6824 (progress_gauge_update): deleted.
6825 (image_instantiator_progress_guage): take out update reference.
6826 (image_instantiator_tree_view): ditto.
6827 (image_instantiator_tab_control): ditto.
6829 * gui.c (widget_gui_parse_item_keywords): new function. Do things
6831 (gui_item_add_keyval_pair): re-write to cope with descriptors and
6832 return whether anything was changed.
6833 (update_gui_item_keywords): as it sounds.
6835 * gui.h: declare widget_gui_parse_item_keywords.
6837 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
6838 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
6840 2001-01-17 Martin Buchholz <martin@xemacs.org>
6842 * XEmacs 21.2.41 "Polyhymnia" is released.
6844 2001-01-16 Didier Verna <didier@xemacs.org>
6846 * glyphs.c (image_instantiate): don't use fallbacks when
6847 instantiating a face's background pixmap by inheritance.
6849 2001-01-14 Mike Sperber <mike@xemacs.org>
6851 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
6852 Conditionalize accordingly.
6854 2001-01-16 Martin Buchholz <martin@xemacs.org>
6856 * dumper.c (pdump_file_get): Fix a compiler warning.
6858 2001-01-15 Martin Buchholz <martin@xemacs.org>
6860 Make Purify happy when pdumping.
6861 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
6862 iniitalizing all bits of new lisp object memory.
6863 * symbols.c (Fmake_local_variable): Likewise.
6864 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
6865 * symbols.c (Fdefvaralias): Likewise.
6866 * mule-charset.c (vars_of_mule_charset): Likewise.
6868 2001-01-15 Martin Buchholz <martin@xemacs.org>
6869 Add the `-nd' flag when running pre-dump operations under the debugger.
6870 * .dbxrc (run-temacs): Add `-nd'.
6871 * .dbxrc (update-elc): Likewise.
6872 * .dbxrc (dump-temacs): Likewise.
6873 * .gdbinit (run-temacs): Likewise.
6874 * .gdbinit (check-temacs): Likewise.
6875 * .gdbinit (update-elc): Likewise.
6876 * .gdbinit (dump-temacs): Likewise.
6878 2001-01-14 Martin Buchholz <martin@xemacs.org>
6880 Allow building 64-bit executables on AIX with GNU malloc, e.g.
6881 export OBJECT_MODE=64
6882 configure --pdump --use-union-type=no
6883 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
6884 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
6886 * miscplay.c (sndcnv8U_2mono):
6887 Avoid two uses of `++' in the same expression.
6888 Suppresses a GCC warning.
6890 2001-01-13 Martin Buchholz <martin@xemacs.org>
6892 Make sure future compilers don't miscompile alloc.c.
6894 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
6895 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
6897 2001-01-12 Martin Buchholz <martin@xemacs.org>
6899 * dumper.c: A little post-pdump-rename comment fixup.
6901 2001-01-09 Jerry James <james@eecs.ku.edu>
6903 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
6905 2001-01-13 Martin Buchholz <martin@xemacs.org>
6907 * *.[ch]: Globally rename symbols using the following `pdump-rename'
6911 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
6914 replace_symbol pdump_wire_lists pdump_weak_object_chains
6915 replace_symbol pdump_wire_list dump_add_weak_object_chain
6917 replace_symbol pdump_wires pdump_root_objects
6918 replace_symbol pdump_wire dump_add_root_object
6920 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
6921 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
6923 replace_symbol dumpstructinfos pdump_root_struct_ptrs
6924 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
6925 replace_symbol dumpstructinfo pdump_root_struct_ptr
6926 replace_symbol dumpstruct dump_add_root_struct_ptr
6928 replace_symbol dumpopaque dump_add_opaque
6929 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
6930 replace_symbol dumpopaqueinfos pdump_opaques
6931 replace_symbol dumpopaqueinfo pdump_opaque
6933 replace_symbol nb_structdump nb_root_struct_ptrs
6934 replace_symbol nb_opaquedump nb_opaques
6936 replace_symbol align_table pdump_align_table
6937 replace_symbol dump_header pdump_header
6939 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
6940 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
6943 2001-01-12 Martin Buchholz <martin@xemacs.org>
6945 * s/aix4.h: Keep the C for AIX compiler from overaggressively
6946 optimizing bytecount_to_charcount().
6948 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
6951 (HAVE_DLFCN_H): Removed.
6952 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
6954 2001-01-06 Martin Buchholz <martin@xemacs.org>
6956 Portable dumper maintainability improvements.
6957 * alloc.c (staticpro):
6958 * alloc.c (staticpro_nodump):
6959 * alloc.c (garbage_collect_1):
6960 * alloc.c (reinit_alloc_once_early):
6961 * alloc.c (init_alloc_once_early):
6962 * alloc.c: Move dumper functions to alloc.c.
6963 * dumper.c (pdump_backtrace):
6964 * dumper.c (pdump_dump_structs):
6965 * dumper.c (pdump_dump_opaques):
6966 * dumper.c (pdump_dump_rtables):
6967 * dumper.c (pdump_dump_wired):
6969 * dumper.c (pdump_load_check):
6970 * dumper.c (pdump_load_finish):
6971 * dumper.c (pdump_file_unmap):
6972 * dumper.c (pdump_file_get):
6973 * dumper.c (pdump_resource_free):
6974 * dumper.c (pdump_resource_get):
6975 * dumper.c (pdump_file_free):
6976 * dumper.c (pdump_file_try):
6977 * dumper.c (pdump_load):
6978 Remove fixed size limits on staticpro(), staticpro_nodump(),
6979 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
6980 Remove custom code for dumping lrecord_implementations_table - use
6982 Remove (most of the) custom code for dumping staticpros - dump it
6983 like any other dynarr.
6985 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
6986 * dumper.c: Moved functions from alloc.c.
6987 * alloc.c (dumpstruct): Moved to dumper.c.
6988 * alloc.c (dumpopaque): Likewise.
6989 * alloc.c (pdump_wire): Likewise.
6990 * alloc.c (pdump_wire_list): Likewise.
6992 * lisp.h (Dynarr_sizeof): New.
6993 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
6994 * lisp.h (Dynarr_end): New. Very slightly C++oid.
6995 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
6997 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
6998 * lisp.h (dumpopaque): ditto.
6999 * lisp.h (pdump_wire): ditto.
7000 * lisp.h (pdump_wire_list): ditto.
7002 2001-01-09 Martin Buchholz <martin@xemacs.org>
7004 * make-src-depend (PrintPatternDeps):
7005 Use `sort' to make output independent of perl version.
7007 2001-01-08 Martin Buchholz <martin@xemacs.org>
7010 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7011 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7013 2001-01-03 Didier Verna <didier@xemacs.org>
7015 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7016 that `focus_frame' is alive before thinking of calling
7017 `redisplay_redraw_cursor' on it.
7019 2001-01-08 Martin Buchholz <martin@xemacs.org>
7021 * XEmacs 21.2.40 is released.
7023 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
7025 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7027 2001-01-06 Martin Buchholz <martin@xemacs.org>
7029 * alloc.c (dbg_valmask): Make const.
7030 * alloc.c (dbg_typemask): Make const.
7031 * alloc.c (dbg_USE_UNION_TYPE): Make const.
7032 * alloc.c (dbg_valbits): Make const.
7033 * alloc.c (dbg_gctypebits): Make const.
7035 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
7037 * redisplay-x.c (x_bevel_area):
7038 redisplay.h (struct rune):
7039 Typo fixes in comments.
7041 2001-01-05 Andy Piper <andy@xemacs.org>
7043 * glyphs-x.c (x_redisplay_widget): use size changed for offset
7046 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7048 2001-01-05 Martin Buchholz <martin@xemacs.org>
7050 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7052 * mule-ccl.c (stack_idx_of_map_multiple):
7053 Non const global data must not be initialized!
7054 Found by MIYASHITA Hisashi.
7056 2001-01-02 Andy Piper <andy@xemacs.org>
7058 * frame.c (change_frame_size): make sure frame size is always
7061 * glyphs.c (image_instance_layout): minor code reuse.
7063 * window.c (Fcurrent_window_configuration): revert previous
7066 2001-01-02 Martin Buchholz <martin@xemacs.org>
7069 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7071 2000-12-31 Andy Piper <andy@xemacs.org>
7073 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7074 when widget gets unmapped.
7076 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7077 function. Make sure widgets losing focus don't just drop it.
7078 (handle_focus_event_1): record the widget with focus.
7080 2000-12-31 Andy Piper <andy@xemacs.org>
7082 * window.c (allocate_window): use
7083 make_image_instance_cache_hash_table.
7084 (make_dummy_parent): ditto.
7085 (Fset_window_configuration): ditto.
7087 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
7089 * glyphs.c (process_image_string_instantiator): use
7091 (get_image_instantiator_governing_domain): ditto.
7092 (normalize_image_instantiator): ditto.
7093 (instantiate_image_instantiator): ditto.
7094 (make_image_instance_1): ditto.
7095 (image_instantiate): ditto. Key on glyph *and* instantiator type.
7096 (instantiator_eq_equal): new function for use with instance hash
7098 (instantiator_eq_hash): ditto.
7099 (make_image_instance_cache_hash_table): create a suitable hash
7100 table for storing image instances.
7102 * elhash.h (hash_table_weakness): new internal weakness type
7103 HASH_TABLE_KEY_CAR_VALUE_WEAK.
7104 declare new functions.
7106 * elhash.c (finish_marking_weak_hash_tables): introduce yet
7107 another weakness type for glyphs.
7108 (make_standard_lisp_hash_table): new function split out from
7109 make_general_lisp_hash_table.
7110 (make_lisp_hash_table): call make_standard_lisp_hash_table.
7111 (hash_table_instantiate): ditto.
7112 (Fmake_hash_table): ditto.
7114 2000-12-31 Martin Buchholz <martin@xemacs.org>
7116 * XEmacs 21.2.39 is released.
7118 2000-12-29 Andy Piper <andy@xemacs.org>
7120 * menubar.c (menubar_visible_p_changed): signal the frame changed.
7122 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7123 the frame has changed so that we pick up geometry changes such as
7126 2000-12-28 Andy Piper <andy@xemacs.org>
7128 * lastfile.c (my_ebss): make a char array so we can pad the
7129 bss. Fixes cygwin unexec.
7131 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7133 2000-12-26 Andy Piper <andy@xemacs.org>
7135 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7136 comments and try and be more precise about a non-/SIGIO world.
7137 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7140 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7141 we don't normalize to zero width or height.
7143 2000-12-24 Andy Piper <andy@xemacs.org>
7145 * Makefile.in.in (ldflags): add -mwindows when appropriate.
7147 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
7149 * s/sco5.h: SCO 5 has pty support.
7151 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
7153 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7154 input-method-xlib.c contains whole contents of input-method-xfs.c,
7155 so we can use input-method-xlib.c's code for USE_XFONTSET
7157 * input-method-xfs.c: removed.
7159 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
7161 * file-coding.h (enum coding_category_type): reorder enumerators to
7162 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
7163 (now one greater than largest real coding_category_type enumerator).
7164 * file-coding.c (coding_category_symbol, coding_category_by_priority,
7165 coding_category_system, fcd_descriptihon_1, decode_coding_category,
7166 Fcoding_category_list, Fset_coding_priority_list,
7167 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7168 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7170 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
7172 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7173 * redisplay-output.c (redisplay_output_window): Clear top of window
7174 when face is changed.
7175 * redisplay-x.c (x_redraw_exposed_window): Call
7176 redisplay_clear_top_of_window.
7177 * redisplay.h: Publish redisplay_clear_top_of_window.
7179 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
7181 * buffer.c (Fkill_buffer): Map over all devices.
7182 * window.c (window_loop): Remove UNSHOW_BUFFER code.
7183 (list_windows): New function.
7184 (list_all_windows): Ditto.
7185 (Freplace_buffer_in_windows): Use them.
7187 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7189 * database.c (berkdb_subtype): Recognize new subtype `queue'.
7190 (Fopen_database): Use `db_create' instead of `db_open'.
7191 (syms_of_database): Initialize Qqueue.
7193 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
7195 * buffer.c (common_init_complex_vars_of_buffer): Initialize
7196 buffer_local_face_property.
7197 * buffer.h (struct buffer): New member buffer_local_face_property.
7198 * window.c (Fset_window_buffer): Mark window's face as changed
7199 when buffer has buffer local face.
7200 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7201 * objects.c (color_after_change): Set buffer_local_face_property
7202 when locale of face specifier is buffer.
7203 * objects.c (font_after_change): Ditto.
7204 * objects.c (face_boolean_after_change): Ditto.
7205 * glyphs.c (image_after_change): Ditto.
7207 2000-12-09 Dan Holmsand <dan@eyebee.com>
7209 * nt.c (mswindows_fstat): Report file permissions, volume serial
7210 number, etc. Code adapted from FSF Emacs 20.7.
7212 2000-12-09 Dan Holmsand <dan@eyebee.com>
7214 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7215 of stat when we don't have symbolic links, to make sure
7216 mswindows_stat is called on mswindows.
7218 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
7220 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7222 2000-12-12 Martin Buchholz <martin@xemacs.org>
7224 * doprnt.c (emacs_doprnt_1): More printing fixes.
7225 Make printing of numbers compatible with libc and FSF Emacs.
7226 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7227 Use the system printf to do most of the hard work of formatting,
7228 instead of doprnt_1().
7229 Calculate memory to allocate for format string.
7230 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7231 (doprnt_1): Cleaner code and documentation.
7233 2000-12-01 Jerry James <james@eecs.ukans.edu>
7235 * Makefile.in.in: Use the loop variable to install headers.
7237 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7239 * window.c (Fsplit_window): Don't invalidate face cache.
7241 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7243 * minibuf.c (Fall_completions): Undo the previous change
7244 which removed checking elements start with space.
7246 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
7248 * mule-canna.c: Didier suppression.
7250 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
7252 * mule-canna.c: rename static unsigned char buf[] to key_buffer
7253 (warning suppression). Add English comment translations.
7255 2000-12-05 Martin Buchholz <martin@xemacs.org>
7257 * unexelfsgi.c (unexec): Better test for mmap failure.
7259 2000-12-05 Martin Buchholz <martin@xemacs.org>
7261 * XEmacs 21.2.38 is released.
7263 2000-12-05 Martin Buchholz <martin@xemacs.org>
7265 * redisplay.c (bar-cursor): Make a user variable.
7267 * symsinit.h: Add init_postgresql_from_environment.
7269 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7271 * regex.c: Convert to clean C.
7273 2000-12-05 Dan Holmsand <dan@eyebee.com>
7276 Don't #include sysfile.h. Revert to duplicating PATH_MAX
7278 (sys_readlink): renamed to system_readlink to avoid conflict with
7279 the other sys_readlink.
7281 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
7283 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7285 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
7287 * postgresql.c (init_postgresql_from_environment): new function.
7288 (vars_of_postgresql): Move code initializing Lisp variables out and
7289 into init_postgresql_from_environment.
7290 emacs.c (main_1): Call init_postgresql_from_environment if and only
7291 if running a dumped XEmacs.
7293 2000-08-31 Dan Holmsand <dan@eyebee.com>
7295 * buffer.c: Make find-file-compare-truenames default to true on
7298 * realpath.c (win32_abs_start):
7300 (win32_readlink): New functions.
7301 (xrealpath): Return really real filenames on windows.
7303 * fileio.c (Ffile_truename): Make file-truename work on windows.
7305 2000-11-29 Didier Verna <didier@xemacs.org>
7307 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7308 * faces.c (update_face_cachel_data): use it.
7309 * faces.c (add_face_cachel): use it. Complete background pixmap
7310 frobbing in face cache if `update_face_cachel_data' has not done so.
7312 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
7314 * search.c (string_match_1): Don't set last_thing_searched
7317 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
7319 * buffer.c: Include casetab.h
7320 (common_init_complex_vars_of_buffer): Use new case-table object.
7321 * buffer.h: Include casetab.h
7322 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7323 (DOWNCASE_TABLE_OF): Ditto.
7324 * bufslots.h: Remove char-tables and add case-table.
7325 * casetab.c: Include casetab.h
7326 (CASE_TABLE_P): Removed.
7327 (mark_case_table): New function.
7328 (allocate_case_table): New function.
7329 (Fcase_table_p): Use new case-table.
7330 (case_table_char): New function.
7331 (Fget_case_table): Ditto.
7332 (Fput_case_table): Ditto.
7333 (Fput_case_table_pair): Ditto.
7334 (Fcopy_case_table): Ditto.
7335 (Fcurrent_case_table): Return case-table.
7336 (Fstandard_case_table): Return case-table.
7337 (Fset_case_table): Fix doc-string.
7338 (set_case_table): Use case-table
7339 (syms_of_casetab): DEFSUBR new functions.
7340 (complex_vars_of_casetab): Set up standard case-table.
7341 * casetab.h: New file.
7342 * editfns.c: Include casetab.h
7343 (Fcompare_buffer_substrings): Use case-table.
7344 * inline.c: Include casetab.h
7345 * lisp.h: Remove bogus extern.
7346 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7347 * search.c: Include casetab.h
7348 (TRANSLATE_ASCII): Removed.
7349 (TRANSLATE): Unconditionally translate character.
7350 (looking_at_1): Use case-table.
7351 (string_match_1): Ditto.
7352 (fast_string_match): Ditto.
7353 (search_command): Ditto.
7354 (search_buffer): Separate boyer_moore. Check whether
7355 boyer_moore is possible.
7356 (simple_search): New function.
7357 (boyer_moore): Separated from search_buffer. Translate char.
7359 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
7361 * regex.c (RE_TR_ASCII): Removed.
7362 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7363 (PATFETCH): Call PATFETCH_RAW.
7364 (PATFETCH_RAW): Fetch Emchar.
7365 (PATUNFETCH): Decrement charptr.
7366 (GET_BUFFER_SPACE): Rename b to buf_end.
7368 (BUF_PUSH_2): Ditto.
7369 (BUF_PUSH_3): Ditto.
7370 (EXTEND_BUFFER): Ditto.
7371 (SET_LIST_BIT): Ditto.
7372 (regex_compile): Ditto. Translate non ASCII char.
7373 (compile_range): Ditto.
7374 (re_search_2): Ditto.
7375 (re_match_2_internal): Compare Emchar.
7376 (bcmp_translate): Ditto.
7378 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
7380 * lisp.h (basic char/int typedefs): comment improvement.
7382 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
7384 * emacs.c (main_1): unconditional pdump unstomping; don't save and
7385 unstomp inhibit_site_lisp. Improve comments.
7387 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
7389 * mule-charset.c (Fcharset_property): improve type checking, comments.
7391 2000-11-28 Andy Piper <andy@xemacs.org>
7393 * redisplay-output.c (redisplay_output_subwindow): make sure we do
7394 clipped display for windows in the gutter also.
7395 (redisplay_display_boxes_in_window_p): change semantics of return
7396 codes to be more intuitive.
7398 * gutter.h: declare display_boxes_in_gutter_p.
7400 * gutter.c (display_boxes_in_gutter_p): new function for
7403 2000-11-22 Andy Piper <andy@xemacs.org>
7405 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7408 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
7410 * callproc.c (Fold_call_process_internal):
7411 * gpm.c (Freceive_gpm_event):
7412 (tty_get_foreign_selection): Might be just warning supression.
7413 * fileio.c (Fwrite_region_internal):
7414 (Fset_visited_file_modtime):
7415 * keymap.c (event_matches_key_specifier_p):
7416 Initialize GCPROed variable.
7418 * menubar-x.c (command_builder_find_menu_accelerator):
7419 Initialize before use.
7421 2000-11-23 Andy Piper <andy@xemacs.org>
7423 * unexcw.c (unexec): make the resulting executable executable.
7425 2000-11-21 Martin Buchholz <martin@xemacs.org>
7427 * doc.c (get_doc_string):
7428 Use size_t, not int, for result of XSTRING_LENGTH.
7430 * cmds.c (Fdelete_char):
7431 * cmds.c (Fpoint_at_eol):
7432 * cmds.c (Fself_insert_command):
7433 Use EMACS_INT, not int, for result of XINT.
7434 Someday, someone will want to insert more than 2**31 identical characters.
7436 * cmds.c (Fdelete_char):
7437 * cmds.c (Fdelete_backward_char):
7438 * syntax.c (Fforward_word):
7439 * syntax.c (Fforward_comment):
7440 Make COUNT argument optional, for consistency with forward-char et al.
7442 2000-11-22 Martin Buchholz <martin@xemacs.org>
7445 * print.c (long_to_string):
7446 Return a useful value: the pointer at end of data written.
7449 Use `static const char * const' for constant strings.
7450 (union printf_arg): Delete `i', `ui' members.
7453 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7454 Do all printf-ing via the `l' specifier.
7455 Use EMACS_INT instead of int.
7458 2000-11-20 Didier Verna <didier@xemacs.org>
7460 * faces.c (update_face_cachel_data): don't frob the background
7461 pixmap when the window is being created. The face is needed but
7464 2000-11-20 Andy Piper <andy@xemacs.org>
7466 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7467 messing with a debug environment.
7469 2000-11-20 Martin Buchholz <martin@xemacs.org>
7471 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7473 2000-11-20 Martin Buchholz <martin@xemacs.org>
7475 * casetab.c (Fcase_table_p): Fix compile error and crash.
7477 2000-11-18 Philip Aston <philipa@mail.com>
7479 * s/cygwin32.h: Cygwin has SVR4-like pty support.
7481 2000-11-18 Martin Buchholz <martin@xemacs.org>
7483 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
7484 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7486 2000-11-17 Martin Buchholz <martin@xemacs.org>
7488 * config.h.in: Define HAVE_ELF_H if elf.h exists.
7489 * unexelf.c: Use HAVE_ELF_H.
7490 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7491 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7492 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7493 Greg Harrington <greg_harrington@hotmail.com> provided a machine
7495 So this is an unexelfsgi.c from a different line of development.
7497 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
7499 * regex.c (RE_TR_ASCII): New function.
7500 (RE_TRANSLATE): Call it.
7502 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
7504 * buffer.h (TRT_TABLE_OF): Remove assert.
7505 (IN_TRT_TABLE_DOMAIN): Removed.
7507 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
7509 * free-hook.c (log_gcpro):
7510 (show_gcprohist): Add support for GCPRO5.
7512 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
7514 * emacs.c (main_1): Improve -sd error message when --pdump=no.
7516 2000-11-16 Olivier Galibert <galibert@xemacs.org>
7518 * symeval.h: Declare flush_all_buffer_local_cache.
7520 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7521 (flush_buffer_local_cache): Added.
7522 (flush_all_buffer_local_cache): Added.
7524 * lrecord.h: Remove unused XD_LO_RESET_NIL.
7526 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7527 (pdump_dump_data): Ditto.
7528 (pdump_reloc_one): Ditto.
7529 (pdump): Remove unused pdump_qnil. Flush buffer local caches
7533 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
7535 * buffer.c: Remove if 0'ed entry.
7536 * buffer.h: Rewrite TRT to use char-table.
7537 * bufslots.h: Remove mirror tables.
7538 * casetab.c: Remove mirror tables.
7539 (CASE_TABLE_P): New macro.
7540 (Fcase_table_p): Element of a case table is string or char-table.
7541 (make_mirror_trt_table): Removed.
7542 (set_case_table): Setup char-table from strings for backward
7544 * dired.c (Fdirectory_files):
7545 * dired-msw.c: (mswindows_get_files):
7546 * lisp.h: Change prototype of re_pattern_buffer.
7547 * regex.c: (RE_TRANSLATE): New macro.
7548 (TRANSLATE_P): Ditto.
7549 Change translate to type RE_TRANSLATE_TYPE.
7550 * regex.h: Define RE_TRANSLATE_TYPE
7551 * search.c (TRANSLATE): New macro.
7552 (TRANSLATE_ASCII): New macro.
7553 Translate table is changed to Lisp_Object.
7554 (signal_failure): Inhibit return.
7556 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
7563 Do UNGCPRO before return.
7565 2000-11-14 Martin Buchholz <martin@xemacs.org>
7567 * XEmacs 21.2.37 is released.
7569 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
7571 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7572 Add comments about discarded return value.
7574 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
7577 * event-stream.c: Fix comments. Remove some #if 0'ed part.
7579 2000-10-27 Andy Piper <andy@xemacs.org>
7581 * gutter.c (Fset_default_gutter_position): default left and right
7583 (calculate_gutter_size): calculate resonable heuristic for left
7584 and right gutter sizes.
7585 (specifier_vars_of_gutter): change left and right gutter sizes to
7587 (calculate_gutter_size_from_display_lines): new function.
7588 (output_gutter): check for resizing on left and right gutters.
7589 (clear_gutter): don't special case top and left gutters.
7590 (specifier_vars_of_gutter): use new signature for
7591 set_specifier_caching.
7593 * glyphs-x.c (x_redisplay_widget): spelling fix.
7594 * glyphs.c (specifier_vars_of_glyphs):
7595 * menubar.c (specifier_vars_of_menubar):
7596 * redisplay.c (specifier_vars_of_redisplay):
7597 * toolbar.c (specifier_vars_of_toolbar):
7598 * window.c (specifier_vars_of_window):
7599 * scrollbar.c (specifier_vars_of_scrollbar):
7600 (complex_vars_of_scrollbar): use new signature for
7601 set_specifier_caching.
7603 * specifier.c (set_specifier_caching): include recompute flag.
7604 (recompute_one_cached_specifier_in_window): always recompute if
7606 (recompute_one_cached_specifier_in_frame): ditto.
7608 * specifier.h (struct specifier_caching): add recompute flag.
7610 2000-10-24 Andy Piper <andy@xemacs.org>
7612 * unexcw.c (copy_executable_and_dump_data_section): add new
7613 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7616 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7618 * console-x.h (x_device): New member modifier_release_time.
7619 * event-Xt.c (x_handle_sticky_modifiers):
7620 Bound interval modifier keys are sticky.
7621 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7622 * events.h: extern it.
7624 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7626 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7628 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7630 * event-stream.c (execute_command_event): Preserve current_events
7631 and the like when event is misc-user-event.
7632 Inhibit quit during the call to maybe_echo_keys.
7634 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
7636 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7637 symlink when buffer is killed.
7638 (inhibit_clash_detection): New variable.
7640 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
7642 * console.c (Fset_input_method): Trigger redisplay on tty.
7644 2000-11-07 Martin Buchholz <martin@xemacs.org>
7646 * process.c (Fprocess_status): Revert to previous behavior:
7647 (process-status "nosuchprocess") ==> nil
7649 2000-11-06 Martin Buchholz <martin@xemacs.org>
7651 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7652 Work around another GCC 2.95.2 optimizer bug.
7654 2000-11-02 Martin Buchholz <martin@xemacs.org>
7656 * process.c (Fget_process): Use LIST_LOOP_2.
7657 (kill_buffer_processes): Use LIST_LOOP_2.
7659 * minibuf.c (Fall_completions):
7660 Delete old non-functional code for FSF fourth argument.
7662 * frame.c (frame_matches_frame_spec):
7663 Renamed from `frame_matches_frametype'. Update all callers.
7664 (device_matches_device_spec):
7665 Renamed from 'device_matches_console_spec'. Update all callers.
7667 * doc.c (Fsubstitute_command_keys):
7668 Remove buffer overflow crash. Small code cleanups.
7670 * casetab.c (check_case_table): Simpler code.
7672 * window.c (Freplace_buffer_in_windows):
7673 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7674 (and similar implementation) as Fdelete_windows_on.
7677 * alloc.c (Fmake_list):
7678 * alloc.c (make_vector):
7679 * alloc.c (Fmake_vector):
7680 * alloc.c (make_bit_vector):
7681 * alloc.c (Fmake_bit_vector):
7682 * alloc.c (Fbit_vector):
7683 * alloc.c (Fmake_string):
7684 * alloc.c (Fpurecopy):
7685 * alloc.c (Fmemory_limit):
7687 * buffer.c (Fget_buffer):
7688 * buffer.c (Fkill_buffer):
7689 * buffer.c (complex_vars_of_buffer):
7690 * bytecode.c (Fcompiled_function_stack_depth):
7691 * callint.c (Fprefix_numeric_value):
7693 * event-stream.c (Fread_key_sequence):
7695 * casetab.c (Fcase_table_p):
7696 * casetab.c (check_case_table):
7697 * casetab.c (Fset_case_table):
7698 * casetab.c (Fset_standard_case_table):
7700 * chartab.c (Fchar_table_type):
7701 * chartab.c (Freset_char_table):
7702 * chartab.c (Fget_char_table):
7703 * chartab.c (Fget_range_char_table):
7704 * chartab.c (Fput_char_table):
7705 * chartab.c (Fmap_char_table):
7706 * chartab.c (Fcategory_table_p):
7707 * chartab.c (Fcheck_category_at):
7708 * chartab.c (Fchar_in_category_p):
7709 * chartab.c (Fcategory_table):
7710 * chartab.c (Fcopy_category_table):
7711 * chartab.c (Fset_category_table):
7712 * chartab.c (Fcategory_designator_p):
7713 * chartab.c (Fcategory_table_value_p):
7714 * cmds.c (Fdelete_char):
7715 * cmds.c (Fdelete_backward_char):
7716 * cmds.c (Fself_insert_command):
7717 * cmds.c (Fself_insert_internal):
7718 * console.c (Fvalid_console_type_p):
7719 * console.c (Fcdfw_console):
7720 * console.c (Fconsole_type):
7721 * console.c (Fconsole_name):
7722 * console.c (Fconsole_device_list):
7723 * console.c (Fconsole_on_window_system_p):
7727 * data.c (Fsubr_interactive):
7728 * data.c (Fchar_to_int):
7729 * data.c (Fint_to_char):
7732 * data.c (Fnumber_to_string):
7733 * data.c (Fstring_to_number):
7735 * database.c (mark_database):
7736 * database.c (finalize_database):
7737 * database.c (Fdatabase_live_p):
7738 * database.c (Fdatabasep):
7739 * device-x.c (Fx_get_resource):
7740 * device.c (Fdfw_device):
7742 * dired.c (Ffile_name_completion):
7743 * dired.c (Ffile_name_all_completions):
7744 * dired.c (Fuser_name_completion):
7745 * dired.c (Fuser_name_completion_1):
7746 * dired.c (Fuser_name_all_completions):
7747 * doc.c (Fdocumentation):
7748 * doc.c (Fdocumentation_property):
7749 * doc.c (Fsubstitute_command_keys):
7751 * editfns.c (Fchar_to_string):
7752 * editfns.c (Fstring_to_char):
7753 * editfns.c (Ftemp_directory):
7754 * editfns.c (Finsert_char):
7755 * editfns.c (Fbuffer_substring_no_properties):
7756 * editfns.c (Fnarrow_to_region):
7757 * editfns.c (Fchar_equal):
7758 * editfns.c (Fchar_Equal):
7759 * editfns.c (Ftranspose_regions):
7760 * emacs.c (Fdump_emacs):
7762 * eval.c (Fcommand_execute):
7763 * eval.c (Fautoload):
7764 * eval.c (Fbacktrace):
7765 * eval.c (Fbacktrace_frame):
7767 * events.c (Fcopy_event):
7768 * events.c (Fcharacter_to_event):
7769 * events.c (Fevent_button):
7770 * events.c (Fevent_process):
7772 * extents.c (Fnext_extent_change):
7773 * extents.c (Fextent_property):
7775 * faces.c (Fmake_face):
7777 * file-coding.c (Fencode_shift_jis_char):
7778 * file-coding.c (Fencode_big5_char):
7779 * fileio.c (Ffile_name_directory):
7780 * fileio.c (Ffile_name_nondirectory):
7781 * fileio.c (Ffile_name_as_directory):
7782 * fileio.c (Fdirectory_file_name):
7783 * fileio.c (Ffile_truename):
7784 * fileio.c (Fsubstitute_in_file_name):
7785 * fileio.c (Ffile_modes):
7786 * fileio.c (Fset_file_modes):
7787 * fileio.c (Fset_default_file_modes):
7788 * fileio.c (Fverify_visited_file_modtime):
7789 * floatfns.c (Facos):
7790 * floatfns.c (Fasin):
7791 * floatfns.c (Fatan):
7792 * floatfns.c (Fcos):
7793 * floatfns.c (Fsin):
7794 * floatfns.c (Ftan):
7795 * floatfns.c (Fbessel_j0):
7796 * floatfns.c (Fbessel_j1):
7797 * floatfns.c (Fbessel_jn):
7798 * floatfns.c (Fbessel_y0):
7799 * floatfns.c (Fbessel_y1):
7800 * floatfns.c (Fbessel_yn):
7801 * floatfns.c (Ferf):
7802 * floatfns.c (Ferfc):
7803 * floatfns.c (Flog_gamma):
7804 * floatfns.c (Fexp):
7805 * floatfns.c (Fexpt):
7806 * floatfns.c (Flog):
7807 * floatfns.c (Flog10):
7808 * floatfns.c (Fsqrt):
7809 * floatfns.c (Fcube_root):
7810 * floatfns.c (Facosh):
7811 * floatfns.c (Fasinh):
7812 * floatfns.c (Fatanh):
7813 * floatfns.c (Fcosh):
7814 * floatfns.c (Fsinh):
7815 * floatfns.c (Ftanh):
7816 * floatfns.c (Fabs):
7817 * floatfns.c (Ffloat):
7818 * floatfns.c (Flogb):
7819 * floatfns.c (Fceiling):
7820 * floatfns.c (Ffloor):
7821 * floatfns.c (Fround):
7822 * floatfns.c (Ftruncate):
7823 * floatfns.c (Ffceiling):
7824 * floatfns.c (Fffloor):
7825 * floatfns.c (Ffround):
7826 * floatfns.c (Fftruncate):
7827 * fns.c (Fstring_equal):
7828 * fns.c (Fstring_lessp):
7833 * fns.c (Fsubstring):
7835 * fns.c (Fold_assoc):
7836 * fns.c (assoc_no_quit):
7838 * fns.c (Fold_assq):
7839 * fns.c (assq_no_quit):
7841 * fns.c (Fold_rassoc):
7843 * fns.c (Fold_rassq):
7844 * fns.c (rassq_no_quit):
7845 * fns.c (Fremassoc):
7846 * fns.c (remassoc_no_quit):
7848 * fns.c (remassq_no_quit):
7849 * fns.c (Fremrassoc):
7850 * fns.c (Fremrassq):
7851 * fns.c (remrassq_no_quit):
7853 * fns.c (Fplist_get):
7854 * fns.c (Fplist_put):
7855 * fns.c (Fplist_remprop):
7856 * fns.c (Fplist_member):
7857 * fns.c (Flax_plist_get):
7858 * fns.c (Flax_plist_put):
7859 * fns.c (Flax_plist_remprop):
7860 * fns.c (Flax_plist_member):
7862 * fns.c (Fold_equal):
7864 * fns.c (Fbase64_encode_region):
7865 * fns.c (Fbase64_encode_string):
7866 * fns.c (Fbase64_decode_region):
7868 * frame.c (frame_matches_frame_spec):
7869 * frame.c (device_matches_device_spec):
7870 * frame.c (next_frame):
7871 * frame.c (previous_frame):
7872 * frame.c (Fnext_frame):
7873 * frame.c (Fprevious_frame):
7874 * frame.c (Fframe_property):
7875 * frame.c (Fset_frame_height):
7876 * frame.c (Fset_frame_size):
7880 * glyphs.c (decode_error_behavior_flag):
7881 * glyphs.c (Fmake_image_instance):
7882 * indent.c (Findent_to):
7883 * intl.c (Fignore_defer_gettext):
7884 * keymap.c (Fkeymapp):
7885 * keymap.c (Flookup_key):
7887 * lread.c (Fload_internal):
7888 * lread.c (Feval_buffer):
7889 * lread.c (Feval_region):
7890 * macros.c (Fexecute_kbd_macro):
7891 * marker.c (set_marker_internal):
7892 * marker.c (Fset_marker):
7893 * marker.c (set_marker_restricted):
7894 * marker.c (Fcopy_marker):
7895 * marker.c (noseeum_copy_marker):
7897 * menubar.c (Fpopup_menu):
7899 * mule-charset.c (Fcharset_name):
7900 * mule-charset.c (Fchar_charset):
7901 * mule-charset.c (Fchar_octet):
7902 * mule-charset.c (Fsplit_char):
7903 * mule-wnnfns.c (Fwnn_open):
7904 * mule-wnnfns.c (Fwnn_dict_comment):
7905 * mule-wnnfns.c (Fwnn_quit_henkan):
7906 * mule-wnnfns.c (Fwnn_word_toroku):
7907 * mule-wnnfns.c (Fwnn_word_sakujo):
7908 * mule-wnnfns.c (Fwnn_word_use):
7909 * mule-wnnfns.c (Fwnn_hindo_set):
7911 * objects.c (Fmake_color_instance):
7912 * objects.c (Fmake_font_instance):
7913 * print.c (Fwrite_char):
7915 * process.c (mark_process):
7916 * process.c (print_process):
7917 * process.c (get_process_from_usid):
7918 * process.c (Fprocessp):
7919 * process.c (Fprocess_live_p):
7920 * process.c (Fget_process):
7921 * process.c (Fget_buffer_process):
7922 * process.c (get_process):
7923 * process.c (Fprocess_id):
7924 * process.c (Fprocess_name):
7925 * process.c (Fprocess_command):
7926 * process.c (init_process_io_handles):
7927 * process.c (start_process_unwind):
7928 * process.c (Fstart_process_internal):
7929 * process.c (Fopen_multicast_group_internal):
7930 * process.c (Fset_process_window_size):
7931 * process.c (read_process_output):
7932 * process.c (send_process):
7933 * process.c (Fprocess_tty_name):
7934 * process.c (Fset_process_buffer):
7935 * process.c (Fprocess_buffer):
7936 * process.c (Fprocess_mark):
7937 * process.c (set_process_filter):
7938 * process.c (Fset_process_filter):
7939 * process.c (Fprocess_filter):
7940 * process.c (Fprocess_send_region):
7941 * process.c (Fprocess_send_string):
7942 * process.c (exec_sentinel):
7943 * process.c (Fset_process_sentinel):
7944 * process.c (Fprocess_sentinel):
7945 * process.c (status_notify):
7946 * process.c (Fprocess_status):
7947 * process.c (Fprocess_exit_status):
7948 * process.c (process_send_signal):
7949 * process.c (Fprocess_send_eof):
7950 * process.c (deactivate_process):
7951 * process.c (remove_process):
7952 * process.c (Fdelete_process):
7953 * process.c (kill_buffer_processes):
7954 * process.c (Fprocess_kill_without_query):
7955 * process.c (Fprocess_kill_without_query_p):
7957 * rangetab.c (Fget_range_table):
7958 * rangetab.c (Fput_range_table):
7959 * rangetab.c (Fremove_range_table):
7960 * rangetab.c (Fclear_range_table):
7962 * search.c (Fskip_chars_forward):
7963 * search.c (Fskip_chars_backward):
7964 * search.c (Fskip_syntax_forward):
7965 * search.c (Fskip_syntax_backward):
7966 * search.c (search_command):
7967 * search.c (Freplace_match):
7968 * search.c (Fregexp_quote):
7969 * select.c (Fown_selection_internal):
7970 * select.c (Fselection_owner_p):
7971 * select.c (Fselection_exists_p):
7972 * select.c (Fget_selection_internal):
7975 * symbols.c (Fintern):
7976 * symbols.c (Fintern_soft):
7977 * symbols.c (Funintern):
7978 * symbols.c (Fapropos_internal):
7979 * symbols.c (Fset_default):
7981 * syntax.c (Fsyntax_table_p):
7982 * syntax.c (Fcopy_syntax_table):
7983 * syntax.c (Fset_syntax_table):
7984 * syntax.c (Fchar_syntax):
7985 * syntax.c (syntax_match):
7986 * syntax.c (Fmatching_paren):
7987 * syntax.c (Fforward_word):
7988 * syntax.c (scan_lists):
7989 * syntax.c (Fscan_lists):
7990 * syntax.c (Fscan_sexps):
7991 * syntax.c (Fparse_partial_sexp):
7992 * toolbar.c (Fcheck_toolbar_button_syntax):
7995 * window.c (Fwindowp):
7996 * window.c (Fwindow_live_p):
7997 * window.c (Fwindow_point):
7998 * window.c (Fdelete_window):
7999 * window.c (Fnext_window):
8000 * window.c (Fprevious_window):
8001 * window.c (Fother_window):
8002 * window.c (window_loop):
8003 * window.c (Fget_lru_window):
8004 * window.c (Fsplit_window):
8005 * window.c (Fenlarge_window):
8006 * window.c (Fenlarge_window_pixels):
8007 * window.c (Fshrink_window):
8008 * window.c (Fshrink_window_pixels):
8009 * window.c (change_window_height):
8010 * window.c (Fwindow_configuration_p):
8011 * window.c (Fcurrent_window_configuration):
8013 * casefiddle.c (casify_object):
8014 * casefiddle.c (Fupcase):
8015 * casefiddle.c (Fdowncase):
8016 * casefiddle.c (Fcapitalize):
8017 * casefiddle.c (Fupcase_initials):
8018 * casefiddle.c (casify_region_internal):
8019 * casefiddle.c (casify_region):
8020 * casefiddle.c (Fupcase_region):
8021 * casefiddle.c (Fdowncase_region):
8022 * casefiddle.c (Fcapitalize_region):
8023 * casefiddle.c (Fupcase_initials_region):
8024 * casefiddle.c (Fupcase_word):
8025 * casefiddle.c (Fdowncase_word):
8026 * casefiddle.c (Fcapitalize_word):
8027 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
8028 Replace 0 with '\0' when working with bytes.
8029 Replace initial "(" with "\(" in docstrings.
8031 2000-11-01 Martin Buchholz <martin@xemacs.org>
8033 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8035 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8037 2000-10-31 Martin Buchholz <martin@xemacs.org>
8039 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
8041 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
8043 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8046 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
8048 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8049 (inhibit_auto_save_session): New variable.
8050 (vars_of_fileio): Declare and initialize them.
8051 * fileio.c (Fdo_auto_save): Don't create session file if
8052 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8054 2000-10-31 Martin Buchholz <martin@xemacs.org>
8056 * sgiplay.c (play_internal): C++ compilability.
8057 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8058 * callproc.c (Fold_call_process_internal):
8059 Remove unused vars `env', `first'.
8060 * scrollbar.c (update_scrollbar_instance):
8061 #### unused var `current_window'.
8062 * redisplay-tty.c: Put currently unused vars insert_mode_on,
8063 etc. within #ifdef NOT_YET.
8064 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8065 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8066 * specifier.c (specifier_instance):
8067 #### unused var `tag'.
8068 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8070 2000-10-27 Martin Buchholz <martin@xemacs.org>
8073 * fns.c (list_sort):
8074 * fns.c (Ffillarray):
8075 * fns.c (bytecode_nconc2):
8078 * fns.c (Fmapconcat):
8079 Be pedantically 64-bit correct. For the time when someone will
8080 want to have a list with length > 2**32.
8082 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8083 Work around MIPSpro compiler bug.
8085 * process-unix.c (unix_kill_child_process): Add snarky comment.
8086 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
8088 * config.h.in: Oops, _getpt ==> _getpty
8090 2000-10-26 Martin Buchholz <martin@xemacs.org>
8094 Use void*, not char*, as return type of alloca().
8096 * alloc.c (free_marker): Side effect inside assert expression!
8098 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
8100 * mule-charset.c (Fset_charset_ccl_program): To check
8101 if the given ccl program is valid, use setup_ccl_program()
8102 instead of CHECK_VECTOR().
8103 (Fmake_charset): Likewise.
8105 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
8107 * faces.c (get_extent_fragment_face_cache_index):
8108 Fix cachel.merged_faces memory leak.
8110 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
8112 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8113 Reset MSB of octets obtained by DECODE_SJIS
8114 because of the incompatibility with Emacs.
8115 (ccl_driver)<CCL_ENCODE_SJIS>:
8116 Set MSB of octets before passing them to
8117 ENCODE_SJIS because of the incompatibility
8120 2000-10-18 Daiki Ueno <ueno@unixuser.org>
8122 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8123 (DECLARE_LRECORD): Undo the last change.
8124 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8126 2000-10-17 Daiki Ueno <ueno@unixuser.org>
8128 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8129 the implementation to lrecord_implementations_table.
8131 2000-10-14 Daiki Ueno <ueno@unixuser.org>
8133 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8134 initial value of `lrecord_type_##c_name' and
8135 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8136 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8137 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8138 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8139 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8141 2000-10-17 Martin Buchholz <martin@xemacs.org>
8143 * miscplay.c (sndcnv8S_2mono):
8144 (sndcnv2monounsigned):
8145 (sndcnvULaw_2linear):
8147 Remove implementation-defined behavior.
8149 2000-10-12 Martin Buchholz <martin@xemacs.org>
8151 * input-method-xlib.c: Warning suppression.
8153 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
8155 * mule-ccl.c: Sync up with Emacs 21.0.90.
8156 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8158 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8160 (ccl_driver[WriteMultibyteChar2]): Bug fix.
8161 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8162 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8163 leading char belongs to official 2-dimensional charset.
8164 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8165 write the given character as is. Otherwise,
8166 if it is a multibyte char, convert it by
8167 non_ascii_set_charptr_emchar, then write it.
8168 (CCL_WRITE_STRING): Likewise.
8169 (ccl_get_compiled_code): New function.
8170 (setup_ccl_program): When ccl_prog is invalid,
8172 (Fregister_code_conversion_map): New function.
8173 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8175 * mule-ccl.h: Sync up with Emacs 21.0.90.
8176 (Fregister_ccl_program): export it.
8178 * redisplay-msw.c (separate_textual_runs):
8179 If ccl program is not valid, don't do ccl conversion.
8181 * redisplay-x.c (separate_textual_runs): Ditto.
8183 * file-coding.c (Fmake_coding_system):
8184 When type is ccl and value is vector, register it
8185 with a proper symbol. And checks whether the
8186 given ccl program is valid.
8187 (mule_decode): When calling ccl_driver, if src indicates
8188 NULL pointer, set an empty string instead.
8189 (mule_encode): Likewise.
8191 2000-10-11 Martin Buchholz <martin@xemacs.org>
8193 The following large batch of changes gets us back to a state of
8194 C++ compilability. Extbyte is now a char, which means that
8195 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8197 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8199 * sound.c (Fplay_sound): Type correctness.
8201 * select-x.c (hack_motif_clipboard_selection): Type correctness.
8202 (x_get_window_property): Type correctness.
8203 (receive_incremental_selection): unsigned char ==> Extbyte
8204 (selection_data_to_lisp_data): unsigned char ==> Extbyte
8205 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8206 (Fx_store_cutbuffer_internal): Type correctness.
8208 * process-unix.c (try_to_initialize_subtty): Type correctness.
8210 * objects-x.c (x_print_color_instance): Type correctness.
8211 (x_print_font_instance): Type correctness.
8212 (x_list_fonts): SExtbyte ==> Extbyte.
8213 (valid_x_font_name_p): SExtbyte ==> Extbyte.
8214 (x_find_charset_font): SExtbyte ==> Extbyte.
8215 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
8216 (truename_via_XListFonts): SExtbyte ==> Extbyte.
8217 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8220 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8221 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8222 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8223 (BYTE_C0_P): Use bit ops for char-signedness safety.
8224 (BYTE_C1_P): Use bit ops for char-signedness safety.
8225 (CHARSET_BY_LEADING_BYTE):
8226 (CHARSET_BY_ATTRIBUTES):
8227 Always use inline function.
8228 Use type_checking_assert.
8231 * mule-charset.c (non_ascii_charptr_copy_char):
8232 Modify to work with both ASCII and non-ASCII characters.
8233 Improve docs and variable names.
8234 Replace over-clever fall-through switch with a simple loop.
8235 (Lstream_get_emchar_1):
8236 Replace over-clever fall-through switch with a simple loop.
8238 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8239 Warning suppression.
8241 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8242 the return value of Lstream_getc, which could be EOF as well.
8244 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8246 * lisp.h: Make Extbyte a char, not unsigned char, so that external
8247 APIs can be used on Extbytes without casts. Risky!
8251 * input-method-xlib.c (XIM_init_device):
8252 Use Xlib.h instead of IntrinsicP.h.
8253 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8254 which will break in X11R7.
8255 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8256 to call XRegisterIMInstantiateCallback with correct types.
8258 * gui-x.c (button_item_to_widget_value): Type correctness.
8260 * glyphs.c (bitmap_to_lisp_data): Type correctness.
8262 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8263 (xbm_instantiate_1): Type correctness.
8264 (BUILD_GLYPH_INST): Type correctness.
8266 * fileio.c (Fsubstitute_in_file_name): Type correctness.
8269 (decode_coding_sjis):
8270 (decode_coding_big5):
8271 (decode_coding_ucs4):
8272 (decode_coding_utf8):
8273 (decode_coding_iso2022):
8274 (decode_coding_no_conversion):
8275 Make all decoding functions take an Extbyte * arg.
8276 (encode_coding_sjis):
8277 (encode_coding_big5):
8278 (encode_coding_ucs4):
8279 (encode_coding_utf8):
8280 (encode_coding_iso2022):
8281 (encode_coding_no_conversion):
8282 Make all encoding functions take a Bufbyte * arg.
8283 Use size_t instead of unsigned int for memory sizes.
8284 Only cast to unsigned char whenever dereferencing Extbyte *.
8286 * doc.c (unparesseuxify_doc_string): Type correctness.
8288 * console-x.c (split_up_display_spec):
8289 Rewrite without using details of internal string representation.
8290 (x_semi_canonicalize_device_connection): Type correctness.
8293 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8294 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8295 (HAVE_XFREE386): Removed.
8297 * buffer.h (DEC_CHARPTR): `const' correctness.
8298 (bufbyte_strcmp): New.
8299 (bufbyte_memcmp): New.
8301 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8303 * buffer.h (XCHAR_OR_CHAR_INT):
8304 Always use inline function.
8305 Remove redundant type checking assert() - XINT will abort quite nicely.
8307 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
8309 * search.c (Freplace_match): Set newtext to an empty string.
8311 2000-10-10 Martin Buchholz <martin@xemacs.org>
8313 * s/decosf1-3.h: Remove #include of stropts.h
8314 * s/ptx.h: Remove #include of stropts.h
8315 * s/usg5-4.h: Remove #include of stropts.h
8318 Use stropts.h, not sys/stropts.h.
8319 Use strtio.h, not sys/strtio.h.
8321 2000-10-04 Martin Buchholz <martin@xemacs.org>
8323 * XEmacs 21.2.36 is released.
8325 2000-09-21 Andy Piper <andy@xemacs.org>
8327 * glyphs-x.c (x_redisplay_widget): make sure non-structural
8328 changes still involve copying the widget tree.
8329 (update_widget_face): make sure a change is register in the widget
8330 tree. Call update_tab_widget_face appropriately.
8331 (update_tab_widget_face): ditto.
8332 (x_tab_control_redisplay): make sure non-structural changes still
8333 involve copying the widget tree.
8335 2000-08-31 Daiki Ueno <ueno@unixuser.org>
8337 * lread.c (locate_file): Check the path element is non-nil.
8339 2000-10-02 Martin Buchholz <martin@xemacs.org>
8341 * lisp.h: Warning suppression for SCO compilers.
8343 * redisplay-tty.c (reset_tty_modes): Fix crash.
8344 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8346 2000-09-27 Martin Buchholz <martin@xemacs.org>
8348 Big signal/process handling overhaul. Bugs fixed:
8349 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8350 M-x comint-kill-subjob should work for both values nil and t of
8351 process-connection-type. It was broken on most platforms.
8352 Testing on Irix and Cygwin still needed. Other plaforms tested.
8353 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
8354 * process-unix.c: Signal/Process handling overhaul.
8355 (pty_name): make 64 bytes, as `expect' does, for paranoia.
8356 (allocate_pty): Use all available modern methods of allocating
8357 ptys, falling back to old style BSD allocation as a last resort.
8358 Use allegedly more secure Unix98 pty allocation by default.
8359 (allocate_pty_the_old_fashioned_way): New. the last resort.
8360 (unix_create_process): Push ptem, ldterm, ttcompat where
8361 available. Autoconfiscate.
8362 (try_to_initialize_subtty): New.
8363 (unix_kill_child_process): Proper signal handling for ptys on most
8364 platforms, using special knowledge of AIX, BSD, etc...
8365 (unix_create_process): Always disconnect_controlling_terminal() for
8366 subprocesses, whether using ptys or not.
8367 * process.h: Remove old getpt-dependent PTY code.
8368 * process.c (Fprocess_send_signal): New, obvious generic function.
8369 (decode_signal): New.
8370 (Finterrupt_process):
8374 (Fcontinue_process):
8375 (Fsignal_process): Use decode_signal.
8376 (process_send_signal):
8377 Many docstring corrections.
8378 Allow any signal to be sent to a process object.
8379 * config.h.in: Add symbols for big signal/process overhaul.
8380 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8381 * sysproc.h: Include process-related headers, where available:
8382 sys/stropts.h sys/strtio.h pty.h libutil.h
8390 Remove old S&M pty stuff.
8391 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8392 * systty.h: Simplify cpp hackery, improve comments.
8393 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8395 * editfns.c (Fformat_time_string):
8396 Be a little more paranoid with the return value of ctime.
8398 * fileio.c (check_executable):
8400 Use symbolic constants X_OK, W_OK.
8402 * console-x.c (split_up_display_spec): Fix a warning.
8404 2000-10-02 Martin Buchholz <martin@xemacs.org>
8406 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8407 * ntproc.c (sys_spawnve): make_string ==> build_string
8408 Small clarity improvements.
8410 2000-09-30 Martin Buchholz <martin@xemacs.org>
8412 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8414 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8416 * config.h.in (HAVE_STRCASECMP): Remove.
8418 2000-09-29 Martin Buchholz <martin@xemacs.org>
8420 * redisplay-output.c (redisplay_output_pixmap):
8421 Cleaner and possibly more 64-bit correct code.
8423 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
8425 * dumper.c (pdump_load_finish): move restoration of
8426 `noninteractive1' to emacs.c (main_1).
8427 * emacs.c (main_1): protect LISP-visible command-line flags
8430 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
8432 * Makefile.in.in (versionclean): Use EXE_TARGET and
8433 DUMP_TARGET instead of literal program names.
8435 2000-09-20 Martin Buchholz <martin@xemacs.org>
8437 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8439 2000-09-19 Martin Buchholz <martin@xemacs.org>
8441 * *: Spelling mega-patch
8443 2000-09-19 Martin Buchholz <martin@xemacs.org>
8445 * fns.c (bad_bad_turtle):
8446 Delete "Eek!" comment, since we fixed the bug to which it refers.
8448 2000-09-16 Martin Buchholz <martin@xemacs.org>
8450 * alloca.c: Replace REGISTER with register.
8452 2000-09-16 Daiki Ueno <ueno@unixuser.org>
8454 * file-coding.c (ucs_to_char): Use countof.
8456 2000-09-16 Martin Buchholz <martin@xemacs.org>
8458 * file-coding.c: (ucs_to_char):
8459 (complex_vars_of_file_coding):
8460 Use countof instead of sizeof.
8461 Use CHECK_NATNUM instead of CHECK_INT.
8463 * sysdep.c (strcasecmp): Remove.
8464 * device-x.c (ascii_strcasecmp): New.
8465 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8466 Avoid using non-standard non-portable strcasecmp.
8468 2000-09-16 Martin Buchholz <martin@xemacs.org>
8470 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8471 * font-lock.c: remove reference to emacsfns.h.
8472 * search.c: small doc improvement.
8473 * event-Xt.c: correct file names in comments.
8474 * console-x.h Correct file names in comments.
8475 * frame.c: Correct file names in comments.
8476 * event-stream.c: remove Energize from comments.
8478 2000-09-15 Martin Buchholz <martin@xemacs.org>
8480 * symeval.h (DEFERROR_STANDARD):
8483 (DEFSYMBOL_NO_DUMP):
8484 (DEFSYMBOL_MULTIWORD_PREDICATE):
8485 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8487 The construct &##name is not sensible C.
8488 Fixes compilation errors with Unixware native compiler.
8490 2000-09-14 Martin Buchholz <martin@xemacs.org>
8492 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8493 (next_frame_internal): Removed. We now just have next_frame.
8495 Write a simpler and cleaner one-pass algorithm.
8496 Remove called_from_delete_device arg and #ifdefed-out code.
8498 Renamed from prev_frame. Update callers.
8499 Cleaned up to have an analogous implementation to next_frame.
8500 (other_visible_frames_internal): Remove the
8501 called_from_delete_device bogus arg, and hence, remove this
8502 function. Just use other_visible_frames().
8504 * window.c (Fnext_window):
8506 Since next_frame() is guaranteed to return a frame, remove check
8507 for nil inserted in previous patch.
8510 Make code look more like Fnext_window.
8512 Respect the `console' arg when iterating through windows.
8513 Fixes bug: (get-buffer-window buffer t device) not respecting
8515 This function needs more work, as others have pointed out.
8517 * frame.h: Rename prev_frame to previous_frame.
8518 device_matches_console_spec no longer takes a `frame' arg.
8523 Use EMACS_BLOCK_SIGNAL instead of sigblock.
8524 From "Golubev I. N." <gin@mo.msk.ru>.
8526 * make-src-depend: Fix typo.
8528 2000-09-13 Martin Buchholz <martin@xemacs.org>
8530 * window.c (Fnext_window):
8531 next_frame() might return nil, not a frame.
8533 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8535 * frame.c (next_frame_internal):
8536 We've passed a frame if we've passed its device.
8538 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8539 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8541 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
8543 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8544 Allow option to suppress accelerators in menu/dialog items.
8545 (populate_or_checksum_helper): Pass dialog title through above.
8547 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
8549 * event-msw.c (mswindows_key_to_emacs_keysym):
8550 Add "pause" key, fix "menu" key.
8552 2000-09-09 Martin Buchholz <martin@xemacs.org>
8554 * eval.c (reinit_vars_of_eval):
8555 Increase max_lisp_eval_depth to 1000,
8556 required for thai-xtis.el to byte-compile under some circumstances.
8558 2000-09-04 Martin Buchholz <martin@xemacs.org>
8560 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8563 2000-09-01 Martin Buchholz <martin@xemacs.org>
8565 * make-src-depend: Make the generated Makefiles smaller.
8567 * s/hpux.h (SETUP_SLAVE_PTY):
8568 Provide a %d in the format string for the errno argument.
8570 * editfns.c (Ftemp_directory):
8572 Avoid buffer overrun on very long file name.
8574 * input-method-xlib.c (XIM_init_device):
8575 6th parameter of XRegisterIMInstantiateCallback has different
8576 pointer types on different OSes, so simply cast to (void *).
8578 * unexhp9k800.c: Warning fixes. Fiddly changes.
8580 * sysdll.c (dll_open):
8581 shl_load will hang hard if passed a NULL filename.
8582 Simply return NULL for compatibility with dlopen.
8583 * sysdll.c: Conform to XEmacs coding standards.
8585 * sysdep.c (get_pty_max_bytes):
8586 Support pty input lines longer than 512 bytes on HP-UX 10.20.
8588 2000-08-31 Martin Buchholz <martin@xemacs.org>
8590 * tooltalk.c: Add #include <syssignal.h>
8592 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
8594 * s/hpux.h: Don't use undefined function sigunblock().
8596 2000-08-31 Martin Buchholz <martin@xemacs.org>
8598 * config.h.in: Add HAVE_BALLOON_HELP.
8599 * emacs.c: Use HAVE_BALLOON_HELP.
8600 * Makefile.in.in (x_objs):
8601 Make Balloon Help conditional on finding shape.h.
8603 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
8605 * syntax.c (regex_emacs_buffer_p): New variable.
8606 * syntax.h (regex_emacs_buffer_p): extern.
8607 * search.c (looking_at_1):
8609 (fast_string_match):
8610 (search_buffer): Set regex_emacs_buffer_p.
8611 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8612 when before_dot, at_dot, after_dot.
8614 2000-08-23 Andy Piper <andy@xemacs.org>
8616 * gui-x.c (popup_selection_callback): Only set action_occurred
8617 when we really have an image instance.
8618 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8620 2000-08-23 Andy Piper <andy@xemacs.org>
8622 * gui-msw.c (mswindows_handle_gui_wm_command): set
8624 * gui-x.c (popup_selection_callback): ditto.
8626 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8627 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8628 (struct Lisp_Image_Instance): add action_occurred flag.
8630 * glyphs.c (redisplay_subwindow): use action_occurred flag.
8631 (image_instance_changed): ditto.
8632 (reset_frame_subwindow_instance_cache): only unmap windows - do
8633 not remove them from the cache also.
8635 * glyphs-widget.c (tab_control_update): better debug.
8636 (progress_gauge_update): ditto.
8637 (layout_update): ditto.
8638 (layout_instantiate): ditto.
8639 (tab_control_order_only_changed): cope with null pending items.
8641 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8642 debug. Force selection of an item when an action occurred. Cope
8643 with null pending_items.
8644 (mswindows_progress_gauge_redisplay): better debug.
8645 * glyphs-x.c (x_tab_control_redisplay): ditto.
8647 * redisplay.c (redisplay_frame): reset the frame cache if the
8650 * window.c (Fset_window_configuration): potentially re-enable
8652 (window_unmap_subwindows): need to finalize instances here since
8653 it is only used in mark_window_as_deleted.
8655 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
8657 * nas.c (SndOpenDataForReading):
8658 nas.c (WaveOpenDataForReading):
8659 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8660 Somehow escaped from the 2000-08-14 patch.
8662 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
8664 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8665 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8667 2000-08-21 Andy Piper <andy@xemacs.org>
8669 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8670 window if it is not already displayed.
8672 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8673 it is not already displayed.
8675 * window.c (Fset_window_configuration): don't reset the frame
8678 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8679 instances from the frame cache if we are actually finalizing them.
8680 (reset_frame_subwindow_instance_cache): reset frame cache only
8681 after unmapping everything.
8682 (map_subwindow): set displayed flag after mapping.
8684 2000-08-21 Martin Buchholz <martin@xemacs.org>
8686 * data.c (indirect_function):
8687 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8689 * eval.c (function_argcount):
8690 Use original function when signaling errors.
8692 2000-08-18 Andy Piper <andy@xemacs.org>
8694 * frame.c (delete_frame_internal): use new
8695 free_frame_subwindow_instances name.
8697 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8698 (add_tab_item): make return type correct.
8699 (mswindows_tab_control_instantiate): assert index of tab.
8700 (mswindows_tab_control_redisplay): Re-code to use
8701 gui_item_equal_sans_selected and gui_item_list_find_selected.
8703 * glyphs-widget.c (tab_control_update): Correct comment.
8705 * window.c (window_unmap_subwindows): use new
8706 unmap_subwindow_instance_cache_mapper.
8707 (window_unmap_subwindows_cache_mapper): deleted.
8708 (Fset_window_configuration): comparisons should now be with
8709 EQ. Preserve the subwindow instance cache across configuration
8711 (allocate_window): ditto.
8712 (make_dummy_parent): ditto.
8714 * glyphs.c (free_frame_subwindow_instances): rename from
8715 free_frame_subwindow_instance_cache. finalize all instances rather
8716 than just those in the display cache.
8717 (finalize_all_subwindow_instances): walk windows unmapping and
8718 finalizing subwindows.
8719 (unmap_subwindow_instance_cache_mapper): moved from
8720 window.c. Allow finalization as well as unmapping.
8722 * gui.c (gui_item_list_find_selected): new function.
8724 * gui.h (gui_item_list_find_selected): declare.
8726 * glyphs-x.c (x_tab_control_redisplay): pick tab
8727 explicitly. Re-code to use gui_item_equal_sans_selected and
8728 gui_item_list_find_selected.
8730 * glyphs-x.h: add lwlib-utils.h
8732 * buffer.c (Frecord_buffer): undo previous change.
8734 2000-08-09 Vin Shelton <acs@xemacs.org>
8736 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8737 possible. Create temporary files more securely. The patch was
8738 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8739 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
8740 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8743 2000-08-07 Ben Wing <ben@xemacs.org>
8745 * getloadavg.c: remove duplicate (and windows-breaking)
8746 includes of fcntl.h and sys/file.h.
8748 * nt.c: remove duplicate getloadavg() definition.
8750 * sysdll.h (Qdll_filename_encoding): add missing stand-in
8753 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
8755 * eval.c (function_argcount): If function needs to be autoloaded
8756 actually use the loaded definition.
8759 2000-08-05 Ben Wing <ben@xemacs.org>
8761 * getloadavg.c: add prototype for getloadavg(). remove
8762 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8763 of the code). remove duplicate header includes.
8765 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8767 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8768 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8769 useful load average.
8771 * alloc.c (reinit_alloc_once_early): removed references to
8772 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8773 the lisp vars are the only things referencing the malloc_sbrk_*
8774 vars, and they were already if 0'd out. these vars only exist
8775 in the older malloc.c, which is basically unused, and they're
8776 only for informational purposes.
8778 * m\*.h: removed useless VIRT_ADDR_VARIES.
8780 * m\powerpc.h: removed stray NO_ARG_ARRAY.
8782 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
8784 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8785 color if the image is a mono pixmap.
8787 2000-07-30 Ben Wing <ben@xemacs.org>
8789 * Makefile.in.in (release):
8792 * buffer.c (directory_is_current_directory):
8793 * dired-msw.c (mswindows_get_files):
8795 * dired.c (Fdirectory_files):
8796 * dired.c (file_name_completion_stat):
8797 * dired.c (Ffile_attributes):
8798 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8799 preprocessor tricks, to avoid problems on some machines
8802 * callproc.c (egetenv): GC docs.
8805 * console-msw.h (struct mswindows_dialog_id):
8806 * lrecord.h (lrecord_type):
8807 New object for use with MSW dialogs.
8809 * console.h (struct console_methods):
8810 New enable/disable frame methods, for proper modal dialogs.
8812 * device-msw.c (msprinter_default_printer): Fix to follow
8813 proper Mule conventions.
8816 * device-msw.c (signal_open_printer_error):
8817 * device-msw.c (msprinter_init_device):
8818 * device-msw.c (ensure_not_printing):
8819 * device-msw.c (plist_get_margin):
8820 * device-msw.c (Fmsprinter_select_settings):
8821 * device-msw.c (finalize_devmode):
8822 * device-msw.c (Fmsprinter_settings_despecialize):
8823 * device-msw.c (signal_enum_priner_error):
8824 * extents.c (decode_extent):
8825 * extents.c (decode_map_extents_flags):
8826 * extents.c (decode_extent_at_flag):
8827 * extents.c (Fextent_at):
8828 * extents.c (Fextents_at):
8829 * extents.c (symbol_to_glyph_layout):
8830 [[[[2]]]] Use structured errors.
8833 * dialog-msw.c (mswindows_is_dialog_msg):
8834 * dialog-msw.c (mark_mswindows_dialog_id):
8835 * dialog-msw.c (dialog_proc):
8836 * dialog-msw.c (handle_question_dialog_box):
8837 * dialog-msw.c (syms_of_dialog_mswindows):
8838 Define new object to clean up marking; use it as a dialog identifier.
8839 Call new delete-dialog-box-hook.
8841 * dialog-x.c (dbox_selection_callback):
8842 * dialog-x.c (dbox_descriptor_to_widget_value):
8843 * dialog-x.c (x_make_dialog_box_internal):
8844 Call new delete-dialog-box-hook.
8848 * dialog.c (syms_of_dialog):
8849 * dialog.c (vars_of_dialog):
8850 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
8853 * eval.c (signal_call_debugger):
8854 when noninteractive, output stack traces on the console instead
8855 of in a (never-seen) buffer.
8857 * eval.c (signal_type_error):
8858 * eval.c (invalid_argument_2):
8860 new funs for use w/structured errors.
8863 * event-Xt.c (x_to_emacs_keysym):
8864 * event-Xt.c (describe_event):
8865 * event-Xt.c (emacs_Xt_event_handler):
8866 * event-Xt.c (vars_of_event_Xt):
8868 * event-msw.c (mswindows_wnd_proc):
8869 * event-msw.c (vars_of_event_mswindows):
8870 rename {x,mswindows}-debug-events to debug-{}-events for
8871 consistency with other debug-foo variables.
8874 document next-event more clearly.
8876 * fileio.c (Ffile_name_directory):
8877 * fileio.c (Ffile_name_nondirectory):
8878 * fileio.c (Funhandled_file_name_directory):
8879 * fileio.c (file_name_as_directory):
8880 * fileio.c (Ffile_name_as_directory):
8881 * fileio.c (directory_file_name):
8882 * fileio.c (Fdirectory_file_name):
8883 * fileio.c (Fmake_temp_name):
8884 * fileio.c (Ffile_truename):
8885 * fileio.c (Fsubstitute_in_file_name):
8886 * fileio.c (expand_and_dir_to_file):
8887 * fileio.c (barf_or_query_if_file_exists):
8888 * fileio.c (check_executable):
8889 * fileio.c (Ffile_exists_p):
8890 * fileio.c (Ffile_writable_p):
8891 * fileio.c (Ffile_directory_p):
8892 * fileio.c (Ffile_regular_p):
8893 * fileio.c (Ffile_modes):
8894 * fileio.c (Ffile_newer_than_file_p):
8895 * fileio.c (Fverify_visited_file_modtime):
8896 * fileio.c (Fset_visited_file_modtime):
8897 * fileio.c (auto_save_1):
8902 * frame-msw.c (mswindows_init_frame_1):
8903 * frame-msw.c (mswindows_enable_frame):
8904 * frame-msw.c (error_frame_unsizable):
8905 * frame-msw.c (msprinter_init_frame_1):
8906 * frame-msw.c (msprinter_init_frame_3):
8907 * frame-msw.c (console_type_create_frame_mswindows):
8909 implement new enable/disable frame methods.
8912 * frame-x.c (x_enable_frame):
8913 * frame-x.c (console_type_create_frame_x):
8914 implement new enable/disable frame methods.
8917 * frame.c (Fdisable_frame):
8918 * frame.c (syms_of_frame):
8919 * frame.h (struct frame):
8920 implement new enable/disable frame methods/functions.
8925 * glyphs-msw.c (mswindows_widget_instantiate):
8926 comment that initial-focus should be implemented.
8929 * glyphs-widget.c (check_valid_instantiator):
8930 * glyphs-widget.c (check_valid_orientation):
8931 * glyphs-widget.c (check_valid_tab_orientation):
8932 * glyphs-widget.c (check_valid_justification):
8933 * glyphs-widget.c (check_valid_border):
8934 * glyphs-widget.c (check_valid_callback):
8935 * glyphs-widget.c (check_valid_int_or_function):
8936 * glyphs-widget.c (check_valid_string_or_vector):
8937 * glyphs-widget.c (check_valid_item_list_1):
8938 * glyphs-widget.c (widget_validate):
8939 * glyphs-widget.c (combo_box_validate):
8940 * glyphs-widget.c (widget_instantiate):
8941 * glyphs-widget.c (syms_of_glyphs_widget):
8942 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
8943 * glyphs-widget.c (image_instantiator_combo_box):
8944 * glyphs-widget.c (image_instantiator_scrollbar):
8945 * glyphs-widget.c (image_instantiator_tab_control):
8946 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
8948 support (unimplemented) keyword initial-focus.
8949 reindent long macros.
8951 * glyphs-x.c (x_redisplay_widget):
8952 * glyphs-x.c (x_button_instantiate):
8953 * glyphs-x.c (x_button_redisplay):
8954 * glyphs-x.c (x_progress_gauge_instantiate):
8955 * glyphs-x.c (x_edit_field_instantiate):
8956 * glyphs-x.c (x_combo_box_instantiate):
8957 * glyphs-x.c (x_tab_control_instantiate):
8958 * glyphs-x.c (x_label_instantiate):
8960 * gui-x.c (button_item_to_widget_value):
8961 * gui-x.c (gui_items_to_widget_values_1):
8962 * gui-x.c (gui_item_children_to_widget_values):
8963 * gui-x.c (gui_items_to_widget_values):
8965 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8966 add new flag to gui-parsing routines to indicate whether
8967 accelerator specs should be supported.
8969 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
8971 * glyphs.h (struct Lisp_Image_Instance):
8972 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
8973 add initial-focus flag.
8976 * gui.c (syms_of_gui):
8977 * gui.c (vars_of_gui):
8978 clean up menu-no-selection-hook.
8981 support delete-dialog-box-hook.
8983 * lread.c (Fload_internal):
8984 * lread.c (locate_file_in_directory_mapper):
8988 * lrecord.h (struct toolbar_button):
8989 * lrecord.h (syms_of_toolbar):
8990 document how to create a new object.
8992 * menubar-msw.c (mswindows_char_is_accelerator):
8993 may be called on frames w/o menus.
8995 * menubar.c (vars_of_menubar):
8996 clean up :filter docs.
9003 * process-nt.c (validate_signal_number):
9004 * process-nt.c (signal_cannot_launch):
9005 * process-nt.c (nt_create_process):
9006 * process-nt.c (nt_send_process):
9007 * process-nt.c (nt_kill_child_process):
9008 * process-nt.c (nt_open_network_stream):
9009 * process-nt.c (syms_of_process_nt):
9011 delete quote-handling. call new lisp code that does it better.
9013 * process-unix.c (connect_to_file_descriptor):
9014 * process-unix.c (allocate_pty):
9015 * process-unix.c (unix_send_process):
9016 * process-unix.c (unix_kill_child_process):
9017 * process-unix.c (unix_open_network_stream):
9018 * process-unix.c (unix_open_multicast_group):
9022 * process.c (Fstart_process_internal):
9023 (2). need to canonicalize process path even if absolute.
9025 * select-msw.c (symbol_to_ms_cf):
9026 * select-msw.c (ms_cf_to_symbol):
9027 * select-msw.c (cf_is_autofreed):
9028 * select-msw.c (mswindows_destroy_selection):
9030 * select.c (syms_of_select):
9032 support dibv5, fix bugs. (from Mike Alexander)
9034 * select.c (Fget_selection_internal):
9035 * select.c (select_convert_out):
9038 * sysdep.c (xemacs_stat):
9043 but keep original stat() here because we provide encapsulation
9047 * sysfile.h (fstat):
9048 remove stat garbage.
9052 don't include tchar.h. it's inappropriate because it makes
9053 compile-time distinctions when we want runtime distinctions.
9054 (we provide our own tchar replacements)
9057 use default object printer for toolbar-button.
9060 make sure we don't encapsulate.
9062 * window.c (vars_of_window):
9063 emphasize that temp-buffer-show-hook is obsolete.
9065 2000-08-05 Martin Buchholz <martin@xemacs.org>
9067 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9068 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9070 * events.c (Fevent_timestamp_lessp):
9071 Not 64-bit clean. Use EMACS_INT, not int.
9073 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
9075 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9076 unsigned int and changed the last enum to
9077 lrecord_type_last_built_in_type.
9078 (lrecord_implementations_table): changed prototype to know how
9079 long the array is supposed to be.
9080 (lrecord_type_count): new unsigned int to keep track of the
9081 current number of lisp lrecord types.
9082 (DEFINE_EXTERNAL_LRECORD):
9083 (DECLARE_EXTERNAL_LRECORD): Added these two for external
9084 dynamic-modules to declare new lisp types. They are the same
9085 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9086 int for each new type, and increment lrecord_type_count by 1.
9088 * alloc.c (lrecord_implementations_table): Changed to reference
9089 lrecord_type_last_built_in_type for the size of the array.
9090 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9092 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9094 * glyphs.h (check_valid_item_list): Renamed from
9095 check_valid_item_list_1.
9097 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9099 * select.c (Qselect_coerce): New.
9100 * select.c (Vselection_coercion_alist): New.
9101 * select.c (syms_of_select): Declare.
9102 * select.c (get-selection-internal): Use it.
9103 Use the new select-coerce functionality.
9105 * select.c (select_coerce): New.
9106 * select.h (select_coerce): Declare.
9107 New function to coerce one type of data into another.
9109 2000-08-03 Martin Buchholz <martin@xemacs.org>
9111 * callproc.c (Fcall_process_internal):
9112 (Fcall_process_internal):
9113 * process-unix.c (unix_create_process):
9114 Save and restore the value of errno, so that error messages are accurate.
9116 2000-08-01 Martin Buchholz <martin@xemacs.org>
9118 * elhash.c (print_hash_table):
9119 Fix printing of hash tables to also use `key-and-value' instead of `t'.
9120 Prettify docstrings and indentation.
9122 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
9124 * window.c (Fwindow_pixel_edges): Subtract frame border and
9127 2000-07-31 Andy Piper <andy@xemacs.org>
9129 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9130 will acknowledge the change.
9132 * glyphs.h: declare tab_control_order_only_changed.
9134 * glyphs-x.c (x_tab_control_redisplay): use
9135 tab_control_order_only_changed.
9137 * glyphs-widget.c (tab_control_order_only_changed): new function.
9139 * glyphs-msw.c (mswindows_tab_control_redisplay): use
9140 tab_control_order_only_changed.
9142 * gui.c (gui_item_equal_sans_selected): new function.
9143 (gui_item_equal): use it.
9145 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9146 :properties in favor of :items..
9148 * glyphs-widget.c (check_valid_item_list): rename from
9149 check_valid_item_list_1.
9150 (check_valid_item_list_1): renamed.
9151 (combo_box_validate): deprecate :properties in favor of :items.
9152 (widget_instantiate): ditto.
9153 (tab_control_update): ditto.
9154 (image_instantiator_combo_box): ditto.
9155 (image_instantiator_tree_view): ditto.
9156 (image_instantiator_tab_control): ditto.
9157 (layout_post_instantiate): remove dead code.
9159 * print.c (debug_print_no_newline): only write to debugger if in
9162 * elhash.c (Fmake_hash_table): update doc string.
9164 * event-msw.c (mswindows_wnd_proc): don't allow processing of
9165 messages whilst in GC. This at least stops XEmacs crashing but has
9166 the potential for wierd behaviour.
9168 2000-07-31 Martin Buchholz <martin@xemacs.org>
9171 Make existence of s&m files optional.
9173 * s/bsd386.h: Remove HAVE_GETLOADAVG.
9174 * s/freebsd.h: Remove HAVE_GETLOADAVG.
9175 * s/gnu.h: Remove HAVE_GETLOADAVG.
9176 * s/netbsd.h: Remove HAVE_GETLOADAVG.
9177 * s/sol2.h: Remove HAVE_GETLOADAVG.
9178 * lisp.h: Remove getloadavg() declaration.
9180 Include <sys/loadavg.h> if available.
9181 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9182 * config.h.in: Group together getloadavg()-related macros.
9183 Use only configure-time tests to detect getloadavg().
9185 2000-07-30 Martin Buchholz <martin@xemacs.org>
9187 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9189 2000-07-25 Andy Piper <andy@xemacs.org>
9191 * syswindows.h: add tchar.h for native builds.
9193 * frame.c (syms_of_frame): remove set-glyph-image.
9195 * general-slots.h: add Qset_glyph_image.
9197 * glyphs-widget.c (layout_update): add domain arg to
9199 (syms_of_glyphs_widget): remove set-glyph-image.
9201 2000-07-23 Ben Wing <ben@xemacs.org>
9203 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9206 2000-07-22 Andy Piper <andy@xemacs.org>
9208 * symsinit.h: add syms_of_win32().
9210 * gui-msw.c (syms_of_gui_mswindows): remove
9211 Fmswindows_shell_execute.
9212 (Fmswindows_shell_execute): moved to win32.c.
9214 * emacs.c (main_1): add syms_of_win32 ().
9216 * win32.c (init_potentially_nonexistent_functions): rewrite in
9217 compiler-friendly terms.
9218 (Fmswindows_shell_execute): move here from gui-msw.c.
9219 (syms_of_win32): new.
9221 * device-msw.c (Fmswindows_printer_list): clean up args to
9223 Don't include tchar under cygwin or mingw.
9224 (msprinter_default_printer): make cygwin-friendly.
9226 2000-07-21 Andy Piper <andy@xemacs.org>
9228 * glyphs-widget.c (image_instantiator_tree_view): use tab
9229 control's update function.
9230 (layout_property): new function. Retrieve items.
9232 * glyphs-msw.c (mswindows_tree_view_redisplay): new
9233 function. Re-populate the tree view from the pending items.
9235 * glyphs.c (instantiate_image_instantiator): Make sure the domain
9236 is designated the parent if the domain is an image instance. This
9237 is needed so that dirtiness can be cascade up the hierarchy and
9238 thus for layout children to be redisplayed correctly.
9239 (allocate_image_instance): rename glyph -> parent.
9241 * redisplay.h: change redisplay_output_layout signature.
9243 * redisplay-msw.c (mswindows_output_display_block): use domain
9246 * redisplay-x.c (x_output_display_block): use domain arg.
9248 2000-07-10 Andy Piper <andy@xemacs.org>
9250 * window.c (Fset_window_configuration): add comment.
9252 * redisplay-output.c (compare_runes):
9253 (redisplay_output_subwindow): redisplay rather than update subwindow.
9254 (redisplay_output_layout): ditto.
9256 * redisplay-msw.c (mswindows_frame_output_end):
9257 (mswindows_frame_output_end): make defer window pos optional.
9259 * lisp.h: add Flast.
9261 * glyphs.h (struct image_instantiator_methods): add dest_mask top
9262 normalize method. Change update method to be for changed
9263 instantiators. Add redisplay method. Change signature of layout
9265 (struct Lisp_Image_Instance): add instantiator.
9266 (IMAGE_INSTANCE_INSTANTIATOR): new.
9267 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9268 (XIMAGE_INSTANCE_INSTANTIATOR): new.
9269 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9272 (find_instantiator_differences): new function.
9273 (Fset_instantiator_property): new convenience function.
9274 (check_image_instance_structure): strictly check for vector
9276 (normalize_image_instantiator): make non-static.
9277 (instantiate_image_instantiator): pass on dest_mask and use new
9278 signatures for image_instance_layout and friends.
9279 (mark_image_instance): mark the instantiator. Mark the subwindow
9280 face not the widget face.
9281 (image_instance_equal): add instantiator.
9282 (image_instance_hash): ditto.
9283 (allocate_image_instance): ditto.
9284 (Fset_image_instance_property): removed.
9285 (Fimage_instance_file_name): ditto.
9286 (Fcolorize_image_instance): ditto.
9287 (image_instance_layout): add offsets to be set.
9288 (update_image_instance): new function. update an image instance
9289 from its changed instantiator.
9290 (inherit_normalize): add dest_mask.
9291 (xbm_normalize): ditto.
9292 (xface_normalize): ditto.
9293 (xpm_normalize): ditto.
9294 (text_update): set_property -> update.
9295 (image_instantiate): use the glyph identity as a hash key, not the
9297 (glyph_width): use new image_instance_layout signature.
9298 (glyph_ascent): ditto.
9299 (glyph_descent): ditto.
9300 (glyph_height): ditto.
9301 (glyph_query_geometry): ressurrect.
9302 (glyph_layout): ditto.
9303 (redisplay_subwindow): update -> redisplay.
9304 (syms_of_glyphs): add Fset_instantiator_property.
9305 (image_instantiator_format_create): set_property -> update.
9308 (autodetect_normalize): add dest_maks to signature.
9309 (x_redisplay_subwindow): update -> redisplay.
9310 (x_redisplay_widget): ditto.
9311 (x_button_redisplay): ditto.
9312 (x_progress_gauge_redisplay): ditto.
9313 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9315 (console_type_create_glyphs_x): update -> redisplay.
9316 (image_instantiator_format_create_glyphs_x): ditto.
9319 (check_valid_instantiator): disallow glyphs in the instantiator,
9320 they must now be vectors.
9321 (check_valid_instantiator_list): ditto.
9322 (glyph_instantiator_to_glyph): use internal symbol rather than
9324 (widget_update): renamed from widget_set_property. Call cascaded
9326 (redisplay_widget): renamed from update_widget.
9327 (widget_layout): image_instance_layout now takes position as well
9329 (widget_normalize): ditto.
9330 (widget_instantiate): ditto.
9331 (tab_control_query_geometry) ditto.:
9332 (tab_control_update): renamed from tab_control_set_property.
9333 (progress_gauge_update): set_property -> update.
9334 (layout_normalize): rewrite so that child instantiators are
9336 (layout_update): new function. Create glyphs from the normalized
9337 children and cope with any other layout keywords. We do not
9338 instantiate children here that will be take care of by
9339 redisplay_output_layout.
9340 (layout_instantiate): call layout_update and not much else.
9341 (layout_post_instantiate): not sure whether this is needed
9343 (layout_query_geometry): query glyph geometry rather than
9344 image_instance geometry.
9345 (layout_layout): set offsets from pass in parameters. Use glyph
9346 geometry and layout functions rather than image instance ones.
9347 (native_layout_layout): ditto.
9348 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9349 (image_instantiator_widget): set_property -> update.
9350 (image_instantiator_buttons): ditto.
9351 (image_instantiator_progress_guage): ditto.
9352 (image_instantiator_tab_control): ditto.
9353 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9354 (image_instantiator_layout): add update method.
9356 * glyphs-msw.c (bmp_normalize):
9357 (mswindows_resource_normalize): add dest_mask so that it can be
9358 proprogated by layout_normalize.
9359 (begin_defer_window_pos): make optional because it may not be the
9360 right thing to do and it introduces differences with X.
9361 (mswindows_unmap_subwindow): ditto.
9362 (mswindows_map_subwindow): ditto.
9363 (mswindows_redisplay_subwindow): renamed from
9364 mswindows_update_subwindow.
9365 (mswindows_redisplay_widget): ditto.
9366 (mswindows_button_redisplay): renamed from
9367 mswindows_button_update. Update is now what the instantiation
9368 function does for a changed instantiator.
9369 (mswindows_progress_gauge_instantiate): set the progress value
9370 here if appropriate.
9371 (mswindows_tab_control_redisplay): cope with re-ordering of the
9372 members of the tab widget by simply selecting the new top
9373 widget. This makes things appear ok if you click on a tab.
9374 (mswindows_combo_box_instantiate): image_instance_layout now takes
9375 position as well as size.
9376 (mswindows_progress_gauge_redisplay): renamed from
9377 mswindows_progress_gauge_update.
9378 (console_type_create_glyphs_mswindows): fix update -> redisplay.
9379 (image_instantiator_format_create_glyphs_mswindows): ditto.
9381 * glyphs-eimage.c (jpeg_normalize):
9384 (tiff_normalize): add dest_mask so that it can be proprogated by
9389 (hash_table_weakness_validate):
9390 (decode_hash_table_weakness):
9391 (Fhash_table_weakness):
9393 (syms_of_elhash): use Ben's naming scheme for hashtable types..
9395 * console.h (struct console_methods): move update_* to
9398 2000-07-20 Ben Wing <ben@xemacs.org>
9400 * *.[ch] (XSETOBJ): remove unused middle argument.
9401 lisp-disunion.h: correct wrap_object() to one argument.
9403 2000-07-15 Ben Wing <ben@xemacs.org>
9406 * s/cygwin32.h (CYGWIN_CONV_PATH):
9407 Add missing logb prototype for v1.1.
9408 Use post-b20 names and alias to pre-b20 names when pre-b20.
9410 * s/windowsnt.h: [5].
9412 2000-07-15 Ben Wing <ben@xemacs.org>
9414 * Makefile.in.in (x_objs):
9415 * Makefile.in.in (sheap_objs):
9416 * Makefile.in.in (objs):
9417 added win32.o, cosmetic cleanups.
9419 * alloc.c (Fmake_byte_code):
9420 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9421 etc. macros which declare their own args now.
9423 * alloc.c (syms_of_alloc):
9424 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9427 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9429 * buffer.c (Fget_file_buffer):
9430 Fixed GCPRO problem.
9432 * buffer.c (get_truename_buffer):
9433 Fixed comment about GC checking.
9435 * buffer.c (syms_of_buffer):
9436 Undeclared those dedicated frame funs.
9440 Define convenience macros for internal/external conversions.
9441 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9442 and Qenvironment_variable_encoding for cleaner code.
9445 Remove dedicated-frame; in lisp.
9447 * bytecode.c (funcall_compiled_function):
9450 * bytecode.c (syms_of_bytecode):
9454 * console-msw.c (mswindows_show_console): Rewrote.
9456 * console-msw.c (Fmswindows_debugging_output): New.
9457 Sends to OutputDebugString (special MSWin debugger interface).
9459 * console-msw.c (Fmswindows_message_box):
9460 Fixed stupid bugs so it works when called from kill-emacs.
9462 * console-msw.c (syms_of_console_mswindows):
9463 Declare Fmswindows_debugging_output.
9466 New MSWin prototypes.
9468 * console-msw.h (struct mswindows_frame):
9469 New entry last-click-mods for improved button-modifier support.
9471 * console-msw.h (FRAME_MSWINDOWS_POPUP):
9472 New struct entry `popup' with corresponding accessor.
9475 * console-x.c (split_up_display_spec):
9476 * console-x.c (get_display_arg_connection):
9477 * console-x.c (x_semi_canonicalize_console_connection):
9478 * console-x.c (x_canonicalize_device_connection):
9479 [[[6]]]: Change char to more specific type.
9480 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9482 * console-x.c (x_semi_canonicalize_console_connection):
9483 * console-x.c (x_canonicalize_device_connection):
9484 [[[9]]]: Fix up error signalling to use new structured error system.
9487 [[[4]]]: Define codesys aliases:
9488 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9489 Qx_color_name_encoding, Qx_display_name_encoding.
9491 * console.h (struct console_methods):
9492 New method make_dialog_box_internal supersedes older
9493 popup_dialog_box method.
9496 Define many new errors, part of new structured errors.
9498 * data.c (init_errors_once_early):
9499 * data.c (syms_of_data):
9502 * device-msw.c (mswindows_init_device):
9503 [[[5]]]: Cleanup to support NT 3.51.
9505 * device-msw.c (decode_devmode): Cleanup.
9507 * device-msw.c (mswindows_handle_print_setup_dialog_box):
9508 * device-msw.c (mswindows_handle_print_dialog_box):
9509 * device-msw.c (mswindows_handle_page_setup_dialog_box):
9510 * device-msw.c (syms_of_device_mswindows):
9511 Delete the dialog box primitives recently introduced by Kirill and
9512 instead interface to general dialog box interface.
9515 * device-x.c (compute_x_app_name):
9516 * device-x.c (x_init_device):
9517 * device-x.c (Fx_valid_keysym_name_p):
9518 * device-x.c (Fx_set_font_path):
9522 * device.h (wrap_device): New.
9523 First of its kind; meant to replace XSETDEVICE.
9525 * dialog-msw.c: Many file-dialog symbols.
9527 * dialog-msw.c (mswindows_register_popup_frame): New.
9528 * dialog-msw.c (mswindows_is_dialog_msg): New.
9529 For supporting kbd traversal in dialog boxes.
9531 * dialog-msw.c (dialog_proc):
9532 Support hitting ESC in dialogs.
9534 * dialog-msw.c (struct):
9535 Common dialog box errors.
9537 * dialog-msw.c (handle_file_dialog_box): New.
9538 Add file dialog code.
9540 * dialog-msw.c (handle_question_dialog_box):
9541 Redo existing code to support new question dialog syntax.
9543 * dialog-msw.c (console_type_create_dialog_mswindows):
9544 We support new dialog console method.
9546 * dialog-msw.c (syms_of_dialog_mswindows):
9547 * dialog-msw.c (vars_of_dialog_mswindows):
9548 New file dialog symbols, vars.
9551 * dialog-x.c (maybe_run_dbox_text_callback):
9552 * dialog-x.c (dbox_descriptor_to_widget_value):
9553 * dialog-x.c (x_make_dialog_box_internal):
9554 * dialog-x.c (console_type_create_dialog_x):
9555 Mule-ize entire file.
9556 Redo to support question dialog syntax.
9560 * dialog.c (Fmake_dialog_box_internal):
9561 * dialog.c (syms_of_dialog):
9562 Kill old popup-dialog-box, replace with new primitive.
9563 Just call device method or signal error.
9565 * eldap.c (Fldap_open):
9566 * eldap.c (Fldap_search_basic):
9567 * eldap.c (Fldap_add):
9568 * eldap.c (Fldap_modify):
9573 * emacs.c (make_arg_list_1):
9574 * emacs.c (make_arg_list):
9575 Mule-ize call to dll_init().
9579 * emacs.c (make_argc_argv):
9580 * emacs.c (free_argc_argv):
9581 * emacs.c (init_cmdargs):
9583 * emacs.c (Fkill_emacs):
9584 * emacs.c (Fdump_emacs):
9585 Update comments about what can be used in syms_* etc.
9586 Call init_win32() when necessary.
9587 Fix up MS Win dialog box in kill-buffer to actually work right.
9598 * eval.c (condition_case_3):
9600 * eval.c (function_argcount):
9601 * eval.c (funcall_lambda):
9604 * eval.c (type_error): New.
9605 * eval.c (maybe_type_error): New.
9606 * eval.c (continuable_type_error): New.
9607 * eval.c (maybe_continuable_type_error): New.
9608 * eval.c (type_error_with_frob): New.
9609 * eval.c (maybe_type_error_with_frob): New.
9610 * eval.c (continuable_type_error_with_frob): New.
9611 * eval.c (maybe_continuable_type_error_with_frob): New.
9612 New functions for use with structured errors.
9615 * event-Xt.c (x_event_to_emacs_event):
9616 Buttons are now modifiers too.
9618 * event-Xt.c (emacs_Xt_current_event_timestamp):
9619 Implement new event method.
9620 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9623 * event-msw.c (ntpipe_shove_writer): [5].
9624 * event-msw.c (mswindows_enqueue_mouse_button_event):
9625 * event-msw.c (mswindows_drain_windows_queue):
9626 * event-msw.c (mswindows_wnd_proc): [7].
9627 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9628 * event-msw.c (mswindows_modifier_state):
9629 Throughout: support new button modifiers.
9631 * event-msw.c (emacs_mswindows_current_event_timestamp):
9632 Implement new event method.
9633 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9636 * event-stream.c (event_stream_current_event_timestamp): New.
9637 * event-stream.c (maybe_kbd_translate): New functionality.
9638 * event-stream.c (vars_of_event_stream):
9639 Document new kbd-translate-table functionality.
9641 * event-stream.c (Fcurrent_event_timestamp): New.
9642 New primitive for use in fabricated events.
9643 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9645 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9648 * events.c (Fmake_event):
9649 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9653 * events.c (format_event_object): fix gcc warnings.
9655 * events.c (Fevent_timestamp): Document new primitives.
9657 * events.c (TIMESTAMP_HALFSPACE): New.
9659 * events.c (Fevent_timestamp_lessp): New. New primitive for
9660 comparing timestamps correctly (half-space algorithm).
9662 * events.c (Fevent_modifier_bits): Doc fix.
9664 * events.c (Fevent_modifiers): Major doc addition.
9665 * events.c (event_x_y_pixel_internal): Typo fix.
9666 * events.c (syms_of_events): Declare new primitives.
9669 Update long comment for button modifiers, timestamps.
9671 * events.h (struct event_stream):
9672 New current_event_timestamp method.
9675 * extents.c (extent_in_region_p):
9676 * extents.c (decode_extent):
9677 * extents.c (Fset_extent_parent):
9678 * extents.c (decode_map_extents_flags):
9682 * extents.c (struct extent_at_arg):
9683 * extents.c (decode_extent_at_flag):
9684 * extents.c (extent_at_mapper):
9685 * extents.c (extent_at_bytind):
9686 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9687 * extents.c (Fextents_at): New primitive. [9].
9688 * extents.c (symbol_to_glyph_layout): [9].
9689 Support new primitive `extents-at'.
9692 * extents.c (get_text_property_bytind):
9693 extent_at_bytind has another arg.
9696 * extents.c (syms_of_extents): New primitive.
9698 * file-coding.c (Fmake_coding_system): [1].
9699 * file-coding.c (subsidiary_coding_system): fix gcc warning
9700 * file-coding.c (syms_of_file_coding): [2].
9702 * fileio.c (Fexpand_file_name):
9703 * fileio.c (Fsysnetunam):
9704 * fileio.c (Ffile_exists_p):
9705 * fileio.c (Ffile_executable_p):
9706 * fileio.c (Fverify_visited_file_modtime):
9709 * fileio.c (syms_of_fileio): [2].
9711 * filelock.c (lock_file_1):
9712 * filelock.c (current_lock_owner):
9713 * filelock.c (lock_if_free):
9714 * filelock.c (lock_file):
9715 * filelock.c (unlock_file):
9718 * fns.c (concat): Fix gcc warning.
9721 * fns.c (Fold_member):
9723 * fns.c (Fold_memq):
9724 * fns.c (memq_no_quit):
9726 * fns.c (Fold_assoc):
9728 * fns.c (Fold_assq):
9729 * fns.c (assq_no_quit):
9731 * fns.c (Fold_rassoc):
9733 * fns.c (Fold_rassq):
9734 * fns.c (rassq_no_quit):
9736 * fns.c (Fold_delete):
9738 * fns.c (Fold_delq):
9739 * fns.c (delq_no_quit):
9740 * fns.c (Fremassoc):
9742 * fns.c (remassq_no_quit):
9743 * fns.c (Fremrassoc):
9744 * fns.c (Fremrassq):
9745 * fns.c (remrassq_no_quit):
9750 * frame-msw.c (mswindows_init_frame_1):
9751 * frame-msw.c (mswindows_delete_frame):
9752 Register popups with dialog code so keyboard traversing works.
9754 * frame-tty.c (tty_raise_frame_no_select): [1].
9757 * frame-x.c (x_set_frame_text_value):
9758 * frame-x.c (x_set_frame_properties):
9759 * frame-x.c (x_create_widgets):
9763 * frame.c (Fmouse_pixel_position): Minor doc fixes.
9765 * frame.h (wrap_frame): New.
9766 Macro like wrap_device.
9769 * general.c (SYMBOL):
9770 * general.c (syms_of_general):
9771 Major reorg. This is now just a wrapper and symbols themselves
9772 are listed in general-slots.h.
9774 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9775 * glyphs-msw.c (mswindows_resource_instantiate): [5].
9777 * glyphs-msw.c (mswindows_native_layout_instantiate):
9778 Add DS_CONTROL so keyboard traversal will work.
9781 * glyphs-widget.c (syms_of_glyphs_widget):
9782 Move some symbols to general-slots.h.
9785 * glyphs-x.c (xbm_instantiate_1):
9786 * glyphs-x.c (x_xbm_instantiate):
9787 * glyphs-x.c (x_xface_instantiate):
9788 * glyphs-x.c (autodetect_instantiate):
9789 * glyphs-x.c (cursor_font_instantiate):
9790 * glyphs-x.c (x_update_widget):
9791 * glyphs-x.c (x_widget_instantiate):
9792 * glyphs.c (bitmap_to_lisp_data):
9793 * glyphs.c (pixmap_to_lisp_data):
9796 * glyphs.c (syms_of_glyphs):
9800 * gui-x.c (print_widget_value):
9801 * gui-x.c (menu_separator_style_and_to_external):
9802 * gui-x.c (add_accel_and_to_external):
9803 * gui-x.c (button_item_to_widget_value):
9804 * gui-x.c (gui_items_to_widget_values_1):
9805 * gui-x.c (gui_items_to_widget_values):
9806 * gui-x.c (syms_of_gui_x):
9807 * gui-x.c (vars_of_gui_x):
9808 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
9812 Muleize, prototype changes matching gui-x.c.
9815 * gui.c (separator_string_p):
9816 * gui.c (gui_item_add_keyval_pair):
9817 * gui.c (make_gui_item_from_keywords_internal):
9818 * gui.c (signal_too_long_error):
9819 * gui.c (parse_gui_item_tree_item):
9820 * gui.c (syms_of_gui):
9821 * gui.c (vars_of_gui):
9823 menu-no-selection-hook moved here (used by MSWin).
9824 Move some symbols to general-slots.h.
9828 * insdel.c (get_buffer_pos_char):
9829 * insdel.c (get_buffer_range_char):
9832 * keymap.c (keymap_lookup_directly):
9833 * keymap.c (keymap_store):
9834 * keymap.c (ensure_meta_prefix_char_keymapp):
9835 * keymap.c (describe_map):
9837 Support new button modifiers.
9839 * lisp-disunion.h (wrap_object):
9840 * lisp-disunion.h (XSETOBJ):
9841 Rename make_obj to wrap_object.
9844 * lisp-union.h (make_int):
9845 * lisp-union.h (make_char):
9846 Support wrap_object.
9849 * lisp.h (LIST_LOOP):
9850 * lisp.h (EXTERNAL_LIST_LOOP):
9851 * lisp.h (LIST_LOOP_2):
9852 * lisp.h (EXTERNAL_LIST_LOOP_1):
9853 * lisp.h (EXTERNAL_LIST_LOOP_2):
9854 * lisp.h (EXTERNAL_LIST_LOOP_3):
9855 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
9856 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9857 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
9858 * lisp.h (EXTERNAL_ALIST_LOOP_5):
9859 * lisp.h (EXTERNAL_ALIST_LOOP_6):
9860 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
9861 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
9862 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
9863 * lisp.h (struct Lisp_Symbol):
9864 * lisp.h (maybe_continuable_error_with_frob):
9865 Fix up section comments.
9866 Add new types for char to indicate usage.
9867 Delete symbols auto-generated from general-slots.h.
9868 Add prototypes for structured error functions.
9869 Add long comments describing looping macros and change interface
9870 so that lvalues are automatically declared.
9871 Add NO_DECLARE macro in case callers want to declare lvalues
9874 * lread.c (read_syntax_error):
9875 * lread.c (continuable_read_syntax_error):
9876 * lread.c (read_structure):
9877 * lread.c (sequence_reader):
9878 * lread.c (read_list_conser):
9879 * lread.c (read_compiled_function):
9880 Rename syntax_error and continuable_syntax_error to avoid clash
9881 with same-named structured error functions.
9883 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9884 * menubar-msw.c (populate_menu_add_item):
9885 * menubar-msw.c (populate_or_checksum_helper):
9890 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9891 Mule-ize whole file.
9893 * menubar.c (Fnormalize_menu_item_name): Add optimization.
9895 * mule-charset.c (Fmake_charset):
9896 * mule-wnnfns.c (Fwnn_set_param):
9899 * ntproc.c (create_child):
9900 * ntproc.c (Fwin32_set_current_locale):
9901 Add comments portending doom.
9904 * objects-msw.c (old_font_enum_callback_2):
9905 * objects-msw.c (font_enum_callback_1):
9906 * objects-msw.c (mswindows_enumerate_fonts):
9910 * objects-x.c (allocate_nearest_color):
9911 * objects-x.c (x_parse_nearest_color):
9912 * objects-x.c (x_initialize_color_instance):
9913 * objects-x.c (x_print_color_instance):
9914 * objects-x.c (x_finalize_color_instance):
9915 * objects-x.c (x_valid_color_name_p):
9916 * objects-x.c (x_initialize_font_instance):
9917 * objects-x.c (x_print_font_instance):
9918 * objects-x.c (valid_x_font_name_p):
9919 * objects-x.c (truename_via_FONT_prop):
9920 * objects-x.c (truename_via_random_props):
9921 * objects-x.c (truename_via_XListFonts):
9922 * objects-x.c (x_font_truename):
9923 * objects-x.c (x_font_instance_truename):
9924 * objects-x.c (x_font_instance_properties):
9925 * objects-x.c (x_list_fonts):
9926 * objects-x.c (x_find_charset_font):
9927 Mule-ize entire file.
9934 * print.c (std_handle_out_external):
9935 * print.c (debug_print_no_newline):
9936 * print.c (syms_of_print):
9937 Output to all debugger kinds in debug-print.
9938 Fix console-output code under MSWin to actually work.
9940 * process-nt.c (send_signal):
9941 * process-nt.c (nt_create_process):
9942 Use newer Unicode macros.
9944 * process-unix.c (unix_create_process):
9945 * process-unix.c (unix_canonicalize_host_name):
9946 * process-unix.c (unix_open_network_stream):
9952 * search.c (syms_of_search):
9955 * select-msw.c (mswindows_destroy_selection):
9958 * select-x.c (symbol_to_x_atom):
9961 * select.c (syms_of_select):
9964 * sound.c (Fplay_sound_file):
9968 * specifier.c (decode_specifier_type):
9969 * specifier.c (Fvalid_specifier_locale_type_p):
9970 * specifier.c (check_valid_locale_or_locale_type):
9971 * specifier.c (decode_locale):
9972 * specifier.c (decode_locale_type):
9973 * specifier.c (decode_locale_list):
9974 * specifier.c (check_valid_domain):
9975 * specifier.c (decode_specifier_tag_set):
9976 * specifier.c (Fcanonicalize_tag_set):
9977 * specifier.c (Fdefine_specifier_tag):
9978 * specifier.c (Fspecifier_tag_predicate):
9979 * specifier.c (check_valid_inst_list):
9980 * specifier.c (check_valid_spec_list):
9981 * specifier.c (decode_how_to_add_specification):
9982 * specifier.c (check_modifiable_specifier):
9983 * specifier.c (specifier_add_spec):
9984 * specifier.c (boolean_validate):
9985 * specifier.c (display_table_validate):
9988 * specifier.c (syms_of_specifier):
9989 Move some symbols to general-slots.h.
9993 * symbols.c (Fmapatoms):
9994 * symbols.c (Fapropos_internal):
9997 * symbols.c (set_default_buffer_slot_variable):
9998 * symbols.c (set_default_console_slot_variable):
10001 * symbols.c (defsymbol_massage_name_1):
10002 * symbols.c (defkeyword_massage_name):
10003 * symbols.c (deferror_1):
10004 * symbols.c (deferror):
10005 * symbols.c (deferror_massage_name_and_message):
10007 * symeval.h (DEFSYMBOL):
10008 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10010 * symbols.c (syms_of_symbols):
10014 * symsinit.h (init_win32): New.
10015 Also new is syms_of_dialog_mswindows.
10018 Add new Unicode macros, missing Cygwin wide-char functions,
10019 convenience conversion macros for Qmswindows_tstr, macros for
10020 encapsulating required MSWin <-> Cygwin filename conversions,
10021 prototype for dynamically-extracted (not in NT 3.51) functions.
10026 * tooltalk.c (Fadd_tooltalk_message_arg):
10027 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10028 * tooltalk.c (Fadd_tooltalk_pattern_arg):
10031 * tooltalk.c (syms_of_tooltalk):
10035 * unexnt.c (unexec):
10036 Fix up headers, declaration of unexec() to be more standard.
10038 2000-07-20 Martin Buchholz <martin@xemacs.org>
10040 * offix.h: Revert change to guard macros - they're used in offix.c!
10042 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10044 * lisp.h: Defsubred Fdelete.
10046 * console-msw.h: (msprinter_default_printer): Added.
10048 * console-msw.c (msprinter_canonicalize_console_connection):
10049 (msprinter_canonicalize_device_connection): Added.
10051 * device-msw.c (msprinter_default_printer):
10052 (Fmswingows_get_default_printer):
10053 (signal_enum_priner_error):
10054 (Fmswingows_printer_list): Added.
10056 2000-07-19 Martin Buchholz <martin@xemacs.org>
10058 * XEmacs 21.2.35 is released.
10060 2000-07-19 Martin Buchholz <martin@xemacs.org>
10062 * select-x.c (x_handle_selection_request):
10063 Text selected in xemacs and pasted into xterm failed to appear.
10064 Spelling fixes and cosmetic changes.
10066 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10068 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10069 XEmacs frame (fix for doubling chars in dialog boxes).
10071 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10073 * select.c (select_convert_in, select_convert_out):
10074 Don't call intern() every time.
10076 * select.c (Qselect_convert_in, Qselect_convert_out): New.
10077 * select.c (vars_of_select): Initialise them.
10079 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10081 * select.c (selection-coercible-types): New.
10083 * select.c (own-selection-internal):
10084 * select.c (get-selection-internal):
10085 MULE bug fix - these should default to COMPOUND_TEXT and not
10086 STRING for MULE. I think.
10088 * select.c (select_convert_out): Use selection-coercible-types
10089 to find types that we can attempt to perform coercions on.
10091 2000-07-18 Martin Buchholz <martin@xemacs.org>
10095 Add coding: cookie to identify encoding.
10097 * mule-canna.c (CANNA_mode_keys): make static.
10098 Use proper prototypes, even for functions of no arguments.
10099 Remove external prototype for Fding().
10101 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10103 * select.c (syms_of_select): Add missing DEFSUBR.
10105 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10107 * select.c (get_selection_internal, own_selection_internal):
10108 Make the type default to STRING, rather than placing a nil type
10109 into Vselection_alist.
10111 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10113 * gpmevent.c (tty_selection_exists_p):
10114 * gpmevent.c (tty_own_selection):
10115 Updated parameter lists.
10117 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10119 * select.h (selection-alist): Removed declaration.
10121 * select.h (get_local_selection):
10122 * select.c (get_local_selection):
10125 * select.h (convert_selection): Removed declaration.
10126 * select.c (convert_selection): Removed.
10127 This function belongs in Lisp.
10129 * select.h (select_convert_in): Declare.
10130 * select.h (select_convert_out): Declare.
10131 * select.c (select_convert_in): New.
10132 * select.c (select_convert_out): New.
10133 New conversion functions for other files to call.
10135 * select.h (select_notify_buffer_kill): Declare.
10136 * select.c (select_notify_buffer_kill): New.
10137 New functions that get called from kill-buffer.
10139 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10140 X-specific lisp code.
10142 * select.h: Declare some of the lisp-visible functions for
10145 * select.c (clean_local_selection_data): Removed. This was
10146 a disgusting function, and previously should have been in
10147 select-x.c in any case. The functionality is now provided
10148 in select-convert-from-integer (select.el).
10150 * select.c (available-selection-types): Fixed stupidity where
10151 INTEGER and ATOM got added twice. Also add STRING when we see an
10154 * select.c (get-selection-internal): Removed symbol stripping. No
10155 longer causes conversion when data comes from the internal cache.
10157 * select.c (syms_of_select): Added new functions.
10159 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10160 error checking - previously this called abort!
10162 * select-x.c (x_own_selection): Changed comment.
10164 * select-x.c (x_handle_selection_request): Use select_convert_out.
10165 Don't mess with selection-alist; it's an internal variable of select.c.
10167 * select-x.c (x_get_foreign_selection): Use select_convert_in.
10169 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10170 rather than messing with selection-alist.
10172 * select-msw.c (mswindows_get_foreign_selection):
10173 Use TO_INTERNAL_FORMAT rather than hacking.
10175 2000-07-14 Martin Buchholz <martin@xemacs.org>
10177 * process-unix.c (unix_open_multicast_group):
10178 (unix_open_multicast_group): Remove useless casts.
10180 2000-07-13 Martin Buchholz <martin@xemacs.org>
10182 * sound.c (Fplay_sound): Fix `unused variable' warning.
10184 * emacs.c (main): Use correct type for _environ on SCO5.
10186 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10188 * console.h (own_selection_method):
10189 * console.h (selection_exists_p_method):
10190 * console.h (available_selection_types_method): New.
10191 * console.h (register_selection_data_type_method): New.
10192 * console.h (selection_data_type_name): New.
10194 * console-msw.h (mswindows_destroy_selection): Declare it. New
10195 function & alist to track GlobalAlloc()'d handles that need
10196 releasing when the clipboard data gets replaced or emptied.
10198 * event-msw.c (mswindows_wnd_proc): Call it.
10200 * lisp.h, general.c (Qappend): New symbol representing a
10203 * select.c (own-selection-internal):
10204 * select.c (selection-exists-p):
10205 * select.c (available-selection-types): New.
10206 * select.c (register-selection-data-type): New.
10207 * select.c (selection-data-type-name): New. New functions to deal
10208 with device-specific selection data formats.
10209 * select.c (selection-converter-out-alist): Renamed.
10210 * select.c (selection-converter-in-alist): New.
10211 * select.c (selection-appender-alist): New. Added new alists.
10212 * select.c (syms_of_select, vars_of_select): Added new symbols &
10214 * select.c (get_local_selection): Split.
10215 * select.c: Removed spurious type checking - selections may now be
10216 of any type, not just strings.
10217 * select.c (own-selection-internal):
10219 * select.h, select.c (convert_selection): New. Created
10220 convert_selection() function based on get_local_selection().
10221 * select.h, select.c (QCF_*): New symbols representing mswindows
10223 * select.h, select.c (Qreplace_all, Qreplace_existing): New
10224 symbols representing `how-to-add' modes.
10226 * select-msw.c (x_sym_p): New.
10227 * select-msw.c (symbol_to_ms_cf): New.
10228 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10229 symbols & clipboard formats. Can also handle string names.
10230 * select-msw.c (mswindows_own_selection):
10231 * select-msw.c (mswindows_selection_exists_p):
10232 Added `data-type' parameter. Use it.
10233 * select-msw.c (mswindows_available_selection_types): New.
10234 * select-msw.c (mswindows_register_selection_data_type): New.
10235 * select-msw.c (mswindows_selection_data_type_name): New.
10236 * select-msw.c (mswindows_own_selection):
10237 * select-msw.c (mswindows_get_foreign_selection):
10238 * select-msw.c (mswindows_selection_exists_p): Rewrote.
10239 * select-msw.c (console_create_select_mswindows): Added new methods.
10240 * select-msw.c (mswindows_destroy_selection): New.
10241 * select-msw.c (Vhandle_alist): New list.
10242 * select-msw.c (mswindows_own_selection):
10244 * select-x.c (x_own_selection):
10245 * select-x.c (x_selection_exists_p):
10246 * select-x.c: Added some comments about maybe using new
10248 * select-x.c (x_own_selection):
10250 * specifier.c: Remove definition of Qappend (now in general.c)
10251 * specifier.c (syms_of_specifier): Remove Qappend.
10253 2000-07-12 Martin Buchholz <martin@xemacs.org>
10255 * config.h.in: Add socklen_t.
10257 * s/decosf4-0.h: No special compiler flags needed or desired.
10258 In particular, undefine _BSD for DEC OSF 4.0.
10260 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10262 * redisplay-msw.c (msprinter_frame_output_end): Added.
10263 (console_type_create_redisplay_mswindows): Referred the above.
10265 * frame.c (setup_frame_without_minibuffer): Do not create a
10266 default minibuffer frame on a printer device.
10268 * frame-msw.c (apply_dc_geometry): Added.
10269 (msprinter_start_page):
10270 (msprinter_init_frame_3):
10271 (msprinter_eject_page): Use it.
10273 * console-msw.h (struct msprinter_frame): Added pix_left and top,
10274 and removed residual duplex and orientation properties.
10276 2000-07-11 Martin Buchholz <martin@xemacs.org>
10278 * eval.c (function_argcount): Work around a DEC CC compiler bug.
10280 * unexalpha.c: Remove system prototypes from C sources!
10282 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
10284 * eval.c: Remove references to M-x edit-options in DEFUNs for
10285 `defvar' and `defconst'.
10287 2000-07-09 Martin Buchholz <martin@xemacs.org>
10289 * config.h.in: Remove SMART_INCLUDE hackery.
10291 PostgreSQL hacking:
10292 * config.h.in: Don't use SMART_INCLUDE.
10294 * postgresql.h: Include libpq-fe.h here. Fix typo.
10295 * inline.c: Simply #include "postgresql.h"
10297 - Don't use SMART_INCLUDE
10298 - Use simply "const".
10299 - Use standard doc string conventions.
10300 - Use correct type for result of PQstatus.
10302 2000-07-09 Martin Buchholz <martin@xemacs.org>
10304 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10306 C++ compilation changes.
10307 * config.h.in (EXTERN_C): Define.
10308 * config.h.in (not): This is also a C++ keyword.
10309 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10310 * cm.c: Use EXTERN_C.
10311 * redisplay-tty.c: Use EXTERN_C.
10312 * sysdep.c: Use EXTERN_C. Remove Gould support.
10314 2000-07-09 Martin Buchholz <martin@xemacs.org>
10316 * general.c: Remove duplicate definition for Qfunction.
10318 2000-07-08 Ben Wing <ben@xemacs.org>
10320 * device-msw.c (msprinter_init_device):
10321 * device-msw.c (sync_printer_with_devmode):
10322 * device-msw.c (handle_devmode_changes):
10323 * device-msw.c (print_dialog_worker):
10324 * device-msw.c (Fmsprinter_apply_settings):
10325 * device-msw.c (hash_devmode):
10326 * device-msw.c (Fmsprinter_settings_despecialize):
10327 use Qmswindows_tstr, not Qctext.
10329 * vm-limit.c (check_memory_limits):
10330 avoid infinite loop printing warning messages.
10332 2000-07-05 Craig Lanning <lanning@scra.org>
10334 * Makefile.in.in: Add support for including the Windows resources
10335 when building with the cygwin and mingw targets.
10337 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10338 not set or not correct.
10339 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10340 (init_initial_directory): Don't try to use $PWD on the
10341 WIN32_NATIVE target.
10344 [[Add -mwindows to eliminate console window.]] not required --ben
10345 (HAVE_NATIVE_SOUND): removed; now handled by configure.
10346 (MAIL_USE_POP): removed; now handled by configure.
10348 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10349 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10350 (HAVE_NATIVE_SOUND): removed; now handled by configure.
10351 (MAIL_USE_POP): removed; now handled by configure.
10352 (ENCAPSULATE_STAT): from Dan Holmsand, added.
10353 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10354 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10356 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10357 up from <winsock.h> via systime.h.
10358 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10359 (getpagesize): from Dan Holmsand, added.
10360 Added #endif which was left dangling by Ben's mega patch; added
10361 comment to help prevent this in the future.
10363 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10365 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10367 * console-msw.h (struct mswindows_device): Removed unnecessary
10368 cached device geometry values.
10369 Added update_tick and an accessor macro.
10370 (Lisp_Devmode): Added lrecord declaration.
10371 (struct msprinter_device): Contain devmode as a Lisp object.
10372 Added mswindows_get_selected_frame_hwnd();
10374 * console.h (struct console_methods): Indentation nitpicking.
10376 * device-msw.c (mswindows_init_device): Do not initialize geometry
10377 cache. Initialize update tick.
10378 (mswindows_device_system_metrics): Ask the device for its geometry.
10379 (global_free_2_maybe):
10380 (devmode_to_hglobal):
10381 (handle_printer_changes):
10382 (ensure_not_printing):
10383 (print_dialog_worker):
10384 (Fmsprinter_print_setup_dialog):
10385 (Fmsprinter_print_dialog):
10386 (plist_get_margin):
10387 (plist_set_margin):
10388 (Fmsprinter_page_setup_dialog): Added functions.
10389 (sync_printer_with_devmode):
10390 (handle_devmode_changes):
10391 (Fmsprinter_get_settings):
10392 (Fmsprinter_select_settings):
10393 (Fmsprinter_apply_settings):
10394 (allocate_devmode):
10395 (Fmsprinter_settings_copy):
10396 (Fmsprinter_settings_despecialize):
10398 (finalize_devmode):
10400 (hash_devmode): Added functions
10401 (syms_of_device_mswindows): Init devmode lrecord class.
10403 * device.h: Added an exfun for find-device.
10405 * event-msw.c (mswindows_wnd_proc): Do not update the cached
10406 geometry; although, recreate the device compatible DC.
10408 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10409 (msprinter_init_frame_3):
10410 (msprinter_frame_property):
10411 (msprinter_internal_frame_property_p):
10412 (msprinter_frame_properties):
10413 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10414 print job properties (will move to device settings).
10416 * lisp.h: Added symbols.
10418 * general.c (syms_of_general): Declared them.
10420 * hash.c (string_hash): Added.
10422 * lrecord.h (lrecord_type): Added devmode lrecord type.
10424 2000-07-02 Mike Sperber <mike@xemacs.org>
10426 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10429 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
10431 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10434 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
10436 * data.c (Fstring_to_number): Don't recognize floating point if
10439 2000-06-22 Martin Buchholz <martin@xemacs.org>
10441 * glyphs-widget.c (tab_control_query_geometry):
10442 (widget_query_geometry):
10443 (button_query_geometry):
10444 * glyphs.c (text_query_geometry):
10445 Enforce type correctness.
10447 2000-06-18 Martin Buchholz <martin@xemacs.org>
10449 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10450 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10452 2000-06-17 Martin Buchholz <martin@xemacs.org>
10454 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10455 conflicts with gcc's fixincluded version of FOO.h.
10457 * glyphs.h (image_instance_geometry): Remove trailing `,'
10459 2000-06-08 Mike Alexander <mta@arbortext.com>
10461 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10462 (shove_thread): Don't write the same output twice
10463 (make_ntpipe_output_stream): Increase priority of shove thread
10464 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10466 (ntpipe_shove_closer): Don't delete the pipe until we're done with
10469 2000-06-12 Ben Wing <ben@xemacs.org>
10471 * s\mingw32.h (sigset):
10472 * s\windowsnt.h (sigset):
10473 rename msw_ to mswindows_ for consistency with general convention.
10475 2000-06-12 Ben Wing <ben@xemacs.org>
10478 * console-msw.c (mswindows_get_console_hwnd):
10479 * console-msw.c (mswindows_ensure_console_allocated):
10480 * console-msw.c (mswindows_hide_console):
10481 * console-msw.c (mswindows_show_console):
10482 * console-msw.c (mswindows_ensure_console_buffered):
10483 * console-msw.c (mswindows_output_console_string):
10484 * console-msw.c (mswindows_windows9x_p):
10486 * device-msw.c (mswindows_get_workspace_coords):
10487 * device-msw.c (mswindows_device_system_metrics):
10488 * dialog-msw.c (mswindows_popup_dialog_box):
10489 * event-msw.c (mswindows_wnd_proc):
10490 * frame-msw.c (mswindows_size_frame_internal):
10491 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10492 * menubar-msw.c (displayable_menu_item):
10493 * menubar-msw.c (mswindows_char_is_accelerator):
10495 * nt.c (mswindows_sigset):
10496 * nt.c (mswindows_sigrelse):
10497 * nt.c (mswindows_sigpause):
10498 * nt.c (mswindows_raise):
10499 * nt.c (timer_proc):
10501 * ntproc.c (find_child_console):
10502 * ntproc.c (sys_kill):
10504 * print.c (std_handle_out_external):
10505 * process-nt.c (find_child_console):
10506 * process-nt.c (send_signal_the_95_way):
10507 * process-nt.c (ensure_console_window_exists):
10508 * process-nt.c (nt_create_process):
10510 rename msw_ to mswindows_ for consistency with general convention.
10514 include nt.h, not syswindows.h.
10516 * nt.c (mswindows_fstat):
10517 * nt.c (mswindows_stat):
10518 prefix mswindows_ instead of attempting to directly override the
10519 library functions. fix declarations.
10522 include syswindows.h. move some sysdep.h stuff here.
10525 include syswindows.h, not <windows.h>.
10533 * sysdep.c (sys_fstat):
10534 * sysdep.c (sys_stat):
10535 call mswindows versions when appropriate.
10538 move mswin decls to nt.h.
10541 add long comment describing appropriate use of the various windows
10544 2000-06-11 Ben Wing <ben@xemacs.org>
10546 * device-x.c: Correct doc string for sixth arg of x-get-resource.
10548 2000-06-10 Ben Wing <ben@xemacs.org>
10550 * Makefile.in.in (release):
10551 Correction to make sure xemacs.exe always dumped when correct.
10555 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10557 * buffer.c (set_buffer_internal):
10558 [[[[2]]]]: Remove HAVE_FEP code.
10560 * buffer.c (init_initial_directory):
10564 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10568 * callproc.c (call_process_cleanup):
10569 * callproc.c (Fold_call_process_internal):
10570 * callproc.c (child_setup):
10571 * callproc.c (getenv_internal):
10572 * callproc.c (init_callproc):
10573 * callproc.c (vars_of_callproc):
10574 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10575 __CYGWIN32__ -> CYGWIN.
10576 DOS_NT -> WIN32_NATIVE.
10577 Remove MSDOS support/references, converting to WIN32_NATIVE
10579 __MINGW32__ -> MINGW.
10580 Fix windows.h includes.
10581 Remove bogus HAVE_NTGUI.
10587 mswindows_message_outputted added for use in allowing startup
10588 errors on the console to be seen.
10590 * console-msw.c (msw_ensure_console_allocated):
10591 * console-msw.c (msw_output_console_string):
10592 * console-msw.c (DHEADER):
10593 * console-msw.c (DOPAQUE_DATA):
10594 * console-msw.c (DEVENT):
10595 * console-msw.c (DCONS):
10596 * console-msw.c (DCONSCDR):
10597 * console-msw.c (DSTRING):
10598 * console-msw.c (DVECTOR):
10599 * console-msw.c (DSYMBOL):
10600 * console-msw.c (DSYMNAME):
10603 * console-stream.c (stream_init_console):
10604 Fix text/binary problems.
10607 * device-msw.c (mswindows_finish_init_device):
10608 * device-msw.c (mswindows_delete_device):
10611 * device.c (handle_asynch_device_change):
10615 * dgif_lib.c (DGifOpenFileName):
10616 * dgif_lib.c (DGifOpenFileHandle):
10617 * dgif_lib.c (DGifGetLine):
10618 * dgif_lib.c (DGifGetPixel):
10619 Added config.h/lisp.h, fix up includes.
10626 * dired.c (file_name_completion):
10627 * dired.c (Ffile_attributes):
10628 * dired.c (syms_of_dired):
10632 * dumper.c (pdump_file_unmap):
10633 * dumper.c (pdump_load):
10637 * editfns.c (Ftemp_directory):
10638 * editfns.c (user_login_name):
10639 * editfns.c (Fuser_real_login_name):
10640 * editfns.c (get_home_directory):
10643 * elhash.c (finish_marking_weak_hash_tables):
10644 [[[[5]]]]: Fix GCC warnings.
10647 * emacs.c (mswindows_handle_hardware_exceptions):
10648 * emacs.c (make_arg_list_1):
10649 * emacs.c (main_1):
10650 * emacs.c (Fkill_emacs):
10651 * emacs.c (Fdump_emacs):
10653 Fix problems with nested crashes, add long comment.
10655 * event-Xt.c (init_event_Xt_late):
10659 * event-msw.c (mswindows_dde_callback):
10660 * event-msw.c (mswindows_handle_sticky_modifiers):
10661 * event-msw.c (mswindows_wnd_proc):
10665 * events.c (character_to_event):
10669 * fileio.c (Ffile_name_directory):
10670 * fileio.c (Ffile_name_nondirectory):
10671 * fileio.c (directory_file_name):
10672 * fileio.c (Fexpand_file_name):
10673 * fileio.c (Fsubstitute_in_file_name):
10674 * fileio.c (Ffile_name_absolute_p):
10675 * fileio.c (check_executable):
10676 * fileio.c (Ffile_readable_p):
10677 * fileio.c (Ffile_accessible_directory_p):
10678 * fileio.c (Ffile_modes):
10679 * fileio.c (Funix_sync):
10680 * fileio.c (vars_of_fileio):
10683 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10685 Expand getdefdir defn.
10686 Fix bogus rename() comment.
10688 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
10689 to use standard XEmacs include files, e.g. sysfile.h, rather
10690 than system-specific includes.
10696 * frame.c (vars_of_frame):
10700 * getloadavg.c (getloadavg):
10702 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
10703 (We don't use it elsewhere in the code; just add a comment.)
10710 * glyphs-msw.c (mswindows_resource_instantiate):
10713 * glyphs-x.c (x_native_layout_instantiate):
10716 * gui-msw.c (Fmswindows_shell_execute):
10725 * lread.c (locate_file_in_directory_mapper):
10732 * mem-limits.h (get_lim_data):
10744 * nt.c (rva_to_section):
10745 * nt.c (mswindows_executable_type):
10747 Fix closedir() defn.
10750 [[[[8]]]]: *_OK defs moved to sysfile.h.
10759 * print.c (std_handle_out_external):
10763 * process-nt.c (nt_create_process):
10765 try to fix process quoting somewhat.
10767 * process-unix.c (unix_create_process):
10771 * process.c (vars_of_process):
10778 * realpath.c (xrealpath):
10781 * redisplay-tty.c (init_tty_for_redisplay):
10791 * sheap.c (more_static_core):
10792 * sheap.c (report_sheap_usage):
10796 * signal.c (alarm_signal):
10803 * strftime.c (zone_name):
10806 * symsinit.h (init_sunpro):
10810 commctrl.h not in Cygwin b20.1.
10813 * sysdep.c (endif):
10814 * sysdep.c (sys_subshell):
10815 * sysdep.c (init_baud_rate):
10816 * sysdep.c (emacs_get_tty):
10817 * sysdep.c (emacs_set_tty):
10818 * sysdep.c (tty_init_sys_modes_on_device):
10819 * sysdep.c (init_system_name):
10820 * sysdep.c (sys_open):
10821 * sysdep.c (interruptible_open):
10822 * sysdep.c (sys_fopen):
10823 * sysdep.c (sys_mkdir):
10824 * sysdep.c (sys_rename):
10825 * sysdep.c (get_process_times_1):
10832 * sysdir.h (DIRENTRY_NONEMPTY):
10835 * sysdll.c (dll_init):
10841 added text/binary defs.
10847 * sysproc.h (EDESTADDRREQ):
10848 * sysproc.h (poll_fds_for_input):
10865 Always define WIN32_LEAN_AND_MEAN.
10867 * unexcw.c (unexec):
10871 * unexec.c (copy_text_and_data):
10872 * unexec.c (adjust_lnnoptrs):
10876 * unexnt.c (_start):
10879 2000-06-07 Ben Wing <ben@xemacs.org>
10881 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
10882 was used only as a model. We've long since extracted any useful
10883 logic or code out of this. (I just did an exhaustive search.)
10885 * s\msdos.h: Removed.
10887 * s\windows95.h: Removed.
10889 2000-06-10 Ben Wing <ben@xemacs.org>
10893 Don't use extern with fun defs.
10897 Remove nt\inc include.
10898 Remove getdisk, getdefdir. (The former is unused, the latter
10899 expanded in fileio.h.)
10902 * s\windowsnt.h (WIN32_NATIVE):
10903 * s\windowsnt.h (HAVE_STRCASECMP):
10905 Add long comment about preprocessor changes.
10906 Remove getdisk, getdefdir. (The former is unused, the latter
10907 expanded in fileio.h.)
10909 2000-06-10 Ben Wing <ben@xemacs.org>
10918 Remove bogus/unused NO_SOCK_SIGIO.
10920 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
10922 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
10925 2000-06-04 Mike Sperber <mike@xemacs.org>
10927 * casetab.c (set_case_table): For `set-standard-case-table',
10928 actually deposit the new case tables where the rest of XEmacs can
10931 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
10933 * data.c (Faset): Don't cast XCHAR() to unsigned char.
10935 2000-06-05 Ben Wing <ben@xemacs.org>
10937 * callproc.c (child_setup): Don't do close_load_descs() under
10938 MS Windows. Put in a comment explaining why.
10940 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
10942 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
10943 Toolkit shell" which breaks `kill-compilation' on Windows NT
10944 native, retaining STDERR handling improvements.
10946 2000-06-01 Andreas Jaeger <aj@suse.de>
10948 * s/s390.h: Support for S390, based on a patch by Martin
10949 Schwidefsky <schwidefsky@de.ibm.com>.
10951 2000-05-30 Andy Piper <andy@xemacs.org>
10953 * window.c (allocate_window):
10954 (make_dummy_parent):
10955 (Fset_window_configuration): use new hashtable type.
10957 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
10958 (struct image_instantiator_methods):
10959 (struct Lisp_Image_Instance): make instance geometry signed.
10961 * glyphs.c (instantiate_image_instantiator):
10962 (image_instance_query_geometry):
10963 (image_instance_layout):
10964 (image_instance_layout):
10965 (query_string_geometry):
10966 (text_query_geometry):
10967 (image_instantiate):
10968 (image_instantiate):
10969 (cache_subwindow_instance_in_frame_maybe):
10970 (subwindow_query_geometry): make instance geometry signed.
10972 * glyphs-widget.c (widget_query_geometry):
10974 (button_query_geometry):
10975 (tree_view_query_geometry):
10976 (tab_control_query_geometry):
10977 (layout_query_geometry):
10979 (native_layout_layout): make instance geometry signed.
10981 2000-05-29 Olivier Galibert <galibert@pobox.com>
10983 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
10986 * general.c (syms_of_general): Add Qfull_assoc symbol.
10988 * data.c (finish_marking_weak_lists): Mark full-assoc lists
10990 (decode_weak_list_type): Decode full-assoc type.
10991 (encode_weak_list_type): Encode full-assoc type.
10992 (Fmake_weak_list): Update doc string.
10994 2000-05-30 Andy Piper <andy@xemacs.org>
10996 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
10998 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
10999 (decode_hash_table_weakness): ditto.
11000 (Fhash_table_weakness): ditto.
11001 (Fhash_table_type): ditto.
11002 (finish_marking_weak_hash_tables): ditto.
11003 (hash_table_weakness_validate): ditto.
11004 (syms_of_elhash): ditto.
11006 2000-05-28 Martin Buchholz <martin@xemacs.org>
11008 * XEmacs 21.2.34 is released.
11010 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
11012 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11014 (updating_line_start_cache): Gone.
11015 (regenerate_window): Replace resetting of VERTICAL_CLIP by
11016 generic code to force a minimum of 1 line laid out in the
11019 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
11021 * glyphs.c (instantiate_image_instantiator): Check for initialized
11022 height & width no longer special cases IMAGE_NOTHING.
11023 (nothing_instantiate): Set height and width of instance.
11025 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
11027 * unexelf.c (unexec): Search for ".data" section.
11028 Initialize new_data2_offset from old_data_index.
11029 Remove redundant check for ElfW.
11031 2000-05-23 Andy Piper <andy@xemacs.org>
11033 * glyphs.c (get_image_instantiator_governing_domain): allow more
11034 specific domains as the governing domain rather than expecting an
11035 exact match. This fixes problems with layouts.
11037 2000-05-22 Andy Piper <andy@xemacs.org>
11039 * redisplay-output.c (compare_runes): check for non-images
11041 * glyphs.c (set_glyph_dirty_p): ditto.
11042 (update_glyph_cachel_data): ditto.
11044 * glyphs-widget.c (layout_post_instantiate): ditto.
11045 (layout_post_instantiate): ditto.
11047 * event-msw.c (mswindows_wnd_proc): warning removal.
11049 2000-05-12 Craig Lanning <CraigL@DyCon.com>
11051 * s\mingw32.h: Added #undef for CLASH_DETECTION.
11053 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11055 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11057 * nt.c (rva_to_section): mingw32 needs rva_to_section.
11058 (mswindows_executable_type): mingw32 now has enough headers for
11061 2000-05-20 Andy Piper <andy@xemacs.org>
11063 * console-msw.c (mswindows_output_last_error): ; -> ,
11065 2000-05-12 Andy Piper <andy@xemacs.org>
11067 * console-msw.c (FROB): compare ints with ints.
11069 2000-05-11 Andy Piper <andy@xemacs.org>
11071 * glyphs-x.c (x_finalize_image_instance): make minimal build
11074 2000-05-20 Ben Wing <ben@xemacs.org>
11077 * event-Xt.c (vars_of_event_Xt):
11078 move modifier-keys-are-sticky to event-stream.c.
11081 * event-msw.c (mswindows_enqueue_mouse_button_event):
11082 * event-msw.c (key_needs_default_processing_p):
11083 * event-msw.c (XEMSW_LCONTROL):
11084 * event-msw.c (mswindows_handle_sticky_modifiers):
11085 * event-msw.c (FROB):
11086 * event-msw.c (clear_sticky_modifiers):
11087 * event-msw.c (output_modifier_keyboard_state):
11088 * event-msw.c (output_alt_keyboard_state):
11089 * event-msw.c (mswindows_wnd_proc):
11090 * event-msw.c (mswindows_modifier_state):
11091 * event-msw.c (emacs_mswindows_handle_magic_event):
11092 implement sticky modifiers.
11095 * event-stream.c (vars_of_event_stream):
11096 move modifier-keys-are-sticky here.
11099 add CHECK_FUNCTION.
11102 implement map-range-table.
11105 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
11107 * redisplay-tty.c (reset_tty_modes):
11108 (tty_redisplay_shutdown): Adjust argument type to
11109 tty_frame_output_end.
11111 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
11113 * eval.c (Fbacktrace): Don't output a line with only right
11116 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
11118 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11119 (Fpq_reset_poll): Ditto.
11121 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
11123 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11125 2000-05-16 Ben Wing <ben@xemacs.org>
11128 * buffer.c (dfc_convert_to/from_internal_format):
11129 * buffer.c (reinit_vars_of_buffer):
11130 Fix conversion functions to allow reentrancy.
11133 * console-msw.c (mswindows_output_last_error):
11134 New fun, generally useful -- output a human-readable
11135 version of GetLastError() on the console.
11138 * console-msw.h (struct mswindows_frame):
11139 Changes for DeferWindowPos. Declare mswindows_output_last_error().
11141 * console-stream.c (stream_output_begin):
11142 * console-stream.c (stream_output_end):
11143 * console-stream.c (stream_output_vertical_divider):
11144 * console-stream.c (stream_clear_region):
11145 * console-stream.c (stream_flash):
11146 * console-stream.c (console_type_create_stream):
11147 Delete blank stream methods, not needed.
11149 * console.h (struct console_methods):
11150 Split begin/end methods into window and frame.
11153 * event-msw.c (mswindows_handle_paint):
11154 * event-msw.c (output_alt_keyboard_state):
11155 * event-msw.c (mswindows_wnd_proc):
11156 * event-msw.c (vars_of_event_mswindows):
11157 Comment about problems with ignored-expose.
11158 Define mswindows-debug-events; not really implemented.
11160 * frame-msw.c (mswindows_init_frame_1):
11164 * glyphs-msw.c (begin_defer_window_pos):
11165 * glyphs-msw.c (mswindows_unmap_subwindow):
11166 * glyphs-msw.c (mswindows_map_subwindow):
11167 * glyphs-msw.c (mswindows_resize_subwindow):
11168 Use DeferWindowPos to reduce flashing when mapping/unmapping.
11170 * glyphs.c (make_image_instance_1):
11173 * gutter.c (Fredisplay_gutter_area):
11174 Use new begin/end methods.
11176 * lisp.h (Dynarr_new2):
11180 * redisplay-msw.c (mswindows_frame_output_begin):
11181 * redisplay-msw.c (mswindows_frame_output_end):
11182 * redisplay-msw.c (console_type_create_redisplay_mswindows):
11183 New begin/end methods -- handle DeferWindowPos.
11185 * redisplay-output.c (redisplay_move_cursor):
11186 * redisplay-output.c (redraw_cursor_in_window):
11187 * redisplay-output.c (redisplay_update_line):
11188 * redisplay-output.c (redisplay_output_window):
11189 New begin/end methods.
11192 * redisplay-tty.c (tty_frame_output_begin):
11193 * redisplay-tty.c (tty_frame_output_end):
11194 * redisplay-tty.c (console_type_create_redisplay_tty):
11195 New begin/end methods.
11198 * redisplay-x.c (x_window_output_begin):
11199 * redisplay-x.c (x_window_output_end):
11200 * redisplay-x.c (console_type_create_redisplay_x):
11201 New begin/end methods.
11203 * redisplay.c (redisplay_frame):
11204 * redisplay.c (Fredisplay_echo_area):
11205 New begin/end methods.
11206 use MAYBE_DEVMETH for clear_frame; it may not exist.
11208 * window.h (WINDOW_XFRAME):
11209 WINDOW_XFOO macros -- get locale and decode struct pointer.
11212 2000-05-12 Ben Wing <ben@xemacs.org>
11215 * emacs.c (ensure_no_quitting_from_now_on):
11216 * emacs.c (fatal_error_signal):
11217 * emacs.c (mswindows_handle_hardware_exceptions):
11219 * emacs.c (Fkill_emacs):
11220 * emacs.c (shut_down_emacs):
11221 * emacs.c (assert_failed):
11222 various improvements in fatal error handling.
11225 move preparing_for_armageddon to emacs.c.
11228 declare fatal_error_in_progress.
11231 * print.c (std_handle_out_external):
11232 * print.c (std_handle_out_va):
11233 * print.c (stderr_out):
11234 * print.c (stdout_out):
11235 use console under mswin when no standard output.
11236 don't do code conversion during fatal error.
11238 * scrollbar.c (Fscrollbar_page_up):
11239 * scrollbar.c (Fscrollbar_page_down):
11240 fix missing else. reindent.
11242 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
11246 * glyphs.h (GLYPH_CACHEL_DESCENT):
11247 (GLYPH_CACHEL_DESCENT):
11248 (GLYPH_CACHEL_DESCENT):
11249 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11250 used in case these are inline functions.
11251 Use more absurd values to error check.
11253 include window.h for error check functions.
11255 2000-05-11 Ben Wing <ben@xemacs.org>
11257 * cmdloop.c (Freally_early_error_handler):
11258 Display message box under windows; otherwise, message will disappear
11259 before it can be viewed.
11262 * console-msw.c (Fmswindows_message_box):
11263 * console-msw.c (FROB):
11264 * console-msw.c (syms_of_console_mswindows):
11265 Define new fun `mswindows-message-box'.
11266 #### I will merge this into `popup-dialog-box'; just give me
11270 * general.c (syms_of_general):
11271 Some new symbols used in `mswindows-message-box'.
11274 * glyphs.c (Fset_image_instance_property):
11275 put warning in this fun.
11278 * glyphs.h (GLYPH_CACHEL_WIDTH):
11279 * glyphs.h (GLYPH_CACHEL_ASCENT):
11280 * glyphs.h (GLYPH_CACHEL):
11281 * glyphs.h (GLYPH_CACHEL_GLYPH):
11282 define error-checking versions to try to catch a bug i've seen --
11283 redisplay gets in an infinite loop because the glyph width of the
11284 continuation glyph is 65535.
11287 Extern message-box stuff.
11289 * window.c (allocate_window):
11290 * window.c (make_dummy_parent):
11291 * window.c (Fset_window_configuration):
11292 Use EQUAL not EQ for subwindow caches to make them work a bit
11293 better. (Something is still very broken.)
11296 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
11298 * glyphs.c (image_instantiate): Suppress gcc warnings.
11299 (Fmake_image_instance): Fix doc string.
11300 * specifier.c (Fmake_specifier): Ditto.
11302 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
11304 * paths.h.in (PATH_LOCK): Removed.
11305 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11306 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11308 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
11310 * fns.c (Ffeaturep): Update e-mail address in doc-string.
11311 Document (featurep '(and xemacs 21.02)).
11313 2000-05-09 Ben Wing <ben@xemacs.org>
11315 * buffer.c (complex_vars_of_buffer):
11316 update modeline-format doc.
11319 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11322 timeline of all released versions of Emacs, for use in creating
11323 authorship comments and in synching up.
11325 * glyphs-widget.c (image_instantiator_buttons):
11326 * glyphs-widget.c (image_instantiator_edit_fields):
11327 * glyphs-widget.c (image_instantiator_combo_box):
11328 * glyphs-widget.c (image_instantiator_scrollbar):
11329 * glyphs-widget.c (image_instantiator_progress_guage):
11330 * glyphs-widget.c (image_instantiator_tree_view):
11331 * glyphs-widget.c (image_instantiator_tab_control):
11332 * glyphs-widget.c (image_instantiator_labels):
11333 * glyphs-widget.c (image_instantiator_layout):
11334 * glyphs-widget.c (image_instantiator_native_layout):
11335 rename decode_domain method to governing_domain.
11338 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11339 * glyphs.c (add_entry_to_device_ii_format_list):
11340 make sure we don't put an entry more than once into the list.
11341 * glyphs.c (check_instance_cache_mapper):
11342 *************************************************************
11343 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11345 *************************************************************
11346 * glyphs.c (get_image_instantiator_governing_domain):
11347 clean up, expand on new concept of governing domain.
11348 * glyphs.c (instantiate_image_instantiator):
11349 * glyphs.c (allocate_image_instance):
11350 use governing_domain instead of cache_domain in naming.
11351 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11352 * glyphs.c (make_image_instance_1):
11353 * glyphs.c (Fmake_image_instance):
11354 allow for any domain (not just device), and process the
11355 governing domain correctly. very big doc fix.
11356 * glyphs.c (Fimage_instance_domain):
11357 new primitive, to retrieve the governing domain of an image instance.
11358 * glyphs.c (image_instantiate):
11359 use new governing_domain stuff. this fixes a crash you could get
11360 by instantiating certain widget glyphs in frame locales. (should
11361 signal an error instead of crashing.)
11362 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11363 * glyphs.c (Fglyphp): clean up doc.
11364 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11365 * glyphs.c (syms_of_glyphs):
11366 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11367 * glyphs.c (image_instantiator_format_create): add some comments about
11369 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11370 for current-display-table. (Apparently Hrjove implemented in 1998 a
11371 design I wrote up in 1996, but didn't update the doc string.)
11373 * glyphs.h: clean up a doc string.
11374 * glyphs.h (governing_domain):
11375 * glyphs.h (struct image_instantiator_methods):
11376 changes for governing_domain stuff.
11379 * gutter.c (Fgutter_specifier_p):
11380 * gutter.c (Fgutter_size_specifier_p):
11381 * gutter.c (Fgutter_visible_specifier_p):
11383 * objects.c (Fcolor_specifier_p):
11384 * objects.c (Ffont_specifier_p):
11385 * objects.c (Fface_boolean_specifier_p):
11386 doc strings moved to make-*-specifier.
11388 * redisplay.c (add_disp_table_entry_runes_1):
11389 * redisplay.c (generate_fstring_runes):
11390 * redisplay.c (screen):
11391 add random comments and doc strings.
11394 * specifier.c (Fmake_specifier):
11395 major overhaul of this doc string.
11397 * specifier.c (Fvalid_specifier_domain_p):
11398 comment about the bogosity of image instances being domains.
11399 * specifier.c (decode_domain):
11400 now non-static, used in glyphs.c.
11401 * specifier.c (specifier_instance):
11402 comment about the bogosity of image instances being domains.
11403 * specifier.c (Fgeneric_specifier_p):
11404 move doc string to make-generic-specifier.
11405 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11409 * specifier.h (DOMAIN_FRAME):
11410 * specifier.h (DOMAIN_LIVE_P):
11411 * specifier.h (DOMAIN_XDEVICE):
11413 add comments about problems with these macros.
11414 prototype for decode_domain.
11417 * toolbar.c (Ftoolbar_specifier_p):
11418 move doc string to `make-toolbar-specifier'.
11420 * window.c (window_unmap_subwindows_cache_mapper):
11421 *************************************************************
11422 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11424 *************************************************************
11426 2000-05-09 Andy Piper <andy@xemacs.org>
11428 * glyphs.h: declare reset_frame_subwindow_instance_cache.
11430 * window.c (Fset_window_configuration): reset the frame subwindow
11431 cache and re-initialize the window subwindow caches.
11433 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11435 2000-05-09 Ben Wing <ben@xemacs.org>
11437 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11440 2000-04-26 Mike Woolley <mike@bulsara.com>
11442 * ntheap.c: Changed recreate_heap to limit the amount reserved
11443 for the heap to that which is actually available. Also now
11444 displays a message box (with some dignostics) in the event that
11445 it still can't start.
11447 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11449 * callproc.c (Fold_call_process_internal): GCPRO path
11451 2000-05-08 Jan Vroonhof <jan@xemacs.org>
11453 Patch by Bill Perry.
11455 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11456 back data instead of #ifdef.
11457 (Fscrollbar_page_down): ditto.
11459 2000-05-07 Ben Wing <ben@xemacs.org>
11462 Kludge for defining Qmswindows_tstr.
11465 * nt.c (open_input_file):
11466 * nt.c (open_output_file):
11467 * nt.c (rva_to_section):
11468 * nt.c (mswindows_executable_type):
11469 Move all memory-mapped-file routines here (some were in unexnt.c,
11470 which is bad because they are used by process-nt.c, and unexnt
11471 won't be around when portable dumping). Synched the above routines
11475 Removed ifdef'd out bogus code.
11476 Fixed some prototypes.
11478 * nt.h (file_data):
11479 * nt.h (OFFSET_TO_RVA):
11480 * nt.h (RVA_TO_OFFSET):
11481 * nt.h (RVA_TO_PTR):
11482 Moved the memory-mapped-file structures, macros and prototypes
11483 here, to parallel nt.c. ntheap.h should really be removed
11484 entirely, and it's a non-portable-dumper specific file.
11486 * ntheap.h (round_to_next):
11487 Moved the memory-mapped-file structures, macros and prototypes
11490 * ntproc.c (compare_env):
11491 Moved rva_to_section and mswindows_executable_type to nt.c.
11492 Moved compare_env to process-nt.c.
11493 ntproc.c will die, one day.
11495 * ntproc.c (sys_spawnve):
11496 Account for win32_ -> mswindows_.
11499 * process-nt.c (struct nt_process_data):
11500 * process-nt.c (ensure_console_window_exists):
11501 * process-nt.c (compare_env):
11502 * process-nt.c (nt_create_process):
11503 * process-nt.c (nt_kill_process_by_pid):
11504 * process-nt.c (syms_of_process_nt):
11505 * process-nt.c (vars_of_process_nt):
11506 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11507 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11508 changes). Eliminate our old `nt-quote-process-args' mechanism.
11509 Synch up nt_create_process with FSF 20.6 sys_spawnve.
11510 Move compare_env here from ntproc.c.
11512 * process.c (Fprocess_send_region):
11513 Takes an optional fourth argument, BUFFER, which should fix some
11514 problems with call-process.
11517 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11520 Move ICC_BAR_CLASSES to syscommctrl.h.
11521 Add preliminary macros for MSWindows/Mule. More to come.
11524 * unexnt.c (unexec):
11525 open_output_file moved to nt.c.
11528 2000-05-05 Andy Piper <andy@xemacs.org>
11530 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11531 instance from the frame cache also since GC may catch up too late
11532 to make frame deletion sane.
11534 2000-05-04 Andy Piper <andy@xemacs.org>
11536 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11537 (x_finalize_image_instance): ungcpro on deletion.
11539 * glyphs.c (image_instantiator_format_create): give pointers a
11540 query geometry method so that the geometry is at least set.
11542 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11543 initialize layouts if using widgets.
11545 2000-05-03 Andy Piper <andy@xemacs.org>
11547 * nt.c: remove bogus reference to sysmmsystem.h
11549 * gui-x.c (popup_selection_callback): fix no selection abort.
11551 2000-05-02 Andy Piper <andy@xemacs.org>
11553 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11554 (mswindows_widget_instantiate): ditto.
11556 * glyphs-widget.c (initialize_widget_image_instance): initialize
11557 children correctly.
11558 (widget_instantiate): cope with children and items in the same
11561 * glyphs.c (mark_image_instance): cope with children as a first
11563 (image_instance_equal): ditto.
11564 (image_instance_hash): ditto.
11565 (image_instance_changed): ditto.
11567 2000-04-30 Andy Piper <andy@xemacs.org>
11569 * glyphs.c (subwindow_query_geometry): new function. Return some
11571 (subwindow_instantiate): don't assign dimensions if none have been
11573 (image_instantiator_format_create): add subwindow_query_geometry.
11574 (print_image_instance): cope with layouts as widgets.
11576 2000-04-29 Andy Piper <andy@xemacs.org>
11578 * frame.c (delete_frame_internal): call
11579 free_frame_subwindow_instance_cache so that all subwindows are
11580 finalized before their parent.
11581 (mark_frame): remove subwindow_cachels.
11582 (Fmake_frame): remove subwindow_cachel manipulation.
11583 (allocate_frame_core): subwindow_instance_cache is a weak list.
11584 (delete_frame_internal): set subwindow_instance_cache to nil.
11586 * glyphs-msw.c (mswindows_finalize_image_instance): make double
11588 (mswindows_finalize_image_instance): use the device
11589 not the domain as the domain may have died already.
11591 * glyphs-x.c (x_finalize_image_instance): ditto.
11592 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11595 * redisplay-output.c (redisplay_unmap_subwindows): update for
11596 subwindow instance cache as a weak list.
11597 (redisplay_unmap_subwindows_maybe): ditto.
11598 (redisplay_unmap_subwindows_except_us): ditto.
11600 * glyphs.c (unmap_subwindow): error checking will check the domain
11601 so don't deal with it here. Don't use cachels anymore.
11602 (map_subwindow): ditto.
11603 (update_subwindow_cachel_data): remove old accessor names.
11604 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11605 (Fresize_subwindow): don't update cachel.
11606 (mark_subwindow_cachels):
11607 (update_subwindow_cachel_data):
11608 (add_subwindow_cachel):
11609 (get_subwindow_cachel_index):
11610 (update_subwindow_cachel):
11611 (reset_subwindow_cachels):
11612 (mark_subwindow_cachels_as_not_updated): deleted.
11613 (cache_subwindow_instance_in_frame_maybe): new function. Add a
11614 subwindow instance to the frame cache.
11615 (find_matching_subwindow): update for subwindow instance cache as
11617 (update_widget_instances): ditto.
11618 (image_instance_type_to_mask):inlined.
11619 (free_frame_subwindow_instance_cache): new function. finalize all
11620 subwindows that are instantiated.
11622 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11623 of cachel information.
11624 (IMAGE_INSTANCE_DISPLAY_X):
11625 (IMAGE_INSTANCE_DISPLAY_Y):
11626 (IMAGE_INSTANCE_DISPLAY_WIDTH):
11627 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11628 (XIMAGE_INSTANCE_DISPLAY_X):
11629 (XIMAGE_INSTANCE_DISPLAY_Y):
11630 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11631 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11632 remove subwindow_cachel structure and function references.
11633 (image_instance_type_to_mask): inline from glyphs.c
11635 * redisplay.c (redisplay_frame): remove subwindow_cachel
11638 * frame.h (struct frame): remove subwindow_cachels.
11639 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11641 * frameslots.h: add subwindow_instance_cache.
11643 * window.c (replace_window): check subwindow cache of replacement.
11644 (window_unmap_subwindows_cache_mapper):
11645 (window_unmap_subwindows): new functions. Unmap all subwindows
11646 cached on this window.
11647 (mark_window_as_deleted): unmap all subwindows.
11649 2000-04-27 Andy Piper <andy@xemacs.org>
11651 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11653 * glyphs-widget.c (widget_layout): return something.
11654 (layout_layout): return something. Fail if not initialized.
11655 (layout_query_geometry): ditto.
11656 (image_instantiator_native_layout): new function. Initialized the
11657 native layout type.
11658 (widget_instantiate): don't do layout stuff here.
11660 * glyphs.c (instantiate_image_instantiator): reorded calling or
11661 instantiate and post_instantiate with layout in between.
11662 (image_instance_layout): be more selective about deciding whether
11663 the layout has been done or not.
11665 * glyphs.h (struct image_instantiator_methods): return a value
11666 from layout_method.
11668 2000-04-26 Andy Piper <andy@xemacs.org>
11670 * glyphs.c (allocate_image_instance): make initial width and
11671 height unspecified. Set initialized to 0.
11673 * syscommctrl.h new file. Encapsulates commctrl.h.
11675 * syswindows.h new file. Encapsulates windows.h.
11677 * ntplay.c: use new syswindows.h and syscommctrl.h header.
11679 * console-msw.h: ditto.
11681 * redisplay-tty.c (tty_output_display_block): remove layout references.
11683 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11684 window handle rather than just the frame.
11686 * glyphs.c (mark_image_instance): remove layout references.
11687 (print_image_instance): ditto.
11688 (image_instance_equal): ditto.
11689 (image_instance_hash): ditto.
11690 (decode_image_instance_type): ditto.
11691 (encode_image_instance_type): ditto.
11692 (image_instantiate): ditto.
11693 (allocate_glyph): ditto.
11694 (Fimage_instance_height): ditto.
11695 (Fimage_instance_width): ditto.
11696 (update_subwindow): ditto.
11698 * redisplay-x.c (x_output_display_block): recode for layouts as
11701 * redisplay-output.c (redisplay_output_layout): recode for layouts
11703 (compare_runes): remove layout references.
11705 * redisplay-msw.c (mswindows_output_display_block): recode for
11706 layouts as widgets.
11708 * glyphs-widget.c (image_instantiator_layout): remove
11709 layout_possible_dest_types.
11710 (layout_possible_dest_types): deleted.
11712 * glyphs.h (image_instance_type): remove layout references.
11713 (struct Lisp_Image_Instance): ditto. Add initialized flag.
11714 (IMAGE_INSTANCE_INITIALIZED): new accessor.
11715 (XIMAGE_INSTANCE_INITIALIZED): ditto.
11717 2000-04-25 Andy Piper <andy@xemacs.org>
11719 * glyphs-widget.c (image_instantiator_buttons):
11720 (image_instantiator_edit_fields):
11721 (image_instantiator_combo_box):
11722 (image_instantiator_scrollbar):
11723 (image_instantiator_progress_guage):
11724 (image_instantiator_tree_view):
11725 (image_instantiator_tab_control):
11726 (image_instantiator_labels):
11727 (image_instantiator_layout): call default post_instantiate method.
11728 (widget_post_instantiate): new function. Simply lays out the
11731 * glyphs.h (struct image_instantiator_methods): add
11732 post_instantiate method.
11734 * glyphs.c (instantiate_image_instantiator): add post_instantiate
11737 2000-04-23 Andy Piper <andy@xemacs.org>
11739 * glyphs.h (struct image_instantiator_methods): add
11740 decode_domain_method.
11741 (struct Lisp_Image_Instance): remove subwindow frame - it can be
11742 derived from the domain.
11743 (IMAGE_INSTANCE_FRAME): new accessor.
11744 (XIMAGE_INSTANCE_FRAME): ditto.
11746 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11747 instead of _SUBWINDOW_FRAME.
11748 (finalize_image_instance): ditto.
11749 (Fimage_instance_foreground): ditto.
11750 (Fimage_instance_background): ditto.
11751 (image_instantiate): ditto.
11752 (update_subwindow_cachel): ditto.
11753 (update_subwindow): ditto.
11754 (unmap_subwindow): ditto.
11755 (map_subwindow): ditto
11756 (subwindow_instantiate): ditto.
11757 * glyphs-msw.c (mswindows_update_widget): ditto.
11758 (mswindows_progress_gauge_instantiate): ditto.
11759 (mswindows_tab_control_update): ditto.
11760 * glyphs-x.c (x_update_widget): ditto.
11761 (x_widget_instantiate): ditto.
11762 (x_tab_control_instantiate): ditto.
11763 (x_tab_control_update): ditto.
11764 * event-msw.c (mswindows_wnd_proc): ditto
11766 * glyphs-widget.c (image_instantiator_layout): use
11767 subwindow_decode_domain.
11768 (image_instantiator_buttons): ditto.
11769 (image_instantiator_edit_fields): ditto.
11770 (image_instantiator_combo_box): ditto.
11771 (image_instantiator_scrollbar): ditto.
11772 (image_instantiator_progress_guage): ditto.
11773 (image_instantiator_tree_view): ditto.
11774 (image_instantiator_tab_control): ditto.
11775 (image_instantiator_labels): ditto.
11776 (image_instantiator_layout): ditto.
11778 * glyphs.c: add instance error checking to many functions.
11779 (instantiate_image_instantiator): decode device from cache_domain.
11780 (image_instantiate): partially rewrite by using
11781 decode_image_instantiator_domain to determine what domain the
11782 instance needs to be cached in.
11783 (decode_image_instantiator_domain): new function. Determine what
11784 domain the image needs to be cached in.
11785 (check_window_subwindow_cache): new error checking function.
11786 (check_instance_cache_mapper): ditto.
11787 (check_image_instance_structure): ditto.
11788 (subwindow_decode_domain): new function. Encodes a window as a
11789 subwindow's cache domain.
11790 (image_instantiator_format_create): use it for text and
11793 2000-04-21 Andy Piper <andy@xemacs.org>
11795 * glyphs.c (image_instance_device): new function.
11796 (image_instance_frame): new function.
11797 (image_instance_window): new function.
11798 (image_instance_live_p): new function.
11800 * window.c (mark_window_as_deleted): reset the subwindow_instance_
11803 * glyphs.h (struct Lisp_Image_Instance): device->domain.
11804 (IMAGE_INSTANCE_DOMAIN): new accessor.
11805 (XIMAGE_INSTANCE_DOMAIN): ditto.
11807 * glyphs-x.c (x_finalize_image_instance): device->domain.
11809 * glyphs-msw.c (init_image_instance_geometry): device->domain.
11810 (mswindows_finalize_image_instance): ditto.
11812 * glyphs-eimage.c (jpeg_instantiate): device->domain.
11813 (gif_instantiate): ditto.
11814 (png_instantiate): ditto.
11815 (tiff_instantiate): ditto.
11817 * glyphs.c (instantiate_image_instantiator): use domain rather
11819 (mark_image_instance): device -> domain.
11820 (print_image_instance): ditto.
11821 (finalize_image_instance): ditto.
11822 (image_instance_equal): ditto.
11823 (allocate_image_instance): ditto.
11824 (Fcolorize_image_instance): ditto.
11825 (query_string_geometry): ditto.
11826 (image_instantiate): ditto
11827 (query_string_font): ditto.
11828 (image_instantiate): ditto.
11829 (update_subwindow): ditto.
11830 (unmap_subwindow): ditto.
11831 (map_subwindow): ditto.
11832 (subwindow_instantiate): ditto.
11834 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
11835 (DOMAIN_FRAME): ditto.
11836 (DOMAIN_WINDOW): ditto.
11837 (DOMAIN_LIVE_P): ditto.
11838 (XDOMAIN_DEVICE): ditto.
11839 (XDOMAIN_FRAME): ditto.
11840 (XDOMAIN_WINDOW): ditto.
11842 * specifier.c (Fvalid_specifier_domain_p): add image instances as
11843 a valid specifier domain.
11845 2000-04-19 Andy Piper <andy@xemacs.org>
11847 * glyphs-widget.c (syms_of_glyphs_widget): remove
11848 widget-callback-current-channel.
11849 (vars_of_glyphs_widget): ditto.
11852 * gui.c (get_gui_callback): revert to previous behaviour.
11854 2000-04-18 Andy Piper <andy@xemacs.org>
11856 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
11857 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
11858 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
11860 * glyphs.c (image_instance_equal): add margin_width.
11861 (image_instance_hash): ditto.
11863 * glyphs-widget.c (widget_instantiate): deal with margin-width.
11864 (layout_query_geometry): ditto.
11865 (layout_layout): ditto.
11866 (syms_of_glyphs_widget): add margin-width.
11867 (image_instantiator_layout): allow margin-width.
11869 * glyphs.c (update_widget_instances): make a normal function.
11870 (syms_of_glyphs): remove Qupdate_widget_instances.
11873 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
11874 so that we don't corrupt ideas about the last event or
11875 command. Remove widget-callback-current-channel fiddling.
11876 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11878 2000-05-01 Martin Buchholz <martin@xemacs.org>
11880 * XEmacs 21.2.33 is released.
11882 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
11884 * make-src-depend: Allow dots in header file name.
11886 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
11888 * mule-charset.h (struct charset_lookup): Add
11889 next_allocated_1_byte_leading_byte and
11890 next_allocated_2_byte_leading_byte.
11891 * mule-charset.c: Move above two variables so that those values
11894 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
11896 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
11897 when string length is zero.
11898 (find_charsets_in_emchar_string): Ditto.
11900 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
11902 * lisp.h: extern Qdialog and Qmenubar.
11904 * gui-x.c: added events.h.
11905 also fixed typo which made the file uncompilable.
11907 * general.c: Added Qmenubar and Qdialog
11909 2000-04-28 Ben Wing <ben@xemacs.org>
11911 * frame-msw.c (mswindows_init_frame_1):
11912 * frame-msw.c (mswindows_mark_frame):
11913 * event-msw.c (mswindows_enqueue_dispatch_event):
11915 * console-msw.h (struct mswindows_frame):
11916 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
11917 there are now three hash tables for callbacks.
11918 mswindows_enqueue_dispatch_event is no longer static.
11920 * dialog-x.c (maybe_run_dbox_text_callback):
11921 * dialog-x.c (dbox_descriptor_to_widget_value):
11922 switch to new cons3 form for callbacks.
11924 * glyphs-msw.c (mswindows_register_gui_item):
11925 * glyphs-msw.c (mswindows_widget_instantiate):
11926 * glyphs-msw.c (add_tree_item):
11927 * glyphs-msw.c (add_tab_item):
11928 new image instance parameter, so it can be passed to callback-ex.
11929 respect :callback-ex as well as :callback.
11931 * glyphs-widget.c (VALID_GUI_KEYWORDS):
11934 * glyphs.c (print_image_instance):
11935 prettify, e.g. now prints widget type.
11938 certain funs have new image instance parameter.
11941 * gui.c (get_gui_callback):
11942 * gui.c (gui_item_add_keyval_pair):
11943 * gui.c (gui_item_init):
11944 * gui.c (gui_add_item_keywords_to_plist):
11945 * gui.c (mark_gui_item):
11946 * gui.c (gui_item_hash):
11947 * gui.c (gui_item_equal):
11948 * gui.c (copy_gui_item):
11949 * gui.c (syms_of_gui):
11950 recognize callback-ex in a number of places.
11951 also, fix the annoying "can't get out of yes-no dialog" bug.
11954 * gui.h (struct Lisp_Gui_Item):
11955 recognize callback-ex in a number of places.
11957 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11958 new parameter in button_item_to_widget_value.
11960 * glyphs-x.c (x_update_widget):
11961 * glyphs-x.c (x_button_instantiate):
11962 * glyphs-x.c (x_button_update):
11963 * glyphs-x.c (x_progress_gauge_instantiate):
11964 * glyphs-x.c (x_edit_field_instantiate):
11965 * glyphs-x.c (x_combo_box_instantiate):
11966 * glyphs-x.c (x_tab_control_instantiate):
11967 * glyphs-x.c (x_label_instantiate):
11968 new image instance parameter in various places.
11971 * event-Xt.c (enqueue_Xt_dispatch_event):
11972 this fun gets exported.
11975 * gui-msw.c (mswindows_handle_gui_wm_command):
11976 handle both :callback and :callback-ex, and generate our own
11977 event because it's one of the callback-ex arguments.
11980 * gui-x.c (popup_selection_callback):
11981 handle both :callback and :callback-ex, and generate our own
11982 event because it's one of the callback-ex arguments.
11983 * gui-x.c (button_item_to_widget_value):
11984 * gui-x.c (gui_items_to_widget_values_1):
11985 * gui-x.c (gui_item_children_to_widget_values):
11986 * gui-x.c (gui_items_to_widget_values):
11987 new image instance parameter in various places.
11989 * fns.c (Freplace_list):
11990 fix small typo in doc string.
11993 declare enqueue_Xt_dispatch_event.
11995 2000-04-28 Ben Wing <ben@xemacs.org>
11998 * buffer.c (Frecord_buffer):
11999 * buffer.c (syms_of_buffer):
12000 delete record-buffer-hook.
12003 * fns.c (Freplace_list):
12004 * fns.c (syms_of_fns):
12005 new primitive replace-list.
12008 slot for old buffer-alist.
12011 exfun replace-list.
12014 * redisplay.c (redisplay_frame):
12015 * redisplay.c (syms_of_redisplay):
12016 * redisplay.c (vars_of_redisplay):
12017 new hook buffer-list-changed-hook.
12020 2000-04-27 Ben Wing <ben@xemacs.org>
12022 * extents.h: extern in_modeline_generation.
12024 * redisplay.c (generate_formatted_string_db): set
12025 in_modeline_generation.
12027 * extents.c (extent_changed_for_redisplay): don't mark redisplay
12028 flags if in modeline generation. otherwise frame-modified-tick
12029 is ticked far too often.
12030 Declare in_modeline_generation.
12032 2000-04-26 Ben Wing <ben@xemacs.org>
12034 * emacs.c (vars_of_emacs): document quick-build "error-checking"
12036 (vars_of_emacs): add quick-build as an error-checking option.
12037 A bit kludgy, but there doesn't seem much point in creating
12038 a real var for this.
12040 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12042 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
12044 * redisplay.h (struct display_line): Add a new variable,
12047 * redisplay.c (create_text_block): Set dl->line_continuation if
12048 the line continues.
12049 (create_string_text_block): Ditto.
12050 (regenerate_window_incrementally): Use line_continuation instead
12051 of searching continuation glyph.
12052 (add_margin_runes): Call add_glyph_rune.
12053 (add_glyph_rune): Handle margin glyph.
12055 2000-04-20 Martin Buchholz <martin@xemacs.org>
12057 * filelock.c (fill_in_lock_file_name):
12059 Check for IS_ANY_SEP instead of '/'.
12061 Avoid generating gratuitous garbage. Call user_login_name() directly.
12062 Never check errno without first seeing that system call failed.
12063 (unlock_file): Add GCPRO.
12064 (Flock_buffer): Fix docstring.
12065 (Ffile_locked_p): Fix docstring. Add GCPRO.
12067 2000-04-19 Martin Buchholz <martin@xemacs.org>
12069 * sysdep.c (get_pty_max_bytes):
12070 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12071 strings longer than 252 bytes.
12073 * md5.c: Unconditionally include ANSI header <limits.h>
12075 * glyphs-x.c (convert_EImage_to_XImage):
12076 * lisp-union.h (union Lisp_Object):
12077 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12079 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
12081 * filelock.c (current_lock_owner): Remove unused variable o, p.
12083 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
12085 * callint.c: Remove multiply defined symbol Qlet
12086 (syms_of_callint): ditto.
12088 2000-04-14 Andy Piper <andy@xemacs.org>
12090 * general.c (syms_of_general): add last-command, this-command, let
12093 * lisp.h: declare various symbols.
12095 * glyphs.h: declare Qwidget_callback_current_channel;
12097 * glyphs-widget.c (syms_of_glyphs_widget): add
12098 Qgui_callback_current_channel.
12099 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12101 * gui-msw.c (mswindows_handle_gui_wm_command): bind
12102 widget-callback-current-channel when invoking the interactive
12103 arg. Also bind last-command and next-command when invoking the
12105 * gui-x.c (popup_selection_callback): ditto.
12107 * gui.c (get_gui_callback): massage args so that we are always
12108 calling eval. This allows us to add our own variable bindings
12111 * glyphs-x.c (x_button_instantiate): use
12112 gui_items_to_widget_values since this is GC safe.
12113 (x_progress_gauge_instantiate): ditto.
12114 (x_edit_field_instantiate): ditto.
12115 (x_label_instantiate): ditto.
12117 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12118 (emacs_Xt_event_widget_focus_out): new function
12119 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12121 (emacs_Xt_event_add_widget_actions): new function. add focus
12122 functions as actions.
12123 (init_event_Xt_late): use it.
12125 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
12127 * event-stream.c (Fdispatch_event): Doc fix.
12129 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
12131 * postgresql.c: Remove all references to PQsetenv*.
12133 * postgresql.h: Remove references to PGsetenvHandler object.
12134 * lrecord.h (lrecord_type): Ditto.
12136 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12138 * glyphs-msw.h (struct mswindows_image_instance_data): Added
12139 real_heigh and real_width members, and accessor macros for these.
12141 * glyphs-msw.c (init_image_instance_geometry): New function.
12142 (init_image_instance_from_dibitmap): Use it.
12143 (mswindows_resource_instantiate): Use it.
12144 (init_image_instance_from_xbm_inline): Use it.
12145 (mswindows_initialize_image_instance_mask): Use real bitmap
12147 (mswindows_create_resized_bitmap): Ditto.
12148 (mswindows_create_resized_mask): Ditto.
12150 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12151 and bitmap to their surface size.
12153 2000-04-11 Jan Vroonhof <jan@xemacs.org>
12155 * process-unix.c (unix_send_process): Guard against process MIA
12156 after Faccept_process_output.
12158 2000-04-11 Ben Wing <ben@xemacs.org>
12160 * eval.c (unbind_to_hairy): fix brokenness introduced by
12161 nanosecond speed improvements.
12163 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
12165 * sunplay.c (init_device): To play sounds correctly, the device
12166 apparently needs to be initialized at least once by XEmacs. Make
12169 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
12171 * redisplay.c (add_margin_runes): Add text image glyph
12174 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
12176 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12177 gcc is newer than 2.5.
12179 2000-04-06 Colin Rafferty <colin@xemacs.org>
12181 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12183 * fns.c (size_bit_vector):
12184 * alloc.c (size_vector):
12185 (make_vector_internal):
12186 (make_bit_vector_internal):
12187 (sweep_bit_vectors_1):
12188 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12190 2000-04-06 Andy Piper <andy@xemacs.org>
12192 * gmalloc.c (malloc): undo previous change.
12197 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
12199 * line-number.c (buffer_line_number): Revert to former version.
12201 2000-04-06 Andy Piper <andy@xemacs.org>
12203 * gmalloc.c (malloc): add error checking.
12208 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12209 button_item_to_widget_value arg.
12211 * glyphs-x.c (x_button_instantiate): add extra
12212 button_item_to_widget_value arg.
12213 (x_progress_gauge_instantiate): ditto.
12214 (x_edit_field_instantiate): ditto.
12215 (x_label_instantiate): ditto.
12217 * gui-x.c (gui_items_to_widget_values_1): add extra
12218 button_item_to_widget_value arg.
12219 (button_item_to_widget_value): add extra menu_item_p arg.
12221 * gui-x.h: change signature of button_item_to_widget_value.
12223 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12224 button_item_to_widget_value arg.
12226 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
12228 * buffer.h (struct buffer): auto_save_modified should be long.
12230 2000-04-05 Andy Piper <andy@xemacs.org>
12232 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12234 (button_query_geometry): give a little more room so that athena
12237 2000-04-05 Andy Piper <andy@xemacs.org>
12239 * faces.c (complex_vars_of_faces): The widget face should inherit
12240 the font of the gui-element face.
12242 2000-04-04 Andy Piper <andy@xemacs.org>
12244 * glyphs-x.c (x_button_update): new function. unconditionally
12245 update a button's state when the instance is dirty.
12246 (image_instantiator_format_create_glyphs_x): add x_button_update.
12247 (x_widget_instantiate): remove old resize cruft.
12249 2000-04-02 Andy Piper <andy@xemacs.org>
12251 * frame.c (change_frame_size_1): The introduction of gutters means
12252 that we need to allow 0 as a potential frame dimension.
12254 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
12256 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12257 image glyph if allow_cursor.
12258 (add_hscroll_rune): Don't allow cursor to border glyph.
12259 (create_text_block): Ditto.
12261 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12262 text not in buffer.
12263 (redisplay_output_layout): Call ensure_face_cachel_complete for
12267 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
12269 * redisplay.c (add_glyph_rune): Adding text image as text runes.
12271 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12274 * redisplay-tty.c (tty_output_display_block): Delete the routine
12275 for text image glyph
12276 * redisplay-x.c (x_output_display_block): ditto
12277 * redisplay-msw.c (mswindows_output_display_block): ditto
12279 2000-02-02 Mike Alexander <mta@arbortext.com>
12281 Note: Some of these were committed by accident as part of other
12284 * regex.c (regex_compile): Avoid compiler warnings.
12286 * ntproc.c (sys_spawnve): Avoid compiler warnings.
12288 * nt.h: Declare term_ntproc correctly.
12290 * nt.c: Remove incorrect declaration of get_home_directory which
12291 is declared correctly in lisp.h.
12293 * keymap.c (get_keyelt): Avoid compiler warnings.
12294 (raw_lookup_key_mapper): Avoid compiler warnings.
12296 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12298 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12300 * filemode.c (mode_string): Avoid compiler warnings.
12302 * file-coding.c (Fcoding_system_aliasee): Add return statement to
12305 * events-mod.h: Undef some things that winuser.h defines differently.
12307 * data.c (Faset): Avoid compiler warnings.
12309 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12311 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
12313 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12314 Fall through to simple beep on error.
12315 Replace "extern" by real header file.
12317 * linuxplay.c: Use nativesound.h
12318 (play_sound_data): Return error code. Be less verbose on error.
12320 * sunplay.c: Use nativesound.h
12321 (play_sound_data): Return error code. Be less verbose on error.
12323 * ntplay.c: Use nativesound.h
12324 (play_sound_data): Return fake error code
12326 * sgiplay.c: Use nativesound.h
12327 (play_sound_data): Return error code
12329 * hpplay.c: Use nativesound.h, partially implement
12330 new error code. Break compilation until finished.
12331 (play_sound_data): error code.
12333 * nativesound.h (play_sound_file):
12334 (play_sound_data): Prototype in new header.
12336 2000-03-31 Andy Piper <andy@xemacs.org>
12338 * glyphs-widget.c: (button_query_geometry): new function. Adjust
12339 for toggle and radio buttons.
12340 (image_instantiator_buttons): use it.
12342 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
12344 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12345 (x_update_horizontal_scrollbar_callback): Return if no mirror was
12346 found. Scrollbar event probably belonged to some old config.
12348 2000-03-31 Andy Piper <andy@xemacs.org>
12350 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12352 (initialize_widget_image_instance): default layout to
12353 LAYOUT_HORIZONTAL rather than 0.
12354 (widget_instantiate): reverse the item list at the end rather than
12356 (layout_layout): re-code for the border text at the front of the
12357 item list rather than at the end.
12358 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12359 provided by the user.
12360 (widget_query_geometry): comment.
12362 2000-03-30 Andy Piper <andy@xemacs.org>
12364 * glyphs-widget.c (image_instantiator_layout): allow standard
12365 widget keywords in layouts.
12367 * gutter.c (output_gutter): cope with nil gutter contents.
12369 * frame.c (Fset_frame_properties): add gutter docs.
12371 2000-03-29 Andy Piper <andy@xemacs.org>
12373 * toolbar-msw.c (TBSTYLE_FLAT): add.
12374 (mswindows_output_toolbar): minor fiddling.
12376 2000-03-29 Andy Piper <andy@xemacs.org>
12378 * gutter.c (output_gutter): force gutter size recalculation if
12379 what we are trying to display won't fit.
12380 (update_gutter_geometry): new function. A per-gutter version of
12381 update_frame_gutter_geometry.
12382 (update_frame_gutter_geometry): use it.
12383 (redraw_exposed_gutter): add extra debugging output.
12385 2000-03-28 Mike Alexander <mta@arbortext.com>
12387 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12388 (pdump_file_unmap): Implement it on Windows
12389 (pdump_file_get): Save alocated handles for pdump_file_unmap
12391 2000-03-28 Andy Piper <andy@xemacs.org>
12393 * gui.c (get_gui_callback): treat Quit specially.
12395 2000-03-27 Andy Piper <andy@xemacs.org>
12397 * glyphs.c (image_instantiate): be careful to check in the same
12400 2000-03-27 Didier Verna <didier@xemacs.org>
12402 * config.h.in: define the proper SMART_INCLUDE macro.
12403 handle renaming of `foo_h_path' to `foo_h_file'.
12405 * database.c: ditto.
12409 * linuxplay.c: ditto.
12411 * terminfo.c: ditto.
12413 * tooltalk.h: ditto.
12415 2000-03-27 Andy Piper <andy@xemacs.org>
12417 * glyphs-msw.c (mswindows_update_widget): make sure the widget
12418 gets updated whenever the face might have changed.
12420 2000-03-26 Mike Alexander <mta@arbortext.com>
12422 * dumper.c (pdump_resource_free): Fix the comment.
12424 2000-03-21 Olivier Galibert <galibert@pobox.com>
12426 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12428 2000-03-22 Mike Alexander <mta@arbortext.com>
12430 * dumper.c: Include Windows headers on Windows
12431 (pdump_resource_free): Add a body to the function
12432 (pdump_load): exe_name -> exe_path and add some comments.
12434 2000-03-25 Mike Alexander <mta@arbortext.com>
12436 * gui.c (copy_gui_item_tree): Return a value in all cases
12438 2000-03-21 Didier Verna <didier@xemacs.org>
12440 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12442 (SMART_INCLUDE): new macro.
12443 (POSTGRES_INCLUDE): new macro to include postgresql headers from
12444 the proper location.
12446 * postgresql.c: use it.
12450 2000-03-24 Andy Piper <andy@xemacs.org>
12452 * gutter.c (redraw_exposed_gutters): must be "in display" when we
12455 2000-03-24 Andy Piper <andy@xemacs.org>
12457 * redisplay-output.c (compare_runes): use image_instance_changed
12458 to detect changes. Do not depend on glyphs_changed, only depend on
12460 (redisplay_output_layout): add debug messages.
12461 (compare_runes): ditto.
12463 * glyphs.h: declare new functions.
12464 (struct Lisp_Image_Instance): remove percent and associated
12467 * gui.h: declare new copying functions.
12469 * gui.c (copy_gui_item_tree): new function.
12470 (copy_gui_item): new function.
12471 (gui_item_id_hash): revert to standard hash.
12472 (gui_item_hash): ditto.
12473 (gui_item_hash_internal): deleted.
12474 (mark_gui_item): mark value.
12475 (gui_item_add_keyval_pair): add value.
12476 (gui_item_init): ditto.
12477 (gui_add_item_keywords_to_plist): ditto.
12478 (gui_item_equal): ditto.
12479 (syms_of_gui): add Q_value.
12481 * glyphs-x.c (x_progress_gauge_update): use pending items and
12482 value for setting the state.
12483 (x_update_widget): don't set items from pending here.
12485 * glyphs-widget.c (update_widget): update items here.
12486 (progress_gauge_set_property): use items for storing value. Put
12487 new value in pending items.
12489 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12490 items for new value. Convert percent -> value.
12491 (mswindows_tab_control_update): don't update items here.
12493 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12494 (update_subwindow): ditto.
12495 (image_instance_changed): new function. Compare hash values and
12496 past and present widget items.
12497 (image_instantiate): We more careful about where we instantiate
12499 (image_instantiate): add error checking.
12501 * gutter.c (syms_of_gutter): use -hook.
12503 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
12505 * console-tty.c (Fset_console_tty_input_coding_system): Use
12507 (Fset_console_tty_output_coding_system): Use Qterminal.
12508 (tty_init_console): Use Qkeyboard and Qterminal.
12510 2000-03-21 Ben Wing <ben@xemacs.org>
12512 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12513 From Mike Alexander <mta@arbortext.com>.
12515 2000-03-21 Ben Wing <ben@xemacs.org>
12517 * event-msw.c (mswindows_need_event): Horrible kludge to fix
12518 process brokenness. Proper implementation to come.
12520 Rename call-process-internal to old-call-process-internal.
12521 New impl. in process.el.
12523 2000-03-21 Martin Buchholz <martin@xemacs.org>
12525 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12527 2000-03-20 Andy Piper <andy@xemacs.org>
12529 * glyphs.c (full_list_hash): make hashes of the same elements in
12530 different orders return different values.
12532 2000-03-20 Martin Buchholz <martin@xemacs.org>
12534 * XEmacs 21.2.32 is released.
12536 2000-03-20 Martin Buchholz <martin@xemacs.org>
12538 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12539 (DFC_MALLOC_USE_CONVERTED_DATA):
12540 Add aliasing-safe casts to allow use with char* or unsigned char*
12543 * eldap.c (Fldap_open):
12544 (Fldap_search_basic):
12547 Make C++-compilable.
12548 Make sure GCPRO'ed variables are initialized.
12549 Use temp variables to avoid repeated calls to Flength.
12551 2000-03-16 Martin Buchholz <martin@xemacs.org>
12554 Make sure PATH_MAX is always defined.
12555 Include limits.h for PATH_MAX.
12556 Deprecate use of MAXPATHLEN.
12558 2000-03-10 Martin Buchholz <martin@xemacs.org>
12560 * emacs.c: Add reinit_vars_of_fileio.
12561 * symsinit.h: Add reinit_vars_of_fileio.
12562 * fileio.c (reinit_vars_of_fileio): New.
12563 * fileio.c (Fmake_temp_name):
12564 Initialize temp_name random number from microseconds to make
12565 collisions even less likely. Initialize always at process startup
12566 time. (make-temp-name) used to return the same file name twice in
12568 Random stylistic fiddling.
12571 2000-03-20 Andy Piper <andy@xemacs.org>
12573 * glyphs.c (image_instantiate): allow text glyphs to be
12574 instantiated in the minibuffer window.
12576 2000-03-19 Andy Piper <andy@xemacs.org>
12578 * glyphs.c (image_instance_hash): be careful about which items we
12581 * glyphs-widget.c (tab_control_set_property): record into pending
12582 items rather than the actual items.
12584 * glyphs-x.c (x_update_widget): use pending items to update with.
12586 * glyphs-msw.c (mswindows_tab_control_update): use pending items
12589 * glyphs.c (mark_image_instance): mark pending items.
12591 * window.c (Fset_window_configuration): record the buffer.
12592 (Fselect_window): totally revert previous change which breaks many
12595 2000-03-18 Andy Piper <andy@xemacs.org>
12597 * glyphs-msw.c (mswindows_tab_control_update): force selected
12600 * glyphs.c (image_instantiate): don't allow the minibuffer as a
12601 window domain cache, otherwise we get inconsistencies at
12602 startup. There is something fishy at startup which can lead to the
12603 minibuffer being the selected window when the gutter content is
12606 * gui.c (parse_gui_item_tree_list): add probably unnecessary
12608 (parse_gui_item_tree_children): ditto.
12609 (parse_gui_item_tree_item): ditto.
12611 * glyphs.c (Fupdate_widget_instances): return something.
12613 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
12615 * window.c (Fselect_window): Undo 2000-03-17 change.
12617 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
12619 * postgresql.c (Fpq_setenv): Remove this turkey when linking
12620 against v7.0 libraries. Insta-coredump city until the postgres
12623 2000-03-17 Andy Piper <andy@xemacs.org>
12625 * faces.c (complex_vars_of_faces): don't give the widget face an
12626 inherited background pixmap.
12628 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12631 * event-stream.c (Fdispatch_non_command_events): return something.
12633 * gutter.c (output_gutter): use widget face.
12634 (clear_gutter): ditto.
12636 * NEWS: adjust again.
12638 * window.c (Fselect_window): make sure this runs to completion to
12639 avoid oddities with Fset_window_configuration.
12640 (Fcurrent_window_configuration): in general do not save the
12641 minibuffer as the selected window.
12643 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12645 2000-03-16 Olivier Galibert <galibert@pobox.com>
12647 * emacs.c (Frunning_temacs_p): Revert previous patch.
12648 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12650 2000-03-16 Andy Piper <andy@xemacs.org>
12652 * glyphs-x.c (x_tab_control_update): if no widget values then
12655 * NEWS: update for new features.
12657 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12658 synthetic event to the native system.
12659 (reinit_vars_of_event_Xt): set force_event_pending to
12660 emacs_Xt_force_event_pending.
12662 * events.h (struct event_stream): add force_event_pending.
12664 * specifier.c (recompute_one_cached_specifier_in_window): add
12667 * redisplay.c (redisplay_frame): don't call
12668 update_frame_subwindows. Reset subwindow cachels when
12669 subwindows_changed, removing this was an optimization too far.
12671 * redisplay-output.c (compare_runes): reorganize so that we catch
12672 glyph changes when we want them. Set optimize_output when this
12673 would help layouts.
12674 (redisplay_output_layout): remove frame_really_changed, use
12675 optimize_output instead.
12677 * redisplay-msw.c (mswindows_output_display_block): reset
12678 optimize_output after outputting a glyph.
12679 * redisplay-x.c (x_output_display_block): ditto.
12680 * redisplay-tty.c (tty_output_display_block): ditto.
12682 * gutter.c: (specifier_vars_of_gutter): use new spec changed
12684 (gutter_specs_changed): do specific gutter positions.
12685 (top_gutter_specs_changed): new function. Only update the
12686 specified gutter specs.
12687 (bottom_gutter_specs_changed): ditto.
12688 (left_gutter_specs_changed): ditto.
12689 (right_gutter_specs_changed): ditto.
12691 * gui.c (gui_item_hash_internal): new function, does a real hash.
12692 (gui_item_id_hash): use it.
12693 (gui_item_hash): hash the eval'ed gui_item.
12695 * gui-x.c (popup_selection_callback): send an eval event to call
12696 Fupdate_widget_instances.
12698 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12699 to call Fupdate_widget_instances.
12701 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12702 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12704 * glyphs.c: (update_frame_subwindows): deleted.
12705 (Fupdate_widget_instances): new function for updating the dirty
12706 state of widgets that might have changed.
12707 (syms_of_glyphs): add Qupdate_widget_instances.
12708 (full_list_hash): hash a list completely.
12709 (image_instance_hash): use it for items and properties.
12711 * frame-msw.c (mswindows_size_frame_internal): remove unused
12714 * faces.h (struct face_cachel): fix comment.
12716 * event-stream.c (Fdispatch_non_command_events): new
12717 function. Process non-command events, forcing an event cycle
12719 (syms_of_event_stream): declare.
12720 (event_stream_force_event_pending): new function. Force an event
12721 on the native event queue so that an event cycle will occur next
12725 (struct ntpipe_shove_stream):
12726 (mswindows_enqueue_dispatch_event):
12727 (mswindows_dequeue_dispatch_event):
12728 (mswindows_cancel_dispatch_event):
12729 (mswindows_pump_outstanding_events):
12730 (mswindows_drain_windows_queue):
12731 (mswindows_handle_paint):
12732 (mswindows_wnd_proc):
12733 (mswindows_key_to_emacs_keysym):
12734 (get_process_input_waitable):
12735 (emacs_mswindows_delete_stream_pair): re-indent file.
12736 (mswindows_need_event): do not process further fds if the windows
12737 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12738 fixes the 100% cpu problem.
12739 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12741 2000-03-15 Olivier Galibert <galibert@pobox.com>
12747 * emacs.c: Moved dump file searching to dumper.c.
12748 (Frunning_temacs_p): Fixed.
12750 * alloc.c: Moved everything pdump-related to dumper.c. Removed
12751 last_lrecord_type_index_assigned.
12753 2000-02-20 Olivier Galibert <galibert@pobox.com>
12755 * symsinit.h: Added reinit parameter to init_console_stream
12758 * lisp.h: Added file parameter to pdump_load declaration.
12760 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12761 support. Added dump file searching.
12763 * config.h.in: Added EMACS_PROGNAME.
12765 * console-stream.c (init_console_stream): Fix reinitialisation
12766 when running from temacs.
12768 * alloc.c (pdump): Add id support.
12769 (pdump_load): Add file parameter and signature/id support.
12771 * Makefile.in.in: Add full pdump support.
12773 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
12775 * postgresql.c: Update documentation to reflect latest code
12777 (print_result): Show tuple counts in printed representation when
12779 (Fpq_put_nbytes): MULE-ize.
12780 (Fpq_get_line_async): Ditto.
12782 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
12784 * postgresql.c (Fpq_lo_import): Fix return value.
12785 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12787 2000-03-13 Ben Wing <ben@xemacs.org>
12789 * alloc.c (pdump_load):
12790 Fix compile warning under mswin.
12792 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
12794 * postgresql.c: Mule-ization, bug fixes.
12795 Use PG_CODING to encapsulate coding system name changes.
12796 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12797 (pg-coding-system): Create.
12799 (Fpq_conn_defaults): Mule-ize.
12800 (Fpq_connectdb): Mule-ize & bug fix.
12801 (Fpq_connect_start): Mule-ize.
12802 (Fpq_set_client_encoding): Mule-ize.
12803 (Fpq_finish): Document `DEAD' connection status.
12804 (Fpq_clear): Ditto.
12805 (Fpq_pgconn): Mule-ize.
12806 (Fpq_exec): Mule-ize & bug fix.
12807 (Fpq_send_query): Ditto.
12808 (Fpq_get_result): Ditto.
12809 (Fpq_res_status): Mule-ize.
12810 (Fpq_result_error_message): Mule-ize.
12811 (Fpq_ntuples): fix comments.
12812 (Fpq_fname): Mule-ize.
12813 (Fpq_fnumber): Mule-ize.
12814 (Fpq_ftype): fix comments.
12815 (Fpq_get_value): Mule-ize.
12816 (Fpq_cmd_status): Ditto.
12817 (Fpq_cmd_tuples): Ditto.
12818 (Fpq_oid_value): Ditto.
12819 (Fpq_notifies): Ditto.
12820 (Fpq_lo_import): Ditto.
12821 (Fpq_lo_export): Ditto.
12822 (Fpq_get_line): Ditto.
12823 (Fpq_put_line): Mule-ize and bug fix.
12824 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
12826 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
12828 * postgresql.c (vars_of_postgresql): Mule-ize.
12829 (Fpq_conn_defaults): Ditto.
12831 2000-03-12 Ben Wing <ben@xemacs.org>
12833 * alloc.c (Fmake_byte_code):
12834 * alloc.c (debug_string_purity_print):
12835 * alloc.c (pdump_backtrace):
12836 * alloc.c (pdump_get_indirect_count):
12837 * alloc.c (pdump_register_sub):
12838 * alloc.c (pdump_register_object):
12839 * alloc.c (pdump_register_struct):
12840 * alloc.c (pdump_dump_data):
12841 * alloc.c (pdump_reloc_one):
12845 * console-msw.c (GetConsoleHwnd):
12846 * console-msw.c (msw_hide_console):
12847 * console-msw.c (msw_show_console):
12848 * console-msw.c (msw_ensure_console_buffered):
12849 * console-msw.c (msw_output_console_string):
12850 * console-msw.c (console_type_create_mswindows):
12852 a) Added functions to manipulate the console window for use with
12855 b) Added support for writing text to the console, which is now
12856 used under Windows when xemacs is not being run non-interactively,
12857 to write text that would otherwise be destined for stdout because
12858 under these circumstances, text written to stdout tends to
12859 disappear and not be seen.
12863 * event-Xt.c (x_event_to_emacs_event):
12864 * event-Xt.c (describe_event_window):
12865 * events-mod.h (XEMACS_MOD_CONTROL):
12867 * events.c (Fmake_event):
12868 * events.c (character_to_event):
12869 * events.c (event_to_character):
12870 * events.c (format_event_object):
12871 * events.c (Fevent_modifiers):
12873 * events.h (struct key_data):
12874 * events.h (struct button_data):
12875 * events.h (struct misc_user_data):
12876 * frame-x.c (Fcde_start_drag_internal):
12877 * frame-x.c (Foffix_start_drag_internal):
12878 * gpmevent.c (Freceive_gpm_event):
12880 * keymap.c (bucky_sym_to_bucky_bit):
12881 * keymap.c (control_meta_superify):
12882 * keymap.c (make_key_description):
12883 * keymap.c (keymap_lookup_directly):
12884 * keymap.c (create_bucky_submap):
12885 * keymap.c (keymap_store):
12886 * keymap.c (define_key_check_and_coerce_keysym):
12887 * keymap.c (define_key_parser):
12888 * keymap.c (define_key_alternate_name):
12889 * keymap.c (Fdefine_key):
12890 * keymap.c (raw_lookup_key_mapper):
12891 * keymap.c (struct map_keymap_unsorted_closure):
12892 * keymap.c (map_keymap_unsorted_mapper):
12893 * keymap.c (map_keymap_sort_predicate):
12894 * keymap.c (map_keymap_sorted):
12895 * keymap.c (accessible_keymaps_mapper_1):
12896 * keymap.c (where_is_recursive_mapper):
12897 * keymap.c (describe_map_mapper):
12898 * keymap.c (describe_map_sort_predicate):
12899 * keymap.c (describe_map):
12900 * keymap.c (complex_vars_of_keymap):
12901 And a number of other files, the key modifier preprocessor
12902 constants that xemacs uses have names that conflict with constants
12903 defined under MS Windows for other purposes, so they were renamed
12904 to begin with the prefix XEMACS_. The variables that hold such
12905 modifiers were changed to consistently be of type int to fix
12906 various compile warnings.
12908 * console.c (complex_vars_of_console):
12911 * device-msw.c (mswindows_finish_init_device):
12912 * device-msw.c (msw_get_workspace_coords):
12913 * device-msw.c (mswindows_device_system_metrics):
12914 and various other files, added support for a new
12915 device property called offset-workspace which returns the position
12916 of the upper left corner of the workspace area and goes along with
12917 the existing size-workspace property.
12920 * dialog-msw.c (push_bufbyte_string_as_unicode):
12921 * dialog-msw.c (mswindows_popup_dialog_box):
12922 Added support for XEmacs-style accelerator specifications in
12923 button text. Note: I didn't add support for this under X Windows,
12924 and somebody needs to do this.
12927 * dialog.c (Fpopup_dialog_box):
12928 Documented the support for accelerators that was just mentioned.
12930 editfns.c (get_home_directory): Changed behavior under Windows
12931 when HOME not defined; former behavior was irretrievably broken.
12934 * emacs.c (main_1):
12936 * minibuf.c (clear_echo_area_internal):
12937 * minibuf.c (echo_area_append):
12939 * print.c (std_handle_out_external):
12940 * print.c (std_handle_out_va):
12942 * print.c (write_string_to_stdio_stream):
12943 * print.c (output_string):
12944 * print.c (debug_print):
12945 * print.c (debug_backtrace):
12946 * print.c (debug_short_backtrace):
12947 Cleaned up the code that prints text to stdout so that this can be
12948 changed to output into a console window instead under MS Windows,
12949 as described above.
12952 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
12953 * eval.c (internal_catch):
12954 * eval.c (unwind_to_catch):
12955 * eval.c (throw_or_bomb_out):
12956 * eval.c (condition_case_1):
12957 * eval.c (signal_1):
12958 * eval.c (check_error_state_sanity):
12959 * eval.c (call_with_suspended_errors_1):
12960 * eval.c (call_with_suspended_errors):
12961 * eval.c (reinit_vars_of_eval):
12962 Added code to catch throw loops and check for a pesky bug that may
12966 * event-msw.c (key_needs_default_processing_p):
12967 * event-msw.c (mswindows_wnd_proc):
12968 * event-msw.c (mswindows_modifier_state):
12969 * event-msw.c (emacs_mswindows_quit_p):
12970 * event-msw.c (vars_of_event_mswindows):
12971 a) Added support for using the alt key to select menu items as is
12972 standard under MS Windows. This is controlled using the variable
12973 menu-accelerator-enabled, just like under X Windows. There is an
12974 option on the options menu to turn this support on. I really
12975 think that it should be on by default under Windows, but I'm not
12976 going to make this change yet.
12978 b) Added support for dynamic display size changes under Windows.
12981 * event-stream.c (maybe_echo_keys):
12982 * event-stream.c (Fnext_event):
12983 * event-stream.c (command_builder_find_leaf):
12984 * event-stream.c (lookup_command_event):
12985 * event-stream.c (execute_command_event):
12986 * event-stream.c (pre_command_hook):
12987 * event-stream.c (post_command_hook):
12988 * event-stream.c (syms_of_event_stream):
12989 * event-stream.c (vars_of_event_stream):
12990 * event-stream.c (complex_vars_of_event_stream):
12991 * events.h (struct command_builder):
12993 a) Tried to clean up a little bit the horribly written x-specific
12994 accelerator code that crept into this file. I moved this code
12995 into menubar-x.c where it belongs. I also needed to move the
12996 command builder structure into the file events.h because it is
12997 accessed directly by this accelerator code. What I didn't do, but
12998 which should be done at some point, is to properly abstract this
12999 code using device methods instead of the kludgy way that it
13000 currently hooks into the event code.
13002 b) Added the lisp variables this-command-properties and
13003 last-command- properties, which should be used to synchronize two
13004 adjacent commands in preference to playing games with the variable
13005 this-command, which is typically what happens.
13007 c) Added some slightly nasty code to hook into the lisp support
13008 for shifted- motion-key selection. This is actually necessary for
13009 somewhat complicated reasons, which are described in
13010 simple.el. (NB: I think the proper thing would be to have the code
13011 that calls the pre and post command hooks also call out to generic
13012 lisp functions in simple.el, where all built-in stuff could be
13013 added. I will think about this more.)
13015 * event-unixoid.c (poll_fds_for_input):
13016 * lread.c (readchar):
13017 * redisplay-tty.c (tty_clear_frame):
13018 * redisplay-x.c (x_get_gc):
13019 * signal.c (interrupt_signal):
13020 And a whole bunch of other files: fixed up places that printed
13021 directly to stderr to instead call the function stderr_out so that
13022 the changes I made under Windows work correctly.
13024 * filemode.c (mode_string):
13028 * frame-msw.c (mswindows_size_frame_internal):
13029 Fixed the computation of frame size and position to keep the frame
13030 within the workspace area, rather than within the physical
13031 dimensions of the screen, so that the frame doesn't overlap window
13032 manager decorations, such as the start menu and toolbar, typically
13033 at the bottom of the screen.
13035 * frame.c (vars_of_frame):
13036 Changed the default frame title format under MS Windows to consist
13037 of buffername-XEmacs, which is standard under MS Windows. I think
13038 it might be a good idea to change this everywhere because I think
13039 it is superior to the current frame title format, but this is the
13040 kind of change that is likely to cause some people to get annoyed,
13041 so I'm not making it.
13043 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13045 * gui-msw.c (mswindows_handle_gui_wm_command):
13046 Fixed compile warnings.
13049 * gui-x.c (strdup_and_add_accel):
13050 * gui-x.c (button_item_to_widget_value):
13052 Added code to automatically put an accelerator onto the beginning
13053 of menu items that don't have one as is now the standard, and is
13054 described more later. Also fixed things so that the menu item
13055 name can be an evaluated expression, again a new standard.
13058 * gui.c (gui_item_add_keyval_pair):
13059 * gui.c (make_gui_item_from_keywords_internal):
13060 * gui.c (gui_add_item_keywords_to_plist):
13061 * gui.c (gui_item_accelerator):
13062 * gui.c (gui_name_accelerator):
13063 * gui.c (gui_item_included_p):
13064 * gui.c (gui_item_display_flush_left):
13065 * gui.c (gui_item_display_flush_right):
13066 * gui.c (parse_gui_item_tree_item):
13067 * gui.c (parse_gui_item_tree_children):
13068 * gui.c (parse_gui_item_tree_list):
13069 Mule-ized. Cleanup. GCPRO addition.
13071 * line-number.c (buffer_line_number):
13073 * lisp.h (EMACS_INT_MAX):
13074 Added the manifest constant EMACS_INT_MIN corresponding to the
13075 existing constant EMACS_INT_MAX. This is partially to fix compile
13076 warnings under Windows, and partly for cleanliness.
13079 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13080 * menubar-msw.c (msw_translate_menu_or_dialog_item):
13081 * menubar-msw.c (displayable_menu_item):
13082 * menubar-msw.c (populate_menu_add_item):
13083 * menubar-msw.c (populate_or_checksum_helper):
13084 * menubar-msw.c (populate_menu):
13085 * menubar-msw.c (update_frame_menubar_maybe):
13086 * menubar-msw.c (prune_menubar):
13087 * menubar-msw.c (msw_char_is_accelerator):
13088 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13089 * menubar-msw.c (mswindows_handle_wm_command):
13090 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13091 * menubar-msw.c (mswindows_handle_wm_initmenu):
13092 * menubar-msw.c (mswindows_update_frame_menubars):
13093 * menubar-msw.c (mswindows_free_frame_menubars):
13094 * menubar-msw.c (mswindows_popup_menu):
13095 Fixed a bug in handling accelerators where an extra character
13096 would be displayed in the menu item. Also generalized the
13097 function displayable_menu_item because it is now used by the
13098 dialog box code as well. And finally, added code in the functions
13099 that create the menubar to extract a list of accelerators for the
13100 top level menubar, which is used in the event code to determine
13101 whether a particular alt-key combination should be used to invoke
13102 a menu item, or should be passed through to access the standard
13103 XEmacs keymap binding for this key combination.
13105 Much needed GCPROing.
13108 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13109 * menubar-x.c (menu_item_descriptor_to_widget_value):
13110 * menubar-x.c (restore_in_menu_callback):
13111 * menubar-x.c (x_popup_menu):
13112 * menubar-x.c (menu_move_up):
13113 * menubar-x.c (menu_move_down):
13114 * menubar-x.c (menu_move_left):
13115 * menubar-x.c (menu_move_right):
13116 * menubar-x.c (menu_select_item):
13117 * menubar-x.c (command_builder_operate_menu_accelerator):
13118 * menubar-x.c (menu_accelerator_junk_on_error):
13119 * menubar-x.c (command_builder_find_menu_accelerator):
13120 * menubar-x.c (Faccelerate_menu):
13122 Moved a whole bunch of code here that was previously in
13123 event-stream.c as described above. There is also code connected
13124 to the new standard of adding an accelerator to the beginning of
13125 menu items that don't have one as described above and below.
13128 * menubar.c (menu_parse_submenu_keywords):
13129 * menubar.c (Fmenu_find_real_submenu):
13130 * menubar.c (Fnormalize_menu_item_name):
13131 * menubar.c (syms_of_menubar):
13132 * menubar.c (vars_of_menubar):
13133 * menubar.c (complex_vars_of_menubar):
13135 a) Cleaned up a bunch of documentation and improved it.
13137 b) XEmacs now automatically adds an accelerator onto the beginning
13138 of any menu items that don't have one. I did this because there
13139 will inevitably be some menu items on the main menubar that don't
13140 have accelerators on them because the package that adds that
13141 particular menu item hasn't yet been fixed up to have accelerators
13142 in them and it looked rather strange to have some items with and
13143 some items without accelerators, especially since even in items
13144 without accelerators, you can, at least under windows, still
13145 access the item through an accelerator corresponding to the first
13146 character in the item's name. If people don't like this behavior,
13147 I can add a variable to turn it off optionally, but I'm not sure
13148 this is a good idea because we really do need to have accelerators
13149 on all of the menu items, and if a package doesn't like the
13150 accelerators being put on the first character, then it should put
13151 the accelerators where they belong.
13153 c) I made a behavior change, which is that the descriptor that
13154 specifies the text of the menu item, which formerly was just a
13155 string, can now also be an evaluated expression. This makes this
13156 descriptor parallel with all of the others, which could also be
13157 evaluated expressions. This also obviates the need for the
13158 keyword :label, which was previously listed in the documentation
13159 as unimplemented, and which was for the same purpose.
13164 * ntproc.c (new_child):
13165 * ntproc.c (sys_spawnve):
13166 * ntproc.c (find_child_console):
13167 * ntproc.c (sys_kill):
13168 Fixed compile warnings. By the way, this file should really go
13169 away entirely, and this will happen as soon as Kirill makes his
13170 final round of process cleanups, which affect the function
13174 * process-nt.c (struct nt_process_data):
13175 * process-nt.c (find_process_from_pid):
13176 * process-nt.c (send_signal_the_nt_way):
13177 * process-nt.c (enable_child_signals):
13178 * process-nt.c (find_child_console):
13179 * process-nt.c (send_signal_the_95_way):
13180 * process-nt.c (nt_finalize_process_data):
13181 * process-nt.c (ensure_console_window_exists):
13182 * process-nt.c (nt_create_process):
13183 * process-nt.c (nt_kill_child_process):
13184 * process-nt.c (nt_kill_process_by_pid):
13185 * process-nt.c (nt_open_network_stream):
13186 * process-nt.c (vars_of_process_nt):
13187 Copied over code from Emacs 20.5 to correctly send signals to sub-
13188 processes under Windows 95. Also added code to automatically
13189 create and hide console window when a sub-process is created under
13190 Windows 95, which obviates the need for the separate runemacs.exe
13191 executable, and finally implemented some variables that were
13192 implemented in Emacs 20.5, but previously not in XEmacs. These
13193 include mswindows- start-process-share-console and
13194 mswindows-start-process-inherit-error-mode. (Both of these only
13195 apply to Windows 95.)
13197 * regex.c (regex_compile): Fixed a compile warning.
13200 * select-msw.c (mswindows_own_selection):
13201 * select-msw.c (mswindows_get_foreign_selection):
13202 * select-msw.c (mswindows_disown_selection):
13203 * select-msw.c (console_type_create_select_mswindows):
13204 * select-msw.c (syms_of_select_mswindows):
13205 Cleaned up the file and implemented the device method
13206 selection_exists_p, which had accidentally been left out. Also
13207 removed four lisp functions that were remnants from before the
13208 time when the selection code was properly device abstracted.
13209 These functions are no longer needed because there are generic
13210 equivalents, and because they were added recently and don't exist
13211 in FSF Emacs, I don't think there's any problem with just deleting
13215 * sysdep.c (sys_subshell):
13216 Fixed a compile warning, although in this case there's probably
13217 something wrong with this code, and it ought to be looked into
13218 more thoroughly by somebody who understands it.
13221 * window.c (Fwindow_text_area_height):
13222 * window.c (Fwindow_width):
13223 * window.c (Fwindow_full_width):
13224 * window.c (Fwindow_pixel_width):
13225 * window.c (debug_print_window):
13226 * window.c (syms_of_window):
13227 Added functions window-text-area-height and window-full-width,
13228 which are functions for returning various width and height
13229 characteristics of a window. (One of these functions is necessary
13230 for making the file dialog box work correctly, and the other one
13231 was added for completeness.) Also added a table to the
13232 documentation for window-height which describes the entire scheme
13233 for accessing width and height characteristics of a window.
13235 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13237 * nt.c (fstat): Added a comment for another problem with
13238 non-encapsulated [f]stat(), reported by Adrian Aichner
13239 <aichner@ecf.teradyne.com>.
13241 2000-03-11 Andy Piper <andy@xemacs.org>
13243 * window.c (make_dummy_parent): initialize subwindow instance
13245 (Fset_window_configuration): zero extent_modiff.
13247 2000-03-10 Andy Piper <andy@xemacs.org>
13249 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13250 more changes can be triggered.
13251 (Fredisplay_frame): ditto.
13252 (Fredraw_device): ditto.
13253 (Fredisplay_device): ditto.
13254 (redisplay_frame): make non-static.
13255 (redisplay_frame): call update_frame_gutter_geometry outside of
13258 * gutter.h: declare update_frame_gutter_geometry.
13260 * redisplay.h: declare redisplay_frame.
13262 * gutter.c (update_frame_gutter_geometry): move geometry changes
13263 in update_frame_gutters here. Geometry changes can only occur
13264 outside of redisplay.
13265 (update_frame_gutters): remove geometry change code.
13266 (Fredisplay_gutter_area): make sure that we are in display when we
13267 update and that we have flushed any size changes.
13269 2000-03-11 Andy Piper <andy@xemacs.org>
13271 * alloc.c (pdump_dump_data): remove i & count shadows.
13273 2000-02-27 Mike Alexander <mta@arbortext.com>
13275 * sysdep.h: Declare pdump_read_file
13277 * sysdep.c (pdump_read_file): New function
13279 * alloc.c (pdump_load): Call pdump_read_file to get the portable
13282 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
13284 * lrecord.h: add `lrecord_type_pgsetenv'.
13286 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
13288 * symsinit.h: declare (vars|syms)_of* functions.
13289 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13291 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
13293 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13295 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13298 * emacs.c (main_1): Call postgres initialization code.
13300 * postgresql.h: New file. PostgreSQL RDBMS support.
13301 * postgresql.c: New file.
13303 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
13305 * redisplay-output.c (redisplay_output_display_block): Disable
13308 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13310 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13311 (Fcanna_henkan_next): Ditto.
13312 (Fcanna_bunsetu_henkou): Ditto.
13313 (Fcanna_henkan_kakutei): Ditto.
13314 (Fcanna_henkan_end): Ditto.
13315 (Fcanna_henkan_quit): Ditto.
13316 (Fcanna_henkan_next): Set retun value correctly.
13317 (c2mu): Use unsigned char instead of signed char.
13319 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13321 * emacs.c (main_1): Always call syms_of_gui.
13322 * inline.c: include gui.h
13324 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13326 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13327 converted to Lisp_Object.
13328 (Qtop_bottom): New variable.
13329 (syms_of_redisplay): Initialize it.
13330 * redisplay.h (Vvisible_bell): Ditto.
13331 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13332 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13333 only flash top and bottom.
13335 2000-03-08 Andy Piper <andy@xemacs.org>
13337 * buffer.c (Frename_buffer): record new buffer name the right way.
13339 2000-03-08 Andy Piper <andy@xemacs.org>
13341 * glyphs.c (update_subwindow): increase hash depth so that widget
13342 items get picked up properly.
13344 * redisplay-output.c (compare_runes): increase hash depth so that
13345 widget items get picked up properly.
13347 2000-03-08 Andy Piper <andy@xemacs.org>
13349 * gutter.c (output_gutter): add some debug.
13351 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13352 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13353 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13355 * redisplay-output.c (compare_runes): use display_hash to
13356 determine if glyphs really are not the same.
13358 * glyphs.c (update_subwindow): check display_hash to see if
13359 anything really needs to be updated. If not then do
13360 nothing. Record the display_hash after updating.
13361 (image_instance_equal): compare the image_instance face also.
13363 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
13365 * redisplay.h: Fix comment style.
13367 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
13369 * consle-msw.h (struct mswindows_frame):
13370 Added new member paint_pending to indicate whether a WM_PAINT
13371 magic event has been queued for this frame.
13373 * event-msw.c (mswindows_drain_windows_queue):
13374 Don't queue a WM_PAINT magic event if one is already queued.
13375 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13377 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13379 2000-03-07 Didier Verna <didier@xemacs.org>
13381 * dired.c: #include `regex.h' after `sysfile.h'.
13383 2000-03-06 Martin Buchholz <martin@xemacs.org>
13385 * sound.c (init_nas_sound): Fix compiler warning.
13387 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13389 (MARK_STRUCT_AS_FREE):
13390 (MARK_STRUCT_AS_NOT_FREE):
13391 Make `gcc -fstrict-aliasing' work properly.
13393 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
13395 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13396 (mswindows_delete_device): Call CoUnnitialize().
13398 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13400 2000-02-25 <CraigL@DyCon.com>
13402 * process-nt.c: MinGW now has <shellapi.h>, but still needs
13405 * sysdep.c: This extern declaration for environ prevents MinGW
13406 from finding the variable in CRTDLL.DLL.
13408 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13410 (SHGFI_EXETYPE): ..
13411 (WM_MOUSEWHEEL): ..
13412 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13414 (MMRESULT): Removed, now defined in cygwin's windows headers.
13416 (uid_t,gid_t,pid_t,ssize_t): ..
13417 (_timeb): Removed, MinGW defines both _timeb and timeb.
13418 (HAVE_H_ERRNO): Added.
13419 (HAVE_TZNAME): Added, configure is not detecting this.
13421 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
13423 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13424 * syntax.c (syntax_match): Use it.
13426 * cmds.c: Import auto-fill-chars from FSF Emacs.
13427 (Vauto_fill_chars): New variables.
13428 (internal_self_insert): Check Vauto_fill_chars.
13430 Declare auto-fill-chars as a Lisp variable and initialize it.
13432 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
13434 * fileio.c (Fmake_symbolic_link):
13436 Run handlers even if local machine doesn't have symlinks.
13438 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
13440 * event-msw.c (mswindows_drain_windows_queue):
13441 Don't generate paint magic events for non-XEmacs frames.
13443 2000-03-05 Andy Piper <andy@xemacs.org>
13445 * redisplay.c (redisplay_frame): generate_displayable_area and
13446 friends assumes that we are not in GC, we therefore have to make
13447 sure that this doesn't happen.
13449 * gutter.c (calculate_gutter_size): generate_displayable_area
13450 assumes that we are not in GC, we therefore have to make sure that
13451 this doesn't happen.
13453 2000-03-05 Martin Buchholz <martin@xemacs.org>
13455 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13457 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
13459 * redisplay.c (regenerate_window): Make sure we set a sane value
13460 for end_pos even if we jump out of the loop.
13461 (regenerate_window): Answer Ben's question :-).
13462 (start_end_of_last_line): Add may_error argument.
13463 (start_of_last_line):
13464 (end_of_last_line): Pass may_error = 0.
13465 (end_of_last_line_may_error): New function.
13466 (pixel_to_glyph_translation): Use it, so we don't crash in
13469 2000-03-04 Andy Piper <andy@xemacs.org>
13471 * window.h (struct window): add gutter_extent_modiff.
13473 * window.c (allocate_window): zero out gutter_extent_modiff.
13475 * redisplay.h: declare sync_display_line_structs.
13477 * redisplay.c (add_glyph_rune): add a better comment.
13479 * redisplay-output.c (sync_display_line_structs): made non-static.
13480 (compare_runes): remove unneccesary glyph cachel access.
13482 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13484 * gutter.c (output_gutter): don't output the gutter if extent
13485 changes only involve extents in buffers. use 4 sets of display
13487 (gutter_extent_signal_changed_region_maybe): new function. Mark
13488 extents in gutters as changed.
13489 (update_frame_gutters): use 4 sets of display lines.
13490 (reset_gutter_display_lines): ditto.
13491 (free_frame_gutters): ditto.
13492 (redraw_exposed_gutter): force output of gutters.
13494 * frame.h (struct frame): add 4 sets of gutter display lines.
13496 * extents.c: (extent_changed_for_redisplay): signal changes to
13497 extents in strings in the gutter as well as extents in buffers.
13499 2000-03-02 Andy Piper <andy@xemacs.org>
13501 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13503 * frame.c (Fmake_frame): make sure the gutters get initialized
13504 after the frame is visible.
13505 (set_frame_selected_window): re-arrange compilation macros a
13507 (change_frame_size_1): mark gutters changed.
13509 * device.c (Fset_device_class): mark gutters changed.
13511 2000-03-01 Andy Piper <andy@xemacs.org>
13513 * window.c (window_top_frame_gutter_height): deleted.
13514 (window_bottom_frame_gutter_height): ditto.
13515 (window_left_frame_gutter_height): ditto.
13516 (window_right_frame_gutter_height): ditto.
13517 (window_top_gutter_height): don't use them.
13518 (window_bottom_gutter_height): ditto.
13519 (window_left_gutter_width): ditto.
13520 (window_right_gutter_width): ditto.
13521 (Fsplit_window): ditto.
13522 (Fwindow_pixel_edges): don't use border dimensions here.
13524 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13525 (update_scrollbar_instance): ditto.
13527 * redisplay.c (generate_modeline): don't take gutters into account.
13528 (generate_modeline): ditto.
13529 (redisplay_frame): small gutter display optimization.
13531 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13533 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13534 gutters into account.
13536 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13537 for window position and type.
13539 * gutter.c (get_gutter_coords): fix for frame gutters.
13540 (update_frame_gutters): update frame geometry if the gutters have
13542 (init_frame_gutters): record current gutter geometries.
13544 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13546 (mswindows_widget_instantiate): ditto.
13548 * frame.h (struct frame): add current_gutter_bounds.
13550 * frame.c (change_frame_size_1): position window and minibuffer
13551 appropriately taking into account the frame gutters.
13553 * frame-x.c: (x_initialize_frame_size): take into account the
13556 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
13558 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
13560 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
13562 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13564 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13566 * file-coding.c (reset_decoding_stream): Clear previous
13567 detection state when autodetect.
13569 2000-02-29 Didier Verna <didier@xemacs.org>
13571 * extents.c (set_extent_glyph_1): don't require extents to be
13574 2000-02-27 Andy Piper <andy@xemacs.org>
13576 * gutter.c (Fset_default_gutter_position): don't default left and
13577 right gutter visibility to t.
13578 (Fset_default_gutter_position): run
13579 default-gutter-position-changed-hook.
13580 (syms_of_gutter): add default-gutter-position-changed-hook.
13582 2000-02-26 Andy Piper <andy@xemacs.org>
13584 * specifier.c (Fmake_specifier): add gutter references.
13586 * gutter.h (RAW_WINDOW_GUTTER): new macro.
13588 * lisp.h: declare Fvalid_plist_p.
13590 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13592 (default_gutter_visible_p_changed_in_window): invalidate gutter as
13593 well as its visibility so that it gets reconstructed.
13594 (construct_window_gutter_spec): new function. Construct a string
13595 to be displayed in the gutter from a plist of strings. Take care
13596 to only use elements that are declared as visible.
13597 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13599 (gutter_validate): allow plists of strings in the specifier.
13600 (gutter_specs_changed): construct the real_gutter from the gutter
13601 specs using construct_window_gutter_spec.
13602 (gutter_visible_validate): gutter-visible is a new specifier type.
13603 (Fgutter_visible_specifier_p): new function for the new specifier.
13604 (syms_of_gutter): declare gutter-visible and
13605 Fgutter_visible_specifier_p.
13606 (specifier_type_create_gutter): intitalize new gutter-visible
13608 (reinit_specifier_type_create_gutter): ditto.
13609 (specifier_vars_of_gutter): use new specifier type for gutter
13611 (init_frame_gutters): construct real_gutter correctly.
13612 (Fgutter_specifier_p): beef up documentation.
13613 (Fgutter_size_specifier_p): ditto.
13615 * winslots.h: add real_gutter slots.
13617 2000-02-25 Andy Piper <andy@xemacs.org>
13619 * device-msw.c: Be kind to older cygwin versions. From Raymond
13620 Toy <toy@rtp.ericsson.se>.
13622 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13623 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13625 2000-02-25 Martin Buchholz <martin@xemacs.org>
13627 * elhash.c (MARK_OBJ): Practice macro hygiene.
13629 2000-02-24 Martin Buchholz <martin@xemacs.org>
13631 * miscplay.c: s/__inline__/inline/g;
13632 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13633 (get_device_compdc): INLINE ==> static inline
13634 * *.[ch]: Change INLINE to INLINE_HEADER globally.
13635 find -name '*.h' | \
13636 xargs global-replace \
13637 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13639 2000-02-25 Andy Piper <andy@xemacs.org>
13641 * window.c (window_top_frame_gutter_height): new function.
13642 (window_top_window_gutter_height): ditto.
13643 (window_top_gutter_height): use them.
13644 (window_bottom_frame_gutter_height): new function.
13645 (window_bottom_window_gutter_height): ditto.
13646 (window_bottom_gutter_height): use them.
13647 (window_left_window_gutter_width): new function.
13648 (window_left_frame_gutter_width): ditto.
13649 (window_left_gutter_width): use them.
13650 (window_right_window_gutter_width): new function.
13651 (window_right_frame_gutter_width): ditto.
13652 (window_right_gutter_width): use them.
13653 (window_pixel_height): new function. calulate window pixel height
13654 with frame gutter involvement.
13655 (Fsplit_window): calculate new sizes taking frame gutters into
13657 (window_char_height_to_pixel_height): don't include frame gutters.
13658 (window_char_height): use window_pixel_height.
13659 (window_pixheight): rename from window_pixel_height.
13660 (change_window_height): use it.
13661 (window_pixel_height_to_char_height): don't include frame gutters.
13662 (window_char_width_to_pixel_width): ditto.
13664 2000-02-25 Andy Piper <andy@xemacs.org>
13666 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13669 2000-02-24 Martin Buchholz <martin@xemacs.org>
13671 * alloc.c (staticpro):
13672 (staticpro_nodump):
13677 (compact_string_chars):
13678 (pdump_dump_wired):
13679 Convert: if (foo) abort(); ==> assert (! foo);
13681 * eldap.c (Fldap_search_basic):
13685 Fix compiler warnings, and possible crashes if (random) return
13686 value were to be used.
13688 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13690 * device-msw.c: Workaround ResetDC failure.
13692 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13693 applying a devmode.
13695 * redisplay-msw.c (get_frame_dc): Added start_page_p.
13696 (mswindows_text_width): Do not start printer page.
13698 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13700 * glyphs-msw.c: Added image methods to msprinter console and
13701 msprinter-specific image instantiation.
13703 2000-02-20 Mike Alexander <mta@arbortext.com>
13705 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13706 to avoid crashes when selection-sets-clipboard is on
13707 (mswindows_own_selection): ditto
13709 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13712 * redisplay-msw.c (get_frame_dc):
13713 (get_frame_compdc):
13715 * device-msw.c (mswindows_init_device):
13716 (mswindows_delete_device):
13717 (msprinter_init_device):
13718 (msprinter_delete_device):
13719 * frame-msw.c (mswindows_init_frame_1):
13720 (mswindows_delete_frame):
13721 (msprinter_init_frame_3):
13722 (msprinter_delete_frame): Move compatible DC to device object from
13723 frame object, for both mswindows and msprinter. Only one at a time
13724 is needed, it is a real waste to have one per frame!
13726 2000-02-23 Andy Piper <andy@xemacs.org>
13728 * glyphs.c: add dynamic width and height elements.
13729 (image_instance_equal): ditto.
13731 * glyphs-widget.c (widget_query_geometry): calculate width and
13732 height dynamically if required.
13733 (initialize_widget_image_instance): initialize dynamic dimensions.
13734 (widget_instantiate): pick-up dynamic dimensions.
13736 * glyphs.h (struct Lisp_Image_Instance): add width and height for
13737 dynamic determination. Add appropriate macros.
13739 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13741 (WINDOW_GUTTER_SIZE): ditto.
13742 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13744 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13746 (get_frame_dc): ditto.
13748 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13751 2000-02-23 Martin Buchholz <martin@xemacs.org>
13753 * XEmacs 21.2.31 is released.
13755 2000-02-22 Ben Wing <ben@xemacs.org>
13757 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13759 2000-02-22 Andy Piper <andy@xemacs.org>
13761 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13763 2000-02-21 Mike Sperber <mike@xemacs.org>
13767 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13770 2000-02-21 Mike Sperber <mike@xemacs.org>
13772 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13774 2000-02-21 Martin Buchholz <martin@xemacs.org>
13776 * XEmacs 21.2.30 is released.
13778 2000-02-20 Martin Buchholz <martin@xemacs.org>
13780 Performance hacking.
13782 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13783 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13784 * emacs.c (main_1):
13786 * console.c (DEFVAR_CONSOLE_LOCAL_1):
13787 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13788 * symeval.h (DEFVAR_SYMVAL_FWD):
13789 * symbols.c (guts_of_unbound_marker):
13790 Make all c_readonly objects also lisp_readonly and marked for life.
13791 * lrecord.h (struct lrecord_implementation):
13792 Document flags better.
13793 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13794 * lrecord.h (DECLARE_LRECORD):
13795 * lrecord.h (XSETRECORD):
13796 * lrecord.h (RECORDP):
13797 * lrecord.h (RECORD_TYPEP):
13798 * lrecord.h (RECORD_MARKER): New.
13799 * lrecord.h (error_check_*):
13800 * lrecord.h (CONCHECK_NONRECORD):
13801 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13802 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13803 * lrecord.h (set_lheader_implementation):
13804 * lrecord.h (enum lrecord_type): New.
13805 * symeval.h (SYMBOL_VALUE_MAGIC_P):
13806 * alloc.c (disksave_object_finalization_1):
13807 * alloc.c (mark_object):
13808 * alloc.c (lrecord_type_index):
13809 * alloc.c (tick_lcrecord_stats):
13810 * alloc.c (Fgarbage_collect):
13811 * alloc.c (init_alloc_once_early):
13812 * alloc.c (pdump_load):
13813 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
13814 * alloc.c (lrecord_type_index): Delete.
13815 Make lisp object type indexes be constant.
13816 Makes (byte-compile) 5% faster.
13817 Put all marker functions into their own array.
13818 Makes (garbage-collect) 5% faster.
13819 Optimize SYMBOL_VALUE_MAGIC_P.
13820 Makes (byte-compile) 2-3% faster.
13821 * config.h.in (gc_checking_assert): New.
13822 * alloc.c: Use gc_checking_assert().
13823 * .dbxrc: Make compatible with new object type implementation.
13824 * .gdbinit: Make compatible with new object type implementation.
13825 * alloc.c: Delete all symbols defined only for debugging, such as
13826 Lisp_Type_Vector and lrecord_charset.
13828 2000-02-21 Andy Piper <andy@xemacs.org>
13830 * gui-msw.c (Fmswindows_shell_execute): fix file location
13833 * buffer.c (Fkill_buffer): remove buffer from alist buffer
13834 unshowing so that set_window_buffer doesn't undo
13835 kill_buffer_hook's hard work.
13837 * glyphs-widget.c (tab_control_query_geometry): don't count the
13838 first item when calculating geometry.
13840 * glyphs.c (map_subwindow): remove redundant code.
13841 (update_frame_subwindows): be more circumspect about when to
13844 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
13845 when items haven't changed. Update faces if faces have changed as
13846 well as just the widget face.
13847 (x_tab_control_update): Update faces if faces have changed as well
13848 as just the widget face.
13850 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
13852 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
13854 (build_syscolor_string): Use mswindows_color_to_string to try to
13856 (mswindows_device_system_metrics): Reverse the foreground and
13857 background colors so that they match the documentation.
13859 * objects-msw.c: (mswindows_X_color_map): tweak some values so
13860 they match the default Windows palette.
13861 (mswindows_color_to_string): New function.
13863 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
13865 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
13867 2000-02-18 Olivier Galibert <galibert@pobox.com>
13869 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
13870 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
13872 * symbols.c (init_symbols_once_early): Removed obsolete
13873 DATA_SEG_BITS related kludge.
13874 (defvar_magic): Ditto.
13876 * malloc.c: Removed obsolete DATA_SEG_BITS
13878 * mem-limits.h: Ditto.
13880 * Makefile.in.in: Removed obsolete HAVE_SHM
13883 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
13885 * device-msw.c (mswindows_delete_device): Free DDE string
13888 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13890 * keymap.c (get_keyelt):
13891 * unexnt.c (unexec):
13892 * vm-limit.c (memory_warnings):
13893 * ntheap.c (recreate_heap):
13894 * ntheap.h (UNINIT_PTR):
13895 * select-msw.c (Fmswindows_get_clipboard):
13896 (Fmswindows_set_clipboard):
13897 * objects-msw.h (MSWINDOWS_BAD_HFONT):
13899 * menubar-msw.c (displayable_menu_item):
13901 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
13902 * sysdep.c (sys_subshell):
13903 * process-nt.c (nt_create_process):
13904 * nt.c (normalize_filename):
13905 (dostounix_filename):
13906 (unixtodos_filename):
13907 * ntproc.c (win32_executable_type):
13908 * ntplay.c (play_sound_data_1):
13910 * editfns.c (get_home_directory):
13911 * event-msw.c (struct winsock_stream):
13912 (mswindows_dde_callback):
13913 * device-msw.c (msprinter_init_device):
13914 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
13916 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
13917 mswindows_clear_toolbar were swapped!
13919 * objects-msw.c:(colormap_t):
13921 * emacs.c (struct standard_args): Fixed const jumble.
13923 * glyphs-widget.c (update_widget): Fixed comparison notation.
13925 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
13927 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
13928 __declspec(noreturn) syntax.
13930 2000-02-19 Martin Buchholz <martin@xemacs.org>
13932 * eldap.c (Fldap_open):
13933 (Fldap_search_basic):
13936 Use new coding system conversion macros.
13938 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13940 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
13942 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
13944 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
13945 (Fldap_add, Fldap_modify, Fldap_delete): New functions
13947 * eldap.c (Qadd, Qreplace): New constant symbols
13948 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
13949 interruptions by XEmacs signals
13950 Remove unnecessary calls to slow_down_interrupts and
13951 speed_up_interrupts
13952 (Fldap_search_basic): Renamed from Fldap_search_internal
13953 Added new optional parameter VERBOSE that triggers the
13954 display of progress messages
13955 Remove unnecessary calls to slow_down_interrupts and
13956 speed_up_interrupts
13957 LDAP result code analysis rewritten
13958 (Fldap_add, Fldap_modify, Fldap_delete): New functions
13959 (syms_of_eldap): Define the new symbols and functions
13962 2000-02-17 Martin Buchholz <martin@xemacs.org>
13964 * realpath.c: Determine PATH_MAX maximally portably.
13966 * insdel.c (bytecount_to_charcount): Optimize.
13967 The function used to be optimized for entirely ASCII sequences.
13968 Now it is optimized for successive characters from the same
13969 charset. This also wins big for _mostly_ ASCII sequences.
13971 * fileio.c (Ffile_truename): convert return from realpath() using
13972 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
13973 - Rewrite GCPROing slightly.
13975 * sysdep.c (sys_open): Do filename conversion, like all other
13976 sys_* functions. Fixes bug:
13977 (let ((file-name-coding-system 'iso-8859-2))
13978 (write-region x y latin2-name))
13979 ==> writes filename using internal encoding.
13981 2000-02-18 Martin Buchholz <martin@xemacs.org>
13983 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
13984 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
13985 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
13986 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
13987 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
13988 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
13989 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
13990 (CONST_IF_NOT_DEBUG): Delete.
13991 * alloc.c (this_one_is_unmarkable): Delete.
13992 (mark_object): Don't check for this_one_is_unmarkable. Use the
13993 c_readonly flag instead.
13994 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
13996 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
13998 * event-msw.c (mswindows_drain_windows_queue):
13999 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14000 away redundant repaint events.
14002 2000-02-17 Andy Piper <andy@xemacs.org>
14004 * redisplay.h: declare mark_redisplay_structs.
14006 * redisplay.c (redisplay_window):
14007 (redisplay_frame): don't check subwindows_state_changed.
14008 (mark_redisplay): mark gutters here.
14010 * glyphs.c: (instantiate_image_instantiator): always layout if we
14011 haven't done so already.
14012 (allocate_image_instance): don't mark as dirty.
14013 (update_subwindow): bind inhibit_quit.
14015 * gutter.c (mark_gutters): new function.
14017 * glyphs-x.c (x_update_widget): Always resize to get round a
14020 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14021 breaking absolutely everything.
14023 * gutter.h: declare mark_gutters.
14025 2000-02-16 Martin Buchholz <martin@xemacs.org>
14027 * XEmacs 21.2.29 is released.
14029 2000-02-15 Olivier Galibert <galibert@pobox.com>
14031 * fns.c (size_bit_vector): Fix computation of the size.
14033 2000-02-15 Martin Buchholz <martin@xemacs.org>
14035 * *.[ch]: Change CONST to const globally.
14036 find -name '*.[ch]' | \
14037 xargs global-replace \
14038 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14039 - Remove vestigial references to CONST_IS_LOSING
14041 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
14043 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14044 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14045 events instead of dispatching them directly.
14046 (mswindows_handle_paint): New function to do repainting.
14047 (mswindows_wnd_proc):
14048 (emacs_mswindows_handle_magic_event): Call above function.
14050 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
14052 * objects-msw.c (mswindows_create_font_variant): Return the new
14054 (initialize_font_instance): Get font metrics from the underlined
14055 variant of the font to cope with the case where the underlined
14056 font has a bigger descent.
14058 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
14060 * gui.c (gui_item_accelerator): Return the first underlined
14061 character in item name.
14063 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14065 * lisp.h: Added Qprinter.
14067 * general.c (syms_of_general): Initialized it.
14069 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14071 (get_frame_compdc): Made inline.
14073 * console.h (struct console_methods): Added eject_page method.
14075 * frame.h: Added FRAME_DISPLAY_P and friends.
14076 Aligned backslahes in many macros in more readable fashion.
14077 Added page_number to struct frame, and an accessor macro
14080 * defice.h: Added DEVICE_DISPLAY_P and friends.
14082 * device.c (Fdevice_printer_p): Used these.
14084 * frame.c (allocate_frame_core): Initialize page number.
14085 (Fprint_job_page_number):
14086 (Fprint_job_eject_page): Implemented.
14088 * frame-msw.c (msprinter_eject_page): Added method.
14089 (msprinter_start_page): Added.
14091 * window.c (Fwindow_truncated_p): Fixed docstring.
14092 (Fwindow_last_line_visible_height): Implemented.
14094 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
14096 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14098 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14100 * syntax.c (scan_words): Always advance at least one character.
14102 2000-02-13 Andy Piper <andy@xemacs.org>
14104 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14105 to make sure the glyph is in the cachels.
14107 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14108 global image instance flag.
14109 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14110 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14112 * glyphs.c (allocate_image_instance): set dirty bits correctly.
14113 (Fset_image_instance_property): mark layout as changed.
14114 (invalidate_glyph_geometry_maybe): mark layout as changed.
14115 (glyph_width): use new NEEDS_LAYOUT macro.
14116 (glyph_ascent): ditto.
14117 (glyph_descent): ditto.
14118 (glyph_height): ditto.
14119 (image_instance_layout): mark layout as clean after laying out.
14120 (update_subwindow): don't mark layout as clean here.
14122 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14123 should no longer be needed.
14125 * glyphs-x.c (x_update_widget): sanitize asserts.
14126 (x_finalize_image_instance): sanitize assignment to widgets.
14128 * glyphs-widget.c (widget_instantiate): don't need to clear the
14131 2000-02-13 Martin Buchholz <martin@xemacs.org>
14133 * sysdep.c (getcwd): Use standard prototype.
14134 * sysdep.h (getcwd): Use standard prototype.
14136 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14137 (sequence, start, end).
14138 Remove redundant type checking.
14139 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14140 view of `caller-protects') to avoid a crash where the real fix was
14143 2000-02-12 Martin Buchholz <martin@xemacs.org>
14145 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14147 * s/sol2.h: Remove feature macro initialization.
14149 * alloc.c (alloc_lcrecord): Add more type checking assertions.
14150 (vector_hash): New. Code from internal_hash.
14152 Fix up allocation subsystem comments.
14154 * config.h.in: Add __EXTENSIONS__ for Solaris.
14156 * systime.h (EMACS_GETTIMEOFDAY): New.
14157 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14158 Remove Solaris-specific code.
14159 Use void* for the (ignored) second arg for gettimeofday().
14161 * elhash.c (hash_table_hash): Implement it, finally.
14162 * elhash.c: Use hashcode_t.
14164 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14165 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14167 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14168 * fns.c (size_bit_vector):
14169 * alloc.c (size_vector):
14170 (make_vector_internal):
14171 (make_bit_vector_internal):
14172 (sweep_bit_vectors_1):
14173 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14175 2000-02-10 Martin Buchholz <martin@xemacs.org>
14177 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14178 Include strings.h to avoid warnings for bzero and strcasecmp.
14180 2000-02-10 Olivier Galibert <galibert@pobox.com>
14182 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14183 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14185 * fns.c (size_bit_vector): New. Declare bit vectors as a
14188 2000-02-10 Olivier Galibert <galibert@pobox.com>
14190 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14191 use a value field instead.
14192 (symbol_value_forward_forward): Use value field.
14193 (DEFVAR_SYMVAL_FWD): Use value field.
14194 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
14195 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14196 (DEFVAR_CONST_INT): Ditto.
14197 (DEFVAR_BOOL): Ditto.
14198 (DEFVAR_CONST_BOOL): Ditto.
14199 (DEFVAR_INT_MAGIC): Ditto.
14200 (DEFVAR_BOOL_MAGIC): Ditto.
14202 * symbols.c (guts_of_unbound_marker): Use value field.
14203 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14204 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14206 * lisp.h: Declare dumpopaque and noninteractive1.
14208 * alloc.c (dumpopaque): Added.
14209 (pdump_dump_opaquevec): Added.
14210 (pdump): Call pdump_dump_opaquevec to dump opaque data.
14211 (pdump_load): Reload opaque data. Sync noninteractive1 with
14214 2000-02-10 Andy Piper <andy@xemacs.org>
14216 * glyphs.c (image_instance_layout): if the size changes, mark it
14219 * redisplay-output.c (redisplay_output_layout): Update the
14221 (redisplay_output_subwindow): ditto.
14223 * glyphs.c (update_subwindow): make sure we reset flags for
14224 layouts as well as everything else.
14226 * glyphs-widget.c (layout_layout): don't need to set the instances
14229 2000-02-09 Martin Buchholz <martin@xemacs.org>
14231 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
14232 not HAVE_DLOPEN, which is a lower-level thing.
14234 * .cvsignore: Ignore gmon.out
14236 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
14238 * .cvsignore: Ignore portable dumper xemacs.dmp file
14240 2000-02-09 Andy Piper <andy@xemacs.org>
14242 * redisplay-output.c (redisplay_output_layout): be more clever
14243 about when we output based on the changed flags.
14245 * glyphs.h (struct image_instantiator_methods): add update_method.
14246 (struct Lisp_Image_Instance): add changed flags. Declare new
14247 macros for manipulating them.
14249 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14250 (image_instance_parent_glyph): find an image_instance's parent
14251 glyph or image_instance.
14252 (image_instance_layout): mark the size as changed.
14253 (set_image_instance_dirty_p): new function. mark an image
14254 instance, plus all of its parents, as dirty.
14255 (Fset_image_instance_property): use it.
14256 (Fglyph_animated_timeout_handler): use it.
14257 (update_subwindow): call update_widget and device methods for
14258 update_subwindow. Mark all changed flags as clean.
14259 (Fresize_subwindow): mark size as changed.
14261 * glyphs-x.c (x_finalize_image_instance): try and detect gc
14263 (x_update_subwindow): only resize subwindows here.
14264 (x_update_widget): new function. Update all changed properties of
14266 (x_resize_subwindow): deleted.
14267 (x_widget_set_property): deleted.
14268 (x_progress_gauge_set_property): deleted.
14269 (x_progress_gauge_update): new function. Implement recorded
14271 (x_tab_control_update): ditto.
14272 (x_tab_control_set_property): deleted.
14273 (console_type_create_glyphs_x): declare new functions.
14274 (image_instantiator_format_create_glyphs_x): ditto.
14276 * glyphs-widget.c (widget_set_property): mark text changed.
14277 (update_widget): new function. Update properties of a widget.
14278 (widget_instantiate): for layouts make sure we set their
14279 children's parent correctly.
14280 (tab_control_set_property): new function. Record changes that will
14281 take place under redisplay's control.
14282 (progress_gauge_set_property): ditto.
14283 (image_instantiator_progress_guage): declare new functions.
14284 (image_instantiator_tab_control): ditto.
14286 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14288 (mswindows_update_widget): new function. Update all properties on
14289 a widget that have changed.
14290 (mswindows_button_update): new function. Update a button's set
14292 (mswindows_tab_control_update): new function. Update the items in
14294 (mswindows_tab_control_set_property): deleted.
14295 (mswindows_progress_gauge_update): new function. Update the
14296 progress gauge's progress.
14297 (mswindows_widget_set_property): deleted. This is all done
14298 asynchronously now.
14299 (mswindows_progress_gauge_set_property): ditto.
14300 (console_type_create_glyphs_mswindows): declare new methods.
14301 (image_instantiator_format_create_glyphs_mswindows): ditto.
14303 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14304 (msprinter_set_frame_properties): ditto.
14306 * console.h (struct console_methods): Add update_widget_method.
14308 2000-02-09 Andy Piper <andy@xemacs.org>
14310 * gui-msw.c (Fmswindows_shell_execute): Make
14311 mswindows-shell-execute industrial strength.
14313 2000-02-08 Martin Buchholz <martin@xemacs.org>
14315 * lrecord.h: Make macro argument `props' match member function `plist'.
14318 * fns.c (Fremprop):
14319 * fns.c (Fobject_plist):
14322 Object property list frobbing cleanup.
14323 - Allow any lisp object (compared with `eq'), not just symbols, as
14324 keys in object plists.
14325 - Move symbol plist frobbing into symbols.c, where it belongs.
14326 - Move string plist frobbing into alloc.c, where it belongs.
14327 - Everything's an lrecord now, so no need to test for symbolp, etc.
14328 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14330 * extents.c: Reorder code to remove declarations.
14332 * frame.h (store_in_alist): Remove useless declaration.
14334 2000-02-07 Martin Buchholz <martin@xemacs.org>
14336 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14337 * config.h.in: Add HAVE_XCONVERTCASE.
14339 2000-02-07 Andy Piper <andy@xemacs.org>
14341 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14342 it breaks many things.
14344 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
14346 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14347 actually can start a common comment type.
14348 * src/syntax.h (SYNTAX_END_P): ditto for end.
14350 2000-02-07 Martin Buchholz <martin@xemacs.org>
14352 * XEmacs 21.2.28 is released.
14354 2000-02-06 Martin Buchholz <martin@xemacs.org>
14356 * event-Xt.c (x_keysym_to_character): New.
14357 (maybe_define_x_key_as_self_inserting_character): New.
14358 (x_has_keysym): New.
14359 Auto-define all keys on the keyboard as self-insert-key.
14361 2000-02-02 Martin Buchholz <martin@xemacs.org>
14363 * menubar.c (vars_of_menubar): A small code simplification.
14365 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14368 * ExternalClient.c:
14369 * EmacsShell-sub.c:
14372 Use consistent style for specifying X resources.
14374 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14375 This makes (dontusethis-set-symbol-value-handler) actually usable.
14377 * lrecord.h (lrecord_decription_type):
14378 * alloc.c (pdump_register_sub):
14381 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14382 Comply with XEmacs coding style.
14383 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14384 args, and XD_LISP_OBJECT_ARRAY with 3 args.
14386 * keymap.c (Faccessible_keymaps):
14387 Make (accessible-keymaps map "\C-h") do the Right Thing.
14388 Make (accessible-keymaps map []) do the Right Thing.
14389 Make (accessible-keymaps map "") do the Right Thing.
14390 (check_keymap_definition_loop): New function.
14391 (keymap_store_internal): Keep luser from shooting self in foot,
14392 via (define-key ctl-x-4-map "p" global-map).
14393 Remove fullness slot from struct Lisp_Keymap, since hash tables
14395 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14397 2000-01-30 Martin Buchholz <martin@xemacs.org>
14399 * redisplay.c (init_redisplay): Fix small memory leak.
14401 * elhash.c (pdump_reorganize_hash_table):
14402 Rename from reorganize_hash_table. Change prototype.
14403 Reuse the original memory for hentries. Save 100k.
14404 * alloc.c (PDUMP_READ): new macro.
14405 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14406 * alloc.c: No need to #ifndef before #undef.
14408 * print.c: Allow debug_print() to print readably by modifying
14409 debug_print_readably. Use consistent variable names.
14411 * .dbxrc: Try to get things to work even if stopped in a function
14412 without source available by explicitly specifying source files.
14413 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14415 * unexnt.c (_start): Removed bogus code which caused loading heap
14416 from differrent executable file.
14417 Removed bogus assignment to _fmode, which caused inconsistencies.
14419 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14421 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14422 Have spawnve encapsulation regard DONT_ENCAPSULATE.
14423 Do not preliminary `#define signal sigset'.
14425 * systime.h: Do not prototype environ on windows nt and cygwin,
14426 this conflicts with system header.
14428 * syssignal.h: Use correct define for WINDOWSNT
14430 * sysdep.h: Do not prototype environ on windows nt, this conflicts
14431 with system header.
14433 * sysdep.c (near start of file): Fixed commentary and rearranged
14434 ifdefs in readable order.
14435 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14438 (end_of_data): Do not compile in if using PDUMP.
14440 * symsinit.h: Prototyped vars_of_nt().
14442 * ntproc.c (windows9x_p): Added, instead of os_subtype.
14443 (find_child_console): Use it.
14444 (sys_kill): Use it.
14446 * ntheap.h: Do not extern os_subtype.
14448 * ntheap.c (cache_system_info): Do not cache unneeded:
14449 nt_major_version, nt_minor_version and os_subtype.
14450 (recreate_heap): Do not compile in when PDUMPing.
14452 * nt.c (geteuid and friends): Use the new varibale
14453 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14454 (init_user_info): Removed the above mentioned hackery.
14455 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14456 stat has been fixed in the C runtime.
14457 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14459 * file-coding.c (struct file_coding_dump): Do not define
14460 ucs_to_mule_table in the struct if not MULE.
14461 (struct struct lrecord_description fcd_description_1): Do not dump
14464 * emacs.c (main_1): Call vars_of_nt().
14465 (right before Fdump_emacs_data): Don't need lastfile if using both
14466 portabe dumper and system malloc.
14468 * alloc.c (Fmemory_limit): Conditionalized out.
14469 (pdump): Use OPEN_BINARY for the portable dump file.
14470 (pdump_load): Ditto.
14472 2000-02-02 Mike Alexander <mta@arbortext.com>
14474 * nt.c (convert_time): Set tm_isdst before calling mktime and
14475 avoid calling it at all if the compiler supports 64 bit integers.
14476 Also initialize utc_base_ft before using it.
14478 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
14480 * frame.c (change_frame_size_1): Take f->internal_border_width
14481 into consideration when calculating the width of the frame.
14483 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14485 * window.c (frame_min_height):
14486 (frame_size_valid_p):
14487 (frame_pixsize_valid_p): Added.
14488 (check_frame_size): Generalized.
14490 * window.h: Prototyped the above.
14493 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14494 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14495 Deleted Vwin32_* and Vbinary_process_* unused variables.
14497 * device-msw.c (msprinter_init_device): Do not get printer font
14498 list; Added DEVMODE functions.
14500 * frame-msw.c: Added lots of printer code.
14502 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14505 * console-msw.h: Added more msprinter device private slots.
14507 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14509 * event-msw.c (key_needs_default_processing_p): Added.
14510 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14512 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14514 * glyphs.c (image_instance_layout): Mark image instance as clean
14516 (glyph_dirty_p): Removed redundant function.
14517 (invalidate_glyph_geometry_maybe): Added.
14518 (update_glyph_cachel_data): Call it.
14520 * glyphs.h: Prototyped it.
14522 * redisplay.c (add_glyph_rune): Call it.
14523 (redisplay_window): Reset glyphs cachels when frame faces have
14524 changed, thus forcing recomputation of built-in border glyphs.
14526 2000-01-30 Martin Buchholz <martin@xemacs.org>
14528 * Makefile.in.in: Make portable dumper and purify play well together.
14529 Add imperfect, but better than nothing, support for pdump.
14530 Remove xemacs.dmp when temacs is re-generated.
14531 Don't ignore errors when dumping xemacs.
14533 * symbols.c (maybe_call_magic_handler): Remove one magic number.
14535 2000-01-28 Andy Piper <andy@xemacs.org>
14537 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14538 (setup_normal_frame): ditto.
14539 (setup_frame_without_minibuffer): ditto.
14540 (setup_minibuffer_frame): ditto.
14541 (delete_frame_internal): ditto.
14542 (Fmake_frame_invisible): ditto.
14543 (Ficonify_frame): ditto.
14545 * window.h: change Fset_window_buffer signature.
14547 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14548 (Fset_window_buffer): allow recording of buffer if the window is
14549 the selected window.
14550 (window_loop): Use new Fset_window signature.
14552 2000-01-23 Daniel Pittman <daniel@danann.net>
14554 * config.h.in: Added template for `HAVE_ATHENA_3D'
14556 2000-01-29 Andy Piper <andy@xemacs.org>
14558 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14560 * gutter.c (output_gutter): Don't output if the window isn't live.
14562 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14564 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14565 of 01/12/00: Moved SetFocus back here where it belongs.
14567 2000-01-23 Andy Piper <andy@xemacs.org>
14569 * s/cygwin32.h: declare printer things.
14571 2000-01-26 Andy Piper <andy@xemacs.org>
14573 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14576 2000-01-24 Andy Piper <andy@xemacs.org>
14578 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14579 (mswindows_button_instantiate): Make sure glyph is a pixmap.
14581 * glyphs-widget.c (widget_instantiate): Avoid shadows.
14583 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14585 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14587 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14588 (mswindows_output_display_block): Avoid local shadows.
14590 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14591 (mswindows_enqueue_mouse_button_event): ditto.
14592 (mswindows_handle_gui_wm_command): remove declaration.
14594 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14597 * console-msw.h: Avoid shadows.
14598 (mswindows_get_toolbar_button_text):
14599 (emacs_mswindows_create_stream_pair):
14600 (emacs_mswindows_delete_stream_pair):
14601 (mswindows_handle_toolbar_wm_command): declare.
14603 * device-msw.c (build_syscolor_string): Avoid shadows.
14605 2000-01-23 Andy Piper <andy@xemacs.org>
14607 * glyphs-widget.c (widget_instantiate): reverse the items for
14608 layouts so that children are in the expected order.
14610 2000-01-28 Martin Buchholz <martin@xemacs.org>
14612 * ralloc.c: safe_bcopy ==> memmove
14613 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14614 * s/msdos.h: Remove BCOPY macros.
14615 * insdel.c (gap_right): Remove BCOPY conditional code.
14616 * insdel.c (gap_left): Remove BCOPY conditional code.
14617 XEmacs demands a working ANSI C compiler - hence memmove.
14619 * regex.c (regex_compile): Remove accidental use of trigraphs.
14621 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14623 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14626 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14628 * event-msw.c (mswindows_drain_windows_queue): Added the
14630 (mswindows_need_event): Commented the call to
14631 mswindows_drain_windows_queue().
14632 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14635 * console-msw.h: Moved a few function prototypes here from
14638 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14639 parameter from unsigned short to unsigned long.
14640 (Fmswindows_shell_execute): Added return value.
14642 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14644 * sysdep.c (init_system_name):
14645 process-unix.c (unix_canonicalized_host_name):
14646 Don't call freeaddrinfo() if getaddrinfo() fails.
14648 * process-unix.c (unix_open_unix_network_stream):
14649 Moved the code to get a port # into address loop.
14651 2000-01-27 Martin Buchholz <martin@xemacs.org>
14653 * buffer.c (reinit_vars_of_buffer):
14654 The right place to initialize conversion_in_dynarr and
14655 conversion_out_dynarr.
14657 * alloc.c (pdump): Use the real open() till sys_open() is functional.
14659 * process-unix.c (unix_canonicalize_host_name): Muleize.
14660 (unix_open_network_stream): Muleize.
14662 * buffer.h: Fix up prototypes for ralloc.c functions.
14664 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14665 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14666 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14667 instead of gethostbyname()
14668 * process-unix.c: In unix_canonicalize_host_name() and
14669 unix_open_network_stream(), add code to use getaddrinfo()
14670 instead of gethostbyname().
14672 2000-01-27 Daniel Pittman <daniel@danann.net>
14674 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14675 libs when built with flat Athena.
14677 2000-01-27 Martin Buchholz <martin@xemacs.org>
14679 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14680 Use coding standards for function prototypes.
14682 2000-01-25 Martin Buchholz <martin@xemacs.org>
14684 * dialog-msw.c (push_lisp_string_as_unicode):
14685 * doc.c (unparesseuxify_doc_string):
14686 * dired.c (Fuser_name_completion_1):
14687 * dired.c (Fuser_name_all_completions):
14688 * dired.c (free_user_cache):
14689 * dired.c (user_name_completion):
14690 * console-x.c (get_display_arg_connection):
14691 * minibuf.c (clear_echo_area_internal):
14692 * minibuf.c (echo_area_append):
14693 * eldap.c (Fldap_open):
14694 * eldap.c (Fldap_search_internal):
14695 * frame-x.c (x_set_frame_text_value):
14696 * frame-x.c (x_set_frame_properties):
14697 * frame-x.c (x_create_widgets):
14698 * redisplay-tty.c (term_get_fkeys_1):
14699 * objects-x.c (x_parse_nearest_color):
14700 * objects-x.c (x_valid_color_name_p):
14701 * objects-x.c (x_initialize_font_instance):
14702 * objects-x.c (x_list_fonts):
14703 * objects-x.c (x_find_charset_font):
14704 * tooltalk.c (Fadd_tooltalk_message_arg):
14705 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14706 * tooltalk.c (Fadd_tooltalk_pattern_arg):
14707 * process-unix.c (unix_create_process):
14708 * ntproc.c (sys_spawnve):
14709 * sound.c (Fplay_sound_file):
14710 * sound.c (Fplay_sound):
14711 * buffer.c (init_initial_directory):
14712 * buffer.c (init_buffer):
14713 * editfns.c (init_editfns):
14714 * editfns.c (Ftemp_directory):
14715 * editfns.c (Fuser_full_name):
14716 * editfns.c (uncache_home_directory):
14717 * editfns.c (get_home_directory):
14718 * editfns.c (Fuser_home_directory):
14719 * editfns.c (Fformat_time_string):
14720 * editfns.c (Fcurrent_time_string):
14721 * gui-x.c (button_item_to_widget_value):
14722 * database.c (Fopen_database):
14723 * event-Xt.c (x_to_emacs_keysym):
14724 * event-Xt.c (x_event_to_emacs_event):
14725 * event-Xt.c (describe_event_window):
14726 * event-msw.c (mswindows_wnd_proc):
14727 * glyphs-eimage.c (jpeg_instantiate):
14728 * glyphs-eimage.c (gif_instantiate):
14729 * glyphs-eimage.c (png_instantiate):
14730 * glyphs-eimage.c (tiff_instantiate):
14731 * glyphs-x.c (xbm_instantiate_1):
14732 * glyphs-x.c (x_xbm_instantiate):
14733 * glyphs-x.c (x_xface_instantiate):
14734 * glyphs-x.c (autodetect_instantiate):
14735 * glyphs-x.c (cursor_font_instantiate):
14736 * glyphs-x.c (x_widget_instantiate):
14737 * glyphs-x.c (x_widget_set_property):
14738 * glyphs-x.c (x_widget_property):
14739 * glyphs-x.c (BUILD_GLYPH_INST):
14740 * print.c (write_string_to_stdio_stream):
14741 * print.c (output_string):
14742 * print.c (Falternate_debugging_output):
14743 * print.c (Fexternal_debugging_output):
14744 * glyphs-msw.c (extract_xpm_color_names):
14745 * glyphs-msw.c (mswindows_xpm_instantiate):
14746 * glyphs-msw.c (bmp_instantiate):
14747 * glyphs-msw.c (resource_name_to_resource):
14748 * glyphs-msw.c (mswindows_resource_instantiate):
14749 * glyphs-msw.c (xbm_instantiate_1):
14750 * glyphs-msw.c (mswindows_xbm_instantiate):
14751 * glyphs-msw.c (mswindows_xface_instantiate):
14752 * glyphs-msw.c (mswindows_widget_instantiate):
14753 * glyphs-msw.c (add_tree_item):
14754 * glyphs-msw.c (add_tab_item):
14755 * glyphs-msw.c (mswindows_combo_box_instantiate):
14756 * glyphs-msw.c (mswindows_widget_property):
14757 * glyphs-msw.c (mswindows_combo_box_property):
14758 * glyphs-msw.c (mswindows_widget_set_property):
14759 * console.c (stuff_buffered_input):
14760 * objects-msw.c (mswindows_initialize_color_instance):
14761 * objects-msw.c (mswindows_valid_color_name_p):
14762 * objects-msw.c (mswindows_list_fonts):
14763 * objects-msw.c (mswindows_font_instance_truename):
14764 * bytecode.c (optimize_compiled_function):
14765 * select-x.c (symbol_to_x_atom):
14766 * select-x.c (x_atom_to_symbol):
14767 * select-x.c (hack_motif_clipboard_selection):
14768 * select-x.c (selection_data_to_lisp_data):
14769 * select-x.c (lisp_data_to_selection_data):
14770 * select-x.c (Fx_get_cutbuffer_internal):
14771 * select-x.c (Fx_store_cutbuffer_internal):
14772 * buffer.h (TO_EXTERNAL_FORMAT): New function.
14773 * buffer.h (TO_INTERNAL_FORMAT): New function.
14774 * emacs.c (make_arg_list_1):
14775 * emacs.c (make_argc_argv):
14776 * emacs.c (main_1):
14777 * emacs.c (Fdump_emacs):
14778 * emacs.c (split_string_by_emchar_1):
14783 * device-x.c (x_init_device):
14784 * device-x.c (Fx_valid_keysym_name_p):
14785 * device-x.c (Fx_get_font_path):
14786 * device-x.c (Fx_set_font_path):
14787 * glyphs.c (bitmap_to_lisp_data):
14788 * glyphs.c (pixmap_to_lisp_data):
14789 * alloc.c (make_ext_string): Use coding system arguments. Update
14791 * alloc.c (build_string):
14792 * callproc.c (child_setup):
14793 * callproc.c (init_callproc):
14794 * fileio.c (lisp_strerror):
14795 * fileio.c (directory_file_name):
14796 * fileio.c (Fexpand_file_name):
14797 * fileio.c (Ffile_truename):
14798 * fileio.c (Fsysnetunam):
14799 * fileio.c (Fdo_auto_save):
14800 * sysdep.c (sys_readdir):
14801 * tests.c: New file. Allow adding C tests.
14802 Replace GET_* macros with a more comprehensible and flexible
14803 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14805 Any coding system can be used to do format conversion.
14806 Eliminate enum external_data_format.
14807 Eliminate convert_to_external_format.
14808 Eliminate convert_to_internal_format.
14809 Make sure file-name, keyboard, terminal, and ctext are always
14810 defined as coding systems or aliases. Make
14811 file-name-coding-system, terminal-coding-system, and
14812 keyboard-coding-system magical variables that are equivalent to
14813 defining the corresponding coding system aliases.
14815 * file-coding.c (Fcoding_system_canonical_name_p): New function.
14816 * file-coding.c (Fcoding_system_alias_p): New function.
14817 * file-coding.c (Fcoding_system_aliasee): New function.
14818 * file-coding.c (append_suffix_to_symbol): New function.
14819 * file-coding.c (dangling_coding_system_alias_p): New function.
14820 * file-coding.c (Ffind_coding_system):
14821 * file-coding.c (Fcopy_coding_system):
14822 * file-coding.c (encode_coding_no_conversion):
14823 * file-coding.c (syms_of_file_coding):
14824 * file-coding.c (vars_of_file_coding):
14825 Rewrite coding system alias code.
14826 Allow nested aliases, like symbolic links.
14827 Allow redefinition of coding system aliases.
14828 Prevent existence of dangling coding system aliases.
14830 * dired.c (Fuser_name_completion_1):
14831 * dired.c (Fuser_name_all_completions):
14832 A crash would happen if user did QUIT in the middle of building
14833 user_name_cache. Remove redundant code in mainline and unwind_protect.
14836 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
14838 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
14839 an unsigned char *. Update all callers.
14841 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14843 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
14845 2000-01-25 Martin Buchholz <martin@xemacs.org>
14847 * elhash.c (hentry_description): Use more portable definition.
14848 (resize_hash_table): Initialize new hentries using
14849 xnew_array_and_zero, thereby simplifying the code.
14851 * mule-charset.c (make_charset): Make sure entire object is
14852 initialized, to avoid Purify warnings.
14854 * alloc.c (resize_string): Fix unlikely crash with big strings.
14856 2000-01-24 Martin Buchholz <martin@xemacs.org>
14858 * realpath.c (xrealpath):
14859 Don't call getwd().
14861 2000-01-25 Martin Buchholz <martin@xemacs.org>
14863 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
14865 1999-12-28 Max Matveev <max@melbourne.sgi.com>
14867 * unexelfsgi.c (unexec): Change the way we decide which segment
14868 should be extended.
14870 Assumption that .bss section should be outside the PT_LOADable
14871 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
14872 it's present) is inside the 'data' segment. This would fail the
14873 test which was used to find a segment to grow and cover new
14874 heap. Instead of this assumption, I created another one - on IRIX
14875 the segment to grow should start below .bss and it's address
14876 should extent above the end of .bss. Once this segment is
14877 identified, it's grown to accommodate the new heap and new
14878 zero-length .bss section is added at the end of .data2.
14880 2000-01-25 Martin Buchholz <martin@xemacs.org>
14882 * eval.c (Feval): Wrong number of arguments should use original
14883 function, not the indirect_function version of it.
14885 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
14887 * glyphs-x.c (x_button_instantiate): Don't add image if
14888 it is not a pixmap.
14889 (x_locate_pixmap_file): Call Fexpand_file_name when file name
14892 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
14894 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
14896 (DEFVAR_INT_MAGIC): Ditto.
14897 (DEFVAR_BOOL_MAGIC): Ditto.
14898 * glyphs.h: Reindent backslash.
14900 2000-01-24 Martin Buchholz <martin@xemacs.org>
14902 * glyphs-widget.c (layout_query_geometry):
14903 (layout_layout): Use correct types for gheight, gwidth.
14905 2000-01-24 Martin Buchholz <martin@xemacs.org>
14907 * EmacsManager.c (QueryGeometry): Purified.
14909 2000-01-23 Martin Buchholz <martin@xemacs.org>
14911 * alloc.c (make_float): Make sure entire object is initialized, to
14912 avoid Purify warnings.
14913 (pdump_register_sub): Remove useless assignment.
14914 (pdump): Use xmalloc, not malloc.
14915 (pdump_load): Use xmalloc, not malloc.
14917 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14924 * sysdep.c: Removed redundant #include <windows.h>
14926 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14928 * frame.c (delete_frame_internal): Do not delete device when its
14929 implementation so declares.
14930 (delete_frame_internal): Set device selected frame to nil when
14931 last frame goes away.
14933 * device-msw.c (msprinter_device_system_metrics): Implemented.
14934 (mswindows_device_system_metrics): Added 'device-dpi property.
14936 * device.c: (Fdevice_printer_p): Added.
14937 Added 'offset-workspace device metric.
14939 * console.h (device_metrics): Declared DM_offset_workspace.
14941 2000-01-23 Martin Buchholz <martin@xemacs.org>
14943 * fileio.c (Ffile_truename): Remove pointless and confusing
14944 initialization of elen.
14946 * glyphs-widget.c: Compiler warning fixes.
14948 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
14950 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
14951 instead of a Lisp_Object as argument to make it consistent with
14952 the other LIVE_P macros.
14953 (CHECK_LIVE_PROCESS): New macro.
14955 * process.c: Declare Qprocess_live_p.
14956 (Fprocess_live_p): New function.
14957 (create_process): Use PROCESS_LIVE_P.
14958 (read_process_output): Ditto.
14959 (set_process_filter): Ditto.
14960 (Fdelete_process): Ditto.
14961 (kill_buffer_processes): Ditto
14962 (process_send_signal): Use CHECK_LIVE_PROCESS.
14963 (Fprocess_input_coding_system): Check whether process is still
14964 alive (fix PR#1061).
14965 (Fprocess_output_coding_system): Ditto.
14966 (Fprocess_coding_system): Ditto.
14967 (Fset_process_input_coding_system): Ditto.
14968 (Fset_process_output_coding_system): Ditto.
14970 2000-01-23 Andy Piper <andy@xemacs.org>
14972 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
14975 * glyphs.c (mark_image_instance): take into account changed
14976 image_instance format.
14977 (image_instance_equal): ditto.
14978 (image_instance_hash): ditto.
14980 * glyphs-widget.c (widget_instantiate): Incorporate layout
14981 instantiation here. Delay layout of the layout until later.
14982 (layout_instantiate): deleted.
14983 (layout_query_geometry): new function. get the geometry of a
14985 (layout_layout): layout a layout dynamically.
14986 (image_instantiator_widget): New function - splitting up
14987 image_instantiator_format_create_glyphs_widget for netwinder
14989 (image_instantiator_buttons):
14990 (image_instantiator_edit_fields):
14991 (image_instantiator_combo_box):
14992 (image_instantiator_scrollbar):
14993 (image_instantiator_progress_guage):
14994 (image_instantiator_tree_view):
14995 (image_instantiator_tab_control):
14996 (image_instantiator_labels):
14997 (image_instantiator_layout): ditto.
14998 (image_instantiator_format_create_glyphs_widget): Call preceding
15001 2000-01-22 Martin Buchholz <martin@xemacs.org>
15003 * process.c (Fset_process_coding_system):
15004 * device-x.c (Fx_keysym_hash_table):
15007 * lstream.c (Lstream_write): Return documented value, not 0.
15009 * fileio.c (directory_file_name):
15010 (Fsubstitute_in_file_name):
15011 (Fsubstitute_insert_file_contents_internal):
15012 (Fwrite_region_internal):
15017 Remove vestigial APOLLO-conditional code.
15019 2000-01-21 Martin Buchholz <martin@xemacs.org>
15021 * getpagesize.h: Add guard macros.
15022 * libsst.h: Add guard macros.
15023 * libst.h: Add guard macros.
15024 * line-number.h: Add guard macros.
15025 * ndir.h: Add guard macros.
15026 * sysfloat.h: Add guard macros.
15027 * sysfile.h: Add guard macros.
15028 * sysproc.h: Add guard macros.
15029 * syswait.h: Add guard macros.
15030 * xintrinsic.h: Add guard macros.
15031 * xintrinsicp.h: Add guard macros.
15032 * xmmanager.h: Add guard macros.
15033 * xmmanagerp.h: Add guard macros.
15034 * xmprimitive.h: Add guard macros.
15035 * xmu.h: Add guard macros.
15036 * gpmevent.h: Add copyright statement. Add guard macros.
15037 * miscplay.h: Add guard macros.
15038 * *.h: Use consistent C-standards-approved guard macro names.
15040 * opaque.c (make_opaque): Switch parameter order.
15041 * opaque.h (make_opaque): Switch parameter order.
15042 Update all callers.
15043 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15045 * config.h.in (type_checking_assert): Added.
15046 (bufpos_checking_assert): Added.
15048 2000-01-21 Martin Buchholz <martin@xemacs.org>
15050 * alloc.c: Harmless pdump changes.
15052 - spell alignment correctly.
15053 * sysdep.c: Use countof()
15055 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15057 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15058 initially_selected_for_input() console method, default to 0.
15059 (semi_canonicalize_console_connection): Try to delegate to
15060 canonicalize_console_connection if no such console method.
15061 (canonicalize_console_connection): Vice versa.
15062 (print_console): Do not print nil connection.
15064 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15065 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15066 (XDEVIMPF_FRAMELESS_OK): Added.
15067 (CONSOLE_INHERITS_METHOD): Added.
15069 * console-msw.c (mswindows_canonicalize_console_connection):
15071 (mswindows_canonicalize_device_connection): Added.
15073 * console-msw.h (struct msprinter_device): Added this struct and
15075 (mswindows_device): Made fontlist a lisp object.
15077 * device.c (semi_canonicalize_device_connection): Try to delegate
15078 to canonicalize_device_connection if no such console method.
15079 (canonicalize_device_connection): Vice versa.
15080 (print_device): Do not print nil connection.
15082 * device-msw.c (mswindows_init_device): Call InitCommonControls
15084 (mswindows_delete_device): Removed fontlist deallocation.
15085 (mswindows_mark_device): Added.
15087 * events.c (event_equal): Added abort() at unreached code.
15088 (event_hash): Ditto.
15090 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15091 fallback tags of Windows devices.
15093 * general.c (syms_of_general): Initialized Qmsprinter.
15095 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15096 of fallback tags of Windows devices.
15098 * lisp.h: Declared Qmsprinter.
15100 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15102 (mswindows_list_fonts): Ditto.
15103 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15104 that it can be used by both mswindows and msprinter devices.
15105 (initialize_font_instance): Added.
15106 (mswindows_initialize_font_instance): Use it.
15107 (msprinter_initialize_font_instance): Added.
15109 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15110 and implementation flags check.
15111 (redisplay_without_hooks): Changed the call to the above.
15112 (Fredraw_device): Ditto.
15113 (Fredisplay_device): Ditto.
15115 * redisplay-msw.c (get_frame_dc): Implemented.
15116 (get_frame_compdc): Implemented.
15117 (many functions): Use the two functions above to get device
15118 contexts, ether for a window or a printer.
15120 2000-01-21 Olivier Galibert <galibert@pobox.com>
15122 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15123 initialization here.
15124 (init_symbols_once_early): Call it.
15125 * emacs.c (main_1): Call it.
15126 * symsinit.h: Declare it.
15128 2000-01-19 Olivier Galibert <galibert@pobox.com>
15130 * alloc.c: Use a lrecord_header * in the backtrace instead of a
15132 (pdump_backtrace): Ditto.
15133 (pdump_register_object): Ditto. Cleanup use of the pointers.
15134 (pdump_get_entry): Abort if trying to register a null pointer.
15135 (pdump_dump_data): Cleanup types when relocating.
15136 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15137 (pdump_dump_rtables): Remove bad casts.
15138 (pdump_load): Cleanup relocation w.r.t union type. Use a
15139 Lisp_Object instead of a EMACS_INT for the hashtable
15142 2000-01-20 Martin Buchholz <martin@xemacs.org>
15144 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15146 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15148 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15150 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15152 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15154 * faces.h (FACE_STRIKETHRU_P): Added.
15156 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15159 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15160 (mswindows_set_dc_font): New function, aware of font variants,
15161 separated from mswindows_update_dc.
15163 * objects-msw.h (struct mswindows_font_instance_data): Added
15166 * objects-msw.c (mswindows_finalize_font_instance): Delete all
15167 cached fonts and the data structure.
15168 (mswindows_initialize_font_instance): Added creation of font data
15170 (mswindows_print_font_instance): Print at least something.
15171 (mswindows_create_font_variant): Implemented.
15172 (mswindows_get_hfont): Implemented.
15174 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
15176 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15177 prototyping problem with msvc.
15179 * emacs.c (main_1): added syms_of_gui_mswindows() call
15181 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15182 syms_of_gui_mswindows() function
15184 * symsinit.h: added the prototype for syms_of_gui_mswindows()
15186 2000-01-18 Martin Buchholz <martin@xemacs.org>
15188 * XEmacs 21.2.27 is released.
15190 2000-01-18 Martin Buchholz <martin@xemacs.org>
15192 * glyphs-eimage.c (struct tiff_error_struct):
15194 (tiff_warning_func):
15195 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15200 * unexec.c: Remove vestigial Lucid C code.
15204 * libsst.c: Ansify.
15205 Remove declarations of errno and strerror().
15207 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
15209 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15211 2000-01-16 Martin Buchholz <martin@xemacs.org>
15213 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15216 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15221 Change enum eol_type to eol_type_t.
15223 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15225 * gui.c (get_gui_callback): Check cons before accessing car.
15227 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15229 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15230 (XSETSPECIFIER_TYPE): Ditto.
15232 2000-01-17 Didier Verna <didier@xemacs.org>
15234 * redisplay.c (generate_fstring_runes): compute string size in
15235 characters, not bytes.
15237 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
15239 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15241 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
15243 * print.c (print_error_message): Call print_prepare().
15245 2000-01-14 Martin Buchholz <martin@xemacs.org>
15247 * .dbxrc: Renamed from dbxrc.
15249 * events.c (event_to_character):
15250 Use `assert (foo)' instead of `if (!foo) abort()'
15252 * .gdbinit (xtype): Add documentation.
15253 * .gdbinit (check-temacs): New function.
15254 * .gdbinit (check-xemacs): New function.
15255 * dbxrc (check-xemacs): New function.
15256 * dbxrc (check-xemacs): New function.
15258 2000-01-14 Andy Piper <andy@xemacs.org>
15260 * glyphs-widget.c (widget_query_geometry): Make sure that we
15261 calculate default dimensions correctly.
15263 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15265 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15267 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15268 pdump_wire'd variable.
15270 * emacs.c: (main_1): Conditionalized calls to
15271 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15273 2000-01-13 Martin Buchholz <martin@xemacs.org>
15275 * window.c (Fset_window_configuration):
15276 * sysdep.c (_start):
15277 * input-method-motif.c (res):
15278 * event-Xt.c (Xt_process_to_emacs_event):
15279 Simple compiler warning fixes.
15281 * bytecode.c (funcall_compiled_function): Use the original
15282 function symbol on the backtrace list in preference to the
15283 compiled_function object in error messages.
15285 2000-01-13 Andy Piper <andy@xemacs.org>
15287 * glyphs-x.c (update_widget_face): Make sure we update the widget
15288 background as well as foreground.
15290 2000-01-13 Andy Piper <andy@xemacs.org>
15292 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15293 fields to subwindow.
15294 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15295 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15296 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15297 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15299 * glyphs-widget.c (check_valid_tab_orientation): new function.
15300 (initialize_widget_image_instance): zero orientation and
15302 (widget_instantiate): pick up orientation.
15303 (tab_control_query_geometry): return appropriate values for
15306 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15307 appropriate creation flags for left, right and bottom tabs.
15309 * s/cygwin32.h: add tab definitions.
15311 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15313 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15314 frame upon hiding a subwindow.
15315 (mswindows_button_instantiate): Changed the push button style to
15317 (mswindows_button_instantiate): Removed button BS_NOTIFY
15319 (mswindows_button_instantiate): Removed redundant check for
15320 a disabled gui item.
15321 (mswindows_button_instantiate): Made use of WS_TABSTOP
15322 consistent: "operable" controls (edit, button, tree, scroll) have
15323 this style, "display-only" ones (static, progress gauge) do
15324 not. This style is currently ignored by XEmacs though. Also,
15325 removed the WS_EX_CONTROLPARENT style - it is not for children,
15326 it is for their parents!
15327 (mswindows_edit_field_instantiate): Ditto.
15328 (mswindows_progress_gauge_instantiate): Ditto.
15329 (mswindows_tree_view_instantiate): Ditto.
15330 (mswindows_tab_control_instantiate): Ditto.
15331 (mswindows_scrollbar_instantiate): Ditto.
15332 (mswindows_combo_box_instantiate): Ditto.
15333 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15334 style to the "clip" window.
15335 (mswindows_button_instantiate): Removed compilation warning by
15336 equally typing terms of the ?: operator.
15338 2000-01-12 Didier Verna <didier@xemacs.org>
15340 * redisplay.c (generate_fstring_runes): new parameter holding the
15341 last modeline-format extent.
15342 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15343 extent, fill the glyph block with it.
15344 (generate_fstring_runes): handle these parameters.
15345 (generate_formatted_string_db): ditto.
15347 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15348 glyphs'extents in the modeline.
15350 1999-01-11 Mike Woolley <mike@bulsara.com>
15352 * ntheap.c: Reduced the reserved heap space from 1Gb down to
15353 256Mb, as a workaround for the non-starting problem many people
15356 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15358 * console-tty.c (Fset_console_tty_output_coding_system):
15359 Force redrawing tty frame.
15361 2000-01-10 Didier Verna <didier@xemacs.org>
15363 * redisplay.c (generate_fstring_runes): fix size computation bug.
15365 2000-01-09 William M. Perry <wmperry@aventail.com>
15367 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15369 2000-01-09 Andy Piper <andy@xemacs.org>
15371 * glyphs-msw.c: index -> i to avoid shadows.
15372 (xbm_create_bitmap_from_data): make static.
15373 (check_valid_string_or_int): deleted.
15374 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15376 * glyphs-x.c (x_update_subwindow): remove unused args.
15378 * glyphs.c (glyph_image_instance): return the thing. Don't set the
15379 back pointer - this is done in allocate_image_instance.
15380 (query_string_font): return Qnil to make the compiler happy.
15381 (unmap_subwindow): set to ~0 to make the compiler happy.
15382 (glyph_query_geometry): comment out until used.
15383 (glyph_layout): ditto.
15385 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
15387 * insdel.c (signal_after_change): Remove extraneous unbind_to().