1 2003-03-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
4 (Qideograph_daikanwa_2): Deleted.
5 (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
6 (complex_vars_of_mule_charset): Likewise.
8 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
9 (LEADING_BYTE_DAIKANWA_1): Deleted.
10 (LEADING_BYTE_DAIKANWA_2): Deleted.
11 (MIN_CHAR_DAIKANWA): Deleted.
12 (MAX_CHAR_DAIKANWA): Deleted.
14 2003-02-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
16 * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
17 (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
18 ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
20 * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
21 (Vcharset_ideograph_daikanwa): Deleted.
22 (Qideograph_hanziku_{1..12}): Deleted.
23 (Qideograph_daikanwa): Deleted.
24 (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
25 Vcharset_ideograph_daikanwa.
26 (syms_of_mule_charset): Delete `ideograph-daikanwa' and
27 `ideograph-hanziku-{1..12}'.
28 (complex_vars_of_mule_charset): Likewise.
30 2003-02-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
32 * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
34 * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
35 (Qideograph_gt_pj_{1..11}): Deleted.
36 (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
37 (complex_vars_of_mule_charset): Likewise.
39 2003-02-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
41 * mule-charset.c (Vcharset_ucs_big5): Deleted.
42 (Vcharset_ideograph_gt): Deleted.
44 (Qideograph_gt): Deleted.
45 (syms_of_mule_charset): Delete symbol `ucs-big5' and
47 (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
50 * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
51 (LEADING_BYTE_GT): Deleted.
52 (MIN_CHAR_GT): Deleted.
53 (MAX_CHAR_GT): Deleted.
55 2003-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
57 * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
59 2003-01-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
61 * chartab.c (save_uint8_byte_table): Add new argument `filter'.
62 (save_uint16_byte_table): Likewise.
63 (save_byte_table): Likewise; convert values by it.
64 (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
65 for `ideographic-structure'.
66 (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
67 as the filter for `ideographic-structure'.
69 2003-01-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
71 * chartab.c (put_char_composition): New function.
72 (Fput_char_attribute): Use `put_char_composition'; use
73 `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
75 * fns.c (simplify_char_spec): New function.
76 (char_ref_simplify_spec): New function.
77 (Fchar_refs_simplify_char_specs): New function.
78 (syms_of_fns): Add new builtin function
79 `char-refs-simplify-char-specs'.
81 2003-01-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
83 * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
84 (Qideograph_cbeta): Deleted.
85 (syms_of_mule_charset): Don't define `ideograph-cbeta'.
86 (complex_vars_of_mule_charset): Likewise.
88 * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
89 (MIN_CHAR_CBETA): Comment out.
90 (MAX_CHAR_CBETA): Likewise.
92 2002-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
94 * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
95 `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
98 2002-12-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
100 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
102 2002-12-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
104 * mule-charset.c (charset_lookup_description_1): Use
105 `NUM_LEADING_BYTES' in UTF-2000.
107 2002-12-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
109 * char-ucs.h (GC_CHARSETP): Deleted.
111 2002-12-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
113 * char-ucs.h (MAX_CHAR_GT): Updated.
115 2002-12-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
117 * text-coding.c: Sync with XEmacs 21.4.10.
119 2002-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
121 * mule-charset.c (Vcharset_china3_jef): Deleted.
122 (Qchina3_jef): Deleted.
123 (syms_of_mule_charset): Don't define `china3-jef'.
124 (complex_vars_of_mule_charset): Likewise.
126 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
127 (MIN_CHAR_CHINA3_JEF): Comment out.
128 (MAX_CHAR_CHINA3_JEF): Comment out.
130 2002-11-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
132 * mule-charset.c (Vcharset_ucs_gb): New variable.
133 (Qucs_gb): New variable.
134 (syms_of_mule_charset): Add new symbol `ucs-gb'.
135 (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
137 * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
139 2002-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
141 * mule-charset.c (charset_code_point): if a coded-charset has a
142 final-byte, don't inherit the builtin range of the mother CCS.
144 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
146 * mule-charset.c (charset_code_point): Fix problem about
149 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
151 * mule-charset.c (decode_builtin_char): Reorganized.
153 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
155 * text-coding.c (char_encode_as_entity_reference): Modify for
156 `charset_code_point'.
157 (char_encode_shift_jis): Likewise.
158 (char_encode_big5): Likewise.
159 (char_encode_utf8): Likewise.
160 (char_encode_iso2022): Likewise.
162 * mule-charset.c (charset_code_point): Add new argument
164 (Fencode_char): Add new optional argument `defined_only'.
166 * chartab.c (put_char_table): Modify for `charset_code_point'.
168 * char-ucs.h (charset_code_point): Add new argument
170 (encode_char_1): Modify for `charset_code_point'.
172 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
174 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
175 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
177 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
179 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
180 (Qjis_x0208): Likewise.
181 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
182 XCHARSET_FINAL(charset).
183 (charset_code_point): Modify condition for final-byte based
185 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
186 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
187 in UTF-2000; specify `=jis-x0208' as the mother of
188 `japanese-jisx0208-1978', `japanese-jisx0208' and
189 `japanese-jisx0208-1990' in UTF-2000.
191 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
193 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
195 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
197 * text-coding.c (decode_coding_utf16): Support UTF-16.
198 (char_encode_utf16): Fixed.
200 2002-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
202 * text-coding.c (Qutf16): New variable in MULE.
203 (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
204 (Fcoding_system_type): Add `utf-16' in MULE.
205 (struct detection_state): Add a structure for utf16 in MULE.
206 (detect_coding_type): Setup st->utf16.mask in MULE.
207 (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
209 (reset_encoding_stream): Use `char_encode_utf16' and
210 `char_finish_utf16' for `CODESYS_UTF16' in MULE.
211 (detect_coding_utf16): New function [incomplete].
212 (decode_coding_utf16): New function [support only UCS-2].
213 (char_encode_utf16): New function.
214 (char_finish_utf16): New function.
215 (syms_of_file_coding): Add new symbol `utf-16'; setup
216 `coding_category_symbol[CODING_CATEGORY_UTF16]'.
218 * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
220 (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
221 (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
223 2002-10-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
225 * chartab.c (put_char_table): When a charset is specified as a
226 range in UTF-2000, don't support builtin characters.
228 2002-09-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
230 * mule-charset.c (decode_defined_char): Don't refer external
231 database if Qunbound or Qnil are found.
232 (Fsave_charset_mapping_table): Don't define it if
233 HAVE_CHISE_CLIENT is not defined.
234 (Freset_charset_mapping_table): New function.
235 (load_char_decoding_entry_maybe): Store Qnil if a character is not
236 found in external database.
237 (syms_of_mule_charset): Don't define `save-charset-mapping-table'
238 if HAVE_CHISE_CLIENT is not defined; add new builtin function
239 `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
241 2002-09-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
243 * text-coding.c (decode_coding_utf8): Check CCS is specified or
246 2002-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
248 * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
249 Q_lowercase, Q_uppercase in UTF-2000.
251 * chartab.c (get_char_table): Add special code for the standard
252 case table to use character attribute `->downcase' and
253 `->uppercase' for case operations in UTF-2000.
255 * casetab.c (Qflippedcase): New variable in UTF-2000.
256 (Q_lowercase): Likewise.
257 (Q_uppercase): Likewise.
258 (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
259 and `->uppercase' in UTF-2000.
260 (complex_vars_of_casetab): Assign attribute name `downcase' to
261 downcase and CANON table of Vstandard_case_table in UTF-2000;
262 assign attribute name `flippedcase' to upcase and EQV table of
263 Vstandard_case_table in UTF-2000.
265 2002-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
267 * text-coding.c (decode_add_er_char): Support isolated-chars.
268 (char_encode_as_entity_reference): Likewise.
270 2002-08-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
272 * emacs.c (Vutf_2000_lisp_directory): New variable.
273 (Vconfigure_utf_2000_lisp_directory): Likewise.
274 (complex_vars_of_emacs): Add new variable
275 `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
277 2002-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
279 * char-ucs.h (DECODE_CHAR): Delete special code for
280 `chinese-big5-1' and `chinese-big5-2'.
282 * mule-charset.c (Qbig5_1): New variable in UTF-2000.
284 (decode_defined_char): Support CONVERSION_BIG5_1 and
286 (decode_builtin_char): Likewise.
287 (charset_code_point): Likewise.
288 (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
289 'conversion in UTF-2000.
290 (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
291 (complex_vars_of_mule_charset): Define `chinese-big5-1' and
292 `chinese-big5-2' as children of `chinese-big5'.
294 * char-ucs.h (CONVERSION_BIG5_1): New macro.
295 (CONVERSION_BIG5_2): New macro.
297 2002-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
299 * text-coding.c (char_encode_big5): Support entity-reference.
301 2002-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
303 * text-coding.c (char_encode_as_entity_reference): New function.
304 (char_encode_utf8): Use `char_encode_as_entity_reference'.
306 2002-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
308 * text-coding.c (decode_coding_big5): Support entity-reference
311 2002-08-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
313 * text-coding.c (allocate_coding_system): Initialize initial
314 charsets for CODESYS_UTF8.
315 (Fmake_coding_system): Accept charset-g0, charset-g1 and
316 charset-g2 for CODESYS_UTF8.
317 (decode_coding_utf8): Use charset-g0.
318 (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
319 to force variants to map to UCS.
321 2002-07-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
323 * text-coding.c (Qutf_8_mcs): New variable.
324 (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
325 (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
326 instead of `utf-8' in UTF-2000.
328 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
330 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
331 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
332 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
333 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
334 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
335 CONVERSION_96x96x96x96 are introduced.
336 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
337 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
338 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
340 * char-ucs.h (CONVERSION_94): New macro.
341 (CONVERSION_96): New macro.
342 (CONVERSION_94x94): New macro.
343 (CONVERSION_96x96): New macro.
344 (CONVERSION_94x94x94): New macro.
345 (CONVERSION_96x96x96): New macro.
346 (CONVERSION_94x94x94x60): New macro.
347 (CONVERSION_94x94x94x94): New macro.
348 (CONVERSION_96x96x96x96): New macro.
350 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
352 * chartab.c (Vcharacter_variant_table): Deleted.
353 (Fchar_variants): Use character-attribute `->ucs-variants' instead
354 of `Vcharacter_variant_table'.
355 (Fput_char_attribute): Likewise.
356 (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
357 (complex_vars_of_chartab): Likewise.
359 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
361 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
363 * fns.c (Qideographic_structure): New variable.
364 (Qkeyword_char): New variable.
365 (ids_format_unit): New function.
366 (Fideographic_structure_to_ids): New function.
367 (syms_of_fns): Add new symbols `ideographic-structure' and
368 `:char'; add new builtin function `ideographic-structure-to-ids'.
370 * data.c (Fchar_ref_p): New function.
371 (syms_of_data): Add new builtin function `char-ref-p'.
373 * chartab.h: Add an EXFUN for `Ffind_char'.
375 2002-07-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
377 * text-coding.c (Vcharacter_composition_table): Deleted.
378 (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
381 * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
383 (Vcharacter_composition_table): Deleted.
384 (Fget_composite_char): Use the implementation for external-DB
385 support in every UTF-2000.
386 (Fput_char_attribute): Likewise.
387 (char_attribute_system_db_file): Don't define if external-DB
388 feature is not available.
389 (Fsave_char_attribute_table): Likewise.
390 (Fmount_char_attribute_table): Likewise.
391 (Fclose_char_attribute_table): Likewise.
392 (Freset_char_attribute_table): Likewise.
393 (Fload_char_attribute_table): Likewise.
394 (syms_of_chartab): Don't define `save-char-attribute-table',
395 `mount-char-attribute-table', `reset-char-attribute-table',
396 `close-char-attribute-table' and `load-char-attribute-table' if
397 external-DB feature is not available.
398 (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
400 2002-07-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
402 * text-coding.c (Qcomposition): Add extern if external-DB feature
404 (Vcharacter_composition_table): Don't add extern if external-DB
405 feature is supported.
406 (COMPOSE_ADD_CHAR): Modify for new data-representation of
407 character composition rule if external-DB feature is supported.
409 * chartab.c (Vcharacter_composition_table): Don't define if
410 external-DB feature is supported.
411 (Qcomposition): New variable.
412 (Fget_composite_char): New implementation for external-DB support.
413 (Fput_char_attribute): Use `composition' property of each
414 character instead of `Vcharacter_composition_table' to store
415 character-composition rules if external-DB feature is supported.
416 (syms_of_chartab): Add new symbol `composition'.
417 (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
418 external-DB feature is supported.
420 2002-07-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
422 * chartab.c (Vchar_db_stingy_mode): New variable.
423 (load_char_attribute_maybe): Close database if
424 Vchar_db_stingy_mode is not NIL.
425 (Fload_char_attribute_table_map_function): Use
426 `get_char_id_table_0' instead of `get_char_id_table'.
427 (vars_of_chartab): Add new variable `char-db-stingy-mode'.
429 * chartab.h (get_char_id_table_0): New inline function.
430 (get_char_id_table): Use `get_char_id_table_0'.
432 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
434 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
435 and `COMPOSE_ADD_CHAR'.
436 (decode_coding_iso2022): Use `decode_flush_er_chars'.
438 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
440 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
441 instead of `DECODE_ADD_UCS_CHAR'.
442 (COMPOSE_ADD_CHAR): Likewise.
444 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
446 * text-coding.c (decode_flush_er_chars): New inline function.
447 (decode_add_er_char): New function.
448 (decode_coding_utf8): Use `decode_flush_er_chars' and
449 `decode_add_er_char'.
451 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
453 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
454 done before `decode_output_utf8_partial_char'.
456 * mule-charset.c (complex_vars_of_mule_charset): Specify
457 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
458 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
460 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
462 * mule-charset.c (decode_defined_char): New function; search
464 (decode_builtin_char): Don't search mother if
465 XCHARSET_MAX_CODE(charset) == 0.
466 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
467 == 0 even if code >= XCHARSET_MAX_CODE(charset).
468 (Fdecode_char): Use `decode_defined_char' instead of
469 `DECODE_DEFINED_CHAR'.
470 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
471 mother of `Vcharset_ucs_jis'.
473 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
474 instead of `DECODE_DEFINED_CHAR'.
476 * char-ucs.h (decode_defined_char): Renamed from
477 `DECODE_DEFINED_CHAR'; changed to normal function.
478 (DECODE_CHAR): Use `decode_defined_char' instead of
479 `DECODE_DEFINED_CHAR'.
481 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
483 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
485 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
487 * text-coding.c (Vcoded_charset_entity_reference_alist): New
489 (Quse_entity_reference): New variable.
493 (coding_system_description): Add description for
495 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
496 (allocate_coding_system): Initialize `ccs_priority_list' in
498 (Fmake_coding_system): Add description about
499 'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
501 (Fcoding_system_property): Accept `disable-composition' and
502 `use-entity-reference' in UTF-2000.
503 (struct decoding_stream): Add new member `er_counter' and `er_buf'
505 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
506 (decode_coding_utf8): Decode entity-reference if
507 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
508 (char_encode_utf8): Encode non-Unicode characters as
509 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
511 (syms_of_file_coding): Add new symbols `use-entity-reference',
513 (vars_of_file_coding): Add new variable
514 `coded-charset-entity-reference-alist'.
515 (complex_vars_of_file_coding): Declare `disable-composition' and
516 `use-entity-reference' to be coding-system-properties in UTF-2000.
518 * file-coding.h (struct Lisp_Coding_System): Add new member
519 `use_entity_reference' and `ccs_priority_list'.
520 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
521 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
522 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
524 2002-07-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
526 * chartab.c (save_uint8_byte_table): Don't clear the table.
527 (save_uint16_byte_table): Likewise.
528 (save_byte_table): Likewise.
529 (Fmount_char_attribute_table): New function.
530 (syms_of_chartab): Add new builtin function
531 `mount-char-attribute-table'.
533 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
535 * mule-charset.c (Fsave_charset_mapping_table): Open database as
537 (load_char_decoding_entry_maybe): Open database as read-only mode.
539 * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
540 open database as "w+" mode.
541 (load_char_attribute_maybe): Open database as read-only mode.
542 (Fload_char_attribute_table): Likewise.
544 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
546 * chartab.c (mark_char_table): Don't refer `ct->db_file'.
547 (char_table_description): Delete member `db_file'.
548 (Fmake_char_table): Don't refer `ct->db_file'.
549 (Fcopy_char_table): Likewise.
550 (Fsave_char_attribute_table): Likewise.
551 (Fclose_char_attribute_table): Likewise.
552 (Freset_char_attribute_table): Likewise.
553 (load_char_attribute_maybe): Likewise.
554 (Fload_char_attribute_table): Likewise.
556 * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
558 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
560 * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
561 (Fsave_char_attribute_table): Don't check `ct->db_file' if
563 (load_char_attribute_maybe): Likewise.
564 (Fload_char_attribute_table): Likewise.
566 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
568 * chartab.c (Fclose_char_attribute_table): Set Qnil on
569 `ct->db_file' unconditionally.
571 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
573 * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
575 (char_table_description): Add description for `db_file' and `db'
577 (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
579 (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
580 (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
581 (Fclose_char_attribute_table): New function.
582 (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
583 (load_char_attribute_maybe): Change interface; use `cit->db_file'
585 (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
586 (syms_of_chartab): Add new builtin function
587 `Fclose_char_attribute_table'.
589 2002-06-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
591 * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
593 (load_char_attribute_maybe): Change interface.
594 (get_char_id_table): Modify for `load_char_attribute_maybe'.
596 2002-06-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
598 * database.h: Add an EXFUN for `Fdatabase_live_p'.
600 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
602 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
603 instead of `DECODE_CHAR' for mother; don't use special code for
604 chinese-big5 to use code space of chinese-big5-1 and
606 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
607 `MAX_CHAR_BIG5_CDP' for chinese-big5.
609 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
610 (MAX_CHAR_BIG5_CDP): Revival.
612 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
614 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
615 the XLFD registry-encoding name of `chinese-big5'.
617 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
619 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
620 (Qchinese_big5_cdp): Deleted.
621 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
622 (complex_vars_of_mule_charset): Delete coded-charset
625 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
626 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
627 `CHARSET_ID_OFFSET - n' for private CCS.
628 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
629 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
630 of `MIN_LEADING_BYTE'.
631 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
632 `(CHARSET_ID_OFFSET - 97)'.
633 (MIN_CHAR_BIG5_CDP): Deleted.
634 (MAX_CHAR_BIG5_CDP): Deleted.
636 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
638 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
640 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
642 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
643 (vars_of_mule): Add new variable `utf-2000-version' [moved from
646 * chartab.c (Vutf_2000_version): Moved to mule.c.
647 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
649 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
651 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
652 when HAVE_CHISE_CLIENT is not defined.
654 * mule.c (vars_of_mule): Provide feature `chise' when
655 HAVE_CHISE_CLIENT is defined.
657 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
659 * config.h.in (UTF2000): Add comment.
660 (HAVE_CHISE_CLIENT): New macro.
662 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
664 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
666 (Fput_char_attribute): Likewise.
667 (char_attribute_system_db_file): Encode file-name of attribute.
668 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
671 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
673 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
674 (Fsave_charset_mapping_table): Use
675 `char_attribute_system_db_file'.
676 (load_char_decoding_entry_maybe): Likewise.
678 * chartab.h (Qsystem_char_id): New external variable.
679 (char_attribute_system_db_file): New prototype.
681 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
682 (char_attribute_system_db_file): New function.
683 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
684 (Freset_char_attribute_table): Likewise.
685 (load_char_attribute_maybe): Likewise.
686 (Fload_char_attribute_table): Likewise.
687 (syms_of_chartab): Add new symbol `system-char-id'.
689 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
691 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
692 `XCHARSET_GRAPHIC(ccs)'.
694 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
696 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
698 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
700 * chartab.c (Q_ucs_variants): New variable.
701 (syms_of_chartab): Add new symbol `->ucs-variants'.
702 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
703 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
704 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
706 * mule-charset.c (load_char_decoding_entry_maybe): New function.
708 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
709 `HAVE_DATABASE' is defined.
710 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
711 `HAVE_DATABASE' is defined.
713 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
715 * chartab.c (Fsave_char_attribute_table): Don't clear internal
717 (Freset_char_attribute_table): New function.
718 (syms_of_chartab): Add new builtin function
719 `reset-char-attribute-table'.
721 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
723 * chartab.c (load_char_attribute_maybe): Don't make directories.
725 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
727 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
729 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
732 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
734 * mule-charset.c (Fsave_charset_mapping_table): Use
735 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
737 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
738 instead of `XCHARSET_CHARS'.
740 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
742 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
743 (XCHARSET_BYTE_SIZE): Likewise.
745 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
747 (XCHARSET_BYTE_SIZE): Likewise.
749 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
751 * chartab.c (Fput_char_attribute): Use exec-directory instead of
752 data-directory to store database.
753 (Fsave_char_attribute_table): Likewise.
754 (load_char_attribute_maybe): Likewise.
755 (Fload_char_attribute_table): Likewise.
757 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
759 * mule-charset.c (Fsave_charset_mapping_table): New function.
760 (syms_of_mule_charset): Add new builtin function
761 `save-charset-mapping-table'.
763 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
765 * char-ucs.h (decoding_table_check_elements): Delete prototype.
766 (get_ccs_octet_table): New inline function.
767 (put_ccs_octet_table): Likewise.
768 (decoding_table_put_char): Use `get_ccs_octet_table' and
769 `put_ccs_octet_table'.
770 (decoding_table_remove_char): Use `decoding_table_put_char'.
771 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
773 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
775 (make_charset): Use Qunbound instead Qnil as initial value of
778 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
780 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
781 element is Qunloaded.
782 (map_over_uint16_byte_table): Likewise.
783 (map_over_byte_table): Likewise.
784 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
785 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
786 database support, load encoding-table of the specified
787 coded-charset if it is not loaded yet.
788 (save_uint8_byte_table): New function of UTF-2000 with external
790 (save_uint16_byte_table): Likewise.
791 (save_byte_table): Likewise.
792 (Fput_char_attribute): Don't store value into external database
793 even if the external database feature is supported in UTF-2000;
794 set `attribute' as name of char-table if the external database
795 feature is supported.
796 (Fsave_char_attribute_table): New function in UTF-2000.
797 (syms_of_chartab): Add new builtin function
798 `save-char-attribute-table' in UTF-2000.
800 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
802 * chartab.c (char_attribute_table_to_put): New variable in
804 (Qput_char_table_map_function): Likewise.
805 (value_to_put): Likewise.
806 (Fput_char_table_map_function): New function in UTF-2000.
807 (put_char_table): Use `Fmap_char_attribute' for
808 CHARTAB_RANGE_CHARSET in UTF-2000.
809 (Fput_char_attribute): Store symbol instead of string in
810 `XCHAR_TABLE_NAME (table)'.
811 (load_char_attribute_maybe): Likewise.
812 (syms_of_chartab): Add new symbol/function
813 `put-char-table-map-function'.
815 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
817 * database.h: Add new EXFUN for `Fmap_database'.
819 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
820 (syms_of_database): Likewise.
822 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
824 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
825 (XCHAR_TABLE_UNLOADED): Likewise.
827 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
828 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
829 HAVE_DATABASE is defined.
830 (char_attribute_table_to_load): New variable of UTF-2000 with
831 external database support.
832 (Qload_char_attribute_table_map_function): Likewise.
833 (Fload_char_attribute_table_map_function): New function of
834 UTF-2000 with external database support.
835 (Fload_char_attribute_table): New function of UTF-2000.
836 (Fmap_char_attribute): Call Fload_char_attribute_table if
837 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
838 (syms_of_chartab): Add new symbol and function
839 `load-char-attribute-table-map-function' in UTF-2000 with external
840 database support; add new function `load-char-attribute-table' in
843 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
845 * chartab.h (load_char_attribute_maybe): New prototype for
846 UTF-2000 with DATABASE support.
847 (get_char_id_table): Use `load_char_attribute_maybe' if
848 HAVE_DATABASE is defined.
850 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
851 with DATABASE support.
853 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
855 * chartab.c (Fput_char_attribute): Use S-expression as key of
858 * chartab.h (get_char_id_table): Use S-expression as key of
861 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
863 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
864 if an element is not loaded, load the corresponding attributes
865 from an external database.
866 (map_over_uint16_byte_table): Likewise.
867 (map_over_byte_table): Likewise.
868 (map_char_table): Modify for `map_over_uint8_byte_table',
869 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
870 element is not loaded, load the corresponding attributes from an
872 (Fput_char_attribute): Change initial values to Qunloaded.
874 * chartab.h (get_char_id_table): If a character attribute is not
875 loaded and the attribute value is not found in an external
876 database, store Qunbound as the attribute value.
878 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
880 * chartab.c (BT_UINT8_unloaded): New macro.
881 (UINT8_VALUE_P): Accept Qunloaded.
882 (UINT8_ENCODE): Likewise.
883 (UINT8_DECODE): Likewise.
884 (BT_UINT16_unloaded): New macro.
885 (UINT16_VALUE_P): Accept Qunloaded.
886 (UINT16_ENCODE): Likewise.
887 (UINT16_DECODE): Likewise.
888 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
890 (mark_char_table): Mark `ct->name' in UTF-2000.
891 (char_table_description): Add `name' in UTF-2000.
892 (Fmake_char_table): Initialize `ct->name'.
893 (Fcopy_char_table): Copy `ct->name'.
894 (Fput_char_attribute): Store value into an external database if
895 HAVE_DATABASE is defined.
897 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
899 (CHAR_TABLE_NAME): New macro in UTF-2000.
900 (XCHAR_TABLE_NAME): New macro in UTF-2000.
901 (get_char_id_table): Try to read an external database if Qunloaded
902 is stored in a table.
904 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
907 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
909 * database.h: Add EXFUN definitions for Fopen_database,
910 Fput_database, Fget_database and Fclose_database.
912 * data.c (Qunloaded): New variable in UTF-2000.
914 * lisp.h (Qunloaded): New variable in UTF-2000.
916 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
918 * mule-charset.c (put_char_ccs_code_point): Modify for
919 `decoding_table_remove_char' and `decoding_table_put_char'.
920 (remove_char_ccs): Modify for `decoding_table_remove_char'.
922 * char-ucs.h (decoding_table_remove_char): Change arguments to
923 hide decoding_table vector.
924 (decoding_table_put_char): Likewise.
926 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
928 * mule-charset.c (decoding_table_remove_char): Moved to
930 (decoding_table_put_char): Likewise.
932 * char-ucs.h (decoding_table_check_elements): New prototype [moved
933 from mule-charset.c].
934 (decoding_table_remove_char): New inline function [moved from
936 (decoding_table_put_char): Likewise.
938 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
940 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
943 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
945 * mule-charset.c (decode_builtin_char): Support mother charsets.
947 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
949 * mule-charset.c (Q94x94x60): New variable.
950 (charset_code_point): Support conversion `94x94x60'.
951 (Fmake_charset): Likewise.
952 (syms_of_mule_charset): Add new symbol `94x94x60'.
954 * char-ucs.h (CONVERSION_94x94x60): New macro.
956 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
958 * mule-charset.c (charset_code_point): Unify code about
961 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
963 * mule-charset.c (charset_code_point): Merge code about builtin
964 characters into code about mother charsets; don't use
965 `range_charset_code_point'.
966 (range_charset_code_point): Deleted.
968 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
970 * mule-charset.c (Qcode_offset): New variable.
971 (Fmake_charset): Use `XUINT' to get value of `min-code' and
972 `max-code'; accept new property `code-offset'.
973 (syms_of_mule_charset): Add new symbol `code-offset'.
975 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
977 * mule-charset.c (range_charset_code_point): Fixed.
979 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
981 * mule-charset.c (decode_builtin_char): Change semantics of
982 code-offset of coded-charset.
983 (charset_code_point): Likewise.
984 (range_charset_code_point): Likewise.
985 (complex_vars_of_mule_charset): Modify for the change.
987 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
989 * mule-charset.c (Fencode_char): Reverse arguments.
991 * mule-charset.c (charset_code_point): Fixed.
993 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
995 * mule-charset.c (Vcharset_mojikyo): Deleted.
996 (Vcharset_mojikyo_2022_1): Deleted.
997 (Vcharset_mojikyo_pj_{1..21}): Deleted.
998 (Qmin_code): New variable in UTF-2000.
999 (Qmax_code): Likewise.
1000 (Qmother): Likewise.
1001 (Qconversion): Likewise.
1003 (Qmojikyo): Deleted.
1004 (Qmojikyo_2022_1): Deleted.
1005 (Qmojikyo_pj_{1..22}): Deleted.
1006 (mark_charset): Mark `cs->mother'.
1007 (charset_description): Add description for `mother'.
1008 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1009 new arguments `mother' and `conversion'; use
1010 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1011 (charset_code_point): Moved from char-ucs.h; support `mother'
1013 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1014 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1015 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1016 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1017 allow 2 as the value of `graphic' in UTF-2000; add new properties
1018 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1019 require `final' in UTF-2000; modify for `make_charset'.
1020 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1021 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1022 (Fcharset_property): Support `mother', `min-code' and `max-code'.
1023 (Fencode_char): New function.
1024 (syms_of_mule_charset): Add new builtin function `encode-char' in
1025 UTF-2000; add new symbols `min-code', `max-code', `mother',
1026 `conversion' and `94x60'; delete symbols `mojikyo',
1027 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1028 (complex_vars_of_mule_charset): Modify for `make_charset' change;
1029 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1030 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1032 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1033 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1035 * char-ucs.h (Vcharset_mojikyo): Deleted.
1036 (Vcharset_mojikyo_2022_1): Deleted.
1037 (LEADING_BYTE_MOJIKYO): Deleted.
1038 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1039 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1040 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1041 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1042 add new member `mother'; add new member `conversion'.
1043 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1044 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1045 (CHARSET_MOTHER): New macro.
1046 (CHARSET_CONVERSION): New macro.
1047 (CONVERSION_IDENTICAL): New macro.
1048 (CONVERSION_94x60): New macro.
1049 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1050 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1051 (XCHARSET_MOTHER): New macro.
1052 (XCHARSET_CONVERSION): New macro.
1053 (MIN_CHAR_MOJIKYO): Deleted.
1054 (MAX_CHAR_MOJIKYO): Deleted.
1055 (DECODE_MOJIKYO_2022): Deleted.
1056 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1057 (charset_code_point): Changed to non-inline function.
1058 (encode_char_1): Use `charset_code_point'.
1059 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1061 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1063 * lread.c (read_compiled_function): Fix prototype.
1064 (read_vector): Likewise.
1066 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1068 * lrecord.h (struct lrecord_header): Delete `older'.
1069 (set_lheader_implementation): Delete code for `older'.
1070 (set_lheader_older_implementation): Deleted.
1071 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1072 (OLDER_RECORD_P): Deleted.
1073 (OLDER_RECORD_HEADER_P): Deleted.
1074 (alloc_older_lcrecord): Deleted.
1075 (alloc_older_lcrecord_type): Deleted.
1077 * alloc.c (all_older_lcrecords): Deleted.
1078 (alloc_older_lcrecord): Deleted.
1079 (disksave_object_finalization_1): Delete code for older objects.
1080 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1081 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1083 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1085 * mule-charset.c (decoding_table_put_char): Use `make_vector'
1086 instead of `make_older_vector'.
1087 (put_char_ccs_code_point): Likewise.
1088 (mark_charset): Mark `cs->decoding_table'.
1089 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1091 * lisp.h (make_older_vector): Deleted.
1092 (make_vector_newer): Deleted.
1094 * config.h.in (HAVE_GGC): Deleted.
1096 * alloc.c (make_older_vector): Deleted.
1097 (make_vector_newer_1): Deleted.
1098 (make_vector_newer): Deleted.
1100 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1102 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1103 (Qideograph_daikanwa_2): New variable.
1104 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1105 (complex_vars_of_mule_charset): Add new coded-charset
1106 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1107 `LEADING_BYTE_DAIKANWA'.
1109 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1110 (LEADING_BYTE_DAIKANWA_1): New macro.
1111 (LEADING_BYTE_DAIKANWA_2): New macro.
1112 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1114 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1116 * mule-charset.c (complex_vars_of_mule_charset): Change
1117 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1118 the second revised version.
1120 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1122 * mule-charset.c (Vcharset_ucs_smp): New variable.
1123 (Vcharset_ucs_sip): New variable.
1124 (Qucs_smp): New variable.
1125 (Qucs_sip): New variable.
1126 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1127 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1128 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1129 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1130 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1131 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1133 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1134 (LEADING_BYTE_UCS_SIP): New macro.
1135 (MIN_CHAR_SMP): New macro.
1136 (MAX_CHAR_SMP): New macro.
1137 (MIN_CHAR_SIP): New macro.
1138 (MAX_CHAR_SIP): New macro.
1140 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
1142 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1145 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1147 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1148 value; don't store value into `encoding_table' of `Lisp_Charset'.
1149 (mark_charset): `encoding_table' was deleted.
1150 (charset_description): Likewise.
1151 (make_charset): Likewise.
1152 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1153 `put_char_ccs_code_point'.
1155 * chartab.h (Fput_char_attribute): New EXFUN.
1157 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1158 is unified with normal symbol space.
1159 (Fget_char_attribute): Likewise.
1160 (Fput_char_attribute): Likewise; behavior of
1161 `put_char_ccs_code_point' is changed.
1163 * char-ucs.h: Include "elhash.h".
1164 (Vchar_attribute_hash_table): New external variable.
1165 (struct Lisp_Charset): Delete `encoding_table'.
1166 (CHARSET_ENCODING_TABLE): New implementation; refer
1167 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1170 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1172 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1175 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1177 * text-coding.c (char_encode_big5): Prefer charset-g1 than
1180 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1182 * chartab.c (uint8_byte_table_description): New constant.
1183 (uint8-byte-table): Use `uint8_byte_table_description'.
1184 (uint16_byte_table_description): New constant.
1185 (uint16-byte-table): Use `uint16_byte_table_description'.
1187 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1189 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1190 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1192 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1194 * mule-charset.c (Vcharset_ucs_ks): New variable.
1195 (Qucs_ks): New variable.
1196 (syms_of_mule_charset): Add new symbol `ucs-ks'.
1197 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1199 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1201 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1203 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1204 (Fdecode_char): Likewise.
1206 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1208 (Fdefine_char): Modify for Fdecode_char.
1209 (Ffind_char): Likewise.
1211 * mule-charset.c (Fdecode_char): Add new optional argument
1213 (Fdecode_builtin_char): Modify for `Fdecode_char'.
1215 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1217 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1218 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1219 (allocate_coding_system): Initialize initial-charsets of
1220 CODESYS_BIG5 in XEmacs UTF-2000.
1221 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1222 CODESYS_BIG5 in XEmacs UTF-2000.
1223 (decode_coding_big5): Use initial-charset-g0 and -g1 of
1224 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1226 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1228 (Qideograph_hanziku_{1 .. 12}): Likewise.
1229 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1231 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1232 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1233 `ideograph-hanziku-{1 .. 12}'.
1235 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1236 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1237 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1238 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1239 (DECODE_DEFINED_CHAR): New inline function.
1240 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1242 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1244 * mule-charset.c (Vcharset_china3_jef): Renamed from
1245 `Vcharset_japanese_jef_china3'.
1246 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1247 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1248 `{MIN|MAX}_CHAR_JEF_CHINA3'..
1249 (syms_of_mule_charset): Rename `china3-jef' from
1250 `japanese-jef-china3'.
1251 (complex_vars_of_mule_charset): Likewise; rename
1252 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1254 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1255 `LEADING_BYTE_JEF_CHINA3'.
1256 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1257 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1259 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1261 * mule-charset.c (encode_builtin_char_1): Comment out special code
1262 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1264 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1265 (MAX_CHAR_MOJIKYO_0): Comment out.
1266 (MIN_CHAR_CBETA): Changed to 0x00E20000.
1267 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1268 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1269 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1271 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1273 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1274 (Qideograph_cbeta): New variable.
1275 (encode_builtin_char_1): Comment out special code for
1276 coded-charset `mojikyo' and `japanese-jef-china3'.
1277 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1278 (complex_vars_of_mule_charset): Add new coded-charset
1281 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1282 (MIN_CHAR_CBETA): New macro.
1283 (MAX_CHAR_CBETA): New macro.
1285 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1287 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1288 (LEADING_BYTE_JEF_CHINA3): New macro.
1289 (MIN_CHAR_JEF_CHINA3): New macro.
1290 (MAX_CHAR_JEF_CHINA3): Likewise.
1291 (DECODE_CHAR): Fixed.
1293 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1295 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1296 (Qjapanese_jef_china3): New variable.
1297 (encode_builtin_char_1): Support `japanese-jef-china3'.
1298 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1299 (complex_vars_of_mule_charset): Add new coded-charset
1300 `japanese-jef-china3'.
1302 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1304 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1305 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1306 94^4, 96^3, 96^4, 128^n and 256^n set.
1307 (put_char_table): Use `XCHARSET_CELL_RANGE'.
1308 (map_char_table): Likewise.
1310 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1312 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1315 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1317 * chartab.h (get_char_id_table): New inline function.
1319 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1322 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1324 * chartab.h (decode_char_table_range): New prototype in XEmacs
1326 (put_char_id_table): New inline function in XEmacs UTF-2000.
1328 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1330 (decode_char_table_range): Delete static declaration in XEmacs
1333 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1335 * chartab.c (put_char_id_table): Use `put_char_table'.
1337 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1339 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1340 (map_over_uint16_byte_table): Likewise.
1341 (map_over_byte_table): Likewise.
1342 (map_char_table): Modify for `map_over_uint8_byte_table',
1343 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1346 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1348 * chartab.c (struct map_char_table_for_charset_arg): New
1350 (map_char_table_for_charset_fun): New function.
1351 (map_char_table): Use `map_char_table' for encoding_table of
1354 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1356 * chartab.c (map_char_table): Check a character is found in
1357 range->charset instead of non default value is defined in
1358 char-table when range is CHARTAB_RANGE_ROW.
1360 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1362 * chartab.c (map_char_id_table): Deleted.
1363 (Fmap_char_attribute): Use `map_char_table' instead of
1364 `map_char_id_table'.
1366 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1368 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1370 (update_syntax_table): Deleted in XEmacs UTF-2000.
1372 * syntax.c (find_defun_start): Use `syntax_table' instead of
1373 `mirror_syntax_table' in XEmacs UTF-2000.
1374 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1376 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1378 (Fmatching_paren): Likewise.
1379 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1381 (find_start_of_comment): Likewise.
1382 (find_end_of_comment): Likewise.
1383 (Fforward_comment): Likewise.
1384 (scan_lists): Likewise.
1385 (char_quoted): Likewise.
1386 (Fbackward_prefix_chars): Likewise.
1387 (scan_sexps_forward): Likewise.
1388 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1389 (update_syntax_table): Likewise.
1391 * search.c (skip_chars): Use `syntax_table' instead of
1392 `mirror_syntax_table' in XEmacs UTF-2000.
1393 (wordify): Likewise.
1394 (Freplace_match): Likewise.
1396 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1397 `mirror_syntax_table' in XEmacs UTF-2000.
1398 (WORDCHAR_P_UNSAFE): Likewise.
1399 (re_match_2_internal): Likewise.
1401 * font-lock.c (find_context): Use `buf->syntax_table' instead of
1402 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1404 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1405 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1407 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1410 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1412 (print_char_table): Print `default_value' in XEmacs UTF-2000.
1413 (char_table_description): Delete `mirror_table' in XEmacs
1415 (fill_char_table): Don't call `update_syntax_table' in XEmacs
1417 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1418 (Fcopy_char_table): Likewise.
1419 (put_char_table): Don't call `update_syntax_table' in XEmacs
1422 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1423 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1424 (casify_region_internal): Likewise.
1426 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1428 * buffer.c (common_init_complex_vars_of_buffer): Don't use
1429 `mirror_syntax_table' in XEmacs UTF-2000.
1431 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1432 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1433 (Fexpand_abbrev): Likewise.
1435 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1437 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1439 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1441 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1442 (map_over_uint16_byte_table): Likewise.
1443 (map_over_byte_table): Likewise.
1444 (get_char_id_table): Refer `cit->default_value'.
1445 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1446 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1447 of character-id ranges.
1448 (mark_char_table): Mark `ct->default_value'.
1449 (char_table_description): Add `default_value'.
1450 (fill_char_table): Use `default_value'.
1451 (decode_char_table_range): Decode `nil' as
1452 `CHARTAB_RANGE_DEFAULT'.
1453 (get_char_id_table): Refer `cit->default_value'.
1454 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1455 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1456 temporary hack; check value of char-table is bound or not.
1457 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1459 * chartab.h (struct Lisp_Char_Table): Add new member
1460 `default_value' in XEmacs UTF-2000.
1461 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1462 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1465 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1467 * chartab.h (Lisp_Char_ID_Table): Deleted.
1469 * chartab.c (char_table_description): Fix typo.
1470 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1471 `Lisp_Char_ID_Table'.
1473 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1475 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1478 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1481 * chartab.h (XCHAR_ID_TABLE): Deleted.
1482 (XSETCHAR_ID_TABLE): Deleted.
1483 (CHAR_ID_TABLE_P): Deleted.
1485 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1487 (Fget_composite_char): Likewise.
1488 (put_char_table): Likewise.
1489 (add_char_attribute_alist_mapper): Fixed.
1490 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1492 (Fget_char_attribute): Likewise.
1493 (Fget_char_attribute): Likewise.
1494 (Fmap_char_attribute): Likewise.
1496 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1498 (encode_char_1): Likewise.
1500 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1502 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1505 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1506 instead of `XCHAR_ID_TABLE'.
1507 (remove_char_ccs): Likewise.
1509 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1511 (Fget_composite_char): Likewise.
1512 (Fchar_variants): Likewise.
1513 (put_char_table): Likewise.
1514 (add_char_attribute_alist_mapper): Likewise.
1515 (Fchar_attribute_alist): Likewise.
1516 (Fget_char_attribute): Likewise.
1517 (Fput_char_attribute): Likewise.
1518 (Fmap_char_attribute): Likewise.
1519 (Fmap_char_attribute): Likewise.
1521 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1523 (encode_char_1): Likewise.
1525 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1527 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1528 `Lisp_Char_ID_Table'.
1529 (mark_char_id_table): Deleted.
1530 (print_char_id_table): Likewise.
1531 (char_id_table_equal): Likewise.
1532 (char_id_table_hash): Likewise.
1533 (char_id_table_description): Likewise.
1534 (char_id_table): Likewise.
1535 (make_char_id_table): Use `Fmake_char_table' and
1537 (get_char_id_table): Use `Lisp_Char_Table' instead of
1538 `Lisp_Char_ID_Table'.
1539 (put_char_id_table): Likewise.
1540 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1542 (Fremove_char_attribute): Likewise.
1543 (syms_of_chartab): Don't define type `char-id-table'.
1545 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1546 (char_id_table): Likewise.
1547 (GC_CHAR_ID_TABLE_P): Likewise.
1548 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1549 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1550 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1551 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1552 (get_char_id_table): Use `Lisp_Char_Table' instead of
1553 `Lisp_Char_ID_Table'.
1554 (put_char_id_table_0): Likewise.
1555 (put_char_id_table): Likewise.
1557 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1559 * chartab.h: Lisp_Byte_Table related codes are moved from
1562 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1564 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1566 * chartab.h: Don't include "chartab.h".
1567 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1568 (Lisp_Char_ID_Table): Likewise.
1569 (char_id_table): Likewise.
1570 (XCHAR_ID_TABLE): Likewise.
1571 (XSETCHAR_ID_TABLE): Likewise.
1572 (CHAR_ID_TABLE_P): Likewise.
1573 (GC_CHAR_ID_TABLE_P): Likewise.
1574 (get_char_id_table): Likewise.
1576 * char-ucs.h: Include "chartab.h".
1577 (struct Lisp_Char_ID_Table): Moved to chartab.h.
1578 (Lisp_Char_ID_Table): Likewise.
1579 (char_id_table): Likewise.
1580 (XCHAR_ID_TABLE): Likewise.
1581 (XSETCHAR_ID_TABLE): Likewise.
1582 (CHAR_ID_TABLE_P): Likewise.
1583 (GC_CHAR_ID_TABLE_P): Likewise.
1584 (get_char_id_table): Likewise.
1586 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1588 * chartab.c (copy_uint8_byte_table): New function.
1589 (copy_uint16_byte_table): New function.
1590 (copy_byte_table): New function.
1591 (map_over_uint8_byte_table): Modify to avoid huge numbers of
1593 (map_over_uint16_byte_table): Likewise.
1594 (map_over_byte_table): Likewise.
1595 (get_byte_table): Move prototype to chartab.h.
1596 (put_byte_table): Likewise.
1597 (put_char_id_table_0): Moved to chartab.h.
1598 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1599 (char_table_entry_equal): Likewise.
1600 (char_table_entry_hash): Likewise.
1601 (char_table_entry_description): Likewise.
1602 (char_table_entry): Likewise.
1603 (make_char_table_entry): Likewise.
1604 (copy_char_table_entry): Likewise.
1605 (get_non_ascii_char_table_value): Likewise.
1606 (map_over_charset_ascii): Likewise.
1607 (map_over_charset_control_1): Likewise.
1608 (map_over_charset_row): Likewise.
1609 (map_over_other_charset): Likewise.
1610 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1611 (print_char_table): Likewise.
1612 (char_table_equal): Likewise.
1613 (char_table_hash): Likewise.
1614 (char_table_description): Likewise.
1615 (fill_char_table): Likewise.
1616 (Fcopy_char_table): Likewise.
1617 (get_char_table): Likewise.
1618 (Fget_range_char_table): Likewise.
1619 (put_char_table): Likewise.
1620 (map_char_table): Likewise.
1621 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1624 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1626 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1627 `Vauto_fill_chars' in XEmacs UTF-2000.
1629 * chartab.h (get_byte_table): New prototype [moved from
1631 (put_byte_table): Likewise [moved from chartab.c].
1632 (put_char_id_table_0): New inline function [moved from chartab.c].
1633 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1634 (Lisp_Char_Table_Entry): Likewise.
1635 (char_table_entry): Likewise.
1636 (XCHAR_TABLE_ENTRY): Likewise.
1637 (XSETCHAR_TABLE_ENTRY): Likewise.
1638 (CHAR_TABLE_ENTRYP): Likewise.
1639 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1640 (NUM_ASCII_CHARS): Likewise.
1641 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1642 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1644 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1646 * chartab.c (get_char_id_table): Change interface.
1647 (put_char_id_table_0): New function.
1648 (put_char_id_table): Change interface; new implementation.
1649 (Fget_composite_char): Modify for interface change of
1650 `get_char_id_table'.
1651 (Fchar_variants): Likewise.
1652 (add_char_attribute_alist_mapper): Likewise.
1653 (Fchar_attribute_alist): Likewise.
1654 (Fget_char_attribute): Likewise.
1655 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1656 as same as character as the first argument like `put-char-table';
1657 modify for interface change of `put_char_id_table'.
1658 (Fremove_char_attribute): Modify for interface change of
1659 `put_char_id_table'.
1661 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1663 * text-coding.c: Sync up with XEmacs 21.2.41.
1664 (COMPOSE_ADD_CHAR): Modify for interface change of
1665 `get_char_id_table'.
1667 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1668 change of `put_char_id_table'.
1669 (remove_char_ccs): Likewise.
1671 * chartab.h (put_char_id_table): Change interface.
1673 * char-ucs.h (get_char_id_table): Change interface.
1674 (charset_code_point): Modify for interface change of
1675 `get_char_id_table'.
1676 (encode_char_1): Likewise.
1678 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1680 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1682 (map_over_uint16_byte_table): Likewise.
1683 (map_over_byte_table): Likewise.
1684 (map_char_id_table): Add new argument `range' like
1686 (Fmap_char_attribute): Add new argument `range' like
1689 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1691 * chartab.c (map_over_uint8_byte_table): Change interface of
1692 mapping function to use struct chartab_range instead of Emchar.
1693 (map_over_uint16_byte_table): Likewise.
1694 (map_over_byte_table): Likewise.
1695 (map_char_id_table): Likewise.
1696 (struct slow_map_char_id_table_arg): Deleted.
1697 (slow_map_char_id_table_fun): Deleted.
1698 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1699 function `slow_map_char_table_fun' instead of struct
1700 `slow_map_char_id_table_arg' and function
1701 `slow_map_char_id_table_fun'.
1703 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1705 * mule-charset.c: Move char-it-table related codes to chartab.c.
1706 (Vutf_2000_version): Moved to chartab.c.
1707 (Fdefine_char): Likewise.
1708 (Ffind_char): Likewise.
1709 (syms_of_mule_charset): Move types `uint8-byte-table',
1710 `uint16-byte-table', `byte-table' and `char-id-table' to
1711 chartab.c; move functions `char_attribute_list,
1712 `find_char_attribute_table, `char_attribute_alist,
1713 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1714 `map_char_attribute, `define_char, `find_char, `char_variants and
1715 `get_composite_char to chartab.c; move symbols `=>ucs',
1716 `->decomposition', `compat', `isolated', `initial', `medial',
1717 `final', `vertical', `noBreak', `fraction', `super', `sub',
1718 `circle', `square', `wide', `narrow', `small' and `font' to
1720 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1721 setting codes for `Vcharacter_composition_table' and
1722 `Vcharacter_variant_table' to chartab.c.
1723 (complex_vars_of_mule_charset): Move setting code for
1724 `Vchar_attribute_hash_table' to chartab.c.
1726 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1727 (make_char_id_table): New prototype.
1728 (put_char_id_table): Likewise.
1729 (Fget_char_attribute): Likewise.
1731 * chartab.c: Move char-id-table related code from mule-charset.c.
1732 (Vutf_2000_version): Moved from mule-charset.c.
1734 * char-ucs.h (Qucs): New external variable.
1735 (put_char_ccs_code_point): New prototype.
1736 (remove_char_ccs): Likewise.
1738 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1740 * mule-charset.c (Vcharset_ucs_jis): New variable.
1741 (Qucs_jis): Likewise.
1742 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1743 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1745 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1747 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1749 * mule-charset.c (map_over_uint8_byte_table): New function.
1750 (map_over_uint16_byte_table): Likewise.
1751 (map_over_byte_table): Likewise.
1752 (map_char_id_table): Likewise.
1753 (slow_map_char_id_table_fun): Likewise.
1754 (Fmap_char_attribute): Likewise.
1755 (syms_of_mule_charset): Add new function `map-char-attribute'.
1757 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1759 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1760 (syms_of_mule_charset): Add new function `find-char'.
1762 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1764 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1766 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1767 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1769 (complex_vars_of_mule_charset): Add new coded-charset
1770 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1771 `ideograph-gt-pj-*'.
1773 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1775 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1777 * mule-charset.c (encode_builtin_char_1): Purge codes about
1778 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1779 {MIN|MAX}_CHAR_HEBREW.
1780 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1781 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1783 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1784 (MAX_CHAR_GREEK): Purged.
1785 (MIN_CHAR_CYRILLIC): Purged.
1786 (MAX_CHAR_CYRILLIC): Purged.
1787 (MIN_CHAR_HEBREW): Commented out.
1788 (MAX_CHAR_HEBREW): Likewise.
1790 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1792 * mule-charset.c (Qto_ucs): New variable.
1793 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1794 (Fdefine_char): Likewise.
1795 (syms_of_mule_charset): Add new symbol `=>ucs'.
1797 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1799 * mule-charset.c (Fdecode_char): Fixed.
1801 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1803 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1804 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1807 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1809 * mule-charset.c (Vcharset_ucs_big5): New variable.
1810 (Qucs_big5): Likewise.
1811 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1812 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1814 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1816 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1818 * mule-charset.c (decode_builtin_char): Check Big5 code range
1819 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1821 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1823 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1824 (Qchinese_gb12345): Likewise.
1825 (Fdecode_builtin_char): Fixed.
1826 (syms_of_mule_charset): Add `chinese-gb12345'.
1827 (complex_vars_of_mule_charset): Add coded-charset
1830 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1831 (LEADING_BYTE_CHINESE_GB12345): New macro.
1833 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1835 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1836 and `latin-viscii-upper' for `latin-viscii'.
1838 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1840 * mule-charset.c (Fdecode_builtin_char): Comment out
1841 regularization code for ISO-IR GR representation.
1843 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1845 * mule-charset.c (decode_builtin_char): New function; renamed from
1846 `make_builtin_char'; return -1 instead of signal.
1847 (Fdecode_builtin_char): Use `decode_builtin_char'.
1849 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1850 `make_builtin_char'.
1851 (DECODE_CHAR): Use `decode_builtin_char' instead of
1852 `make_builtin_char'; use mapping table of `chinese-big5' for
1853 `chinese-big5-{1,2}'.
1855 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1857 * text-coding.c (char_encode_big5): New function.
1858 (char_finish_big5): Likewise.
1859 (reset_encoding_stream): Use `char_encode_big5' and
1860 `char_finish_big5' for CODESYS_BIG5.
1861 (mule_encode): Don't use `encode_coding_big5'.
1862 (encode_coding_big5): Deleted.
1864 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1866 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1867 0x81- in XEmacs UTF-2000.
1868 (detect_coding_big5): Likewise.
1870 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1872 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1873 generate character-id if the CCS property does not have
1874 corresponding predefined character.
1875 (make_builtin_char): Return -1 if corresponding predefined
1876 character is not found.
1877 (Fdecode_char): Return nil if corresponding character is not
1879 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1880 don't map to builtin ucs space.
1882 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1884 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1885 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1887 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1889 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1890 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1891 (Qideograph_gt): Likewise.
1892 (Qideograph_gt_pj_{1..11}): Likewise.
1893 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1894 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1895 `ideograph-gt-pj-11'.
1896 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1897 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1898 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1900 * char-ucs.h (LEADING_BYTE_GT): New macro.
1901 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1902 (MIN_CHAR_GT): Likewise.
1903 (MAX_CHAR_GT): Likewise.
1905 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1907 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1908 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1910 * doprnt.c (unsigned_int_converters): Add `c'.
1911 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1913 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1914 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1916 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1917 (MAX_CHAR_MOJIKYO_0): New macro.
1918 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1920 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1922 * mule-charset.c (Fdefine_char): Delete cemented out code.
1923 (encode_builtin_char_1): Modify for new allocation of builtin
1926 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1928 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1930 * mule-charset.c (Vcharset_ucs_cns): New variable.
1931 (Qucs_cns): New variable.
1932 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1933 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1935 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1937 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1939 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1941 * search.c (search_buffer): Make `charset_base_code' as
1942 character-id >> 6 to eliminate the corresponding last byte in
1943 UTF-8 representation [I'm not sure it is right thing].
1944 (boyer_moore): Likewise.
1946 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1948 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1949 representation in MULE.
1951 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1953 * text-coding.c (Fmake_coding_system): Use
1954 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1955 `EXTERNAL_PROPERTY_LIST_LOOP'.
1957 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1959 * text-coding.c (decode_output_utf8_partial_char): New function.
1960 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1962 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1964 * text-coding.c (decode_coding_utf8): Output original byte
1965 sequence if it is broken; change order of conditions.
1967 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1970 * mb-multibyte.h (BYTE_ASCII_P):
1971 Use bit ops for char-signedness safety.
1972 (BYTE_C0_P): Use bit ops for char-signedness safety.
1973 (BYTE_C1_P): Use bit ops for char-signedness safety.
1975 * character.h: (XCHAR_OR_CHAR_INT):
1976 Always use inline function.
1977 Remove redundant type checking assert() - XINT will abort quite
1980 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1982 * text-coding.c: (Fencode_shift_jis_char):
1983 (Fencode_big5_char):
1984 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1985 Replace 0 with '\0' when working with bytes.
1986 Replace initial "(" with "\(" in docstrings.
1988 (Fmake_coding_system):
1989 When type is ccl and value is vector, register it with a proper
1990 symbol. And checks whether the given ccl program is valid.
1991 (mule_decode): When calling ccl_driver, if src indicates
1992 NULL pointer, set an empty string instead.
1993 (mule_encode): Likewise.
1996 (detect_coding_sjis):
1997 (decode_coding_sjis):
1998 (detect_coding_big5):
1999 (decode_coding_big5):
2000 (detect_coding_ucs4):
2001 (decode_coding_ucs4):
2002 (detect_coding_utf8):
2003 (decode_coding_utf8):
2004 (detect_coding_iso2022):
2005 (decode_coding_iso2022):
2006 (decode_coding_no_conversion):
2008 Make all detecting and decoding functions take an Extbyte * arg.
2009 (text_encode_generic):
2010 (encode_coding_big5):
2011 (encode_coding_no_conversion):
2013 Make all encoding functions take a Bufbyte * arg.
2014 Use size_t instead of unsigned int for memory sizes.
2015 Only cast to unsigned char whenever dereferencing Extbyte *.
2017 (struct lrecord_description fcd_description_1): Use countof.
2018 (complex_vars_of_file_coding):
2019 Use countof instead of sizeof.
2020 Use CHECK_NATNUM instead of CHECK_INT.
2022 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2024 * mule-charset.c (Fget_char_attribute): Add new optional argument
2026 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2027 (remove_char_ccs): Likewise.
2029 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2031 * text-coding.c (char_encode_shift_jis): New implementation in
2033 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2036 * mule-charset.c (Vcharset_chinese_big5): New variable in
2038 (Qchinese_big5): New variable in UTF-2000.
2039 (BIG5_SAME_ROW): New macro in UTF-2000.
2040 (make_builtin_char): Use builtin characters of
2041 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2042 characters of `Vcharset_chinese_big5'.
2043 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2044 (complex_vars_of_mule_charset): Add new coded-charset
2045 `chinese-big5' in UTF-2000.
2047 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2048 (Vcharset_chinese_big5): New external variable declaration.
2049 (Vcharset_japanese_jisx0208_1990): Likewise.
2051 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2053 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2055 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2057 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2059 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2060 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2061 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2064 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2066 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2068 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2070 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2073 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2075 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2076 for `CHARSET_BY_ATTRIBUTES'.
2077 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2078 `CHARSET_BY_ATTRIBUTES'.
2080 * text-coding.c (struct decoding_stream): Rename member `CH' to
2082 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2083 (decode_coding_sjis): Likewise.
2084 (decode_coding_big5): Likewise.
2085 (decode_coding_ucs4): Likewise.
2086 (decode_coding_utf8): Likewise.
2087 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2088 `CHARSET_BY_ATTRIBUTES'.
2089 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2090 `str->counter'; decode 3, 4 bytes sets.
2091 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2093 (decode_coding_no_conversion): Use `str->cpos' instead of
2096 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2097 (Qmojikyo_2022_1): New variable.
2098 (make_charset): Don't use `CHARSET_TYPE_*'.
2099 (range_charset_code_point): Support coded-charset
2101 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2102 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2103 `CHARSET_BY_ATTRIBUTES'.
2104 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2105 `CHARSET_BY_ATTRIBUTES'.
2106 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2107 (complex_vars_of_mule_charset): Add new coded-charset
2110 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2111 interface; changed to inline function.
2113 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2114 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2115 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2116 (CHARSET_TYPE_94): Deleted.
2117 (CHARSET_TYPE_94X94): Deleted.
2118 (CHARSET_TYPE_96): Deleted.
2119 (CHARSET_TYPE_96X96): Deleted.
2120 (CHARSET_TYPE_128): Deleted.
2121 (CHARSET_TYPE_128X128): Deleted.
2122 (CHARSET_TYPE_256): Deleted.
2123 (CHARSET_TYPE_256X256): Deleted.
2124 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2126 (DECODE_MOJIKYO_2022): New inline function.
2127 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2128 `Vcharset_mojikyo_2022_1'.
2130 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2132 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2134 (put_byte_table): Likewise.
2135 (char_id_table_equal): Use `get_byte_table' [new implementation].
2137 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2139 * mule-charset.c: Include <limits.h> in UTF-2000.
2140 (BT_UINT8_MIN): New macro in UTF-2000.
2141 (BT_UINT8_MAX): New macro in UTF-2000.
2142 (BT_UINT8_t): New macro in UTF-2000.
2143 (BT_UINT8_nil): New macro in UTF-2000.
2144 (BT_UINT8_unbound): New macro in UTF-2000.
2145 (INT_UINT8_P): New inline function in UTF-2000.
2146 (UINT8_VALUE_P): New inline function in UTF-2000.
2147 (UINT8_ENCODE): New inline function in UTF-2000.
2148 (UINT8_DECODE): New inline function in UTF-2000.
2149 (mark_uint8_byte_table): New function in UTF-2000.
2150 (print_uint8_byte_table): New function in UTF-2000.
2151 (uint8_byte_table_equal): New function in UTF-2000.
2152 (uint8_byte_table_hash): New function in UTF-2000.
2153 (make_uint8_byte_table): New function in UTF-2000.
2154 (uint8_byte_table_same_value_p): New function in UTF-2000.
2155 (BT_UINT16_MIN): New macro in UTF-2000.
2156 (BT_UINT16_MAX): New macro in UTF-2000.
2157 (BT_UINT16_t): New macro in UTF-2000.
2158 (BT_UINT16_nil): New macro in UTF-2000.
2159 (BT_UINT16_unbound): New macro in UTF-2000.
2160 (INT_UINT16_P): New inline function in UTF-2000.
2161 (UINT16_VALUE_P): New inline function in UTF-2000.
2162 (UINT16_ENCODE): New inline function in UTF-2000.
2163 (UINT16_DECODE): New inline function in UTF-2000.
2164 (UINT8_TO_UINT16): New inline function in UTF-2000.
2165 (mark_uint16_byte_table): New function in UTF-2000.
2166 (print_uint16_byte_table): New function in UTF-2000.
2167 (uint16_byte_table_equal): New function in UTF-2000.
2168 (uint16_byte_table_hash): New function in UTF-2000.
2169 (make_uint16_byte_table): New function in UTF-2000.
2170 (uint16_byte_table_same_value_p): New function in UTF-2000.
2171 (print_byte_table): New function in UTF-2000.
2172 (byte-table): Use `print_byte_table' as printer.
2173 (make_byte_table): Delete second argument `older'.
2174 (byte_table_same_value_p): New function in UTF-2000.
2175 (copy_byte_table): Deleted.
2176 (get_byte_table): New function in UTF-2000.
2177 (put_byte_table): New function in UTF-2000.
2178 (print_char_id_table): New function in UTF-2000.
2179 (char-id-table): Use `print_char_id_table' as printer.
2180 (make_char_id_table): Delete second argument `older'.
2181 (get_char_id_table): Use `get_byte_table [new implementation].
2182 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2184 (Ffind_char_attribute_table): New function in UTF-2000.
2185 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2186 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2187 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2188 (syms_of_mule_charset): Add new function
2189 `find-char-attribute-table' in UTF-2000.
2191 * lrecord.h (enum lrecord_type): Add
2192 `lrecord_type_uint16_byte_table' and
2193 `lrecord_type_uint8_byte_table'.
2195 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2196 (Lisp_Uint8_Byte_Table): New type.
2197 (XUINT8_BYTE_TABLE): New macro.
2198 (XSETUINT8_BYTE_TABLE): New macro.
2199 (UINT8_BYTE_TABLE_P): New macro.
2200 (GC_UINT8_BYTE_TABLE_P): New macro.
2201 (struct Lisp_Uint16_Byte_Table): New structure.
2202 (Lisp_Uint16_Byte_Table): New type.
2203 (XUINT16_BYTE_TABLE): New macro.
2204 (XSETUINT16_BYTE_TABLE): New macro.
2205 (UINT16_BYTE_TABLE_P): New macro.
2206 (GC_UINT16_BYTE_TABLE_P): New macro.
2208 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2210 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2211 (Vcharacter_ideographic_strokes_table): Deleted.
2212 (Vcharacter_total_strokes_table): Deleted.
2213 (Vcharacter_morohashi_daikanwa_table): Deleted.
2214 (Vcharacter_decomposition_table): Deleted.
2215 (Qname): Deleted because it is duplicated.
2216 (Qideographic_radical): Deleted.
2217 (Qideographic_strokes): Deleted.
2218 (Qtotal_strokes): Deleted.
2219 (Qmorohashi_daikanwa): Deleted.
2220 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2221 `ideographic-radical', `ideographic-strokes', `total-strokes',
2222 `morohashi-daikanwa' and `->decomposition'.
2223 (Fget_char_attribute): Likewise.
2224 (Fput_char_attribute): Likewise; use `make-vector' instead of
2225 `make_older_vector' for `->decomposition' value.
2226 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2227 `ideograph-daikanwa'.
2228 (syms_of_mule_charset): Delete builtin symbols `name',
2229 `ideographic-radical', `ideographic-strokes', `total-strokes' and
2230 `morohashi-daikanwa'.
2231 (vars_of_mule_charset): Don't setup
2232 `Vcharacter_ideographic_radical_table',
2233 `Vcharacter_ideographic_strokes_table',
2234 `Vcharacter_total_strokes_table',
2235 `Vcharacter_morohashi_daikanwa_table' and
2236 `Vcharacter_decomposition_table'.
2238 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2240 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2241 `make_older_vector', `make_vector_newer_1' and
2242 `make_vector_newer'.
2244 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2245 `make_older_vector' and `make_vector_newer'.
2247 * config.h.in (HAVE_GGC): New macro.
2249 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2251 * mule-charset.c (struct char_attribute_list_closure): New
2252 structure in UTF-2000.
2253 (add_char_attribute_to_list_mapper): New function in UTF-2000.
2254 (Fchar_attribute_list): Likewise.
2255 (Fset_charset_mapping_table): Use `make_vector_newer'.
2256 (Fdecode_builtin_char): New function in UTF-2000.
2257 (syms_of_mule_charset): Add new function `char-attribute-list' and
2258 `decode-builtin-char' in UTF-2000.
2260 * lisp.h (make_vector_newer): New prototype.
2262 * alloc.c (make_vector_newer_1): New function.
2263 (make_vector_newer): New function.
2265 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2267 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2270 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2272 * mule-charset.c (Vchar_attribute_hash_table): New variable.
2273 (Vcharacter_attribute_table): Deleted.
2274 (Vcharacter_name_table): Deleted.
2275 (put_char_attribute): Deleted.
2276 (remove_char_attribute): Deleted.
2277 (struct char_attribute_alist_closure): New structure.
2278 (add_char_attribute_alist_mapper): New function.
2279 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2280 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2281 (Fget_char_attribute): Likewise.
2282 (Fput_char_attribute): Likewise.
2283 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2284 of `remove_char_attribute'.
2285 (Fdefine_char): Return character.
2286 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2287 and `Vcharacter_name_table'.
2288 (complex_vars_of_mule_charset): Likewise
2289 `Vchar_attribute_hash_table'.
2291 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2293 * character.h (CHARC_CHARSET): New macro.
2294 (CHARC_CHARSET_ID): New macro.
2295 (CHARC_CODE_POINT): New macro.
2296 (CHARC_COLUMNS): New macro.
2297 (CHARC_TO_CHAR): New inline function.
2298 (CHARC_EQ): New inline function.
2299 (CHARC_ASCII_EQ): New inline function.
2300 (CHARC_IS_SPACE): New inline function.
2301 (ASCII_TO_CHARC): New inline function.
2303 * char-ucs.h (encode_char_2): Deleted.
2304 (ENCODE_CHAR): Use `encode_char_1' again.
2305 (breakup_char_1): Likewise.
2306 (CHAR_TO_CHARC): New inline function.
2308 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2310 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2312 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2313 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2314 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2315 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2316 (create_string_text_block): Use `CHARC_ASCII_EQ' and
2318 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2320 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2322 (x_output_display_block): Use `CHARC_CHARSET' and
2325 * redisplay-tty.c (tty_output_display_block): Use
2327 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2329 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2331 * insdel.c (find_charsets_in_charc_string): Use
2333 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2334 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2335 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2336 (convert_charc_string_into_malloced_string): Likewise.
2338 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2340 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2341 instead of <Emchar_dynarr *> for buf; use
2342 `convert_bufbyte_string_into_charc_dynarr' instead of
2343 `convert_bufbyte_string_into_emchar_dynarr'; use
2344 `find_charsets_in_charc_string' instead of
2345 `find_charsets_in_emchar_string'.
2348 - Include "character.h".
2349 (struct rune): New member `cglyph'; delete member `chr'.
2351 * redisplay.c (redisplay_text_width_charc_string): New function;
2352 delete `redisplay_text_width_emchar_string'.
2353 (rtw_charc_dynarr): New variable; renamed from
2354 `rtw_emchar_dynarr'.
2355 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2356 `rtw_emchar_dynarr'; use
2357 `convert_bufbyte_string_into_charc_dynarr' instead of
2358 `convert_bufbyte_string_into_emchar_dynarr'; use
2359 `redisplay_text_width_charc_string' instead of
2360 `redisplay_text_width_emchar_string'.
2361 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2362 instead of `rtw_emchar_dynarr'; use
2363 `convert_bufbyte_string_into_charc_dynarr' instead of
2364 `convert_bufbyte_string_into_emchar_dynarr'.
2365 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2366 `redisplay_text_width_charc_string' instead of
2367 `redisplay_text_width_emchar_string'.
2368 (create_text_block): Modify for <struct rune> change.
2369 (generate_formatted_string_db): Likewise.
2370 (create_string_text_block): Likewise.
2371 (pixel_to_glyph_translation): Likewise.
2373 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2374 instead of <const Emchar *>.
2375 (x_text_width): Likewise.
2376 (x_output_display_block): Use <Charc_dynarr *> instead
2377 <Emchar_dynarr *>; modify for <structure rune> change.
2378 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2381 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2382 <const Emchar *>; use `charc_string_displayed_columns' instead of
2383 `emchar_string_displayed_columns'.
2384 (tty_output_display_block): Use <Charc_dynarr *> instead of
2385 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2386 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2387 (tty_output_charc_dynarr_dynarr): New variable; renamed from
2388 `tty_output_emchar_dynarr_dynarr'.
2389 (tty_output_charc_dynarr): New function; delete
2390 `tty_output_charc_dynarr'.
2392 * redisplay-output.c (compare_runes): Modify for `struct rune'.
2393 (redisplay_output_layout): Use <Charc_dynarr *> instead of
2394 <Emchar_dynarr *> for buf; use
2395 `convert_bufbyte_string_into_charc_dynarr' instead of
2396 `convert_bufbyte_string_into_emchar_dynarr'.
2398 * frame.c (title_string_charc_dynarr): New variable; renamed from
2399 `title_string_emchar_dynarr'.
2400 (generate_title_string): Use `title_string_charc_dynarr' instead
2401 of `title_string_emchar_dynarr'; use
2402 `convert_charc_string_into_malloced_string' instead of
2403 `convert_emchar_string_into_malloced_string'.
2404 (init_frame): Use `title_string_charc_dynarr' instead of
2405 `title_string_emchar_dynarr'.
2408 - Include "character.h".
2409 (struct console_methods): Use <const Charc *> instead of <const
2410 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2411 <Emchar_dynarr *> in output_string_method.
2413 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2416 * console-stream.c (stream_text_width): Use <const Charc *>
2417 instead of <const Emchar *>.
2419 * character.h (Charc_dynarr): New type.
2421 * char-ucs.h (structure Charc): New structure; define new type
2424 * char-lb.h (DECODE_CHAR): New inline function.
2425 (encode_char_1): New inline function.
2426 (ENCODE_CHAR): New macro.
2427 (structure Charc): New structure; define new type `Charc'.
2429 * char-1byte.h (Vcharset_control_1): New macro.
2430 (Vcharset_latin_iso8859_1): New macro.
2431 (DECODE_CHAR): New inline function.
2432 (encode_char_1): New inline function.
2433 (ENCODE_CHAR): New macro.
2434 (structure Charc): New structure; define new type `Charc'.
2436 * insdel.c (find_charsets_in_charc_string): New function; delete
2437 `find_charsets_in_emchar_string'.
2438 (charc_string_displayed_columns): New function; delete
2439 `emchar_string_displayed_columns'.
2440 (convert_bufbyte_string_into_charc_dynarr): New function; delete
2441 `convert_bufbyte_string_into_emchar_dynarr'.
2442 (convert_charc_string_into_bufbyte_dynarr): New function; delete
2443 `convert_charc_string_into_bufbyte_dynarr'.
2444 (convert_charc_string_into_malloced_string): New function; delete
2445 `convert_charc_string_into_malloced_string'.
2447 * buffer.h (find_charsets_in_charc_string): New prototype; delete
2448 `find_charsets_in_emchar_string'.
2449 (charc_string_displayed_columns): New prototype; delete
2450 `emchar_string_displayed_columns'.
2451 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2452 `convert_charc_string_into_bufbyte_dynarr'.
2453 (convert_charc_string_into_malloced_string): New prototype; delete
2454 `convert_charc_string_into_malloced_string'.
2456 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2458 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2460 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2462 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2464 * char-ucs.h: Use <short> for <Charset_ID>.
2466 * mule-charset.h, char-1byte.h: Use <unsigned char> for
2469 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2471 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2474 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2476 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2478 (Qmorohashi_daikanwa): New variable.
2479 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2480 for `morohashi-daikanwa' attribute.
2481 (Fget_char_attribute): Likewise.
2482 (Fput_char_attribute): Likewise.
2483 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2484 has the same value of `ideograph-daikanwa'.
2485 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2486 (vars_of_mule_charset): Setup
2487 `Vcharacter_morohashi_daikanwa_table'.
2489 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2491 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2493 (add_charset_to_list_mapper): Add `key' instead of
2494 `XCHARSET_NAME (value)' to return aliases.
2496 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2498 * mule-charset.c (Vcharacter_ideographic_radical_table): New
2500 (Vcharacter_ideographic_strokes_table): New variable.
2501 (Qideographic_radical): New variable.
2502 (Qideographic_strokes): New variable.
2503 (Fchar_attribute_alist): Use
2504 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2505 attribute; use `Vcharacter_ideographic_strokes_table' for
2506 `ideographic-strokes' attribute.
2507 (Fget_char_attribute): Likewise.
2508 (Fput_char_attribute): Likewise.
2509 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2510 `ideographic-strokes'.
2511 (vars_of_mule_charset): Setup
2512 `Vcharacter_ideographic_radical_table' and
2513 `Vcharacter_ideographic_strokes_table'.
2515 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2517 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2518 (Qtotal_strokes): New variable.
2519 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2520 `total-strokes' attribute.
2521 (Fget_char_attribute): Likewise.
2522 (Fput_char_attribute): Likewise.
2523 (syms_of_mule_charset): Add new symbol `total-strokes'.
2524 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2526 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2528 * mule-charset.c (Vcharacter_decomposition_table): New variable.
2529 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2531 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2532 `->decomposition' attribute.
2533 (Fput_char_attribute): Likewise.
2534 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2536 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2538 * mule-charset.c (decoding_table_check_elements): New function.
2539 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2541 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2543 * mule-charset.c (Fset_charset_mapping_table): Use
2544 `put_char_ccs_code_point'.
2546 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2548 * mule-charset.c (decoding_table_put_char): New inline function.
2549 (put_char_ccs_code_point): Use `decoding_table_put_char'.
2551 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2553 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2554 (XCHARSET_BYTE_SIZE): New macro.
2555 (decoding_table_remove_char): New inline function.
2556 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2557 `decoding_table_remove_char'.
2558 (remove_char_ccs): Use `decoding_table_remove_char'.
2559 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2561 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2563 * mule-charset.c (Vcharacter_name_table): New variable.
2564 (Qname): New variable.
2565 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2567 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2568 `Vcharacter_name_table' for `name' attribute.
2569 (Fremove_char_attribute): Use function `remove_char_ccs'.
2570 (put_char_ccs_code_point): New function.
2571 (remove_char_ccs): New function.
2572 (syms_of_mule_charset): Add new symbol `name'.
2573 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2575 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2577 * mule-charset.c (make_byte_table): Add new argument `older'.
2578 (make_char_id_table): Likewise.
2579 (copy_char_id_table): Comment out because it is not used.
2580 (put_char_id_table): Modify for `make_byte_table'.
2581 (Fput_char_attribute): Make encoding_table as older object;
2582 inherit older bit of `Vcharacter_composition_table'.
2583 (mark_charset): Don't mark `cs->encoding_table'.
2584 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2585 normal object; make `Vcharacter_composition_table' as an older
2586 object; delete staticpro for `Vcharacter_composition_table'; make
2587 `Vcharacter_variant_table' as a normal object.
2589 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2590 (mark_object): Don't check older object in UTF-2000.
2592 * lrecord.h (struct lrecord_header): Add new member `older' in
2594 (set_lheader_implementation): Setup `SLI_header->older' in
2596 (set_lheader_older_implementation): New macro in UTF-2000.
2597 (OLDER_RECORD_P): New macro in UTF-2000.
2598 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2599 (alloc_older_lcrecord): New prototype in UTF-2000.
2600 (alloc_older_lcrecord_type): New macro in UTF-2000.
2602 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2604 * mule-charset.c (byte_table_description): Use
2605 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2606 (char_id_table_description): Delete bogus `, 1'.
2607 (Fget_char_attribute): Refer encoding_table of each coded-charset
2608 to get value of coded-charset attribute of a character.
2609 (Fput_char_attribute): Use `make_older_vector' instead of
2610 `make_vector'; use encoding_table of each coded-charset to store
2611 value of coded-charset attribute of a character.
2612 (Fremove_char_attribute): Use encoding_table of each coded-charset
2613 to store value of coded-charset attribute of a character.
2614 (mark_charset): Mark `cs->encoding_table'; don't mark
2615 `cs->decoding_table'.
2616 (charset_description): Add description of new member
2618 (make_charset): Initialize `encoding_table'.
2620 * char-ucs.h (struct Lisp_Charset): Add new member
2622 (CHARSET_ENCODING_TABLE): New macro.
2623 (XCHARSET_ENCODING_TABLE): New macro.
2624 (charset_code_point): New implementation.
2625 (encode_char_1): Likewise.
2627 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2628 (disksave_object_finalization_1): Call finalizers of
2629 `all_older_lcrecords' in UTF-2000.
2630 (make_older_vector): New function in UTF-2000.
2631 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2634 * lisp.h (make_older_vector): New prototype in UTF-2000.
2636 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2638 * lrecord.h (enum lrecord_type): Rename
2639 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2641 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2642 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2643 `get_char_code_table'.
2645 * mule-charset.c (mark_char_id_table): Renamed from
2646 `mark_char_code_table'.
2647 (char_id_table_equal): Renamed from `char_code_table_equal'.
2648 (char_id_table_hash): Renamed from `char_code_table_hash'.
2649 (make_char_id_table): Renamed from `make_char_code_table'.
2650 (copy_char_id_table): Renamed from `copy_char_code_table'.
2651 (get_char_id_table): Renamed from `get_char_code_table'.
2652 (put_char_id_table): Renamed from `put_char_code_table'.
2653 (to_char_id): Renamed from `to_char_code'.
2655 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2656 `Lisp_Char_Code_Table'.
2657 (char_id_table): Renamed from `char_code_table'.
2658 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2659 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2660 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2661 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2662 (get_char_id_table): Renamed from `get_char_code_table'.
2664 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2666 * lrecord.h (enum lrecord_type): Rename
2667 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2669 * mule-charset.c (mark_byte_table): Renamed from
2670 `mark_char_byte_table'.
2671 (byte_table_equal): Renamed from `char_byte_table_equal'.
2672 (byte_table_hash): Renamed from `byte_table_hash'.
2673 (make_byte_table): Renamed from `make_byte_table'.
2674 (copy_byte_table): Renamed from `copy_char_byte_table'.
2676 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2677 `Lisp_Char_Byte_Table'.
2678 (byte_table): Renamed from `char_byte_table'.
2679 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2680 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2681 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2682 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2684 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2686 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2687 (dfc_convert_to_internal_format): Likewise.
2689 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2690 * text-coding.c (Fcoding_system_alias_p): New function.
2691 * text-coding.c (Fcoding_system_aliasee): New function.
2692 * text-coding.c (append_suffix_to_symbol): New function.
2693 * text-coding.c (dangling_coding_system_alias_p): New function.
2694 * text-coding.c (Ffind_coding_system):
2695 * text-coding.c (Fcopy_coding_system):
2696 * text-coding.c (encode_coding_no_conversion):
2697 * text-coding.c (syms_of_file_coding):
2698 * text-coding.c (vars_of_file_coding):
2699 Rewrite coding system alias code.
2700 Allow nested aliases, like symbolic links.
2701 Allow redefinition of coding system aliases.
2702 Prevent existence of dangling coding system aliases.
2703 Eliminate convert_to_external_format.
2704 Eliminate convert_to_internal_format.
2706 * text-coding.c: Change enum eol_type to eol_type_t.
2708 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2710 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2711 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2713 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2714 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2716 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2718 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2719 `ideograph-daikanwa'.
2721 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2722 (Vcharset_ucs_bmp): Likewise.
2723 (Vcharset_mojikyo): Add new extern variable definition.
2724 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2725 (Vcharset_latin_iso8859_3): Likewise.
2726 (Vcharset_latin_iso8859_4): Likewise.
2727 (Vcharset_latin_iso8859_9): Likewise.
2728 (Vcharset_latin_viscii_lower): Likewise.
2729 (Vcharset_latin_viscii_upper): Likewise.
2730 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2731 `mojikyo' code-point is used to decode.
2732 (encode_char_2): New function [to convert `mojikyo' code-point to
2733 Mojikyo font encoding].
2734 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2735 (breakup_char_1): Likewise.
2736 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2738 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2740 * text-coding.c (Fmake_coding_system): Add document about
2741 `disable-composition' property.
2743 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2745 * text-coding.c (Qdisable_composition): New variable; delete
2747 (Fmake_coding_system): Add new property `disable-composite';
2748 delete property `composite'.
2749 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2750 instead of `!CODING_SYSTEM_COMPOSITE'.
2751 (syms_of_file_coding): Add new symbol `disable-composition';
2752 delete symbol `composite'.
2754 * file-coding.h (struct Lisp_Coding_System): Add
2755 `disable_composition'; delete `enable_composition'.
2756 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2757 `CODING_SYSTEM_COMPOSITE'.
2758 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2759 `XCODING_SYSTEM_COMPOSITE'.
2761 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2763 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2766 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2768 * text-coding.c (Qcomposite): New variable.
2769 (Fmake_coding_system): Add new property `composite'.
2770 (struct decoding_stream): Add `combined_char_count',
2771 `combined_chars' and `combining_table' in UTF-2000.
2772 (COMPOSE_FLUSH_CHARS): New macro.
2773 (COMPOSE_ADD_CHAR): New macro.
2774 (reset_decoding_stream): Reset `str->combined_char_count' and
2775 `str->combining_table' in UTF-2000.
2776 (decode_coding_iso2022): Modify for character-decomposition.
2777 (syms_of_file_coding): Add new symbol `composite'.
2779 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2781 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2782 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2783 of `Vcharacter_composition_table' if `->decomposition' property
2785 (Qlatin_tcvn5712): New variable.
2786 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2787 (complex_vars_of_mule_charset): Add new coded-charset
2790 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2792 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2794 * file-coding.h (struct Lisp_Coding_System): Add
2795 `enable_composition'.
2796 (CODING_SYSTEM_COMPOSITE): New macro.
2797 (XCODING_SYSTEM_COMPOSITE): New macro.
2799 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2801 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2803 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2805 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2806 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2808 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2810 * mule-charset.c (Vcharset_mojikyo): New variable.
2811 (Fdefine_char): Don't use coded-charset which does not have
2812 non-builtin character range to allocate character-id.
2813 (Qmojikyo): New variable.
2814 (syms_of_mule_charset): Add new symbol `mojikyo'.
2815 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2817 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2818 (LEADING_BYTE_MOJIKYO): New macro.
2819 (MIN_CHAR_MOJIKYO): New macro.
2820 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2821 (MAX_CHAR_MOJIKYO): New macro.
2823 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2825 * mule-charset.c (remove_char_attribute): Fixed.
2827 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2829 * mule-charset.c (remove_char_attribute): New function.
2830 (Fremove_char_attribute): New function.
2831 (encode_builtin_char_1): Comment out builtin-support for
2832 greek-iso8859-7 and cyrillic-iso8859-5.
2833 (Fdecode_char): Check `code' is an integer.
2834 (syms_of_mule_charset): Add `remove-char-attribute'.
2835 (MIN_CHAR_GREEK): Deleted.
2836 (MAX_CHAR_GREEK): Likewise.
2837 (MIN_CHAR_CYRILLIC): Likewise.
2838 (MAX_CHAR_CYRILLIC): Likewise.
2839 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2840 MAX_CHAR_GREEK for `greek-iso8859-7'.
2842 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2843 (MAX_CHAR_GREEK): Likewise.
2844 (MIN_CHAR_CYRILLIC): Likewise.
2845 (MAX_CHAR_CYRILLIC): Likewise.
2847 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2849 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2850 format is used without `ucs' property.
2851 (Fdecode_char): Fix problem with GR representation.
2852 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2853 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2855 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2857 * mule-charset.c (make_builtin_char): New function.
2858 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2859 (Fset_charset_mapping_table): Modify for new representation of
2861 (Fdecode_char): New function.
2862 (syms_of_mule_charset): Add new builtin function `decode-char' in
2865 * char-ucs.h (make_builtin_char): New prototype.
2866 (DECODE_CHAR): New inline function.
2867 (MAKE_CHAR): Use `DECODE_CHAR'.
2869 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2871 * text-coding.c (parse_charset_conversion_specs): Use
2872 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2874 (iso2022_designate): Likewise.
2876 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2877 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2879 * mule-charset.c (Vcharset_ucs): New variable.
2880 (print_charset): Change design; use `CHARSET_CHARS' and
2881 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2882 (make_charset): Change signature to specify `chars' and
2883 `dimension' instead of `type'.
2884 (range_charset_code_point): Modify for 256^n-set.
2885 (encode_builtin_char_1): Encode as `ucs' in default.
2886 (Fmake_charset): Modify for `make_charset'.
2887 (Fmake_reverse_direction_charset): Likewise.
2888 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2890 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2893 * char-ucs.h (Vcharset_ucs): New variable.
2894 (LEADING_BYTE_UCS): New macro.
2895 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2896 and `chars' to `unsigned short' from `unsigned int'.
2897 (CHARSET_TYPE): Deleted.
2898 (XCHARSET_TYPE): Deleted.
2900 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2902 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2904 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2905 (ENCODE_CHAR): New macro.
2907 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2909 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2910 to 0.14 (Kawachi-Katakami).
2912 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2914 * text-coding.c (char_encode_shift_jis): Modify for
2915 `charset_code_point'.
2916 (char_encode_iso2022): Likewise.
2918 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2919 (integer) instead of list of <Lisp_Object>s (integers) as the
2920 format of code-point of a coded-charset.
2921 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2922 (encode_builtin_char_1): New function; delete
2923 `split_builtin_char'.
2924 (charset_code_point): Return <int> instead of <Lisp_Object>.
2925 (Fsplit_char): Don't use `SPLIT_CHAR'.
2927 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2928 prototype for `split_builtin_char'.
2929 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2930 (charset_code_point): Likewise.
2931 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2932 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2934 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2936 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2937 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2939 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2941 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2943 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2944 (MAX_CHAR_OBS_94x94): Deleted.
2946 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2948 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2950 * char-ucs.h (MAX_CHAR_BMP): New macro.
2952 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2954 * text-coding.c: Sync with r21-2-24.
2956 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2958 * file-coding.c: Modify for UTF-2000.
2960 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2962 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2965 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2967 * mule-charset.c (split_builtin_char): Delete builtin support for
2968 `katakana-jisx0201'.
2969 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2970 BMP area in builtin representation.
2972 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2973 `Vcharset_katakana_jisx0201'.
2975 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2977 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2978 (Qisolated): New variable.
2979 (Qinitial): New variable.
2980 (Qmedial): New variable.
2981 (Qfinal): New variable.
2982 (Qvertical): New variable.
2983 (Qsmall): New variable.
2984 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2985 `Qvertical' and `Qsmall'.
2986 (Qmojikyo_pj_[1 .. 21]): New variable.
2987 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2988 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2989 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2992 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2994 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2995 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2996 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2998 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3000 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3001 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3003 (Qjapanese_jisx0208_1990): New variable.
3004 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3005 (complex_vars_of_mule_charset): Add new coded-charset
3006 `japanese-jisx0208-1990'.
3008 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3009 (MIN_CHAR_JIS_X0208_1990): New macro.
3010 (MAX_CHAR_JIS_X0208_1990): New macro.
3012 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
3014 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3015 coded-charset is not found.
3017 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
3019 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3020 (Fdefine_char): Use `Fmake_char'.
3022 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3024 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3025 (Vcharset_hiragana_jisx0208): Deleted.
3026 (Vcharset_katakana_jisx0208): Deleted.
3027 (Qideograph_daikanwa): New variable.
3028 (Qhiragana_jisx0208): Deleted.
3029 (Qkatakana_jisx0208): Deleted.
3030 (split_builtin_char): Split `ideograph-daikanwa'.
3031 (Fsplit_char): New implementation for UTF-2000.
3032 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3033 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3034 (complex_vars_of_mule_charset): Add new coded-charset
3035 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3036 `katakana-jisx0208'.
3038 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3039 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3040 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3041 (MIN_CHAR_DAIKANWA): New macro.
3042 (MAX_CHAR_DAIKANWA): New macro.
3044 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3046 * data.c (Fstring_to_number): Don't recognize floating point if
3049 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3051 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3053 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3055 * mule-charset.c (Qsquare): New variable.
3056 (to_char_code): Add `Qsquare'.
3057 (syms_of_mule_charset): Add new symbol `square'.
3059 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3061 * mule-charset.c (Qcircle): New variable.
3062 (to_char_code): Add `Qcircle'.
3063 (syms_of_mule_charset): Add new symbol `circle'.
3065 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3067 * mule-charset.c (Qfont): New variable.
3068 (to_char_code): Add `Qfont'.
3069 (syms_of_mule_charset): Add new symbol `font'.
3071 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3073 * mule-charset.c (Qsub): New variable.
3074 (to_char_code): Add `Qsub'.
3075 (syms_of_mule_charset): Add new symbol `sub'.
3077 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3079 * mule-charset.c (Fput_char_attribute): Convert each element of
3080 VALUE to GL position if ATTRIBUTE is a GR-set,
3082 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3084 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3085 coded-charset is a GR-set.
3087 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3089 * mule-charset.c (Fput_char_attribute): Check each element of
3090 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3092 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3094 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3096 (Qethiopic_ucs): New variable in UTF-2000.
3097 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3098 (complex_vars_of_mule_charset): Add new coded-charset
3099 `ethiopic-ucs' in UTF-2000.
3101 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3102 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3104 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3106 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3108 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3110 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3113 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3115 * mule-charset.c (Vcharacter_variant_table): New variable.
3116 (Q_ucs): New variable.
3117 (Fchar_variants): New function.
3118 (Fput_char_attribute): Register `->ucs' value to
3119 `Vcharacter_variant_table'.
3120 (syms_of_mule_charset): Add new function `char-variants' and new
3122 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3124 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3126 * mule-charset.c (get_char_code_table): Allow negative character
3128 (put_char_code_table): Likewise.
3129 (Vcharacter_composition_table): New variable.
3130 (Q_decomposition): New variable.
3131 (Qwide): New variable.
3132 (Qnarrow): New variable.
3133 (Qcompat): New variable.
3134 (QnoBreak): New variable.
3135 (Qsuper): New variable.
3136 (Qfraction): New variable.
3137 (to_char_code): New function.
3138 (Fget_composite_char): New function.
3139 (Fput_char_attribute): Register `->decomposition' value to
3140 `Vcharacter_composition_table'.
3141 (syms_of_mule_charset): Add new function `get-composite-char', new
3142 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3143 `super' and `fraction'.
3144 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3146 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3148 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3149 character; copy the return value.
3151 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3153 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3155 * mule-charset.c (range_charset_code_point): Must use make_int.
3156 (split_builtin_char): New function.
3158 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3160 * mule-charset.c (char_byte_table): Change name from
3161 "char-code-table" to "char-byte-table".
3162 (mark_char_code_table): New function.
3163 (char_code_table_equal): New function.
3164 (char_code_table_hash): New function.
3165 (char_code_table_description): New constant.
3166 (char_code_table): New type.
3167 (make_char_code_table): New function.
3168 (copy_char_code_table): New function.
3169 (get_char_code_table): Modify for `char_code_table' type.
3170 (put_char_code_table): Likewise.
3171 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3174 * char-ucs.h (char_code_table): New type.
3175 (XCHAR_CODE_TABLE): New macro.
3176 (XSETCHAR_CODE_TABLE): New macro.
3177 (CHAR_CODE_TABLE_P): New macro.
3178 (GC_CHAR_CODE_TABLE_P): New macro.
3179 (struct Lisp_Char_Code_Table): New structure.
3181 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3183 * mule-charset.c (Fmake_charset): Setup byte_offset for
3186 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
3188 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3191 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3193 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3196 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3198 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3199 charset, it is regarded as a charset.
3200 (put_char_attribute): New function in UTF-2000.
3201 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3202 charset, mapping-table of the charset is modified.
3203 (Fdefine_char): New function in UTF-2000.
3204 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3205 `Fput_char_attribute'.
3206 (syms_of_mule_charset): Add new function `define-char' and new
3207 symbol `ucs' in UTF-2000.
3208 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3210 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3212 * mule-charset.c (Fcharset_name): Define `byte_offset' in
3213 non-UTF-2000 configuration.
3215 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3217 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3218 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3220 * mule-charset.c (mark_charset): `cs->encoding_table' has been
3222 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3223 (Fset_charset_mapping_table): Likewise.
3225 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3226 (CHARSET_ENCODING_TABLE): Delete.
3227 (XCHARSET_ENCODING_TABLE): Delete.
3228 (charset_code_point): New interface.
3230 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3232 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3233 instead of `charset_get_byte1' and `charset_get_byte2'.
3235 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3236 (charset_get_byte2): Deleted.
3238 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3240 * char-ucs.h (SPLIT_CHAR): New inline function.
3241 (breakup_char_1): Use `SPLIT_CHAR'.
3243 * mule-charset.c (range_charset_code_point): New function.
3244 (charset_code_point): New function.
3246 * char-ucs.h (range_charset_code_point): New interface.
3247 (breakup_char_1): Use `range_charset_code_point'.
3249 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3251 * mule-charset.c (Fmake_charset): Delete unused local variable
3254 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3255 (breakup_char_1): Find a charset and code-point in
3256 `Vcharacter_attribute_table'.
3258 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3260 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3263 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3265 * mule-charset.c (Vcharacter_attribute_table): New variable.
3266 (Fchar_attribute_alist): New function.
3267 (Fget_char_attribute): New function.
3268 (Fput_char_attribute): New function.
3269 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3271 (syms_of_mule_charset): Add new function `char-attribute-alist',
3272 `get-char-attribute' and `put-char-attribute'.
3273 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3275 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
3277 * mule-charset.c (Fmake_charset): Just use
3278 `get_unallocated_leading_byte'.
3280 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3281 sets; don't use final-byte based number for private sets.
3283 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3285 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3288 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3290 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3293 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3295 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3296 of `CHAR_LEADING_BYTE' in UTF-2000.
3298 * insdel.c (find_charsets_in_bufbyte_string): Use
3299 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3300 (find_charsets_in_emchar_string): Likewise.
3302 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3303 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3305 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3306 (CHAR_CHARSET_ID): New macro.
3308 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3310 * chartab.c (get_char_table): Don't use type `Charset_ID' for
3311 charset-id - MIN_LEADING_BYTE.
3312 (put_char_table): Likewise.
3314 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3316 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3317 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3318 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3319 (CHARSET_ID_OFFSET): New macro.
3320 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3321 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3322 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3323 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3325 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3327 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3328 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3329 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3330 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3331 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3333 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3335 * mule-charset.c (next_allocated_leading_byte): New variable in
3337 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3338 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3339 (get_unallocated_leading_byte): Simply use
3340 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3341 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3344 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3345 (MAX_LEADING_BYTE_PRIVATE): New macro.
3346 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3347 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3349 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3351 * mule-charset.c (Fmake_charset): Allocate final-byte based
3352 charset-id for 94-set, 96-set and 94x94-set.
3354 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3356 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3358 (Fmake_charset): Likewise.
3359 (complex_vars_of_mule_charset): Modify the font registry of
3360 `ucs-bmp' not to match `Ethiopic-Unicode'.
3362 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3364 * mule-charset.c (complex_vars_of_mule_charset): Add font
3365 registory of `ucs-bmp'.
3367 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3369 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3370 coded-charsets in `default-coded-charset-priority-list' when
3371 breaking up a character.
3373 * mule-charset.c (Vcharset_latin_viscii): New variable.
3374 (Qlatin_viscii): New variable.
3375 (make_charset): Don't use `decoding_table'.
3376 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3378 (Fset_charset_mapping_table): New implementation.
3379 (syms_of_mule_charset): Add new symbol `latin-viscii'.
3380 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3381 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3382 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3383 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3384 charset `latin_viscii'.
3386 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3387 (CHARSET_TYPE_94X94): Change to 1 from 2.
3388 (CHARSET_TYPE_96): Change to 2 from 1.
3389 (CHARSET_TYPE_128): New macro.
3390 (CHARSET_TYPE_128X128): Change to 5 from 4.
3391 (CHARSET_TYPE_256): New macro.
3392 (CHARSET_TYPE_256X256): Change to 7 from 5.
3393 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3395 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3397 * text-coding.c (char_encode_shift_jis): Refer
3398 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3399 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3401 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3402 (char_byte_table_equal): New function in UTF-2000.
3403 (char_byte_table_hash): New function in UTF-2000.
3404 (char_byte_table_description): New constant in UTF-2000.
3405 (char_byte_table): New type in UTF-2000.
3406 (make_char_byte_table): New function in UTF-2000.
3407 (copy_char_byte_table): New function in UTF-2000.
3408 (make_char_code_table): New macro in UTF-2000.
3409 (get_char_code_table): New function in UTF-2000.
3410 (put_char_code_table): New function in UTF-2000.
3411 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3412 (charset_description): Add setting in UTF-2000.
3413 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3414 `CHARSET_TO_BYTE1_TABLE(cs)'.
3415 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3416 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3417 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3418 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3419 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3420 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3421 `CHARSET_TO_BYTE2_TABLE(cs)'.
3423 * char-ucs.h (char_byte_table): New type.
3424 (XCHAR_BYTE_TABLE): New macro.
3425 (XSETCHAR_BYTE_TABLE): New macro.
3426 (CHAR_BYTE_TABLE_P): New macro.
3427 (GC_CHAR_BYTE_TABLE_P): New macro.
3428 (struct Lisp_Char_Byte_Table): New structure.
3429 (get_char_code_table): New interface.
3430 (Emchar_to_byte_table): Deleted.
3431 (get_byte_from_character_table): Deleted.
3432 (struct Lisp_Charset): Add `encoding_table'; delete
3433 `to_byte1_table' and `to_byte2_table'.
3434 (CHARSET_ENCODING_TABLE): New macro.
3435 (CHARSET_TO_BYTE1_TABLE): Deleted.
3436 (CHARSET_TO_BYTE2_TABLE): Deleted.
3437 (XCHARSET_ENCODING_TABLE): New macro.
3438 (XCHARSET_TO_BYTE1_TABLE): Deleted.
3439 (XCHARSET_TO_BYTE2_TABLE): Deleted.
3441 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3443 * mule-charset.c (syms_of_mule_charset): Delete charset alias
3444 `vietnamese-viscii-*'.
3446 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3448 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3449 (Qvietnamese_viscii_upper): New variable.
3450 (Fdefine_charset_alias): New function.
3451 (syms_of_mule_charset): Add new function `define-charset-alias'.
3452 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3453 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3456 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
3458 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3459 (MAX_CHAR_OBS_94x94): New macro.
3460 (breakup_char_1): Support obsolete XEmacs-UCS private code space
3463 * mule-charset.c (put_byte_from_character_table): Change unit size
3465 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3467 (Fmake_reverse_direction_charset): Modify dummy argument of
3468 `make_charset' for non-UTF-2000 environment.
3470 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3472 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3474 * mule-charset.c (destroy_byte_from_character_table): New macro.
3475 (latin_jisx0201_to_ucs): Deleted.
3476 (latin_iso8859_2_to_ucs): Deleted.
3477 (latin_iso8859_3_to_ucs): Deleted.
3478 (latin_iso8859_4_to_ucs): Deleted.
3479 (latin_iso8859_9_to_ucs): Deleted.
3480 (latin_viscii_lower_to_ucs): Deleted.
3481 (latin_viscii_upper_to_ucs): Deleted.
3482 (mark_charset): Mark `cs->decoding_table'.
3483 (Fcharset_mapping_table): Fix DOC-string.
3484 (Fset_charset_mapping_table): New function.
3485 (syms_of_mule_charset): Add nwe function
3486 `set-charset-mapping-table'.
3487 (complex_vars_of_mule_charset): Don't setup and use
3490 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
3492 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3495 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
3497 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3498 (Vcharset_katakana_jisx0208): New variable.
3499 (Qhiragana_jisx0208): New variable.
3500 (Qkatakana_jisx0208): New variable.
3501 (make_charset): Add new argument `byte_offset'.
3502 (charset_get_byte1): Modify for new coded-charset definition; use
3503 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3504 `XCHARSET_BYTE_OFFSET'.
3505 (Fmake_charset): Modify for `make_charset'.
3506 (Fmake_reverse_direction_charset): Likewise.
3507 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3508 `katakana-jisx0208'.
3509 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3510 `.' in font registry of charset `katakana-jisx0201',
3511 `latin-jisx0201', `vietnamese-viscii-lower' and
3512 `vietnamese-viscii-upper'; modify DOC-string of charset
3513 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3514 registry of charset `japanese-jisx0208' not to use font for JIS
3515 X0208:1990; add new charset `hiragana-jisx0208' and
3516 `katakana-jisx0208'.
3518 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3519 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3520 (struct Lisp_Charset): Add `byte_offset'.
3521 (CHARSET_BYTE_OFFSET): New macro.
3522 (XCHARSET_UCS_MIN): New macro.
3523 (XCHARSET_UCS_MAX): New macro.
3524 (XCHARSET_CODE_OFFSET): New macro.
3525 (XCHARSET_BYTE_OFFSET): New macro.
3526 (MIN_CHAR_HIRAGANA): New macro.
3527 (MAX_CHAR_HIRAGANA): New macro.
3528 (MIN_CHAR_KATAKANA): New macro.
3529 (MAX_CHAR_KATAKANA): New macro.
3530 (MAKE_CHAR): Modify for new coded-charset definition; use
3531 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3532 `XCHARSET_BYTE_OFFSET'.
3534 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3536 * mule-charset.c (CHAR96): Deleted.
3537 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3539 (latin_iso8859_2_to_ucs): Likewise.
3540 (latin_iso8859_3_to_ucs): Likewise.
3541 (latin_iso8859_4_to_ucs): Likewise.
3542 (latin_iso8859_9_to_ucs): Likewise.
3543 (latin_viscii_lower_to_ucs): Likewise.
3544 (latin_viscii_upper_to_ucs): Likewise.
3545 (latin_tcvn5712_to_ucs): Commented out.
3546 (make_charset): Change type of argument `decoding_table' from
3547 <Emchar*> to <Lisp_Object> [vector of characters].
3548 (Fmake_charset): Modify for `make_charset'.
3549 (Fmake_reverse_direction_charset): Likewise.
3550 (Fcharset_mapping_table): New function in UTF-2000.
3551 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3553 (complex_vars_of_mule_charset): Modify for type change of
3554 `*_to_ucs'; modify for `make_charset'.
3556 * char-ucs.h (struct Lisp_Charset): Change type of
3557 `decoding_table' from <Emchar*> to <Lisp_Object>.
3558 (MAKE_CHAR): Modify for new specification of `decoding_table'.
3560 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3562 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3563 error with non-UTF-2000-Mule.
3565 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
3567 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3569 (Vcharset_chinese_cns11643_4): Likewise.
3570 (Vcharset_chinese_cns11643_5): Likewise.
3571 (Vcharset_chinese_cns11643_6): Likewise.
3572 (Vcharset_chinese_cns11643_7): Likewise.
3573 (Qchinese_cns11643_3): Likewise.
3574 (Qchinese_cns11643_4): Likewise.
3575 (Qchinese_cns11643_5): Likewise.
3576 (Qchinese_cns11643_6): Likewise.
3577 (Qchinese_cns11643_7): Likewise.
3578 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3579 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3580 and `chinese-cns11643-7' to lisp/mule/chinese.el.
3581 (complex_vars_of_mule_charset): Likewise.
3583 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3585 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3587 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3588 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3590 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3592 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3594 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3595 (breakup_char_1): Likewise.
3597 * text-coding.c (char_encode_iso2022): Keep designated charsets if
3598 one of them includes the specified character.
3600 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3602 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3604 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3606 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3608 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3610 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3611 definition for non-UTF-2000 Mule.
3612 (latin_iso8859_3_to_ucs): Likewise.
3613 (latin_iso8859_4_to_ucs): Likewise.
3614 (latin_iso8859_9_to_ucs): Likewise.
3615 (latin_jisx0201_to_ucs): Likewise.
3616 (MIN_CHAR_THAI): Likewise.
3617 (MAX_CHAR_THAI): Likewise.
3618 (MIN_CHAR_GREEK): Likewise.
3619 (MAX_CHAR_GREEK): Likewise.
3620 (MIN_CHAR_HEBREW): Likewise.
3621 (MAX_CHAR_HEBREW): Likewise.
3622 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3623 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3624 (MIN_CHAR_CYRILLIC): Likewise.
3625 (MAX_CHAR_CYRILLIC): Likewise.
3627 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3629 * char-ucs.h (breakup_char_1): Use
3630 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3631 thai-tis620 and katakana-jisx0201 area.
3633 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3635 * char-ucs.h (breakup_char_1): Use
3636 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3639 * text-coding.c (reset_encoding_stream): Fixed.
3640 (char_encode_ucs4): Delete `& 255'.
3642 * char-ucs.h (breakup_char_1): Use
3643 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3645 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3647 * file-coding.c (Fmake_coding_system): Don't set up
3648 `codesys->fixed.size'.
3649 (encode_coding_no_conversion): Don't refer
3650 `str->codesys->fixed.size'.
3652 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3654 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3655 (latin_a_char_to_byte1): Deleted.
3656 (latin_a_char_to_byte2): Deleted.
3658 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3660 * mule-charset.c (make_charset): Add new argument `ucs_min',
3661 `ucs_max' and `code_offset'.
3662 (charset_get_byte1): New implementation [delete specific charset
3663 depended implementations].
3664 (Fmake_charset): Modify for `make_charset'.
3665 (Fmake_reverse_direction_charset): Likewise.
3666 (complex_vars_of_mule_charset): Likewise.
3668 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3670 (CHARSET_UCS_MIN): New macro.
3671 (CHARSET_UCS_MAX): New macro.
3672 (CHARSET_CODE_OFFSET): New macro.
3673 (MAKE_CHAR): Delete charset depended definitions [except
3676 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3678 * char-ucs.h (breakup_char_1): Use
3679 `Vdefault_coded_charset_priority_list' for C0-Controls,
3680 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3682 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3684 * char-ucs.h (charset_get_byte1): New function.
3685 (XCHARSET_GET_BYTE1): Deleted.
3686 (charset_get_byte2): New function.
3687 (XCHARSET_GET_BYTE2): Deleted.
3688 (Vdefault_coded_charset_priority_list): New external variable.
3689 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3690 `Vdefault_preferred_coded_charset_list'.
3692 * mule-charset.c (charset_get_byte1): New function.
3693 (charset_get_byte2): New function.
3694 (Vdefault_coded_charset_priority_list): New variable.
3695 (vars_of_mule_charset): Add new variable
3696 `default-coded-charset-priority-list'.
3698 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3700 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3701 (XCHARSET_GET_BYTE2): New inline function.
3702 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3703 `XCHARSET_GET_BYTE2'.
3705 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3707 * mule-charset.c (make_charset): Initialize
3708 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3709 NULL if table is not defined.
3711 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3713 * text-coding.c (char_encode_shift_jis): Use
3714 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3715 `ucs_to_latin_jisx0201'.
3717 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3718 (ucs_to_latin_iso8859_2): Deleted.
3719 (ucs_to_latin_iso8859_3): Deleted.
3720 (ucs_to_latin_iso8859_4): Deleted.
3721 (ucs_to_latin_iso8859_9): Deleted.
3722 (ucs_to_latin_viscii_lower): Deleted.
3723 (ucs_to_latin_viscii_upper): Deleted.
3724 (ucs_to_latin_tcvn5712): Deleted.
3725 (make_charset): Add new argument `decoding_table'; set up
3726 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3727 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3728 `decoding_table' is defined in UTF-2000.
3729 (Fmake_charset): Modify for `make_charset'.
3730 (Fmake_reverse_direction_charset): Likewise.
3731 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3732 and `GENERATE_96_SET'.
3734 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3735 (ucs_to_latin_jisx0201): Deleted.
3736 (latin_iso8859_2_to_ucs): Deleted.
3737 (ucs_to_latin_iso8859_2): Deleted.
3738 (latin_iso8859_3_to_ucs): Deleted.
3739 (ucs_to_latin_iso8859_3): Deleted.
3740 (latin_iso8859_4_to_ucs): Deleted.
3741 (ucs_to_latin_iso8859_4): Deleted.
3742 (latin_iso8859_9_to_ucs): Deleted.
3743 (ucs_to_latin_iso8859_9): Deleted.
3744 (latin_viscii_lower_to_ucs): Deleted.
3745 (ucs_to_latin_viscii_lower): Deleted.
3746 (latin_viscii_upper_to_ucs): Deleted.
3747 (ucs_to_latin_viscii_upper): Deleted.
3748 (struct Lisp_Charset): Renamed `encoding_table' to
3749 `to_byte1_table'; add `to_byte2_table'.
3750 (CHARSET_DECODING_TABLE): New macro.
3751 (CHARSET_TO_BYTE1_TABLE): New macro.
3752 (CHARSET_TO_BYTE2_TABLE): New macro.
3753 (XCHARSET_DECODING_TABLE): New macro.
3754 (XCHARSET_TO_BYTE1_TABLE): New macro.
3755 (XCHARSET_TO_BYTE2_TABLE): New macro.
3756 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3758 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3759 don't use `ucs_to_*' tables.
3761 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3763 * text-coding.c (Fmake_coding_system): Don't set up
3764 `codesys->fixed.size'.
3765 (encode_coding_no_conversion): Use `if' instead of `switch'.
3767 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3769 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3771 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3772 (Fmake_charset): Modify for `make_charset'.
3773 (Fmake_reverse_direction_charset): Likewise.
3774 (complex_vars_of_mule_charset): Likewise.
3776 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3778 * text-coding.c (char_encode_shift_jis): Use table
3779 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3781 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3783 * text-coding.c (text_encode_generic): Use `if' instead of
3785 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3788 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3790 * text-coding.c (encode_coding_sjis): Deleted.
3791 (char_encode_shift_jis): New function.
3792 (char_finish_shift_jis): New function.
3793 (reset_encoding_stream): Set up `encode_char' and `finish' for
3794 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3795 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3796 (char_encode_utf8): Treat `eol_type'.
3798 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3800 * file-coding.c (decode_coding_iso2022): Use
3801 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3803 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3805 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3808 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3810 * char-lb.h (CHAR_COLUMNS): New macro.
3812 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3814 * text-coding.c (char_encode_ucs4): New function.
3815 (char_finish_ucs4): New function.
3816 (encode_coding_ucs4): Deleted.
3817 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3818 (text_encode_generic): Delete local variable `charset' and `half'.
3819 (ucs_to_mule_table): Deleted.
3820 (mule_to_ucs_table): Deleted.
3821 (Fset_ucs_char): Deleted.
3822 (ucs_to_char): Deleted.
3823 (Fucs_char): Deleted.
3824 (Fset_char_ucs): Deleted.
3825 (Fchar_ucs): Deleted.
3826 (decode_ucs4): Deleted.
3827 (mule_char_to_ucs4): Deleted.
3828 (encode_ucs4): Deleted.
3829 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3830 (decode_coding_utf8): Likewise.
3831 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3832 (char_encode_iso2022): Fixed.
3833 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3834 `Fset_char_ucs' and `Fchar_ucs'.
3835 (complex_vars_of_file_coding): Don't initialize
3836 `ucs_to_mule_table'.
3838 * objects-tty.c (tty_initialize_font_instance): Don't use
3841 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3844 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3845 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3847 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3848 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3849 (emchar_string_displayed_columns): Likewise.
3851 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3852 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3853 (string_column_at_point): Likewise.
3854 (Fmove_to_column): Likewise.
3856 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3857 `encoding_table' and `decoding_table'.
3858 (CHARSET_REP_BYTES): Deleted.
3859 (XCHARSET_REP_BYTES): Deleted.
3860 (XCHARSET_COLUMNS): Deleted.
3861 (CHAR_COLUMNS): New macro.
3862 (lookup_composite_char): Deleted unconditionally.
3863 (composite_char_string): Likewise.
3865 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3867 * char-ucs.h (Emchar_to_byte_table): New type.
3868 (get_byte_from_character_table): New function interface.
3869 (Vcharset_latin_jisx0201): New variable.
3870 (latin_jisx0201_to_ucs): New variable.
3871 (ucs_to_latin_jisx0201): New variable.
3872 (Vcharset_latin_iso8859_2): New variable.
3873 (latin_iso8859_2_to_ucs): New variable.
3874 (ucs_to_latin_iso8859_2): New variable.
3875 (Vcharset_latin_iso8859_3): New variable.
3876 (latin_iso8859_3_to_ucs): New variable.
3877 (ucs_to_latin_iso8859_3): New variable.
3878 (Vcharset_latin_iso8859_4): New variable.
3879 (latin_iso8859_4_to_ucs): New variable.
3880 (ucs_to_latin_iso8859_4): New variable.
3881 (Vcharset_latin_iso8859_9): New variable.
3882 (latin_iso8859_9_to_ucs): New variable.
3883 (ucs_to_latin_iso8859_9): New variable.
3884 (Vcharset_latin_viscii_lower): New variable.
3885 (latin_viscii_lower_to_ucs): New variable.
3886 (ucs_to_latin_viscii_lower): New variable.
3887 (Vcharset_latin_viscii_upper): New variable.
3888 (latin_viscii_upper_to_ucs): New variable.
3889 (ucs_to_latin_viscii_upper): New variable.
3890 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3891 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3892 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3893 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3894 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3895 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3896 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3897 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3898 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3899 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3901 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3902 (Vcharset_latin_viscii_upper): New variable.
3903 (make_byte_from_character_table): New function.
3904 (put_byte_from_character_table): New function.
3905 (get_byte_from_character_table): New function.
3906 (CHAR96): New macro.
3907 (ucs_to_latin_jisx0201): New variable.
3908 (latin_jisx0201_to_ucs): New variable.
3909 (ucs_to_latin_iso8859_2): New variable.
3910 (latin_iso8859_2_to_ucs): New variable.
3911 (ucs_to_latin_iso8859_3): New variable.
3912 (latin_iso8859_3_to_ucs): New variable.
3913 (ucs_to_latin_iso8859_4): New variable.
3914 (latin_iso8859_4_to_ucs): New variable.
3915 (ucs_to_latin_iso8859_9): New variable.
3916 (latin_iso8859_9_to_ucs): New variable.
3917 (ucs_to_latin_viscii_lower): New variable.
3918 (latin_viscii_lower_to_ucs): New variable.
3919 (ucs_to_latin_viscii_upper): New variable.
3920 (latin_viscii_upper_to_ucs): New variable.
3921 (ucs_to_latin_tcvn5712): New variable.
3922 (latin_tcvn5712_to_ucs): New variable.
3923 (Qlatin_viscii_lower): New variable.
3924 (Qlatin_viscii_upper): New variable.
3925 (syms_of_mule_charset): Set up new symbol
3926 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3927 (complex_vars_of_mule_charset): Set up new charset
3928 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3929 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3930 `ucs_to_<CHARSET>' tables.
3932 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3934 * text-coding.c: New file.
3936 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3938 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3940 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3941 (MAKE_CHAR): Modify for `ucs-bmp'.
3942 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3943 non-MULE characters of BMP.
3945 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3947 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3950 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3953 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3954 - Include character.h for `CHAR_ASCII_P'.
3956 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3958 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3959 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3961 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3962 (BYTE_C0_P): Likewise.
3963 (BYTE_C1_P): Likewise.
3964 (Lstream_get_emchar_1): Likewise.
3965 (Lstream_fput_emchar): Likewise.
3966 (Lstream_funget_emchar): Likewise.
3967 (copy_internal_to_external): Likewise.
3968 (copy_external_to_internal): Likewise.
3970 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3971 (BYTE_C0_P): Likewise.
3972 (BYTE_C1_P): Likewise.
3973 (Lstream_get_emchar_1): Likewise.
3974 (Lstream_fput_emchar): Likewise.
3975 (Lstream_funget_emchar): Likewise.
3976 (copy_internal_to_external): Likewise.
3977 (copy_external_to_internal): Likewise.
3979 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3980 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3982 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3983 (BYTE_ASCII_P): Moved to mb-1byte.h.
3985 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3987 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3989 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3990 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3991 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3992 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3993 (VALIDATE_CHARPTR_FORWARD): Likewise.
3994 (simple_charptr_emchar): Moved to mb-multibyte.h.
3995 (simple_set_charptr_emchar): Likewise.
3996 (simple_charptr_copy_char): Likewise.
3997 (non_ascii_charptr_emchar): Likewise.
3998 (non_ascii_set_charptr_emchar): Likewise.
3999 (non_ascii_charptr_copy_char): Likewise.
4000 (charptr_emchar): Moved to mb-*byte.h.
4001 (set_charptr_emchar): Likewise.
4002 (charptr_copy_char): Likewise.
4004 * mb-1byte.h, mb-multibyte.h: New files.
4006 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
4008 * mb-utf-8.h (MULTIBYTE): New macro.
4009 (MAX_EMCHAR_LEN): Moved from buffer.h.
4010 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4012 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4014 * mb-lb.h, multibyte.h: New files.
4016 * char-1byte.h (Charset_ID): Moved from buffer.h.
4017 (MIN_LEADING_BYTE): Likewise.
4018 (LEADING_BYTE_ASCII): Likewise.
4019 (NUM_LEADING_BYTES): Likewise.
4020 (CHARSETP): Likewise.
4021 (CHARSET_BY_LEADING_BYTE): Likewise.
4022 (XCHARSET_LEADING_BYTE): Likewise.
4023 (XCHARSET_GRAPHIC): Likewise.
4024 (XCHARSET_COLUMNS): Likewise.
4025 (XCHARSET_DIMENSION): Likewise.
4026 (CHAR_CHARSET): Likewise.
4027 (CHAR_LEADING_BYTE): Likewise.
4028 (BREAKUP_CHAR): Likewise.
4029 (Vcharset_ascii): Likewise.
4031 * buffer.h: Include multibyte.h unconditionally.
4032 (VALID_CHARPTR_P): Moved to multibyte.h.
4033 (ASSERT_VALID_CHARPTR): Likewise.
4034 (REAL_INC_CHARPTR): Likewise.
4035 (REAL_INC_CHARBYTIND): Likewise.
4036 (REAL_DEC_CHARPTR): Likewise.
4037 (INC_CHARPTR): Likewise.
4038 (INC_CHARBYTIND): Likewise.
4039 (DEC_CHARPTR): Likewise.
4040 (VALIDATE_CHARPTR_BACKWARD): Likewise.
4041 (VALIDATE_CHARPTR_FORWARD): Likewise.
4042 (charptr_n_addr): Likewise.
4043 (MAX_EMCHAR_LEN): Moved to mb-*.h.
4044 (simple_charptr_emchar): Moved to multibyte.h.
4045 (simple_set_charptr_emchar): Likewise.
4046 (simple_charptr_copy_char): Likewise.
4047 (non_ascii_charptr_emchar): Likewise.
4048 (non_ascii_set_charptr_emchar): Likewise.
4049 (non_ascii_charptr_copy_char): Likewise.
4050 (charptr_emchar): Likewise.
4051 (set_charptr_emchar): Likewise.
4052 (charptr_copy_char): Likewise.
4053 (charptr_emchar_n): Likewise.
4054 (Charset_ID): Moved to char-1byte.h.
4055 (Vcharset_ascii): Likewise.
4056 (CHAR_CHARSET): Likewise.
4057 (CHAR_LEADING_BYTE): Likewise.
4058 (LEADING_BYTE_ASCII): Likewise.
4059 (NUM_LEADING_BYTES): Likewise.
4060 (MIN_LEADING_BYTE): Likewise.
4061 (CHARSETP): Likewise.
4062 (CHARSET_BY_LEADING_BYTE): Likewise.
4063 (XCHARSET_LEADING_BYTE): Likewise.
4064 (XCHARSET_GRAPHIC): Likewise.
4065 (XCHARSET_COLUMNS): Likewise.
4066 (XCHARSET_DIMENSION): Likewise.
4067 (BREAKUP_CHAR): Likewise.
4069 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4071 * character.h: Add document about interface for characters.
4073 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4074 (MAKE_CHAR): Delete comment about
4075 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4076 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4077 (BREAKUP_CHAR): Modify name of arguments.
4078 (CHAR_CHARSET): Modify name of argument.
4080 * buffer.h: Delete document about Emchar accessors.
4082 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4084 * character.h (CHAR_INTP): Moved from buffer.h
4085 (CHAR_OR_CHAR_INTP): Likewise.
4086 (XCHAR_OR_CHAR_INT): Likewise.
4087 (CHECK_CHAR_COERCE_INT): Likewise.
4089 * buffer.h (CHAR_INTP): Moved to character.h
4090 (CHAR_OR_CHAR_INTP): Likewise.
4091 (XCHAR_OR_CHAR_INT): Likewise.
4092 (CHECK_CHAR_COERCE_INT): Likewise.
4094 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4097 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4098 - Include char-1byte.h, char-lb.h or char-ucs.h.
4100 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4102 * buffer.h: Include character unconditionally.
4103 (valid_char_p): Moved to char-*.h.
4104 (non_ascii_valid_char_p): Moved to char-lb.h.
4106 * char-1byte.h, char-lb.h, char-ucs.h: New files.
4108 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4110 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4111 in UTF-2000 because it is not ported yet and not to use
4112 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4113 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4114 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4116 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4117 (CHAR_ASCII_P): Moved from character.h.
4119 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4120 (CHAR_ASCII_P): Likewise.
4121 (CHAR_FIELD1_MASK): Deleted.
4122 (CHAR_FIELD2_MASK): Deleted.
4123 (CHAR_FIELD3_MASK): Deleted.
4124 (MAX_CHAR_BASIC_LATIN): New macro.
4125 (CHAR_FIELD1): Deleted.
4126 (CHAR_FIELD2_INTERNAL): Deleted.
4127 (CHAR_FIELD3_INTERNAL): Deleted.
4128 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4129 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4130 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4131 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4132 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4133 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4134 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4135 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4136 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4137 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4138 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4139 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4140 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4141 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4142 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4143 (MIN_CHAR_COMPOSITION): Deleted.
4144 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4145 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4147 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
4149 * buffer.h: Include mb-utf-8.h in UTF-2000.
4151 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4153 * mb-utf-8.h: New file.
4155 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
4157 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4160 * mule-charset.h, buffer.h (Charset_ID): New type.
4162 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
4164 * mule-canna.c (c2mu): Use `MAKE_CHAR',
4165 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4166 instead of `MULE_CHAR_PRIVATE_OFFSET',
4167 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4168 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4169 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4171 * character.h (Vcharset_japanese_jisx0212): New variable
4174 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
4176 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4177 (charset_by_attributes): Delete array about direction.
4178 (latin_a_char_to_charset): New variable in UTF-2000.
4179 (latin_a_char_to_byte1): New variable in UTF-2000.
4180 (latin_a_char_to_byte2): New variable in UTF-2000.
4181 (Qucs_bmp): New variable.
4182 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4184 (next_allocated_2_byte_leading_byte): Likewise.
4185 (non_ascii_set_charptr_emchar): Likewise.
4186 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4187 `CHARSET_TYPE_256X256' in UTF-2000; modify for
4188 `charset_by_attributes'.
4189 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4190 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4191 and `CHARSET_BY_LEADING_BYTE'.
4192 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4193 `utf-2000-version' to `vars_of_mule_charset'.
4194 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4195 define `leading-code-private-11' in UTF-2000; move setting of
4196 `utf-2000-version' from `syms_of_mule_charset'.
4197 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4200 * character.h (Charset_ID): New type.
4201 (LEADING_BYTE_UCS_BMP): New macro.
4202 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4203 (CHARSET_ID_OFFSET_94): New macro.
4204 (MIN_CHARSET_ID_PRIVATE_94): New macro.
4205 (MAX_CHARSET_ID_PRIVATE_94): New macro.
4206 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4208 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4209 (LEADING_BYTE_LATIN_JISX0201): Likewise.
4210 (CHARSET_ID_OFFSET_96): New macro.
4211 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4212 CHARSET_ID_OFFSET_96 and final-byte.
4213 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4214 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4215 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4216 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4217 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4218 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4219 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4220 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4221 (LEADING_BYTE_THAI_TIS620): Likewise.
4222 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4223 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4224 (CHARSET_ID_OFFSET_94x94): New macro.
4225 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4226 CHARSET_ID_OFFSET_94x94 and final-byte.
4227 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4228 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4229 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4230 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4231 (LEADING_BYTE_CHINESE_GB2312): Likewise.
4232 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4233 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4234 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4235 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4236 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4237 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4238 (CHARSET_TYPE_128X128): New macro.
4239 (CHARSET_TYPE_256X256): New macro.
4240 (XCHARSET_PRIVATE_P): Delete unconditionally.
4241 (charset_by_attributes): Delete array about direction.
4242 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4243 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4244 (MIN_CHAR_94): New macro.
4245 (MAX_CHAR_94): New macro.
4246 (MIN_CHAR_96): New macro.
4247 (MAX_CHAR_96): New macro.
4248 (MIN_CHAR_94x94): New macro.
4249 (MAX_CHAR_94x94): New macro.
4250 (MIN_CHAR_96x96): New macro.
4251 (MAX_CHAR_96x96): New macro.
4252 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4253 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4254 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4256 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4257 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4258 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4259 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4260 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4261 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4262 `XCHARSET_LEADING_BYTE' to make code-point.
4263 (latin_a_char_to_charset): New variable.
4264 (latin_a_char_to_byte1): New variable.
4265 (latin_a_char_to_byte2): New variable.
4266 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4267 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4268 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4270 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4271 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4272 (find_charsets_in_emchar_string): Likewise.
4273 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4275 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4277 (decode_coding_iso2022): Likewise.
4279 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4282 * redisplay.c (redisplay_text_width_emchar_string): Use
4283 `Charset_ID' instead of `unsigned char'.
4284 (redisplay_frame_text_width_string): Likewise.
4286 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4289 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4290 instead of `unsigned char'.
4291 (face_cachel_charset_font_metric_info): Likewise.
4293 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4294 (get_non_ascii_char_table_value): Likewise.
4295 (get_char_table): Likewise.
4296 (put_char_table): Likewise.
4297 (map_over_other_charset): Likewise.
4298 (map_char_table): Likewise.
4300 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4301 instead of `unsigned char'.
4303 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
4305 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4306 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4308 * mule-charset.c (leading_code_private_11): Don't define in
4311 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4312 in UTF-2000 because it is not ported yet and not to use
4313 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4315 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
4317 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4319 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4321 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4324 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4325 of unsigned char to store leading-byte.
4327 * chartab.c (get_non_ascii_char_table_value): Don't use
4328 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4330 * file-coding.c (encode_coding_big5): Delete bogus implementation
4333 * character.h (LEADING_BYTE_*): Delete definition for
4335 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4336 (LEADING_BYTE_PREFIX_P): Deleted.
4337 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4338 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4339 (BUFBYTE_LEADING_BYTE_P): Deleted.
4340 (CHARSET_PRIVATE_P): Deleted unconditionally.
4341 (rep_bytes_by_first_byte): Deleted unconditionally.
4342 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4343 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4344 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4345 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4346 (CHAR_FIELD2): Deleted.
4347 (CHAR_FIELD3): Deleted.
4348 (MAKE_CHAR): Delete definition for non-UTF-2000.
4349 (BREAKUP_CHAR_1_UNSAFE): Deleted.
4350 (breakup_char_1): New implementation.
4351 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4352 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4354 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4356 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4359 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4361 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4362 (CHARSET_PRIVATE_P): Likewise.
4363 (XCHARSET_PRIVATE_P): Likewise.
4364 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4366 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4368 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4370 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4372 * character.h (LEADING_BYTE_*): Changed in UTF2000.
4373 (NUM_LEADING_BYTES): Changed from 128 to 256.
4374 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4375 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4377 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4379 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4381 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4382 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4383 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4384 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4385 (Qchinese_cns11643_3): New variable in UTF2000.
4386 (Qchinese_cns11643_4): New variable in UTF2000.
4387 (Qchinese_cns11643_5): New variable in UTF2000.
4388 (Qchinese_cns11643_6): New variable in UTF2000.
4389 (Qchinese_cns11643_7): New variable in UTF2000.
4390 (syms_of_mule_charset): Define `chinese-cns11643-3',
4391 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4392 and `chinese-cns11643-7' in UTF2000.
4393 (vars_of_mule_charset): Initialize
4394 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4396 (complex_vars_of_mule_charset): Setup charset
4397 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4398 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4400 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4402 * mule-charset.c: Move setting for `leading-code-private-11' from
4403 `syms_of_mule_charset' to `vars_of_mule_charset'.
4405 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4407 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4408 and `NUM_LEADING_BYTES' in assert.
4410 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4412 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4414 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4415 `NUM_LEADING_BYTES' instead of 128.
4417 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
4419 * mule-charset.h (charset_by_leading_byte): Use
4420 `NUM_LEADING_BYTES' instead of 128.
4421 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4423 * mule-charset.c (charset_by_leading_byte): Use
4424 `NUM_LEADING_BYTES' instead of 128.
4425 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4427 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4430 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4432 * mule-charset.c (syms_of_mule_charset): Update to
4435 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4437 * file-coding.c (encode_coding_sjis): New implementation for
4438 UTF2000. (decode_coding_sjis): Ditto.
4440 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4442 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4443 Don't define in UTF2000.
4445 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4448 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4449 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4452 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4454 * config.h.in (CHAR_IS_UCS4): New macro.
4456 * mule-charset.c (rep_bytes_by_first_byte): Modify for
4457 conventional MULE representation.
4458 (syms_of_mule_charset): Update to 0.3 (Imamiya).
4460 * mule-charset.h: Reverted to original.
4462 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4463 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4464 "mule-charset.h" if CHAR_IS_UCS4 is defined.
4466 * character.h: New file.
4468 * file-coding.c (Fmake_coding_system): Set 1 to
4469 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4471 (encode_coding_no_conversion): New implementation for UTF2000.
4473 * file-coding.h (struct Lisp_Coding_System): Add new member
4476 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
4478 * file-coding.c (decode_coding_iso2022): Code-point arguments of
4479 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4480 (encode_coding_iso2022): New implementation for UTF2000.
4482 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4484 * mule-canna.c (c2mu): New implementation for UTF2000.
4487 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4489 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4491 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4493 * file-coding.c (reset_encoding_stream): Set 0 to
4494 `str->iso2022.current_char_boundary' in UTF2000.
4495 (encode_utf8): Don't define in UTF2000.
4496 (encode_coding_utf8): New implementation for UTF-8 representation
4498 (complex_vars_of_file_coding): Define coding-system `utf-8'.
4500 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4502 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4504 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4506 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4508 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4510 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4511 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4512 as UTF-8 in UTF2000.
4513 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4514 (non_ascii_valid_char_p): Don't define in UTF2000.
4515 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4516 (Lstream_get_emchar_1): Likewise.
4517 (utf-2000-version): New variable in UTF2000.
4519 * lread.c (read_escape): Add new reader `u'.
4521 * insdel.c (three_to_one_table): Don't define in UTF2000.
4522 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4523 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4525 (bytind_to_bufpos_func): Likewise.
4526 (buffer_mule_signal_inserted_region): Likewise.
4527 (vars_of_insdel): Don't initialize `three_to_one_table'.
4528 (init_buffer_text): Use `buf->text->mule_size' instead of
4529 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4532 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4533 UTF-8 representation in UTF2000.
4534 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4535 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4536 (decode_coding_iso2022): Don't define local variable `lb' in
4537 UTF2000; don't use LEADING_BYTE in UTF2000; use
4538 `DECODE_ADD_UCS_CHAR' in UTF2000.
4539 (convert_to_external_format): Decode as UTF-8 in UTF2000.
4541 * config.h.in (UTF2000): New macro.
4543 * buffer.h (struct buffer_text): Add new member `mule_size' and
4544 don't add `mule_shifter' and `mule_three_p' in UTF2000.
4545 (valid_char_p): Return always 1 in UTF2000.
4546 (MAX_EMCHAR_LEN): 6 in UTF2000.
4547 (three_to_one_table): Don't define in UTF2000.
4548 (real_bufpos_to_bytind): Modify for UTF-8 representation in
4550 (real_bytind_to_bufpos): Likewise.
4552 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4554 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4556 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4557 representation change.
4558 (Vutf_2000_version): New variable.
4559 (leading_code_private_11): New variable.
4560 (syms_of_mule_charset): Add new variables `utf-2000-version' and
4561 `leading-code-private-11'.
4563 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4564 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4565 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4566 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4567 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4568 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4569 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4570 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4571 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4572 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4573 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4574 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4575 (MIN_CHAR_GREEK): New macro.
4576 (MAX_CHAR_GREEK): New macro.
4577 (MIN_CHAR_CYRILLIC): New macro.
4578 (MAX_CHAR_CYRILLIC): New macro.
4579 (MIN_CHAR_HEBREW): New macro.
4580 (MAX_CHAR_HEBREW): New macro.
4581 (MIN_CHAR_THAI): New macro.
4582 (MAX_CHAR_THAI): New macro.
4583 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4584 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4585 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4586 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4587 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4588 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4589 (CHAR_FIELD2): New inline function.
4590 (CHAR_FIELD3): New inline function.
4591 (MULE_CHAR_PRIVATE_OFFSET): New macro.
4592 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4593 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4594 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4595 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4596 (MIN_CHAR_COMPOSITION): Likewise.
4597 (CHAR_LEADING_BYTE): Modified for character representation change.
4598 (MAKE_CHAR): Likewise.
4600 * lisp.h (Vcharset_latin_iso8859_1): New variable.
4601 (Vcharset_greek_iso8859_7): Likewise.
4602 (Vcharset_cyrillic_iso8859_5): Likewise.
4603 (Vcharset_hebrew_iso8859_8): Likewise.
4604 (Vcharset_thai_tis620): Likewise.
4605 (Vcharset_katakana_jisx0201): Likewise.
4607 2002-11-02 Stephen J. Turnbull <stephen@xemacs.org>
4609 * XEmacs 21.4.10 "Military Intelligence" is released.
4611 2002-10-17 Raymond Toy <toy@rtp.ericsson.se>
4613 * nas.c: Update for NAS 1.6 and later, from Jon Trulson. Was
4614 using the NAS private array SoundFileInfo that no longer exists in
4615 NAS 1.6 and later. Preserve backward compatibility with NAS 1.5a
4616 and earlier. This is broken for some versions between 1.5a and
4619 2002-10-10 Stephen J. Turnbull <stephen@xemacs.org>
4621 * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4623 * emacs.c (shut_down_emacs): Improve crash message.
4625 2002-10-09 Stephen J. Turnbull <stephen@xemacs.org>
4627 * file-coding.c (determine_real_coding_system): Check for coding
4628 cookie in first LINES_TO_CHECK lines (currently 2). Cater to
4629 shebangs and Python PEP 263.
4631 2002-10-08 Andy Piper <andy@xemacs.org>
4633 * glyphs-widget.c (layout_query_geometry): only resize dynamically
4634 if static sizes haven't been set.
4636 2002-08-30 Mike Alexander <mta@arbortext.com>
4638 * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4641 2002-10-03 Stephen J. Turnbull <stephen@xemacs.org>
4643 * callproc.c (child_setup): 21.4 doesn't have retry_close.
4645 2002-09-20 Mike Sperber <mike@xemacs.org>
4647 (This partially gets back my patch from 2002-07-20 without the
4649 * callproc.c (child_setup): Remove Ben's comment noting confusion
4650 over the file descriptors >= 3: close_process_descs() doesn't
4651 close those. Fix fd range to go up to MAXDESC-1 instead of 64.
4652 * process-unix.c (unix_create_process): Call
4653 begin_dont_check_for_quit to inhibit unwanted interaction (and
4654 thus breaking of X event synchronicity) in the child.
4656 2002-09-26 Golubev I. N. <gin@mo.msk.ru>
4658 * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4661 2002-08-20 Ben Sigelman <bhsigelm@cs.brown.edu>
4663 * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4664 instead of while(XtAppPending()&XtIMXEvent). Upon a gdm logout,
4665 the xemacs process did not exit, but looped infinitely here. This
4668 2002-09-28 Stephen J. Turnbull <stephen@xemacs.org>
4670 * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4671 (find_context): Improve comments.
4673 * regex.c (re_compile_fastmap): Gratuitous #ifdef comment fixes.
4674 (re_match_2): An XCHAR_TABLE operation was missing.
4676 Many of the following changes were inspired by Andy Piper's (now
4677 obsolete) patch to make syntax-table text property lookup optional.
4681 * syntax.h (top level): Document semantics of syntax flags.
4682 * syntax.c (comstr_start, Fforward_comment): Improve comments.
4683 * syntax.c, syntax.h (top level): Document syntax cache better in
4686 [Instrument syntax caching (temporary change)]
4688 * syntax.h (enum syntax_cache_statistics_functions, struct
4689 syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4690 SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4691 * syntax.c (scan_words, Fforward_comment, scan_lists,
4692 Fbackward_prefix_characters):
4693 * font-lock.c (find_context):
4694 Use them to instrument syntax caching.
4695 * syntax.c (struct syntax_cache_statistics, scs_statistics,
4696 syntax_cache_statistics_function_names): New type and variables.
4697 * syntax.c (update_syntax_cache): Update and report statistics.
4699 [Major syntax cache optimizations]
4701 syntax.c (lookup_syntax_properties): Default off.
4703 * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4704 * syntax.c (update_syntax_cache):
4705 Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4707 [Minor syntax cache optimizations and code clarifications]
4709 * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4710 SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4711 SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4712 SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4713 SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4714 (Code clarification.)
4716 * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4717 scan_lists): Compute code from syncode, use Boolean macros instead
4718 of redundant masking operations. (Code clarification; any decent
4719 compiler can do this optimization.)
4721 * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4724 * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4725 PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4726 use F*_single_property_change instead of F*_extent_change.
4727 Currently F*_single_property_change is _much_ less efficient.
4729 * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4730 * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT): Initialize
4731 syntax_cache.object properly, don't leave Qt or Qnil.
4732 (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4733 * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4734 tests for Qt or Qnil.
4736 2002-09-21 Stephen J. Turnbull <stephen@xemacs.org>
4738 * redisplay.c (point_in_line_start_cache):
4739 * extents.c (print_extent_1):
4742 * extents.c (Fset_extent_property): Document `syntax-table' property.
4744 * extents.h (Fnext_single_property_change): EXFUN it.
4746 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
4748 * search.c (clear_unused_search_regs): New static function.
4752 Use it. Fixes "stale match data" bug reported by Martin Stjernholm.
4753 Minor clarifications in comments.
4755 * regex.c (re_match_2_internal): Ensure no stale submatches.
4757 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
4759 * event-Xt.c (enqueue_focus_event): Add missing prototype.
4761 2002-08-29 Jerry James <james@xemacs.org>
4763 * lisp.h: structrures -> structures.
4765 2002-06-03 Andy Piper <andy@xemacs.org>
4767 * frame.c (frame_conversion_internal): add conversion appropriate
4768 for setting frame dimensions in pixels.
4770 * console.h (struct console_methods): add device-specific widget
4773 * emacs.c (main_1): initialize glyph vars.
4775 * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
4776 (handle_focus_event_2): new function. Allow focus to
4777 be set to a particular window and widget.
4778 (enqueue_focus_event): new function. Create a
4779 synthetic focus event.
4780 (emacs_Xt_handle_magic_event): call
4781 handle_focus_event_2.
4783 * frame.c (Fset_frame_pixel_height): new function. Allow
4784 pixel-based sizing. Does the right thing on character-oriented
4786 (Fset_frame_pixel_width): ditto.
4787 (Fset_frame_pixel_size): ditto.
4788 (syms_of_frame): declare.
4790 * general-slots.h: add :vertically-justify and
4791 :horizontally-justify.
4793 * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
4794 (mswindows_widget_border_width): new function.
4795 (mswindows_combo_box_instantiate): set border widths.
4796 (console_type_create_glyphs_mswindows): declare.
4799 (check_valid_justification): allow vertical and horizontal
4801 (widget_border_width): new function. Call device methods.
4802 (widget_instance_border_width): ditto.
4803 (logical_unit_height): new function. Determine the height of a
4804 logical-unit. Logical units are intended to provide grid-like
4805 layout for subcontrols in a layout. If the layout is
4806 :vertically-justify top then subcontrols will be positioned on
4807 logical-unit boundaries, thus allowing adjacent subcontrols to
4809 (widget_logical_unit_height): ditto for widgets.
4810 (redisplay_widget): misc cleanup.
4811 (widget_spacing): new function. Call device specific
4812 methods. Intended to be the default gap between adjacent widgets.
4813 (widget_query_geometry): use new spacing functions to determine
4814 appropriate geometry.
4815 (initialize_widget_image_instance): initialize horizontal and
4816 vertical justification.
4817 (widget_instantiate): use logica-units where appropriate for
4818 sizing large widgets.
4819 (button_query_geometry): use widget_instance_border_width.
4820 (tree_view_query_geometry): ditto.
4821 (tab_control_query_geometry): ditto.
4822 (edit_field_query_geometry): new function.
4823 (layout_update): pick up :justify, :horizontally-justify and
4824 :vertically-justify none of which worked previously. :justify is
4825 used as a fallback for both horizontal and vertical justification.
4826 (layout_query_geometry): use logical units to size appropriately.
4827 (layout_layout): ditto.
4828 (Fwidget_logical_to_character_width): new function. Allow users to
4829 convert from logical units to characters so that frame sizes can
4830 be set appropriately.
4831 (Fwidget_logical_to_character_height): ditto.
4832 (syms_of_glyphs_widget): declare.
4833 (image_instantiator_edit_fields): add edit_field_query_geometry.
4834 (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
4835 :horizontally-justify.
4836 (specifier_vars_of_glyphs_widget): new function. Declare
4837 Vwidget_border_width which is not yet used.
4839 * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
4840 (x_widget_border_width): new function.
4841 (x_widget_instantiate): create a sensible name for widgets.
4842 (console_type_create_glyphs_x): declare x_widget_border_width.
4844 * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
4845 (struct Lisp_Image_Instance): add :vertically-justify and
4846 :horizontally-justify.
4847 (LAYOUT_JUSTIFY_TOP): new.
4848 (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
4849 (ROUND_UP): new macro. Round argument up to next integral
4852 * redisplay-output.c (redisplay_output_layout): misc formatting.
4854 * symsinit.h: declare specifier_vars_of_glyphs_widget.
4856 2002-08-23 Stephen J. Turnbull <stephen@xemacs.org>
4858 * XEmacs 21.4.9 "Informed Management" is released.
4860 2002-08-19 Andy Piper <andy@xemacs.org>
4862 * fileio.c (Ffile_truename): on cygwin using win32 normalize to
4865 * realpath.c (xrealpath): normalize drive spec also so that dir
4866 sep chars are not mixed on cygwin.
4868 2002-08-06 Jerry James <james@xemacs.org>
4870 * window.c (Fsplit_window): Count only half of the divider width
4871 against the left window when splitting horizontally.
4873 2002-06-24 Andy Piper <andy@xemacs.org>
4875 * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
4876 toolbar was cleared.
4878 * toolbar-msw.c (mswindows_clear_frame_toolbars): new
4879 function. Split out from mswindows_output_frame_toolbars.
4880 (mswindows_output_frame_toolbars): move clear pieces to
4881 mswindows_output_frame_toolbars.
4883 * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
4884 out from gtk_output_frame_toolbars.
4885 (gtk_output_frame_toolbars): move clear pieces to
4886 gtk_clear_frame_toolbars.
4888 * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
4889 the frame is cleared. How this ever worked before is a mystery.
4890 (x_output_frame_toolbars): Only output toolbars.
4891 (x_clear_frame_toolbars): new. Clear previous toolbar locations.
4893 * gutter.c (update_gutter_geometry):
4894 Mark frame layout changed.
4895 (update_frame_gutter_geometry, update_frame_gutters):
4896 Respect frame_layout_changed.
4898 * console.h (struct console_methods): add
4899 clear_frame_toolbars_method.
4901 * redisplay.c (redisplay_frame): call
4902 update_frame_toolbars_geometry and re-order update_frame_toolbars.
4904 * toolbar.h: declare update_frame_toolbars_geometry.
4906 * toolbar.c (update_frame_toolbars_geometry): new function. Split
4907 out from update_frame_toolbars. Call clear_frame_toolbars.
4908 (update_frame_toolbars): only output, do not change geometry.
4910 * redisplay.c: add frame_layout_changed.
4912 * redisplay.h: add frame_layout_changed.
4913 (CLASS_RESET_CHANGED_FLAGS): set it.
4914 (GLOBAL_RESET_CHANGED_FLAGS): ditto.
4915 (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
4916 (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
4918 * device.h (struct device): add frame_layout_changed.
4919 (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
4921 * frame.h (struct frame): add frame_layout_changed.
4922 (MARK_FRAME_LAYOUT_CHANGED): new.
4924 2002-06-30 Mike Alexander <mta@arbortext.com>
4926 * event-msw.c (mswindows_need_event): Don't wait for a new message
4927 if the queue is not empty. Suggested by Paul Moore.
4929 2002-06-12 Andy Piper <andy@xemacs.org>
4931 * frame-msw.c (msprinter_init_frame_3): calculate the frame size
4932 for printing on accurately.
4934 2002-06-09 Rick Rankin <rick_rankin@yahoo.com>
4936 * event-msw.c (mswindows_wnd_proc): Add a handler for the
4937 WM_ACTIVATE message. Make sure that the frame is visible if the
4938 window is visible. This seemss to fix the problem where XEmacs
4939 appears to freeze after switching desktops with certain virtual
4941 (debug_output_mswin_message): Added code to output message
4942 parameters for WM_WINDOWPOSCHANGED,
4943 WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
4945 2002-05-25 Andy Piper <andy@xemacs.org>
4947 * select-x.c (vars_of_select_x): Fix docstring of
4948 x-selection-strict-motif-ownership
4950 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
4952 * keymap.c (get_keymap):
4953 Add comment about do_autoload GCPROs own args.
4955 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
4957 * bytecode.c (execute_optimized_program): check_opcode ifdef
4958 ERROR_CHECK_BYTE_CODE.
4960 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
4962 Thanks to Ben Wing and Michael Sperber.
4964 * eval.c (Fcommand_execute):
4967 (Fmacroexpand_internal):
4968 (function_argcount):
4969 callint.c (Fcall_interactively):
4970 Add comment about do_autoload GCPROs own args.
4972 * (do_autoload): GCPRO both args as well as local Lisp_Object.
4974 * eval.c (Ffuncall): Extra braces to placate GCC.
4976 2002-08-10 Stephen J. Turnbull <stephen@xemacs.org>
4978 * backtrace.h (grow_specpdl):
4980 * EmacsFrame.c (EmacsFrameSetValues):
4981 * eval.c (grow_specpdl):
4982 * ExternalShell.c (hack_event_masks_1):
4983 * glyphs-x.c (convert_EImage_to_XImage):
4984 (x_finalize_image_instance):
4985 * ralloc.c (page_size):
4987 * xgccache.c (gc_cache_hash):
4988 Fix unsigned comparison warnings.
4990 2002-07-29 Jerry James <james@xemacs.org>
4992 * lread.c (locate_file): Any nonnegative return value indicates
4993 success if MODE is nonnegative.
4995 2002-08-03 Brian A Palmer <bpalmer@rescomp.Stanford.EDU>
4997 * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5000 2002-07-17 Stephen J. Turnbull <stephen@xemacs.org>
5002 * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5004 * dumper.c (pdump_get_indirect_count):
5005 (pdump_scan_by_alignment):
5006 (pdump_dump_root_struct_ptrs):
5007 (pdump_dump_rtables):
5008 (pdump_dump_root_objects):
5010 * nas.c (WaveOpenDataForReading):
5011 * fns.c (print_bit_vector):
5012 * font-lock.c (SINGLE_SYNTAX_STYLE):
5013 * glyphs.c (check_for_ignored_expose):
5014 (find_matching_subwindow):
5016 * imgproc.c (get_histogram):
5017 * redisplay.c (point_in_line_start_cache):
5018 * redisplay-output.c (redisplay_unmap_subwindows):
5019 * symbols.c (defsymbol_massage_name_1):
5020 (defkeyword_massage_name):
5021 (deferror_massage_name_and_message):
5022 * redisplay-x.c (x_output_string):
5023 * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5024 * frame.h (struct frame):
5025 * filelock.c (current_lock_owner):
5026 * doprnt.c (emacs_doprnt_1):
5027 * lisp.h (struct Lisp_Bit_Vector):
5031 2002-02-13 Ben Wing <ben@xemacs.org>
5033 * event-stream.c (reset_key_echo):
5034 * event-stream.c (reset_this_command_keys):
5035 * event-stream.c (execute_command_event):
5036 If console is dead as a result of C-x 5 0, then post-command stuff
5037 needs to be careful and do only non-console-specific stuff.
5039 2002-07-01 Mike Sperber <mike@xemacs.org>
5041 * process-unix.c (unix_send_process): Mark coding_outstream as
5042 non-open upon SIGPIPE.
5044 * event-stream.c (Fnext_event): Reorder switch cases to something
5047 2001-08-13 Dmitry Astapov <adept@umc.com.ua>
5049 * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5050 Don't bogusly reinitialize ascii_character property.
5052 2002-07-08 Mike Sperber <mike@xemacs.org>
5054 * process.c (Fstart_process_internal): Do error checking before we
5055 fork off the child, so the child can't muck with the state of the
5058 2002-07-08 Mike Sperber <mike@xemacs.org>
5060 * ralloc.c (init_ralloc): Allocate properly for pdump.
5062 2002-06-12 Andy Piper <andy@xemacs.org>
5064 * glyphs.c (query_string_geometry): check the string.
5066 * glyphs-widget.c (widget_logical_unit_height): cope with nil
5069 2002-06-17 Jerry James <james@xemacs.org>
5071 * sysdll.c: Remove RTLD_GLOBAL initialization.
5072 * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5074 2002-06-25 Stephen J. Turnbull <stephen@xemacs.org>
5076 * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5078 2002-05-16 Mathias Grimmberger <mgri@zaphod.sax.de>
5080 * sysdep.c (sys_rename): Make sys_rename work for the case where
5081 Windows rename sets errno to EACCES if target file exists.
5083 2002-05-21 Jonathan Harris <jonathan@xemacs.org>
5085 * device-msw.c (mswindows_handle_page_setup_dialog_box):
5086 Fix detection of metric units to work on Win95
5088 2002-05-21 Stephen J. Turnbull <stephen@xemacs.org>
5090 * syswindows.h: #define LOCALE_RETURN_NUMBER. Why, I don't know.
5092 2002-04-25 Andy Piper <andy@xemacs.org>
5094 * redisplay.c (create_text_block): Remove extra comment trailer.
5096 2002-04-24 Andy Piper <andy@xemacs.org>
5098 * redisplay.c (create_text_block): Don't actually add propagation
5099 data if the line ends after we have added a glyph.
5101 2002-04-22 Andy Piper <andy@xemacs.org>
5103 * extents.c (extent_fragment_update): check for glyphs we have
5104 previously displayed.
5105 * extents.c (print_extent_1): warning removal.
5106 * extents.h: change prototype.
5107 * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5108 widths correctly for wide glyphs.
5109 * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5110 * redisplay.c (prop_type): add PROP_GLYPH.
5111 * redisplay.c (struct prop_block): add glyph type
5112 * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5113 to the propagation data.
5114 * redisplay.c (create_text_block): if there is a glyph in the
5115 propagation data use it to salt extent_fragment_update.
5116 * redisplay.c (create_string_text_block): ditto.
5118 2002-04-13 Nix <nix@esperi.demon.co.uk>
5120 * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5121 * redisplay-output.c (compare_runes): Compare them.
5122 * redisplay.c: Update copyright date.
5123 * redisplay.c (pos_data): Add need_baseline_computation field.
5124 * redisplay.c (add_glyph_rune): Update ascent, descent, and
5125 need_baseline_computation; zero yoffset. Set max_pixmap_height
5126 for all pixmaps, not just automatically positioned ones.
5127 * redisplay.c (calculate_yoffset): New, compute yoffset values.
5128 * redisplay.c (calculate_baseline): New, compute textual baseline.
5129 * redisplay.c (add_glyph_rune): Call them.
5130 * redisplay.c (create_text_block): Likewise.
5131 * redisplay.c (create_overlay_glyph_block): Likewise.
5132 * redisplay.c (add_margin_runes): Likewise.
5133 * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5135 * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5136 * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5137 * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5138 * redisplay-msw.c (mswindows_output_string): Likewise.
5139 * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5140 * redisplay-gtk.c (gtk_output_display_block): Likewise.
5141 * redisplay-x.c (x_output_display_block): Likewise.
5143 2002-03-28 Ben Wing <ben@xemacs.org>
5145 * redisplay.c: Fixed bug in redisplay
5146 w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5147 and down of the lines, since they're bigger than the line
5148 size. (It was seen most obviously when there's a horizontal scroll
5149 bar, e.g. do C-h a glyph or something like that.) The problem was
5150 that the glyph-contrib-p setting on glyphs was ignored even if it
5151 was set properly, which it wasn't until now.
5153 2002-04-24 Andy Piper <andy@xemacs.org>
5155 * lisp.h (Dynarr_end): Fix definition.
5157 2002-02-06 Adrian Aichner <adrian@xemacs.org>
5159 * redisplay.c (mark_redisplay): Remove call to
5160 update_frame_window_mirror.
5162 2001-11-15 Andy Piper <andy@xemacs.org>
5164 * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5167 2002-02-13 Andy Piper <andy@xemacs.org>
5169 * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5170 we did in fact enqueue the XM_MAPFRAME event.
5172 2002-01-15 Adrian Aichner <adrian@xemacs.org>
5174 * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5175 to fix problem switching between virtual desktops under virtuawin
5176 virtual window manager.
5178 2001-07-30 Adrian Aichner <adrian@xemacs.org>
5180 * event-msw.c: Typo fix.
5181 * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5182 magic XM_MAPFRAME event has been sent.
5184 2001-11-23 Andy Piper <andy@xemacs.org>
5186 * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5188 2001-11-21 Andy Piper <andy@xemacs.org>
5190 * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5191 mouse events outside the frame.
5193 2002-03-20 Andy Piper <andy@xemacs.org>
5195 * menubar-msw.c (mswindows_popup_menu): warning removal.
5196 * dialog-msw.c (dialog_popped_down): ditto.
5198 2001-12-11 Andy Piper <andy@xemacs.org>
5200 * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5201 * dialog-msw.c (mswindows_make_dialog_box_internal): set
5203 * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5204 * menubar-msw.c (mswindows_handle_wm_command): ditto.
5205 * menubar-msw.c (mswindows_popup_menu): ditto.
5207 2001-10-29 Andy Piper <andy@xemacs.org>
5209 * dialog-msw.c (handle_directory_dialog_box): quit if the user
5212 2002-01-03 Andy Piper <andy@xemacs.org>
5214 * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5218 2002-03-29 Jonathan Harris <jonathan@xemacs.org>
5220 * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5221 * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5222 * device-msw.c (mswindows_handle_page_setup_dialog_box):
5223 Detect and handle case where machine is set up for metric units
5225 2002-04-02 Andy Piper <andy@xemacs.org>
5227 * dired-msw.c (mswindows_get_files):
5228 * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5229 completely handled by XEmacs. Suggested by Thomas Vogler
5230 <mail@thomas-vogler.de>.
5232 2001-11-14 Andy Piper <andy@xemacs.org>
5234 * nt.c (REG_ROOT): change registry key to XEmacs.
5236 2002-04-27 Andy Piper <andy@xemacs.org>
5238 * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5240 2002-04-26 Andy Piper <andy@xemacs.org>
5242 * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5245 2002-03-14 Mike Alexander <mta@arbortext.com>
5247 * event-msw.c (mswindows_unwait_process): New, remove process from
5249 * process-nt.c (nt_finalize_process_data): Call
5250 mswindows_unwait_process
5251 * console-msw.h: Declare mswindows_unwait_process
5253 2002-05-14 Stephen J. Turnbull <stephen@xemacs.org>
5255 * editfns.c (Fdecode_time):
5256 (Fformat_time_string):
5257 Check for invalid time. Thanks to Nick Pakoulin <npak@ispras.ru>.
5258 (make_time): Warning elimination (change arg name).
5260 2001-11-24 Andy Piper <andy@xemacs.org>
5262 * window.c (Fsplit_window): Doc return type.
5264 2002-04-01 Andy Piper <andy@xemacs.org>
5266 * emacs.c (Fkill_emacs): Only output message box in interactive
5269 2002-04-26 Andy Piper <andy@xemacs.org>
5271 * config.h.in: pull in 21.5.x change to stop alloca warnings under
5274 2002-03-18 Gregory Steuck <greg-xemacs-patch@nest.cx>
5276 * unexelf.c: Use ELFSIZE or define from _LP64 to indicate a 64
5279 2002-05-09 Stephen J. Turnbull <stephen@xemacs.org>
5281 * XEmacs 21.4.8 "Honest Recruiter" is released.
5283 2002-05-07 Nix <nix@esperi.demon.co.uk>
5285 Supersedes 2002-04-17 patch.
5287 * process.h (PROCESS_LIVE_P): Use the process status as
5288 evidence of health, not the state of the input stream.
5289 (PROCESS_READABLE_P): Say if the process is readable
5290 from. (It may be dead nonetheless.)
5291 (CHECK_READABLE_PROCESS): Test for that condition.
5293 * process.c (create_process): Use PROCESS_READABLE_P.
5294 (read_process_output, set_process_filter): Likewise.
5296 * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5297 (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5299 This code is #if 0'd, this is not the time to add new functions:
5301 * process.c (Fprocess_readable_p): Report readability status.
5302 * process.c (Qprocess_readable_p): New, associated symbol...
5303 * process.c (syms_of_process): ... initialize it.
5305 2002-05-04 Stephen J. Turnbull <stephen@xemacs.org>
5307 * XEmacs 21.4.7 "Economic Science" is released.
5309 2002-04-17 Nix <nix@esperi.demon.co.uk>
5311 * process.h (PROCESS_LIVE_P): Use the process status as
5312 evidence of health, not the state of the input stream.
5314 2002-04-30 Charles G. Waldman <cgw@xemacs.org>
5316 * sysdep.c (sys_siglist): change "signum" to "signal"
5318 2001-04-21 Martin Buchholz <martin@xemacs.org>
5320 * s/darwin.h: New file.
5321 Thanks to Greg Parker <gparker@cs.stanford.edu>.
5323 2002-04-23 Andreas Jaeger <aj@suse.de>
5325 * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5326 which use lib64 for 64-bit libs.
5327 (START_FILES): Likewise.
5329 2002-02-11 Mike Sperber <mike@xemacs.org>
5332 (x_IO_error_handler):
5333 (x_init_device): Temporarily keep device in static variable
5334 `device_being_initialized' so we can recover gracefully from
5335 internal XOpenDevice failure. (XOpenDevice is documented to
5336 return NULL on failure, but sometimes calls the IO error handler
5339 2002-01-31 John H. Palmieri <palmieri@math.washington.edu>
5341 * dired.c (Ffile_name_all_completions): Change documentation --
5342 remove reference to completion-ignored-extensions.
5343 * dired.c (vars_of_dired): Change documentation for
5344 completion-ignored-extensions -- remove reference to
5345 file-name-all-completions.
5347 2002-03-06 Jerry James <james@xemacs.org>
5349 * emodules.c (emodules_load): Fix multiple loading of same module.
5351 2002-01-25 Andrew Begel <abegel@cs.berkeley.edu>
5352 * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5353 RTLD_LAZY to avoid incorrect symbol binding when using nested
5354 shared libraries on Solaris.
5356 2002-02-12 Stephen J. Turnbull <stephen@xemacs.org>
5358 * fileio.c (Ffind_file_name_handler): Improve docstring.
5360 2002-01-20 Stephen J. Turnbull <stephen@xemacs.org>
5362 * fns.c (Fmapconcat): Improve docstring.
5364 2002-01-03 Eric Gillespie, Jr. <epg@pretzelnet.org>
5366 * device-gtk.c: Add prototype for
5367 emacs_gtk_selection_clear_event_handle.
5368 (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5369 selection. Setup signal handler for "selection_clear_event"
5370 (emacs_gtk_selection_clear_event_handle).
5372 * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5373 other applications owning the clipboard (based on
5374 x_handle_selection_clear).
5376 2001-12-23 William M. Perry <wmperry@gnu.org>
5378 * menubar-gtk.c (gtk_popup_menu) Add sanity checks, fix crash.
5380 2002-01-04 Martin Buchholz <martin@xemacs.org>
5382 * keymap.c (define_key_alternate_name): Parenthesize EQ.
5384 2001-12-17 Stephen J. Turnbull <stephen@xemacs.org>
5386 * XEmacs 21.4.6 "Common Lisp" is released.
5388 2001-12-16 Torsten Duwe <duwe@caldera.de>
5390 * search.c (Freplace_match): Add missing sub-expression functionality.
5392 * buffer.c (decode_buffer): Add a check for pointer type to
5393 decode_buffer, before gcc's CSE optimization reorders a
5394 dereference in front of the allow_string test.
5396 2001-11-16 Darryl Okahata <darrylo@xemacs.org>
5398 * window.c (window_loop): Fix bug that sometimes prevented
5399 window_loop() from iterating across multiple devices. Also, at
5400 Ben's request, changed infloop-detecting code to abort() instead
5401 of silently terminating window_loop().
5403 2001-11-21 Stephen J. Turnbull <stephen@xemacs.org>
5405 Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5406 * editfns.c (make_time): New function.
5407 (Fencode_time): Use it instead of wasteful_word_to_lisp.
5408 * lisp.h (make_time): Prototype and comment it.
5409 * dired.c (wasteful_word_to_lisp): Deprecate.
5410 (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5412 2001-10-31 Kyle Jones <kyle_jones@wonderworks.com>
5414 * fileio.c (auto_save_1): Use current coding system, not
5417 2001-11-13 Ben Wing <ben@xemacs.org>
5420 * window.c (window_truncation_on):
5421 * window.c (syms_of_window):
5422 truncate-partial-width-windows should respect the buffer being
5423 displayed, like other redisplay vars.
5425 2001-11-13 Hirokazu FUKUI <hfukui@sannet.ne.jp>
5427 * event-stream.c (Fread_key_sequence): save current buffer.
5429 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
5431 * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5433 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
5435 * alloc.c (lcrecord_stats): Add space for types defined in modules.
5437 2001-10-26 Mike Alexander <mta@arbortext.com>
5439 * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5441 2001-10-25 Andy Piper <andy@xemacs.org>
5444 * dialog-msw.c (handle_directory_proc): new function.
5445 (handle_directory_dialog_box): new fucntion.
5446 (handle_file_dialog_box): use new directory dialog support.
5447 (mswindows_make_dialog_box_internal): ditto.
5448 * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5450 (mswindows_find_frame): make global.
5451 * fileio.c (Fexpand_file_name): build fix.
5452 * general-slots.h: add Qdirectory.
5453 * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5455 * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5456 cygwin not leaving win32 paths unchanged.
5457 * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5458 cygwin runtime to do path conversion.
5459 (Fmswindows_shell_execute): fix cygwin handling of URLs.
5460 (syms_of_win32): add new function.
5461 * window.c (window_loop): build fix.
5463 2001-10-15 Andy Piper <andy@xemacs.org>
5465 (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5467 2001-10-23 Stephen J. Turnbull <stephen@xemacs.org>
5469 * XEmacs 21.4.5 "Civil Service" is released.
5471 2001-04-08 Danny Colascione <qtmstr@optonline.net>
5473 * glyphs-x.c: Force buffer-tab highlight update when moving the
5474 buffer, avoiding an ugly black border, used for keyboard focus
5475 indication, on a widget that can never have keyboard focus, the
5478 2001-08-30 Daiki Ueno <ueno@unixuser.org>
5480 * process-unix.c (unix_open_multicast_group): Remove too much
5481 conversion between host and network byte order.
5483 2001-09-10 Nix <nix@esperi.demon.co.uk>
5485 * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5486 before replacing them.
5488 * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5491 * src/window.c (undedicate_windows): Use it.
5492 * src/window.h: Add prototype.
5494 2001-09-17 Ben Wing <ben@xemacs.org>
5496 * fileio.c (normalize_filename):
5497 * fileio.c (Fexpand_file_name):
5498 Fix various C++ compile errors in Andy's recent code.
5500 * callint.c (Fcall_interactively):
5501 * editfns.c (Ftemp_directory):
5502 * editfns.c (Fuser_full_name):
5503 * emacs.c (argmatch):
5504 * lread.c (locate_file_map_suffixes):
5505 * redisplay-x.c (x_ring_bell):
5506 Fix sign-compare warnings.
5508 2001-09-08 Andy Piper <andy@xemacs.org>
5510 * fileio.c (normalize_filename): copied from nt.c
5511 * (Ffile_name_directory): enable win32 paths under cygwin.
5512 * (Ffile_name_nondirectory): ditto.
5513 * (directory_file_name): ditto.
5514 * (Fexpand_file_name): ditto.
5515 * (Ffile_truename): ditto.
5516 * (Fsubstitute_in_file_name): ditto.
5517 * (Ffile_name_absolute_p): ditto.
5518 * (Ffile_readable_p): ditto.
5520 2001-09-08 Andy Piper <andy@xemacs.org>
5522 * device-msw.c (mswindows_finish_init_device): remove dde
5524 * device-msw.c (mswindows_init_dde): factor out from
5525 mswindows_finish_init_device()
5526 * device-msw.c (init_mswindows_very_early): new function
5527 initialize but don't enable dde.
5528 * emacs.c (main_1): call init_mswindows_very_early.
5530 * event-msw.c (mswindows_dde_callback): only execute when we are
5532 * symsinit.h: declare init_mswindows_very_early.
5534 2001-05-02 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5536 [sjt: This has been in 21.5 for months with no complaints.]
5538 * console.h (struct console_methods): Added flags member.
5539 (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5540 (CONMETH_IMPL_FLAG):
5541 (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5542 Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5544 * device.c (window_system_pixelated_geometry): Use the above macros.
5546 * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5547 implememntation flag.
5548 * device.h (DEVICE_DISPLAY_P): Use it.
5550 * frame.c (delete_frame_internal): Use the above macro.
5552 * redisplay.c (redisplay_device): Use it.
5553 (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5554 (redisplay_frame): Ditto.
5556 * device-msw.c (mswindows_device_implementation_flags): Removed.
5557 (msprinter_device_implementation_flags): Removed.
5558 (console_type_create_device_mswindows): Removed references to
5559 implementation_flags methods, set implementation flags here.
5560 (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5562 * device-gtk.c (gtk_device_implementation_flags): Removed method.
5563 (console_type_create_device_gtk): Removed method declaration.
5564 Added commented out statement which semantically matches the
5565 commented out statement in the above removed method.
5567 2001-04-14 Gordon Sadler <gbsadler1@lcisp.com>
5569 The attached patch fixes a few warnings.
5571 * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5572 * src/frame-gtk.c: guard against GNOME calls in GTK only
5573 * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5574 * src/select-gtk.c: prototype lisp_to_time
5576 2001-06-08 Ben Wing <ben@xemacs.org>
5578 ------ gc-in-window-procedure fixes ------
5581 * alloc.c (struct post_gc_action):
5582 * alloc.c (register_post_gc_action):
5583 * alloc.c (run_post_gc_actions):
5584 * alloc.c (garbage_collect_1):
5585 Create "post-gc actions", to avoid those dreaded "GC during window
5586 procedure" problems.
5589 Abort, clean and simple, when GC in window procedure. We want
5590 to flush these puppies out.
5593 * glyphs-msw.c (finalize_destroy_window):
5594 * glyphs-msw.c (mswindows_finalize_image_instance):
5595 Use a post-gc action when destroying subwindows.
5598 Declare register_post_gc_action().
5601 * scrollbar-msw.c (unshow_that_mofo):
5602 Use a post-gc action when unshowing scrollbar windows, if in gc.
5604 * redisplay.c (mark_redisplay):
5605 Add comment about the utter evilness of what's going down here.
5607 ------ cygwin setitimer fixes ------
5609 * Makefile.in.in (sheap_objs):
5610 * Makefile.in.in (profile_objs):
5611 * Makefile.in.in (objs):
5612 Compile profile.c only when HAVE_SETITIMER.
5614 * nt.c (mswindows_sigset):
5615 * nt.c (mswindows_sighold):
5616 * nt.c (mswindows_sigrelse):
5617 * nt.c (mswindows_sigpause):
5618 * nt.c (mswindows_raise):
5619 * nt.c (close_file_data):
5623 Move setitimer() emulation to win32.c, because Cygwin needs it too.
5626 * profile.c (Fstart_profiling):
5627 * profile.c (Fstop_profiling):
5628 Make sure we don't compile if no setitimer(). Use qxe_setitimer()
5629 instead of just plain setitimer().
5632 * signal.c (set_one_shot_timer):
5634 Define qxe_setitimer() as an encapsulation around setitimer() --
5635 call setitimer() directly unless Cygwin or MS Win, in which case
5636 we use our simulated version in win32.c.
5639 * systime.h (struct itimerval):
5640 * systime.h (ITIMER_REAL):
5641 Prototype mswindows_setitimer() and qxe_setitimer(). Long
5642 comment about "qxe" and the policy regarding encapsulation.
5645 * win32.c (setitimer_helper_proc):
5646 * win32.c (setitimer_helper_period):
5647 * win32.c (setitimer_helper):
5648 * win32.c (mswindows_setitimer):
5649 Move setitimer() emulation here, so Cygwin can use it.
5650 Rename a couple of functions and variables to be longer and more
5651 descriptive. In setitimer_helper_proc(), send the signal
5652 using either mswindows_raise() or (on Cygwin) kill(). If for
5653 some reason we are still getting lockups, we'll change the kill()
5654 to directly invoke the signal handlers.
5656 ------ windows shell fixes ------
5660 Comments about how these two files must die.
5662 * callproc.c (init_callproc):
5663 On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5664 not just COMSPEC. (more correct and closer to FSF.) Don't
5665 force a value for SHELL into the environment. (Comments added
5666 to explain why not.)
5668 * nt.c (init_user_info):
5669 Don't shove a fabricated SHELL into the environment. See above.
5671 2001-06-01 Ben Wing <ben@xemacs.org>
5673 * Makefile.in.in (ldflags):
5674 eliminate that pesky "defaulting to 00401000" warning.
5678 2001-06-15 Golubev I. N. <gin@mo.msk.ru>
5680 * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5681 * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5683 2001-04-24 Jerry James <james@xemacs.org>
5685 * faces.h: pass parameters to Fadd_spec_to_specifier in the
5688 2001-06-01 Ben Wing <ben@xemacs.org>
5690 * event-msw.c (debug_mswin_messages):
5691 conditionalize the messages that were causing compile errors.
5692 (if only macros could generate #ifdef statements ...)
5694 2001-07-28 Stephen J. Turnbull <stephen@xemacs.org>
5696 * XEmacs 21.4.4 "Artificial Intelligence" is released.
5698 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
5700 * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5702 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
5704 * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5705 * process-unix.c (unix_canonicalize_host_name):
5706 sysdep.c (init_system_name):
5707 Use it to conditionally support IPv6 canonicalization.
5709 2001-05-31 Paul Stodghill <stodghil@cs.cornell.edu>
5712 Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5714 2001-05-19 Paul Krause <paulkrause1@mediaone.net>
5716 * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5717 attempt is made to scroll when no scroll bar is available.
5719 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
5721 * input-method-motif.c (XIM_delete_frame): New callback.
5722 (XIM_init_frame): Register it. (Reapplied by SJT, it somehow
5723 got deleted from 21.4.3.)
5725 2001-06-01 Ben Wing <ben@xemacs.org>
5727 * nt.c (mswindows_utime):
5728 * nt.c (close_file_data):
5729 fix off-by-one-indirection error.
5731 2001-05-29 Adrian Aichner <adrian@xemacs.org>
5733 * fileio.c: Include nt.h. Remove lisp_string_set_file_times()
5734 because set_file_times() now takes Lisp_Object path, instead of
5736 * nt.c: Include buffer.h.
5737 * nt.c (convert_from_time_t): New.
5738 * nt.c (mswindows_utime): New. Use utime, since SetFileTime does
5739 not set mtime correctly.
5740 * nt.h: Declare mswindows_utime().
5741 * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5742 path, instead of char*.
5743 * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5745 2001-05-30 Ben Wing <ben@xemacs.org>
5749 (Stephen, just take all event-msw.c patches. This includes
5750 the "iconify" fix below.)
5753 * event-msw.c (mswindows_dequeue_dispatch_event):
5754 * event-msw.c (assert):
5755 * event-msw.c (emacs_mswindows_quit_p):
5756 * event-msw.c (debug_mswin_messages):
5757 * event-msw.c (debug_output_mswin_message):
5758 * event-msw.c (vars_of_event_mswindows):
5759 Fix yet more problems with C-g handling.
5760 Implement debug-mswindows-events.
5762 2001-05-24 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5764 * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5766 2001-05-23 Ben Wing <ben@xemacs.org>
5768 * event-msw.c (winsock_writer):
5769 * event-msw.c (winsock_closer):
5770 prior kludgy code was clobbering the buffer, thinking it was
5771 "unused" space to store an unneeded return value; instead, use
5772 the variable we've already got staring us in the face.
5774 2001-05-17 Andy Piper <andy@xemacs.org>
5776 * sysfile.h: don't assume that file attributes are boolean
5778 2001-05-23 Ben Wing <ben@xemacs.org>
5780 * device-msw.c (msprinter_init_device):
5781 signal an error rather than crash with an unavailable network
5782 printer (from Mike Alexander).
5785 * event-msw.c (struct winsock_stream):
5786 * event-msw.c (winsock_writer):
5787 * event-msw.c (winsock_closer):
5788 * event-msw.c (make_winsock_stream_1):
5789 cleanup headers. fix (hopefully) an error with data corruption
5790 when sending to a network connection.
5792 * fileio.c (Fexpand_file_name): Fix evil code that attempts
5793 to handle the ~user prefix by (a) always assuming we're referencing
5794 ourselves and not even verifying the user -- hence any file with
5795 a tilde as its first char is invalid! (b) if there wasn't a slash
5796 following the filename, the pointer was set *past* the end of
5797 file and we started reading from uninitialized memory. Now we
5798 simply treat these as files, always.
5800 * buffer.c (common_init_complex_vars_of_buffer): comment change.
5802 2001-05-19 Ben Wing <ben@xemacs.org>
5804 * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5807 * process-nt.c (vars_of_process_nt):
5808 remove unused mswindows-quote-process-args. rec for 21.4.
5810 2001-05-12 Ben Wing <ben@xemacs.org>
5812 * event-msw.c (mswindows_dde_callback):
5813 * event-msw.c (mswindows_wnd_proc):
5814 eliminate cygwin warnings.
5816 2001-05-06 Ben Wing <ben@xemacs.org>
5820 * device-msw.c (print_dialog_worker):
5821 * device-msw.c (mswindows_handle_print_dialog_box):
5822 * device-msw.c (syms_of_device_mswindows):
5823 * dialog-msw.c (mswindows_make_dialog_box_internal):
5825 implement printing the selection when it's selected.
5827 2001-05-20 Drazen Kacar <dave@arsdigita.com>
5829 * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
5831 2001-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
5833 * lisp.h (EMACS_INT_MAX): This should be one bit less since
5834 EMACS_INT is signed.
5836 2001-04-15 Michael Lausch <mla@1012surf.net>
5838 * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
5839 gtk_widget_request_size() to give scrollbar >0 width for
5842 2001-05-30 William M. Perry <wmperry@gnu.org>
5844 * event-gtk.c: Check for buttons as modifier keys.
5846 2001-05-25 Craig Lanning <CraigL@Knology.net>
5849 Properly find MinGW's <process.h> inside Cygwin's restructured
5850 include directories. Don't try to include <cygwin/version.h>
5851 since we are dropping support for MinGW in versions of Cygwin
5854 Drop support for MinGW in versions of Cygwin before b21.
5856 Properly find MinGW's <process.h> inside Cygwin's restructured
5857 include directories.
5859 Drop support for MinGW in versions of Cygwin before b21.
5861 Even though a.out.h is no longer detected by configure, allow
5862 MinGW to use it until we figure out how to do the job with Win32.
5864 2001-07-11 Matt Tucker <tuck@whistlingfish.net>
5866 * syntax.c (find_start_of_comment):
5867 Fix `unbalanced parentheses' bug when dealing with mixed comment
5868 styles in c++/java/etc. mode
5870 2001-05-29 Mike Alexander <mta@arbortext.com>
5872 * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
5873 FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
5875 2001-05-17 Andrew Begel <abegel@eecs.berkeley.edu>
5877 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
5879 2001-03-31 Mike Sperber <mike@xemacs.org>
5881 * search.c (Freplace_match): Support FSF-style specification of
5882 match subexpression when applied to a buffer.
5884 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
5886 * event-stream.c (is_scrollbar_event): add missing semicolon
5888 2001-05-22 Isaac Hollander <ysh@mindspring.com>
5890 * Makefile.in.in: Use TAR macro instead of hardcoding
5891 tar. Allows use of GNU tar instead of system tar
5893 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
5895 * event-stream.c (is_scrollbar_event): add missing semicolon
5897 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
5899 * XEmacs 21.4.3 "Academic Rigor" is released.
5901 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
5903 * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
5905 2001-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
5907 * buffer.c (Vcase_fold_search): Remove obsolete
5908 comment about non ASCII case-fold-search. This
5909 bug has been fixed by case-table changes.
5911 2001-05-11 Stephen J. Turnbull <stephen@xemacs.org>
5913 * event-msw.c: Restore include of events-mod.h.
5915 2001-04-22 zhaoway <zw@debian.org>
5917 * event-stream.c (is_scrollbar_event): Noop returning 0 if
5920 2001-05-10 Stephen J. Turnbull <stephen@xemacs.org>
5922 * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
5924 2001-05-08 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
5926 * mule-charset.c (Fmake_charset): Add missing else.
5928 2001-04-23 Ben Wing <ben@xemacs.org>
5930 * event-msw.c (FAKE_MOD_QUIT):
5931 * event-msw.c (mswindows_dequeue_dispatch_event):
5932 * event-msw.c (mswindows_wnd_proc):
5933 * event-msw.c (emacs_mswindows_quit_p):
5934 Get critical quit working.
5936 2001-05-05 Ben Wing <ben@xemacs.org>
5940 * device-msw.c (mswindows_get_default_margin):
5941 * frame-msw.c (mswindows_size_frame_internal):
5942 * frame-msw.c (msprinter_init_frame_1):
5943 * frame-msw.c (vars_of_frame_mswindows):
5944 Change top/bottom margin defaults to 0.5 inches.
5946 2001-05-01 Martin Buchholz <martin@xemacs.org>
5948 Fix link error with gcc 3.0 on Linux.
5949 * terminfo.c (UP): Remove.
5950 * terminfo.c (BC): Remove.
5951 * terminfo.c (PC): Remove.
5952 They weren't used, and in any case, these symbols should be
5953 defined in the *library*.
5955 2001-05-03 Martin Buchholz <martin@xemacs.org>
5957 * s/aix4.h: Fix crash with xlc -O3.
5958 Improve comment explaining how -O3 works.
5960 2001-04-15 Ben Wing <ben@xemacs.org>
5963 * event-stream.c (Fnext_event):
5964 * event-stream.c (is_scrollbar_event):
5965 * event-stream.c (execute_command_event):
5966 Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
5967 crash' problem. His fix introduces other problems. We filter
5968 out scrollbar events specifically, making them somewhat invisible
5969 to command-building, and not appearing in `this-command-keys'.
5970 More work is still needed (see comments in event-stream.c), but
5971 this fixes all the major problems.
5973 2001-04-20 Ben Wing <ben@xemacs.org>
5975 * .cvsignore: Added stuff for Windows.
5977 2001-04-28 Ben Wing <ben@xemacs.org>
5979 * buffer.c (Ferase_buffer):
5980 * editfns.c (buffer_insert1):
5981 * editfns.c (Finsert_before_markers):
5982 * editfns.c (Finsert_string):
5983 * editfns.c (Finsert_char):
5984 * editfns.c (Fdelete_region):
5985 * editfns.c (Fwiden):
5986 * editfns.c (Fnarrow_to_region):
5987 remove bogus lines setting zmacs_region_stays to 0.
5989 2001-04-15 Gunnar Evermann <ge204@eng.cam.ac.uk>
5991 * process-unix.c (unix_open_network_stream): If connect() fails
5992 invalidate file descriptor after closing it.
5994 2001-03-08 Mike Alexander <mta@arbortext.com>
5996 * event-msw.c (mswindows_need_event_in_modal_loop):
5997 Don't dispatch a message if we didn't get one.
5998 (mswindows_need_event):
5999 Terminate the correct process when one exits instead of the first
6000 one on Vprocess_list and look for process termination when in
6001 mswindows_protect_modal_loop.
6003 2001-04-19 Stephen J. Turnbull <stephen@xemacs.org>
6005 * XEmacs 21.4.1 "Copyleft" is released.
6007 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
6009 * input-method-motif.c (XIM_delete_frame): New callback.
6010 (XIM_init_frame): Register it.
6012 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
6014 * XEmacs 21.4.0 "Solid Vapor" is released.
6016 2001-04-15 Ben Wing <ben@xemacs.org>
6018 * cmdloop.c (call_command_loop):
6019 Fix braino in bit-rotting code.
6021 2001-04-07 Hrvoje Niksic <hniksic@arsdigita.com>
6023 * extents.c (Fset_extent_endpoints): Force creation of extent info
6024 in buffer_or_string.
6026 * extents.c (process_extents_for_insertion_mapper): Correctly
6027 check for open-open zero-length extents.
6029 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
6031 * lisp.h: New typedefs Memory_count, Element_count.
6034 Sign-compare warning elimination: several unsigned -> signed.
6035 Based on work by Ben Wing <ben@xemacs.org>.
6037 2001-04-14 Stephen J. Turnbull <stephen@xemacs.org>
6039 * XEmacs 21.2.47 "Zephir" is released.
6041 2001-04-02 Jan Vroonhof <jan@xemacs.org>
6043 * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6045 2001-04-03 Mike Sperber <mike@xemacs.org>
6047 * search.c: Revert previous patch due because of release.
6049 2001-03-30 Ben Wing <ben@xemacs.org>
6052 Add missing killpg prototype.
6055 Add a comment about fixing problems when a new entry is added
6058 * frame-msw.c (mswindows_init_frame_1):
6059 Fix compile warnings.
6061 * menubar.c (vars_of_menubar):
6062 Provide `menu-accelerator-support' to indicate that we properly
6063 support %_ in menu specifications, so that package code can
6064 conditionalize on this (and remove %_ from menu specifications
6069 * scrollbar-msw.c (can_scroll):
6071 Fix handling of mouse wheel under Windows to follow standards --
6072 now scrolls window under pointer, not selected window.
6074 2001-03-31 Mike Sperber <mike@xemacs.org>
6076 * search.c (Freplace_match): Support FSF-style specification of
6077 match subexpression when applied to a buffer.
6079 2001-03-15 Martin Buchholz <martin@xemacs.org>
6081 * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6082 function to modify KEYMAP, so map over a copy of the hash table.
6084 2001-03-21 Martin Buchholz <martin@xemacs.org>
6086 * XEmacs 21.2.46 "Urania" is released.
6088 2001-03-20 Dan Holmsand <dan@eyebee.com>
6090 * realpath.c (xrealpath): Make file-truename work with symlinks to
6091 /cygdrive paths on cygwin. Always lowercase drive-letters on
6093 (cygwin_readlink): Don't try to find canonical filename unless
6096 2001-03-15 Stephen J. Turnbull <stephen@xemacs.org>
6098 * ChangeLog: Log GTK merge.
6104 Revert gratuitous whitespace changes from GTK merge.
6106 * emacs.c: Document end of complex #ifdef @ l. 1495.
6109 2001-03-12 Andy Piper <andy@xemacs.org>
6111 * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6112 have to do likewise.
6114 2001-03-12 Andy Piper <andy@xemacs.org>
6116 * sysdep.c: we only support mingw now.
6118 2001-03-09 Andy Piper <andy@xemacs.org>
6120 * unexcw.c (copy_executable_and_dump_data_section): making approx
6121 overrun a warning only.
6123 2001-03-10 William M. Perry <wmperry@aventail.com>
6125 * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6126 satisfy Stephen's identical-after-cpp plea.
6128 2001-03-02 Ben Wing <ben@xemacs.org>
6131 * cmds.c (Fforward_char):
6135 Augment documentation of the most common motion commands to make
6136 note of the shifted-motion support.
6138 2001-03-02 Ben Wing <ben@xemacs.org>
6140 * nt.c (mswindows_fstat):
6141 * nt.c (mswindows_stat):
6142 * search.c (boyer_moore):
6143 Fix compile warnings under Windows.
6145 * sysdep.c (sys_readdir):
6146 Fix buggy filename-conversion code under Mule.
6148 2001-03-09 William M. Perry <wmperry@aventail.com>
6170 * redisplay-output.c:
6176 The Great GTK Merge.
6183 * emacs-widget-accessors.c:
6197 * native-gtk-toolbar.c:
6208 The Great GTK Merge: new files.
6210 2001-02-26 Ben Wing <ben@xemacs.org>
6212 Reapplied Lstream change.
6214 2001-02-26 Ben Wing <ben@xemacs.org>
6216 Undid the last change, since it is more controversial than I
6217 thought. It should be back in at some point soon.
6219 2001-02-25 Ben Wing <ben@xemacs.org>
6222 * callproc.c (Fold_call_process_internal):
6223 * event-msw.c (ntpipe_slurp_reader):
6224 * event-msw.c (ntpipe_shove_writer):
6225 * event-msw.c (winsock_reader):
6226 * event-msw.c (winsock_writer):
6228 * file-coding.c (detect_eol_type):
6229 * file-coding.c (detect_coding_type):
6230 * file-coding.c (determine_real_coding_system):
6231 * file-coding.c (Fdetect_coding_region):
6232 * file-coding.c (decoding_reader):
6233 * file-coding.c (decoding_writer):
6234 * file-coding.c (mule_decode):
6235 * file-coding.c (Fdecode_coding_region):
6236 * file-coding.c (encoding_reader):
6237 * file-coding.c (encoding_writer):
6238 * file-coding.c (mule_encode):
6239 * file-coding.c (Fencode_coding_region):
6240 * file-coding.c (detect_coding_sjis):
6241 * file-coding.c (decode_coding_sjis):
6242 * file-coding.c (encode_coding_sjis):
6243 * file-coding.c (detect_coding_big5):
6244 * file-coding.c (decode_coding_big5):
6245 * file-coding.c (encode_coding_big5):
6246 * file-coding.c (detect_coding_ucs4):
6247 * file-coding.c (decode_coding_ucs4):
6248 * file-coding.c (encode_coding_ucs4):
6249 * file-coding.c (detect_coding_utf8):
6250 * file-coding.c (decode_coding_utf8):
6251 * file-coding.c (encode_coding_utf8):
6252 * file-coding.c (detect_coding_iso2022):
6253 * file-coding.c (decode_coding_iso2022):
6254 * file-coding.c (encode_coding_iso2022):
6255 * file-coding.c (decode_coding_no_conversion):
6256 * file-coding.c (encode_coding_no_conversion):
6257 * glyphs-x.c (write_lisp_string_to_temp_file):
6258 * gpmevent.c (tty_get_foreign_selection):
6261 * lstream.c (Lstream_flush_out):
6262 * lstream.c (Lstream_adding):
6263 * lstream.c (Lstream_write_1):
6264 * lstream.c (Lstream_write):
6265 * lstream.c (Lstream_raw_read):
6266 * lstream.c (Lstream_read_more):
6267 * lstream.c (Lstream_read):
6268 * lstream.c (Lstream_unread):
6269 * lstream.c (Lstream_fputc):
6270 * lstream.c (stdio_reader):
6271 * lstream.c (stdio_writer):
6272 * lstream.c (filedesc_reader):
6273 * lstream.c (filedesc_writer):
6274 * lstream.c (lisp_string_reader):
6275 * lstream.c (struct fixed_buffer_stream):
6276 * lstream.c (make_fixed_buffer_input_stream):
6277 * lstream.c (make_fixed_buffer_output_stream):
6278 * lstream.c (fixed_buffer_reader):
6279 * lstream.c (fixed_buffer_writer):
6280 * lstream.c (struct resizing_buffer_stream):
6281 * lstream.c (resizing_buffer_writer):
6282 * lstream.c (dynarr_writer):
6283 * lstream.c (lisp_buffer_reader):
6284 * lstream.c (lisp_buffer_writer):
6286 * lstream.h (lstream_implementation):
6287 * lstream.h (struct lstream):
6289 * process-nt.c (nt_send_process):
6290 * process-unix.c (unix_send_process):
6292 Correct Lstream lossage due to mixing of signed and unsigned
6293 quantities. All Lstream uses of size_t and ssize_t are now a
6294 single signed data type Lstream_data_count. This fixes problems
6295 under Windows with sending large quantities of data to a process,
6296 and may well fix other subtle bugs.
6298 2001-02-23 Martin Buchholz <martin@xemacs.org>
6300 * XEmacs 21.2.45 "Thelxepeia" is released.
6302 2001-02-21 Martin Buchholz <martin@xemacs.org>
6304 * lisp-union.h (XSETINT):
6307 Reverse previous change of 2001-02-06.
6309 2001-02-20 Matt Tucker <tuck@whistlingfish.net>
6311 Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6313 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6314 * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6315 Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6316 * regex.c (POS_AS_IN_BUFFER): removed
6317 * regex.c (re_search_2):
6318 * regex.c (re_match_2):
6319 Don't use an offset of 1 when calculating buffer positions, since
6320 `BI_BUF_BEGV' does it already.
6322 2001-02-18 Wim Dumon <wim@easics.be>
6324 * insdel.c (prepare_to_modify_buffer): Also check for
6325 supersession when clash-detection is enabled.
6327 2001-02-17 Matt Tucker <tuck@whistlingfish.net>
6329 * regex.c (re_match_2_internal):
6330 Convert temp characters from 'const unsigned char' to 're_char'.
6331 Fix crashing bug with extended characters under mule.
6332 * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6333 syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6334 font-lock, pdump, and new syntax-table code.
6335 * syntax.c (find_start_of_comment):
6336 (find_end_of_comment):
6338 Fix crashing bugs involving moving beyond end of buffer.
6339 * syntax.c (find_start_of_comment):
6340 Fixed logic to allow proper detection of cases where the same
6341 character is used to end both a two-char comment start and a
6342 two-char comment end sequence. Fixes `(forward-comment -1)'.
6343 * syntax.c (find_start_of_comment):
6344 Return position just past last comment-end character for all cases
6345 (previously was only done for two-char comment-end sequences).
6346 * syntax.c (forward-comment):
6347 Take value returned from `find_end_of_comment', rather than
6349 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6350 Properly deal with BUFFERP (syntax_cache.object)
6352 2001-02-17 Martin Buchholz <martin@xemacs.org>
6354 * alloc.c (Fgarbage_collect):
6355 * alloc.c (make_bit_vector_from_byte_vector):
6356 -Wsign-compare-correctness.
6358 2001-02-16 Martin Buchholz <martin@xemacs.org>
6360 * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6361 (XSETCHAR): Likewise.
6362 (XSETOBJ): Likewise.
6364 2001-02-15 Martin Buchholz <martin@xemacs.org>
6366 * mule-canna.c (canna-func-delete_previous):
6367 Rename to canna-func-delete-previous.
6369 2001-02-14 Martin Buchholz <martin@xemacs.org>
6371 * mule-ccl.c (ccl_driver): Warning suppression. Use countof.
6373 2001-02-13 Matt Tucker <tuck@whistlingfish.net>
6375 * font-lock.c (find_context): Fix C++ compile errors introduced by
6378 2001-02-13 Martin Buchholz <martin@xemacs.org>
6380 * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6381 pragma, but earlier ones barf on the same pragma.
6383 2001-02-06 Mike Sperber <mike@xemacs.org>
6385 * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6386 `configure-mule-lisp-directory'.
6388 2001-02-12 Martin Buchholz <martin@xemacs.org>
6390 Make sure dump-id.c is compiled in the same way as other .c's.
6391 Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6392 * dump-id.h: Remove.
6393 * emacs.c: Move dump-id.h into dumper.h.
6394 * dumper.h: Move dump-id.h into dumper.h.
6396 Use standard .c.o rule for building dump-id.o.
6397 Remove preprocessor flags from link command.
6398 Add dump-id.o to ${otherobjs} if PDUMP.
6400 2001-02-07 Matt Tucker <tuck@whistlingfish.net>
6402 Port FSF 20.7 syntax table improvements.
6406 Fixups for new syntax table stuff.
6407 * dired.c: Include syntax.c.
6408 (Fdirectory_files): Initialize regex_match_object and
6410 * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6411 and Fget_char_property.
6413 Use ported FSF 20.7 syntax table improvements.
6418 2001-02-09 Martin Buchholz <martin@xemacs.org>
6420 * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6421 Unixware's enum boolean from sys/types.h.
6423 2001-02-10 Martin Buchholz <martin@xemacs.org>
6425 Fix support for building with latest Purify.
6426 * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6427 (PURIFY_FLAGS): Likewise.
6429 2001-02-09 Martin Buchholz <martin@xemacs.org>
6431 * fileio.c (lisp_string_set_file_times): New.
6432 * fileio.c (Fcopy_file): Use it.
6434 (copy-file filename non-ascii-filename t t)
6435 ==> No such file or directory, non-ascii-filename
6437 2001-02-10 Martin Buchholz <martin@xemacs.org>
6439 * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6440 USHRT_MAX seems clearer than ~0 anyways.
6442 2001-02-09 Martin Buchholz <martin@xemacs.org>
6444 dumper improvements. Inspired by Olivier.
6445 * dumper.c (pdump_max_align): New.
6446 * dumper.c (pdump_add_entry): Use pdump_max_align.
6447 * dumper.c (pdump_get_entry_list): Likewise.
6448 * dumper.c (pdump_scan_by_alignment): Likewise.
6449 Don't iterate through unnecessary alignments.
6450 * dumper.c (pdump_file_get): No need to align result of malloc().
6451 * dumper.c (pdump_mallocadr): Remove.
6452 The result of malloc() is guaranteed to be maximally aligned.
6453 * dumper.c: s/elmt/elt/g;
6454 * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6455 * dumper.c (pdump_alert_undump_object): Likewise.
6456 * dumper.c (pdump_align_table):
6457 Don't support alignments > 64.
6458 Store ALIGNOF's, not shift counts, in table.
6460 2001-02-09 Martin Buchholz <martin@xemacs.org>
6462 * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6463 * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6464 * systime.h: Use HAVE_UTIME.
6465 * sysdep.c (struct utimbuf): Remove.
6466 * sysdep.c (set_file_times): Prefer utime() to utimes().
6467 * config.h.in (HAVE_UTIME): New.
6468 * config.h.in (HAVE_UTIME_H): Remove.
6469 * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6471 2001-02-09 Martin Buchholz <martin@xemacs.org>
6473 * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6475 2001-02-08 Martin Buchholz <martin@xemacs.org>
6477 * s/irix6-0.h: Use the standard system memmove, not bcopy.
6479 2001-02-08 Martin Buchholz <martin@xemacs.org>
6481 * XEmacs 21.2.44 "Thalia" is released.
6483 2001-02-06 Martin Buchholz <martin@xemacs.org>
6485 Fixes crashes in kill-emacs on some systems.
6486 * process-unix.c (unix_kill_child_process):
6487 It's OK for kill() to fail with ESRCH.
6489 2001-02-07 Martin Buchholz <martin@xemacs.org>
6491 Contortions to make .gdbinit tricks work on most systems.
6492 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6493 * alloc.c (dbg_valmask): Make non-const.
6494 * alloc.c (dbg_typemask): Make non-const.
6495 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6496 * alloc.c (dbg_valbits): Make non-const.
6497 * alloc.c (dbg_gctypebits): Make non-const.
6498 * .gdbinit (decode_object): Make it work with AIX cc.
6500 2001-02-06 Martin Buchholz <martin@xemacs.org>
6502 * elhash.c (make_general_lisp_hash_table):
6503 Use simpler and more efficient calloc to clear entries.
6505 2001-02-07 Martin Buchholz <martin@xemacs.org>
6507 * window.c (window_scroll): Work around an AIX C compiler bug.
6508 Fixes 'scroll-up' does nothing problem with xlC.
6510 2001-02-05 Martin Buchholz <martin@xemacs.org>
6512 * .gdbinit: Remove obsolete comment.
6514 2001-01-31 Mike Alexander <mta@arbortext.com>
6516 * select.c (Fown_selection_internal): Set owned_p for device
6519 2001-02-01 Martin Buchholz <martin@xemacs.org>
6522 "not" cannot be used as a macro name as it is an operator in C++
6523 * config.h.in: Stop #defining `not'.
6524 * chartab.c (check_category_char): not ==> not_p
6525 * chartab.h: Likewise.
6526 * regex.c (re_match_2_internal): Likewise.
6528 2001-02-02 Martin Buchholz <martin@xemacs.org>
6530 * lisp-disunion.h: Fix up comments.
6532 2001-01-31 Martin Buchholz <martin@xemacs.org>
6534 * keymap.c (define_key_check_and_coerce_keysym):
6536 Support mouse-6 and mouse-7 bindings in the obvious way.
6538 2001-02-01 Martin Buchholz <martin@xemacs.org>
6540 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6542 2001-01-30 Martin Buchholz <martin@xemacs.org>
6544 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6545 Previous patch missed DEFVAR_INT_MAGIC.
6546 Make sure future DEFVAR_foo use correct types.
6547 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6548 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6549 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6550 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6551 * (DEFVAR_INT): Likewise.
6552 * redisplay.c (vertical_clip): Should be of type Fixnum.
6553 * redisplay.c (horizontal_clip): Likewise.
6554 * lisp.h (dump_add_opaque_int): New.
6555 (dump_add_opaque_fixnum): New.
6557 2001-01-29 Andy Piper <andy@xemacs.org>
6559 * glyphs-widget.c (check_valid_int_or_function): allow symbols
6560 since they can be eval'ed
6562 2001-01-29 Martin Buchholz <martin@xemacs.org>
6564 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6565 Oops, XEmacs redefines `class'. Use `typename' instead.
6567 2001-01-28 Martin Buchholz <martin@xemacs.org>
6569 * dumper.c: Fix C++ compile errors.
6571 2001-01-29 Martin Buchholz <martin@xemacs.org>
6573 * tparam.c: Use correct prototypes.
6575 2001-01-28 Martin Buchholz <martin@xemacs.org>
6577 * sysproc.h: #include util.h for NetBSD's openpty.
6579 2001-01-27 Martin Buchholz <martin@xemacs.org>
6581 More 64-bit correctness.
6582 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6583 Use a typedef `fixnum' for the type used for DEFVAR_INT.
6585 This finally finishes the 64-bit SGI port.
6586 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6587 * symbols.c: Fix up comments and type casts.
6588 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6589 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6590 * symeval.h (Fixnum): New type.
6591 * symeval.h (symbol_value_type): Fix up comment.
6607 * mule-canna.c: A million DEFVAR_INTs here...
6608 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6621 s/int/Fixnum/g in DEFVAR_INT declarations.
6623 2001-01-26 Martin Buchholz <martin@xemacs.org>
6625 Port pdump to SGI alignment-sensitive environment.
6626 Lisp Object sizeof methods now return aligned sizes. Rely on that.
6627 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6629 Define and use aligned reading and writing macros.
6630 Use buffered stdio instead of posix i/o for faster dumping.
6631 Eliminate kludgy 256 byte space for header.
6632 Read and write from dump file using structs for alignment safety.
6633 * dumper.c (pdump_align_stream): New.
6634 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6635 * dumper.c (PDUMP_READ_ALIGNED): New.
6636 * dumper.c (PDUMP_WRITE_ALIGNED): New.
6637 * dumper.c (pdump_static_Lisp_Object): New struct.
6638 * dumper.c (pdump_static_pointer): New struct.
6639 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6640 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6641 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6642 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6644 * dumper.c (pdump_backtrace):
6645 * dumper.c (pdump_get_indirect_count):
6646 * dumper.c (pdump_register_object):
6647 * dumper.c (pdump_register_struct):
6648 * dumper.c (pdump_reloc_one):
6649 * dumper.c (pdump_scan_by_alignment):
6650 * dumper.c (pdump_dump_from_root_struct_ptrs):
6651 * dumper.c (pdump_dump_opaques):
6652 * dumper.c (pdump_dump_rtables):
6653 * dumper.c (pdump_dump_from_root_objects):
6655 * dumper.c (pdump_load_finish):
6656 Use aligned reading and writing.
6658 * dumper.c (pdump_free): Make static.
6659 * dumper.c (pdump_hFile): Likewise.
6660 * dumper.c (pdump_hMap): Likewise.
6662 2001-01-26 Martin Buchholz <martin@xemacs.org>
6664 * XEmacs 21.2.43 "Terspichore" is released.
6666 2001-01-25 Martin Buchholz <martin@xemacs.org>
6668 Type fiddling for window_config.saved_windows_count
6669 * window.c (struct window_config):
6670 Make saved_windows_count member unsigned.
6671 * window.c (sizeof_window_config_for_n_windows):
6672 Make parameter unsigned.
6673 * window.c (mark_window_config):
6674 * window.c (window_config_equal):
6675 * window.c (free_window_configuration):
6676 * window.c (Fset_window_configuration):
6677 * window.c (count_windows):
6678 * window.c (Fcurrent_window_configuration):
6679 * window.c (reinit_vars_of_window):
6680 Update all callers and users.
6682 2001-01-25 Martin Buchholz <martin@xemacs.org>
6684 Alignment correctness for flexible arrays.
6685 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6686 Make alignment-correct. Add interesting comments.
6687 * alloc.c (size_vector):
6688 * alloc.c (make_vector_internal):
6689 * alloc.c (make_bit_vector_internal):
6690 * alloc.c (sweep_bit_vectors_1):
6691 * fns.c (size_bit_vector):
6692 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6693 * window.c (sizeof_window_config_for_n_windows):
6694 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6696 2001-01-24 Martin Buchholz <martin@xemacs.org>
6698 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6700 2001-01-23 Andy Piper <andy@xemacs.org>
6702 * select.c (Fown_selection_internal): pass owned_p
6704 * select-msw.c (mswindows_own_selection): New Signature.
6706 * console.h (struct console_methods): add owned_p to
6709 * select-x.c (x_own_selection): pass owned_p
6710 (hack_motif_clipboard_selection): use owned_p
6711 (vars_of_select_x): new variable -
6712 x_selection_strict_motif_ownership.
6714 2001-01-23 Martin Buchholz <martin@xemacs.org>
6716 * specifier.h (specifier_data_offset): Remove pointless parens.
6717 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6719 2001-01-24 Martin Buchholz <martin@xemacs.org>
6721 Make Lisp_Object sizeof methods be alignment-correct.
6722 pdump must restore objects to the same alignment as the C compiler
6723 assumes. It really matters on SGIs.
6724 * lstream.c (aligned_sizeof_lstream): New.
6725 (sizeof_lstream): Use aligned_sizeof_lstream.
6726 (Lstream_new): Likewise.
6727 * opaque.c (aligned_sizeof_opaque): New.
6728 (sizeof_opaque): Use aligned_sizeof_opaque.
6729 (make_opaque): Likewise.
6730 * specifier.c (aligned_sizeof_specifier): New.
6731 (sizeof_specifier): Use aligned_sizeof_specifier.
6732 (make_specifier_internal): Likewise.
6734 2001-01-23 Martin Buchholz <martin@xemacs.org>
6736 * lstream.h (struct lstream): Use max_align_t for trailing data.
6737 * specifier.h (struct Lisp_Specifier): Likewise.
6739 2001-01-22 Martin Buchholz <martin@xemacs.org>
6741 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6742 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6743 (CCL_SUSPEND): Likewise.
6744 (CCL_INVALID_CMD): Likewise.
6745 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6746 (ccl_driver): Likewise.
6747 (CCL_WRITE_CHAR): Macro hygiene.
6748 (CCL_WRITE_STRING): Macro hygiene.
6750 2001-01-22 Martin Buchholz <martin@xemacs.org>
6752 Port "portable" dumper to SunOS 4 and HP-UX.
6753 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6754 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6755 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6757 2001-01-22 Martin Buchholz <martin@xemacs.org>
6759 * lisp.h (ALIGNOF): A better definition for C++.
6761 2001-01-20 Martin Buchholz <martin@xemacs.org>
6764 Fix printf warnings: int format, long int arg.
6765 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6766 (PUSH_FAILURE_POINT): Use correct printf formats.
6767 (POP_FAILURE_POINT): Use correct printf formats.
6768 Use do {...} while (0)
6770 2001-01-20 Martin Buchholz <martin@xemacs.org>
6772 * XEmacs 21.2.42 "Poseidon" is released.
6774 2001-01-20 Martin Buchholz <martin@xemacs.org>
6776 * console-x.h: typo fix du jour. Remove #if 0'ed code.
6778 2001-01-19 Martin Buchholz <martin@xemacs.org>
6780 De-kludgify FIXED_TYPE free list frobbing.
6781 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6782 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6783 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6784 * alloc.c (Lisp_Free): New pseudo lisp object definition.
6785 * alloc.c (LRECORD_FREE_P): New.
6786 * alloc.c (MARK_LRECORD_AS_FREE): New.
6787 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6788 * alloc.c (STRUCT_FREE_P): Deleted.
6789 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6790 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6791 * alloc.c (STRING_CHARS_FREE_P): New.
6792 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6793 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6794 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6795 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6796 * alloc.c (resize_string): Use new definitions.
6797 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6798 * alloc.c (verify_string_chars_integrity): Use new definitions.
6799 * alloc.c (compact_string_chars): Use new definitions.
6800 * alloc.c: Update monster comments.
6801 * lrecord.h (lrecord_type): Add some new lrecord types for
6804 2001-01-18 Martin Buchholz <martin@xemacs.org>
6806 Improve alignment hackery.
6807 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6808 (max_align_t): Moved from opaque.h - general purpose.
6809 (ALIGN_PTR): Use size_t, not long.
6810 * opaque.h (max_align_t): Move to lisp.h.
6812 2001-01-18 Norbert Koch <nk@LF.net>
6814 * gui.h: Fix and add prototypes to fix build problems.
6816 2001-01-18 Martin Buchholz <martin@xemacs.org>
6818 temacs is going away, so `dump-temacs' is now a bad name.
6819 * .dbxrc (dump-temacs): Rename to `dmp'.
6820 * .gdbinit (dump-temacs): Rename to `dmp'.
6822 2001-01-17 Andy Piper <andy@xemacs.org>
6824 * glyphs.c (print_image_instance): comment to make martin happy.
6826 * glyphs-x.c (x_redisplay_widget): update faces after a frame
6829 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
6831 (mswindows_tab_control_redisplay): warning suppression.
6833 * glyphs-widget.c (widget_update): re-write to cope with updated
6835 (widget_instantiate): use new gui_item functions.
6836 (tab_control_update): deleted.
6837 (progress_gauge_update): deleted.
6838 (image_instantiator_progress_guage): take out update reference.
6839 (image_instantiator_tree_view): ditto.
6840 (image_instantiator_tab_control): ditto.
6842 * gui.c (widget_gui_parse_item_keywords): new function. Do things
6844 (gui_item_add_keyval_pair): re-write to cope with descriptors and
6845 return whether anything was changed.
6846 (update_gui_item_keywords): as it sounds.
6848 * gui.h: declare widget_gui_parse_item_keywords.
6850 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
6851 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
6853 2001-01-17 Martin Buchholz <martin@xemacs.org>
6855 * XEmacs 21.2.41 "Polyhymnia" is released.
6857 2001-01-16 Didier Verna <didier@xemacs.org>
6859 * glyphs.c (image_instantiate): don't use fallbacks when
6860 instantiating a face's background pixmap by inheritance.
6862 2001-01-14 Mike Sperber <mike@xemacs.org>
6864 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
6865 Conditionalize accordingly.
6867 2001-01-16 Martin Buchholz <martin@xemacs.org>
6869 * dumper.c (pdump_file_get): Fix a compiler warning.
6871 2001-01-15 Martin Buchholz <martin@xemacs.org>
6873 Make Purify happy when pdumping.
6874 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
6875 iniitalizing all bits of new lisp object memory.
6876 * symbols.c (Fmake_local_variable): Likewise.
6877 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
6878 * symbols.c (Fdefvaralias): Likewise.
6879 * mule-charset.c (vars_of_mule_charset): Likewise.
6881 2001-01-15 Martin Buchholz <martin@xemacs.org>
6882 Add the `-nd' flag when running pre-dump operations under the debugger.
6883 * .dbxrc (run-temacs): Add `-nd'.
6884 * .dbxrc (update-elc): Likewise.
6885 * .dbxrc (dump-temacs): Likewise.
6886 * .gdbinit (run-temacs): Likewise.
6887 * .gdbinit (check-temacs): Likewise.
6888 * .gdbinit (update-elc): Likewise.
6889 * .gdbinit (dump-temacs): Likewise.
6891 2001-01-14 Martin Buchholz <martin@xemacs.org>
6893 Allow building 64-bit executables on AIX with GNU malloc, e.g.
6894 export OBJECT_MODE=64
6895 configure --pdump --use-union-type=no
6896 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
6897 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
6899 * miscplay.c (sndcnv8U_2mono):
6900 Avoid two uses of `++' in the same expression.
6901 Suppresses a GCC warning.
6903 2001-01-13 Martin Buchholz <martin@xemacs.org>
6905 Make sure future compilers don't miscompile alloc.c.
6907 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
6908 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
6910 2001-01-12 Martin Buchholz <martin@xemacs.org>
6912 * dumper.c: A little post-pdump-rename comment fixup.
6914 2001-01-09 Jerry James <james@eecs.ku.edu>
6916 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
6918 2001-01-13 Martin Buchholz <martin@xemacs.org>
6920 * *.[ch]: Globally rename symbols using the following `pdump-rename'
6924 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
6927 replace_symbol pdump_wire_lists pdump_weak_object_chains
6928 replace_symbol pdump_wire_list dump_add_weak_object_chain
6930 replace_symbol pdump_wires pdump_root_objects
6931 replace_symbol pdump_wire dump_add_root_object
6933 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
6934 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
6936 replace_symbol dumpstructinfos pdump_root_struct_ptrs
6937 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
6938 replace_symbol dumpstructinfo pdump_root_struct_ptr
6939 replace_symbol dumpstruct dump_add_root_struct_ptr
6941 replace_symbol dumpopaque dump_add_opaque
6942 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
6943 replace_symbol dumpopaqueinfos pdump_opaques
6944 replace_symbol dumpopaqueinfo pdump_opaque
6946 replace_symbol nb_structdump nb_root_struct_ptrs
6947 replace_symbol nb_opaquedump nb_opaques
6949 replace_symbol align_table pdump_align_table
6950 replace_symbol dump_header pdump_header
6952 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
6953 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
6956 2001-01-12 Martin Buchholz <martin@xemacs.org>
6958 * s/aix4.h: Keep the C for AIX compiler from overaggressively
6959 optimizing bytecount_to_charcount().
6961 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
6964 (HAVE_DLFCN_H): Removed.
6965 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
6967 2001-01-06 Martin Buchholz <martin@xemacs.org>
6969 Portable dumper maintainability improvements.
6970 * alloc.c (staticpro):
6971 * alloc.c (staticpro_nodump):
6972 * alloc.c (garbage_collect_1):
6973 * alloc.c (reinit_alloc_once_early):
6974 * alloc.c (init_alloc_once_early):
6975 * alloc.c: Move dumper functions to alloc.c.
6976 * dumper.c (pdump_backtrace):
6977 * dumper.c (pdump_dump_structs):
6978 * dumper.c (pdump_dump_opaques):
6979 * dumper.c (pdump_dump_rtables):
6980 * dumper.c (pdump_dump_wired):
6982 * dumper.c (pdump_load_check):
6983 * dumper.c (pdump_load_finish):
6984 * dumper.c (pdump_file_unmap):
6985 * dumper.c (pdump_file_get):
6986 * dumper.c (pdump_resource_free):
6987 * dumper.c (pdump_resource_get):
6988 * dumper.c (pdump_file_free):
6989 * dumper.c (pdump_file_try):
6990 * dumper.c (pdump_load):
6991 Remove fixed size limits on staticpro(), staticpro_nodump(),
6992 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
6993 Remove custom code for dumping lrecord_implementations_table - use
6995 Remove (most of the) custom code for dumping staticpros - dump it
6996 like any other dynarr.
6998 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
6999 * dumper.c: Moved functions from alloc.c.
7000 * alloc.c (dumpstruct): Moved to dumper.c.
7001 * alloc.c (dumpopaque): Likewise.
7002 * alloc.c (pdump_wire): Likewise.
7003 * alloc.c (pdump_wire_list): Likewise.
7005 * lisp.h (Dynarr_sizeof): New.
7006 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
7007 * lisp.h (Dynarr_end): New. Very slightly C++oid.
7008 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
7010 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7011 * lisp.h (dumpopaque): ditto.
7012 * lisp.h (pdump_wire): ditto.
7013 * lisp.h (pdump_wire_list): ditto.
7015 2001-01-09 Martin Buchholz <martin@xemacs.org>
7017 * make-src-depend (PrintPatternDeps):
7018 Use `sort' to make output independent of perl version.
7020 2001-01-08 Martin Buchholz <martin@xemacs.org>
7023 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7024 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7026 2001-01-03 Didier Verna <didier@xemacs.org>
7028 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7029 that `focus_frame' is alive before thinking of calling
7030 `redisplay_redraw_cursor' on it.
7032 2001-01-08 Martin Buchholz <martin@xemacs.org>
7034 * XEmacs 21.2.40 is released.
7036 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
7038 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7040 2001-01-06 Martin Buchholz <martin@xemacs.org>
7042 * alloc.c (dbg_valmask): Make const.
7043 * alloc.c (dbg_typemask): Make const.
7044 * alloc.c (dbg_USE_UNION_TYPE): Make const.
7045 * alloc.c (dbg_valbits): Make const.
7046 * alloc.c (dbg_gctypebits): Make const.
7048 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
7050 * redisplay-x.c (x_bevel_area):
7051 redisplay.h (struct rune):
7052 Typo fixes in comments.
7054 2001-01-05 Andy Piper <andy@xemacs.org>
7056 * glyphs-x.c (x_redisplay_widget): use size changed for offset
7059 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7061 2001-01-05 Martin Buchholz <martin@xemacs.org>
7063 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7065 * mule-ccl.c (stack_idx_of_map_multiple):
7066 Non const global data must not be initialized!
7067 Found by MIYASHITA Hisashi.
7069 2001-01-02 Andy Piper <andy@xemacs.org>
7071 * frame.c (change_frame_size): make sure frame size is always
7074 * glyphs.c (image_instance_layout): minor code reuse.
7076 * window.c (Fcurrent_window_configuration): revert previous
7079 2001-01-02 Martin Buchholz <martin@xemacs.org>
7082 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7084 2000-12-31 Andy Piper <andy@xemacs.org>
7086 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7087 when widget gets unmapped.
7089 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7090 function. Make sure widgets losing focus don't just drop it.
7091 (handle_focus_event_1): record the widget with focus.
7093 2000-12-31 Andy Piper <andy@xemacs.org>
7095 * window.c (allocate_window): use
7096 make_image_instance_cache_hash_table.
7097 (make_dummy_parent): ditto.
7098 (Fset_window_configuration): ditto.
7100 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
7102 * glyphs.c (process_image_string_instantiator): use
7104 (get_image_instantiator_governing_domain): ditto.
7105 (normalize_image_instantiator): ditto.
7106 (instantiate_image_instantiator): ditto.
7107 (make_image_instance_1): ditto.
7108 (image_instantiate): ditto. Key on glyph *and* instantiator type.
7109 (instantiator_eq_equal): new function for use with instance hash
7111 (instantiator_eq_hash): ditto.
7112 (make_image_instance_cache_hash_table): create a suitable hash
7113 table for storing image instances.
7115 * elhash.h (hash_table_weakness): new internal weakness type
7116 HASH_TABLE_KEY_CAR_VALUE_WEAK.
7117 declare new functions.
7119 * elhash.c (finish_marking_weak_hash_tables): introduce yet
7120 another weakness type for glyphs.
7121 (make_standard_lisp_hash_table): new function split out from
7122 make_general_lisp_hash_table.
7123 (make_lisp_hash_table): call make_standard_lisp_hash_table.
7124 (hash_table_instantiate): ditto.
7125 (Fmake_hash_table): ditto.
7127 2000-12-31 Martin Buchholz <martin@xemacs.org>
7129 * XEmacs 21.2.39 is released.
7131 2000-12-29 Andy Piper <andy@xemacs.org>
7133 * menubar.c (menubar_visible_p_changed): signal the frame changed.
7135 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7136 the frame has changed so that we pick up geometry changes such as
7139 2000-12-28 Andy Piper <andy@xemacs.org>
7141 * lastfile.c (my_ebss): make a char array so we can pad the
7142 bss. Fixes cygwin unexec.
7144 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7146 2000-12-26 Andy Piper <andy@xemacs.org>
7148 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7149 comments and try and be more precise about a non-/SIGIO world.
7150 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7153 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7154 we don't normalize to zero width or height.
7156 2000-12-24 Andy Piper <andy@xemacs.org>
7158 * Makefile.in.in (ldflags): add -mwindows when appropriate.
7160 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
7162 * s/sco5.h: SCO 5 has pty support.
7164 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
7166 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7167 input-method-xlib.c contains whole contents of input-method-xfs.c,
7168 so we can use input-method-xlib.c's code for USE_XFONTSET
7170 * input-method-xfs.c: removed.
7172 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
7174 * file-coding.h (enum coding_category_type): reorder enumerators to
7175 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
7176 (now one greater than largest real coding_category_type enumerator).
7177 * file-coding.c (coding_category_symbol, coding_category_by_priority,
7178 coding_category_system, fcd_descriptihon_1, decode_coding_category,
7179 Fcoding_category_list, Fset_coding_priority_list,
7180 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7181 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7183 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
7185 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7186 * redisplay-output.c (redisplay_output_window): Clear top of window
7187 when face is changed.
7188 * redisplay-x.c (x_redraw_exposed_window): Call
7189 redisplay_clear_top_of_window.
7190 * redisplay.h: Publish redisplay_clear_top_of_window.
7192 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
7194 * buffer.c (Fkill_buffer): Map over all devices.
7195 * window.c (window_loop): Remove UNSHOW_BUFFER code.
7196 (list_windows): New function.
7197 (list_all_windows): Ditto.
7198 (Freplace_buffer_in_windows): Use them.
7200 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7202 * database.c (berkdb_subtype): Recognize new subtype `queue'.
7203 (Fopen_database): Use `db_create' instead of `db_open'.
7204 (syms_of_database): Initialize Qqueue.
7206 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
7208 * buffer.c (common_init_complex_vars_of_buffer): Initialize
7209 buffer_local_face_property.
7210 * buffer.h (struct buffer): New member buffer_local_face_property.
7211 * window.c (Fset_window_buffer): Mark window's face as changed
7212 when buffer has buffer local face.
7213 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7214 * objects.c (color_after_change): Set buffer_local_face_property
7215 when locale of face specifier is buffer.
7216 * objects.c (font_after_change): Ditto.
7217 * objects.c (face_boolean_after_change): Ditto.
7218 * glyphs.c (image_after_change): Ditto.
7220 2000-12-09 Dan Holmsand <dan@eyebee.com>
7222 * nt.c (mswindows_fstat): Report file permissions, volume serial
7223 number, etc. Code adapted from FSF Emacs 20.7.
7225 2000-12-09 Dan Holmsand <dan@eyebee.com>
7227 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7228 of stat when we don't have symbolic links, to make sure
7229 mswindows_stat is called on mswindows.
7231 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
7233 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7235 2000-12-12 Martin Buchholz <martin@xemacs.org>
7237 * doprnt.c (emacs_doprnt_1): More printing fixes.
7238 Make printing of numbers compatible with libc and FSF Emacs.
7239 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7240 Use the system printf to do most of the hard work of formatting,
7241 instead of doprnt_1().
7242 Calculate memory to allocate for format string.
7243 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7244 (doprnt_1): Cleaner code and documentation.
7246 2000-12-01 Jerry James <james@eecs.ukans.edu>
7248 * Makefile.in.in: Use the loop variable to install headers.
7250 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7252 * window.c (Fsplit_window): Don't invalidate face cache.
7254 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7256 * minibuf.c (Fall_completions): Undo the previous change
7257 which removed checking elements start with space.
7259 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
7261 * mule-canna.c: Didier suppression.
7263 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
7265 * mule-canna.c: rename static unsigned char buf[] to key_buffer
7266 (warning suppression). Add English comment translations.
7268 2000-12-05 Martin Buchholz <martin@xemacs.org>
7270 * unexelfsgi.c (unexec): Better test for mmap failure.
7272 2000-12-05 Martin Buchholz <martin@xemacs.org>
7274 * XEmacs 21.2.38 is released.
7276 2000-12-05 Martin Buchholz <martin@xemacs.org>
7278 * redisplay.c (bar-cursor): Make a user variable.
7280 * symsinit.h: Add init_postgresql_from_environment.
7282 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7284 * regex.c: Convert to clean C.
7286 2000-12-05 Dan Holmsand <dan@eyebee.com>
7289 Don't #include sysfile.h. Revert to duplicating PATH_MAX
7291 (sys_readlink): renamed to system_readlink to avoid conflict with
7292 the other sys_readlink.
7294 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
7296 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7298 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
7300 * postgresql.c (init_postgresql_from_environment): new function.
7301 (vars_of_postgresql): Move code initializing Lisp variables out and
7302 into init_postgresql_from_environment.
7303 emacs.c (main_1): Call init_postgresql_from_environment if and only
7304 if running a dumped XEmacs.
7306 2000-08-31 Dan Holmsand <dan@eyebee.com>
7308 * buffer.c: Make find-file-compare-truenames default to true on
7311 * realpath.c (win32_abs_start):
7313 (win32_readlink): New functions.
7314 (xrealpath): Return really real filenames on windows.
7316 * fileio.c (Ffile_truename): Make file-truename work on windows.
7318 2000-11-29 Didier Verna <didier@xemacs.org>
7320 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7321 * faces.c (update_face_cachel_data): use it.
7322 * faces.c (add_face_cachel): use it. Complete background pixmap
7323 frobbing in face cache if `update_face_cachel_data' has not done so.
7325 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
7327 * search.c (string_match_1): Don't set last_thing_searched
7330 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
7332 * buffer.c: Include casetab.h
7333 (common_init_complex_vars_of_buffer): Use new case-table object.
7334 * buffer.h: Include casetab.h
7335 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7336 (DOWNCASE_TABLE_OF): Ditto.
7337 * bufslots.h: Remove char-tables and add case-table.
7338 * casetab.c: Include casetab.h
7339 (CASE_TABLE_P): Removed.
7340 (mark_case_table): New function.
7341 (allocate_case_table): New function.
7342 (Fcase_table_p): Use new case-table.
7343 (case_table_char): New function.
7344 (Fget_case_table): Ditto.
7345 (Fput_case_table): Ditto.
7346 (Fput_case_table_pair): Ditto.
7347 (Fcopy_case_table): Ditto.
7348 (Fcurrent_case_table): Return case-table.
7349 (Fstandard_case_table): Return case-table.
7350 (Fset_case_table): Fix doc-string.
7351 (set_case_table): Use case-table
7352 (syms_of_casetab): DEFSUBR new functions.
7353 (complex_vars_of_casetab): Set up standard case-table.
7354 * casetab.h: New file.
7355 * editfns.c: Include casetab.h
7356 (Fcompare_buffer_substrings): Use case-table.
7357 * inline.c: Include casetab.h
7358 * lisp.h: Remove bogus extern.
7359 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7360 * search.c: Include casetab.h
7361 (TRANSLATE_ASCII): Removed.
7362 (TRANSLATE): Unconditionally translate character.
7363 (looking_at_1): Use case-table.
7364 (string_match_1): Ditto.
7365 (fast_string_match): Ditto.
7366 (search_command): Ditto.
7367 (search_buffer): Separate boyer_moore. Check whether
7368 boyer_moore is possible.
7369 (simple_search): New function.
7370 (boyer_moore): Separated from search_buffer. Translate char.
7372 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
7374 * regex.c (RE_TR_ASCII): Removed.
7375 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7376 (PATFETCH): Call PATFETCH_RAW.
7377 (PATFETCH_RAW): Fetch Emchar.
7378 (PATUNFETCH): Decrement charptr.
7379 (GET_BUFFER_SPACE): Rename b to buf_end.
7381 (BUF_PUSH_2): Ditto.
7382 (BUF_PUSH_3): Ditto.
7383 (EXTEND_BUFFER): Ditto.
7384 (SET_LIST_BIT): Ditto.
7385 (regex_compile): Ditto. Translate non ASCII char.
7386 (compile_range): Ditto.
7387 (re_search_2): Ditto.
7388 (re_match_2_internal): Compare Emchar.
7389 (bcmp_translate): Ditto.
7391 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
7393 * lisp.h (basic char/int typedefs): comment improvement.
7395 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
7397 * emacs.c (main_1): unconditional pdump unstomping; don't save and
7398 unstomp inhibit_site_lisp. Improve comments.
7400 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
7402 * mule-charset.c (Fcharset_property): improve type checking, comments.
7404 2000-11-28 Andy Piper <andy@xemacs.org>
7406 * redisplay-output.c (redisplay_output_subwindow): make sure we do
7407 clipped display for windows in the gutter also.
7408 (redisplay_display_boxes_in_window_p): change semantics of return
7409 codes to be more intuitive.
7411 * gutter.h: declare display_boxes_in_gutter_p.
7413 * gutter.c (display_boxes_in_gutter_p): new function for
7416 2000-11-22 Andy Piper <andy@xemacs.org>
7418 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7421 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
7423 * callproc.c (Fold_call_process_internal):
7424 * gpm.c (Freceive_gpm_event):
7425 (tty_get_foreign_selection): Might be just warning supression.
7426 * fileio.c (Fwrite_region_internal):
7427 (Fset_visited_file_modtime):
7428 * keymap.c (event_matches_key_specifier_p):
7429 Initialize GCPROed variable.
7431 * menubar-x.c (command_builder_find_menu_accelerator):
7432 Initialize before use.
7434 2000-11-23 Andy Piper <andy@xemacs.org>
7436 * unexcw.c (unexec): make the resulting executable executable.
7438 2000-11-21 Martin Buchholz <martin@xemacs.org>
7440 * doc.c (get_doc_string):
7441 Use size_t, not int, for result of XSTRING_LENGTH.
7443 * cmds.c (Fdelete_char):
7444 * cmds.c (Fpoint_at_eol):
7445 * cmds.c (Fself_insert_command):
7446 Use EMACS_INT, not int, for result of XINT.
7447 Someday, someone will want to insert more than 2**31 identical characters.
7449 * cmds.c (Fdelete_char):
7450 * cmds.c (Fdelete_backward_char):
7451 * syntax.c (Fforward_word):
7452 * syntax.c (Fforward_comment):
7453 Make COUNT argument optional, for consistency with forward-char et al.
7455 2000-11-22 Martin Buchholz <martin@xemacs.org>
7458 * print.c (long_to_string):
7459 Return a useful value: the pointer at end of data written.
7462 Use `static const char * const' for constant strings.
7463 (union printf_arg): Delete `i', `ui' members.
7466 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7467 Do all printf-ing via the `l' specifier.
7468 Use EMACS_INT instead of int.
7471 2000-11-20 Didier Verna <didier@xemacs.org>
7473 * faces.c (update_face_cachel_data): don't frob the background
7474 pixmap when the window is being created. The face is needed but
7477 2000-11-20 Andy Piper <andy@xemacs.org>
7479 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7480 messing with a debug environment.
7482 2000-11-20 Martin Buchholz <martin@xemacs.org>
7484 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7486 2000-11-20 Martin Buchholz <martin@xemacs.org>
7488 * casetab.c (Fcase_table_p): Fix compile error and crash.
7490 2000-11-18 Philip Aston <philipa@mail.com>
7492 * s/cygwin32.h: Cygwin has SVR4-like pty support.
7494 2000-11-18 Martin Buchholz <martin@xemacs.org>
7496 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
7497 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7499 2000-11-17 Martin Buchholz <martin@xemacs.org>
7501 * config.h.in: Define HAVE_ELF_H if elf.h exists.
7502 * unexelf.c: Use HAVE_ELF_H.
7503 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7504 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7505 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7506 Greg Harrington <greg_harrington@hotmail.com> provided a machine
7508 So this is an unexelfsgi.c from a different line of development.
7510 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
7512 * regex.c (RE_TR_ASCII): New function.
7513 (RE_TRANSLATE): Call it.
7515 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
7517 * buffer.h (TRT_TABLE_OF): Remove assert.
7518 (IN_TRT_TABLE_DOMAIN): Removed.
7520 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
7522 * free-hook.c (log_gcpro):
7523 (show_gcprohist): Add support for GCPRO5.
7525 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
7527 * emacs.c (main_1): Improve -sd error message when --pdump=no.
7529 2000-11-16 Olivier Galibert <galibert@xemacs.org>
7531 * symeval.h: Declare flush_all_buffer_local_cache.
7533 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7534 (flush_buffer_local_cache): Added.
7535 (flush_all_buffer_local_cache): Added.
7537 * lrecord.h: Remove unused XD_LO_RESET_NIL.
7539 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7540 (pdump_dump_data): Ditto.
7541 (pdump_reloc_one): Ditto.
7542 (pdump): Remove unused pdump_qnil. Flush buffer local caches
7546 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
7548 * buffer.c: Remove if 0'ed entry.
7549 * buffer.h: Rewrite TRT to use char-table.
7550 * bufslots.h: Remove mirror tables.
7551 * casetab.c: Remove mirror tables.
7552 (CASE_TABLE_P): New macro.
7553 (Fcase_table_p): Element of a case table is string or char-table.
7554 (make_mirror_trt_table): Removed.
7555 (set_case_table): Setup char-table from strings for backward
7557 * dired.c (Fdirectory_files):
7558 * dired-msw.c: (mswindows_get_files):
7559 * lisp.h: Change prototype of re_pattern_buffer.
7560 * regex.c: (RE_TRANSLATE): New macro.
7561 (TRANSLATE_P): Ditto.
7562 Change translate to type RE_TRANSLATE_TYPE.
7563 * regex.h: Define RE_TRANSLATE_TYPE
7564 * search.c (TRANSLATE): New macro.
7565 (TRANSLATE_ASCII): New macro.
7566 Translate table is changed to Lisp_Object.
7567 (signal_failure): Inhibit return.
7569 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
7576 Do UNGCPRO before return.
7578 2000-11-14 Martin Buchholz <martin@xemacs.org>
7580 * XEmacs 21.2.37 is released.
7582 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
7584 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7585 Add comments about discarded return value.
7587 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
7590 * event-stream.c: Fix comments. Remove some #if 0'ed part.
7592 2000-10-27 Andy Piper <andy@xemacs.org>
7594 * gutter.c (Fset_default_gutter_position): default left and right
7596 (calculate_gutter_size): calculate resonable heuristic for left
7597 and right gutter sizes.
7598 (specifier_vars_of_gutter): change left and right gutter sizes to
7600 (calculate_gutter_size_from_display_lines): new function.
7601 (output_gutter): check for resizing on left and right gutters.
7602 (clear_gutter): don't special case top and left gutters.
7603 (specifier_vars_of_gutter): use new signature for
7604 set_specifier_caching.
7606 * glyphs-x.c (x_redisplay_widget): spelling fix.
7607 * glyphs.c (specifier_vars_of_glyphs):
7608 * menubar.c (specifier_vars_of_menubar):
7609 * redisplay.c (specifier_vars_of_redisplay):
7610 * toolbar.c (specifier_vars_of_toolbar):
7611 * window.c (specifier_vars_of_window):
7612 * scrollbar.c (specifier_vars_of_scrollbar):
7613 (complex_vars_of_scrollbar): use new signature for
7614 set_specifier_caching.
7616 * specifier.c (set_specifier_caching): include recompute flag.
7617 (recompute_one_cached_specifier_in_window): always recompute if
7619 (recompute_one_cached_specifier_in_frame): ditto.
7621 * specifier.h (struct specifier_caching): add recompute flag.
7623 2000-10-24 Andy Piper <andy@xemacs.org>
7625 * unexcw.c (copy_executable_and_dump_data_section): add new
7626 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7629 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7631 * console-x.h (x_device): New member modifier_release_time.
7632 * event-Xt.c (x_handle_sticky_modifiers):
7633 Bound interval modifier keys are sticky.
7634 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7635 * events.h: extern it.
7637 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7639 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7641 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7643 * event-stream.c (execute_command_event): Preserve current_events
7644 and the like when event is misc-user-event.
7645 Inhibit quit during the call to maybe_echo_keys.
7647 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
7649 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7650 symlink when buffer is killed.
7651 (inhibit_clash_detection): New variable.
7653 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
7655 * console.c (Fset_input_method): Trigger redisplay on tty.
7657 2000-11-07 Martin Buchholz <martin@xemacs.org>
7659 * process.c (Fprocess_status): Revert to previous behavior:
7660 (process-status "nosuchprocess") ==> nil
7662 2000-11-06 Martin Buchholz <martin@xemacs.org>
7664 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7665 Work around another GCC 2.95.2 optimizer bug.
7667 2000-11-02 Martin Buchholz <martin@xemacs.org>
7669 * process.c (Fget_process): Use LIST_LOOP_2.
7670 (kill_buffer_processes): Use LIST_LOOP_2.
7672 * minibuf.c (Fall_completions):
7673 Delete old non-functional code for FSF fourth argument.
7675 * frame.c (frame_matches_frame_spec):
7676 Renamed from `frame_matches_frametype'. Update all callers.
7677 (device_matches_device_spec):
7678 Renamed from 'device_matches_console_spec'. Update all callers.
7680 * doc.c (Fsubstitute_command_keys):
7681 Remove buffer overflow crash. Small code cleanups.
7683 * casetab.c (check_case_table): Simpler code.
7685 * window.c (Freplace_buffer_in_windows):
7686 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7687 (and similar implementation) as Fdelete_windows_on.
7690 * alloc.c (Fmake_list):
7691 * alloc.c (make_vector):
7692 * alloc.c (Fmake_vector):
7693 * alloc.c (make_bit_vector):
7694 * alloc.c (Fmake_bit_vector):
7695 * alloc.c (Fbit_vector):
7696 * alloc.c (Fmake_string):
7697 * alloc.c (Fpurecopy):
7698 * alloc.c (Fmemory_limit):
7700 * buffer.c (Fget_buffer):
7701 * buffer.c (Fkill_buffer):
7702 * buffer.c (complex_vars_of_buffer):
7703 * bytecode.c (Fcompiled_function_stack_depth):
7704 * callint.c (Fprefix_numeric_value):
7706 * event-stream.c (Fread_key_sequence):
7708 * casetab.c (Fcase_table_p):
7709 * casetab.c (check_case_table):
7710 * casetab.c (Fset_case_table):
7711 * casetab.c (Fset_standard_case_table):
7713 * chartab.c (Fchar_table_type):
7714 * chartab.c (Freset_char_table):
7715 * chartab.c (Fget_char_table):
7716 * chartab.c (Fget_range_char_table):
7717 * chartab.c (Fput_char_table):
7718 * chartab.c (Fmap_char_table):
7719 * chartab.c (Fcategory_table_p):
7720 * chartab.c (Fcheck_category_at):
7721 * chartab.c (Fchar_in_category_p):
7722 * chartab.c (Fcategory_table):
7723 * chartab.c (Fcopy_category_table):
7724 * chartab.c (Fset_category_table):
7725 * chartab.c (Fcategory_designator_p):
7726 * chartab.c (Fcategory_table_value_p):
7727 * cmds.c (Fdelete_char):
7728 * cmds.c (Fdelete_backward_char):
7729 * cmds.c (Fself_insert_command):
7730 * cmds.c (Fself_insert_internal):
7731 * console.c (Fvalid_console_type_p):
7732 * console.c (Fcdfw_console):
7733 * console.c (Fconsole_type):
7734 * console.c (Fconsole_name):
7735 * console.c (Fconsole_device_list):
7736 * console.c (Fconsole_on_window_system_p):
7740 * data.c (Fsubr_interactive):
7741 * data.c (Fchar_to_int):
7742 * data.c (Fint_to_char):
7745 * data.c (Fnumber_to_string):
7746 * data.c (Fstring_to_number):
7748 * database.c (mark_database):
7749 * database.c (finalize_database):
7750 * database.c (Fdatabase_live_p):
7751 * database.c (Fdatabasep):
7752 * device-x.c (Fx_get_resource):
7753 * device.c (Fdfw_device):
7755 * dired.c (Ffile_name_completion):
7756 * dired.c (Ffile_name_all_completions):
7757 * dired.c (Fuser_name_completion):
7758 * dired.c (Fuser_name_completion_1):
7759 * dired.c (Fuser_name_all_completions):
7760 * doc.c (Fdocumentation):
7761 * doc.c (Fdocumentation_property):
7762 * doc.c (Fsubstitute_command_keys):
7764 * editfns.c (Fchar_to_string):
7765 * editfns.c (Fstring_to_char):
7766 * editfns.c (Ftemp_directory):
7767 * editfns.c (Finsert_char):
7768 * editfns.c (Fbuffer_substring_no_properties):
7769 * editfns.c (Fnarrow_to_region):
7770 * editfns.c (Fchar_equal):
7771 * editfns.c (Fchar_Equal):
7772 * editfns.c (Ftranspose_regions):
7773 * emacs.c (Fdump_emacs):
7775 * eval.c (Fcommand_execute):
7776 * eval.c (Fautoload):
7777 * eval.c (Fbacktrace):
7778 * eval.c (Fbacktrace_frame):
7780 * events.c (Fcopy_event):
7781 * events.c (Fcharacter_to_event):
7782 * events.c (Fevent_button):
7783 * events.c (Fevent_process):
7785 * extents.c (Fnext_extent_change):
7786 * extents.c (Fextent_property):
7788 * faces.c (Fmake_face):
7790 * file-coding.c (Fencode_shift_jis_char):
7791 * file-coding.c (Fencode_big5_char):
7792 * fileio.c (Ffile_name_directory):
7793 * fileio.c (Ffile_name_nondirectory):
7794 * fileio.c (Ffile_name_as_directory):
7795 * fileio.c (Fdirectory_file_name):
7796 * fileio.c (Ffile_truename):
7797 * fileio.c (Fsubstitute_in_file_name):
7798 * fileio.c (Ffile_modes):
7799 * fileio.c (Fset_file_modes):
7800 * fileio.c (Fset_default_file_modes):
7801 * fileio.c (Fverify_visited_file_modtime):
7802 * floatfns.c (Facos):
7803 * floatfns.c (Fasin):
7804 * floatfns.c (Fatan):
7805 * floatfns.c (Fcos):
7806 * floatfns.c (Fsin):
7807 * floatfns.c (Ftan):
7808 * floatfns.c (Fbessel_j0):
7809 * floatfns.c (Fbessel_j1):
7810 * floatfns.c (Fbessel_jn):
7811 * floatfns.c (Fbessel_y0):
7812 * floatfns.c (Fbessel_y1):
7813 * floatfns.c (Fbessel_yn):
7814 * floatfns.c (Ferf):
7815 * floatfns.c (Ferfc):
7816 * floatfns.c (Flog_gamma):
7817 * floatfns.c (Fexp):
7818 * floatfns.c (Fexpt):
7819 * floatfns.c (Flog):
7820 * floatfns.c (Flog10):
7821 * floatfns.c (Fsqrt):
7822 * floatfns.c (Fcube_root):
7823 * floatfns.c (Facosh):
7824 * floatfns.c (Fasinh):
7825 * floatfns.c (Fatanh):
7826 * floatfns.c (Fcosh):
7827 * floatfns.c (Fsinh):
7828 * floatfns.c (Ftanh):
7829 * floatfns.c (Fabs):
7830 * floatfns.c (Ffloat):
7831 * floatfns.c (Flogb):
7832 * floatfns.c (Fceiling):
7833 * floatfns.c (Ffloor):
7834 * floatfns.c (Fround):
7835 * floatfns.c (Ftruncate):
7836 * floatfns.c (Ffceiling):
7837 * floatfns.c (Fffloor):
7838 * floatfns.c (Ffround):
7839 * floatfns.c (Fftruncate):
7840 * fns.c (Fstring_equal):
7841 * fns.c (Fstring_lessp):
7846 * fns.c (Fsubstring):
7848 * fns.c (Fold_assoc):
7849 * fns.c (assoc_no_quit):
7851 * fns.c (Fold_assq):
7852 * fns.c (assq_no_quit):
7854 * fns.c (Fold_rassoc):
7856 * fns.c (Fold_rassq):
7857 * fns.c (rassq_no_quit):
7858 * fns.c (Fremassoc):
7859 * fns.c (remassoc_no_quit):
7861 * fns.c (remassq_no_quit):
7862 * fns.c (Fremrassoc):
7863 * fns.c (Fremrassq):
7864 * fns.c (remrassq_no_quit):
7866 * fns.c (Fplist_get):
7867 * fns.c (Fplist_put):
7868 * fns.c (Fplist_remprop):
7869 * fns.c (Fplist_member):
7870 * fns.c (Flax_plist_get):
7871 * fns.c (Flax_plist_put):
7872 * fns.c (Flax_plist_remprop):
7873 * fns.c (Flax_plist_member):
7875 * fns.c (Fold_equal):
7877 * fns.c (Fbase64_encode_region):
7878 * fns.c (Fbase64_encode_string):
7879 * fns.c (Fbase64_decode_region):
7881 * frame.c (frame_matches_frame_spec):
7882 * frame.c (device_matches_device_spec):
7883 * frame.c (next_frame):
7884 * frame.c (previous_frame):
7885 * frame.c (Fnext_frame):
7886 * frame.c (Fprevious_frame):
7887 * frame.c (Fframe_property):
7888 * frame.c (Fset_frame_height):
7889 * frame.c (Fset_frame_size):
7893 * glyphs.c (decode_error_behavior_flag):
7894 * glyphs.c (Fmake_image_instance):
7895 * indent.c (Findent_to):
7896 * intl.c (Fignore_defer_gettext):
7897 * keymap.c (Fkeymapp):
7898 * keymap.c (Flookup_key):
7900 * lread.c (Fload_internal):
7901 * lread.c (Feval_buffer):
7902 * lread.c (Feval_region):
7903 * macros.c (Fexecute_kbd_macro):
7904 * marker.c (set_marker_internal):
7905 * marker.c (Fset_marker):
7906 * marker.c (set_marker_restricted):
7907 * marker.c (Fcopy_marker):
7908 * marker.c (noseeum_copy_marker):
7910 * menubar.c (Fpopup_menu):
7912 * mule-charset.c (Fcharset_name):
7913 * mule-charset.c (Fchar_charset):
7914 * mule-charset.c (Fchar_octet):
7915 * mule-charset.c (Fsplit_char):
7916 * mule-wnnfns.c (Fwnn_open):
7917 * mule-wnnfns.c (Fwnn_dict_comment):
7918 * mule-wnnfns.c (Fwnn_quit_henkan):
7919 * mule-wnnfns.c (Fwnn_word_toroku):
7920 * mule-wnnfns.c (Fwnn_word_sakujo):
7921 * mule-wnnfns.c (Fwnn_word_use):
7922 * mule-wnnfns.c (Fwnn_hindo_set):
7924 * objects.c (Fmake_color_instance):
7925 * objects.c (Fmake_font_instance):
7926 * print.c (Fwrite_char):
7928 * process.c (mark_process):
7929 * process.c (print_process):
7930 * process.c (get_process_from_usid):
7931 * process.c (Fprocessp):
7932 * process.c (Fprocess_live_p):
7933 * process.c (Fget_process):
7934 * process.c (Fget_buffer_process):
7935 * process.c (get_process):
7936 * process.c (Fprocess_id):
7937 * process.c (Fprocess_name):
7938 * process.c (Fprocess_command):
7939 * process.c (init_process_io_handles):
7940 * process.c (start_process_unwind):
7941 * process.c (Fstart_process_internal):
7942 * process.c (Fopen_multicast_group_internal):
7943 * process.c (Fset_process_window_size):
7944 * process.c (read_process_output):
7945 * process.c (send_process):
7946 * process.c (Fprocess_tty_name):
7947 * process.c (Fset_process_buffer):
7948 * process.c (Fprocess_buffer):
7949 * process.c (Fprocess_mark):
7950 * process.c (set_process_filter):
7951 * process.c (Fset_process_filter):
7952 * process.c (Fprocess_filter):
7953 * process.c (Fprocess_send_region):
7954 * process.c (Fprocess_send_string):
7955 * process.c (exec_sentinel):
7956 * process.c (Fset_process_sentinel):
7957 * process.c (Fprocess_sentinel):
7958 * process.c (status_notify):
7959 * process.c (Fprocess_status):
7960 * process.c (Fprocess_exit_status):
7961 * process.c (process_send_signal):
7962 * process.c (Fprocess_send_eof):
7963 * process.c (deactivate_process):
7964 * process.c (remove_process):
7965 * process.c (Fdelete_process):
7966 * process.c (kill_buffer_processes):
7967 * process.c (Fprocess_kill_without_query):
7968 * process.c (Fprocess_kill_without_query_p):
7970 * rangetab.c (Fget_range_table):
7971 * rangetab.c (Fput_range_table):
7972 * rangetab.c (Fremove_range_table):
7973 * rangetab.c (Fclear_range_table):
7975 * search.c (Fskip_chars_forward):
7976 * search.c (Fskip_chars_backward):
7977 * search.c (Fskip_syntax_forward):
7978 * search.c (Fskip_syntax_backward):
7979 * search.c (search_command):
7980 * search.c (Freplace_match):
7981 * search.c (Fregexp_quote):
7982 * select.c (Fown_selection_internal):
7983 * select.c (Fselection_owner_p):
7984 * select.c (Fselection_exists_p):
7985 * select.c (Fget_selection_internal):
7988 * symbols.c (Fintern):
7989 * symbols.c (Fintern_soft):
7990 * symbols.c (Funintern):
7991 * symbols.c (Fapropos_internal):
7992 * symbols.c (Fset_default):
7994 * syntax.c (Fsyntax_table_p):
7995 * syntax.c (Fcopy_syntax_table):
7996 * syntax.c (Fset_syntax_table):
7997 * syntax.c (Fchar_syntax):
7998 * syntax.c (syntax_match):
7999 * syntax.c (Fmatching_paren):
8000 * syntax.c (Fforward_word):
8001 * syntax.c (scan_lists):
8002 * syntax.c (Fscan_lists):
8003 * syntax.c (Fscan_sexps):
8004 * syntax.c (Fparse_partial_sexp):
8005 * toolbar.c (Fcheck_toolbar_button_syntax):
8008 * window.c (Fwindowp):
8009 * window.c (Fwindow_live_p):
8010 * window.c (Fwindow_point):
8011 * window.c (Fdelete_window):
8012 * window.c (Fnext_window):
8013 * window.c (Fprevious_window):
8014 * window.c (Fother_window):
8015 * window.c (window_loop):
8016 * window.c (Fget_lru_window):
8017 * window.c (Fsplit_window):
8018 * window.c (Fenlarge_window):
8019 * window.c (Fenlarge_window_pixels):
8020 * window.c (Fshrink_window):
8021 * window.c (Fshrink_window_pixels):
8022 * window.c (change_window_height):
8023 * window.c (Fwindow_configuration_p):
8024 * window.c (Fcurrent_window_configuration):
8026 * casefiddle.c (casify_object):
8027 * casefiddle.c (Fupcase):
8028 * casefiddle.c (Fdowncase):
8029 * casefiddle.c (Fcapitalize):
8030 * casefiddle.c (Fupcase_initials):
8031 * casefiddle.c (casify_region_internal):
8032 * casefiddle.c (casify_region):
8033 * casefiddle.c (Fupcase_region):
8034 * casefiddle.c (Fdowncase_region):
8035 * casefiddle.c (Fcapitalize_region):
8036 * casefiddle.c (Fupcase_initials_region):
8037 * casefiddle.c (Fupcase_word):
8038 * casefiddle.c (Fdowncase_word):
8039 * casefiddle.c (Fcapitalize_word):
8040 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
8041 Replace 0 with '\0' when working with bytes.
8042 Replace initial "(" with "\(" in docstrings.
8044 2000-11-01 Martin Buchholz <martin@xemacs.org>
8046 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8048 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8050 2000-10-31 Martin Buchholz <martin@xemacs.org>
8052 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
8054 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
8056 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8059 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
8061 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8062 (inhibit_auto_save_session): New variable.
8063 (vars_of_fileio): Declare and initialize them.
8064 * fileio.c (Fdo_auto_save): Don't create session file if
8065 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8067 2000-10-31 Martin Buchholz <martin@xemacs.org>
8069 * sgiplay.c (play_internal): C++ compilability.
8070 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8071 * callproc.c (Fold_call_process_internal):
8072 Remove unused vars `env', `first'.
8073 * scrollbar.c (update_scrollbar_instance):
8074 #### unused var `current_window'.
8075 * redisplay-tty.c: Put currently unused vars insert_mode_on,
8076 etc. within #ifdef NOT_YET.
8077 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8078 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8079 * specifier.c (specifier_instance):
8080 #### unused var `tag'.
8081 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8083 2000-10-27 Martin Buchholz <martin@xemacs.org>
8086 * fns.c (list_sort):
8087 * fns.c (Ffillarray):
8088 * fns.c (bytecode_nconc2):
8091 * fns.c (Fmapconcat):
8092 Be pedantically 64-bit correct. For the time when someone will
8093 want to have a list with length > 2**32.
8095 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8096 Work around MIPSpro compiler bug.
8098 * process-unix.c (unix_kill_child_process): Add snarky comment.
8099 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
8101 * config.h.in: Oops, _getpt ==> _getpty
8103 2000-10-26 Martin Buchholz <martin@xemacs.org>
8107 Use void*, not char*, as return type of alloca().
8109 * alloc.c (free_marker): Side effect inside assert expression!
8111 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
8113 * mule-charset.c (Fset_charset_ccl_program): To check
8114 if the given ccl program is valid, use setup_ccl_program()
8115 instead of CHECK_VECTOR().
8116 (Fmake_charset): Likewise.
8118 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
8120 * faces.c (get_extent_fragment_face_cache_index):
8121 Fix cachel.merged_faces memory leak.
8123 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
8125 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8126 Reset MSB of octets obtained by DECODE_SJIS
8127 because of the incompatibility with Emacs.
8128 (ccl_driver)<CCL_ENCODE_SJIS>:
8129 Set MSB of octets before passing them to
8130 ENCODE_SJIS because of the incompatibility
8133 2000-10-18 Daiki Ueno <ueno@unixuser.org>
8135 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8136 (DECLARE_LRECORD): Undo the last change.
8137 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8139 2000-10-17 Daiki Ueno <ueno@unixuser.org>
8141 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8142 the implementation to lrecord_implementations_table.
8144 2000-10-14 Daiki Ueno <ueno@unixuser.org>
8146 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8147 initial value of `lrecord_type_##c_name' and
8148 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8149 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8150 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8151 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8152 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8154 2000-10-17 Martin Buchholz <martin@xemacs.org>
8156 * miscplay.c (sndcnv8S_2mono):
8157 (sndcnv2monounsigned):
8158 (sndcnvULaw_2linear):
8160 Remove implementation-defined behavior.
8162 2000-10-12 Martin Buchholz <martin@xemacs.org>
8164 * input-method-xlib.c: Warning suppression.
8166 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
8168 * mule-ccl.c: Sync up with Emacs 21.0.90.
8169 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8171 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8173 (ccl_driver[WriteMultibyteChar2]): Bug fix.
8174 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8175 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8176 leading char belongs to official 2-dimensional charset.
8177 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8178 write the given character as is. Otherwise,
8179 if it is a multibyte char, convert it by
8180 non_ascii_set_charptr_emchar, then write it.
8181 (CCL_WRITE_STRING): Likewise.
8182 (ccl_get_compiled_code): New function.
8183 (setup_ccl_program): When ccl_prog is invalid,
8185 (Fregister_code_conversion_map): New function.
8186 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8188 * mule-ccl.h: Sync up with Emacs 21.0.90.
8189 (Fregister_ccl_program): export it.
8191 * redisplay-msw.c (separate_textual_runs):
8192 If ccl program is not valid, don't do ccl conversion.
8194 * redisplay-x.c (separate_textual_runs): Ditto.
8196 * file-coding.c (Fmake_coding_system):
8197 When type is ccl and value is vector, register it
8198 with a proper symbol. And checks whether the
8199 given ccl program is valid.
8200 (mule_decode): When calling ccl_driver, if src indicates
8201 NULL pointer, set an empty string instead.
8202 (mule_encode): Likewise.
8204 2000-10-11 Martin Buchholz <martin@xemacs.org>
8206 The following large batch of changes gets us back to a state of
8207 C++ compilability. Extbyte is now a char, which means that
8208 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8210 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8212 * sound.c (Fplay_sound): Type correctness.
8214 * select-x.c (hack_motif_clipboard_selection): Type correctness.
8215 (x_get_window_property): Type correctness.
8216 (receive_incremental_selection): unsigned char ==> Extbyte
8217 (selection_data_to_lisp_data): unsigned char ==> Extbyte
8218 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8219 (Fx_store_cutbuffer_internal): Type correctness.
8221 * process-unix.c (try_to_initialize_subtty): Type correctness.
8223 * objects-x.c (x_print_color_instance): Type correctness.
8224 (x_print_font_instance): Type correctness.
8225 (x_list_fonts): SExtbyte ==> Extbyte.
8226 (valid_x_font_name_p): SExtbyte ==> Extbyte.
8227 (x_find_charset_font): SExtbyte ==> Extbyte.
8228 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
8229 (truename_via_XListFonts): SExtbyte ==> Extbyte.
8230 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8233 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8234 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8235 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8236 (BYTE_C0_P): Use bit ops for char-signedness safety.
8237 (BYTE_C1_P): Use bit ops for char-signedness safety.
8238 (CHARSET_BY_LEADING_BYTE):
8239 (CHARSET_BY_ATTRIBUTES):
8240 Always use inline function.
8241 Use type_checking_assert.
8244 * mule-charset.c (non_ascii_charptr_copy_char):
8245 Modify to work with both ASCII and non-ASCII characters.
8246 Improve docs and variable names.
8247 Replace over-clever fall-through switch with a simple loop.
8248 (Lstream_get_emchar_1):
8249 Replace over-clever fall-through switch with a simple loop.
8251 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8252 Warning suppression.
8254 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8255 the return value of Lstream_getc, which could be EOF as well.
8257 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8259 * lisp.h: Make Extbyte a char, not unsigned char, so that external
8260 APIs can be used on Extbytes without casts. Risky!
8264 * input-method-xlib.c (XIM_init_device):
8265 Use Xlib.h instead of IntrinsicP.h.
8266 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8267 which will break in X11R7.
8268 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8269 to call XRegisterIMInstantiateCallback with correct types.
8271 * gui-x.c (button_item_to_widget_value): Type correctness.
8273 * glyphs.c (bitmap_to_lisp_data): Type correctness.
8275 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8276 (xbm_instantiate_1): Type correctness.
8277 (BUILD_GLYPH_INST): Type correctness.
8279 * fileio.c (Fsubstitute_in_file_name): Type correctness.
8282 (decode_coding_sjis):
8283 (decode_coding_big5):
8284 (decode_coding_ucs4):
8285 (decode_coding_utf8):
8286 (decode_coding_iso2022):
8287 (decode_coding_no_conversion):
8288 Make all decoding functions take an Extbyte * arg.
8289 (encode_coding_sjis):
8290 (encode_coding_big5):
8291 (encode_coding_ucs4):
8292 (encode_coding_utf8):
8293 (encode_coding_iso2022):
8294 (encode_coding_no_conversion):
8295 Make all encoding functions take a Bufbyte * arg.
8296 Use size_t instead of unsigned int for memory sizes.
8297 Only cast to unsigned char whenever dereferencing Extbyte *.
8299 * doc.c (unparesseuxify_doc_string): Type correctness.
8301 * console-x.c (split_up_display_spec):
8302 Rewrite without using details of internal string representation.
8303 (x_semi_canonicalize_device_connection): Type correctness.
8306 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8307 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8308 (HAVE_XFREE386): Removed.
8310 * buffer.h (DEC_CHARPTR): `const' correctness.
8311 (bufbyte_strcmp): New.
8312 (bufbyte_memcmp): New.
8314 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8316 * buffer.h (XCHAR_OR_CHAR_INT):
8317 Always use inline function.
8318 Remove redundant type checking assert() - XINT will abort quite nicely.
8320 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
8322 * search.c (Freplace_match): Set newtext to an empty string.
8324 2000-10-10 Martin Buchholz <martin@xemacs.org>
8326 * s/decosf1-3.h: Remove #include of stropts.h
8327 * s/ptx.h: Remove #include of stropts.h
8328 * s/usg5-4.h: Remove #include of stropts.h
8331 Use stropts.h, not sys/stropts.h.
8332 Use strtio.h, not sys/strtio.h.
8334 2000-10-04 Martin Buchholz <martin@xemacs.org>
8336 * XEmacs 21.2.36 is released.
8338 2000-09-21 Andy Piper <andy@xemacs.org>
8340 * glyphs-x.c (x_redisplay_widget): make sure non-structural
8341 changes still involve copying the widget tree.
8342 (update_widget_face): make sure a change is register in the widget
8343 tree. Call update_tab_widget_face appropriately.
8344 (update_tab_widget_face): ditto.
8345 (x_tab_control_redisplay): make sure non-structural changes still
8346 involve copying the widget tree.
8348 2000-08-31 Daiki Ueno <ueno@unixuser.org>
8350 * lread.c (locate_file): Check the path element is non-nil.
8352 2000-10-02 Martin Buchholz <martin@xemacs.org>
8354 * lisp.h: Warning suppression for SCO compilers.
8356 * redisplay-tty.c (reset_tty_modes): Fix crash.
8357 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8359 2000-09-27 Martin Buchholz <martin@xemacs.org>
8361 Big signal/process handling overhaul. Bugs fixed:
8362 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8363 M-x comint-kill-subjob should work for both values nil and t of
8364 process-connection-type. It was broken on most platforms.
8365 Testing on Irix and Cygwin still needed. Other plaforms tested.
8366 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
8367 * process-unix.c: Signal/Process handling overhaul.
8368 (pty_name): make 64 bytes, as `expect' does, for paranoia.
8369 (allocate_pty): Use all available modern methods of allocating
8370 ptys, falling back to old style BSD allocation as a last resort.
8371 Use allegedly more secure Unix98 pty allocation by default.
8372 (allocate_pty_the_old_fashioned_way): New. the last resort.
8373 (unix_create_process): Push ptem, ldterm, ttcompat where
8374 available. Autoconfiscate.
8375 (try_to_initialize_subtty): New.
8376 (unix_kill_child_process): Proper signal handling for ptys on most
8377 platforms, using special knowledge of AIX, BSD, etc...
8378 (unix_create_process): Always disconnect_controlling_terminal() for
8379 subprocesses, whether using ptys or not.
8380 * process.h: Remove old getpt-dependent PTY code.
8381 * process.c (Fprocess_send_signal): New, obvious generic function.
8382 (decode_signal): New.
8383 (Finterrupt_process):
8387 (Fcontinue_process):
8388 (Fsignal_process): Use decode_signal.
8389 (process_send_signal):
8390 Many docstring corrections.
8391 Allow any signal to be sent to a process object.
8392 * config.h.in: Add symbols for big signal/process overhaul.
8393 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8394 * sysproc.h: Include process-related headers, where available:
8395 sys/stropts.h sys/strtio.h pty.h libutil.h
8403 Remove old S&M pty stuff.
8404 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8405 * systty.h: Simplify cpp hackery, improve comments.
8406 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8408 * editfns.c (Fformat_time_string):
8409 Be a little more paranoid with the return value of ctime.
8411 * fileio.c (check_executable):
8413 Use symbolic constants X_OK, W_OK.
8415 * console-x.c (split_up_display_spec): Fix a warning.
8417 2000-10-02 Martin Buchholz <martin@xemacs.org>
8419 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8420 * ntproc.c (sys_spawnve): make_string ==> build_string
8421 Small clarity improvements.
8423 2000-09-30 Martin Buchholz <martin@xemacs.org>
8425 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8427 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8429 * config.h.in (HAVE_STRCASECMP): Remove.
8431 2000-09-29 Martin Buchholz <martin@xemacs.org>
8433 * redisplay-output.c (redisplay_output_pixmap):
8434 Cleaner and possibly more 64-bit correct code.
8436 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
8438 * dumper.c (pdump_load_finish): move restoration of
8439 `noninteractive1' to emacs.c (main_1).
8440 * emacs.c (main_1): protect LISP-visible command-line flags
8443 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
8445 * Makefile.in.in (versionclean): Use EXE_TARGET and
8446 DUMP_TARGET instead of literal program names.
8448 2000-09-20 Martin Buchholz <martin@xemacs.org>
8450 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8452 2000-09-19 Martin Buchholz <martin@xemacs.org>
8454 * *: Spelling mega-patch
8456 2000-09-19 Martin Buchholz <martin@xemacs.org>
8458 * fns.c (bad_bad_turtle):
8459 Delete "Eek!" comment, since we fixed the bug to which it refers.
8461 2000-09-16 Martin Buchholz <martin@xemacs.org>
8463 * alloca.c: Replace REGISTER with register.
8465 2000-09-16 Daiki Ueno <ueno@unixuser.org>
8467 * file-coding.c (ucs_to_char): Use countof.
8469 2000-09-16 Martin Buchholz <martin@xemacs.org>
8471 * file-coding.c: (ucs_to_char):
8472 (complex_vars_of_file_coding):
8473 Use countof instead of sizeof.
8474 Use CHECK_NATNUM instead of CHECK_INT.
8476 * sysdep.c (strcasecmp): Remove.
8477 * device-x.c (ascii_strcasecmp): New.
8478 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8479 Avoid using non-standard non-portable strcasecmp.
8481 2000-09-16 Martin Buchholz <martin@xemacs.org>
8483 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8484 * font-lock.c: remove reference to emacsfns.h.
8485 * search.c: small doc improvement.
8486 * event-Xt.c: correct file names in comments.
8487 * console-x.h Correct file names in comments.
8488 * frame.c: Correct file names in comments.
8489 * event-stream.c: remove Energize from comments.
8491 2000-09-15 Martin Buchholz <martin@xemacs.org>
8493 * symeval.h (DEFERROR_STANDARD):
8496 (DEFSYMBOL_NO_DUMP):
8497 (DEFSYMBOL_MULTIWORD_PREDICATE):
8498 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8500 The construct &##name is not sensible C.
8501 Fixes compilation errors with Unixware native compiler.
8503 2000-09-14 Martin Buchholz <martin@xemacs.org>
8505 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8506 (next_frame_internal): Removed. We now just have next_frame.
8508 Write a simpler and cleaner one-pass algorithm.
8509 Remove called_from_delete_device arg and #ifdefed-out code.
8511 Renamed from prev_frame. Update callers.
8512 Cleaned up to have an analogous implementation to next_frame.
8513 (other_visible_frames_internal): Remove the
8514 called_from_delete_device bogus arg, and hence, remove this
8515 function. Just use other_visible_frames().
8517 * window.c (Fnext_window):
8519 Since next_frame() is guaranteed to return a frame, remove check
8520 for nil inserted in previous patch.
8523 Make code look more like Fnext_window.
8525 Respect the `console' arg when iterating through windows.
8526 Fixes bug: (get-buffer-window buffer t device) not respecting
8528 This function needs more work, as others have pointed out.
8530 * frame.h: Rename prev_frame to previous_frame.
8531 device_matches_console_spec no longer takes a `frame' arg.
8536 Use EMACS_BLOCK_SIGNAL instead of sigblock.
8537 From "Golubev I. N." <gin@mo.msk.ru>.
8539 * make-src-depend: Fix typo.
8541 2000-09-13 Martin Buchholz <martin@xemacs.org>
8543 * window.c (Fnext_window):
8544 next_frame() might return nil, not a frame.
8546 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8548 * frame.c (next_frame_internal):
8549 We've passed a frame if we've passed its device.
8551 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8552 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8554 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
8556 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8557 Allow option to suppress accelerators in menu/dialog items.
8558 (populate_or_checksum_helper): Pass dialog title through above.
8560 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
8562 * event-msw.c (mswindows_key_to_emacs_keysym):
8563 Add "pause" key, fix "menu" key.
8565 2000-09-09 Martin Buchholz <martin@xemacs.org>
8567 * eval.c (reinit_vars_of_eval):
8568 Increase max_lisp_eval_depth to 1000,
8569 required for thai-xtis.el to byte-compile under some circumstances.
8571 2000-09-04 Martin Buchholz <martin@xemacs.org>
8573 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8576 2000-09-01 Martin Buchholz <martin@xemacs.org>
8578 * make-src-depend: Make the generated Makefiles smaller.
8580 * s/hpux.h (SETUP_SLAVE_PTY):
8581 Provide a %d in the format string for the errno argument.
8583 * editfns.c (Ftemp_directory):
8585 Avoid buffer overrun on very long file name.
8587 * input-method-xlib.c (XIM_init_device):
8588 6th parameter of XRegisterIMInstantiateCallback has different
8589 pointer types on different OSes, so simply cast to (void *).
8591 * unexhp9k800.c: Warning fixes. Fiddly changes.
8593 * sysdll.c (dll_open):
8594 shl_load will hang hard if passed a NULL filename.
8595 Simply return NULL for compatibility with dlopen.
8596 * sysdll.c: Conform to XEmacs coding standards.
8598 * sysdep.c (get_pty_max_bytes):
8599 Support pty input lines longer than 512 bytes on HP-UX 10.20.
8601 2000-08-31 Martin Buchholz <martin@xemacs.org>
8603 * tooltalk.c: Add #include <syssignal.h>
8605 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
8607 * s/hpux.h: Don't use undefined function sigunblock().
8609 2000-08-31 Martin Buchholz <martin@xemacs.org>
8611 * config.h.in: Add HAVE_BALLOON_HELP.
8612 * emacs.c: Use HAVE_BALLOON_HELP.
8613 * Makefile.in.in (x_objs):
8614 Make Balloon Help conditional on finding shape.h.
8616 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
8618 * syntax.c (regex_emacs_buffer_p): New variable.
8619 * syntax.h (regex_emacs_buffer_p): extern.
8620 * search.c (looking_at_1):
8622 (fast_string_match):
8623 (search_buffer): Set regex_emacs_buffer_p.
8624 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8625 when before_dot, at_dot, after_dot.
8627 2000-08-23 Andy Piper <andy@xemacs.org>
8629 * gui-x.c (popup_selection_callback): Only set action_occurred
8630 when we really have an image instance.
8631 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8633 2000-08-23 Andy Piper <andy@xemacs.org>
8635 * gui-msw.c (mswindows_handle_gui_wm_command): set
8637 * gui-x.c (popup_selection_callback): ditto.
8639 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8640 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8641 (struct Lisp_Image_Instance): add action_occurred flag.
8643 * glyphs.c (redisplay_subwindow): use action_occurred flag.
8644 (image_instance_changed): ditto.
8645 (reset_frame_subwindow_instance_cache): only unmap windows - do
8646 not remove them from the cache also.
8648 * glyphs-widget.c (tab_control_update): better debug.
8649 (progress_gauge_update): ditto.
8650 (layout_update): ditto.
8651 (layout_instantiate): ditto.
8652 (tab_control_order_only_changed): cope with null pending items.
8654 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8655 debug. Force selection of an item when an action occurred. Cope
8656 with null pending_items.
8657 (mswindows_progress_gauge_redisplay): better debug.
8658 * glyphs-x.c (x_tab_control_redisplay): ditto.
8660 * redisplay.c (redisplay_frame): reset the frame cache if the
8663 * window.c (Fset_window_configuration): potentially re-enable
8665 (window_unmap_subwindows): need to finalize instances here since
8666 it is only used in mark_window_as_deleted.
8668 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
8670 * nas.c (SndOpenDataForReading):
8671 nas.c (WaveOpenDataForReading):
8672 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8673 Somehow escaped from the 2000-08-14 patch.
8675 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
8677 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8678 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8680 2000-08-21 Andy Piper <andy@xemacs.org>
8682 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8683 window if it is not already displayed.
8685 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8686 it is not already displayed.
8688 * window.c (Fset_window_configuration): don't reset the frame
8691 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8692 instances from the frame cache if we are actually finalizing them.
8693 (reset_frame_subwindow_instance_cache): reset frame cache only
8694 after unmapping everything.
8695 (map_subwindow): set displayed flag after mapping.
8697 2000-08-21 Martin Buchholz <martin@xemacs.org>
8699 * data.c (indirect_function):
8700 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8702 * eval.c (function_argcount):
8703 Use original function when signaling errors.
8705 2000-08-18 Andy Piper <andy@xemacs.org>
8707 * frame.c (delete_frame_internal): use new
8708 free_frame_subwindow_instances name.
8710 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8711 (add_tab_item): make return type correct.
8712 (mswindows_tab_control_instantiate): assert index of tab.
8713 (mswindows_tab_control_redisplay): Re-code to use
8714 gui_item_equal_sans_selected and gui_item_list_find_selected.
8716 * glyphs-widget.c (tab_control_update): Correct comment.
8718 * window.c (window_unmap_subwindows): use new
8719 unmap_subwindow_instance_cache_mapper.
8720 (window_unmap_subwindows_cache_mapper): deleted.
8721 (Fset_window_configuration): comparisons should now be with
8722 EQ. Preserve the subwindow instance cache across configuration
8724 (allocate_window): ditto.
8725 (make_dummy_parent): ditto.
8727 * glyphs.c (free_frame_subwindow_instances): rename from
8728 free_frame_subwindow_instance_cache. finalize all instances rather
8729 than just those in the display cache.
8730 (finalize_all_subwindow_instances): walk windows unmapping and
8731 finalizing subwindows.
8732 (unmap_subwindow_instance_cache_mapper): moved from
8733 window.c. Allow finalization as well as unmapping.
8735 * gui.c (gui_item_list_find_selected): new function.
8737 * gui.h (gui_item_list_find_selected): declare.
8739 * glyphs-x.c (x_tab_control_redisplay): pick tab
8740 explicitly. Re-code to use gui_item_equal_sans_selected and
8741 gui_item_list_find_selected.
8743 * glyphs-x.h: add lwlib-utils.h
8745 * buffer.c (Frecord_buffer): undo previous change.
8747 2000-08-09 Vin Shelton <acs@xemacs.org>
8749 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8750 possible. Create temporary files more securely. The patch was
8751 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8752 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
8753 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8756 2000-08-07 Ben Wing <ben@xemacs.org>
8758 * getloadavg.c: remove duplicate (and windows-breaking)
8759 includes of fcntl.h and sys/file.h.
8761 * nt.c: remove duplicate getloadavg() definition.
8763 * sysdll.h (Qdll_filename_encoding): add missing stand-in
8766 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
8768 * eval.c (function_argcount): If function needs to be autoloaded
8769 actually use the loaded definition.
8772 2000-08-05 Ben Wing <ben@xemacs.org>
8774 * getloadavg.c: add prototype for getloadavg(). remove
8775 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8776 of the code). remove duplicate header includes.
8778 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8780 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8781 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8782 useful load average.
8784 * alloc.c (reinit_alloc_once_early): removed references to
8785 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8786 the lisp vars are the only things referencing the malloc_sbrk_*
8787 vars, and they were already if 0'd out. these vars only exist
8788 in the older malloc.c, which is basically unused, and they're
8789 only for informational purposes.
8791 * m\*.h: removed useless VIRT_ADDR_VARIES.
8793 * m\powerpc.h: removed stray NO_ARG_ARRAY.
8795 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
8797 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8798 color if the image is a mono pixmap.
8800 2000-07-30 Ben Wing <ben@xemacs.org>
8802 * Makefile.in.in (release):
8805 * buffer.c (directory_is_current_directory):
8806 * dired-msw.c (mswindows_get_files):
8808 * dired.c (Fdirectory_files):
8809 * dired.c (file_name_completion_stat):
8810 * dired.c (Ffile_attributes):
8811 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8812 preprocessor tricks, to avoid problems on some machines
8815 * callproc.c (egetenv): GC docs.
8818 * console-msw.h (struct mswindows_dialog_id):
8819 * lrecord.h (lrecord_type):
8820 New object for use with MSW dialogs.
8822 * console.h (struct console_methods):
8823 New enable/disable frame methods, for proper modal dialogs.
8825 * device-msw.c (msprinter_default_printer): Fix to follow
8826 proper Mule conventions.
8829 * device-msw.c (signal_open_printer_error):
8830 * device-msw.c (msprinter_init_device):
8831 * device-msw.c (ensure_not_printing):
8832 * device-msw.c (plist_get_margin):
8833 * device-msw.c (Fmsprinter_select_settings):
8834 * device-msw.c (finalize_devmode):
8835 * device-msw.c (Fmsprinter_settings_despecialize):
8836 * device-msw.c (signal_enum_priner_error):
8837 * extents.c (decode_extent):
8838 * extents.c (decode_map_extents_flags):
8839 * extents.c (decode_extent_at_flag):
8840 * extents.c (Fextent_at):
8841 * extents.c (Fextents_at):
8842 * extents.c (symbol_to_glyph_layout):
8843 [[[[2]]]] Use structured errors.
8846 * dialog-msw.c (mswindows_is_dialog_msg):
8847 * dialog-msw.c (mark_mswindows_dialog_id):
8848 * dialog-msw.c (dialog_proc):
8849 * dialog-msw.c (handle_question_dialog_box):
8850 * dialog-msw.c (syms_of_dialog_mswindows):
8851 Define new object to clean up marking; use it as a dialog identifier.
8852 Call new delete-dialog-box-hook.
8854 * dialog-x.c (dbox_selection_callback):
8855 * dialog-x.c (dbox_descriptor_to_widget_value):
8856 * dialog-x.c (x_make_dialog_box_internal):
8857 Call new delete-dialog-box-hook.
8861 * dialog.c (syms_of_dialog):
8862 * dialog.c (vars_of_dialog):
8863 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
8866 * eval.c (signal_call_debugger):
8867 when noninteractive, output stack traces on the console instead
8868 of in a (never-seen) buffer.
8870 * eval.c (signal_type_error):
8871 * eval.c (invalid_argument_2):
8873 new funs for use w/structured errors.
8876 * event-Xt.c (x_to_emacs_keysym):
8877 * event-Xt.c (describe_event):
8878 * event-Xt.c (emacs_Xt_event_handler):
8879 * event-Xt.c (vars_of_event_Xt):
8881 * event-msw.c (mswindows_wnd_proc):
8882 * event-msw.c (vars_of_event_mswindows):
8883 rename {x,mswindows}-debug-events to debug-{}-events for
8884 consistency with other debug-foo variables.
8887 document next-event more clearly.
8889 * fileio.c (Ffile_name_directory):
8890 * fileio.c (Ffile_name_nondirectory):
8891 * fileio.c (Funhandled_file_name_directory):
8892 * fileio.c (file_name_as_directory):
8893 * fileio.c (Ffile_name_as_directory):
8894 * fileio.c (directory_file_name):
8895 * fileio.c (Fdirectory_file_name):
8896 * fileio.c (Fmake_temp_name):
8897 * fileio.c (Ffile_truename):
8898 * fileio.c (Fsubstitute_in_file_name):
8899 * fileio.c (expand_and_dir_to_file):
8900 * fileio.c (barf_or_query_if_file_exists):
8901 * fileio.c (check_executable):
8902 * fileio.c (Ffile_exists_p):
8903 * fileio.c (Ffile_writable_p):
8904 * fileio.c (Ffile_directory_p):
8905 * fileio.c (Ffile_regular_p):
8906 * fileio.c (Ffile_modes):
8907 * fileio.c (Ffile_newer_than_file_p):
8908 * fileio.c (Fverify_visited_file_modtime):
8909 * fileio.c (Fset_visited_file_modtime):
8910 * fileio.c (auto_save_1):
8915 * frame-msw.c (mswindows_init_frame_1):
8916 * frame-msw.c (mswindows_enable_frame):
8917 * frame-msw.c (error_frame_unsizable):
8918 * frame-msw.c (msprinter_init_frame_1):
8919 * frame-msw.c (msprinter_init_frame_3):
8920 * frame-msw.c (console_type_create_frame_mswindows):
8922 implement new enable/disable frame methods.
8925 * frame-x.c (x_enable_frame):
8926 * frame-x.c (console_type_create_frame_x):
8927 implement new enable/disable frame methods.
8930 * frame.c (Fdisable_frame):
8931 * frame.c (syms_of_frame):
8932 * frame.h (struct frame):
8933 implement new enable/disable frame methods/functions.
8938 * glyphs-msw.c (mswindows_widget_instantiate):
8939 comment that initial-focus should be implemented.
8942 * glyphs-widget.c (check_valid_instantiator):
8943 * glyphs-widget.c (check_valid_orientation):
8944 * glyphs-widget.c (check_valid_tab_orientation):
8945 * glyphs-widget.c (check_valid_justification):
8946 * glyphs-widget.c (check_valid_border):
8947 * glyphs-widget.c (check_valid_callback):
8948 * glyphs-widget.c (check_valid_int_or_function):
8949 * glyphs-widget.c (check_valid_string_or_vector):
8950 * glyphs-widget.c (check_valid_item_list_1):
8951 * glyphs-widget.c (widget_validate):
8952 * glyphs-widget.c (combo_box_validate):
8953 * glyphs-widget.c (widget_instantiate):
8954 * glyphs-widget.c (syms_of_glyphs_widget):
8955 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
8956 * glyphs-widget.c (image_instantiator_combo_box):
8957 * glyphs-widget.c (image_instantiator_scrollbar):
8958 * glyphs-widget.c (image_instantiator_tab_control):
8959 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
8961 support (unimplemented) keyword initial-focus.
8962 reindent long macros.
8964 * glyphs-x.c (x_redisplay_widget):
8965 * glyphs-x.c (x_button_instantiate):
8966 * glyphs-x.c (x_button_redisplay):
8967 * glyphs-x.c (x_progress_gauge_instantiate):
8968 * glyphs-x.c (x_edit_field_instantiate):
8969 * glyphs-x.c (x_combo_box_instantiate):
8970 * glyphs-x.c (x_tab_control_instantiate):
8971 * glyphs-x.c (x_label_instantiate):
8973 * gui-x.c (button_item_to_widget_value):
8974 * gui-x.c (gui_items_to_widget_values_1):
8975 * gui-x.c (gui_item_children_to_widget_values):
8976 * gui-x.c (gui_items_to_widget_values):
8978 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8979 add new flag to gui-parsing routines to indicate whether
8980 accelerator specs should be supported.
8982 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
8984 * glyphs.h (struct Lisp_Image_Instance):
8985 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
8986 add initial-focus flag.
8989 * gui.c (syms_of_gui):
8990 * gui.c (vars_of_gui):
8991 clean up menu-no-selection-hook.
8994 support delete-dialog-box-hook.
8996 * lread.c (Fload_internal):
8997 * lread.c (locate_file_in_directory_mapper):
9001 * lrecord.h (struct toolbar_button):
9002 * lrecord.h (syms_of_toolbar):
9003 document how to create a new object.
9005 * menubar-msw.c (mswindows_char_is_accelerator):
9006 may be called on frames w/o menus.
9008 * menubar.c (vars_of_menubar):
9009 clean up :filter docs.
9016 * process-nt.c (validate_signal_number):
9017 * process-nt.c (signal_cannot_launch):
9018 * process-nt.c (nt_create_process):
9019 * process-nt.c (nt_send_process):
9020 * process-nt.c (nt_kill_child_process):
9021 * process-nt.c (nt_open_network_stream):
9022 * process-nt.c (syms_of_process_nt):
9024 delete quote-handling. call new lisp code that does it better.
9026 * process-unix.c (connect_to_file_descriptor):
9027 * process-unix.c (allocate_pty):
9028 * process-unix.c (unix_send_process):
9029 * process-unix.c (unix_kill_child_process):
9030 * process-unix.c (unix_open_network_stream):
9031 * process-unix.c (unix_open_multicast_group):
9035 * process.c (Fstart_process_internal):
9036 (2). need to canonicalize process path even if absolute.
9038 * select-msw.c (symbol_to_ms_cf):
9039 * select-msw.c (ms_cf_to_symbol):
9040 * select-msw.c (cf_is_autofreed):
9041 * select-msw.c (mswindows_destroy_selection):
9043 * select.c (syms_of_select):
9045 support dibv5, fix bugs. (from Mike Alexander)
9047 * select.c (Fget_selection_internal):
9048 * select.c (select_convert_out):
9051 * sysdep.c (xemacs_stat):
9056 but keep original stat() here because we provide encapsulation
9060 * sysfile.h (fstat):
9061 remove stat garbage.
9065 don't include tchar.h. it's inappropriate because it makes
9066 compile-time distinctions when we want runtime distinctions.
9067 (we provide our own tchar replacements)
9070 use default object printer for toolbar-button.
9073 make sure we don't encapsulate.
9075 * window.c (vars_of_window):
9076 emphasize that temp-buffer-show-hook is obsolete.
9078 2000-08-05 Martin Buchholz <martin@xemacs.org>
9080 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9081 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9083 * events.c (Fevent_timestamp_lessp):
9084 Not 64-bit clean. Use EMACS_INT, not int.
9086 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
9088 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9089 unsigned int and changed the last enum to
9090 lrecord_type_last_built_in_type.
9091 (lrecord_implementations_table): changed prototype to know how
9092 long the array is supposed to be.
9093 (lrecord_type_count): new unsigned int to keep track of the
9094 current number of lisp lrecord types.
9095 (DEFINE_EXTERNAL_LRECORD):
9096 (DECLARE_EXTERNAL_LRECORD): Added these two for external
9097 dynamic-modules to declare new lisp types. They are the same
9098 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9099 int for each new type, and increment lrecord_type_count by 1.
9101 * alloc.c (lrecord_implementations_table): Changed to reference
9102 lrecord_type_last_built_in_type for the size of the array.
9103 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9105 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9107 * glyphs.h (check_valid_item_list): Renamed from
9108 check_valid_item_list_1.
9110 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9112 * select.c (Qselect_coerce): New.
9113 * select.c (Vselection_coercion_alist): New.
9114 * select.c (syms_of_select): Declare.
9115 * select.c (get-selection-internal): Use it.
9116 Use the new select-coerce functionality.
9118 * select.c (select_coerce): New.
9119 * select.h (select_coerce): Declare.
9120 New function to coerce one type of data into another.
9122 2000-08-03 Martin Buchholz <martin@xemacs.org>
9124 * callproc.c (Fcall_process_internal):
9125 (Fcall_process_internal):
9126 * process-unix.c (unix_create_process):
9127 Save and restore the value of errno, so that error messages are accurate.
9129 2000-08-01 Martin Buchholz <martin@xemacs.org>
9131 * elhash.c (print_hash_table):
9132 Fix printing of hash tables to also use `key-and-value' instead of `t'.
9133 Prettify docstrings and indentation.
9135 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
9137 * window.c (Fwindow_pixel_edges): Subtract frame border and
9140 2000-07-31 Andy Piper <andy@xemacs.org>
9142 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9143 will acknowledge the change.
9145 * glyphs.h: declare tab_control_order_only_changed.
9147 * glyphs-x.c (x_tab_control_redisplay): use
9148 tab_control_order_only_changed.
9150 * glyphs-widget.c (tab_control_order_only_changed): new function.
9152 * glyphs-msw.c (mswindows_tab_control_redisplay): use
9153 tab_control_order_only_changed.
9155 * gui.c (gui_item_equal_sans_selected): new function.
9156 (gui_item_equal): use it.
9158 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9159 :properties in favor of :items..
9161 * glyphs-widget.c (check_valid_item_list): rename from
9162 check_valid_item_list_1.
9163 (check_valid_item_list_1): renamed.
9164 (combo_box_validate): deprecate :properties in favor of :items.
9165 (widget_instantiate): ditto.
9166 (tab_control_update): ditto.
9167 (image_instantiator_combo_box): ditto.
9168 (image_instantiator_tree_view): ditto.
9169 (image_instantiator_tab_control): ditto.
9170 (layout_post_instantiate): remove dead code.
9172 * print.c (debug_print_no_newline): only write to debugger if in
9175 * elhash.c (Fmake_hash_table): update doc string.
9177 * event-msw.c (mswindows_wnd_proc): don't allow processing of
9178 messages whilst in GC. This at least stops XEmacs crashing but has
9179 the potential for wierd behaviour.
9181 2000-07-31 Martin Buchholz <martin@xemacs.org>
9184 Make existence of s&m files optional.
9186 * s/bsd386.h: Remove HAVE_GETLOADAVG.
9187 * s/freebsd.h: Remove HAVE_GETLOADAVG.
9188 * s/gnu.h: Remove HAVE_GETLOADAVG.
9189 * s/netbsd.h: Remove HAVE_GETLOADAVG.
9190 * s/sol2.h: Remove HAVE_GETLOADAVG.
9191 * lisp.h: Remove getloadavg() declaration.
9193 Include <sys/loadavg.h> if available.
9194 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9195 * config.h.in: Group together getloadavg()-related macros.
9196 Use only configure-time tests to detect getloadavg().
9198 2000-07-30 Martin Buchholz <martin@xemacs.org>
9200 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9202 2000-07-25 Andy Piper <andy@xemacs.org>
9204 * syswindows.h: add tchar.h for native builds.
9206 * frame.c (syms_of_frame): remove set-glyph-image.
9208 * general-slots.h: add Qset_glyph_image.
9210 * glyphs-widget.c (layout_update): add domain arg to
9212 (syms_of_glyphs_widget): remove set-glyph-image.
9214 2000-07-23 Ben Wing <ben@xemacs.org>
9216 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9219 2000-07-22 Andy Piper <andy@xemacs.org>
9221 * symsinit.h: add syms_of_win32().
9223 * gui-msw.c (syms_of_gui_mswindows): remove
9224 Fmswindows_shell_execute.
9225 (Fmswindows_shell_execute): moved to win32.c.
9227 * emacs.c (main_1): add syms_of_win32 ().
9229 * win32.c (init_potentially_nonexistent_functions): rewrite in
9230 compiler-friendly terms.
9231 (Fmswindows_shell_execute): move here from gui-msw.c.
9232 (syms_of_win32): new.
9234 * device-msw.c (Fmswindows_printer_list): clean up args to
9236 Don't include tchar under cygwin or mingw.
9237 (msprinter_default_printer): make cygwin-friendly.
9239 2000-07-21 Andy Piper <andy@xemacs.org>
9241 * glyphs-widget.c (image_instantiator_tree_view): use tab
9242 control's update function.
9243 (layout_property): new function. Retrieve items.
9245 * glyphs-msw.c (mswindows_tree_view_redisplay): new
9246 function. Re-populate the tree view from the pending items.
9248 * glyphs.c (instantiate_image_instantiator): Make sure the domain
9249 is designated the parent if the domain is an image instance. This
9250 is needed so that dirtiness can be cascade up the hierarchy and
9251 thus for layout children to be redisplayed correctly.
9252 (allocate_image_instance): rename glyph -> parent.
9254 * redisplay.h: change redisplay_output_layout signature.
9256 * redisplay-msw.c (mswindows_output_display_block): use domain
9259 * redisplay-x.c (x_output_display_block): use domain arg.
9261 2000-07-10 Andy Piper <andy@xemacs.org>
9263 * window.c (Fset_window_configuration): add comment.
9265 * redisplay-output.c (compare_runes):
9266 (redisplay_output_subwindow): redisplay rather than update subwindow.
9267 (redisplay_output_layout): ditto.
9269 * redisplay-msw.c (mswindows_frame_output_end):
9270 (mswindows_frame_output_end): make defer window pos optional.
9272 * lisp.h: add Flast.
9274 * glyphs.h (struct image_instantiator_methods): add dest_mask top
9275 normalize method. Change update method to be for changed
9276 instantiators. Add redisplay method. Change signature of layout
9278 (struct Lisp_Image_Instance): add instantiator.
9279 (IMAGE_INSTANCE_INSTANTIATOR): new.
9280 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9281 (XIMAGE_INSTANCE_INSTANTIATOR): new.
9282 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9285 (find_instantiator_differences): new function.
9286 (Fset_instantiator_property): new convenience function.
9287 (check_image_instance_structure): strictly check for vector
9289 (normalize_image_instantiator): make non-static.
9290 (instantiate_image_instantiator): pass on dest_mask and use new
9291 signatures for image_instance_layout and friends.
9292 (mark_image_instance): mark the instantiator. Mark the subwindow
9293 face not the widget face.
9294 (image_instance_equal): add instantiator.
9295 (image_instance_hash): ditto.
9296 (allocate_image_instance): ditto.
9297 (Fset_image_instance_property): removed.
9298 (Fimage_instance_file_name): ditto.
9299 (Fcolorize_image_instance): ditto.
9300 (image_instance_layout): add offsets to be set.
9301 (update_image_instance): new function. update an image instance
9302 from its changed instantiator.
9303 (inherit_normalize): add dest_mask.
9304 (xbm_normalize): ditto.
9305 (xface_normalize): ditto.
9306 (xpm_normalize): ditto.
9307 (text_update): set_property -> update.
9308 (image_instantiate): use the glyph identity as a hash key, not the
9310 (glyph_width): use new image_instance_layout signature.
9311 (glyph_ascent): ditto.
9312 (glyph_descent): ditto.
9313 (glyph_height): ditto.
9314 (glyph_query_geometry): ressurrect.
9315 (glyph_layout): ditto.
9316 (redisplay_subwindow): update -> redisplay.
9317 (syms_of_glyphs): add Fset_instantiator_property.
9318 (image_instantiator_format_create): set_property -> update.
9321 (autodetect_normalize): add dest_maks to signature.
9322 (x_redisplay_subwindow): update -> redisplay.
9323 (x_redisplay_widget): ditto.
9324 (x_button_redisplay): ditto.
9325 (x_progress_gauge_redisplay): ditto.
9326 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9328 (console_type_create_glyphs_x): update -> redisplay.
9329 (image_instantiator_format_create_glyphs_x): ditto.
9332 (check_valid_instantiator): disallow glyphs in the instantiator,
9333 they must now be vectors.
9334 (check_valid_instantiator_list): ditto.
9335 (glyph_instantiator_to_glyph): use internal symbol rather than
9337 (widget_update): renamed from widget_set_property. Call cascaded
9339 (redisplay_widget): renamed from update_widget.
9340 (widget_layout): image_instance_layout now takes position as well
9342 (widget_normalize): ditto.
9343 (widget_instantiate): ditto.
9344 (tab_control_query_geometry) ditto.:
9345 (tab_control_update): renamed from tab_control_set_property.
9346 (progress_gauge_update): set_property -> update.
9347 (layout_normalize): rewrite so that child instantiators are
9349 (layout_update): new function. Create glyphs from the normalized
9350 children and cope with any other layout keywords. We do not
9351 instantiate children here that will be take care of by
9352 redisplay_output_layout.
9353 (layout_instantiate): call layout_update and not much else.
9354 (layout_post_instantiate): not sure whether this is needed
9356 (layout_query_geometry): query glyph geometry rather than
9357 image_instance geometry.
9358 (layout_layout): set offsets from pass in parameters. Use glyph
9359 geometry and layout functions rather than image instance ones.
9360 (native_layout_layout): ditto.
9361 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9362 (image_instantiator_widget): set_property -> update.
9363 (image_instantiator_buttons): ditto.
9364 (image_instantiator_progress_guage): ditto.
9365 (image_instantiator_tab_control): ditto.
9366 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9367 (image_instantiator_layout): add update method.
9369 * glyphs-msw.c (bmp_normalize):
9370 (mswindows_resource_normalize): add dest_mask so that it can be
9371 proprogated by layout_normalize.
9372 (begin_defer_window_pos): make optional because it may not be the
9373 right thing to do and it introduces differences with X.
9374 (mswindows_unmap_subwindow): ditto.
9375 (mswindows_map_subwindow): ditto.
9376 (mswindows_redisplay_subwindow): renamed from
9377 mswindows_update_subwindow.
9378 (mswindows_redisplay_widget): ditto.
9379 (mswindows_button_redisplay): renamed from
9380 mswindows_button_update. Update is now what the instantiation
9381 function does for a changed instantiator.
9382 (mswindows_progress_gauge_instantiate): set the progress value
9383 here if appropriate.
9384 (mswindows_tab_control_redisplay): cope with re-ordering of the
9385 members of the tab widget by simply selecting the new top
9386 widget. This makes things appear ok if you click on a tab.
9387 (mswindows_combo_box_instantiate): image_instance_layout now takes
9388 position as well as size.
9389 (mswindows_progress_gauge_redisplay): renamed from
9390 mswindows_progress_gauge_update.
9391 (console_type_create_glyphs_mswindows): fix update -> redisplay.
9392 (image_instantiator_format_create_glyphs_mswindows): ditto.
9394 * glyphs-eimage.c (jpeg_normalize):
9397 (tiff_normalize): add dest_mask so that it can be proprogated by
9402 (hash_table_weakness_validate):
9403 (decode_hash_table_weakness):
9404 (Fhash_table_weakness):
9406 (syms_of_elhash): use Ben's naming scheme for hashtable types..
9408 * console.h (struct console_methods): move update_* to
9411 2000-07-20 Ben Wing <ben@xemacs.org>
9413 * *.[ch] (XSETOBJ): remove unused middle argument.
9414 lisp-disunion.h: correct wrap_object() to one argument.
9416 2000-07-15 Ben Wing <ben@xemacs.org>
9419 * s/cygwin32.h (CYGWIN_CONV_PATH):
9420 Add missing logb prototype for v1.1.
9421 Use post-b20 names and alias to pre-b20 names when pre-b20.
9423 * s/windowsnt.h: [5].
9425 2000-07-15 Ben Wing <ben@xemacs.org>
9427 * Makefile.in.in (x_objs):
9428 * Makefile.in.in (sheap_objs):
9429 * Makefile.in.in (objs):
9430 added win32.o, cosmetic cleanups.
9432 * alloc.c (Fmake_byte_code):
9433 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9434 etc. macros which declare their own args now.
9436 * alloc.c (syms_of_alloc):
9437 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9440 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9442 * buffer.c (Fget_file_buffer):
9443 Fixed GCPRO problem.
9445 * buffer.c (get_truename_buffer):
9446 Fixed comment about GC checking.
9448 * buffer.c (syms_of_buffer):
9449 Undeclared those dedicated frame funs.
9453 Define convenience macros for internal/external conversions.
9454 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9455 and Qenvironment_variable_encoding for cleaner code.
9458 Remove dedicated-frame; in lisp.
9460 * bytecode.c (funcall_compiled_function):
9463 * bytecode.c (syms_of_bytecode):
9467 * console-msw.c (mswindows_show_console): Rewrote.
9469 * console-msw.c (Fmswindows_debugging_output): New.
9470 Sends to OutputDebugString (special MSWin debugger interface).
9472 * console-msw.c (Fmswindows_message_box):
9473 Fixed stupid bugs so it works when called from kill-emacs.
9475 * console-msw.c (syms_of_console_mswindows):
9476 Declare Fmswindows_debugging_output.
9479 New MSWin prototypes.
9481 * console-msw.h (struct mswindows_frame):
9482 New entry last-click-mods for improved button-modifier support.
9484 * console-msw.h (FRAME_MSWINDOWS_POPUP):
9485 New struct entry `popup' with corresponding accessor.
9488 * console-x.c (split_up_display_spec):
9489 * console-x.c (get_display_arg_connection):
9490 * console-x.c (x_semi_canonicalize_console_connection):
9491 * console-x.c (x_canonicalize_device_connection):
9492 [[[6]]]: Change char to more specific type.
9493 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9495 * console-x.c (x_semi_canonicalize_console_connection):
9496 * console-x.c (x_canonicalize_device_connection):
9497 [[[9]]]: Fix up error signalling to use new structured error system.
9500 [[[4]]]: Define codesys aliases:
9501 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9502 Qx_color_name_encoding, Qx_display_name_encoding.
9504 * console.h (struct console_methods):
9505 New method make_dialog_box_internal supersedes older
9506 popup_dialog_box method.
9509 Define many new errors, part of new structured errors.
9511 * data.c (init_errors_once_early):
9512 * data.c (syms_of_data):
9515 * device-msw.c (mswindows_init_device):
9516 [[[5]]]: Cleanup to support NT 3.51.
9518 * device-msw.c (decode_devmode): Cleanup.
9520 * device-msw.c (mswindows_handle_print_setup_dialog_box):
9521 * device-msw.c (mswindows_handle_print_dialog_box):
9522 * device-msw.c (mswindows_handle_page_setup_dialog_box):
9523 * device-msw.c (syms_of_device_mswindows):
9524 Delete the dialog box primitives recently introduced by Kirill and
9525 instead interface to general dialog box interface.
9528 * device-x.c (compute_x_app_name):
9529 * device-x.c (x_init_device):
9530 * device-x.c (Fx_valid_keysym_name_p):
9531 * device-x.c (Fx_set_font_path):
9535 * device.h (wrap_device): New.
9536 First of its kind; meant to replace XSETDEVICE.
9538 * dialog-msw.c: Many file-dialog symbols.
9540 * dialog-msw.c (mswindows_register_popup_frame): New.
9541 * dialog-msw.c (mswindows_is_dialog_msg): New.
9542 For supporting kbd traversal in dialog boxes.
9544 * dialog-msw.c (dialog_proc):
9545 Support hitting ESC in dialogs.
9547 * dialog-msw.c (struct):
9548 Common dialog box errors.
9550 * dialog-msw.c (handle_file_dialog_box): New.
9551 Add file dialog code.
9553 * dialog-msw.c (handle_question_dialog_box):
9554 Redo existing code to support new question dialog syntax.
9556 * dialog-msw.c (console_type_create_dialog_mswindows):
9557 We support new dialog console method.
9559 * dialog-msw.c (syms_of_dialog_mswindows):
9560 * dialog-msw.c (vars_of_dialog_mswindows):
9561 New file dialog symbols, vars.
9564 * dialog-x.c (maybe_run_dbox_text_callback):
9565 * dialog-x.c (dbox_descriptor_to_widget_value):
9566 * dialog-x.c (x_make_dialog_box_internal):
9567 * dialog-x.c (console_type_create_dialog_x):
9568 Mule-ize entire file.
9569 Redo to support question dialog syntax.
9573 * dialog.c (Fmake_dialog_box_internal):
9574 * dialog.c (syms_of_dialog):
9575 Kill old popup-dialog-box, replace with new primitive.
9576 Just call device method or signal error.
9578 * eldap.c (Fldap_open):
9579 * eldap.c (Fldap_search_basic):
9580 * eldap.c (Fldap_add):
9581 * eldap.c (Fldap_modify):
9586 * emacs.c (make_arg_list_1):
9587 * emacs.c (make_arg_list):
9588 Mule-ize call to dll_init().
9592 * emacs.c (make_argc_argv):
9593 * emacs.c (free_argc_argv):
9594 * emacs.c (init_cmdargs):
9596 * emacs.c (Fkill_emacs):
9597 * emacs.c (Fdump_emacs):
9598 Update comments about what can be used in syms_* etc.
9599 Call init_win32() when necessary.
9600 Fix up MS Win dialog box in kill-buffer to actually work right.
9611 * eval.c (condition_case_3):
9613 * eval.c (function_argcount):
9614 * eval.c (funcall_lambda):
9617 * eval.c (type_error): New.
9618 * eval.c (maybe_type_error): New.
9619 * eval.c (continuable_type_error): New.
9620 * eval.c (maybe_continuable_type_error): New.
9621 * eval.c (type_error_with_frob): New.
9622 * eval.c (maybe_type_error_with_frob): New.
9623 * eval.c (continuable_type_error_with_frob): New.
9624 * eval.c (maybe_continuable_type_error_with_frob): New.
9625 New functions for use with structured errors.
9628 * event-Xt.c (x_event_to_emacs_event):
9629 Buttons are now modifiers too.
9631 * event-Xt.c (emacs_Xt_current_event_timestamp):
9632 Implement new event method.
9633 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9636 * event-msw.c (ntpipe_shove_writer): [5].
9637 * event-msw.c (mswindows_enqueue_mouse_button_event):
9638 * event-msw.c (mswindows_drain_windows_queue):
9639 * event-msw.c (mswindows_wnd_proc): [7].
9640 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9641 * event-msw.c (mswindows_modifier_state):
9642 Throughout: support new button modifiers.
9644 * event-msw.c (emacs_mswindows_current_event_timestamp):
9645 Implement new event method.
9646 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9649 * event-stream.c (event_stream_current_event_timestamp): New.
9650 * event-stream.c (maybe_kbd_translate): New functionality.
9651 * event-stream.c (vars_of_event_stream):
9652 Document new kbd-translate-table functionality.
9654 * event-stream.c (Fcurrent_event_timestamp): New.
9655 New primitive for use in fabricated events.
9656 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9658 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9661 * events.c (Fmake_event):
9662 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9666 * events.c (format_event_object): fix gcc warnings.
9668 * events.c (Fevent_timestamp): Document new primitives.
9670 * events.c (TIMESTAMP_HALFSPACE): New.
9672 * events.c (Fevent_timestamp_lessp): New. New primitive for
9673 comparing timestamps correctly (half-space algorithm).
9675 * events.c (Fevent_modifier_bits): Doc fix.
9677 * events.c (Fevent_modifiers): Major doc addition.
9678 * events.c (event_x_y_pixel_internal): Typo fix.
9679 * events.c (syms_of_events): Declare new primitives.
9682 Update long comment for button modifiers, timestamps.
9684 * events.h (struct event_stream):
9685 New current_event_timestamp method.
9688 * extents.c (extent_in_region_p):
9689 * extents.c (decode_extent):
9690 * extents.c (Fset_extent_parent):
9691 * extents.c (decode_map_extents_flags):
9695 * extents.c (struct extent_at_arg):
9696 * extents.c (decode_extent_at_flag):
9697 * extents.c (extent_at_mapper):
9698 * extents.c (extent_at_bytind):
9699 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9700 * extents.c (Fextents_at): New primitive. [9].
9701 * extents.c (symbol_to_glyph_layout): [9].
9702 Support new primitive `extents-at'.
9705 * extents.c (get_text_property_bytind):
9706 extent_at_bytind has another arg.
9709 * extents.c (syms_of_extents): New primitive.
9711 * file-coding.c (Fmake_coding_system): [1].
9712 * file-coding.c (subsidiary_coding_system): fix gcc warning
9713 * file-coding.c (syms_of_file_coding): [2].
9715 * fileio.c (Fexpand_file_name):
9716 * fileio.c (Fsysnetunam):
9717 * fileio.c (Ffile_exists_p):
9718 * fileio.c (Ffile_executable_p):
9719 * fileio.c (Fverify_visited_file_modtime):
9722 * fileio.c (syms_of_fileio): [2].
9724 * filelock.c (lock_file_1):
9725 * filelock.c (current_lock_owner):
9726 * filelock.c (lock_if_free):
9727 * filelock.c (lock_file):
9728 * filelock.c (unlock_file):
9731 * fns.c (concat): Fix gcc warning.
9734 * fns.c (Fold_member):
9736 * fns.c (Fold_memq):
9737 * fns.c (memq_no_quit):
9739 * fns.c (Fold_assoc):
9741 * fns.c (Fold_assq):
9742 * fns.c (assq_no_quit):
9744 * fns.c (Fold_rassoc):
9746 * fns.c (Fold_rassq):
9747 * fns.c (rassq_no_quit):
9749 * fns.c (Fold_delete):
9751 * fns.c (Fold_delq):
9752 * fns.c (delq_no_quit):
9753 * fns.c (Fremassoc):
9755 * fns.c (remassq_no_quit):
9756 * fns.c (Fremrassoc):
9757 * fns.c (Fremrassq):
9758 * fns.c (remrassq_no_quit):
9763 * frame-msw.c (mswindows_init_frame_1):
9764 * frame-msw.c (mswindows_delete_frame):
9765 Register popups with dialog code so keyboard traversing works.
9767 * frame-tty.c (tty_raise_frame_no_select): [1].
9770 * frame-x.c (x_set_frame_text_value):
9771 * frame-x.c (x_set_frame_properties):
9772 * frame-x.c (x_create_widgets):
9776 * frame.c (Fmouse_pixel_position): Minor doc fixes.
9778 * frame.h (wrap_frame): New.
9779 Macro like wrap_device.
9782 * general.c (SYMBOL):
9783 * general.c (syms_of_general):
9784 Major reorg. This is now just a wrapper and symbols themselves
9785 are listed in general-slots.h.
9787 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9788 * glyphs-msw.c (mswindows_resource_instantiate): [5].
9790 * glyphs-msw.c (mswindows_native_layout_instantiate):
9791 Add DS_CONTROL so keyboard traversal will work.
9794 * glyphs-widget.c (syms_of_glyphs_widget):
9795 Move some symbols to general-slots.h.
9798 * glyphs-x.c (xbm_instantiate_1):
9799 * glyphs-x.c (x_xbm_instantiate):
9800 * glyphs-x.c (x_xface_instantiate):
9801 * glyphs-x.c (autodetect_instantiate):
9802 * glyphs-x.c (cursor_font_instantiate):
9803 * glyphs-x.c (x_update_widget):
9804 * glyphs-x.c (x_widget_instantiate):
9805 * glyphs.c (bitmap_to_lisp_data):
9806 * glyphs.c (pixmap_to_lisp_data):
9809 * glyphs.c (syms_of_glyphs):
9813 * gui-x.c (print_widget_value):
9814 * gui-x.c (menu_separator_style_and_to_external):
9815 * gui-x.c (add_accel_and_to_external):
9816 * gui-x.c (button_item_to_widget_value):
9817 * gui-x.c (gui_items_to_widget_values_1):
9818 * gui-x.c (gui_items_to_widget_values):
9819 * gui-x.c (syms_of_gui_x):
9820 * gui-x.c (vars_of_gui_x):
9821 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
9825 Muleize, prototype changes matching gui-x.c.
9828 * gui.c (separator_string_p):
9829 * gui.c (gui_item_add_keyval_pair):
9830 * gui.c (make_gui_item_from_keywords_internal):
9831 * gui.c (signal_too_long_error):
9832 * gui.c (parse_gui_item_tree_item):
9833 * gui.c (syms_of_gui):
9834 * gui.c (vars_of_gui):
9836 menu-no-selection-hook moved here (used by MSWin).
9837 Move some symbols to general-slots.h.
9841 * insdel.c (get_buffer_pos_char):
9842 * insdel.c (get_buffer_range_char):
9845 * keymap.c (keymap_lookup_directly):
9846 * keymap.c (keymap_store):
9847 * keymap.c (ensure_meta_prefix_char_keymapp):
9848 * keymap.c (describe_map):
9850 Support new button modifiers.
9852 * lisp-disunion.h (wrap_object):
9853 * lisp-disunion.h (XSETOBJ):
9854 Rename make_obj to wrap_object.
9857 * lisp-union.h (make_int):
9858 * lisp-union.h (make_char):
9859 Support wrap_object.
9862 * lisp.h (LIST_LOOP):
9863 * lisp.h (EXTERNAL_LIST_LOOP):
9864 * lisp.h (LIST_LOOP_2):
9865 * lisp.h (EXTERNAL_LIST_LOOP_1):
9866 * lisp.h (EXTERNAL_LIST_LOOP_2):
9867 * lisp.h (EXTERNAL_LIST_LOOP_3):
9868 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
9869 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9870 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
9871 * lisp.h (EXTERNAL_ALIST_LOOP_5):
9872 * lisp.h (EXTERNAL_ALIST_LOOP_6):
9873 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
9874 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
9875 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
9876 * lisp.h (struct Lisp_Symbol):
9877 * lisp.h (maybe_continuable_error_with_frob):
9878 Fix up section comments.
9879 Add new types for char to indicate usage.
9880 Delete symbols auto-generated from general-slots.h.
9881 Add prototypes for structured error functions.
9882 Add long comments describing looping macros and change interface
9883 so that lvalues are automatically declared.
9884 Add NO_DECLARE macro in case callers want to declare lvalues
9887 * lread.c (read_syntax_error):
9888 * lread.c (continuable_read_syntax_error):
9889 * lread.c (read_structure):
9890 * lread.c (sequence_reader):
9891 * lread.c (read_list_conser):
9892 * lread.c (read_compiled_function):
9893 Rename syntax_error and continuable_syntax_error to avoid clash
9894 with same-named structured error functions.
9896 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9897 * menubar-msw.c (populate_menu_add_item):
9898 * menubar-msw.c (populate_or_checksum_helper):
9903 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9904 Mule-ize whole file.
9906 * menubar.c (Fnormalize_menu_item_name): Add optimization.
9908 * mule-charset.c (Fmake_charset):
9909 * mule-wnnfns.c (Fwnn_set_param):
9912 * ntproc.c (create_child):
9913 * ntproc.c (Fwin32_set_current_locale):
9914 Add comments portending doom.
9917 * objects-msw.c (old_font_enum_callback_2):
9918 * objects-msw.c (font_enum_callback_1):
9919 * objects-msw.c (mswindows_enumerate_fonts):
9923 * objects-x.c (allocate_nearest_color):
9924 * objects-x.c (x_parse_nearest_color):
9925 * objects-x.c (x_initialize_color_instance):
9926 * objects-x.c (x_print_color_instance):
9927 * objects-x.c (x_finalize_color_instance):
9928 * objects-x.c (x_valid_color_name_p):
9929 * objects-x.c (x_initialize_font_instance):
9930 * objects-x.c (x_print_font_instance):
9931 * objects-x.c (valid_x_font_name_p):
9932 * objects-x.c (truename_via_FONT_prop):
9933 * objects-x.c (truename_via_random_props):
9934 * objects-x.c (truename_via_XListFonts):
9935 * objects-x.c (x_font_truename):
9936 * objects-x.c (x_font_instance_truename):
9937 * objects-x.c (x_font_instance_properties):
9938 * objects-x.c (x_list_fonts):
9939 * objects-x.c (x_find_charset_font):
9940 Mule-ize entire file.
9947 * print.c (std_handle_out_external):
9948 * print.c (debug_print_no_newline):
9949 * print.c (syms_of_print):
9950 Output to all debugger kinds in debug-print.
9951 Fix console-output code under MSWin to actually work.
9953 * process-nt.c (send_signal):
9954 * process-nt.c (nt_create_process):
9955 Use newer Unicode macros.
9957 * process-unix.c (unix_create_process):
9958 * process-unix.c (unix_canonicalize_host_name):
9959 * process-unix.c (unix_open_network_stream):
9965 * search.c (syms_of_search):
9968 * select-msw.c (mswindows_destroy_selection):
9971 * select-x.c (symbol_to_x_atom):
9974 * select.c (syms_of_select):
9977 * sound.c (Fplay_sound_file):
9981 * specifier.c (decode_specifier_type):
9982 * specifier.c (Fvalid_specifier_locale_type_p):
9983 * specifier.c (check_valid_locale_or_locale_type):
9984 * specifier.c (decode_locale):
9985 * specifier.c (decode_locale_type):
9986 * specifier.c (decode_locale_list):
9987 * specifier.c (check_valid_domain):
9988 * specifier.c (decode_specifier_tag_set):
9989 * specifier.c (Fcanonicalize_tag_set):
9990 * specifier.c (Fdefine_specifier_tag):
9991 * specifier.c (Fspecifier_tag_predicate):
9992 * specifier.c (check_valid_inst_list):
9993 * specifier.c (check_valid_spec_list):
9994 * specifier.c (decode_how_to_add_specification):
9995 * specifier.c (check_modifiable_specifier):
9996 * specifier.c (specifier_add_spec):
9997 * specifier.c (boolean_validate):
9998 * specifier.c (display_table_validate):
10001 * specifier.c (syms_of_specifier):
10002 Move some symbols to general-slots.h.
10006 * symbols.c (Fmapatoms):
10007 * symbols.c (Fapropos_internal):
10010 * symbols.c (set_default_buffer_slot_variable):
10011 * symbols.c (set_default_console_slot_variable):
10014 * symbols.c (defsymbol_massage_name_1):
10015 * symbols.c (defkeyword_massage_name):
10016 * symbols.c (deferror_1):
10017 * symbols.c (deferror):
10018 * symbols.c (deferror_massage_name_and_message):
10020 * symeval.h (DEFSYMBOL):
10021 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10023 * symbols.c (syms_of_symbols):
10027 * symsinit.h (init_win32): New.
10028 Also new is syms_of_dialog_mswindows.
10031 Add new Unicode macros, missing Cygwin wide-char functions,
10032 convenience conversion macros for Qmswindows_tstr, macros for
10033 encapsulating required MSWin <-> Cygwin filename conversions,
10034 prototype for dynamically-extracted (not in NT 3.51) functions.
10039 * tooltalk.c (Fadd_tooltalk_message_arg):
10040 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10041 * tooltalk.c (Fadd_tooltalk_pattern_arg):
10044 * tooltalk.c (syms_of_tooltalk):
10048 * unexnt.c (unexec):
10049 Fix up headers, declaration of unexec() to be more standard.
10051 2000-07-20 Martin Buchholz <martin@xemacs.org>
10053 * offix.h: Revert change to guard macros - they're used in offix.c!
10055 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10057 * lisp.h: Defsubred Fdelete.
10059 * console-msw.h: (msprinter_default_printer): Added.
10061 * console-msw.c (msprinter_canonicalize_console_connection):
10062 (msprinter_canonicalize_device_connection): Added.
10064 * device-msw.c (msprinter_default_printer):
10065 (Fmswingows_get_default_printer):
10066 (signal_enum_priner_error):
10067 (Fmswingows_printer_list): Added.
10069 2000-07-19 Martin Buchholz <martin@xemacs.org>
10071 * XEmacs 21.2.35 is released.
10073 2000-07-19 Martin Buchholz <martin@xemacs.org>
10075 * select-x.c (x_handle_selection_request):
10076 Text selected in xemacs and pasted into xterm failed to appear.
10077 Spelling fixes and cosmetic changes.
10079 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10081 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10082 XEmacs frame (fix for doubling chars in dialog boxes).
10084 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10086 * select.c (select_convert_in, select_convert_out):
10087 Don't call intern() every time.
10089 * select.c (Qselect_convert_in, Qselect_convert_out): New.
10090 * select.c (vars_of_select): Initialise them.
10092 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10094 * select.c (selection-coercible-types): New.
10096 * select.c (own-selection-internal):
10097 * select.c (get-selection-internal):
10098 MULE bug fix - these should default to COMPOUND_TEXT and not
10099 STRING for MULE. I think.
10101 * select.c (select_convert_out): Use selection-coercible-types
10102 to find types that we can attempt to perform coercions on.
10104 2000-07-18 Martin Buchholz <martin@xemacs.org>
10108 Add coding: cookie to identify encoding.
10110 * mule-canna.c (CANNA_mode_keys): make static.
10111 Use proper prototypes, even for functions of no arguments.
10112 Remove external prototype for Fding().
10114 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10116 * select.c (syms_of_select): Add missing DEFSUBR.
10118 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10120 * select.c (get_selection_internal, own_selection_internal):
10121 Make the type default to STRING, rather than placing a nil type
10122 into Vselection_alist.
10124 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10126 * gpmevent.c (tty_selection_exists_p):
10127 * gpmevent.c (tty_own_selection):
10128 Updated parameter lists.
10130 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10132 * select.h (selection-alist): Removed declaration.
10134 * select.h (get_local_selection):
10135 * select.c (get_local_selection):
10138 * select.h (convert_selection): Removed declaration.
10139 * select.c (convert_selection): Removed.
10140 This function belongs in Lisp.
10142 * select.h (select_convert_in): Declare.
10143 * select.h (select_convert_out): Declare.
10144 * select.c (select_convert_in): New.
10145 * select.c (select_convert_out): New.
10146 New conversion functions for other files to call.
10148 * select.h (select_notify_buffer_kill): Declare.
10149 * select.c (select_notify_buffer_kill): New.
10150 New functions that get called from kill-buffer.
10152 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10153 X-specific lisp code.
10155 * select.h: Declare some of the lisp-visible functions for
10158 * select.c (clean_local_selection_data): Removed. This was
10159 a disgusting function, and previously should have been in
10160 select-x.c in any case. The functionality is now provided
10161 in select-convert-from-integer (select.el).
10163 * select.c (available-selection-types): Fixed stupidity where
10164 INTEGER and ATOM got added twice. Also add STRING when we see an
10167 * select.c (get-selection-internal): Removed symbol stripping. No
10168 longer causes conversion when data comes from the internal cache.
10170 * select.c (syms_of_select): Added new functions.
10172 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10173 error checking - previously this called abort!
10175 * select-x.c (x_own_selection): Changed comment.
10177 * select-x.c (x_handle_selection_request): Use select_convert_out.
10178 Don't mess with selection-alist; it's an internal variable of select.c.
10180 * select-x.c (x_get_foreign_selection): Use select_convert_in.
10182 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10183 rather than messing with selection-alist.
10185 * select-msw.c (mswindows_get_foreign_selection):
10186 Use TO_INTERNAL_FORMAT rather than hacking.
10188 2000-07-14 Martin Buchholz <martin@xemacs.org>
10190 * process-unix.c (unix_open_multicast_group):
10191 (unix_open_multicast_group): Remove useless casts.
10193 2000-07-13 Martin Buchholz <martin@xemacs.org>
10195 * sound.c (Fplay_sound): Fix `unused variable' warning.
10197 * emacs.c (main): Use correct type for _environ on SCO5.
10199 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10201 * console.h (own_selection_method):
10202 * console.h (selection_exists_p_method):
10203 * console.h (available_selection_types_method): New.
10204 * console.h (register_selection_data_type_method): New.
10205 * console.h (selection_data_type_name): New.
10207 * console-msw.h (mswindows_destroy_selection): Declare it. New
10208 function & alist to track GlobalAlloc()'d handles that need
10209 releasing when the clipboard data gets replaced or emptied.
10211 * event-msw.c (mswindows_wnd_proc): Call it.
10213 * lisp.h, general.c (Qappend): New symbol representing a
10216 * select.c (own-selection-internal):
10217 * select.c (selection-exists-p):
10218 * select.c (available-selection-types): New.
10219 * select.c (register-selection-data-type): New.
10220 * select.c (selection-data-type-name): New. New functions to deal
10221 with device-specific selection data formats.
10222 * select.c (selection-converter-out-alist): Renamed.
10223 * select.c (selection-converter-in-alist): New.
10224 * select.c (selection-appender-alist): New. Added new alists.
10225 * select.c (syms_of_select, vars_of_select): Added new symbols &
10227 * select.c (get_local_selection): Split.
10228 * select.c: Removed spurious type checking - selections may now be
10229 of any type, not just strings.
10230 * select.c (own-selection-internal):
10232 * select.h, select.c (convert_selection): New. Created
10233 convert_selection() function based on get_local_selection().
10234 * select.h, select.c (QCF_*): New symbols representing mswindows
10236 * select.h, select.c (Qreplace_all, Qreplace_existing): New
10237 symbols representing `how-to-add' modes.
10239 * select-msw.c (x_sym_p): New.
10240 * select-msw.c (symbol_to_ms_cf): New.
10241 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10242 symbols & clipboard formats. Can also handle string names.
10243 * select-msw.c (mswindows_own_selection):
10244 * select-msw.c (mswindows_selection_exists_p):
10245 Added `data-type' parameter. Use it.
10246 * select-msw.c (mswindows_available_selection_types): New.
10247 * select-msw.c (mswindows_register_selection_data_type): New.
10248 * select-msw.c (mswindows_selection_data_type_name): New.
10249 * select-msw.c (mswindows_own_selection):
10250 * select-msw.c (mswindows_get_foreign_selection):
10251 * select-msw.c (mswindows_selection_exists_p): Rewrote.
10252 * select-msw.c (console_create_select_mswindows): Added new methods.
10253 * select-msw.c (mswindows_destroy_selection): New.
10254 * select-msw.c (Vhandle_alist): New list.
10255 * select-msw.c (mswindows_own_selection):
10257 * select-x.c (x_own_selection):
10258 * select-x.c (x_selection_exists_p):
10259 * select-x.c: Added some comments about maybe using new
10261 * select-x.c (x_own_selection):
10263 * specifier.c: Remove definition of Qappend (now in general.c)
10264 * specifier.c (syms_of_specifier): Remove Qappend.
10266 2000-07-12 Martin Buchholz <martin@xemacs.org>
10268 * config.h.in: Add socklen_t.
10270 * s/decosf4-0.h: No special compiler flags needed or desired.
10271 In particular, undefine _BSD for DEC OSF 4.0.
10273 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10275 * redisplay-msw.c (msprinter_frame_output_end): Added.
10276 (console_type_create_redisplay_mswindows): Referred the above.
10278 * frame.c (setup_frame_without_minibuffer): Do not create a
10279 default minibuffer frame on a printer device.
10281 * frame-msw.c (apply_dc_geometry): Added.
10282 (msprinter_start_page):
10283 (msprinter_init_frame_3):
10284 (msprinter_eject_page): Use it.
10286 * console-msw.h (struct msprinter_frame): Added pix_left and top,
10287 and removed residual duplex and orientation properties.
10289 2000-07-11 Martin Buchholz <martin@xemacs.org>
10291 * eval.c (function_argcount): Work around a DEC CC compiler bug.
10293 * unexalpha.c: Remove system prototypes from C sources!
10295 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
10297 * eval.c: Remove references to M-x edit-options in DEFUNs for
10298 `defvar' and `defconst'.
10300 2000-07-09 Martin Buchholz <martin@xemacs.org>
10302 * config.h.in: Remove SMART_INCLUDE hackery.
10304 PostgreSQL hacking:
10305 * config.h.in: Don't use SMART_INCLUDE.
10307 * postgresql.h: Include libpq-fe.h here. Fix typo.
10308 * inline.c: Simply #include "postgresql.h"
10310 - Don't use SMART_INCLUDE
10311 - Use simply "const".
10312 - Use standard doc string conventions.
10313 - Use correct type for result of PQstatus.
10315 2000-07-09 Martin Buchholz <martin@xemacs.org>
10317 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10319 C++ compilation changes.
10320 * config.h.in (EXTERN_C): Define.
10321 * config.h.in (not): This is also a C++ keyword.
10322 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10323 * cm.c: Use EXTERN_C.
10324 * redisplay-tty.c: Use EXTERN_C.
10325 * sysdep.c: Use EXTERN_C. Remove Gould support.
10327 2000-07-09 Martin Buchholz <martin@xemacs.org>
10329 * general.c: Remove duplicate definition for Qfunction.
10331 2000-07-08 Ben Wing <ben@xemacs.org>
10333 * device-msw.c (msprinter_init_device):
10334 * device-msw.c (sync_printer_with_devmode):
10335 * device-msw.c (handle_devmode_changes):
10336 * device-msw.c (print_dialog_worker):
10337 * device-msw.c (Fmsprinter_apply_settings):
10338 * device-msw.c (hash_devmode):
10339 * device-msw.c (Fmsprinter_settings_despecialize):
10340 use Qmswindows_tstr, not Qctext.
10342 * vm-limit.c (check_memory_limits):
10343 avoid infinite loop printing warning messages.
10345 2000-07-05 Craig Lanning <lanning@scra.org>
10347 * Makefile.in.in: Add support for including the Windows resources
10348 when building with the cygwin and mingw targets.
10350 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10351 not set or not correct.
10352 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10353 (init_initial_directory): Don't try to use $PWD on the
10354 WIN32_NATIVE target.
10357 [[Add -mwindows to eliminate console window.]] not required --ben
10358 (HAVE_NATIVE_SOUND): removed; now handled by configure.
10359 (MAIL_USE_POP): removed; now handled by configure.
10361 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10362 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10363 (HAVE_NATIVE_SOUND): removed; now handled by configure.
10364 (MAIL_USE_POP): removed; now handled by configure.
10365 (ENCAPSULATE_STAT): from Dan Holmsand, added.
10366 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10367 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10369 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10370 up from <winsock.h> via systime.h.
10371 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10372 (getpagesize): from Dan Holmsand, added.
10373 Added #endif which was left dangling by Ben's mega patch; added
10374 comment to help prevent this in the future.
10376 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10378 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10380 * console-msw.h (struct mswindows_device): Removed unnecessary
10381 cached device geometry values.
10382 Added update_tick and an accessor macro.
10383 (Lisp_Devmode): Added lrecord declaration.
10384 (struct msprinter_device): Contain devmode as a Lisp object.
10385 Added mswindows_get_selected_frame_hwnd();
10387 * console.h (struct console_methods): Indentation nitpicking.
10389 * device-msw.c (mswindows_init_device): Do not initialize geometry
10390 cache. Initialize update tick.
10391 (mswindows_device_system_metrics): Ask the device for its geometry.
10392 (global_free_2_maybe):
10393 (devmode_to_hglobal):
10394 (handle_printer_changes):
10395 (ensure_not_printing):
10396 (print_dialog_worker):
10397 (Fmsprinter_print_setup_dialog):
10398 (Fmsprinter_print_dialog):
10399 (plist_get_margin):
10400 (plist_set_margin):
10401 (Fmsprinter_page_setup_dialog): Added functions.
10402 (sync_printer_with_devmode):
10403 (handle_devmode_changes):
10404 (Fmsprinter_get_settings):
10405 (Fmsprinter_select_settings):
10406 (Fmsprinter_apply_settings):
10407 (allocate_devmode):
10408 (Fmsprinter_settings_copy):
10409 (Fmsprinter_settings_despecialize):
10411 (finalize_devmode):
10413 (hash_devmode): Added functions
10414 (syms_of_device_mswindows): Init devmode lrecord class.
10416 * device.h: Added an exfun for find-device.
10418 * event-msw.c (mswindows_wnd_proc): Do not update the cached
10419 geometry; although, recreate the device compatible DC.
10421 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10422 (msprinter_init_frame_3):
10423 (msprinter_frame_property):
10424 (msprinter_internal_frame_property_p):
10425 (msprinter_frame_properties):
10426 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10427 print job properties (will move to device settings).
10429 * lisp.h: Added symbols.
10431 * general.c (syms_of_general): Declared them.
10433 * hash.c (string_hash): Added.
10435 * lrecord.h (lrecord_type): Added devmode lrecord type.
10437 2000-07-02 Mike Sperber <mike@xemacs.org>
10439 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10442 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
10444 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10447 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
10449 * data.c (Fstring_to_number): Don't recognize floating point if
10452 2000-06-22 Martin Buchholz <martin@xemacs.org>
10454 * glyphs-widget.c (tab_control_query_geometry):
10455 (widget_query_geometry):
10456 (button_query_geometry):
10457 * glyphs.c (text_query_geometry):
10458 Enforce type correctness.
10460 2000-06-18 Martin Buchholz <martin@xemacs.org>
10462 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10463 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10465 2000-06-17 Martin Buchholz <martin@xemacs.org>
10467 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10468 conflicts with gcc's fixincluded version of FOO.h.
10470 * glyphs.h (image_instance_geometry): Remove trailing `,'
10472 2000-06-08 Mike Alexander <mta@arbortext.com>
10474 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10475 (shove_thread): Don't write the same output twice
10476 (make_ntpipe_output_stream): Increase priority of shove thread
10477 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10479 (ntpipe_shove_closer): Don't delete the pipe until we're done with
10482 2000-06-12 Ben Wing <ben@xemacs.org>
10484 * s\mingw32.h (sigset):
10485 * s\windowsnt.h (sigset):
10486 rename msw_ to mswindows_ for consistency with general convention.
10488 2000-06-12 Ben Wing <ben@xemacs.org>
10491 * console-msw.c (mswindows_get_console_hwnd):
10492 * console-msw.c (mswindows_ensure_console_allocated):
10493 * console-msw.c (mswindows_hide_console):
10494 * console-msw.c (mswindows_show_console):
10495 * console-msw.c (mswindows_ensure_console_buffered):
10496 * console-msw.c (mswindows_output_console_string):
10497 * console-msw.c (mswindows_windows9x_p):
10499 * device-msw.c (mswindows_get_workspace_coords):
10500 * device-msw.c (mswindows_device_system_metrics):
10501 * dialog-msw.c (mswindows_popup_dialog_box):
10502 * event-msw.c (mswindows_wnd_proc):
10503 * frame-msw.c (mswindows_size_frame_internal):
10504 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10505 * menubar-msw.c (displayable_menu_item):
10506 * menubar-msw.c (mswindows_char_is_accelerator):
10508 * nt.c (mswindows_sigset):
10509 * nt.c (mswindows_sigrelse):
10510 * nt.c (mswindows_sigpause):
10511 * nt.c (mswindows_raise):
10512 * nt.c (timer_proc):
10514 * ntproc.c (find_child_console):
10515 * ntproc.c (sys_kill):
10517 * print.c (std_handle_out_external):
10518 * process-nt.c (find_child_console):
10519 * process-nt.c (send_signal_the_95_way):
10520 * process-nt.c (ensure_console_window_exists):
10521 * process-nt.c (nt_create_process):
10523 rename msw_ to mswindows_ for consistency with general convention.
10527 include nt.h, not syswindows.h.
10529 * nt.c (mswindows_fstat):
10530 * nt.c (mswindows_stat):
10531 prefix mswindows_ instead of attempting to directly override the
10532 library functions. fix declarations.
10535 include syswindows.h. move some sysdep.h stuff here.
10538 include syswindows.h, not <windows.h>.
10546 * sysdep.c (sys_fstat):
10547 * sysdep.c (sys_stat):
10548 call mswindows versions when appropriate.
10551 move mswin decls to nt.h.
10554 add long comment describing appropriate use of the various windows
10557 2000-06-11 Ben Wing <ben@xemacs.org>
10559 * device-x.c: Correct doc string for sixth arg of x-get-resource.
10561 2000-06-10 Ben Wing <ben@xemacs.org>
10563 * Makefile.in.in (release):
10564 Correction to make sure xemacs.exe always dumped when correct.
10568 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10570 * buffer.c (set_buffer_internal):
10571 [[[[2]]]]: Remove HAVE_FEP code.
10573 * buffer.c (init_initial_directory):
10577 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10581 * callproc.c (call_process_cleanup):
10582 * callproc.c (Fold_call_process_internal):
10583 * callproc.c (child_setup):
10584 * callproc.c (getenv_internal):
10585 * callproc.c (init_callproc):
10586 * callproc.c (vars_of_callproc):
10587 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10588 __CYGWIN32__ -> CYGWIN.
10589 DOS_NT -> WIN32_NATIVE.
10590 Remove MSDOS support/references, converting to WIN32_NATIVE
10592 __MINGW32__ -> MINGW.
10593 Fix windows.h includes.
10594 Remove bogus HAVE_NTGUI.
10600 mswindows_message_outputted added for use in allowing startup
10601 errors on the console to be seen.
10603 * console-msw.c (msw_ensure_console_allocated):
10604 * console-msw.c (msw_output_console_string):
10605 * console-msw.c (DHEADER):
10606 * console-msw.c (DOPAQUE_DATA):
10607 * console-msw.c (DEVENT):
10608 * console-msw.c (DCONS):
10609 * console-msw.c (DCONSCDR):
10610 * console-msw.c (DSTRING):
10611 * console-msw.c (DVECTOR):
10612 * console-msw.c (DSYMBOL):
10613 * console-msw.c (DSYMNAME):
10616 * console-stream.c (stream_init_console):
10617 Fix text/binary problems.
10620 * device-msw.c (mswindows_finish_init_device):
10621 * device-msw.c (mswindows_delete_device):
10624 * device.c (handle_asynch_device_change):
10628 * dgif_lib.c (DGifOpenFileName):
10629 * dgif_lib.c (DGifOpenFileHandle):
10630 * dgif_lib.c (DGifGetLine):
10631 * dgif_lib.c (DGifGetPixel):
10632 Added config.h/lisp.h, fix up includes.
10639 * dired.c (file_name_completion):
10640 * dired.c (Ffile_attributes):
10641 * dired.c (syms_of_dired):
10645 * dumper.c (pdump_file_unmap):
10646 * dumper.c (pdump_load):
10650 * editfns.c (Ftemp_directory):
10651 * editfns.c (user_login_name):
10652 * editfns.c (Fuser_real_login_name):
10653 * editfns.c (get_home_directory):
10656 * elhash.c (finish_marking_weak_hash_tables):
10657 [[[[5]]]]: Fix GCC warnings.
10660 * emacs.c (mswindows_handle_hardware_exceptions):
10661 * emacs.c (make_arg_list_1):
10662 * emacs.c (main_1):
10663 * emacs.c (Fkill_emacs):
10664 * emacs.c (Fdump_emacs):
10666 Fix problems with nested crashes, add long comment.
10668 * event-Xt.c (init_event_Xt_late):
10672 * event-msw.c (mswindows_dde_callback):
10673 * event-msw.c (mswindows_handle_sticky_modifiers):
10674 * event-msw.c (mswindows_wnd_proc):
10678 * events.c (character_to_event):
10682 * fileio.c (Ffile_name_directory):
10683 * fileio.c (Ffile_name_nondirectory):
10684 * fileio.c (directory_file_name):
10685 * fileio.c (Fexpand_file_name):
10686 * fileio.c (Fsubstitute_in_file_name):
10687 * fileio.c (Ffile_name_absolute_p):
10688 * fileio.c (check_executable):
10689 * fileio.c (Ffile_readable_p):
10690 * fileio.c (Ffile_accessible_directory_p):
10691 * fileio.c (Ffile_modes):
10692 * fileio.c (Funix_sync):
10693 * fileio.c (vars_of_fileio):
10696 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10698 Expand getdefdir defn.
10699 Fix bogus rename() comment.
10701 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
10702 to use standard XEmacs include files, e.g. sysfile.h, rather
10703 than system-specific includes.
10709 * frame.c (vars_of_frame):
10713 * getloadavg.c (getloadavg):
10715 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
10716 (We don't use it elsewhere in the code; just add a comment.)
10723 * glyphs-msw.c (mswindows_resource_instantiate):
10726 * glyphs-x.c (x_native_layout_instantiate):
10729 * gui-msw.c (Fmswindows_shell_execute):
10738 * lread.c (locate_file_in_directory_mapper):
10745 * mem-limits.h (get_lim_data):
10757 * nt.c (rva_to_section):
10758 * nt.c (mswindows_executable_type):
10760 Fix closedir() defn.
10763 [[[[8]]]]: *_OK defs moved to sysfile.h.
10772 * print.c (std_handle_out_external):
10776 * process-nt.c (nt_create_process):
10778 try to fix process quoting somewhat.
10780 * process-unix.c (unix_create_process):
10784 * process.c (vars_of_process):
10791 * realpath.c (xrealpath):
10794 * redisplay-tty.c (init_tty_for_redisplay):
10804 * sheap.c (more_static_core):
10805 * sheap.c (report_sheap_usage):
10809 * signal.c (alarm_signal):
10816 * strftime.c (zone_name):
10819 * symsinit.h (init_sunpro):
10823 commctrl.h not in Cygwin b20.1.
10826 * sysdep.c (endif):
10827 * sysdep.c (sys_subshell):
10828 * sysdep.c (init_baud_rate):
10829 * sysdep.c (emacs_get_tty):
10830 * sysdep.c (emacs_set_tty):
10831 * sysdep.c (tty_init_sys_modes_on_device):
10832 * sysdep.c (init_system_name):
10833 * sysdep.c (sys_open):
10834 * sysdep.c (interruptible_open):
10835 * sysdep.c (sys_fopen):
10836 * sysdep.c (sys_mkdir):
10837 * sysdep.c (sys_rename):
10838 * sysdep.c (get_process_times_1):
10845 * sysdir.h (DIRENTRY_NONEMPTY):
10848 * sysdll.c (dll_init):
10854 added text/binary defs.
10860 * sysproc.h (EDESTADDRREQ):
10861 * sysproc.h (poll_fds_for_input):
10878 Always define WIN32_LEAN_AND_MEAN.
10880 * unexcw.c (unexec):
10884 * unexec.c (copy_text_and_data):
10885 * unexec.c (adjust_lnnoptrs):
10889 * unexnt.c (_start):
10892 2000-06-07 Ben Wing <ben@xemacs.org>
10894 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
10895 was used only as a model. We've long since extracted any useful
10896 logic or code out of this. (I just did an exhaustive search.)
10898 * s\msdos.h: Removed.
10900 * s\windows95.h: Removed.
10902 2000-06-10 Ben Wing <ben@xemacs.org>
10906 Don't use extern with fun defs.
10910 Remove nt\inc include.
10911 Remove getdisk, getdefdir. (The former is unused, the latter
10912 expanded in fileio.h.)
10915 * s\windowsnt.h (WIN32_NATIVE):
10916 * s\windowsnt.h (HAVE_STRCASECMP):
10918 Add long comment about preprocessor changes.
10919 Remove getdisk, getdefdir. (The former is unused, the latter
10920 expanded in fileio.h.)
10922 2000-06-10 Ben Wing <ben@xemacs.org>
10931 Remove bogus/unused NO_SOCK_SIGIO.
10933 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
10935 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
10938 2000-06-04 Mike Sperber <mike@xemacs.org>
10940 * casetab.c (set_case_table): For `set-standard-case-table',
10941 actually deposit the new case tables where the rest of XEmacs can
10944 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
10946 * data.c (Faset): Don't cast XCHAR() to unsigned char.
10948 2000-06-05 Ben Wing <ben@xemacs.org>
10950 * callproc.c (child_setup): Don't do close_load_descs() under
10951 MS Windows. Put in a comment explaining why.
10953 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
10955 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
10956 Toolkit shell" which breaks `kill-compilation' on Windows NT
10957 native, retaining STDERR handling improvements.
10959 2000-06-01 Andreas Jaeger <aj@suse.de>
10961 * s/s390.h: Support for S390, based on a patch by Martin
10962 Schwidefsky <schwidefsky@de.ibm.com>.
10964 2000-05-30 Andy Piper <andy@xemacs.org>
10966 * window.c (allocate_window):
10967 (make_dummy_parent):
10968 (Fset_window_configuration): use new hashtable type.
10970 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
10971 (struct image_instantiator_methods):
10972 (struct Lisp_Image_Instance): make instance geometry signed.
10974 * glyphs.c (instantiate_image_instantiator):
10975 (image_instance_query_geometry):
10976 (image_instance_layout):
10977 (image_instance_layout):
10978 (query_string_geometry):
10979 (text_query_geometry):
10980 (image_instantiate):
10981 (image_instantiate):
10982 (cache_subwindow_instance_in_frame_maybe):
10983 (subwindow_query_geometry): make instance geometry signed.
10985 * glyphs-widget.c (widget_query_geometry):
10987 (button_query_geometry):
10988 (tree_view_query_geometry):
10989 (tab_control_query_geometry):
10990 (layout_query_geometry):
10992 (native_layout_layout): make instance geometry signed.
10994 2000-05-29 Olivier Galibert <galibert@pobox.com>
10996 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
10999 * general.c (syms_of_general): Add Qfull_assoc symbol.
11001 * data.c (finish_marking_weak_lists): Mark full-assoc lists
11003 (decode_weak_list_type): Decode full-assoc type.
11004 (encode_weak_list_type): Encode full-assoc type.
11005 (Fmake_weak_list): Update doc string.
11007 2000-05-30 Andy Piper <andy@xemacs.org>
11009 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11011 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11012 (decode_hash_table_weakness): ditto.
11013 (Fhash_table_weakness): ditto.
11014 (Fhash_table_type): ditto.
11015 (finish_marking_weak_hash_tables): ditto.
11016 (hash_table_weakness_validate): ditto.
11017 (syms_of_elhash): ditto.
11019 2000-05-28 Martin Buchholz <martin@xemacs.org>
11021 * XEmacs 21.2.34 is released.
11023 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
11025 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11027 (updating_line_start_cache): Gone.
11028 (regenerate_window): Replace resetting of VERTICAL_CLIP by
11029 generic code to force a minimum of 1 line laid out in the
11032 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
11034 * glyphs.c (instantiate_image_instantiator): Check for initialized
11035 height & width no longer special cases IMAGE_NOTHING.
11036 (nothing_instantiate): Set height and width of instance.
11038 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
11040 * unexelf.c (unexec): Search for ".data" section.
11041 Initialize new_data2_offset from old_data_index.
11042 Remove redundant check for ElfW.
11044 2000-05-23 Andy Piper <andy@xemacs.org>
11046 * glyphs.c (get_image_instantiator_governing_domain): allow more
11047 specific domains as the governing domain rather than expecting an
11048 exact match. This fixes problems with layouts.
11050 2000-05-22 Andy Piper <andy@xemacs.org>
11052 * redisplay-output.c (compare_runes): check for non-images
11054 * glyphs.c (set_glyph_dirty_p): ditto.
11055 (update_glyph_cachel_data): ditto.
11057 * glyphs-widget.c (layout_post_instantiate): ditto.
11058 (layout_post_instantiate): ditto.
11060 * event-msw.c (mswindows_wnd_proc): warning removal.
11062 2000-05-12 Craig Lanning <CraigL@DyCon.com>
11064 * s\mingw32.h: Added #undef for CLASH_DETECTION.
11066 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11068 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11070 * nt.c (rva_to_section): mingw32 needs rva_to_section.
11071 (mswindows_executable_type): mingw32 now has enough headers for
11074 2000-05-20 Andy Piper <andy@xemacs.org>
11076 * console-msw.c (mswindows_output_last_error): ; -> ,
11078 2000-05-12 Andy Piper <andy@xemacs.org>
11080 * console-msw.c (FROB): compare ints with ints.
11082 2000-05-11 Andy Piper <andy@xemacs.org>
11084 * glyphs-x.c (x_finalize_image_instance): make minimal build
11087 2000-05-20 Ben Wing <ben@xemacs.org>
11090 * event-Xt.c (vars_of_event_Xt):
11091 move modifier-keys-are-sticky to event-stream.c.
11094 * event-msw.c (mswindows_enqueue_mouse_button_event):
11095 * event-msw.c (key_needs_default_processing_p):
11096 * event-msw.c (XEMSW_LCONTROL):
11097 * event-msw.c (mswindows_handle_sticky_modifiers):
11098 * event-msw.c (FROB):
11099 * event-msw.c (clear_sticky_modifiers):
11100 * event-msw.c (output_modifier_keyboard_state):
11101 * event-msw.c (output_alt_keyboard_state):
11102 * event-msw.c (mswindows_wnd_proc):
11103 * event-msw.c (mswindows_modifier_state):
11104 * event-msw.c (emacs_mswindows_handle_magic_event):
11105 implement sticky modifiers.
11108 * event-stream.c (vars_of_event_stream):
11109 move modifier-keys-are-sticky here.
11112 add CHECK_FUNCTION.
11115 implement map-range-table.
11118 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
11120 * redisplay-tty.c (reset_tty_modes):
11121 (tty_redisplay_shutdown): Adjust argument type to
11122 tty_frame_output_end.
11124 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
11126 * eval.c (Fbacktrace): Don't output a line with only right
11129 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
11131 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11132 (Fpq_reset_poll): Ditto.
11134 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
11136 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11138 2000-05-16 Ben Wing <ben@xemacs.org>
11141 * buffer.c (dfc_convert_to/from_internal_format):
11142 * buffer.c (reinit_vars_of_buffer):
11143 Fix conversion functions to allow reentrancy.
11146 * console-msw.c (mswindows_output_last_error):
11147 New fun, generally useful -- output a human-readable
11148 version of GetLastError() on the console.
11151 * console-msw.h (struct mswindows_frame):
11152 Changes for DeferWindowPos. Declare mswindows_output_last_error().
11154 * console-stream.c (stream_output_begin):
11155 * console-stream.c (stream_output_end):
11156 * console-stream.c (stream_output_vertical_divider):
11157 * console-stream.c (stream_clear_region):
11158 * console-stream.c (stream_flash):
11159 * console-stream.c (console_type_create_stream):
11160 Delete blank stream methods, not needed.
11162 * console.h (struct console_methods):
11163 Split begin/end methods into window and frame.
11166 * event-msw.c (mswindows_handle_paint):
11167 * event-msw.c (output_alt_keyboard_state):
11168 * event-msw.c (mswindows_wnd_proc):
11169 * event-msw.c (vars_of_event_mswindows):
11170 Comment about problems with ignored-expose.
11171 Define mswindows-debug-events; not really implemented.
11173 * frame-msw.c (mswindows_init_frame_1):
11177 * glyphs-msw.c (begin_defer_window_pos):
11178 * glyphs-msw.c (mswindows_unmap_subwindow):
11179 * glyphs-msw.c (mswindows_map_subwindow):
11180 * glyphs-msw.c (mswindows_resize_subwindow):
11181 Use DeferWindowPos to reduce flashing when mapping/unmapping.
11183 * glyphs.c (make_image_instance_1):
11186 * gutter.c (Fredisplay_gutter_area):
11187 Use new begin/end methods.
11189 * lisp.h (Dynarr_new2):
11193 * redisplay-msw.c (mswindows_frame_output_begin):
11194 * redisplay-msw.c (mswindows_frame_output_end):
11195 * redisplay-msw.c (console_type_create_redisplay_mswindows):
11196 New begin/end methods -- handle DeferWindowPos.
11198 * redisplay-output.c (redisplay_move_cursor):
11199 * redisplay-output.c (redraw_cursor_in_window):
11200 * redisplay-output.c (redisplay_update_line):
11201 * redisplay-output.c (redisplay_output_window):
11202 New begin/end methods.
11205 * redisplay-tty.c (tty_frame_output_begin):
11206 * redisplay-tty.c (tty_frame_output_end):
11207 * redisplay-tty.c (console_type_create_redisplay_tty):
11208 New begin/end methods.
11211 * redisplay-x.c (x_window_output_begin):
11212 * redisplay-x.c (x_window_output_end):
11213 * redisplay-x.c (console_type_create_redisplay_x):
11214 New begin/end methods.
11216 * redisplay.c (redisplay_frame):
11217 * redisplay.c (Fredisplay_echo_area):
11218 New begin/end methods.
11219 use MAYBE_DEVMETH for clear_frame; it may not exist.
11221 * window.h (WINDOW_XFRAME):
11222 WINDOW_XFOO macros -- get locale and decode struct pointer.
11225 2000-05-12 Ben Wing <ben@xemacs.org>
11228 * emacs.c (ensure_no_quitting_from_now_on):
11229 * emacs.c (fatal_error_signal):
11230 * emacs.c (mswindows_handle_hardware_exceptions):
11232 * emacs.c (Fkill_emacs):
11233 * emacs.c (shut_down_emacs):
11234 * emacs.c (assert_failed):
11235 various improvements in fatal error handling.
11238 move preparing_for_armageddon to emacs.c.
11241 declare fatal_error_in_progress.
11244 * print.c (std_handle_out_external):
11245 * print.c (std_handle_out_va):
11246 * print.c (stderr_out):
11247 * print.c (stdout_out):
11248 use console under mswin when no standard output.
11249 don't do code conversion during fatal error.
11251 * scrollbar.c (Fscrollbar_page_up):
11252 * scrollbar.c (Fscrollbar_page_down):
11253 fix missing else. reindent.
11255 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
11259 * glyphs.h (GLYPH_CACHEL_DESCENT):
11260 (GLYPH_CACHEL_DESCENT):
11261 (GLYPH_CACHEL_DESCENT):
11262 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11263 used in case these are inline functions.
11264 Use more absurd values to error check.
11266 include window.h for error check functions.
11268 2000-05-11 Ben Wing <ben@xemacs.org>
11270 * cmdloop.c (Freally_early_error_handler):
11271 Display message box under windows; otherwise, message will disappear
11272 before it can be viewed.
11275 * console-msw.c (Fmswindows_message_box):
11276 * console-msw.c (FROB):
11277 * console-msw.c (syms_of_console_mswindows):
11278 Define new fun `mswindows-message-box'.
11279 #### I will merge this into `popup-dialog-box'; just give me
11283 * general.c (syms_of_general):
11284 Some new symbols used in `mswindows-message-box'.
11287 * glyphs.c (Fset_image_instance_property):
11288 put warning in this fun.
11291 * glyphs.h (GLYPH_CACHEL_WIDTH):
11292 * glyphs.h (GLYPH_CACHEL_ASCENT):
11293 * glyphs.h (GLYPH_CACHEL):
11294 * glyphs.h (GLYPH_CACHEL_GLYPH):
11295 define error-checking versions to try to catch a bug i've seen --
11296 redisplay gets in an infinite loop because the glyph width of the
11297 continuation glyph is 65535.
11300 Extern message-box stuff.
11302 * window.c (allocate_window):
11303 * window.c (make_dummy_parent):
11304 * window.c (Fset_window_configuration):
11305 Use EQUAL not EQ for subwindow caches to make them work a bit
11306 better. (Something is still very broken.)
11309 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
11311 * glyphs.c (image_instantiate): Suppress gcc warnings.
11312 (Fmake_image_instance): Fix doc string.
11313 * specifier.c (Fmake_specifier): Ditto.
11315 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
11317 * paths.h.in (PATH_LOCK): Removed.
11318 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11319 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11321 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
11323 * fns.c (Ffeaturep): Update e-mail address in doc-string.
11324 Document (featurep '(and xemacs 21.02)).
11326 2000-05-09 Ben Wing <ben@xemacs.org>
11328 * buffer.c (complex_vars_of_buffer):
11329 update modeline-format doc.
11332 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11335 timeline of all released versions of Emacs, for use in creating
11336 authorship comments and in synching up.
11338 * glyphs-widget.c (image_instantiator_buttons):
11339 * glyphs-widget.c (image_instantiator_edit_fields):
11340 * glyphs-widget.c (image_instantiator_combo_box):
11341 * glyphs-widget.c (image_instantiator_scrollbar):
11342 * glyphs-widget.c (image_instantiator_progress_guage):
11343 * glyphs-widget.c (image_instantiator_tree_view):
11344 * glyphs-widget.c (image_instantiator_tab_control):
11345 * glyphs-widget.c (image_instantiator_labels):
11346 * glyphs-widget.c (image_instantiator_layout):
11347 * glyphs-widget.c (image_instantiator_native_layout):
11348 rename decode_domain method to governing_domain.
11351 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11352 * glyphs.c (add_entry_to_device_ii_format_list):
11353 make sure we don't put an entry more than once into the list.
11354 * glyphs.c (check_instance_cache_mapper):
11355 *************************************************************
11356 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11358 *************************************************************
11359 * glyphs.c (get_image_instantiator_governing_domain):
11360 clean up, expand on new concept of governing domain.
11361 * glyphs.c (instantiate_image_instantiator):
11362 * glyphs.c (allocate_image_instance):
11363 use governing_domain instead of cache_domain in naming.
11364 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11365 * glyphs.c (make_image_instance_1):
11366 * glyphs.c (Fmake_image_instance):
11367 allow for any domain (not just device), and process the
11368 governing domain correctly. very big doc fix.
11369 * glyphs.c (Fimage_instance_domain):
11370 new primitive, to retrieve the governing domain of an image instance.
11371 * glyphs.c (image_instantiate):
11372 use new governing_domain stuff. this fixes a crash you could get
11373 by instantiating certain widget glyphs in frame locales. (should
11374 signal an error instead of crashing.)
11375 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11376 * glyphs.c (Fglyphp): clean up doc.
11377 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11378 * glyphs.c (syms_of_glyphs):
11379 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11380 * glyphs.c (image_instantiator_format_create): add some comments about
11382 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11383 for current-display-table. (Apparently Hrjove implemented in 1998 a
11384 design I wrote up in 1996, but didn't update the doc string.)
11386 * glyphs.h: clean up a doc string.
11387 * glyphs.h (governing_domain):
11388 * glyphs.h (struct image_instantiator_methods):
11389 changes for governing_domain stuff.
11392 * gutter.c (Fgutter_specifier_p):
11393 * gutter.c (Fgutter_size_specifier_p):
11394 * gutter.c (Fgutter_visible_specifier_p):
11396 * objects.c (Fcolor_specifier_p):
11397 * objects.c (Ffont_specifier_p):
11398 * objects.c (Fface_boolean_specifier_p):
11399 doc strings moved to make-*-specifier.
11401 * redisplay.c (add_disp_table_entry_runes_1):
11402 * redisplay.c (generate_fstring_runes):
11403 * redisplay.c (screen):
11404 add random comments and doc strings.
11407 * specifier.c (Fmake_specifier):
11408 major overhaul of this doc string.
11410 * specifier.c (Fvalid_specifier_domain_p):
11411 comment about the bogosity of image instances being domains.
11412 * specifier.c (decode_domain):
11413 now non-static, used in glyphs.c.
11414 * specifier.c (specifier_instance):
11415 comment about the bogosity of image instances being domains.
11416 * specifier.c (Fgeneric_specifier_p):
11417 move doc string to make-generic-specifier.
11418 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11422 * specifier.h (DOMAIN_FRAME):
11423 * specifier.h (DOMAIN_LIVE_P):
11424 * specifier.h (DOMAIN_XDEVICE):
11426 add comments about problems with these macros.
11427 prototype for decode_domain.
11430 * toolbar.c (Ftoolbar_specifier_p):
11431 move doc string to `make-toolbar-specifier'.
11433 * window.c (window_unmap_subwindows_cache_mapper):
11434 *************************************************************
11435 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11437 *************************************************************
11439 2000-05-09 Andy Piper <andy@xemacs.org>
11441 * glyphs.h: declare reset_frame_subwindow_instance_cache.
11443 * window.c (Fset_window_configuration): reset the frame subwindow
11444 cache and re-initialize the window subwindow caches.
11446 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11448 2000-05-09 Ben Wing <ben@xemacs.org>
11450 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11453 2000-04-26 Mike Woolley <mike@bulsara.com>
11455 * ntheap.c: Changed recreate_heap to limit the amount reserved
11456 for the heap to that which is actually available. Also now
11457 displays a message box (with some dignostics) in the event that
11458 it still can't start.
11460 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11462 * callproc.c (Fold_call_process_internal): GCPRO path
11464 2000-05-08 Jan Vroonhof <jan@xemacs.org>
11466 Patch by Bill Perry.
11468 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11469 back data instead of #ifdef.
11470 (Fscrollbar_page_down): ditto.
11472 2000-05-07 Ben Wing <ben@xemacs.org>
11475 Kludge for defining Qmswindows_tstr.
11478 * nt.c (open_input_file):
11479 * nt.c (open_output_file):
11480 * nt.c (rva_to_section):
11481 * nt.c (mswindows_executable_type):
11482 Move all memory-mapped-file routines here (some were in unexnt.c,
11483 which is bad because they are used by process-nt.c, and unexnt
11484 won't be around when portable dumping). Synched the above routines
11488 Removed ifdef'd out bogus code.
11489 Fixed some prototypes.
11491 * nt.h (file_data):
11492 * nt.h (OFFSET_TO_RVA):
11493 * nt.h (RVA_TO_OFFSET):
11494 * nt.h (RVA_TO_PTR):
11495 Moved the memory-mapped-file structures, macros and prototypes
11496 here, to parallel nt.c. ntheap.h should really be removed
11497 entirely, and it's a non-portable-dumper specific file.
11499 * ntheap.h (round_to_next):
11500 Moved the memory-mapped-file structures, macros and prototypes
11503 * ntproc.c (compare_env):
11504 Moved rva_to_section and mswindows_executable_type to nt.c.
11505 Moved compare_env to process-nt.c.
11506 ntproc.c will die, one day.
11508 * ntproc.c (sys_spawnve):
11509 Account for win32_ -> mswindows_.
11512 * process-nt.c (struct nt_process_data):
11513 * process-nt.c (ensure_console_window_exists):
11514 * process-nt.c (compare_env):
11515 * process-nt.c (nt_create_process):
11516 * process-nt.c (nt_kill_process_by_pid):
11517 * process-nt.c (syms_of_process_nt):
11518 * process-nt.c (vars_of_process_nt):
11519 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11520 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11521 changes). Eliminate our old `nt-quote-process-args' mechanism.
11522 Synch up nt_create_process with FSF 20.6 sys_spawnve.
11523 Move compare_env here from ntproc.c.
11525 * process.c (Fprocess_send_region):
11526 Takes an optional fourth argument, BUFFER, which should fix some
11527 problems with call-process.
11530 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11533 Move ICC_BAR_CLASSES to syscommctrl.h.
11534 Add preliminary macros for MSWindows/Mule. More to come.
11537 * unexnt.c (unexec):
11538 open_output_file moved to nt.c.
11541 2000-05-05 Andy Piper <andy@xemacs.org>
11543 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11544 instance from the frame cache also since GC may catch up too late
11545 to make frame deletion sane.
11547 2000-05-04 Andy Piper <andy@xemacs.org>
11549 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11550 (x_finalize_image_instance): ungcpro on deletion.
11552 * glyphs.c (image_instantiator_format_create): give pointers a
11553 query geometry method so that the geometry is at least set.
11555 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11556 initialize layouts if using widgets.
11558 2000-05-03 Andy Piper <andy@xemacs.org>
11560 * nt.c: remove bogus reference to sysmmsystem.h
11562 * gui-x.c (popup_selection_callback): fix no selection abort.
11564 2000-05-02 Andy Piper <andy@xemacs.org>
11566 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11567 (mswindows_widget_instantiate): ditto.
11569 * glyphs-widget.c (initialize_widget_image_instance): initialize
11570 children correctly.
11571 (widget_instantiate): cope with children and items in the same
11574 * glyphs.c (mark_image_instance): cope with children as a first
11576 (image_instance_equal): ditto.
11577 (image_instance_hash): ditto.
11578 (image_instance_changed): ditto.
11580 2000-04-30 Andy Piper <andy@xemacs.org>
11582 * glyphs.c (subwindow_query_geometry): new function. Return some
11584 (subwindow_instantiate): don't assign dimensions if none have been
11586 (image_instantiator_format_create): add subwindow_query_geometry.
11587 (print_image_instance): cope with layouts as widgets.
11589 2000-04-29 Andy Piper <andy@xemacs.org>
11591 * frame.c (delete_frame_internal): call
11592 free_frame_subwindow_instance_cache so that all subwindows are
11593 finalized before their parent.
11594 (mark_frame): remove subwindow_cachels.
11595 (Fmake_frame): remove subwindow_cachel manipulation.
11596 (allocate_frame_core): subwindow_instance_cache is a weak list.
11597 (delete_frame_internal): set subwindow_instance_cache to nil.
11599 * glyphs-msw.c (mswindows_finalize_image_instance): make double
11601 (mswindows_finalize_image_instance): use the device
11602 not the domain as the domain may have died already.
11604 * glyphs-x.c (x_finalize_image_instance): ditto.
11605 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11608 * redisplay-output.c (redisplay_unmap_subwindows): update for
11609 subwindow instance cache as a weak list.
11610 (redisplay_unmap_subwindows_maybe): ditto.
11611 (redisplay_unmap_subwindows_except_us): ditto.
11613 * glyphs.c (unmap_subwindow): error checking will check the domain
11614 so don't deal with it here. Don't use cachels anymore.
11615 (map_subwindow): ditto.
11616 (update_subwindow_cachel_data): remove old accessor names.
11617 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11618 (Fresize_subwindow): don't update cachel.
11619 (mark_subwindow_cachels):
11620 (update_subwindow_cachel_data):
11621 (add_subwindow_cachel):
11622 (get_subwindow_cachel_index):
11623 (update_subwindow_cachel):
11624 (reset_subwindow_cachels):
11625 (mark_subwindow_cachels_as_not_updated): deleted.
11626 (cache_subwindow_instance_in_frame_maybe): new function. Add a
11627 subwindow instance to the frame cache.
11628 (find_matching_subwindow): update for subwindow instance cache as
11630 (update_widget_instances): ditto.
11631 (image_instance_type_to_mask):inlined.
11632 (free_frame_subwindow_instance_cache): new function. finalize all
11633 subwindows that are instantiated.
11635 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11636 of cachel information.
11637 (IMAGE_INSTANCE_DISPLAY_X):
11638 (IMAGE_INSTANCE_DISPLAY_Y):
11639 (IMAGE_INSTANCE_DISPLAY_WIDTH):
11640 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11641 (XIMAGE_INSTANCE_DISPLAY_X):
11642 (XIMAGE_INSTANCE_DISPLAY_Y):
11643 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11644 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11645 remove subwindow_cachel structure and function references.
11646 (image_instance_type_to_mask): inline from glyphs.c
11648 * redisplay.c (redisplay_frame): remove subwindow_cachel
11651 * frame.h (struct frame): remove subwindow_cachels.
11652 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11654 * frameslots.h: add subwindow_instance_cache.
11656 * window.c (replace_window): check subwindow cache of replacement.
11657 (window_unmap_subwindows_cache_mapper):
11658 (window_unmap_subwindows): new functions. Unmap all subwindows
11659 cached on this window.
11660 (mark_window_as_deleted): unmap all subwindows.
11662 2000-04-27 Andy Piper <andy@xemacs.org>
11664 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11666 * glyphs-widget.c (widget_layout): return something.
11667 (layout_layout): return something. Fail if not initialized.
11668 (layout_query_geometry): ditto.
11669 (image_instantiator_native_layout): new function. Initialized the
11670 native layout type.
11671 (widget_instantiate): don't do layout stuff here.
11673 * glyphs.c (instantiate_image_instantiator): reorded calling or
11674 instantiate and post_instantiate with layout in between.
11675 (image_instance_layout): be more selective about deciding whether
11676 the layout has been done or not.
11678 * glyphs.h (struct image_instantiator_methods): return a value
11679 from layout_method.
11681 2000-04-26 Andy Piper <andy@xemacs.org>
11683 * glyphs.c (allocate_image_instance): make initial width and
11684 height unspecified. Set initialized to 0.
11686 * syscommctrl.h new file. Encapsulates commctrl.h.
11688 * syswindows.h new file. Encapsulates windows.h.
11690 * ntplay.c: use new syswindows.h and syscommctrl.h header.
11692 * console-msw.h: ditto.
11694 * redisplay-tty.c (tty_output_display_block): remove layout references.
11696 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11697 window handle rather than just the frame.
11699 * glyphs.c (mark_image_instance): remove layout references.
11700 (print_image_instance): ditto.
11701 (image_instance_equal): ditto.
11702 (image_instance_hash): ditto.
11703 (decode_image_instance_type): ditto.
11704 (encode_image_instance_type): ditto.
11705 (image_instantiate): ditto.
11706 (allocate_glyph): ditto.
11707 (Fimage_instance_height): ditto.
11708 (Fimage_instance_width): ditto.
11709 (update_subwindow): ditto.
11711 * redisplay-x.c (x_output_display_block): recode for layouts as
11714 * redisplay-output.c (redisplay_output_layout): recode for layouts
11716 (compare_runes): remove layout references.
11718 * redisplay-msw.c (mswindows_output_display_block): recode for
11719 layouts as widgets.
11721 * glyphs-widget.c (image_instantiator_layout): remove
11722 layout_possible_dest_types.
11723 (layout_possible_dest_types): deleted.
11725 * glyphs.h (image_instance_type): remove layout references.
11726 (struct Lisp_Image_Instance): ditto. Add initialized flag.
11727 (IMAGE_INSTANCE_INITIALIZED): new accessor.
11728 (XIMAGE_INSTANCE_INITIALIZED): ditto.
11730 2000-04-25 Andy Piper <andy@xemacs.org>
11732 * glyphs-widget.c (image_instantiator_buttons):
11733 (image_instantiator_edit_fields):
11734 (image_instantiator_combo_box):
11735 (image_instantiator_scrollbar):
11736 (image_instantiator_progress_guage):
11737 (image_instantiator_tree_view):
11738 (image_instantiator_tab_control):
11739 (image_instantiator_labels):
11740 (image_instantiator_layout): call default post_instantiate method.
11741 (widget_post_instantiate): new function. Simply lays out the
11744 * glyphs.h (struct image_instantiator_methods): add
11745 post_instantiate method.
11747 * glyphs.c (instantiate_image_instantiator): add post_instantiate
11750 2000-04-23 Andy Piper <andy@xemacs.org>
11752 * glyphs.h (struct image_instantiator_methods): add
11753 decode_domain_method.
11754 (struct Lisp_Image_Instance): remove subwindow frame - it can be
11755 derived from the domain.
11756 (IMAGE_INSTANCE_FRAME): new accessor.
11757 (XIMAGE_INSTANCE_FRAME): ditto.
11759 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11760 instead of _SUBWINDOW_FRAME.
11761 (finalize_image_instance): ditto.
11762 (Fimage_instance_foreground): ditto.
11763 (Fimage_instance_background): ditto.
11764 (image_instantiate): ditto.
11765 (update_subwindow_cachel): ditto.
11766 (update_subwindow): ditto.
11767 (unmap_subwindow): ditto.
11768 (map_subwindow): ditto
11769 (subwindow_instantiate): ditto.
11770 * glyphs-msw.c (mswindows_update_widget): ditto.
11771 (mswindows_progress_gauge_instantiate): ditto.
11772 (mswindows_tab_control_update): ditto.
11773 * glyphs-x.c (x_update_widget): ditto.
11774 (x_widget_instantiate): ditto.
11775 (x_tab_control_instantiate): ditto.
11776 (x_tab_control_update): ditto.
11777 * event-msw.c (mswindows_wnd_proc): ditto
11779 * glyphs-widget.c (image_instantiator_layout): use
11780 subwindow_decode_domain.
11781 (image_instantiator_buttons): ditto.
11782 (image_instantiator_edit_fields): ditto.
11783 (image_instantiator_combo_box): ditto.
11784 (image_instantiator_scrollbar): ditto.
11785 (image_instantiator_progress_guage): ditto.
11786 (image_instantiator_tree_view): ditto.
11787 (image_instantiator_tab_control): ditto.
11788 (image_instantiator_labels): ditto.
11789 (image_instantiator_layout): ditto.
11791 * glyphs.c: add instance error checking to many functions.
11792 (instantiate_image_instantiator): decode device from cache_domain.
11793 (image_instantiate): partially rewrite by using
11794 decode_image_instantiator_domain to determine what domain the
11795 instance needs to be cached in.
11796 (decode_image_instantiator_domain): new function. Determine what
11797 domain the image needs to be cached in.
11798 (check_window_subwindow_cache): new error checking function.
11799 (check_instance_cache_mapper): ditto.
11800 (check_image_instance_structure): ditto.
11801 (subwindow_decode_domain): new function. Encodes a window as a
11802 subwindow's cache domain.
11803 (image_instantiator_format_create): use it for text and
11806 2000-04-21 Andy Piper <andy@xemacs.org>
11808 * glyphs.c (image_instance_device): new function.
11809 (image_instance_frame): new function.
11810 (image_instance_window): new function.
11811 (image_instance_live_p): new function.
11813 * window.c (mark_window_as_deleted): reset the subwindow_instance_
11816 * glyphs.h (struct Lisp_Image_Instance): device->domain.
11817 (IMAGE_INSTANCE_DOMAIN): new accessor.
11818 (XIMAGE_INSTANCE_DOMAIN): ditto.
11820 * glyphs-x.c (x_finalize_image_instance): device->domain.
11822 * glyphs-msw.c (init_image_instance_geometry): device->domain.
11823 (mswindows_finalize_image_instance): ditto.
11825 * glyphs-eimage.c (jpeg_instantiate): device->domain.
11826 (gif_instantiate): ditto.
11827 (png_instantiate): ditto.
11828 (tiff_instantiate): ditto.
11830 * glyphs.c (instantiate_image_instantiator): use domain rather
11832 (mark_image_instance): device -> domain.
11833 (print_image_instance): ditto.
11834 (finalize_image_instance): ditto.
11835 (image_instance_equal): ditto.
11836 (allocate_image_instance): ditto.
11837 (Fcolorize_image_instance): ditto.
11838 (query_string_geometry): ditto.
11839 (image_instantiate): ditto
11840 (query_string_font): ditto.
11841 (image_instantiate): ditto.
11842 (update_subwindow): ditto.
11843 (unmap_subwindow): ditto.
11844 (map_subwindow): ditto.
11845 (subwindow_instantiate): ditto.
11847 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
11848 (DOMAIN_FRAME): ditto.
11849 (DOMAIN_WINDOW): ditto.
11850 (DOMAIN_LIVE_P): ditto.
11851 (XDOMAIN_DEVICE): ditto.
11852 (XDOMAIN_FRAME): ditto.
11853 (XDOMAIN_WINDOW): ditto.
11855 * specifier.c (Fvalid_specifier_domain_p): add image instances as
11856 a valid specifier domain.
11858 2000-04-19 Andy Piper <andy@xemacs.org>
11860 * glyphs-widget.c (syms_of_glyphs_widget): remove
11861 widget-callback-current-channel.
11862 (vars_of_glyphs_widget): ditto.
11865 * gui.c (get_gui_callback): revert to previous behaviour.
11867 2000-04-18 Andy Piper <andy@xemacs.org>
11869 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
11870 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
11871 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
11873 * glyphs.c (image_instance_equal): add margin_width.
11874 (image_instance_hash): ditto.
11876 * glyphs-widget.c (widget_instantiate): deal with margin-width.
11877 (layout_query_geometry): ditto.
11878 (layout_layout): ditto.
11879 (syms_of_glyphs_widget): add margin-width.
11880 (image_instantiator_layout): allow margin-width.
11882 * glyphs.c (update_widget_instances): make a normal function.
11883 (syms_of_glyphs): remove Qupdate_widget_instances.
11886 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
11887 so that we don't corrupt ideas about the last event or
11888 command. Remove widget-callback-current-channel fiddling.
11889 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11891 2000-05-01 Martin Buchholz <martin@xemacs.org>
11893 * XEmacs 21.2.33 is released.
11895 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
11897 * make-src-depend: Allow dots in header file name.
11899 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
11901 * mule-charset.h (struct charset_lookup): Add
11902 next_allocated_1_byte_leading_byte and
11903 next_allocated_2_byte_leading_byte.
11904 * mule-charset.c: Move above two variables so that those values
11907 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
11909 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
11910 when string length is zero.
11911 (find_charsets_in_emchar_string): Ditto.
11913 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
11915 * lisp.h: extern Qdialog and Qmenubar.
11917 * gui-x.c: added events.h.
11918 also fixed typo which made the file uncompilable.
11920 * general.c: Added Qmenubar and Qdialog
11922 2000-04-28 Ben Wing <ben@xemacs.org>
11924 * frame-msw.c (mswindows_init_frame_1):
11925 * frame-msw.c (mswindows_mark_frame):
11926 * event-msw.c (mswindows_enqueue_dispatch_event):
11928 * console-msw.h (struct mswindows_frame):
11929 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
11930 there are now three hash tables for callbacks.
11931 mswindows_enqueue_dispatch_event is no longer static.
11933 * dialog-x.c (maybe_run_dbox_text_callback):
11934 * dialog-x.c (dbox_descriptor_to_widget_value):
11935 switch to new cons3 form for callbacks.
11937 * glyphs-msw.c (mswindows_register_gui_item):
11938 * glyphs-msw.c (mswindows_widget_instantiate):
11939 * glyphs-msw.c (add_tree_item):
11940 * glyphs-msw.c (add_tab_item):
11941 new image instance parameter, so it can be passed to callback-ex.
11942 respect :callback-ex as well as :callback.
11944 * glyphs-widget.c (VALID_GUI_KEYWORDS):
11947 * glyphs.c (print_image_instance):
11948 prettify, e.g. now prints widget type.
11951 certain funs have new image instance parameter.
11954 * gui.c (get_gui_callback):
11955 * gui.c (gui_item_add_keyval_pair):
11956 * gui.c (gui_item_init):
11957 * gui.c (gui_add_item_keywords_to_plist):
11958 * gui.c (mark_gui_item):
11959 * gui.c (gui_item_hash):
11960 * gui.c (gui_item_equal):
11961 * gui.c (copy_gui_item):
11962 * gui.c (syms_of_gui):
11963 recognize callback-ex in a number of places.
11964 also, fix the annoying "can't get out of yes-no dialog" bug.
11967 * gui.h (struct Lisp_Gui_Item):
11968 recognize callback-ex in a number of places.
11970 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11971 new parameter in button_item_to_widget_value.
11973 * glyphs-x.c (x_update_widget):
11974 * glyphs-x.c (x_button_instantiate):
11975 * glyphs-x.c (x_button_update):
11976 * glyphs-x.c (x_progress_gauge_instantiate):
11977 * glyphs-x.c (x_edit_field_instantiate):
11978 * glyphs-x.c (x_combo_box_instantiate):
11979 * glyphs-x.c (x_tab_control_instantiate):
11980 * glyphs-x.c (x_label_instantiate):
11981 new image instance parameter in various places.
11984 * event-Xt.c (enqueue_Xt_dispatch_event):
11985 this fun gets exported.
11988 * gui-msw.c (mswindows_handle_gui_wm_command):
11989 handle both :callback and :callback-ex, and generate our own
11990 event because it's one of the callback-ex arguments.
11993 * gui-x.c (popup_selection_callback):
11994 handle both :callback and :callback-ex, and generate our own
11995 event because it's one of the callback-ex arguments.
11996 * gui-x.c (button_item_to_widget_value):
11997 * gui-x.c (gui_items_to_widget_values_1):
11998 * gui-x.c (gui_item_children_to_widget_values):
11999 * gui-x.c (gui_items_to_widget_values):
12000 new image instance parameter in various places.
12002 * fns.c (Freplace_list):
12003 fix small typo in doc string.
12006 declare enqueue_Xt_dispatch_event.
12008 2000-04-28 Ben Wing <ben@xemacs.org>
12011 * buffer.c (Frecord_buffer):
12012 * buffer.c (syms_of_buffer):
12013 delete record-buffer-hook.
12016 * fns.c (Freplace_list):
12017 * fns.c (syms_of_fns):
12018 new primitive replace-list.
12021 slot for old buffer-alist.
12024 exfun replace-list.
12027 * redisplay.c (redisplay_frame):
12028 * redisplay.c (syms_of_redisplay):
12029 * redisplay.c (vars_of_redisplay):
12030 new hook buffer-list-changed-hook.
12033 2000-04-27 Ben Wing <ben@xemacs.org>
12035 * extents.h: extern in_modeline_generation.
12037 * redisplay.c (generate_formatted_string_db): set
12038 in_modeline_generation.
12040 * extents.c (extent_changed_for_redisplay): don't mark redisplay
12041 flags if in modeline generation. otherwise frame-modified-tick
12042 is ticked far too often.
12043 Declare in_modeline_generation.
12045 2000-04-26 Ben Wing <ben@xemacs.org>
12047 * emacs.c (vars_of_emacs): document quick-build "error-checking"
12049 (vars_of_emacs): add quick-build as an error-checking option.
12050 A bit kludgy, but there doesn't seem much point in creating
12051 a real var for this.
12053 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12055 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
12057 * redisplay.h (struct display_line): Add a new variable,
12060 * redisplay.c (create_text_block): Set dl->line_continuation if
12061 the line continues.
12062 (create_string_text_block): Ditto.
12063 (regenerate_window_incrementally): Use line_continuation instead
12064 of searching continuation glyph.
12065 (add_margin_runes): Call add_glyph_rune.
12066 (add_glyph_rune): Handle margin glyph.
12068 2000-04-20 Martin Buchholz <martin@xemacs.org>
12070 * filelock.c (fill_in_lock_file_name):
12072 Check for IS_ANY_SEP instead of '/'.
12074 Avoid generating gratuitous garbage. Call user_login_name() directly.
12075 Never check errno without first seeing that system call failed.
12076 (unlock_file): Add GCPRO.
12077 (Flock_buffer): Fix docstring.
12078 (Ffile_locked_p): Fix docstring. Add GCPRO.
12080 2000-04-19 Martin Buchholz <martin@xemacs.org>
12082 * sysdep.c (get_pty_max_bytes):
12083 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12084 strings longer than 252 bytes.
12086 * md5.c: Unconditionally include ANSI header <limits.h>
12088 * glyphs-x.c (convert_EImage_to_XImage):
12089 * lisp-union.h (union Lisp_Object):
12090 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12092 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
12094 * filelock.c (current_lock_owner): Remove unused variable o, p.
12096 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
12098 * callint.c: Remove multiply defined symbol Qlet
12099 (syms_of_callint): ditto.
12101 2000-04-14 Andy Piper <andy@xemacs.org>
12103 * general.c (syms_of_general): add last-command, this-command, let
12106 * lisp.h: declare various symbols.
12108 * glyphs.h: declare Qwidget_callback_current_channel;
12110 * glyphs-widget.c (syms_of_glyphs_widget): add
12111 Qgui_callback_current_channel.
12112 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12114 * gui-msw.c (mswindows_handle_gui_wm_command): bind
12115 widget-callback-current-channel when invoking the interactive
12116 arg. Also bind last-command and next-command when invoking the
12118 * gui-x.c (popup_selection_callback): ditto.
12120 * gui.c (get_gui_callback): massage args so that we are always
12121 calling eval. This allows us to add our own variable bindings
12124 * glyphs-x.c (x_button_instantiate): use
12125 gui_items_to_widget_values since this is GC safe.
12126 (x_progress_gauge_instantiate): ditto.
12127 (x_edit_field_instantiate): ditto.
12128 (x_label_instantiate): ditto.
12130 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12131 (emacs_Xt_event_widget_focus_out): new function
12132 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12134 (emacs_Xt_event_add_widget_actions): new function. add focus
12135 functions as actions.
12136 (init_event_Xt_late): use it.
12138 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
12140 * event-stream.c (Fdispatch_event): Doc fix.
12142 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
12144 * postgresql.c: Remove all references to PQsetenv*.
12146 * postgresql.h: Remove references to PGsetenvHandler object.
12147 * lrecord.h (lrecord_type): Ditto.
12149 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12151 * glyphs-msw.h (struct mswindows_image_instance_data): Added
12152 real_heigh and real_width members, and accessor macros for these.
12154 * glyphs-msw.c (init_image_instance_geometry): New function.
12155 (init_image_instance_from_dibitmap): Use it.
12156 (mswindows_resource_instantiate): Use it.
12157 (init_image_instance_from_xbm_inline): Use it.
12158 (mswindows_initialize_image_instance_mask): Use real bitmap
12160 (mswindows_create_resized_bitmap): Ditto.
12161 (mswindows_create_resized_mask): Ditto.
12163 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12164 and bitmap to their surface size.
12166 2000-04-11 Jan Vroonhof <jan@xemacs.org>
12168 * process-unix.c (unix_send_process): Guard against process MIA
12169 after Faccept_process_output.
12171 2000-04-11 Ben Wing <ben@xemacs.org>
12173 * eval.c (unbind_to_hairy): fix brokenness introduced by
12174 nanosecond speed improvements.
12176 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
12178 * sunplay.c (init_device): To play sounds correctly, the device
12179 apparently needs to be initialized at least once by XEmacs. Make
12182 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
12184 * redisplay.c (add_margin_runes): Add text image glyph
12187 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
12189 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12190 gcc is newer than 2.5.
12192 2000-04-06 Colin Rafferty <colin@xemacs.org>
12194 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12196 * fns.c (size_bit_vector):
12197 * alloc.c (size_vector):
12198 (make_vector_internal):
12199 (make_bit_vector_internal):
12200 (sweep_bit_vectors_1):
12201 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12203 2000-04-06 Andy Piper <andy@xemacs.org>
12205 * gmalloc.c (malloc): undo previous change.
12210 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
12212 * line-number.c (buffer_line_number): Revert to former version.
12214 2000-04-06 Andy Piper <andy@xemacs.org>
12216 * gmalloc.c (malloc): add error checking.
12221 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12222 button_item_to_widget_value arg.
12224 * glyphs-x.c (x_button_instantiate): add extra
12225 button_item_to_widget_value arg.
12226 (x_progress_gauge_instantiate): ditto.
12227 (x_edit_field_instantiate): ditto.
12228 (x_label_instantiate): ditto.
12230 * gui-x.c (gui_items_to_widget_values_1): add extra
12231 button_item_to_widget_value arg.
12232 (button_item_to_widget_value): add extra menu_item_p arg.
12234 * gui-x.h: change signature of button_item_to_widget_value.
12236 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12237 button_item_to_widget_value arg.
12239 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
12241 * buffer.h (struct buffer): auto_save_modified should be long.
12243 2000-04-05 Andy Piper <andy@xemacs.org>
12245 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12247 (button_query_geometry): give a little more room so that athena
12250 2000-04-05 Andy Piper <andy@xemacs.org>
12252 * faces.c (complex_vars_of_faces): The widget face should inherit
12253 the font of the gui-element face.
12255 2000-04-04 Andy Piper <andy@xemacs.org>
12257 * glyphs-x.c (x_button_update): new function. unconditionally
12258 update a button's state when the instance is dirty.
12259 (image_instantiator_format_create_glyphs_x): add x_button_update.
12260 (x_widget_instantiate): remove old resize cruft.
12262 2000-04-02 Andy Piper <andy@xemacs.org>
12264 * frame.c (change_frame_size_1): The introduction of gutters means
12265 that we need to allow 0 as a potential frame dimension.
12267 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
12269 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12270 image glyph if allow_cursor.
12271 (add_hscroll_rune): Don't allow cursor to border glyph.
12272 (create_text_block): Ditto.
12274 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12275 text not in buffer.
12276 (redisplay_output_layout): Call ensure_face_cachel_complete for
12280 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
12282 * redisplay.c (add_glyph_rune): Adding text image as text runes.
12284 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12287 * redisplay-tty.c (tty_output_display_block): Delete the routine
12288 for text image glyph
12289 * redisplay-x.c (x_output_display_block): ditto
12290 * redisplay-msw.c (mswindows_output_display_block): ditto
12292 2000-02-02 Mike Alexander <mta@arbortext.com>
12294 Note: Some of these were committed by accident as part of other
12297 * regex.c (regex_compile): Avoid compiler warnings.
12299 * ntproc.c (sys_spawnve): Avoid compiler warnings.
12301 * nt.h: Declare term_ntproc correctly.
12303 * nt.c: Remove incorrect declaration of get_home_directory which
12304 is declared correctly in lisp.h.
12306 * keymap.c (get_keyelt): Avoid compiler warnings.
12307 (raw_lookup_key_mapper): Avoid compiler warnings.
12309 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12311 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12313 * filemode.c (mode_string): Avoid compiler warnings.
12315 * file-coding.c (Fcoding_system_aliasee): Add return statement to
12318 * events-mod.h: Undef some things that winuser.h defines differently.
12320 * data.c (Faset): Avoid compiler warnings.
12322 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12324 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
12326 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12327 Fall through to simple beep on error.
12328 Replace "extern" by real header file.
12330 * linuxplay.c: Use nativesound.h
12331 (play_sound_data): Return error code. Be less verbose on error.
12333 * sunplay.c: Use nativesound.h
12334 (play_sound_data): Return error code. Be less verbose on error.
12336 * ntplay.c: Use nativesound.h
12337 (play_sound_data): Return fake error code
12339 * sgiplay.c: Use nativesound.h
12340 (play_sound_data): Return error code
12342 * hpplay.c: Use nativesound.h, partially implement
12343 new error code. Break compilation until finished.
12344 (play_sound_data): error code.
12346 * nativesound.h (play_sound_file):
12347 (play_sound_data): Prototype in new header.
12349 2000-03-31 Andy Piper <andy@xemacs.org>
12351 * glyphs-widget.c: (button_query_geometry): new function. Adjust
12352 for toggle and radio buttons.
12353 (image_instantiator_buttons): use it.
12355 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
12357 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12358 (x_update_horizontal_scrollbar_callback): Return if no mirror was
12359 found. Scrollbar event probably belonged to some old config.
12361 2000-03-31 Andy Piper <andy@xemacs.org>
12363 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12365 (initialize_widget_image_instance): default layout to
12366 LAYOUT_HORIZONTAL rather than 0.
12367 (widget_instantiate): reverse the item list at the end rather than
12369 (layout_layout): re-code for the border text at the front of the
12370 item list rather than at the end.
12371 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12372 provided by the user.
12373 (widget_query_geometry): comment.
12375 2000-03-30 Andy Piper <andy@xemacs.org>
12377 * glyphs-widget.c (image_instantiator_layout): allow standard
12378 widget keywords in layouts.
12380 * gutter.c (output_gutter): cope with nil gutter contents.
12382 * frame.c (Fset_frame_properties): add gutter docs.
12384 2000-03-29 Andy Piper <andy@xemacs.org>
12386 * toolbar-msw.c (TBSTYLE_FLAT): add.
12387 (mswindows_output_toolbar): minor fiddling.
12389 2000-03-29 Andy Piper <andy@xemacs.org>
12391 * gutter.c (output_gutter): force gutter size recalculation if
12392 what we are trying to display won't fit.
12393 (update_gutter_geometry): new function. A per-gutter version of
12394 update_frame_gutter_geometry.
12395 (update_frame_gutter_geometry): use it.
12396 (redraw_exposed_gutter): add extra debugging output.
12398 2000-03-28 Mike Alexander <mta@arbortext.com>
12400 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12401 (pdump_file_unmap): Implement it on Windows
12402 (pdump_file_get): Save alocated handles for pdump_file_unmap
12404 2000-03-28 Andy Piper <andy@xemacs.org>
12406 * gui.c (get_gui_callback): treat Quit specially.
12408 2000-03-27 Andy Piper <andy@xemacs.org>
12410 * glyphs.c (image_instantiate): be careful to check in the same
12413 2000-03-27 Didier Verna <didier@xemacs.org>
12415 * config.h.in: define the proper SMART_INCLUDE macro.
12416 handle renaming of `foo_h_path' to `foo_h_file'.
12418 * database.c: ditto.
12422 * linuxplay.c: ditto.
12424 * terminfo.c: ditto.
12426 * tooltalk.h: ditto.
12428 2000-03-27 Andy Piper <andy@xemacs.org>
12430 * glyphs-msw.c (mswindows_update_widget): make sure the widget
12431 gets updated whenever the face might have changed.
12433 2000-03-26 Mike Alexander <mta@arbortext.com>
12435 * dumper.c (pdump_resource_free): Fix the comment.
12437 2000-03-21 Olivier Galibert <galibert@pobox.com>
12439 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12441 2000-03-22 Mike Alexander <mta@arbortext.com>
12443 * dumper.c: Include Windows headers on Windows
12444 (pdump_resource_free): Add a body to the function
12445 (pdump_load): exe_name -> exe_path and add some comments.
12447 2000-03-25 Mike Alexander <mta@arbortext.com>
12449 * gui.c (copy_gui_item_tree): Return a value in all cases
12451 2000-03-21 Didier Verna <didier@xemacs.org>
12453 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12455 (SMART_INCLUDE): new macro.
12456 (POSTGRES_INCLUDE): new macro to include postgresql headers from
12457 the proper location.
12459 * postgresql.c: use it.
12463 2000-03-24 Andy Piper <andy@xemacs.org>
12465 * gutter.c (redraw_exposed_gutters): must be "in display" when we
12468 2000-03-24 Andy Piper <andy@xemacs.org>
12470 * redisplay-output.c (compare_runes): use image_instance_changed
12471 to detect changes. Do not depend on glyphs_changed, only depend on
12473 (redisplay_output_layout): add debug messages.
12474 (compare_runes): ditto.
12476 * glyphs.h: declare new functions.
12477 (struct Lisp_Image_Instance): remove percent and associated
12480 * gui.h: declare new copying functions.
12482 * gui.c (copy_gui_item_tree): new function.
12483 (copy_gui_item): new function.
12484 (gui_item_id_hash): revert to standard hash.
12485 (gui_item_hash): ditto.
12486 (gui_item_hash_internal): deleted.
12487 (mark_gui_item): mark value.
12488 (gui_item_add_keyval_pair): add value.
12489 (gui_item_init): ditto.
12490 (gui_add_item_keywords_to_plist): ditto.
12491 (gui_item_equal): ditto.
12492 (syms_of_gui): add Q_value.
12494 * glyphs-x.c (x_progress_gauge_update): use pending items and
12495 value for setting the state.
12496 (x_update_widget): don't set items from pending here.
12498 * glyphs-widget.c (update_widget): update items here.
12499 (progress_gauge_set_property): use items for storing value. Put
12500 new value in pending items.
12502 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12503 items for new value. Convert percent -> value.
12504 (mswindows_tab_control_update): don't update items here.
12506 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12507 (update_subwindow): ditto.
12508 (image_instance_changed): new function. Compare hash values and
12509 past and present widget items.
12510 (image_instantiate): We more careful about where we instantiate
12512 (image_instantiate): add error checking.
12514 * gutter.c (syms_of_gutter): use -hook.
12516 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
12518 * console-tty.c (Fset_console_tty_input_coding_system): Use
12520 (Fset_console_tty_output_coding_system): Use Qterminal.
12521 (tty_init_console): Use Qkeyboard and Qterminal.
12523 2000-03-21 Ben Wing <ben@xemacs.org>
12525 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12526 From Mike Alexander <mta@arbortext.com>.
12528 2000-03-21 Ben Wing <ben@xemacs.org>
12530 * event-msw.c (mswindows_need_event): Horrible kludge to fix
12531 process brokenness. Proper implementation to come.
12533 Rename call-process-internal to old-call-process-internal.
12534 New impl. in process.el.
12536 2000-03-21 Martin Buchholz <martin@xemacs.org>
12538 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12540 2000-03-20 Andy Piper <andy@xemacs.org>
12542 * glyphs.c (full_list_hash): make hashes of the same elements in
12543 different orders return different values.
12545 2000-03-20 Martin Buchholz <martin@xemacs.org>
12547 * XEmacs 21.2.32 is released.
12549 2000-03-20 Martin Buchholz <martin@xemacs.org>
12551 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12552 (DFC_MALLOC_USE_CONVERTED_DATA):
12553 Add aliasing-safe casts to allow use with char* or unsigned char*
12556 * eldap.c (Fldap_open):
12557 (Fldap_search_basic):
12560 Make C++-compilable.
12561 Make sure GCPRO'ed variables are initialized.
12562 Use temp variables to avoid repeated calls to Flength.
12564 2000-03-16 Martin Buchholz <martin@xemacs.org>
12567 Make sure PATH_MAX is always defined.
12568 Include limits.h for PATH_MAX.
12569 Deprecate use of MAXPATHLEN.
12571 2000-03-10 Martin Buchholz <martin@xemacs.org>
12573 * emacs.c: Add reinit_vars_of_fileio.
12574 * symsinit.h: Add reinit_vars_of_fileio.
12575 * fileio.c (reinit_vars_of_fileio): New.
12576 * fileio.c (Fmake_temp_name):
12577 Initialize temp_name random number from microseconds to make
12578 collisions even less likely. Initialize always at process startup
12579 time. (make-temp-name) used to return the same file name twice in
12581 Random stylistic fiddling.
12584 2000-03-20 Andy Piper <andy@xemacs.org>
12586 * glyphs.c (image_instantiate): allow text glyphs to be
12587 instantiated in the minibuffer window.
12589 2000-03-19 Andy Piper <andy@xemacs.org>
12591 * glyphs.c (image_instance_hash): be careful about which items we
12594 * glyphs-widget.c (tab_control_set_property): record into pending
12595 items rather than the actual items.
12597 * glyphs-x.c (x_update_widget): use pending items to update with.
12599 * glyphs-msw.c (mswindows_tab_control_update): use pending items
12602 * glyphs.c (mark_image_instance): mark pending items.
12604 * window.c (Fset_window_configuration): record the buffer.
12605 (Fselect_window): totally revert previous change which breaks many
12608 2000-03-18 Andy Piper <andy@xemacs.org>
12610 * glyphs-msw.c (mswindows_tab_control_update): force selected
12613 * glyphs.c (image_instantiate): don't allow the minibuffer as a
12614 window domain cache, otherwise we get inconsistencies at
12615 startup. There is something fishy at startup which can lead to the
12616 minibuffer being the selected window when the gutter content is
12619 * gui.c (parse_gui_item_tree_list): add probably unnecessary
12621 (parse_gui_item_tree_children): ditto.
12622 (parse_gui_item_tree_item): ditto.
12624 * glyphs.c (Fupdate_widget_instances): return something.
12626 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
12628 * window.c (Fselect_window): Undo 2000-03-17 change.
12630 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
12632 * postgresql.c (Fpq_setenv): Remove this turkey when linking
12633 against v7.0 libraries. Insta-coredump city until the postgres
12636 2000-03-17 Andy Piper <andy@xemacs.org>
12638 * faces.c (complex_vars_of_faces): don't give the widget face an
12639 inherited background pixmap.
12641 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12644 * event-stream.c (Fdispatch_non_command_events): return something.
12646 * gutter.c (output_gutter): use widget face.
12647 (clear_gutter): ditto.
12649 * NEWS: adjust again.
12651 * window.c (Fselect_window): make sure this runs to completion to
12652 avoid oddities with Fset_window_configuration.
12653 (Fcurrent_window_configuration): in general do not save the
12654 minibuffer as the selected window.
12656 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12658 2000-03-16 Olivier Galibert <galibert@pobox.com>
12660 * emacs.c (Frunning_temacs_p): Revert previous patch.
12661 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12663 2000-03-16 Andy Piper <andy@xemacs.org>
12665 * glyphs-x.c (x_tab_control_update): if no widget values then
12668 * NEWS: update for new features.
12670 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12671 synthetic event to the native system.
12672 (reinit_vars_of_event_Xt): set force_event_pending to
12673 emacs_Xt_force_event_pending.
12675 * events.h (struct event_stream): add force_event_pending.
12677 * specifier.c (recompute_one_cached_specifier_in_window): add
12680 * redisplay.c (redisplay_frame): don't call
12681 update_frame_subwindows. Reset subwindow cachels when
12682 subwindows_changed, removing this was an optimization too far.
12684 * redisplay-output.c (compare_runes): reorganize so that we catch
12685 glyph changes when we want them. Set optimize_output when this
12686 would help layouts.
12687 (redisplay_output_layout): remove frame_really_changed, use
12688 optimize_output instead.
12690 * redisplay-msw.c (mswindows_output_display_block): reset
12691 optimize_output after outputting a glyph.
12692 * redisplay-x.c (x_output_display_block): ditto.
12693 * redisplay-tty.c (tty_output_display_block): ditto.
12695 * gutter.c: (specifier_vars_of_gutter): use new spec changed
12697 (gutter_specs_changed): do specific gutter positions.
12698 (top_gutter_specs_changed): new function. Only update the
12699 specified gutter specs.
12700 (bottom_gutter_specs_changed): ditto.
12701 (left_gutter_specs_changed): ditto.
12702 (right_gutter_specs_changed): ditto.
12704 * gui.c (gui_item_hash_internal): new function, does a real hash.
12705 (gui_item_id_hash): use it.
12706 (gui_item_hash): hash the eval'ed gui_item.
12708 * gui-x.c (popup_selection_callback): send an eval event to call
12709 Fupdate_widget_instances.
12711 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12712 to call Fupdate_widget_instances.
12714 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12715 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12717 * glyphs.c: (update_frame_subwindows): deleted.
12718 (Fupdate_widget_instances): new function for updating the dirty
12719 state of widgets that might have changed.
12720 (syms_of_glyphs): add Qupdate_widget_instances.
12721 (full_list_hash): hash a list completely.
12722 (image_instance_hash): use it for items and properties.
12724 * frame-msw.c (mswindows_size_frame_internal): remove unused
12727 * faces.h (struct face_cachel): fix comment.
12729 * event-stream.c (Fdispatch_non_command_events): new
12730 function. Process non-command events, forcing an event cycle
12732 (syms_of_event_stream): declare.
12733 (event_stream_force_event_pending): new function. Force an event
12734 on the native event queue so that an event cycle will occur next
12738 (struct ntpipe_shove_stream):
12739 (mswindows_enqueue_dispatch_event):
12740 (mswindows_dequeue_dispatch_event):
12741 (mswindows_cancel_dispatch_event):
12742 (mswindows_pump_outstanding_events):
12743 (mswindows_drain_windows_queue):
12744 (mswindows_handle_paint):
12745 (mswindows_wnd_proc):
12746 (mswindows_key_to_emacs_keysym):
12747 (get_process_input_waitable):
12748 (emacs_mswindows_delete_stream_pair): re-indent file.
12749 (mswindows_need_event): do not process further fds if the windows
12750 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12751 fixes the 100% cpu problem.
12752 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12754 2000-03-15 Olivier Galibert <galibert@pobox.com>
12760 * emacs.c: Moved dump file searching to dumper.c.
12761 (Frunning_temacs_p): Fixed.
12763 * alloc.c: Moved everything pdump-related to dumper.c. Removed
12764 last_lrecord_type_index_assigned.
12766 2000-02-20 Olivier Galibert <galibert@pobox.com>
12768 * symsinit.h: Added reinit parameter to init_console_stream
12771 * lisp.h: Added file parameter to pdump_load declaration.
12773 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12774 support. Added dump file searching.
12776 * config.h.in: Added EMACS_PROGNAME.
12778 * console-stream.c (init_console_stream): Fix reinitialisation
12779 when running from temacs.
12781 * alloc.c (pdump): Add id support.
12782 (pdump_load): Add file parameter and signature/id support.
12784 * Makefile.in.in: Add full pdump support.
12786 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
12788 * postgresql.c: Update documentation to reflect latest code
12790 (print_result): Show tuple counts in printed representation when
12792 (Fpq_put_nbytes): MULE-ize.
12793 (Fpq_get_line_async): Ditto.
12795 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
12797 * postgresql.c (Fpq_lo_import): Fix return value.
12798 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12800 2000-03-13 Ben Wing <ben@xemacs.org>
12802 * alloc.c (pdump_load):
12803 Fix compile warning under mswin.
12805 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
12807 * postgresql.c: Mule-ization, bug fixes.
12808 Use PG_CODING to encapsulate coding system name changes.
12809 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12810 (pg-coding-system): Create.
12812 (Fpq_conn_defaults): Mule-ize.
12813 (Fpq_connectdb): Mule-ize & bug fix.
12814 (Fpq_connect_start): Mule-ize.
12815 (Fpq_set_client_encoding): Mule-ize.
12816 (Fpq_finish): Document `DEAD' connection status.
12817 (Fpq_clear): Ditto.
12818 (Fpq_pgconn): Mule-ize.
12819 (Fpq_exec): Mule-ize & bug fix.
12820 (Fpq_send_query): Ditto.
12821 (Fpq_get_result): Ditto.
12822 (Fpq_res_status): Mule-ize.
12823 (Fpq_result_error_message): Mule-ize.
12824 (Fpq_ntuples): fix comments.
12825 (Fpq_fname): Mule-ize.
12826 (Fpq_fnumber): Mule-ize.
12827 (Fpq_ftype): fix comments.
12828 (Fpq_get_value): Mule-ize.
12829 (Fpq_cmd_status): Ditto.
12830 (Fpq_cmd_tuples): Ditto.
12831 (Fpq_oid_value): Ditto.
12832 (Fpq_notifies): Ditto.
12833 (Fpq_lo_import): Ditto.
12834 (Fpq_lo_export): Ditto.
12835 (Fpq_get_line): Ditto.
12836 (Fpq_put_line): Mule-ize and bug fix.
12837 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
12839 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
12841 * postgresql.c (vars_of_postgresql): Mule-ize.
12842 (Fpq_conn_defaults): Ditto.
12844 2000-03-12 Ben Wing <ben@xemacs.org>
12846 * alloc.c (Fmake_byte_code):
12847 * alloc.c (debug_string_purity_print):
12848 * alloc.c (pdump_backtrace):
12849 * alloc.c (pdump_get_indirect_count):
12850 * alloc.c (pdump_register_sub):
12851 * alloc.c (pdump_register_object):
12852 * alloc.c (pdump_register_struct):
12853 * alloc.c (pdump_dump_data):
12854 * alloc.c (pdump_reloc_one):
12858 * console-msw.c (GetConsoleHwnd):
12859 * console-msw.c (msw_hide_console):
12860 * console-msw.c (msw_show_console):
12861 * console-msw.c (msw_ensure_console_buffered):
12862 * console-msw.c (msw_output_console_string):
12863 * console-msw.c (console_type_create_mswindows):
12865 a) Added functions to manipulate the console window for use with
12868 b) Added support for writing text to the console, which is now
12869 used under Windows when xemacs is not being run non-interactively,
12870 to write text that would otherwise be destined for stdout because
12871 under these circumstances, text written to stdout tends to
12872 disappear and not be seen.
12876 * event-Xt.c (x_event_to_emacs_event):
12877 * event-Xt.c (describe_event_window):
12878 * events-mod.h (XEMACS_MOD_CONTROL):
12880 * events.c (Fmake_event):
12881 * events.c (character_to_event):
12882 * events.c (event_to_character):
12883 * events.c (format_event_object):
12884 * events.c (Fevent_modifiers):
12886 * events.h (struct key_data):
12887 * events.h (struct button_data):
12888 * events.h (struct misc_user_data):
12889 * frame-x.c (Fcde_start_drag_internal):
12890 * frame-x.c (Foffix_start_drag_internal):
12891 * gpmevent.c (Freceive_gpm_event):
12893 * keymap.c (bucky_sym_to_bucky_bit):
12894 * keymap.c (control_meta_superify):
12895 * keymap.c (make_key_description):
12896 * keymap.c (keymap_lookup_directly):
12897 * keymap.c (create_bucky_submap):
12898 * keymap.c (keymap_store):
12899 * keymap.c (define_key_check_and_coerce_keysym):
12900 * keymap.c (define_key_parser):
12901 * keymap.c (define_key_alternate_name):
12902 * keymap.c (Fdefine_key):
12903 * keymap.c (raw_lookup_key_mapper):
12904 * keymap.c (struct map_keymap_unsorted_closure):
12905 * keymap.c (map_keymap_unsorted_mapper):
12906 * keymap.c (map_keymap_sort_predicate):
12907 * keymap.c (map_keymap_sorted):
12908 * keymap.c (accessible_keymaps_mapper_1):
12909 * keymap.c (where_is_recursive_mapper):
12910 * keymap.c (describe_map_mapper):
12911 * keymap.c (describe_map_sort_predicate):
12912 * keymap.c (describe_map):
12913 * keymap.c (complex_vars_of_keymap):
12914 And a number of other files, the key modifier preprocessor
12915 constants that xemacs uses have names that conflict with constants
12916 defined under MS Windows for other purposes, so they were renamed
12917 to begin with the prefix XEMACS_. The variables that hold such
12918 modifiers were changed to consistently be of type int to fix
12919 various compile warnings.
12921 * console.c (complex_vars_of_console):
12924 * device-msw.c (mswindows_finish_init_device):
12925 * device-msw.c (msw_get_workspace_coords):
12926 * device-msw.c (mswindows_device_system_metrics):
12927 and various other files, added support for a new
12928 device property called offset-workspace which returns the position
12929 of the upper left corner of the workspace area and goes along with
12930 the existing size-workspace property.
12933 * dialog-msw.c (push_bufbyte_string_as_unicode):
12934 * dialog-msw.c (mswindows_popup_dialog_box):
12935 Added support for XEmacs-style accelerator specifications in
12936 button text. Note: I didn't add support for this under X Windows,
12937 and somebody needs to do this.
12940 * dialog.c (Fpopup_dialog_box):
12941 Documented the support for accelerators that was just mentioned.
12943 editfns.c (get_home_directory): Changed behavior under Windows
12944 when HOME not defined; former behavior was irretrievably broken.
12947 * emacs.c (main_1):
12949 * minibuf.c (clear_echo_area_internal):
12950 * minibuf.c (echo_area_append):
12952 * print.c (std_handle_out_external):
12953 * print.c (std_handle_out_va):
12955 * print.c (write_string_to_stdio_stream):
12956 * print.c (output_string):
12957 * print.c (debug_print):
12958 * print.c (debug_backtrace):
12959 * print.c (debug_short_backtrace):
12960 Cleaned up the code that prints text to stdout so that this can be
12961 changed to output into a console window instead under MS Windows,
12962 as described above.
12965 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
12966 * eval.c (internal_catch):
12967 * eval.c (unwind_to_catch):
12968 * eval.c (throw_or_bomb_out):
12969 * eval.c (condition_case_1):
12970 * eval.c (signal_1):
12971 * eval.c (check_error_state_sanity):
12972 * eval.c (call_with_suspended_errors_1):
12973 * eval.c (call_with_suspended_errors):
12974 * eval.c (reinit_vars_of_eval):
12975 Added code to catch throw loops and check for a pesky bug that may
12979 * event-msw.c (key_needs_default_processing_p):
12980 * event-msw.c (mswindows_wnd_proc):
12981 * event-msw.c (mswindows_modifier_state):
12982 * event-msw.c (emacs_mswindows_quit_p):
12983 * event-msw.c (vars_of_event_mswindows):
12984 a) Added support for using the alt key to select menu items as is
12985 standard under MS Windows. This is controlled using the variable
12986 menu-accelerator-enabled, just like under X Windows. There is an
12987 option on the options menu to turn this support on. I really
12988 think that it should be on by default under Windows, but I'm not
12989 going to make this change yet.
12991 b) Added support for dynamic display size changes under Windows.
12994 * event-stream.c (maybe_echo_keys):
12995 * event-stream.c (Fnext_event):
12996 * event-stream.c (command_builder_find_leaf):
12997 * event-stream.c (lookup_command_event):
12998 * event-stream.c (execute_command_event):
12999 * event-stream.c (pre_command_hook):
13000 * event-stream.c (post_command_hook):
13001 * event-stream.c (syms_of_event_stream):
13002 * event-stream.c (vars_of_event_stream):
13003 * event-stream.c (complex_vars_of_event_stream):
13004 * events.h (struct command_builder):
13006 a) Tried to clean up a little bit the horribly written x-specific
13007 accelerator code that crept into this file. I moved this code
13008 into menubar-x.c where it belongs. I also needed to move the
13009 command builder structure into the file events.h because it is
13010 accessed directly by this accelerator code. What I didn't do, but
13011 which should be done at some point, is to properly abstract this
13012 code using device methods instead of the kludgy way that it
13013 currently hooks into the event code.
13015 b) Added the lisp variables this-command-properties and
13016 last-command- properties, which should be used to synchronize two
13017 adjacent commands in preference to playing games with the variable
13018 this-command, which is typically what happens.
13020 c) Added some slightly nasty code to hook into the lisp support
13021 for shifted- motion-key selection. This is actually necessary for
13022 somewhat complicated reasons, which are described in
13023 simple.el. (NB: I think the proper thing would be to have the code
13024 that calls the pre and post command hooks also call out to generic
13025 lisp functions in simple.el, where all built-in stuff could be
13026 added. I will think about this more.)
13028 * event-unixoid.c (poll_fds_for_input):
13029 * lread.c (readchar):
13030 * redisplay-tty.c (tty_clear_frame):
13031 * redisplay-x.c (x_get_gc):
13032 * signal.c (interrupt_signal):
13033 And a whole bunch of other files: fixed up places that printed
13034 directly to stderr to instead call the function stderr_out so that
13035 the changes I made under Windows work correctly.
13037 * filemode.c (mode_string):
13041 * frame-msw.c (mswindows_size_frame_internal):
13042 Fixed the computation of frame size and position to keep the frame
13043 within the workspace area, rather than within the physical
13044 dimensions of the screen, so that the frame doesn't overlap window
13045 manager decorations, such as the start menu and toolbar, typically
13046 at the bottom of the screen.
13048 * frame.c (vars_of_frame):
13049 Changed the default frame title format under MS Windows to consist
13050 of buffername-XEmacs, which is standard under MS Windows. I think
13051 it might be a good idea to change this everywhere because I think
13052 it is superior to the current frame title format, but this is the
13053 kind of change that is likely to cause some people to get annoyed,
13054 so I'm not making it.
13056 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13058 * gui-msw.c (mswindows_handle_gui_wm_command):
13059 Fixed compile warnings.
13062 * gui-x.c (strdup_and_add_accel):
13063 * gui-x.c (button_item_to_widget_value):
13065 Added code to automatically put an accelerator onto the beginning
13066 of menu items that don't have one as is now the standard, and is
13067 described more later. Also fixed things so that the menu item
13068 name can be an evaluated expression, again a new standard.
13071 * gui.c (gui_item_add_keyval_pair):
13072 * gui.c (make_gui_item_from_keywords_internal):
13073 * gui.c (gui_add_item_keywords_to_plist):
13074 * gui.c (gui_item_accelerator):
13075 * gui.c (gui_name_accelerator):
13076 * gui.c (gui_item_included_p):
13077 * gui.c (gui_item_display_flush_left):
13078 * gui.c (gui_item_display_flush_right):
13079 * gui.c (parse_gui_item_tree_item):
13080 * gui.c (parse_gui_item_tree_children):
13081 * gui.c (parse_gui_item_tree_list):
13082 Mule-ized. Cleanup. GCPRO addition.
13084 * line-number.c (buffer_line_number):
13086 * lisp.h (EMACS_INT_MAX):
13087 Added the manifest constant EMACS_INT_MIN corresponding to the
13088 existing constant EMACS_INT_MAX. This is partially to fix compile
13089 warnings under Windows, and partly for cleanliness.
13092 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13093 * menubar-msw.c (msw_translate_menu_or_dialog_item):
13094 * menubar-msw.c (displayable_menu_item):
13095 * menubar-msw.c (populate_menu_add_item):
13096 * menubar-msw.c (populate_or_checksum_helper):
13097 * menubar-msw.c (populate_menu):
13098 * menubar-msw.c (update_frame_menubar_maybe):
13099 * menubar-msw.c (prune_menubar):
13100 * menubar-msw.c (msw_char_is_accelerator):
13101 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13102 * menubar-msw.c (mswindows_handle_wm_command):
13103 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13104 * menubar-msw.c (mswindows_handle_wm_initmenu):
13105 * menubar-msw.c (mswindows_update_frame_menubars):
13106 * menubar-msw.c (mswindows_free_frame_menubars):
13107 * menubar-msw.c (mswindows_popup_menu):
13108 Fixed a bug in handling accelerators where an extra character
13109 would be displayed in the menu item. Also generalized the
13110 function displayable_menu_item because it is now used by the
13111 dialog box code as well. And finally, added code in the functions
13112 that create the menubar to extract a list of accelerators for the
13113 top level menubar, which is used in the event code to determine
13114 whether a particular alt-key combination should be used to invoke
13115 a menu item, or should be passed through to access the standard
13116 XEmacs keymap binding for this key combination.
13118 Much needed GCPROing.
13121 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13122 * menubar-x.c (menu_item_descriptor_to_widget_value):
13123 * menubar-x.c (restore_in_menu_callback):
13124 * menubar-x.c (x_popup_menu):
13125 * menubar-x.c (menu_move_up):
13126 * menubar-x.c (menu_move_down):
13127 * menubar-x.c (menu_move_left):
13128 * menubar-x.c (menu_move_right):
13129 * menubar-x.c (menu_select_item):
13130 * menubar-x.c (command_builder_operate_menu_accelerator):
13131 * menubar-x.c (menu_accelerator_junk_on_error):
13132 * menubar-x.c (command_builder_find_menu_accelerator):
13133 * menubar-x.c (Faccelerate_menu):
13135 Moved a whole bunch of code here that was previously in
13136 event-stream.c as described above. There is also code connected
13137 to the new standard of adding an accelerator to the beginning of
13138 menu items that don't have one as described above and below.
13141 * menubar.c (menu_parse_submenu_keywords):
13142 * menubar.c (Fmenu_find_real_submenu):
13143 * menubar.c (Fnormalize_menu_item_name):
13144 * menubar.c (syms_of_menubar):
13145 * menubar.c (vars_of_menubar):
13146 * menubar.c (complex_vars_of_menubar):
13148 a) Cleaned up a bunch of documentation and improved it.
13150 b) XEmacs now automatically adds an accelerator onto the beginning
13151 of any menu items that don't have one. I did this because there
13152 will inevitably be some menu items on the main menubar that don't
13153 have accelerators on them because the package that adds that
13154 particular menu item hasn't yet been fixed up to have accelerators
13155 in them and it looked rather strange to have some items with and
13156 some items without accelerators, especially since even in items
13157 without accelerators, you can, at least under windows, still
13158 access the item through an accelerator corresponding to the first
13159 character in the item's name. If people don't like this behavior,
13160 I can add a variable to turn it off optionally, but I'm not sure
13161 this is a good idea because we really do need to have accelerators
13162 on all of the menu items, and if a package doesn't like the
13163 accelerators being put on the first character, then it should put
13164 the accelerators where they belong.
13166 c) I made a behavior change, which is that the descriptor that
13167 specifies the text of the menu item, which formerly was just a
13168 string, can now also be an evaluated expression. This makes this
13169 descriptor parallel with all of the others, which could also be
13170 evaluated expressions. This also obviates the need for the
13171 keyword :label, which was previously listed in the documentation
13172 as unimplemented, and which was for the same purpose.
13177 * ntproc.c (new_child):
13178 * ntproc.c (sys_spawnve):
13179 * ntproc.c (find_child_console):
13180 * ntproc.c (sys_kill):
13181 Fixed compile warnings. By the way, this file should really go
13182 away entirely, and this will happen as soon as Kirill makes his
13183 final round of process cleanups, which affect the function
13187 * process-nt.c (struct nt_process_data):
13188 * process-nt.c (find_process_from_pid):
13189 * process-nt.c (send_signal_the_nt_way):
13190 * process-nt.c (enable_child_signals):
13191 * process-nt.c (find_child_console):
13192 * process-nt.c (send_signal_the_95_way):
13193 * process-nt.c (nt_finalize_process_data):
13194 * process-nt.c (ensure_console_window_exists):
13195 * process-nt.c (nt_create_process):
13196 * process-nt.c (nt_kill_child_process):
13197 * process-nt.c (nt_kill_process_by_pid):
13198 * process-nt.c (nt_open_network_stream):
13199 * process-nt.c (vars_of_process_nt):
13200 Copied over code from Emacs 20.5 to correctly send signals to sub-
13201 processes under Windows 95. Also added code to automatically
13202 create and hide console window when a sub-process is created under
13203 Windows 95, which obviates the need for the separate runemacs.exe
13204 executable, and finally implemented some variables that were
13205 implemented in Emacs 20.5, but previously not in XEmacs. These
13206 include mswindows- start-process-share-console and
13207 mswindows-start-process-inherit-error-mode. (Both of these only
13208 apply to Windows 95.)
13210 * regex.c (regex_compile): Fixed a compile warning.
13213 * select-msw.c (mswindows_own_selection):
13214 * select-msw.c (mswindows_get_foreign_selection):
13215 * select-msw.c (mswindows_disown_selection):
13216 * select-msw.c (console_type_create_select_mswindows):
13217 * select-msw.c (syms_of_select_mswindows):
13218 Cleaned up the file and implemented the device method
13219 selection_exists_p, which had accidentally been left out. Also
13220 removed four lisp functions that were remnants from before the
13221 time when the selection code was properly device abstracted.
13222 These functions are no longer needed because there are generic
13223 equivalents, and because they were added recently and don't exist
13224 in FSF Emacs, I don't think there's any problem with just deleting
13228 * sysdep.c (sys_subshell):
13229 Fixed a compile warning, although in this case there's probably
13230 something wrong with this code, and it ought to be looked into
13231 more thoroughly by somebody who understands it.
13234 * window.c (Fwindow_text_area_height):
13235 * window.c (Fwindow_width):
13236 * window.c (Fwindow_full_width):
13237 * window.c (Fwindow_pixel_width):
13238 * window.c (debug_print_window):
13239 * window.c (syms_of_window):
13240 Added functions window-text-area-height and window-full-width,
13241 which are functions for returning various width and height
13242 characteristics of a window. (One of these functions is necessary
13243 for making the file dialog box work correctly, and the other one
13244 was added for completeness.) Also added a table to the
13245 documentation for window-height which describes the entire scheme
13246 for accessing width and height characteristics of a window.
13248 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13250 * nt.c (fstat): Added a comment for another problem with
13251 non-encapsulated [f]stat(), reported by Adrian Aichner
13252 <aichner@ecf.teradyne.com>.
13254 2000-03-11 Andy Piper <andy@xemacs.org>
13256 * window.c (make_dummy_parent): initialize subwindow instance
13258 (Fset_window_configuration): zero extent_modiff.
13260 2000-03-10 Andy Piper <andy@xemacs.org>
13262 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13263 more changes can be triggered.
13264 (Fredisplay_frame): ditto.
13265 (Fredraw_device): ditto.
13266 (Fredisplay_device): ditto.
13267 (redisplay_frame): make non-static.
13268 (redisplay_frame): call update_frame_gutter_geometry outside of
13271 * gutter.h: declare update_frame_gutter_geometry.
13273 * redisplay.h: declare redisplay_frame.
13275 * gutter.c (update_frame_gutter_geometry): move geometry changes
13276 in update_frame_gutters here. Geometry changes can only occur
13277 outside of redisplay.
13278 (update_frame_gutters): remove geometry change code.
13279 (Fredisplay_gutter_area): make sure that we are in display when we
13280 update and that we have flushed any size changes.
13282 2000-03-11 Andy Piper <andy@xemacs.org>
13284 * alloc.c (pdump_dump_data): remove i & count shadows.
13286 2000-02-27 Mike Alexander <mta@arbortext.com>
13288 * sysdep.h: Declare pdump_read_file
13290 * sysdep.c (pdump_read_file): New function
13292 * alloc.c (pdump_load): Call pdump_read_file to get the portable
13295 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
13297 * lrecord.h: add `lrecord_type_pgsetenv'.
13299 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
13301 * symsinit.h: declare (vars|syms)_of* functions.
13302 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13304 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
13306 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13308 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13311 * emacs.c (main_1): Call postgres initialization code.
13313 * postgresql.h: New file. PostgreSQL RDBMS support.
13314 * postgresql.c: New file.
13316 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
13318 * redisplay-output.c (redisplay_output_display_block): Disable
13321 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13323 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13324 (Fcanna_henkan_next): Ditto.
13325 (Fcanna_bunsetu_henkou): Ditto.
13326 (Fcanna_henkan_kakutei): Ditto.
13327 (Fcanna_henkan_end): Ditto.
13328 (Fcanna_henkan_quit): Ditto.
13329 (Fcanna_henkan_next): Set retun value correctly.
13330 (c2mu): Use unsigned char instead of signed char.
13332 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13334 * emacs.c (main_1): Always call syms_of_gui.
13335 * inline.c: include gui.h
13337 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13339 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13340 converted to Lisp_Object.
13341 (Qtop_bottom): New variable.
13342 (syms_of_redisplay): Initialize it.
13343 * redisplay.h (Vvisible_bell): Ditto.
13344 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13345 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13346 only flash top and bottom.
13348 2000-03-08 Andy Piper <andy@xemacs.org>
13350 * buffer.c (Frename_buffer): record new buffer name the right way.
13352 2000-03-08 Andy Piper <andy@xemacs.org>
13354 * glyphs.c (update_subwindow): increase hash depth so that widget
13355 items get picked up properly.
13357 * redisplay-output.c (compare_runes): increase hash depth so that
13358 widget items get picked up properly.
13360 2000-03-08 Andy Piper <andy@xemacs.org>
13362 * gutter.c (output_gutter): add some debug.
13364 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13365 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13366 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13368 * redisplay-output.c (compare_runes): use display_hash to
13369 determine if glyphs really are not the same.
13371 * glyphs.c (update_subwindow): check display_hash to see if
13372 anything really needs to be updated. If not then do
13373 nothing. Record the display_hash after updating.
13374 (image_instance_equal): compare the image_instance face also.
13376 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
13378 * redisplay.h: Fix comment style.
13380 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
13382 * consle-msw.h (struct mswindows_frame):
13383 Added new member paint_pending to indicate whether a WM_PAINT
13384 magic event has been queued for this frame.
13386 * event-msw.c (mswindows_drain_windows_queue):
13387 Don't queue a WM_PAINT magic event if one is already queued.
13388 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13390 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13392 2000-03-07 Didier Verna <didier@xemacs.org>
13394 * dired.c: #include `regex.h' after `sysfile.h'.
13396 2000-03-06 Martin Buchholz <martin@xemacs.org>
13398 * sound.c (init_nas_sound): Fix compiler warning.
13400 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13402 (MARK_STRUCT_AS_FREE):
13403 (MARK_STRUCT_AS_NOT_FREE):
13404 Make `gcc -fstrict-aliasing' work properly.
13406 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
13408 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13409 (mswindows_delete_device): Call CoUnnitialize().
13411 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13413 2000-02-25 <CraigL@DyCon.com>
13415 * process-nt.c: MinGW now has <shellapi.h>, but still needs
13418 * sysdep.c: This extern declaration for environ prevents MinGW
13419 from finding the variable in CRTDLL.DLL.
13421 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13423 (SHGFI_EXETYPE): ..
13424 (WM_MOUSEWHEEL): ..
13425 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13427 (MMRESULT): Removed, now defined in cygwin's windows headers.
13429 (uid_t,gid_t,pid_t,ssize_t): ..
13430 (_timeb): Removed, MinGW defines both _timeb and timeb.
13431 (HAVE_H_ERRNO): Added.
13432 (HAVE_TZNAME): Added, configure is not detecting this.
13434 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
13436 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13437 * syntax.c (syntax_match): Use it.
13439 * cmds.c: Import auto-fill-chars from FSF Emacs.
13440 (Vauto_fill_chars): New variables.
13441 (internal_self_insert): Check Vauto_fill_chars.
13443 Declare auto-fill-chars as a Lisp variable and initialize it.
13445 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
13447 * fileio.c (Fmake_symbolic_link):
13449 Run handlers even if local machine doesn't have symlinks.
13451 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
13453 * event-msw.c (mswindows_drain_windows_queue):
13454 Don't generate paint magic events for non-XEmacs frames.
13456 2000-03-05 Andy Piper <andy@xemacs.org>
13458 * redisplay.c (redisplay_frame): generate_displayable_area and
13459 friends assumes that we are not in GC, we therefore have to make
13460 sure that this doesn't happen.
13462 * gutter.c (calculate_gutter_size): generate_displayable_area
13463 assumes that we are not in GC, we therefore have to make sure that
13464 this doesn't happen.
13466 2000-03-05 Martin Buchholz <martin@xemacs.org>
13468 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13470 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
13472 * redisplay.c (regenerate_window): Make sure we set a sane value
13473 for end_pos even if we jump out of the loop.
13474 (regenerate_window): Answer Ben's question :-).
13475 (start_end_of_last_line): Add may_error argument.
13476 (start_of_last_line):
13477 (end_of_last_line): Pass may_error = 0.
13478 (end_of_last_line_may_error): New function.
13479 (pixel_to_glyph_translation): Use it, so we don't crash in
13482 2000-03-04 Andy Piper <andy@xemacs.org>
13484 * window.h (struct window): add gutter_extent_modiff.
13486 * window.c (allocate_window): zero out gutter_extent_modiff.
13488 * redisplay.h: declare sync_display_line_structs.
13490 * redisplay.c (add_glyph_rune): add a better comment.
13492 * redisplay-output.c (sync_display_line_structs): made non-static.
13493 (compare_runes): remove unneccesary glyph cachel access.
13495 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13497 * gutter.c (output_gutter): don't output the gutter if extent
13498 changes only involve extents in buffers. use 4 sets of display
13500 (gutter_extent_signal_changed_region_maybe): new function. Mark
13501 extents in gutters as changed.
13502 (update_frame_gutters): use 4 sets of display lines.
13503 (reset_gutter_display_lines): ditto.
13504 (free_frame_gutters): ditto.
13505 (redraw_exposed_gutter): force output of gutters.
13507 * frame.h (struct frame): add 4 sets of gutter display lines.
13509 * extents.c: (extent_changed_for_redisplay): signal changes to
13510 extents in strings in the gutter as well as extents in buffers.
13512 2000-03-02 Andy Piper <andy@xemacs.org>
13514 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13516 * frame.c (Fmake_frame): make sure the gutters get initialized
13517 after the frame is visible.
13518 (set_frame_selected_window): re-arrange compilation macros a
13520 (change_frame_size_1): mark gutters changed.
13522 * device.c (Fset_device_class): mark gutters changed.
13524 2000-03-01 Andy Piper <andy@xemacs.org>
13526 * window.c (window_top_frame_gutter_height): deleted.
13527 (window_bottom_frame_gutter_height): ditto.
13528 (window_left_frame_gutter_height): ditto.
13529 (window_right_frame_gutter_height): ditto.
13530 (window_top_gutter_height): don't use them.
13531 (window_bottom_gutter_height): ditto.
13532 (window_left_gutter_width): ditto.
13533 (window_right_gutter_width): ditto.
13534 (Fsplit_window): ditto.
13535 (Fwindow_pixel_edges): don't use border dimensions here.
13537 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13538 (update_scrollbar_instance): ditto.
13540 * redisplay.c (generate_modeline): don't take gutters into account.
13541 (generate_modeline): ditto.
13542 (redisplay_frame): small gutter display optimization.
13544 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13546 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13547 gutters into account.
13549 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13550 for window position and type.
13552 * gutter.c (get_gutter_coords): fix for frame gutters.
13553 (update_frame_gutters): update frame geometry if the gutters have
13555 (init_frame_gutters): record current gutter geometries.
13557 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13559 (mswindows_widget_instantiate): ditto.
13561 * frame.h (struct frame): add current_gutter_bounds.
13563 * frame.c (change_frame_size_1): position window and minibuffer
13564 appropriately taking into account the frame gutters.
13566 * frame-x.c: (x_initialize_frame_size): take into account the
13569 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
13571 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
13573 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
13575 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13577 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13579 * file-coding.c (reset_decoding_stream): Clear previous
13580 detection state when autodetect.
13582 2000-02-29 Didier Verna <didier@xemacs.org>
13584 * extents.c (set_extent_glyph_1): don't require extents to be
13587 2000-02-27 Andy Piper <andy@xemacs.org>
13589 * gutter.c (Fset_default_gutter_position): don't default left and
13590 right gutter visibility to t.
13591 (Fset_default_gutter_position): run
13592 default-gutter-position-changed-hook.
13593 (syms_of_gutter): add default-gutter-position-changed-hook.
13595 2000-02-26 Andy Piper <andy@xemacs.org>
13597 * specifier.c (Fmake_specifier): add gutter references.
13599 * gutter.h (RAW_WINDOW_GUTTER): new macro.
13601 * lisp.h: declare Fvalid_plist_p.
13603 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13605 (default_gutter_visible_p_changed_in_window): invalidate gutter as
13606 well as its visibility so that it gets reconstructed.
13607 (construct_window_gutter_spec): new function. Construct a string
13608 to be displayed in the gutter from a plist of strings. Take care
13609 to only use elements that are declared as visible.
13610 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13612 (gutter_validate): allow plists of strings in the specifier.
13613 (gutter_specs_changed): construct the real_gutter from the gutter
13614 specs using construct_window_gutter_spec.
13615 (gutter_visible_validate): gutter-visible is a new specifier type.
13616 (Fgutter_visible_specifier_p): new function for the new specifier.
13617 (syms_of_gutter): declare gutter-visible and
13618 Fgutter_visible_specifier_p.
13619 (specifier_type_create_gutter): intitalize new gutter-visible
13621 (reinit_specifier_type_create_gutter): ditto.
13622 (specifier_vars_of_gutter): use new specifier type for gutter
13624 (init_frame_gutters): construct real_gutter correctly.
13625 (Fgutter_specifier_p): beef up documentation.
13626 (Fgutter_size_specifier_p): ditto.
13628 * winslots.h: add real_gutter slots.
13630 2000-02-25 Andy Piper <andy@xemacs.org>
13632 * device-msw.c: Be kind to older cygwin versions. From Raymond
13633 Toy <toy@rtp.ericsson.se>.
13635 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13636 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13638 2000-02-25 Martin Buchholz <martin@xemacs.org>
13640 * elhash.c (MARK_OBJ): Practice macro hygiene.
13642 2000-02-24 Martin Buchholz <martin@xemacs.org>
13644 * miscplay.c: s/__inline__/inline/g;
13645 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13646 (get_device_compdc): INLINE ==> static inline
13647 * *.[ch]: Change INLINE to INLINE_HEADER globally.
13648 find -name '*.h' | \
13649 xargs global-replace \
13650 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13652 2000-02-25 Andy Piper <andy@xemacs.org>
13654 * window.c (window_top_frame_gutter_height): new function.
13655 (window_top_window_gutter_height): ditto.
13656 (window_top_gutter_height): use them.
13657 (window_bottom_frame_gutter_height): new function.
13658 (window_bottom_window_gutter_height): ditto.
13659 (window_bottom_gutter_height): use them.
13660 (window_left_window_gutter_width): new function.
13661 (window_left_frame_gutter_width): ditto.
13662 (window_left_gutter_width): use them.
13663 (window_right_window_gutter_width): new function.
13664 (window_right_frame_gutter_width): ditto.
13665 (window_right_gutter_width): use them.
13666 (window_pixel_height): new function. calulate window pixel height
13667 with frame gutter involvement.
13668 (Fsplit_window): calculate new sizes taking frame gutters into
13670 (window_char_height_to_pixel_height): don't include frame gutters.
13671 (window_char_height): use window_pixel_height.
13672 (window_pixheight): rename from window_pixel_height.
13673 (change_window_height): use it.
13674 (window_pixel_height_to_char_height): don't include frame gutters.
13675 (window_char_width_to_pixel_width): ditto.
13677 2000-02-25 Andy Piper <andy@xemacs.org>
13679 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13682 2000-02-24 Martin Buchholz <martin@xemacs.org>
13684 * alloc.c (staticpro):
13685 (staticpro_nodump):
13690 (compact_string_chars):
13691 (pdump_dump_wired):
13692 Convert: if (foo) abort(); ==> assert (! foo);
13694 * eldap.c (Fldap_search_basic):
13698 Fix compiler warnings, and possible crashes if (random) return
13699 value were to be used.
13701 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13703 * device-msw.c: Workaround ResetDC failure.
13705 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13706 applying a devmode.
13708 * redisplay-msw.c (get_frame_dc): Added start_page_p.
13709 (mswindows_text_width): Do not start printer page.
13711 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13713 * glyphs-msw.c: Added image methods to msprinter console and
13714 msprinter-specific image instantiation.
13716 2000-02-20 Mike Alexander <mta@arbortext.com>
13718 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13719 to avoid crashes when selection-sets-clipboard is on
13720 (mswindows_own_selection): ditto
13722 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13725 * redisplay-msw.c (get_frame_dc):
13726 (get_frame_compdc):
13728 * device-msw.c (mswindows_init_device):
13729 (mswindows_delete_device):
13730 (msprinter_init_device):
13731 (msprinter_delete_device):
13732 * frame-msw.c (mswindows_init_frame_1):
13733 (mswindows_delete_frame):
13734 (msprinter_init_frame_3):
13735 (msprinter_delete_frame): Move compatible DC to device object from
13736 frame object, for both mswindows and msprinter. Only one at a time
13737 is needed, it is a real waste to have one per frame!
13739 2000-02-23 Andy Piper <andy@xemacs.org>
13741 * glyphs.c: add dynamic width and height elements.
13742 (image_instance_equal): ditto.
13744 * glyphs-widget.c (widget_query_geometry): calculate width and
13745 height dynamically if required.
13746 (initialize_widget_image_instance): initialize dynamic dimensions.
13747 (widget_instantiate): pick-up dynamic dimensions.
13749 * glyphs.h (struct Lisp_Image_Instance): add width and height for
13750 dynamic determination. Add appropriate macros.
13752 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13754 (WINDOW_GUTTER_SIZE): ditto.
13755 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13757 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13759 (get_frame_dc): ditto.
13761 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13764 2000-02-23 Martin Buchholz <martin@xemacs.org>
13766 * XEmacs 21.2.31 is released.
13768 2000-02-22 Ben Wing <ben@xemacs.org>
13770 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13772 2000-02-22 Andy Piper <andy@xemacs.org>
13774 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13776 2000-02-21 Mike Sperber <mike@xemacs.org>
13780 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13783 2000-02-21 Mike Sperber <mike@xemacs.org>
13785 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13787 2000-02-21 Martin Buchholz <martin@xemacs.org>
13789 * XEmacs 21.2.30 is released.
13791 2000-02-20 Martin Buchholz <martin@xemacs.org>
13793 Performance hacking.
13795 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13796 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13797 * emacs.c (main_1):
13799 * console.c (DEFVAR_CONSOLE_LOCAL_1):
13800 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13801 * symeval.h (DEFVAR_SYMVAL_FWD):
13802 * symbols.c (guts_of_unbound_marker):
13803 Make all c_readonly objects also lisp_readonly and marked for life.
13804 * lrecord.h (struct lrecord_implementation):
13805 Document flags better.
13806 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13807 * lrecord.h (DECLARE_LRECORD):
13808 * lrecord.h (XSETRECORD):
13809 * lrecord.h (RECORDP):
13810 * lrecord.h (RECORD_TYPEP):
13811 * lrecord.h (RECORD_MARKER): New.
13812 * lrecord.h (error_check_*):
13813 * lrecord.h (CONCHECK_NONRECORD):
13814 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13815 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13816 * lrecord.h (set_lheader_implementation):
13817 * lrecord.h (enum lrecord_type): New.
13818 * symeval.h (SYMBOL_VALUE_MAGIC_P):
13819 * alloc.c (disksave_object_finalization_1):
13820 * alloc.c (mark_object):
13821 * alloc.c (lrecord_type_index):
13822 * alloc.c (tick_lcrecord_stats):
13823 * alloc.c (Fgarbage_collect):
13824 * alloc.c (init_alloc_once_early):
13825 * alloc.c (pdump_load):
13826 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
13827 * alloc.c (lrecord_type_index): Delete.
13828 Make lisp object type indexes be constant.
13829 Makes (byte-compile) 5% faster.
13830 Put all marker functions into their own array.
13831 Makes (garbage-collect) 5% faster.
13832 Optimize SYMBOL_VALUE_MAGIC_P.
13833 Makes (byte-compile) 2-3% faster.
13834 * config.h.in (gc_checking_assert): New.
13835 * alloc.c: Use gc_checking_assert().
13836 * .dbxrc: Make compatible with new object type implementation.
13837 * .gdbinit: Make compatible with new object type implementation.
13838 * alloc.c: Delete all symbols defined only for debugging, such as
13839 Lisp_Type_Vector and lrecord_charset.
13841 2000-02-21 Andy Piper <andy@xemacs.org>
13843 * gui-msw.c (Fmswindows_shell_execute): fix file location
13846 * buffer.c (Fkill_buffer): remove buffer from alist buffer
13847 unshowing so that set_window_buffer doesn't undo
13848 kill_buffer_hook's hard work.
13850 * glyphs-widget.c (tab_control_query_geometry): don't count the
13851 first item when calculating geometry.
13853 * glyphs.c (map_subwindow): remove redundant code.
13854 (update_frame_subwindows): be more circumspect about when to
13857 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
13858 when items haven't changed. Update faces if faces have changed as
13859 well as just the widget face.
13860 (x_tab_control_update): Update faces if faces have changed as well
13861 as just the widget face.
13863 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
13865 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
13867 (build_syscolor_string): Use mswindows_color_to_string to try to
13869 (mswindows_device_system_metrics): Reverse the foreground and
13870 background colors so that they match the documentation.
13872 * objects-msw.c: (mswindows_X_color_map): tweak some values so
13873 they match the default Windows palette.
13874 (mswindows_color_to_string): New function.
13876 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
13878 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
13880 2000-02-18 Olivier Galibert <galibert@pobox.com>
13882 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
13883 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
13885 * symbols.c (init_symbols_once_early): Removed obsolete
13886 DATA_SEG_BITS related kludge.
13887 (defvar_magic): Ditto.
13889 * malloc.c: Removed obsolete DATA_SEG_BITS
13891 * mem-limits.h: Ditto.
13893 * Makefile.in.in: Removed obsolete HAVE_SHM
13896 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
13898 * device-msw.c (mswindows_delete_device): Free DDE string
13901 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13903 * keymap.c (get_keyelt):
13904 * unexnt.c (unexec):
13905 * vm-limit.c (memory_warnings):
13906 * ntheap.c (recreate_heap):
13907 * ntheap.h (UNINIT_PTR):
13908 * select-msw.c (Fmswindows_get_clipboard):
13909 (Fmswindows_set_clipboard):
13910 * objects-msw.h (MSWINDOWS_BAD_HFONT):
13912 * menubar-msw.c (displayable_menu_item):
13914 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
13915 * sysdep.c (sys_subshell):
13916 * process-nt.c (nt_create_process):
13917 * nt.c (normalize_filename):
13918 (dostounix_filename):
13919 (unixtodos_filename):
13920 * ntproc.c (win32_executable_type):
13921 * ntplay.c (play_sound_data_1):
13923 * editfns.c (get_home_directory):
13924 * event-msw.c (struct winsock_stream):
13925 (mswindows_dde_callback):
13926 * device-msw.c (msprinter_init_device):
13927 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
13929 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
13930 mswindows_clear_toolbar were swapped!
13932 * objects-msw.c:(colormap_t):
13934 * emacs.c (struct standard_args): Fixed const jumble.
13936 * glyphs-widget.c (update_widget): Fixed comparison notation.
13938 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
13940 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
13941 __declspec(noreturn) syntax.
13943 2000-02-19 Martin Buchholz <martin@xemacs.org>
13945 * eldap.c (Fldap_open):
13946 (Fldap_search_basic):
13949 Use new coding system conversion macros.
13951 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13953 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
13955 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
13957 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
13958 (Fldap_add, Fldap_modify, Fldap_delete): New functions
13960 * eldap.c (Qadd, Qreplace): New constant symbols
13961 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
13962 interruptions by XEmacs signals
13963 Remove unnecessary calls to slow_down_interrupts and
13964 speed_up_interrupts
13965 (Fldap_search_basic): Renamed from Fldap_search_internal
13966 Added new optional parameter VERBOSE that triggers the
13967 display of progress messages
13968 Remove unnecessary calls to slow_down_interrupts and
13969 speed_up_interrupts
13970 LDAP result code analysis rewritten
13971 (Fldap_add, Fldap_modify, Fldap_delete): New functions
13972 (syms_of_eldap): Define the new symbols and functions
13975 2000-02-17 Martin Buchholz <martin@xemacs.org>
13977 * realpath.c: Determine PATH_MAX maximally portably.
13979 * insdel.c (bytecount_to_charcount): Optimize.
13980 The function used to be optimized for entirely ASCII sequences.
13981 Now it is optimized for successive characters from the same
13982 charset. This also wins big for _mostly_ ASCII sequences.
13984 * fileio.c (Ffile_truename): convert return from realpath() using
13985 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
13986 - Rewrite GCPROing slightly.
13988 * sysdep.c (sys_open): Do filename conversion, like all other
13989 sys_* functions. Fixes bug:
13990 (let ((file-name-coding-system 'iso-8859-2))
13991 (write-region x y latin2-name))
13992 ==> writes filename using internal encoding.
13994 2000-02-18 Martin Buchholz <martin@xemacs.org>
13996 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
13997 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
13998 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
13999 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14000 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14001 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14002 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14003 (CONST_IF_NOT_DEBUG): Delete.
14004 * alloc.c (this_one_is_unmarkable): Delete.
14005 (mark_object): Don't check for this_one_is_unmarkable. Use the
14006 c_readonly flag instead.
14007 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14009 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
14011 * event-msw.c (mswindows_drain_windows_queue):
14012 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14013 away redundant repaint events.
14015 2000-02-17 Andy Piper <andy@xemacs.org>
14017 * redisplay.h: declare mark_redisplay_structs.
14019 * redisplay.c (redisplay_window):
14020 (redisplay_frame): don't check subwindows_state_changed.
14021 (mark_redisplay): mark gutters here.
14023 * glyphs.c: (instantiate_image_instantiator): always layout if we
14024 haven't done so already.
14025 (allocate_image_instance): don't mark as dirty.
14026 (update_subwindow): bind inhibit_quit.
14028 * gutter.c (mark_gutters): new function.
14030 * glyphs-x.c (x_update_widget): Always resize to get round a
14033 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14034 breaking absolutely everything.
14036 * gutter.h: declare mark_gutters.
14038 2000-02-16 Martin Buchholz <martin@xemacs.org>
14040 * XEmacs 21.2.29 is released.
14042 2000-02-15 Olivier Galibert <galibert@pobox.com>
14044 * fns.c (size_bit_vector): Fix computation of the size.
14046 2000-02-15 Martin Buchholz <martin@xemacs.org>
14048 * *.[ch]: Change CONST to const globally.
14049 find -name '*.[ch]' | \
14050 xargs global-replace \
14051 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14052 - Remove vestigial references to CONST_IS_LOSING
14054 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
14056 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14057 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14058 events instead of dispatching them directly.
14059 (mswindows_handle_paint): New function to do repainting.
14060 (mswindows_wnd_proc):
14061 (emacs_mswindows_handle_magic_event): Call above function.
14063 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
14065 * objects-msw.c (mswindows_create_font_variant): Return the new
14067 (initialize_font_instance): Get font metrics from the underlined
14068 variant of the font to cope with the case where the underlined
14069 font has a bigger descent.
14071 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
14073 * gui.c (gui_item_accelerator): Return the first underlined
14074 character in item name.
14076 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14078 * lisp.h: Added Qprinter.
14080 * general.c (syms_of_general): Initialized it.
14082 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14084 (get_frame_compdc): Made inline.
14086 * console.h (struct console_methods): Added eject_page method.
14088 * frame.h: Added FRAME_DISPLAY_P and friends.
14089 Aligned backslahes in many macros in more readable fashion.
14090 Added page_number to struct frame, and an accessor macro
14093 * defice.h: Added DEVICE_DISPLAY_P and friends.
14095 * device.c (Fdevice_printer_p): Used these.
14097 * frame.c (allocate_frame_core): Initialize page number.
14098 (Fprint_job_page_number):
14099 (Fprint_job_eject_page): Implemented.
14101 * frame-msw.c (msprinter_eject_page): Added method.
14102 (msprinter_start_page): Added.
14104 * window.c (Fwindow_truncated_p): Fixed docstring.
14105 (Fwindow_last_line_visible_height): Implemented.
14107 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
14109 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14111 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14113 * syntax.c (scan_words): Always advance at least one character.
14115 2000-02-13 Andy Piper <andy@xemacs.org>
14117 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14118 to make sure the glyph is in the cachels.
14120 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14121 global image instance flag.
14122 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14123 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14125 * glyphs.c (allocate_image_instance): set dirty bits correctly.
14126 (Fset_image_instance_property): mark layout as changed.
14127 (invalidate_glyph_geometry_maybe): mark layout as changed.
14128 (glyph_width): use new NEEDS_LAYOUT macro.
14129 (glyph_ascent): ditto.
14130 (glyph_descent): ditto.
14131 (glyph_height): ditto.
14132 (image_instance_layout): mark layout as clean after laying out.
14133 (update_subwindow): don't mark layout as clean here.
14135 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14136 should no longer be needed.
14138 * glyphs-x.c (x_update_widget): sanitize asserts.
14139 (x_finalize_image_instance): sanitize assignment to widgets.
14141 * glyphs-widget.c (widget_instantiate): don't need to clear the
14144 2000-02-13 Martin Buchholz <martin@xemacs.org>
14146 * sysdep.c (getcwd): Use standard prototype.
14147 * sysdep.h (getcwd): Use standard prototype.
14149 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14150 (sequence, start, end).
14151 Remove redundant type checking.
14152 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14153 view of `caller-protects') to avoid a crash where the real fix was
14156 2000-02-12 Martin Buchholz <martin@xemacs.org>
14158 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14160 * s/sol2.h: Remove feature macro initialization.
14162 * alloc.c (alloc_lcrecord): Add more type checking assertions.
14163 (vector_hash): New. Code from internal_hash.
14165 Fix up allocation subsystem comments.
14167 * config.h.in: Add __EXTENSIONS__ for Solaris.
14169 * systime.h (EMACS_GETTIMEOFDAY): New.
14170 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14171 Remove Solaris-specific code.
14172 Use void* for the (ignored) second arg for gettimeofday().
14174 * elhash.c (hash_table_hash): Implement it, finally.
14175 * elhash.c: Use hashcode_t.
14177 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14178 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14180 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14181 * fns.c (size_bit_vector):
14182 * alloc.c (size_vector):
14183 (make_vector_internal):
14184 (make_bit_vector_internal):
14185 (sweep_bit_vectors_1):
14186 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14188 2000-02-10 Martin Buchholz <martin@xemacs.org>
14190 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14191 Include strings.h to avoid warnings for bzero and strcasecmp.
14193 2000-02-10 Olivier Galibert <galibert@pobox.com>
14195 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14196 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14198 * fns.c (size_bit_vector): New. Declare bit vectors as a
14201 2000-02-10 Olivier Galibert <galibert@pobox.com>
14203 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14204 use a value field instead.
14205 (symbol_value_forward_forward): Use value field.
14206 (DEFVAR_SYMVAL_FWD): Use value field.
14207 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
14208 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14209 (DEFVAR_CONST_INT): Ditto.
14210 (DEFVAR_BOOL): Ditto.
14211 (DEFVAR_CONST_BOOL): Ditto.
14212 (DEFVAR_INT_MAGIC): Ditto.
14213 (DEFVAR_BOOL_MAGIC): Ditto.
14215 * symbols.c (guts_of_unbound_marker): Use value field.
14216 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14217 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14219 * lisp.h: Declare dumpopaque and noninteractive1.
14221 * alloc.c (dumpopaque): Added.
14222 (pdump_dump_opaquevec): Added.
14223 (pdump): Call pdump_dump_opaquevec to dump opaque data.
14224 (pdump_load): Reload opaque data. Sync noninteractive1 with
14227 2000-02-10 Andy Piper <andy@xemacs.org>
14229 * glyphs.c (image_instance_layout): if the size changes, mark it
14232 * redisplay-output.c (redisplay_output_layout): Update the
14234 (redisplay_output_subwindow): ditto.
14236 * glyphs.c (update_subwindow): make sure we reset flags for
14237 layouts as well as everything else.
14239 * glyphs-widget.c (layout_layout): don't need to set the instances
14242 2000-02-09 Martin Buchholz <martin@xemacs.org>
14244 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
14245 not HAVE_DLOPEN, which is a lower-level thing.
14247 * .cvsignore: Ignore gmon.out
14249 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
14251 * .cvsignore: Ignore portable dumper xemacs.dmp file
14253 2000-02-09 Andy Piper <andy@xemacs.org>
14255 * redisplay-output.c (redisplay_output_layout): be more clever
14256 about when we output based on the changed flags.
14258 * glyphs.h (struct image_instantiator_methods): add update_method.
14259 (struct Lisp_Image_Instance): add changed flags. Declare new
14260 macros for manipulating them.
14262 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14263 (image_instance_parent_glyph): find an image_instance's parent
14264 glyph or image_instance.
14265 (image_instance_layout): mark the size as changed.
14266 (set_image_instance_dirty_p): new function. mark an image
14267 instance, plus all of its parents, as dirty.
14268 (Fset_image_instance_property): use it.
14269 (Fglyph_animated_timeout_handler): use it.
14270 (update_subwindow): call update_widget and device methods for
14271 update_subwindow. Mark all changed flags as clean.
14272 (Fresize_subwindow): mark size as changed.
14274 * glyphs-x.c (x_finalize_image_instance): try and detect gc
14276 (x_update_subwindow): only resize subwindows here.
14277 (x_update_widget): new function. Update all changed properties of
14279 (x_resize_subwindow): deleted.
14280 (x_widget_set_property): deleted.
14281 (x_progress_gauge_set_property): deleted.
14282 (x_progress_gauge_update): new function. Implement recorded
14284 (x_tab_control_update): ditto.
14285 (x_tab_control_set_property): deleted.
14286 (console_type_create_glyphs_x): declare new functions.
14287 (image_instantiator_format_create_glyphs_x): ditto.
14289 * glyphs-widget.c (widget_set_property): mark text changed.
14290 (update_widget): new function. Update properties of a widget.
14291 (widget_instantiate): for layouts make sure we set their
14292 children's parent correctly.
14293 (tab_control_set_property): new function. Record changes that will
14294 take place under redisplay's control.
14295 (progress_gauge_set_property): ditto.
14296 (image_instantiator_progress_guage): declare new functions.
14297 (image_instantiator_tab_control): ditto.
14299 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14301 (mswindows_update_widget): new function. Update all properties on
14302 a widget that have changed.
14303 (mswindows_button_update): new function. Update a button's set
14305 (mswindows_tab_control_update): new function. Update the items in
14307 (mswindows_tab_control_set_property): deleted.
14308 (mswindows_progress_gauge_update): new function. Update the
14309 progress gauge's progress.
14310 (mswindows_widget_set_property): deleted. This is all done
14311 asynchronously now.
14312 (mswindows_progress_gauge_set_property): ditto.
14313 (console_type_create_glyphs_mswindows): declare new methods.
14314 (image_instantiator_format_create_glyphs_mswindows): ditto.
14316 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14317 (msprinter_set_frame_properties): ditto.
14319 * console.h (struct console_methods): Add update_widget_method.
14321 2000-02-09 Andy Piper <andy@xemacs.org>
14323 * gui-msw.c (Fmswindows_shell_execute): Make
14324 mswindows-shell-execute industrial strength.
14326 2000-02-08 Martin Buchholz <martin@xemacs.org>
14328 * lrecord.h: Make macro argument `props' match member function `plist'.
14331 * fns.c (Fremprop):
14332 * fns.c (Fobject_plist):
14335 Object property list frobbing cleanup.
14336 - Allow any lisp object (compared with `eq'), not just symbols, as
14337 keys in object plists.
14338 - Move symbol plist frobbing into symbols.c, where it belongs.
14339 - Move string plist frobbing into alloc.c, where it belongs.
14340 - Everything's an lrecord now, so no need to test for symbolp, etc.
14341 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14343 * extents.c: Reorder code to remove declarations.
14345 * frame.h (store_in_alist): Remove useless declaration.
14347 2000-02-07 Martin Buchholz <martin@xemacs.org>
14349 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14350 * config.h.in: Add HAVE_XCONVERTCASE.
14352 2000-02-07 Andy Piper <andy@xemacs.org>
14354 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14355 it breaks many things.
14357 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
14359 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14360 actually can start a common comment type.
14361 * src/syntax.h (SYNTAX_END_P): ditto for end.
14363 2000-02-07 Martin Buchholz <martin@xemacs.org>
14365 * XEmacs 21.2.28 is released.
14367 2000-02-06 Martin Buchholz <martin@xemacs.org>
14369 * event-Xt.c (x_keysym_to_character): New.
14370 (maybe_define_x_key_as_self_inserting_character): New.
14371 (x_has_keysym): New.
14372 Auto-define all keys on the keyboard as self-insert-key.
14374 2000-02-02 Martin Buchholz <martin@xemacs.org>
14376 * menubar.c (vars_of_menubar): A small code simplification.
14378 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14381 * ExternalClient.c:
14382 * EmacsShell-sub.c:
14385 Use consistent style for specifying X resources.
14387 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14388 This makes (dontusethis-set-symbol-value-handler) actually usable.
14390 * lrecord.h (lrecord_decription_type):
14391 * alloc.c (pdump_register_sub):
14394 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14395 Comply with XEmacs coding style.
14396 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14397 args, and XD_LISP_OBJECT_ARRAY with 3 args.
14399 * keymap.c (Faccessible_keymaps):
14400 Make (accessible-keymaps map "\C-h") do the Right Thing.
14401 Make (accessible-keymaps map []) do the Right Thing.
14402 Make (accessible-keymaps map "") do the Right Thing.
14403 (check_keymap_definition_loop): New function.
14404 (keymap_store_internal): Keep luser from shooting self in foot,
14405 via (define-key ctl-x-4-map "p" global-map).
14406 Remove fullness slot from struct Lisp_Keymap, since hash tables
14408 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14410 2000-01-30 Martin Buchholz <martin@xemacs.org>
14412 * redisplay.c (init_redisplay): Fix small memory leak.
14414 * elhash.c (pdump_reorganize_hash_table):
14415 Rename from reorganize_hash_table. Change prototype.
14416 Reuse the original memory for hentries. Save 100k.
14417 * alloc.c (PDUMP_READ): new macro.
14418 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14419 * alloc.c: No need to #ifndef before #undef.
14421 * print.c: Allow debug_print() to print readably by modifying
14422 debug_print_readably. Use consistent variable names.
14424 * .dbxrc: Try to get things to work even if stopped in a function
14425 without source available by explicitly specifying source files.
14426 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14428 * unexnt.c (_start): Removed bogus code which caused loading heap
14429 from differrent executable file.
14430 Removed bogus assignment to _fmode, which caused inconsistencies.
14432 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14434 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14435 Have spawnve encapsulation regard DONT_ENCAPSULATE.
14436 Do not preliminary `#define signal sigset'.
14438 * systime.h: Do not prototype environ on windows nt and cygwin,
14439 this conflicts with system header.
14441 * syssignal.h: Use correct define for WINDOWSNT
14443 * sysdep.h: Do not prototype environ on windows nt, this conflicts
14444 with system header.
14446 * sysdep.c (near start of file): Fixed commentary and rearranged
14447 ifdefs in readable order.
14448 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14451 (end_of_data): Do not compile in if using PDUMP.
14453 * symsinit.h: Prototyped vars_of_nt().
14455 * ntproc.c (windows9x_p): Added, instead of os_subtype.
14456 (find_child_console): Use it.
14457 (sys_kill): Use it.
14459 * ntheap.h: Do not extern os_subtype.
14461 * ntheap.c (cache_system_info): Do not cache unneeded:
14462 nt_major_version, nt_minor_version and os_subtype.
14463 (recreate_heap): Do not compile in when PDUMPing.
14465 * nt.c (geteuid and friends): Use the new varibale
14466 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14467 (init_user_info): Removed the above mentioned hackery.
14468 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14469 stat has been fixed in the C runtime.
14470 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14472 * file-coding.c (struct file_coding_dump): Do not define
14473 ucs_to_mule_table in the struct if not MULE.
14474 (struct struct lrecord_description fcd_description_1): Do not dump
14477 * emacs.c (main_1): Call vars_of_nt().
14478 (right before Fdump_emacs_data): Don't need lastfile if using both
14479 portabe dumper and system malloc.
14481 * alloc.c (Fmemory_limit): Conditionalized out.
14482 (pdump): Use OPEN_BINARY for the portable dump file.
14483 (pdump_load): Ditto.
14485 2000-02-02 Mike Alexander <mta@arbortext.com>
14487 * nt.c (convert_time): Set tm_isdst before calling mktime and
14488 avoid calling it at all if the compiler supports 64 bit integers.
14489 Also initialize utc_base_ft before using it.
14491 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
14493 * frame.c (change_frame_size_1): Take f->internal_border_width
14494 into consideration when calculating the width of the frame.
14496 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14498 * window.c (frame_min_height):
14499 (frame_size_valid_p):
14500 (frame_pixsize_valid_p): Added.
14501 (check_frame_size): Generalized.
14503 * window.h: Prototyped the above.
14506 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14507 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14508 Deleted Vwin32_* and Vbinary_process_* unused variables.
14510 * device-msw.c (msprinter_init_device): Do not get printer font
14511 list; Added DEVMODE functions.
14513 * frame-msw.c: Added lots of printer code.
14515 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14518 * console-msw.h: Added more msprinter device private slots.
14520 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14522 * event-msw.c (key_needs_default_processing_p): Added.
14523 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14525 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14527 * glyphs.c (image_instance_layout): Mark image instance as clean
14529 (glyph_dirty_p): Removed redundant function.
14530 (invalidate_glyph_geometry_maybe): Added.
14531 (update_glyph_cachel_data): Call it.
14533 * glyphs.h: Prototyped it.
14535 * redisplay.c (add_glyph_rune): Call it.
14536 (redisplay_window): Reset glyphs cachels when frame faces have
14537 changed, thus forcing recomputation of built-in border glyphs.
14539 2000-01-30 Martin Buchholz <martin@xemacs.org>
14541 * Makefile.in.in: Make portable dumper and purify play well together.
14542 Add imperfect, but better than nothing, support for pdump.
14543 Remove xemacs.dmp when temacs is re-generated.
14544 Don't ignore errors when dumping xemacs.
14546 * symbols.c (maybe_call_magic_handler): Remove one magic number.
14548 2000-01-28 Andy Piper <andy@xemacs.org>
14550 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14551 (setup_normal_frame): ditto.
14552 (setup_frame_without_minibuffer): ditto.
14553 (setup_minibuffer_frame): ditto.
14554 (delete_frame_internal): ditto.
14555 (Fmake_frame_invisible): ditto.
14556 (Ficonify_frame): ditto.
14558 * window.h: change Fset_window_buffer signature.
14560 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14561 (Fset_window_buffer): allow recording of buffer if the window is
14562 the selected window.
14563 (window_loop): Use new Fset_window signature.
14565 2000-01-23 Daniel Pittman <daniel@danann.net>
14567 * config.h.in: Added template for `HAVE_ATHENA_3D'
14569 2000-01-29 Andy Piper <andy@xemacs.org>
14571 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14573 * gutter.c (output_gutter): Don't output if the window isn't live.
14575 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14577 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14578 of 01/12/00: Moved SetFocus back here where it belongs.
14580 2000-01-23 Andy Piper <andy@xemacs.org>
14582 * s/cygwin32.h: declare printer things.
14584 2000-01-26 Andy Piper <andy@xemacs.org>
14586 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14589 2000-01-24 Andy Piper <andy@xemacs.org>
14591 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14592 (mswindows_button_instantiate): Make sure glyph is a pixmap.
14594 * glyphs-widget.c (widget_instantiate): Avoid shadows.
14596 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14598 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14600 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14601 (mswindows_output_display_block): Avoid local shadows.
14603 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14604 (mswindows_enqueue_mouse_button_event): ditto.
14605 (mswindows_handle_gui_wm_command): remove declaration.
14607 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14610 * console-msw.h: Avoid shadows.
14611 (mswindows_get_toolbar_button_text):
14612 (emacs_mswindows_create_stream_pair):
14613 (emacs_mswindows_delete_stream_pair):
14614 (mswindows_handle_toolbar_wm_command): declare.
14616 * device-msw.c (build_syscolor_string): Avoid shadows.
14618 2000-01-23 Andy Piper <andy@xemacs.org>
14620 * glyphs-widget.c (widget_instantiate): reverse the items for
14621 layouts so that children are in the expected order.
14623 2000-01-28 Martin Buchholz <martin@xemacs.org>
14625 * ralloc.c: safe_bcopy ==> memmove
14626 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14627 * s/msdos.h: Remove BCOPY macros.
14628 * insdel.c (gap_right): Remove BCOPY conditional code.
14629 * insdel.c (gap_left): Remove BCOPY conditional code.
14630 XEmacs demands a working ANSI C compiler - hence memmove.
14632 * regex.c (regex_compile): Remove accidental use of trigraphs.
14634 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14636 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14639 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14641 * event-msw.c (mswindows_drain_windows_queue): Added the
14643 (mswindows_need_event): Commented the call to
14644 mswindows_drain_windows_queue().
14645 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14648 * console-msw.h: Moved a few function prototypes here from
14651 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14652 parameter from unsigned short to unsigned long.
14653 (Fmswindows_shell_execute): Added return value.
14655 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14657 * sysdep.c (init_system_name):
14658 process-unix.c (unix_canonicalized_host_name):
14659 Don't call freeaddrinfo() if getaddrinfo() fails.
14661 * process-unix.c (unix_open_unix_network_stream):
14662 Moved the code to get a port # into address loop.
14664 2000-01-27 Martin Buchholz <martin@xemacs.org>
14666 * buffer.c (reinit_vars_of_buffer):
14667 The right place to initialize conversion_in_dynarr and
14668 conversion_out_dynarr.
14670 * alloc.c (pdump): Use the real open() till sys_open() is functional.
14672 * process-unix.c (unix_canonicalize_host_name): Muleize.
14673 (unix_open_network_stream): Muleize.
14675 * buffer.h: Fix up prototypes for ralloc.c functions.
14677 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14678 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14679 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14680 instead of gethostbyname()
14681 * process-unix.c: In unix_canonicalize_host_name() and
14682 unix_open_network_stream(), add code to use getaddrinfo()
14683 instead of gethostbyname().
14685 2000-01-27 Daniel Pittman <daniel@danann.net>
14687 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14688 libs when built with flat Athena.
14690 2000-01-27 Martin Buchholz <martin@xemacs.org>
14692 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14693 Use coding standards for function prototypes.
14695 2000-01-25 Martin Buchholz <martin@xemacs.org>
14697 * dialog-msw.c (push_lisp_string_as_unicode):
14698 * doc.c (unparesseuxify_doc_string):
14699 * dired.c (Fuser_name_completion_1):
14700 * dired.c (Fuser_name_all_completions):
14701 * dired.c (free_user_cache):
14702 * dired.c (user_name_completion):
14703 * console-x.c (get_display_arg_connection):
14704 * minibuf.c (clear_echo_area_internal):
14705 * minibuf.c (echo_area_append):
14706 * eldap.c (Fldap_open):
14707 * eldap.c (Fldap_search_internal):
14708 * frame-x.c (x_set_frame_text_value):
14709 * frame-x.c (x_set_frame_properties):
14710 * frame-x.c (x_create_widgets):
14711 * redisplay-tty.c (term_get_fkeys_1):
14712 * objects-x.c (x_parse_nearest_color):
14713 * objects-x.c (x_valid_color_name_p):
14714 * objects-x.c (x_initialize_font_instance):
14715 * objects-x.c (x_list_fonts):
14716 * objects-x.c (x_find_charset_font):
14717 * tooltalk.c (Fadd_tooltalk_message_arg):
14718 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14719 * tooltalk.c (Fadd_tooltalk_pattern_arg):
14720 * process-unix.c (unix_create_process):
14721 * ntproc.c (sys_spawnve):
14722 * sound.c (Fplay_sound_file):
14723 * sound.c (Fplay_sound):
14724 * buffer.c (init_initial_directory):
14725 * buffer.c (init_buffer):
14726 * editfns.c (init_editfns):
14727 * editfns.c (Ftemp_directory):
14728 * editfns.c (Fuser_full_name):
14729 * editfns.c (uncache_home_directory):
14730 * editfns.c (get_home_directory):
14731 * editfns.c (Fuser_home_directory):
14732 * editfns.c (Fformat_time_string):
14733 * editfns.c (Fcurrent_time_string):
14734 * gui-x.c (button_item_to_widget_value):
14735 * database.c (Fopen_database):
14736 * event-Xt.c (x_to_emacs_keysym):
14737 * event-Xt.c (x_event_to_emacs_event):
14738 * event-Xt.c (describe_event_window):
14739 * event-msw.c (mswindows_wnd_proc):
14740 * glyphs-eimage.c (jpeg_instantiate):
14741 * glyphs-eimage.c (gif_instantiate):
14742 * glyphs-eimage.c (png_instantiate):
14743 * glyphs-eimage.c (tiff_instantiate):
14744 * glyphs-x.c (xbm_instantiate_1):
14745 * glyphs-x.c (x_xbm_instantiate):
14746 * glyphs-x.c (x_xface_instantiate):
14747 * glyphs-x.c (autodetect_instantiate):
14748 * glyphs-x.c (cursor_font_instantiate):
14749 * glyphs-x.c (x_widget_instantiate):
14750 * glyphs-x.c (x_widget_set_property):
14751 * glyphs-x.c (x_widget_property):
14752 * glyphs-x.c (BUILD_GLYPH_INST):
14753 * print.c (write_string_to_stdio_stream):
14754 * print.c (output_string):
14755 * print.c (Falternate_debugging_output):
14756 * print.c (Fexternal_debugging_output):
14757 * glyphs-msw.c (extract_xpm_color_names):
14758 * glyphs-msw.c (mswindows_xpm_instantiate):
14759 * glyphs-msw.c (bmp_instantiate):
14760 * glyphs-msw.c (resource_name_to_resource):
14761 * glyphs-msw.c (mswindows_resource_instantiate):
14762 * glyphs-msw.c (xbm_instantiate_1):
14763 * glyphs-msw.c (mswindows_xbm_instantiate):
14764 * glyphs-msw.c (mswindows_xface_instantiate):
14765 * glyphs-msw.c (mswindows_widget_instantiate):
14766 * glyphs-msw.c (add_tree_item):
14767 * glyphs-msw.c (add_tab_item):
14768 * glyphs-msw.c (mswindows_combo_box_instantiate):
14769 * glyphs-msw.c (mswindows_widget_property):
14770 * glyphs-msw.c (mswindows_combo_box_property):
14771 * glyphs-msw.c (mswindows_widget_set_property):
14772 * console.c (stuff_buffered_input):
14773 * objects-msw.c (mswindows_initialize_color_instance):
14774 * objects-msw.c (mswindows_valid_color_name_p):
14775 * objects-msw.c (mswindows_list_fonts):
14776 * objects-msw.c (mswindows_font_instance_truename):
14777 * bytecode.c (optimize_compiled_function):
14778 * select-x.c (symbol_to_x_atom):
14779 * select-x.c (x_atom_to_symbol):
14780 * select-x.c (hack_motif_clipboard_selection):
14781 * select-x.c (selection_data_to_lisp_data):
14782 * select-x.c (lisp_data_to_selection_data):
14783 * select-x.c (Fx_get_cutbuffer_internal):
14784 * select-x.c (Fx_store_cutbuffer_internal):
14785 * buffer.h (TO_EXTERNAL_FORMAT): New function.
14786 * buffer.h (TO_INTERNAL_FORMAT): New function.
14787 * emacs.c (make_arg_list_1):
14788 * emacs.c (make_argc_argv):
14789 * emacs.c (main_1):
14790 * emacs.c (Fdump_emacs):
14791 * emacs.c (split_string_by_emchar_1):
14796 * device-x.c (x_init_device):
14797 * device-x.c (Fx_valid_keysym_name_p):
14798 * device-x.c (Fx_get_font_path):
14799 * device-x.c (Fx_set_font_path):
14800 * glyphs.c (bitmap_to_lisp_data):
14801 * glyphs.c (pixmap_to_lisp_data):
14802 * alloc.c (make_ext_string): Use coding system arguments. Update
14804 * alloc.c (build_string):
14805 * callproc.c (child_setup):
14806 * callproc.c (init_callproc):
14807 * fileio.c (lisp_strerror):
14808 * fileio.c (directory_file_name):
14809 * fileio.c (Fexpand_file_name):
14810 * fileio.c (Ffile_truename):
14811 * fileio.c (Fsysnetunam):
14812 * fileio.c (Fdo_auto_save):
14813 * sysdep.c (sys_readdir):
14814 * tests.c: New file. Allow adding C tests.
14815 Replace GET_* macros with a more comprehensible and flexible
14816 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14818 Any coding system can be used to do format conversion.
14819 Eliminate enum external_data_format.
14820 Eliminate convert_to_external_format.
14821 Eliminate convert_to_internal_format.
14822 Make sure file-name, keyboard, terminal, and ctext are always
14823 defined as coding systems or aliases. Make
14824 file-name-coding-system, terminal-coding-system, and
14825 keyboard-coding-system magical variables that are equivalent to
14826 defining the corresponding coding system aliases.
14828 * file-coding.c (Fcoding_system_canonical_name_p): New function.
14829 * file-coding.c (Fcoding_system_alias_p): New function.
14830 * file-coding.c (Fcoding_system_aliasee): New function.
14831 * file-coding.c (append_suffix_to_symbol): New function.
14832 * file-coding.c (dangling_coding_system_alias_p): New function.
14833 * file-coding.c (Ffind_coding_system):
14834 * file-coding.c (Fcopy_coding_system):
14835 * file-coding.c (encode_coding_no_conversion):
14836 * file-coding.c (syms_of_file_coding):
14837 * file-coding.c (vars_of_file_coding):
14838 Rewrite coding system alias code.
14839 Allow nested aliases, like symbolic links.
14840 Allow redefinition of coding system aliases.
14841 Prevent existence of dangling coding system aliases.
14843 * dired.c (Fuser_name_completion_1):
14844 * dired.c (Fuser_name_all_completions):
14845 A crash would happen if user did QUIT in the middle of building
14846 user_name_cache. Remove redundant code in mainline and unwind_protect.
14849 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
14851 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
14852 an unsigned char *. Update all callers.
14854 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14856 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
14858 2000-01-25 Martin Buchholz <martin@xemacs.org>
14860 * elhash.c (hentry_description): Use more portable definition.
14861 (resize_hash_table): Initialize new hentries using
14862 xnew_array_and_zero, thereby simplifying the code.
14864 * mule-charset.c (make_charset): Make sure entire object is
14865 initialized, to avoid Purify warnings.
14867 * alloc.c (resize_string): Fix unlikely crash with big strings.
14869 2000-01-24 Martin Buchholz <martin@xemacs.org>
14871 * realpath.c (xrealpath):
14872 Don't call getwd().
14874 2000-01-25 Martin Buchholz <martin@xemacs.org>
14876 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
14878 1999-12-28 Max Matveev <max@melbourne.sgi.com>
14880 * unexelfsgi.c (unexec): Change the way we decide which segment
14881 should be extended.
14883 Assumption that .bss section should be outside the PT_LOADable
14884 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
14885 it's present) is inside the 'data' segment. This would fail the
14886 test which was used to find a segment to grow and cover new
14887 heap. Instead of this assumption, I created another one - on IRIX
14888 the segment to grow should start below .bss and it's address
14889 should extent above the end of .bss. Once this segment is
14890 identified, it's grown to accommodate the new heap and new
14891 zero-length .bss section is added at the end of .data2.
14893 2000-01-25 Martin Buchholz <martin@xemacs.org>
14895 * eval.c (Feval): Wrong number of arguments should use original
14896 function, not the indirect_function version of it.
14898 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
14900 * glyphs-x.c (x_button_instantiate): Don't add image if
14901 it is not a pixmap.
14902 (x_locate_pixmap_file): Call Fexpand_file_name when file name
14905 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
14907 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
14909 (DEFVAR_INT_MAGIC): Ditto.
14910 (DEFVAR_BOOL_MAGIC): Ditto.
14911 * glyphs.h: Reindent backslash.
14913 2000-01-24 Martin Buchholz <martin@xemacs.org>
14915 * glyphs-widget.c (layout_query_geometry):
14916 (layout_layout): Use correct types for gheight, gwidth.
14918 2000-01-24 Martin Buchholz <martin@xemacs.org>
14920 * EmacsManager.c (QueryGeometry): Purified.
14922 2000-01-23 Martin Buchholz <martin@xemacs.org>
14924 * alloc.c (make_float): Make sure entire object is initialized, to
14925 avoid Purify warnings.
14926 (pdump_register_sub): Remove useless assignment.
14927 (pdump): Use xmalloc, not malloc.
14928 (pdump_load): Use xmalloc, not malloc.
14930 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14937 * sysdep.c: Removed redundant #include <windows.h>
14939 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14941 * frame.c (delete_frame_internal): Do not delete device when its
14942 implementation so declares.
14943 (delete_frame_internal): Set device selected frame to nil when
14944 last frame goes away.
14946 * device-msw.c (msprinter_device_system_metrics): Implemented.
14947 (mswindows_device_system_metrics): Added 'device-dpi property.
14949 * device.c: (Fdevice_printer_p): Added.
14950 Added 'offset-workspace device metric.
14952 * console.h (device_metrics): Declared DM_offset_workspace.
14954 2000-01-23 Martin Buchholz <martin@xemacs.org>
14956 * fileio.c (Ffile_truename): Remove pointless and confusing
14957 initialization of elen.
14959 * glyphs-widget.c: Compiler warning fixes.
14961 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
14963 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
14964 instead of a Lisp_Object as argument to make it consistent with
14965 the other LIVE_P macros.
14966 (CHECK_LIVE_PROCESS): New macro.
14968 * process.c: Declare Qprocess_live_p.
14969 (Fprocess_live_p): New function.
14970 (create_process): Use PROCESS_LIVE_P.
14971 (read_process_output): Ditto.
14972 (set_process_filter): Ditto.
14973 (Fdelete_process): Ditto.
14974 (kill_buffer_processes): Ditto
14975 (process_send_signal): Use CHECK_LIVE_PROCESS.
14976 (Fprocess_input_coding_system): Check whether process is still
14977 alive (fix PR#1061).
14978 (Fprocess_output_coding_system): Ditto.
14979 (Fprocess_coding_system): Ditto.
14980 (Fset_process_input_coding_system): Ditto.
14981 (Fset_process_output_coding_system): Ditto.
14983 2000-01-23 Andy Piper <andy@xemacs.org>
14985 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
14988 * glyphs.c (mark_image_instance): take into account changed
14989 image_instance format.
14990 (image_instance_equal): ditto.
14991 (image_instance_hash): ditto.
14993 * glyphs-widget.c (widget_instantiate): Incorporate layout
14994 instantiation here. Delay layout of the layout until later.
14995 (layout_instantiate): deleted.
14996 (layout_query_geometry): new function. get the geometry of a
14998 (layout_layout): layout a layout dynamically.
14999 (image_instantiator_widget): New function - splitting up
15000 image_instantiator_format_create_glyphs_widget for netwinder
15002 (image_instantiator_buttons):
15003 (image_instantiator_edit_fields):
15004 (image_instantiator_combo_box):
15005 (image_instantiator_scrollbar):
15006 (image_instantiator_progress_guage):
15007 (image_instantiator_tree_view):
15008 (image_instantiator_tab_control):
15009 (image_instantiator_labels):
15010 (image_instantiator_layout): ditto.
15011 (image_instantiator_format_create_glyphs_widget): Call preceding
15014 2000-01-22 Martin Buchholz <martin@xemacs.org>
15016 * process.c (Fset_process_coding_system):
15017 * device-x.c (Fx_keysym_hash_table):
15020 * lstream.c (Lstream_write): Return documented value, not 0.
15022 * fileio.c (directory_file_name):
15023 (Fsubstitute_in_file_name):
15024 (Fsubstitute_insert_file_contents_internal):
15025 (Fwrite_region_internal):
15030 Remove vestigial APOLLO-conditional code.
15032 2000-01-21 Martin Buchholz <martin@xemacs.org>
15034 * getpagesize.h: Add guard macros.
15035 * libsst.h: Add guard macros.
15036 * libst.h: Add guard macros.
15037 * line-number.h: Add guard macros.
15038 * ndir.h: Add guard macros.
15039 * sysfloat.h: Add guard macros.
15040 * sysfile.h: Add guard macros.
15041 * sysproc.h: Add guard macros.
15042 * syswait.h: Add guard macros.
15043 * xintrinsic.h: Add guard macros.
15044 * xintrinsicp.h: Add guard macros.
15045 * xmmanager.h: Add guard macros.
15046 * xmmanagerp.h: Add guard macros.
15047 * xmprimitive.h: Add guard macros.
15048 * xmu.h: Add guard macros.
15049 * gpmevent.h: Add copyright statement. Add guard macros.
15050 * miscplay.h: Add guard macros.
15051 * *.h: Use consistent C-standards-approved guard macro names.
15053 * opaque.c (make_opaque): Switch parameter order.
15054 * opaque.h (make_opaque): Switch parameter order.
15055 Update all callers.
15056 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15058 * config.h.in (type_checking_assert): Added.
15059 (bufpos_checking_assert): Added.
15061 2000-01-21 Martin Buchholz <martin@xemacs.org>
15063 * alloc.c: Harmless pdump changes.
15065 - spell alignment correctly.
15066 * sysdep.c: Use countof()
15068 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15070 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15071 initially_selected_for_input() console method, default to 0.
15072 (semi_canonicalize_console_connection): Try to delegate to
15073 canonicalize_console_connection if no such console method.
15074 (canonicalize_console_connection): Vice versa.
15075 (print_console): Do not print nil connection.
15077 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15078 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15079 (XDEVIMPF_FRAMELESS_OK): Added.
15080 (CONSOLE_INHERITS_METHOD): Added.
15082 * console-msw.c (mswindows_canonicalize_console_connection):
15084 (mswindows_canonicalize_device_connection): Added.
15086 * console-msw.h (struct msprinter_device): Added this struct and
15088 (mswindows_device): Made fontlist a lisp object.
15090 * device.c (semi_canonicalize_device_connection): Try to delegate
15091 to canonicalize_device_connection if no such console method.
15092 (canonicalize_device_connection): Vice versa.
15093 (print_device): Do not print nil connection.
15095 * device-msw.c (mswindows_init_device): Call InitCommonControls
15097 (mswindows_delete_device): Removed fontlist deallocation.
15098 (mswindows_mark_device): Added.
15100 * events.c (event_equal): Added abort() at unreached code.
15101 (event_hash): Ditto.
15103 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15104 fallback tags of Windows devices.
15106 * general.c (syms_of_general): Initialized Qmsprinter.
15108 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15109 of fallback tags of Windows devices.
15111 * lisp.h: Declared Qmsprinter.
15113 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15115 (mswindows_list_fonts): Ditto.
15116 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15117 that it can be used by both mswindows and msprinter devices.
15118 (initialize_font_instance): Added.
15119 (mswindows_initialize_font_instance): Use it.
15120 (msprinter_initialize_font_instance): Added.
15122 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15123 and implementation flags check.
15124 (redisplay_without_hooks): Changed the call to the above.
15125 (Fredraw_device): Ditto.
15126 (Fredisplay_device): Ditto.
15128 * redisplay-msw.c (get_frame_dc): Implemented.
15129 (get_frame_compdc): Implemented.
15130 (many functions): Use the two functions above to get device
15131 contexts, ether for a window or a printer.
15133 2000-01-21 Olivier Galibert <galibert@pobox.com>
15135 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15136 initialization here.
15137 (init_symbols_once_early): Call it.
15138 * emacs.c (main_1): Call it.
15139 * symsinit.h: Declare it.
15141 2000-01-19 Olivier Galibert <galibert@pobox.com>
15143 * alloc.c: Use a lrecord_header * in the backtrace instead of a
15145 (pdump_backtrace): Ditto.
15146 (pdump_register_object): Ditto. Cleanup use of the pointers.
15147 (pdump_get_entry): Abort if trying to register a null pointer.
15148 (pdump_dump_data): Cleanup types when relocating.
15149 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15150 (pdump_dump_rtables): Remove bad casts.
15151 (pdump_load): Cleanup relocation w.r.t union type. Use a
15152 Lisp_Object instead of a EMACS_INT for the hashtable
15155 2000-01-20 Martin Buchholz <martin@xemacs.org>
15157 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15159 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15161 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15163 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15165 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15167 * faces.h (FACE_STRIKETHRU_P): Added.
15169 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15172 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15173 (mswindows_set_dc_font): New function, aware of font variants,
15174 separated from mswindows_update_dc.
15176 * objects-msw.h (struct mswindows_font_instance_data): Added
15179 * objects-msw.c (mswindows_finalize_font_instance): Delete all
15180 cached fonts and the data structure.
15181 (mswindows_initialize_font_instance): Added creation of font data
15183 (mswindows_print_font_instance): Print at least something.
15184 (mswindows_create_font_variant): Implemented.
15185 (mswindows_get_hfont): Implemented.
15187 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
15189 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15190 prototyping problem with msvc.
15192 * emacs.c (main_1): added syms_of_gui_mswindows() call
15194 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15195 syms_of_gui_mswindows() function
15197 * symsinit.h: added the prototype for syms_of_gui_mswindows()
15199 2000-01-18 Martin Buchholz <martin@xemacs.org>
15201 * XEmacs 21.2.27 is released.
15203 2000-01-18 Martin Buchholz <martin@xemacs.org>
15205 * glyphs-eimage.c (struct tiff_error_struct):
15207 (tiff_warning_func):
15208 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15213 * unexec.c: Remove vestigial Lucid C code.
15217 * libsst.c: Ansify.
15218 Remove declarations of errno and strerror().
15220 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
15222 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15224 2000-01-16 Martin Buchholz <martin@xemacs.org>
15226 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15229 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15234 Change enum eol_type to eol_type_t.
15236 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15238 * gui.c (get_gui_callback): Check cons before accessing car.
15240 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15242 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15243 (XSETSPECIFIER_TYPE): Ditto.
15245 2000-01-17 Didier Verna <didier@xemacs.org>
15247 * redisplay.c (generate_fstring_runes): compute string size in
15248 characters, not bytes.
15250 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
15252 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15254 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
15256 * print.c (print_error_message): Call print_prepare().
15258 2000-01-14 Martin Buchholz <martin@xemacs.org>
15260 * .dbxrc: Renamed from dbxrc.
15262 * events.c (event_to_character):
15263 Use `assert (foo)' instead of `if (!foo) abort()'
15265 * .gdbinit (xtype): Add documentation.
15266 * .gdbinit (check-temacs): New function.
15267 * .gdbinit (check-xemacs): New function.
15268 * dbxrc (check-xemacs): New function.
15269 * dbxrc (check-xemacs): New function.
15271 2000-01-14 Andy Piper <andy@xemacs.org>
15273 * glyphs-widget.c (widget_query_geometry): Make sure that we
15274 calculate default dimensions correctly.
15276 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15278 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15280 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15281 pdump_wire'd variable.
15283 * emacs.c: (main_1): Conditionalized calls to
15284 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15286 2000-01-13 Martin Buchholz <martin@xemacs.org>
15288 * window.c (Fset_window_configuration):
15289 * sysdep.c (_start):
15290 * input-method-motif.c (res):
15291 * event-Xt.c (Xt_process_to_emacs_event):
15292 Simple compiler warning fixes.
15294 * bytecode.c (funcall_compiled_function): Use the original
15295 function symbol on the backtrace list in preference to the
15296 compiled_function object in error messages.
15298 2000-01-13 Andy Piper <andy@xemacs.org>
15300 * glyphs-x.c (update_widget_face): Make sure we update the widget
15301 background as well as foreground.
15303 2000-01-13 Andy Piper <andy@xemacs.org>
15305 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15306 fields to subwindow.
15307 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15308 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15309 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15310 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15312 * glyphs-widget.c (check_valid_tab_orientation): new function.
15313 (initialize_widget_image_instance): zero orientation and
15315 (widget_instantiate): pick up orientation.
15316 (tab_control_query_geometry): return appropriate values for
15319 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15320 appropriate creation flags for left, right and bottom tabs.
15322 * s/cygwin32.h: add tab definitions.
15324 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15326 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15327 frame upon hiding a subwindow.
15328 (mswindows_button_instantiate): Changed the push button style to
15330 (mswindows_button_instantiate): Removed button BS_NOTIFY
15332 (mswindows_button_instantiate): Removed redundant check for
15333 a disabled gui item.
15334 (mswindows_button_instantiate): Made use of WS_TABSTOP
15335 consistent: "operable" controls (edit, button, tree, scroll) have
15336 this style, "display-only" ones (static, progress gauge) do
15337 not. This style is currently ignored by XEmacs though. Also,
15338 removed the WS_EX_CONTROLPARENT style - it is not for children,
15339 it is for their parents!
15340 (mswindows_edit_field_instantiate): Ditto.
15341 (mswindows_progress_gauge_instantiate): Ditto.
15342 (mswindows_tree_view_instantiate): Ditto.
15343 (mswindows_tab_control_instantiate): Ditto.
15344 (mswindows_scrollbar_instantiate): Ditto.
15345 (mswindows_combo_box_instantiate): Ditto.
15346 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15347 style to the "clip" window.
15348 (mswindows_button_instantiate): Removed compilation warning by
15349 equally typing terms of the ?: operator.
15351 2000-01-12 Didier Verna <didier@xemacs.org>
15353 * redisplay.c (generate_fstring_runes): new parameter holding the
15354 last modeline-format extent.
15355 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15356 extent, fill the glyph block with it.
15357 (generate_fstring_runes): handle these parameters.
15358 (generate_formatted_string_db): ditto.
15360 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15361 glyphs'extents in the modeline.
15363 1999-01-11 Mike Woolley <mike@bulsara.com>
15365 * ntheap.c: Reduced the reserved heap space from 1Gb down to
15366 256Mb, as a workaround for the non-starting problem many people
15369 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15371 * console-tty.c (Fset_console_tty_output_coding_system):
15372 Force redrawing tty frame.
15374 2000-01-10 Didier Verna <didier@xemacs.org>
15376 * redisplay.c (generate_fstring_runes): fix size computation bug.
15378 2000-01-09 William M. Perry <wmperry@aventail.com>
15380 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15382 2000-01-09 Andy Piper <andy@xemacs.org>
15384 * glyphs-msw.c: index -> i to avoid shadows.
15385 (xbm_create_bitmap_from_data): make static.
15386 (check_valid_string_or_int): deleted.
15387 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15389 * glyphs-x.c (x_update_subwindow): remove unused args.
15391 * glyphs.c (glyph_image_instance): return the thing. Don't set the
15392 back pointer - this is done in allocate_image_instance.
15393 (query_string_font): return Qnil to make the compiler happy.
15394 (unmap_subwindow): set to ~0 to make the compiler happy.
15395 (glyph_query_geometry): comment out until used.
15396 (glyph_layout): ditto.
15398 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
15400 * insdel.c (signal_after_change): Remove extraneous unbind_to().