1 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * mule-charset.c (charset_code_point): Fix problem about
6 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
8 * mule-charset.c (decode_builtin_char): Reorganized.
10 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
12 * text-coding.c (char_encode_as_entity_reference): Modify for
14 (char_encode_shift_jis): Likewise.
15 (char_encode_big5): Likewise.
16 (char_encode_utf8): Likewise.
17 (char_encode_iso2022): Likewise.
19 * mule-charset.c (charset_code_point): Add new argument
21 (Fencode_char): Add new optional argument `defined_only'.
23 * chartab.c (put_char_table): Modify for `charset_code_point'.
25 * char-ucs.h (charset_code_point): Add new argument
27 (encode_char_1): Modify for `charset_code_point'.
29 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
31 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
32 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
34 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
36 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
37 (Qjis_x0208): Likewise.
38 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
39 XCHARSET_FINAL(charset).
40 (charset_code_point): Modify condition for final-byte based
42 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
43 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
44 in UTF-2000; specify `=jis-x0208' as the mother of
45 `japanese-jisx0208-1978', `japanese-jisx0208' and
46 `japanese-jisx0208-1990' in UTF-2000.
48 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
50 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
52 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
54 * text-coding.c (decode_coding_utf16): Support UTF-16.
55 (char_encode_utf16): Fixed.
57 2002-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
59 * text-coding.c (Qutf16): New variable in MULE.
60 (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
61 (Fcoding_system_type): Add `utf-16' in MULE.
62 (struct detection_state): Add a structure for utf16 in MULE.
63 (detect_coding_type): Setup st->utf16.mask in MULE.
64 (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
66 (reset_encoding_stream): Use `char_encode_utf16' and
67 `char_finish_utf16' for `CODESYS_UTF16' in MULE.
68 (detect_coding_utf16): New function [incomplete].
69 (decode_coding_utf16): New function [support only UCS-2].
70 (char_encode_utf16): New function.
71 (char_finish_utf16): New function.
72 (syms_of_file_coding): Add new symbol `utf-16'; setup
73 `coding_category_symbol[CODING_CATEGORY_UTF16]'.
75 * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
77 (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
78 (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
80 2002-10-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
82 * chartab.c (put_char_table): When a charset is specified as a
83 range in UTF-2000, don't support builtin characters.
85 2002-09-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
87 * mule-charset.c (decode_defined_char): Don't refer external
88 database if Qunbound or Qnil are found.
89 (Fsave_charset_mapping_table): Don't define it if
90 HAVE_CHISE_CLIENT is not defined.
91 (Freset_charset_mapping_table): New function.
92 (load_char_decoding_entry_maybe): Store Qnil if a character is not
93 found in external database.
94 (syms_of_mule_charset): Don't define `save-charset-mapping-table'
95 if HAVE_CHISE_CLIENT is not defined; add new builtin function
96 `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
98 2002-09-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
100 * text-coding.c (decode_coding_utf8): Check CCS is specified or
103 2002-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
105 * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
106 Q_lowercase, Q_uppercase in UTF-2000.
108 * chartab.c (get_char_table): Add special code for the standard
109 case table to use character attribute `->downcase' and
110 `->uppercase' for case operations in UTF-2000.
112 * casetab.c (Qflippedcase): New variable in UTF-2000.
113 (Q_lowercase): Likewise.
114 (Q_uppercase): Likewise.
115 (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
116 and `->uppercase' in UTF-2000.
117 (complex_vars_of_casetab): Assign attribute name `downcase' to
118 downcase and CANON table of Vstandard_case_table in UTF-2000;
119 assign attribute name `flippedcase' to upcase and EQV table of
120 Vstandard_case_table in UTF-2000.
122 2002-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
124 * text-coding.c (decode_add_er_char): Support isolated-chars.
125 (char_encode_as_entity_reference): Likewise.
127 2002-08-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
129 * emacs.c (Vutf_2000_lisp_directory): New variable.
130 (Vconfigure_utf_2000_lisp_directory): Likewise.
131 (complex_vars_of_emacs): Add new variable
132 `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
134 2002-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
136 * char-ucs.h (DECODE_CHAR): Delete special code for
137 `chinese-big5-1' and `chinese-big5-2'.
139 * mule-charset.c (Qbig5_1): New variable in UTF-2000.
141 (decode_defined_char): Support CONVERSION_BIG5_1 and
143 (decode_builtin_char): Likewise.
144 (charset_code_point): Likewise.
145 (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
146 'conversion in UTF-2000.
147 (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
148 (complex_vars_of_mule_charset): Define `chinese-big5-1' and
149 `chinese-big5-2' as children of `chinese-big5'.
151 * char-ucs.h (CONVERSION_BIG5_1): New macro.
152 (CONVERSION_BIG5_2): New macro.
154 2002-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
156 * text-coding.c (char_encode_big5): Support entity-reference.
158 2002-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
160 * text-coding.c (char_encode_as_entity_reference): New function.
161 (char_encode_utf8): Use `char_encode_as_entity_reference'.
163 2002-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
165 * text-coding.c (decode_coding_big5): Support entity-reference
168 2002-08-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
170 * text-coding.c (allocate_coding_system): Initialize initial
171 charsets for CODESYS_UTF8.
172 (Fmake_coding_system): Accept charset-g0, charset-g1 and
173 charset-g2 for CODESYS_UTF8.
174 (decode_coding_utf8): Use charset-g0.
175 (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
176 to force variants to map to UCS.
178 2002-07-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
180 * text-coding.c (Qutf_8_mcs): New variable.
181 (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
182 (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
183 instead of `utf-8' in UTF-2000.
185 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
187 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
188 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
189 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
190 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
191 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
192 CONVERSION_96x96x96x96 are introduced.
193 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
194 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
195 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
197 * char-ucs.h (CONVERSION_94): New macro.
198 (CONVERSION_96): New macro.
199 (CONVERSION_94x94): New macro.
200 (CONVERSION_96x96): New macro.
201 (CONVERSION_94x94x94): New macro.
202 (CONVERSION_96x96x96): New macro.
203 (CONVERSION_94x94x94x60): New macro.
204 (CONVERSION_94x94x94x94): New macro.
205 (CONVERSION_96x96x96x96): New macro.
207 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
209 * chartab.c (Vcharacter_variant_table): Deleted.
210 (Fchar_variants): Use character-attribute `->ucs-variants' instead
211 of `Vcharacter_variant_table'.
212 (Fput_char_attribute): Likewise.
213 (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
214 (complex_vars_of_chartab): Likewise.
216 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
218 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
220 * fns.c (Qideographic_structure): New variable.
221 (Qkeyword_char): New variable.
222 (ids_format_unit): New function.
223 (Fideographic_structure_to_ids): New function.
224 (syms_of_fns): Add new symbols `ideographic-structure' and
225 `:char'; add new builtin function `ideographic-structure-to-ids'.
227 * data.c (Fchar_ref_p): New function.
228 (syms_of_data): Add new builtin function `char-ref-p'.
230 * chartab.h: Add an EXFUN for `Ffind_char'.
232 2002-07-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
234 * text-coding.c (Vcharacter_composition_table): Deleted.
235 (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
238 * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
240 (Vcharacter_composition_table): Deleted.
241 (Fget_composite_char): Use the implementation for external-DB
242 support in every UTF-2000.
243 (Fput_char_attribute): Likewise.
244 (char_attribute_system_db_file): Don't define if external-DB
245 feature is not available.
246 (Fsave_char_attribute_table): Likewise.
247 (Fmount_char_attribute_table): Likewise.
248 (Fclose_char_attribute_table): Likewise.
249 (Freset_char_attribute_table): Likewise.
250 (Fload_char_attribute_table): Likewise.
251 (syms_of_chartab): Don't define `save-char-attribute-table',
252 `mount-char-attribute-table', `reset-char-attribute-table',
253 `close-char-attribute-table' and `load-char-attribute-table' if
254 external-DB feature is not available.
255 (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
257 2002-07-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
259 * text-coding.c (Qcomposition): Add extern if external-DB feature
261 (Vcharacter_composition_table): Don't add extern if external-DB
262 feature is supported.
263 (COMPOSE_ADD_CHAR): Modify for new data-representation of
264 character composition rule if external-DB feature is supported.
266 * chartab.c (Vcharacter_composition_table): Don't define if
267 external-DB feature is supported.
268 (Qcomposition): New variable.
269 (Fget_composite_char): New implementation for external-DB support.
270 (Fput_char_attribute): Use `composition' property of each
271 character instead of `Vcharacter_composition_table' to store
272 character-composition rules if external-DB feature is supported.
273 (syms_of_chartab): Add new symbol `composition'.
274 (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
275 external-DB feature is supported.
277 2002-07-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
279 * chartab.c (Vchar_db_stingy_mode): New variable.
280 (load_char_attribute_maybe): Close database if
281 Vchar_db_stingy_mode is not NIL.
282 (Fload_char_attribute_table_map_function): Use
283 `get_char_id_table_0' instead of `get_char_id_table'.
284 (vars_of_chartab): Add new variable `char-db-stingy-mode'.
286 * chartab.h (get_char_id_table_0): New inline function.
287 (get_char_id_table): Use `get_char_id_table_0'.
289 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
291 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
292 and `COMPOSE_ADD_CHAR'.
293 (decode_coding_iso2022): Use `decode_flush_er_chars'.
295 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
297 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
298 instead of `DECODE_ADD_UCS_CHAR'.
299 (COMPOSE_ADD_CHAR): Likewise.
301 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
303 * text-coding.c (decode_flush_er_chars): New inline function.
304 (decode_add_er_char): New function.
305 (decode_coding_utf8): Use `decode_flush_er_chars' and
306 `decode_add_er_char'.
308 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
310 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
311 done before `decode_output_utf8_partial_char'.
313 * mule-charset.c (complex_vars_of_mule_charset): Specify
314 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
315 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
317 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
319 * mule-charset.c (decode_defined_char): New function; search
321 (decode_builtin_char): Don't search mother if
322 XCHARSET_MAX_CODE(charset) == 0.
323 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
324 == 0 even if code >= XCHARSET_MAX_CODE(charset).
325 (Fdecode_char): Use `decode_defined_char' instead of
326 `DECODE_DEFINED_CHAR'.
327 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
328 mother of `Vcharset_ucs_jis'.
330 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
331 instead of `DECODE_DEFINED_CHAR'.
333 * char-ucs.h (decode_defined_char): Renamed from
334 `DECODE_DEFINED_CHAR'; changed to normal function.
335 (DECODE_CHAR): Use `decode_defined_char' instead of
336 `DECODE_DEFINED_CHAR'.
338 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
340 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
342 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
344 * text-coding.c (Vcoded_charset_entity_reference_alist): New
346 (Quse_entity_reference): New variable.
350 (coding_system_description): Add description for
352 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
353 (allocate_coding_system): Initialize `ccs_priority_list' in
355 (Fmake_coding_system): Add description about
356 'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
358 (Fcoding_system_property): Accept `disable-composition' and
359 `use-entity-reference' in UTF-2000.
360 (struct decoding_stream): Add new member `er_counter' and `er_buf'
362 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
363 (decode_coding_utf8): Decode entity-reference if
364 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
365 (char_encode_utf8): Encode non-Unicode characters as
366 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
368 (syms_of_file_coding): Add new symbols `use-entity-reference',
370 (vars_of_file_coding): Add new variable
371 `coded-charset-entity-reference-alist'.
372 (complex_vars_of_file_coding): Declare `disable-composition' and
373 `use-entity-reference' to be coding-system-properties in UTF-2000.
375 * file-coding.h (struct Lisp_Coding_System): Add new member
376 `use_entity_reference' and `ccs_priority_list'.
377 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
378 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
379 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
381 2002-07-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
383 * chartab.c (save_uint8_byte_table): Don't clear the table.
384 (save_uint16_byte_table): Likewise.
385 (save_byte_table): Likewise.
386 (Fmount_char_attribute_table): New function.
387 (syms_of_chartab): Add new builtin function
388 `mount-char-attribute-table'.
390 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
392 * mule-charset.c (Fsave_charset_mapping_table): Open database as
394 (load_char_decoding_entry_maybe): Open database as read-only mode.
396 * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
397 open database as "w+" mode.
398 (load_char_attribute_maybe): Open database as read-only mode.
399 (Fload_char_attribute_table): Likewise.
401 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
403 * chartab.c (mark_char_table): Don't refer `ct->db_file'.
404 (char_table_description): Delete member `db_file'.
405 (Fmake_char_table): Don't refer `ct->db_file'.
406 (Fcopy_char_table): Likewise.
407 (Fsave_char_attribute_table): Likewise.
408 (Fclose_char_attribute_table): Likewise.
409 (Freset_char_attribute_table): Likewise.
410 (load_char_attribute_maybe): Likewise.
411 (Fload_char_attribute_table): Likewise.
413 * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
415 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
417 * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
418 (Fsave_char_attribute_table): Don't check `ct->db_file' if
420 (load_char_attribute_maybe): Likewise.
421 (Fload_char_attribute_table): Likewise.
423 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
425 * chartab.c (Fclose_char_attribute_table): Set Qnil on
426 `ct->db_file' unconditionally.
428 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
430 * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
432 (char_table_description): Add description for `db_file' and `db'
434 (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
436 (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
437 (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
438 (Fclose_char_attribute_table): New function.
439 (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
440 (load_char_attribute_maybe): Change interface; use `cit->db_file'
442 (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
443 (syms_of_chartab): Add new builtin function
444 `Fclose_char_attribute_table'.
446 2002-06-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
448 * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
450 (load_char_attribute_maybe): Change interface.
451 (get_char_id_table): Modify for `load_char_attribute_maybe'.
453 2002-06-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
455 * database.h: Add an EXFUN for `Fdatabase_live_p'.
457 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
459 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
460 instead of `DECODE_CHAR' for mother; don't use special code for
461 chinese-big5 to use code space of chinese-big5-1 and
463 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
464 `MAX_CHAR_BIG5_CDP' for chinese-big5.
466 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
467 (MAX_CHAR_BIG5_CDP): Revival.
469 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
471 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
472 the XLFD registry-encoding name of `chinese-big5'.
474 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
476 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
477 (Qchinese_big5_cdp): Deleted.
478 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
479 (complex_vars_of_mule_charset): Delete coded-charset
482 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
483 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
484 `CHARSET_ID_OFFSET - n' for private CCS.
485 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
486 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
487 of `MIN_LEADING_BYTE'.
488 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
489 `(CHARSET_ID_OFFSET - 97)'.
490 (MIN_CHAR_BIG5_CDP): Deleted.
491 (MAX_CHAR_BIG5_CDP): Deleted.
493 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
495 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
497 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
499 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
500 (vars_of_mule): Add new variable `utf-2000-version' [moved from
503 * chartab.c (Vutf_2000_version): Moved to mule.c.
504 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
506 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
508 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
509 when HAVE_CHISE_CLIENT is not defined.
511 * mule.c (vars_of_mule): Provide feature `chise' when
512 HAVE_CHISE_CLIENT is defined.
514 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
516 * config.h.in (UTF2000): Add comment.
517 (HAVE_CHISE_CLIENT): New macro.
519 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
521 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
523 (Fput_char_attribute): Likewise.
524 (char_attribute_system_db_file): Encode file-name of attribute.
525 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
528 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
530 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
531 (Fsave_charset_mapping_table): Use
532 `char_attribute_system_db_file'.
533 (load_char_decoding_entry_maybe): Likewise.
535 * chartab.h (Qsystem_char_id): New external variable.
536 (char_attribute_system_db_file): New prototype.
538 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
539 (char_attribute_system_db_file): New function.
540 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
541 (Freset_char_attribute_table): Likewise.
542 (load_char_attribute_maybe): Likewise.
543 (Fload_char_attribute_table): Likewise.
544 (syms_of_chartab): Add new symbol `system-char-id'.
546 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
548 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
549 `XCHARSET_GRAPHIC(ccs)'.
551 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
553 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
555 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
557 * chartab.c (Q_ucs_variants): New variable.
558 (syms_of_chartab): Add new symbol `->ucs-variants'.
559 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
560 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
561 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
563 * mule-charset.c (load_char_decoding_entry_maybe): New function.
565 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
566 `HAVE_DATABASE' is defined.
567 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
568 `HAVE_DATABASE' is defined.
570 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
572 * chartab.c (Fsave_char_attribute_table): Don't clear internal
574 (Freset_char_attribute_table): New function.
575 (syms_of_chartab): Add new builtin function
576 `reset-char-attribute-table'.
578 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
580 * chartab.c (load_char_attribute_maybe): Don't make directories.
582 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
584 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
586 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
589 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
591 * mule-charset.c (Fsave_charset_mapping_table): Use
592 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
594 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
595 instead of `XCHARSET_CHARS'.
597 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
599 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
600 (XCHARSET_BYTE_SIZE): Likewise.
602 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
604 (XCHARSET_BYTE_SIZE): Likewise.
606 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
608 * chartab.c (Fput_char_attribute): Use exec-directory instead of
609 data-directory to store database.
610 (Fsave_char_attribute_table): Likewise.
611 (load_char_attribute_maybe): Likewise.
612 (Fload_char_attribute_table): Likewise.
614 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
616 * mule-charset.c (Fsave_charset_mapping_table): New function.
617 (syms_of_mule_charset): Add new builtin function
618 `save-charset-mapping-table'.
620 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
622 * char-ucs.h (decoding_table_check_elements): Delete prototype.
623 (get_ccs_octet_table): New inline function.
624 (put_ccs_octet_table): Likewise.
625 (decoding_table_put_char): Use `get_ccs_octet_table' and
626 `put_ccs_octet_table'.
627 (decoding_table_remove_char): Use `decoding_table_put_char'.
628 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
630 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
632 (make_charset): Use Qunbound instead Qnil as initial value of
635 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
637 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
638 element is Qunloaded.
639 (map_over_uint16_byte_table): Likewise.
640 (map_over_byte_table): Likewise.
641 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
642 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
643 database support, load encoding-table of the specified
644 coded-charset if it is not loaded yet.
645 (save_uint8_byte_table): New function of UTF-2000 with external
647 (save_uint16_byte_table): Likewise.
648 (save_byte_table): Likewise.
649 (Fput_char_attribute): Don't store value into external database
650 even if the external database feature is supported in UTF-2000;
651 set `attribute' as name of char-table if the external database
652 feature is supported.
653 (Fsave_char_attribute_table): New function in UTF-2000.
654 (syms_of_chartab): Add new builtin function
655 `save-char-attribute-table' in UTF-2000.
657 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
659 * chartab.c (char_attribute_table_to_put): New variable in
661 (Qput_char_table_map_function): Likewise.
662 (value_to_put): Likewise.
663 (Fput_char_table_map_function): New function in UTF-2000.
664 (put_char_table): Use `Fmap_char_attribute' for
665 CHARTAB_RANGE_CHARSET in UTF-2000.
666 (Fput_char_attribute): Store symbol instead of string in
667 `XCHAR_TABLE_NAME (table)'.
668 (load_char_attribute_maybe): Likewise.
669 (syms_of_chartab): Add new symbol/function
670 `put-char-table-map-function'.
672 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
674 * database.h: Add new EXFUN for `Fmap_database'.
676 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
677 (syms_of_database): Likewise.
679 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
681 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
682 (XCHAR_TABLE_UNLOADED): Likewise.
684 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
685 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
686 HAVE_DATABASE is defined.
687 (char_attribute_table_to_load): New variable of UTF-2000 with
688 external database support.
689 (Qload_char_attribute_table_map_function): Likewise.
690 (Fload_char_attribute_table_map_function): New function of
691 UTF-2000 with external database support.
692 (Fload_char_attribute_table): New function of UTF-2000.
693 (Fmap_char_attribute): Call Fload_char_attribute_table if
694 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
695 (syms_of_chartab): Add new symbol and function
696 `load-char-attribute-table-map-function' in UTF-2000 with external
697 database support; add new function `load-char-attribute-table' in
700 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
702 * chartab.h (load_char_attribute_maybe): New prototype for
703 UTF-2000 with DATABASE support.
704 (get_char_id_table): Use `load_char_attribute_maybe' if
705 HAVE_DATABASE is defined.
707 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
708 with DATABASE support.
710 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
712 * chartab.c (Fput_char_attribute): Use S-expression as key of
715 * chartab.h (get_char_id_table): Use S-expression as key of
718 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
720 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
721 if an element is not loaded, load the corresponding attributes
722 from an external database.
723 (map_over_uint16_byte_table): Likewise.
724 (map_over_byte_table): Likewise.
725 (map_char_table): Modify for `map_over_uint8_byte_table',
726 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
727 element is not loaded, load the corresponding attributes from an
729 (Fput_char_attribute): Change initial values to Qunloaded.
731 * chartab.h (get_char_id_table): If a character attribute is not
732 loaded and the attribute value is not found in an external
733 database, store Qunbound as the attribute value.
735 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
737 * chartab.c (BT_UINT8_unloaded): New macro.
738 (UINT8_VALUE_P): Accept Qunloaded.
739 (UINT8_ENCODE): Likewise.
740 (UINT8_DECODE): Likewise.
741 (BT_UINT16_unloaded): New macro.
742 (UINT16_VALUE_P): Accept Qunloaded.
743 (UINT16_ENCODE): Likewise.
744 (UINT16_DECODE): Likewise.
745 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
747 (mark_char_table): Mark `ct->name' in UTF-2000.
748 (char_table_description): Add `name' in UTF-2000.
749 (Fmake_char_table): Initialize `ct->name'.
750 (Fcopy_char_table): Copy `ct->name'.
751 (Fput_char_attribute): Store value into an external database if
752 HAVE_DATABASE is defined.
754 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
756 (CHAR_TABLE_NAME): New macro in UTF-2000.
757 (XCHAR_TABLE_NAME): New macro in UTF-2000.
758 (get_char_id_table): Try to read an external database if Qunloaded
759 is stored in a table.
761 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
764 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
766 * database.h: Add EXFUN definitions for Fopen_database,
767 Fput_database, Fget_database and Fclose_database.
769 * data.c (Qunloaded): New variable in UTF-2000.
771 * lisp.h (Qunloaded): New variable in UTF-2000.
773 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
775 * mule-charset.c (put_char_ccs_code_point): Modify for
776 `decoding_table_remove_char' and `decoding_table_put_char'.
777 (remove_char_ccs): Modify for `decoding_table_remove_char'.
779 * char-ucs.h (decoding_table_remove_char): Change arguments to
780 hide decoding_table vector.
781 (decoding_table_put_char): Likewise.
783 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
785 * mule-charset.c (decoding_table_remove_char): Moved to
787 (decoding_table_put_char): Likewise.
789 * char-ucs.h (decoding_table_check_elements): New prototype [moved
790 from mule-charset.c].
791 (decoding_table_remove_char): New inline function [moved from
793 (decoding_table_put_char): Likewise.
795 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
797 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
800 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
802 * mule-charset.c (decode_builtin_char): Support mother charsets.
804 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
806 * mule-charset.c (Q94x94x60): New variable.
807 (charset_code_point): Support conversion `94x94x60'.
808 (Fmake_charset): Likewise.
809 (syms_of_mule_charset): Add new symbol `94x94x60'.
811 * char-ucs.h (CONVERSION_94x94x60): New macro.
813 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
815 * mule-charset.c (charset_code_point): Unify code about
818 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
820 * mule-charset.c (charset_code_point): Merge code about builtin
821 characters into code about mother charsets; don't use
822 `range_charset_code_point'.
823 (range_charset_code_point): Deleted.
825 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
827 * mule-charset.c (Qcode_offset): New variable.
828 (Fmake_charset): Use `XUINT' to get value of `min-code' and
829 `max-code'; accept new property `code-offset'.
830 (syms_of_mule_charset): Add new symbol `code-offset'.
832 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
834 * mule-charset.c (range_charset_code_point): Fixed.
836 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
838 * mule-charset.c (decode_builtin_char): Change semantics of
839 code-offset of coded-charset.
840 (charset_code_point): Likewise.
841 (range_charset_code_point): Likewise.
842 (complex_vars_of_mule_charset): Modify for the change.
844 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
846 * mule-charset.c (Fencode_char): Reverse arguments.
848 * mule-charset.c (charset_code_point): Fixed.
850 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
852 * mule-charset.c (Vcharset_mojikyo): Deleted.
853 (Vcharset_mojikyo_2022_1): Deleted.
854 (Vcharset_mojikyo_pj_{1..21}): Deleted.
855 (Qmin_code): New variable in UTF-2000.
856 (Qmax_code): Likewise.
858 (Qconversion): Likewise.
861 (Qmojikyo_2022_1): Deleted.
862 (Qmojikyo_pj_{1..22}): Deleted.
863 (mark_charset): Mark `cs->mother'.
864 (charset_description): Add description for `mother'.
865 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
866 new arguments `mother' and `conversion'; use
867 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
868 (charset_code_point): Moved from char-ucs.h; support `mother'
870 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
871 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
872 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
873 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
874 allow 2 as the value of `graphic' in UTF-2000; add new properties
875 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
876 require `final' in UTF-2000; modify for `make_charset'.
877 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
878 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
879 (Fcharset_property): Support `mother', `min-code' and `max-code'.
880 (Fencode_char): New function.
881 (syms_of_mule_charset): Add new builtin function `encode-char' in
882 UTF-2000; add new symbols `min-code', `max-code', `mother',
883 `conversion' and `94x60'; delete symbols `mojikyo',
884 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
885 (complex_vars_of_mule_charset): Modify for `make_charset' change;
886 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
887 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
889 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
890 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
892 * char-ucs.h (Vcharset_mojikyo): Deleted.
893 (Vcharset_mojikyo_2022_1): Deleted.
894 (LEADING_BYTE_MOJIKYO): Deleted.
895 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
896 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
897 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
898 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
899 add new member `mother'; add new member `conversion'.
900 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
901 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
902 (CHARSET_MOTHER): New macro.
903 (CHARSET_CONVERSION): New macro.
904 (CONVERSION_IDENTICAL): New macro.
905 (CONVERSION_94x60): New macro.
906 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
907 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
908 (XCHARSET_MOTHER): New macro.
909 (XCHARSET_CONVERSION): New macro.
910 (MIN_CHAR_MOJIKYO): Deleted.
911 (MAX_CHAR_MOJIKYO): Deleted.
912 (DECODE_MOJIKYO_2022): Deleted.
913 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
914 (charset_code_point): Changed to non-inline function.
915 (encode_char_1): Use `charset_code_point'.
916 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
918 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
920 * lread.c (read_compiled_function): Fix prototype.
921 (read_vector): Likewise.
923 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
925 * lrecord.h (struct lrecord_header): Delete `older'.
926 (set_lheader_implementation): Delete code for `older'.
927 (set_lheader_older_implementation): Deleted.
928 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
929 (OLDER_RECORD_P): Deleted.
930 (OLDER_RECORD_HEADER_P): Deleted.
931 (alloc_older_lcrecord): Deleted.
932 (alloc_older_lcrecord_type): Deleted.
934 * alloc.c (all_older_lcrecords): Deleted.
935 (alloc_older_lcrecord): Deleted.
936 (disksave_object_finalization_1): Delete code for older objects.
937 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
938 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
940 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
942 * mule-charset.c (decoding_table_put_char): Use `make_vector'
943 instead of `make_older_vector'.
944 (put_char_ccs_code_point): Likewise.
945 (mark_charset): Mark `cs->decoding_table'.
946 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
948 * lisp.h (make_older_vector): Deleted.
949 (make_vector_newer): Deleted.
951 * config.h.in (HAVE_GGC): Deleted.
953 * alloc.c (make_older_vector): Deleted.
954 (make_vector_newer_1): Deleted.
955 (make_vector_newer): Deleted.
957 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
959 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
960 (Qideograph_daikanwa_2): New variable.
961 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
962 (complex_vars_of_mule_charset): Add new coded-charset
963 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
964 `LEADING_BYTE_DAIKANWA'.
966 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
967 (LEADING_BYTE_DAIKANWA_1): New macro.
968 (LEADING_BYTE_DAIKANWA_2): New macro.
969 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
971 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
973 * mule-charset.c (complex_vars_of_mule_charset): Change
974 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
975 the second revised version.
977 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
979 * mule-charset.c (Vcharset_ucs_smp): New variable.
980 (Vcharset_ucs_sip): New variable.
981 (Qucs_smp): New variable.
982 (Qucs_sip): New variable.
983 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
984 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
985 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
986 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
987 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
988 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
990 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
991 (LEADING_BYTE_UCS_SIP): New macro.
992 (MIN_CHAR_SMP): New macro.
993 (MAX_CHAR_SMP): New macro.
994 (MIN_CHAR_SIP): New macro.
995 (MAX_CHAR_SIP): New macro.
997 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
999 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1002 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1004 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1005 value; don't store value into `encoding_table' of `Lisp_Charset'.
1006 (mark_charset): `encoding_table' was deleted.
1007 (charset_description): Likewise.
1008 (make_charset): Likewise.
1009 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1010 `put_char_ccs_code_point'.
1012 * chartab.h (Fput_char_attribute): New EXFUN.
1014 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1015 is unified with normal symbol space.
1016 (Fget_char_attribute): Likewise.
1017 (Fput_char_attribute): Likewise; behavior of
1018 `put_char_ccs_code_point' is changed.
1020 * char-ucs.h: Include "elhash.h".
1021 (Vchar_attribute_hash_table): New external variable.
1022 (struct Lisp_Charset): Delete `encoding_table'.
1023 (CHARSET_ENCODING_TABLE): New implementation; refer
1024 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1027 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1029 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1032 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1034 * text-coding.c (char_encode_big5): Prefer charset-g1 than
1037 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1039 * chartab.c (uint8_byte_table_description): New constant.
1040 (uint8-byte-table): Use `uint8_byte_table_description'.
1041 (uint16_byte_table_description): New constant.
1042 (uint16-byte-table): Use `uint16_byte_table_description'.
1044 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1046 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1047 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1049 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1051 * mule-charset.c (Vcharset_ucs_ks): New variable.
1052 (Qucs_ks): New variable.
1053 (syms_of_mule_charset): Add new symbol `ucs-ks'.
1054 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1056 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1058 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1060 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1061 (Fdecode_char): Likewise.
1063 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1065 (Fdefine_char): Modify for Fdecode_char.
1066 (Ffind_char): Likewise.
1068 * mule-charset.c (Fdecode_char): Add new optional argument
1070 (Fdecode_builtin_char): Modify for `Fdecode_char'.
1072 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1074 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1075 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1076 (allocate_coding_system): Initialize initial-charsets of
1077 CODESYS_BIG5 in XEmacs UTF-2000.
1078 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1079 CODESYS_BIG5 in XEmacs UTF-2000.
1080 (decode_coding_big5): Use initial-charset-g0 and -g1 of
1081 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1083 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1085 (Qideograph_hanziku_{1 .. 12}): Likewise.
1086 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1088 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1089 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1090 `ideograph-hanziku-{1 .. 12}'.
1092 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1093 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1094 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1095 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1096 (DECODE_DEFINED_CHAR): New inline function.
1097 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1099 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1101 * mule-charset.c (Vcharset_china3_jef): Renamed from
1102 `Vcharset_japanese_jef_china3'.
1103 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1104 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1105 `{MIN|MAX}_CHAR_JEF_CHINA3'..
1106 (syms_of_mule_charset): Rename `china3-jef' from
1107 `japanese-jef-china3'.
1108 (complex_vars_of_mule_charset): Likewise; rename
1109 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1111 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1112 `LEADING_BYTE_JEF_CHINA3'.
1113 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1114 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1116 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1118 * mule-charset.c (encode_builtin_char_1): Comment out special code
1119 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1121 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1122 (MAX_CHAR_MOJIKYO_0): Comment out.
1123 (MIN_CHAR_CBETA): Changed to 0x00E20000.
1124 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1125 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1126 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1128 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1130 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1131 (Qideograph_cbeta): New variable.
1132 (encode_builtin_char_1): Comment out special code for
1133 coded-charset `mojikyo' and `japanese-jef-china3'.
1134 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1135 (complex_vars_of_mule_charset): Add new coded-charset
1138 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1139 (MIN_CHAR_CBETA): New macro.
1140 (MAX_CHAR_CBETA): New macro.
1142 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1144 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1145 (LEADING_BYTE_JEF_CHINA3): New macro.
1146 (MIN_CHAR_JEF_CHINA3): New macro.
1147 (MAX_CHAR_JEF_CHINA3): Likewise.
1148 (DECODE_CHAR): Fixed.
1150 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1152 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1153 (Qjapanese_jef_china3): New variable.
1154 (encode_builtin_char_1): Support `japanese-jef-china3'.
1155 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1156 (complex_vars_of_mule_charset): Add new coded-charset
1157 `japanese-jef-china3'.
1159 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1161 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1162 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1163 94^4, 96^3, 96^4, 128^n and 256^n set.
1164 (put_char_table): Use `XCHARSET_CELL_RANGE'.
1165 (map_char_table): Likewise.
1167 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1169 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1172 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1174 * chartab.h (get_char_id_table): New inline function.
1176 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1179 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1181 * chartab.h (decode_char_table_range): New prototype in XEmacs
1183 (put_char_id_table): New inline function in XEmacs UTF-2000.
1185 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1187 (decode_char_table_range): Delete static declaration in XEmacs
1190 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1192 * chartab.c (put_char_id_table): Use `put_char_table'.
1194 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1196 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1197 (map_over_uint16_byte_table): Likewise.
1198 (map_over_byte_table): Likewise.
1199 (map_char_table): Modify for `map_over_uint8_byte_table',
1200 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1203 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1205 * chartab.c (struct map_char_table_for_charset_arg): New
1207 (map_char_table_for_charset_fun): New function.
1208 (map_char_table): Use `map_char_table' for encoding_table of
1211 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1213 * chartab.c (map_char_table): Check a character is found in
1214 range->charset instead of non default value is defined in
1215 char-table when range is CHARTAB_RANGE_ROW.
1217 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1219 * chartab.c (map_char_id_table): Deleted.
1220 (Fmap_char_attribute): Use `map_char_table' instead of
1221 `map_char_id_table'.
1223 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1225 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1227 (update_syntax_table): Deleted in XEmacs UTF-2000.
1229 * syntax.c (find_defun_start): Use `syntax_table' instead of
1230 `mirror_syntax_table' in XEmacs UTF-2000.
1231 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1233 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1235 (Fmatching_paren): Likewise.
1236 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1238 (find_start_of_comment): Likewise.
1239 (find_end_of_comment): Likewise.
1240 (Fforward_comment): Likewise.
1241 (scan_lists): Likewise.
1242 (char_quoted): Likewise.
1243 (Fbackward_prefix_chars): Likewise.
1244 (scan_sexps_forward): Likewise.
1245 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1246 (update_syntax_table): Likewise.
1248 * search.c (skip_chars): Use `syntax_table' instead of
1249 `mirror_syntax_table' in XEmacs UTF-2000.
1250 (wordify): Likewise.
1251 (Freplace_match): Likewise.
1253 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1254 `mirror_syntax_table' in XEmacs UTF-2000.
1255 (WORDCHAR_P_UNSAFE): Likewise.
1256 (re_match_2_internal): Likewise.
1258 * font-lock.c (find_context): Use `buf->syntax_table' instead of
1259 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1261 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1262 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1264 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1267 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1269 (print_char_table): Print `default_value' in XEmacs UTF-2000.
1270 (char_table_description): Delete `mirror_table' in XEmacs
1272 (fill_char_table): Don't call `update_syntax_table' in XEmacs
1274 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1275 (Fcopy_char_table): Likewise.
1276 (put_char_table): Don't call `update_syntax_table' in XEmacs
1279 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1280 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1281 (casify_region_internal): Likewise.
1283 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1285 * buffer.c (common_init_complex_vars_of_buffer): Don't use
1286 `mirror_syntax_table' in XEmacs UTF-2000.
1288 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1289 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1290 (Fexpand_abbrev): Likewise.
1292 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1294 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1296 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1298 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1299 (map_over_uint16_byte_table): Likewise.
1300 (map_over_byte_table): Likewise.
1301 (get_char_id_table): Refer `cit->default_value'.
1302 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1303 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1304 of character-id ranges.
1305 (mark_char_table): Mark `ct->default_value'.
1306 (char_table_description): Add `default_value'.
1307 (fill_char_table): Use `default_value'.
1308 (decode_char_table_range): Decode `nil' as
1309 `CHARTAB_RANGE_DEFAULT'.
1310 (get_char_id_table): Refer `cit->default_value'.
1311 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1312 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1313 temporary hack; check value of char-table is bound or not.
1314 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1316 * chartab.h (struct Lisp_Char_Table): Add new member
1317 `default_value' in XEmacs UTF-2000.
1318 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1319 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1322 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1324 * chartab.h (Lisp_Char_ID_Table): Deleted.
1326 * chartab.c (char_table_description): Fix typo.
1327 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1328 `Lisp_Char_ID_Table'.
1330 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1332 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1335 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1338 * chartab.h (XCHAR_ID_TABLE): Deleted.
1339 (XSETCHAR_ID_TABLE): Deleted.
1340 (CHAR_ID_TABLE_P): Deleted.
1342 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1344 (Fget_composite_char): Likewise.
1345 (put_char_table): Likewise.
1346 (add_char_attribute_alist_mapper): Fixed.
1347 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1349 (Fget_char_attribute): Likewise.
1350 (Fget_char_attribute): Likewise.
1351 (Fmap_char_attribute): Likewise.
1353 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1355 (encode_char_1): Likewise.
1357 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1359 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1362 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1363 instead of `XCHAR_ID_TABLE'.
1364 (remove_char_ccs): Likewise.
1366 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1368 (Fget_composite_char): Likewise.
1369 (Fchar_variants): Likewise.
1370 (put_char_table): Likewise.
1371 (add_char_attribute_alist_mapper): Likewise.
1372 (Fchar_attribute_alist): Likewise.
1373 (Fget_char_attribute): Likewise.
1374 (Fput_char_attribute): Likewise.
1375 (Fmap_char_attribute): Likewise.
1376 (Fmap_char_attribute): Likewise.
1378 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1380 (encode_char_1): Likewise.
1382 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1384 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1385 `Lisp_Char_ID_Table'.
1386 (mark_char_id_table): Deleted.
1387 (print_char_id_table): Likewise.
1388 (char_id_table_equal): Likewise.
1389 (char_id_table_hash): Likewise.
1390 (char_id_table_description): Likewise.
1391 (char_id_table): Likewise.
1392 (make_char_id_table): Use `Fmake_char_table' and
1394 (get_char_id_table): Use `Lisp_Char_Table' instead of
1395 `Lisp_Char_ID_Table'.
1396 (put_char_id_table): Likewise.
1397 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1399 (Fremove_char_attribute): Likewise.
1400 (syms_of_chartab): Don't define type `char-id-table'.
1402 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1403 (char_id_table): Likewise.
1404 (GC_CHAR_ID_TABLE_P): Likewise.
1405 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1406 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1407 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1408 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1409 (get_char_id_table): Use `Lisp_Char_Table' instead of
1410 `Lisp_Char_ID_Table'.
1411 (put_char_id_table_0): Likewise.
1412 (put_char_id_table): Likewise.
1414 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1416 * chartab.h: Lisp_Byte_Table related codes are moved from
1419 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1421 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1423 * chartab.h: Don't include "chartab.h".
1424 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1425 (Lisp_Char_ID_Table): Likewise.
1426 (char_id_table): Likewise.
1427 (XCHAR_ID_TABLE): Likewise.
1428 (XSETCHAR_ID_TABLE): Likewise.
1429 (CHAR_ID_TABLE_P): Likewise.
1430 (GC_CHAR_ID_TABLE_P): Likewise.
1431 (get_char_id_table): Likewise.
1433 * char-ucs.h: Include "chartab.h".
1434 (struct Lisp_Char_ID_Table): Moved to chartab.h.
1435 (Lisp_Char_ID_Table): Likewise.
1436 (char_id_table): Likewise.
1437 (XCHAR_ID_TABLE): Likewise.
1438 (XSETCHAR_ID_TABLE): Likewise.
1439 (CHAR_ID_TABLE_P): Likewise.
1440 (GC_CHAR_ID_TABLE_P): Likewise.
1441 (get_char_id_table): Likewise.
1443 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1445 * chartab.c (copy_uint8_byte_table): New function.
1446 (copy_uint16_byte_table): New function.
1447 (copy_byte_table): New function.
1448 (map_over_uint8_byte_table): Modify to avoid huge numbers of
1450 (map_over_uint16_byte_table): Likewise.
1451 (map_over_byte_table): Likewise.
1452 (get_byte_table): Move prototype to chartab.h.
1453 (put_byte_table): Likewise.
1454 (put_char_id_table_0): Moved to chartab.h.
1455 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1456 (char_table_entry_equal): Likewise.
1457 (char_table_entry_hash): Likewise.
1458 (char_table_entry_description): Likewise.
1459 (char_table_entry): Likewise.
1460 (make_char_table_entry): Likewise.
1461 (copy_char_table_entry): Likewise.
1462 (get_non_ascii_char_table_value): Likewise.
1463 (map_over_charset_ascii): Likewise.
1464 (map_over_charset_control_1): Likewise.
1465 (map_over_charset_row): Likewise.
1466 (map_over_other_charset): Likewise.
1467 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1468 (print_char_table): Likewise.
1469 (char_table_equal): Likewise.
1470 (char_table_hash): Likewise.
1471 (char_table_description): Likewise.
1472 (fill_char_table): Likewise.
1473 (Fcopy_char_table): Likewise.
1474 (get_char_table): Likewise.
1475 (Fget_range_char_table): Likewise.
1476 (put_char_table): Likewise.
1477 (map_char_table): Likewise.
1478 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1481 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1483 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1484 `Vauto_fill_chars' in XEmacs UTF-2000.
1486 * chartab.h (get_byte_table): New prototype [moved from
1488 (put_byte_table): Likewise [moved from chartab.c].
1489 (put_char_id_table_0): New inline function [moved from chartab.c].
1490 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1491 (Lisp_Char_Table_Entry): Likewise.
1492 (char_table_entry): Likewise.
1493 (XCHAR_TABLE_ENTRY): Likewise.
1494 (XSETCHAR_TABLE_ENTRY): Likewise.
1495 (CHAR_TABLE_ENTRYP): Likewise.
1496 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1497 (NUM_ASCII_CHARS): Likewise.
1498 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1499 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1501 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1503 * chartab.c (get_char_id_table): Change interface.
1504 (put_char_id_table_0): New function.
1505 (put_char_id_table): Change interface; new implementation.
1506 (Fget_composite_char): Modify for interface change of
1507 `get_char_id_table'.
1508 (Fchar_variants): Likewise.
1509 (add_char_attribute_alist_mapper): Likewise.
1510 (Fchar_attribute_alist): Likewise.
1511 (Fget_char_attribute): Likewise.
1512 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1513 as same as character as the first argument like `put-char-table';
1514 modify for interface change of `put_char_id_table'.
1515 (Fremove_char_attribute): Modify for interface change of
1516 `put_char_id_table'.
1518 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1520 * text-coding.c: Sync up with XEmacs 21.2.41.
1521 (COMPOSE_ADD_CHAR): Modify for interface change of
1522 `get_char_id_table'.
1524 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1525 change of `put_char_id_table'.
1526 (remove_char_ccs): Likewise.
1528 * chartab.h (put_char_id_table): Change interface.
1530 * char-ucs.h (get_char_id_table): Change interface.
1531 (charset_code_point): Modify for interface change of
1532 `get_char_id_table'.
1533 (encode_char_1): Likewise.
1535 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1537 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1539 (map_over_uint16_byte_table): Likewise.
1540 (map_over_byte_table): Likewise.
1541 (map_char_id_table): Add new argument `range' like
1543 (Fmap_char_attribute): Add new argument `range' like
1546 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1548 * chartab.c (map_over_uint8_byte_table): Change interface of
1549 mapping function to use struct chartab_range instead of Emchar.
1550 (map_over_uint16_byte_table): Likewise.
1551 (map_over_byte_table): Likewise.
1552 (map_char_id_table): Likewise.
1553 (struct slow_map_char_id_table_arg): Deleted.
1554 (slow_map_char_id_table_fun): Deleted.
1555 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1556 function `slow_map_char_table_fun' instead of struct
1557 `slow_map_char_id_table_arg' and function
1558 `slow_map_char_id_table_fun'.
1560 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1562 * mule-charset.c: Move char-it-table related codes to chartab.c.
1563 (Vutf_2000_version): Moved to chartab.c.
1564 (Fdefine_char): Likewise.
1565 (Ffind_char): Likewise.
1566 (syms_of_mule_charset): Move types `uint8-byte-table',
1567 `uint16-byte-table', `byte-table' and `char-id-table' to
1568 chartab.c; move functions `char_attribute_list,
1569 `find_char_attribute_table, `char_attribute_alist,
1570 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1571 `map_char_attribute, `define_char, `find_char, `char_variants and
1572 `get_composite_char to chartab.c; move symbols `=>ucs',
1573 `->decomposition', `compat', `isolated', `initial', `medial',
1574 `final', `vertical', `noBreak', `fraction', `super', `sub',
1575 `circle', `square', `wide', `narrow', `small' and `font' to
1577 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1578 setting codes for `Vcharacter_composition_table' and
1579 `Vcharacter_variant_table' to chartab.c.
1580 (complex_vars_of_mule_charset): Move setting code for
1581 `Vchar_attribute_hash_table' to chartab.c.
1583 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1584 (make_char_id_table): New prototype.
1585 (put_char_id_table): Likewise.
1586 (Fget_char_attribute): Likewise.
1588 * chartab.c: Move char-id-table related code from mule-charset.c.
1589 (Vutf_2000_version): Moved from mule-charset.c.
1591 * char-ucs.h (Qucs): New external variable.
1592 (put_char_ccs_code_point): New prototype.
1593 (remove_char_ccs): Likewise.
1595 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1597 * mule-charset.c (Vcharset_ucs_jis): New variable.
1598 (Qucs_jis): Likewise.
1599 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1600 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1602 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1604 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606 * mule-charset.c (map_over_uint8_byte_table): New function.
1607 (map_over_uint16_byte_table): Likewise.
1608 (map_over_byte_table): Likewise.
1609 (map_char_id_table): Likewise.
1610 (slow_map_char_id_table_fun): Likewise.
1611 (Fmap_char_attribute): Likewise.
1612 (syms_of_mule_charset): Add new function `map-char-attribute'.
1614 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1616 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1617 (syms_of_mule_charset): Add new function `find-char'.
1619 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1621 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1623 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1624 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1626 (complex_vars_of_mule_charset): Add new coded-charset
1627 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1628 `ideograph-gt-pj-*'.
1630 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1632 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1634 * mule-charset.c (encode_builtin_char_1): Purge codes about
1635 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1636 {MIN|MAX}_CHAR_HEBREW.
1637 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1638 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1640 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1641 (MAX_CHAR_GREEK): Purged.
1642 (MIN_CHAR_CYRILLIC): Purged.
1643 (MAX_CHAR_CYRILLIC): Purged.
1644 (MIN_CHAR_HEBREW): Commented out.
1645 (MAX_CHAR_HEBREW): Likewise.
1647 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1649 * mule-charset.c (Qto_ucs): New variable.
1650 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1651 (Fdefine_char): Likewise.
1652 (syms_of_mule_charset): Add new symbol `=>ucs'.
1654 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1656 * mule-charset.c (Fdecode_char): Fixed.
1658 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1660 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1661 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1664 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1666 * mule-charset.c (Vcharset_ucs_big5): New variable.
1667 (Qucs_big5): Likewise.
1668 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1669 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1671 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1673 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1675 * mule-charset.c (decode_builtin_char): Check Big5 code range
1676 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1678 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1680 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1681 (Qchinese_gb12345): Likewise.
1682 (Fdecode_builtin_char): Fixed.
1683 (syms_of_mule_charset): Add `chinese-gb12345'.
1684 (complex_vars_of_mule_charset): Add coded-charset
1687 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1688 (LEADING_BYTE_CHINESE_GB12345): New macro.
1690 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1692 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1693 and `latin-viscii-upper' for `latin-viscii'.
1695 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1697 * mule-charset.c (Fdecode_builtin_char): Comment out
1698 regularization code for ISO-IR GR representation.
1700 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1702 * mule-charset.c (decode_builtin_char): New function; renamed from
1703 `make_builtin_char'; return -1 instead of signal.
1704 (Fdecode_builtin_char): Use `decode_builtin_char'.
1706 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1707 `make_builtin_char'.
1708 (DECODE_CHAR): Use `decode_builtin_char' instead of
1709 `make_builtin_char'; use mapping table of `chinese-big5' for
1710 `chinese-big5-{1,2}'.
1712 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1714 * text-coding.c (char_encode_big5): New function.
1715 (char_finish_big5): Likewise.
1716 (reset_encoding_stream): Use `char_encode_big5' and
1717 `char_finish_big5' for CODESYS_BIG5.
1718 (mule_encode): Don't use `encode_coding_big5'.
1719 (encode_coding_big5): Deleted.
1721 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1723 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1724 0x81- in XEmacs UTF-2000.
1725 (detect_coding_big5): Likewise.
1727 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1729 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1730 generate character-id if the CCS property does not have
1731 corresponding predefined character.
1732 (make_builtin_char): Return -1 if corresponding predefined
1733 character is not found.
1734 (Fdecode_char): Return nil if corresponding character is not
1736 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1737 don't map to builtin ucs space.
1739 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1741 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1742 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1744 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1746 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1747 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1748 (Qideograph_gt): Likewise.
1749 (Qideograph_gt_pj_{1..11}): Likewise.
1750 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1751 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1752 `ideograph-gt-pj-11'.
1753 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1754 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1755 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1757 * char-ucs.h (LEADING_BYTE_GT): New macro.
1758 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1759 (MIN_CHAR_GT): Likewise.
1760 (MAX_CHAR_GT): Likewise.
1762 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1764 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1765 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1767 * doprnt.c (unsigned_int_converters): Add `c'.
1768 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1770 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1771 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1773 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1774 (MAX_CHAR_MOJIKYO_0): New macro.
1775 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1777 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1779 * mule-charset.c (Fdefine_char): Delete cemented out code.
1780 (encode_builtin_char_1): Modify for new allocation of builtin
1783 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1785 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1787 * mule-charset.c (Vcharset_ucs_cns): New variable.
1788 (Qucs_cns): New variable.
1789 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1790 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1792 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1794 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1796 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1798 * search.c (search_buffer): Make `charset_base_code' as
1799 character-id >> 6 to eliminate the corresponding last byte in
1800 UTF-8 representation [I'm not sure it is right thing].
1801 (boyer_moore): Likewise.
1803 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1805 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1806 representation in MULE.
1808 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1810 * text-coding.c (Fmake_coding_system): Use
1811 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1812 `EXTERNAL_PROPERTY_LIST_LOOP'.
1814 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1816 * text-coding.c (decode_output_utf8_partial_char): New function.
1817 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1819 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1821 * text-coding.c (decode_coding_utf8): Output original byte
1822 sequence if it is broken; change order of conditions.
1824 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1827 * mb-multibyte.h (BYTE_ASCII_P):
1828 Use bit ops for char-signedness safety.
1829 (BYTE_C0_P): Use bit ops for char-signedness safety.
1830 (BYTE_C1_P): Use bit ops for char-signedness safety.
1832 * character.h: (XCHAR_OR_CHAR_INT):
1833 Always use inline function.
1834 Remove redundant type checking assert() - XINT will abort quite
1837 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1839 * text-coding.c: (Fencode_shift_jis_char):
1840 (Fencode_big5_char):
1841 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1842 Replace 0 with '\0' when working with bytes.
1843 Replace initial "(" with "\(" in docstrings.
1845 (Fmake_coding_system):
1846 When type is ccl and value is vector, register it with a proper
1847 symbol. And checks whether the given ccl program is valid.
1848 (mule_decode): When calling ccl_driver, if src indicates
1849 NULL pointer, set an empty string instead.
1850 (mule_encode): Likewise.
1853 (detect_coding_sjis):
1854 (decode_coding_sjis):
1855 (detect_coding_big5):
1856 (decode_coding_big5):
1857 (detect_coding_ucs4):
1858 (decode_coding_ucs4):
1859 (detect_coding_utf8):
1860 (decode_coding_utf8):
1861 (detect_coding_iso2022):
1862 (decode_coding_iso2022):
1863 (decode_coding_no_conversion):
1865 Make all detecting and decoding functions take an Extbyte * arg.
1866 (text_encode_generic):
1867 (encode_coding_big5):
1868 (encode_coding_no_conversion):
1870 Make all encoding functions take a Bufbyte * arg.
1871 Use size_t instead of unsigned int for memory sizes.
1872 Only cast to unsigned char whenever dereferencing Extbyte *.
1874 (struct lrecord_description fcd_description_1): Use countof.
1875 (complex_vars_of_file_coding):
1876 Use countof instead of sizeof.
1877 Use CHECK_NATNUM instead of CHECK_INT.
1879 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1881 * mule-charset.c (Fget_char_attribute): Add new optional argument
1883 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1884 (remove_char_ccs): Likewise.
1886 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1888 * text-coding.c (char_encode_shift_jis): New implementation in
1890 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1893 * mule-charset.c (Vcharset_chinese_big5): New variable in
1895 (Qchinese_big5): New variable in UTF-2000.
1896 (BIG5_SAME_ROW): New macro in UTF-2000.
1897 (make_builtin_char): Use builtin characters of
1898 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1899 characters of `Vcharset_chinese_big5'.
1900 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1901 (complex_vars_of_mule_charset): Add new coded-charset
1902 `chinese-big5' in UTF-2000.
1904 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1905 (Vcharset_chinese_big5): New external variable declaration.
1906 (Vcharset_japanese_jisx0208_1990): Likewise.
1908 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1910 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1912 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1914 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1916 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1917 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1918 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1921 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1923 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1925 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1927 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1930 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1932 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1933 for `CHARSET_BY_ATTRIBUTES'.
1934 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1935 `CHARSET_BY_ATTRIBUTES'.
1937 * text-coding.c (struct decoding_stream): Rename member `CH' to
1939 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1940 (decode_coding_sjis): Likewise.
1941 (decode_coding_big5): Likewise.
1942 (decode_coding_ucs4): Likewise.
1943 (decode_coding_utf8): Likewise.
1944 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1945 `CHARSET_BY_ATTRIBUTES'.
1946 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1947 `str->counter'; decode 3, 4 bytes sets.
1948 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1950 (decode_coding_no_conversion): Use `str->cpos' instead of
1953 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1954 (Qmojikyo_2022_1): New variable.
1955 (make_charset): Don't use `CHARSET_TYPE_*'.
1956 (range_charset_code_point): Support coded-charset
1958 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1959 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1960 `CHARSET_BY_ATTRIBUTES'.
1961 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1962 `CHARSET_BY_ATTRIBUTES'.
1963 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1964 (complex_vars_of_mule_charset): Add new coded-charset
1967 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1968 interface; changed to inline function.
1970 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1971 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1972 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1973 (CHARSET_TYPE_94): Deleted.
1974 (CHARSET_TYPE_94X94): Deleted.
1975 (CHARSET_TYPE_96): Deleted.
1976 (CHARSET_TYPE_96X96): Deleted.
1977 (CHARSET_TYPE_128): Deleted.
1978 (CHARSET_TYPE_128X128): Deleted.
1979 (CHARSET_TYPE_256): Deleted.
1980 (CHARSET_TYPE_256X256): Deleted.
1981 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1983 (DECODE_MOJIKYO_2022): New inline function.
1984 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1985 `Vcharset_mojikyo_2022_1'.
1987 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1989 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1991 (put_byte_table): Likewise.
1992 (char_id_table_equal): Use `get_byte_table' [new implementation].
1994 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1996 * mule-charset.c: Include <limits.h> in UTF-2000.
1997 (BT_UINT8_MIN): New macro in UTF-2000.
1998 (BT_UINT8_MAX): New macro in UTF-2000.
1999 (BT_UINT8_t): New macro in UTF-2000.
2000 (BT_UINT8_nil): New macro in UTF-2000.
2001 (BT_UINT8_unbound): New macro in UTF-2000.
2002 (INT_UINT8_P): New inline function in UTF-2000.
2003 (UINT8_VALUE_P): New inline function in UTF-2000.
2004 (UINT8_ENCODE): New inline function in UTF-2000.
2005 (UINT8_DECODE): New inline function in UTF-2000.
2006 (mark_uint8_byte_table): New function in UTF-2000.
2007 (print_uint8_byte_table): New function in UTF-2000.
2008 (uint8_byte_table_equal): New function in UTF-2000.
2009 (uint8_byte_table_hash): New function in UTF-2000.
2010 (make_uint8_byte_table): New function in UTF-2000.
2011 (uint8_byte_table_same_value_p): New function in UTF-2000.
2012 (BT_UINT16_MIN): New macro in UTF-2000.
2013 (BT_UINT16_MAX): New macro in UTF-2000.
2014 (BT_UINT16_t): New macro in UTF-2000.
2015 (BT_UINT16_nil): New macro in UTF-2000.
2016 (BT_UINT16_unbound): New macro in UTF-2000.
2017 (INT_UINT16_P): New inline function in UTF-2000.
2018 (UINT16_VALUE_P): New inline function in UTF-2000.
2019 (UINT16_ENCODE): New inline function in UTF-2000.
2020 (UINT16_DECODE): New inline function in UTF-2000.
2021 (UINT8_TO_UINT16): New inline function in UTF-2000.
2022 (mark_uint16_byte_table): New function in UTF-2000.
2023 (print_uint16_byte_table): New function in UTF-2000.
2024 (uint16_byte_table_equal): New function in UTF-2000.
2025 (uint16_byte_table_hash): New function in UTF-2000.
2026 (make_uint16_byte_table): New function in UTF-2000.
2027 (uint16_byte_table_same_value_p): New function in UTF-2000.
2028 (print_byte_table): New function in UTF-2000.
2029 (byte-table): Use `print_byte_table' as printer.
2030 (make_byte_table): Delete second argument `older'.
2031 (byte_table_same_value_p): New function in UTF-2000.
2032 (copy_byte_table): Deleted.
2033 (get_byte_table): New function in UTF-2000.
2034 (put_byte_table): New function in UTF-2000.
2035 (print_char_id_table): New function in UTF-2000.
2036 (char-id-table): Use `print_char_id_table' as printer.
2037 (make_char_id_table): Delete second argument `older'.
2038 (get_char_id_table): Use `get_byte_table [new implementation].
2039 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2041 (Ffind_char_attribute_table): New function in UTF-2000.
2042 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2043 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2044 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2045 (syms_of_mule_charset): Add new function
2046 `find-char-attribute-table' in UTF-2000.
2048 * lrecord.h (enum lrecord_type): Add
2049 `lrecord_type_uint16_byte_table' and
2050 `lrecord_type_uint8_byte_table'.
2052 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2053 (Lisp_Uint8_Byte_Table): New type.
2054 (XUINT8_BYTE_TABLE): New macro.
2055 (XSETUINT8_BYTE_TABLE): New macro.
2056 (UINT8_BYTE_TABLE_P): New macro.
2057 (GC_UINT8_BYTE_TABLE_P): New macro.
2058 (struct Lisp_Uint16_Byte_Table): New structure.
2059 (Lisp_Uint16_Byte_Table): New type.
2060 (XUINT16_BYTE_TABLE): New macro.
2061 (XSETUINT16_BYTE_TABLE): New macro.
2062 (UINT16_BYTE_TABLE_P): New macro.
2063 (GC_UINT16_BYTE_TABLE_P): New macro.
2065 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2067 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2068 (Vcharacter_ideographic_strokes_table): Deleted.
2069 (Vcharacter_total_strokes_table): Deleted.
2070 (Vcharacter_morohashi_daikanwa_table): Deleted.
2071 (Vcharacter_decomposition_table): Deleted.
2072 (Qname): Deleted because it is duplicated.
2073 (Qideographic_radical): Deleted.
2074 (Qideographic_strokes): Deleted.
2075 (Qtotal_strokes): Deleted.
2076 (Qmorohashi_daikanwa): Deleted.
2077 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2078 `ideographic-radical', `ideographic-strokes', `total-strokes',
2079 `morohashi-daikanwa' and `->decomposition'.
2080 (Fget_char_attribute): Likewise.
2081 (Fput_char_attribute): Likewise; use `make-vector' instead of
2082 `make_older_vector' for `->decomposition' value.
2083 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2084 `ideograph-daikanwa'.
2085 (syms_of_mule_charset): Delete builtin symbols `name',
2086 `ideographic-radical', `ideographic-strokes', `total-strokes' and
2087 `morohashi-daikanwa'.
2088 (vars_of_mule_charset): Don't setup
2089 `Vcharacter_ideographic_radical_table',
2090 `Vcharacter_ideographic_strokes_table',
2091 `Vcharacter_total_strokes_table',
2092 `Vcharacter_morohashi_daikanwa_table' and
2093 `Vcharacter_decomposition_table'.
2095 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2097 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2098 `make_older_vector', `make_vector_newer_1' and
2099 `make_vector_newer'.
2101 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2102 `make_older_vector' and `make_vector_newer'.
2104 * config.h.in (HAVE_GGC): New macro.
2106 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2108 * mule-charset.c (struct char_attribute_list_closure): New
2109 structure in UTF-2000.
2110 (add_char_attribute_to_list_mapper): New function in UTF-2000.
2111 (Fchar_attribute_list): Likewise.
2112 (Fset_charset_mapping_table): Use `make_vector_newer'.
2113 (Fdecode_builtin_char): New function in UTF-2000.
2114 (syms_of_mule_charset): Add new function `char-attribute-list' and
2115 `decode-builtin-char' in UTF-2000.
2117 * lisp.h (make_vector_newer): New prototype.
2119 * alloc.c (make_vector_newer_1): New function.
2120 (make_vector_newer): New function.
2122 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2124 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2127 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2129 * mule-charset.c (Vchar_attribute_hash_table): New variable.
2130 (Vcharacter_attribute_table): Deleted.
2131 (Vcharacter_name_table): Deleted.
2132 (put_char_attribute): Deleted.
2133 (remove_char_attribute): Deleted.
2134 (struct char_attribute_alist_closure): New structure.
2135 (add_char_attribute_alist_mapper): New function.
2136 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2137 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2138 (Fget_char_attribute): Likewise.
2139 (Fput_char_attribute): Likewise.
2140 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2141 of `remove_char_attribute'.
2142 (Fdefine_char): Return character.
2143 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2144 and `Vcharacter_name_table'.
2145 (complex_vars_of_mule_charset): Likewise
2146 `Vchar_attribute_hash_table'.
2148 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2150 * character.h (CHARC_CHARSET): New macro.
2151 (CHARC_CHARSET_ID): New macro.
2152 (CHARC_CODE_POINT): New macro.
2153 (CHARC_COLUMNS): New macro.
2154 (CHARC_TO_CHAR): New inline function.
2155 (CHARC_EQ): New inline function.
2156 (CHARC_ASCII_EQ): New inline function.
2157 (CHARC_IS_SPACE): New inline function.
2158 (ASCII_TO_CHARC): New inline function.
2160 * char-ucs.h (encode_char_2): Deleted.
2161 (ENCODE_CHAR): Use `encode_char_1' again.
2162 (breakup_char_1): Likewise.
2163 (CHAR_TO_CHARC): New inline function.
2165 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2167 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2169 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2170 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2171 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2172 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2173 (create_string_text_block): Use `CHARC_ASCII_EQ' and
2175 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2177 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2179 (x_output_display_block): Use `CHARC_CHARSET' and
2182 * redisplay-tty.c (tty_output_display_block): Use
2184 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2186 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2188 * insdel.c (find_charsets_in_charc_string): Use
2190 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2191 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2192 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2193 (convert_charc_string_into_malloced_string): Likewise.
2195 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2197 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2198 instead of <Emchar_dynarr *> for buf; use
2199 `convert_bufbyte_string_into_charc_dynarr' instead of
2200 `convert_bufbyte_string_into_emchar_dynarr'; use
2201 `find_charsets_in_charc_string' instead of
2202 `find_charsets_in_emchar_string'.
2205 - Include "character.h".
2206 (struct rune): New member `cglyph'; delete member `chr'.
2208 * redisplay.c (redisplay_text_width_charc_string): New function;
2209 delete `redisplay_text_width_emchar_string'.
2210 (rtw_charc_dynarr): New variable; renamed from
2211 `rtw_emchar_dynarr'.
2212 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2213 `rtw_emchar_dynarr'; use
2214 `convert_bufbyte_string_into_charc_dynarr' instead of
2215 `convert_bufbyte_string_into_emchar_dynarr'; use
2216 `redisplay_text_width_charc_string' instead of
2217 `redisplay_text_width_emchar_string'.
2218 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2219 instead of `rtw_emchar_dynarr'; use
2220 `convert_bufbyte_string_into_charc_dynarr' instead of
2221 `convert_bufbyte_string_into_emchar_dynarr'.
2222 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2223 `redisplay_text_width_charc_string' instead of
2224 `redisplay_text_width_emchar_string'.
2225 (create_text_block): Modify for <struct rune> change.
2226 (generate_formatted_string_db): Likewise.
2227 (create_string_text_block): Likewise.
2228 (pixel_to_glyph_translation): Likewise.
2230 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2231 instead of <const Emchar *>.
2232 (x_text_width): Likewise.
2233 (x_output_display_block): Use <Charc_dynarr *> instead
2234 <Emchar_dynarr *>; modify for <structure rune> change.
2235 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2238 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2239 <const Emchar *>; use `charc_string_displayed_columns' instead of
2240 `emchar_string_displayed_columns'.
2241 (tty_output_display_block): Use <Charc_dynarr *> instead of
2242 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2243 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2244 (tty_output_charc_dynarr_dynarr): New variable; renamed from
2245 `tty_output_emchar_dynarr_dynarr'.
2246 (tty_output_charc_dynarr): New function; delete
2247 `tty_output_charc_dynarr'.
2249 * redisplay-output.c (compare_runes): Modify for `struct rune'.
2250 (redisplay_output_layout): Use <Charc_dynarr *> instead of
2251 <Emchar_dynarr *> for buf; use
2252 `convert_bufbyte_string_into_charc_dynarr' instead of
2253 `convert_bufbyte_string_into_emchar_dynarr'.
2255 * frame.c (title_string_charc_dynarr): New variable; renamed from
2256 `title_string_emchar_dynarr'.
2257 (generate_title_string): Use `title_string_charc_dynarr' instead
2258 of `title_string_emchar_dynarr'; use
2259 `convert_charc_string_into_malloced_string' instead of
2260 `convert_emchar_string_into_malloced_string'.
2261 (init_frame): Use `title_string_charc_dynarr' instead of
2262 `title_string_emchar_dynarr'.
2265 - Include "character.h".
2266 (struct console_methods): Use <const Charc *> instead of <const
2267 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2268 <Emchar_dynarr *> in output_string_method.
2270 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2273 * console-stream.c (stream_text_width): Use <const Charc *>
2274 instead of <const Emchar *>.
2276 * character.h (Charc_dynarr): New type.
2278 * char-ucs.h (structure Charc): New structure; define new type
2281 * char-lb.h (DECODE_CHAR): New inline function.
2282 (encode_char_1): New inline function.
2283 (ENCODE_CHAR): New macro.
2284 (structure Charc): New structure; define new type `Charc'.
2286 * char-1byte.h (Vcharset_control_1): New macro.
2287 (Vcharset_latin_iso8859_1): New macro.
2288 (DECODE_CHAR): New inline function.
2289 (encode_char_1): New inline function.
2290 (ENCODE_CHAR): New macro.
2291 (structure Charc): New structure; define new type `Charc'.
2293 * insdel.c (find_charsets_in_charc_string): New function; delete
2294 `find_charsets_in_emchar_string'.
2295 (charc_string_displayed_columns): New function; delete
2296 `emchar_string_displayed_columns'.
2297 (convert_bufbyte_string_into_charc_dynarr): New function; delete
2298 `convert_bufbyte_string_into_emchar_dynarr'.
2299 (convert_charc_string_into_bufbyte_dynarr): New function; delete
2300 `convert_charc_string_into_bufbyte_dynarr'.
2301 (convert_charc_string_into_malloced_string): New function; delete
2302 `convert_charc_string_into_malloced_string'.
2304 * buffer.h (find_charsets_in_charc_string): New prototype; delete
2305 `find_charsets_in_emchar_string'.
2306 (charc_string_displayed_columns): New prototype; delete
2307 `emchar_string_displayed_columns'.
2308 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2309 `convert_charc_string_into_bufbyte_dynarr'.
2310 (convert_charc_string_into_malloced_string): New prototype; delete
2311 `convert_charc_string_into_malloced_string'.
2313 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2315 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2317 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2319 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2321 * char-ucs.h: Use <short> for <Charset_ID>.
2323 * mule-charset.h, char-1byte.h: Use <unsigned char> for
2326 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2328 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2331 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2333 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2335 (Qmorohashi_daikanwa): New variable.
2336 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2337 for `morohashi-daikanwa' attribute.
2338 (Fget_char_attribute): Likewise.
2339 (Fput_char_attribute): Likewise.
2340 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2341 has the same value of `ideograph-daikanwa'.
2342 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2343 (vars_of_mule_charset): Setup
2344 `Vcharacter_morohashi_daikanwa_table'.
2346 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2348 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2350 (add_charset_to_list_mapper): Add `key' instead of
2351 `XCHARSET_NAME (value)' to return aliases.
2353 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2355 * mule-charset.c (Vcharacter_ideographic_radical_table): New
2357 (Vcharacter_ideographic_strokes_table): New variable.
2358 (Qideographic_radical): New variable.
2359 (Qideographic_strokes): New variable.
2360 (Fchar_attribute_alist): Use
2361 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2362 attribute; use `Vcharacter_ideographic_strokes_table' for
2363 `ideographic-strokes' attribute.
2364 (Fget_char_attribute): Likewise.
2365 (Fput_char_attribute): Likewise.
2366 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2367 `ideographic-strokes'.
2368 (vars_of_mule_charset): Setup
2369 `Vcharacter_ideographic_radical_table' and
2370 `Vcharacter_ideographic_strokes_table'.
2372 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2374 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2375 (Qtotal_strokes): New variable.
2376 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2377 `total-strokes' attribute.
2378 (Fget_char_attribute): Likewise.
2379 (Fput_char_attribute): Likewise.
2380 (syms_of_mule_charset): Add new symbol `total-strokes'.
2381 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2383 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2385 * mule-charset.c (Vcharacter_decomposition_table): New variable.
2386 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2388 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2389 `->decomposition' attribute.
2390 (Fput_char_attribute): Likewise.
2391 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2393 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2395 * mule-charset.c (decoding_table_check_elements): New function.
2396 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2398 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2400 * mule-charset.c (Fset_charset_mapping_table): Use
2401 `put_char_ccs_code_point'.
2403 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2405 * mule-charset.c (decoding_table_put_char): New inline function.
2406 (put_char_ccs_code_point): Use `decoding_table_put_char'.
2408 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2410 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2411 (XCHARSET_BYTE_SIZE): New macro.
2412 (decoding_table_remove_char): New inline function.
2413 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2414 `decoding_table_remove_char'.
2415 (remove_char_ccs): Use `decoding_table_remove_char'.
2416 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2418 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2420 * mule-charset.c (Vcharacter_name_table): New variable.
2421 (Qname): New variable.
2422 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2424 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2425 `Vcharacter_name_table' for `name' attribute.
2426 (Fremove_char_attribute): Use function `remove_char_ccs'.
2427 (put_char_ccs_code_point): New function.
2428 (remove_char_ccs): New function.
2429 (syms_of_mule_charset): Add new symbol `name'.
2430 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2432 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2434 * mule-charset.c (make_byte_table): Add new argument `older'.
2435 (make_char_id_table): Likewise.
2436 (copy_char_id_table): Comment out because it is not used.
2437 (put_char_id_table): Modify for `make_byte_table'.
2438 (Fput_char_attribute): Make encoding_table as older object;
2439 inherit older bit of `Vcharacter_composition_table'.
2440 (mark_charset): Don't mark `cs->encoding_table'.
2441 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2442 normal object; make `Vcharacter_composition_table' as an older
2443 object; delete staticpro for `Vcharacter_composition_table'; make
2444 `Vcharacter_variant_table' as a normal object.
2446 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2447 (mark_object): Don't check older object in UTF-2000.
2449 * lrecord.h (struct lrecord_header): Add new member `older' in
2451 (set_lheader_implementation): Setup `SLI_header->older' in
2453 (set_lheader_older_implementation): New macro in UTF-2000.
2454 (OLDER_RECORD_P): New macro in UTF-2000.
2455 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2456 (alloc_older_lcrecord): New prototype in UTF-2000.
2457 (alloc_older_lcrecord_type): New macro in UTF-2000.
2459 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2461 * mule-charset.c (byte_table_description): Use
2462 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2463 (char_id_table_description): Delete bogus `, 1'.
2464 (Fget_char_attribute): Refer encoding_table of each coded-charset
2465 to get value of coded-charset attribute of a character.
2466 (Fput_char_attribute): Use `make_older_vector' instead of
2467 `make_vector'; use encoding_table of each coded-charset to store
2468 value of coded-charset attribute of a character.
2469 (Fremove_char_attribute): Use encoding_table of each coded-charset
2470 to store value of coded-charset attribute of a character.
2471 (mark_charset): Mark `cs->encoding_table'; don't mark
2472 `cs->decoding_table'.
2473 (charset_description): Add description of new member
2475 (make_charset): Initialize `encoding_table'.
2477 * char-ucs.h (struct Lisp_Charset): Add new member
2479 (CHARSET_ENCODING_TABLE): New macro.
2480 (XCHARSET_ENCODING_TABLE): New macro.
2481 (charset_code_point): New implementation.
2482 (encode_char_1): Likewise.
2484 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2485 (disksave_object_finalization_1): Call finalizers of
2486 `all_older_lcrecords' in UTF-2000.
2487 (make_older_vector): New function in UTF-2000.
2488 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2491 * lisp.h (make_older_vector): New prototype in UTF-2000.
2493 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2495 * lrecord.h (enum lrecord_type): Rename
2496 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2498 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2499 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2500 `get_char_code_table'.
2502 * mule-charset.c (mark_char_id_table): Renamed from
2503 `mark_char_code_table'.
2504 (char_id_table_equal): Renamed from `char_code_table_equal'.
2505 (char_id_table_hash): Renamed from `char_code_table_hash'.
2506 (make_char_id_table): Renamed from `make_char_code_table'.
2507 (copy_char_id_table): Renamed from `copy_char_code_table'.
2508 (get_char_id_table): Renamed from `get_char_code_table'.
2509 (put_char_id_table): Renamed from `put_char_code_table'.
2510 (to_char_id): Renamed from `to_char_code'.
2512 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2513 `Lisp_Char_Code_Table'.
2514 (char_id_table): Renamed from `char_code_table'.
2515 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2516 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2517 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2518 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2519 (get_char_id_table): Renamed from `get_char_code_table'.
2521 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2523 * lrecord.h (enum lrecord_type): Rename
2524 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2526 * mule-charset.c (mark_byte_table): Renamed from
2527 `mark_char_byte_table'.
2528 (byte_table_equal): Renamed from `char_byte_table_equal'.
2529 (byte_table_hash): Renamed from `byte_table_hash'.
2530 (make_byte_table): Renamed from `make_byte_table'.
2531 (copy_byte_table): Renamed from `copy_char_byte_table'.
2533 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2534 `Lisp_Char_Byte_Table'.
2535 (byte_table): Renamed from `char_byte_table'.
2536 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2537 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2538 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2539 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2541 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2543 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2544 (dfc_convert_to_internal_format): Likewise.
2546 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2547 * text-coding.c (Fcoding_system_alias_p): New function.
2548 * text-coding.c (Fcoding_system_aliasee): New function.
2549 * text-coding.c (append_suffix_to_symbol): New function.
2550 * text-coding.c (dangling_coding_system_alias_p): New function.
2551 * text-coding.c (Ffind_coding_system):
2552 * text-coding.c (Fcopy_coding_system):
2553 * text-coding.c (encode_coding_no_conversion):
2554 * text-coding.c (syms_of_file_coding):
2555 * text-coding.c (vars_of_file_coding):
2556 Rewrite coding system alias code.
2557 Allow nested aliases, like symbolic links.
2558 Allow redefinition of coding system aliases.
2559 Prevent existence of dangling coding system aliases.
2560 Eliminate convert_to_external_format.
2561 Eliminate convert_to_internal_format.
2563 * text-coding.c: Change enum eol_type to eol_type_t.
2565 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2567 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2568 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2570 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2571 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2573 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2575 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2576 `ideograph-daikanwa'.
2578 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2579 (Vcharset_ucs_bmp): Likewise.
2580 (Vcharset_mojikyo): Add new extern variable definition.
2581 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2582 (Vcharset_latin_iso8859_3): Likewise.
2583 (Vcharset_latin_iso8859_4): Likewise.
2584 (Vcharset_latin_iso8859_9): Likewise.
2585 (Vcharset_latin_viscii_lower): Likewise.
2586 (Vcharset_latin_viscii_upper): Likewise.
2587 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2588 `mojikyo' code-point is used to decode.
2589 (encode_char_2): New function [to convert `mojikyo' code-point to
2590 Mojikyo font encoding].
2591 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2592 (breakup_char_1): Likewise.
2593 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2595 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2597 * text-coding.c (Fmake_coding_system): Add document about
2598 `disable-composition' property.
2600 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2602 * text-coding.c (Qdisable_composition): New variable; delete
2604 (Fmake_coding_system): Add new property `disable-composite';
2605 delete property `composite'.
2606 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2607 instead of `!CODING_SYSTEM_COMPOSITE'.
2608 (syms_of_file_coding): Add new symbol `disable-composition';
2609 delete symbol `composite'.
2611 * file-coding.h (struct Lisp_Coding_System): Add
2612 `disable_composition'; delete `enable_composition'.
2613 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2614 `CODING_SYSTEM_COMPOSITE'.
2615 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2616 `XCODING_SYSTEM_COMPOSITE'.
2618 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2620 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2623 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2625 * text-coding.c (Qcomposite): New variable.
2626 (Fmake_coding_system): Add new property `composite'.
2627 (struct decoding_stream): Add `combined_char_count',
2628 `combined_chars' and `combining_table' in UTF-2000.
2629 (COMPOSE_FLUSH_CHARS): New macro.
2630 (COMPOSE_ADD_CHAR): New macro.
2631 (reset_decoding_stream): Reset `str->combined_char_count' and
2632 `str->combining_table' in UTF-2000.
2633 (decode_coding_iso2022): Modify for character-decomposition.
2634 (syms_of_file_coding): Add new symbol `composite'.
2636 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2638 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2639 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2640 of `Vcharacter_composition_table' if `->decomposition' property
2642 (Qlatin_tcvn5712): New variable.
2643 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2644 (complex_vars_of_mule_charset): Add new coded-charset
2647 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2649 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2651 * file-coding.h (struct Lisp_Coding_System): Add
2652 `enable_composition'.
2653 (CODING_SYSTEM_COMPOSITE): New macro.
2654 (XCODING_SYSTEM_COMPOSITE): New macro.
2656 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2658 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2660 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2662 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2663 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2665 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2667 * mule-charset.c (Vcharset_mojikyo): New variable.
2668 (Fdefine_char): Don't use coded-charset which does not have
2669 non-builtin character range to allocate character-id.
2670 (Qmojikyo): New variable.
2671 (syms_of_mule_charset): Add new symbol `mojikyo'.
2672 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2674 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2675 (LEADING_BYTE_MOJIKYO): New macro.
2676 (MIN_CHAR_MOJIKYO): New macro.
2677 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2678 (MAX_CHAR_MOJIKYO): New macro.
2680 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2682 * mule-charset.c (remove_char_attribute): Fixed.
2684 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2686 * mule-charset.c (remove_char_attribute): New function.
2687 (Fremove_char_attribute): New function.
2688 (encode_builtin_char_1): Comment out builtin-support for
2689 greek-iso8859-7 and cyrillic-iso8859-5.
2690 (Fdecode_char): Check `code' is an integer.
2691 (syms_of_mule_charset): Add `remove-char-attribute'.
2692 (MIN_CHAR_GREEK): Deleted.
2693 (MAX_CHAR_GREEK): Likewise.
2694 (MIN_CHAR_CYRILLIC): Likewise.
2695 (MAX_CHAR_CYRILLIC): Likewise.
2696 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2697 MAX_CHAR_GREEK for `greek-iso8859-7'.
2699 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2700 (MAX_CHAR_GREEK): Likewise.
2701 (MIN_CHAR_CYRILLIC): Likewise.
2702 (MAX_CHAR_CYRILLIC): Likewise.
2704 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2706 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2707 format is used without `ucs' property.
2708 (Fdecode_char): Fix problem with GR representation.
2709 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2710 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2712 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2714 * mule-charset.c (make_builtin_char): New function.
2715 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2716 (Fset_charset_mapping_table): Modify for new representation of
2718 (Fdecode_char): New function.
2719 (syms_of_mule_charset): Add new builtin function `decode-char' in
2722 * char-ucs.h (make_builtin_char): New prototype.
2723 (DECODE_CHAR): New inline function.
2724 (MAKE_CHAR): Use `DECODE_CHAR'.
2726 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2728 * text-coding.c (parse_charset_conversion_specs): Use
2729 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2731 (iso2022_designate): Likewise.
2733 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2734 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2736 * mule-charset.c (Vcharset_ucs): New variable.
2737 (print_charset): Change design; use `CHARSET_CHARS' and
2738 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2739 (make_charset): Change signature to specify `chars' and
2740 `dimension' instead of `type'.
2741 (range_charset_code_point): Modify for 256^n-set.
2742 (encode_builtin_char_1): Encode as `ucs' in default.
2743 (Fmake_charset): Modify for `make_charset'.
2744 (Fmake_reverse_direction_charset): Likewise.
2745 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2747 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2750 * char-ucs.h (Vcharset_ucs): New variable.
2751 (LEADING_BYTE_UCS): New macro.
2752 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2753 and `chars' to `unsigned short' from `unsigned int'.
2754 (CHARSET_TYPE): Deleted.
2755 (XCHARSET_TYPE): Deleted.
2757 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2759 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2761 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2762 (ENCODE_CHAR): New macro.
2764 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2766 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2767 to 0.14 (Kawachi-Katakami).
2769 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2771 * text-coding.c (char_encode_shift_jis): Modify for
2772 `charset_code_point'.
2773 (char_encode_iso2022): Likewise.
2775 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2776 (integer) instead of list of <Lisp_Object>s (integers) as the
2777 format of code-point of a coded-charset.
2778 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2779 (encode_builtin_char_1): New function; delete
2780 `split_builtin_char'.
2781 (charset_code_point): Return <int> instead of <Lisp_Object>.
2782 (Fsplit_char): Don't use `SPLIT_CHAR'.
2784 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2785 prototype for `split_builtin_char'.
2786 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2787 (charset_code_point): Likewise.
2788 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2789 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2791 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2793 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2794 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2796 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2798 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2800 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2801 (MAX_CHAR_OBS_94x94): Deleted.
2803 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2805 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2807 * char-ucs.h (MAX_CHAR_BMP): New macro.
2809 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2811 * text-coding.c: Sync with r21-2-24.
2813 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2815 * file-coding.c: Modify for UTF-2000.
2817 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2819 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2822 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2824 * mule-charset.c (split_builtin_char): Delete builtin support for
2825 `katakana-jisx0201'.
2826 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2827 BMP area in builtin representation.
2829 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2830 `Vcharset_katakana_jisx0201'.
2832 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2834 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2835 (Qisolated): New variable.
2836 (Qinitial): New variable.
2837 (Qmedial): New variable.
2838 (Qfinal): New variable.
2839 (Qvertical): New variable.
2840 (Qsmall): New variable.
2841 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2842 `Qvertical' and `Qsmall'.
2843 (Qmojikyo_pj_[1 .. 21]): New variable.
2844 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2845 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2846 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2849 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2851 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2852 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2853 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2855 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2857 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2858 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2860 (Qjapanese_jisx0208_1990): New variable.
2861 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2862 (complex_vars_of_mule_charset): Add new coded-charset
2863 `japanese-jisx0208-1990'.
2865 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2866 (MIN_CHAR_JIS_X0208_1990): New macro.
2867 (MAX_CHAR_JIS_X0208_1990): New macro.
2869 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2871 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2872 coded-charset is not found.
2874 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2876 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2877 (Fdefine_char): Use `Fmake_char'.
2879 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2881 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2882 (Vcharset_hiragana_jisx0208): Deleted.
2883 (Vcharset_katakana_jisx0208): Deleted.
2884 (Qideograph_daikanwa): New variable.
2885 (Qhiragana_jisx0208): Deleted.
2886 (Qkatakana_jisx0208): Deleted.
2887 (split_builtin_char): Split `ideograph-daikanwa'.
2888 (Fsplit_char): New implementation for UTF-2000.
2889 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2890 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2891 (complex_vars_of_mule_charset): Add new coded-charset
2892 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2893 `katakana-jisx0208'.
2895 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2896 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2897 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2898 (MIN_CHAR_DAIKANWA): New macro.
2899 (MAX_CHAR_DAIKANWA): New macro.
2901 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2903 * data.c (Fstring_to_number): Don't recognize floating point if
2906 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2908 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2910 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2912 * mule-charset.c (Qsquare): New variable.
2913 (to_char_code): Add `Qsquare'.
2914 (syms_of_mule_charset): Add new symbol `square'.
2916 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2918 * mule-charset.c (Qcircle): New variable.
2919 (to_char_code): Add `Qcircle'.
2920 (syms_of_mule_charset): Add new symbol `circle'.
2922 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2924 * mule-charset.c (Qfont): New variable.
2925 (to_char_code): Add `Qfont'.
2926 (syms_of_mule_charset): Add new symbol `font'.
2928 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2930 * mule-charset.c (Qsub): New variable.
2931 (to_char_code): Add `Qsub'.
2932 (syms_of_mule_charset): Add new symbol `sub'.
2934 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2936 * mule-charset.c (Fput_char_attribute): Convert each element of
2937 VALUE to GL position if ATTRIBUTE is a GR-set,
2939 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2941 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2942 coded-charset is a GR-set.
2944 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2946 * mule-charset.c (Fput_char_attribute): Check each element of
2947 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2949 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2951 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2953 (Qethiopic_ucs): New variable in UTF-2000.
2954 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2955 (complex_vars_of_mule_charset): Add new coded-charset
2956 `ethiopic-ucs' in UTF-2000.
2958 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2959 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2961 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2963 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2965 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2967 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2970 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2972 * mule-charset.c (Vcharacter_variant_table): New variable.
2973 (Q_ucs): New variable.
2974 (Fchar_variants): New function.
2975 (Fput_char_attribute): Register `->ucs' value to
2976 `Vcharacter_variant_table'.
2977 (syms_of_mule_charset): Add new function `char-variants' and new
2979 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2981 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2983 * mule-charset.c (get_char_code_table): Allow negative character
2985 (put_char_code_table): Likewise.
2986 (Vcharacter_composition_table): New variable.
2987 (Q_decomposition): New variable.
2988 (Qwide): New variable.
2989 (Qnarrow): New variable.
2990 (Qcompat): New variable.
2991 (QnoBreak): New variable.
2992 (Qsuper): New variable.
2993 (Qfraction): New variable.
2994 (to_char_code): New function.
2995 (Fget_composite_char): New function.
2996 (Fput_char_attribute): Register `->decomposition' value to
2997 `Vcharacter_composition_table'.
2998 (syms_of_mule_charset): Add new function `get-composite-char', new
2999 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3000 `super' and `fraction'.
3001 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3003 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3005 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3006 character; copy the return value.
3008 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3010 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3012 * mule-charset.c (range_charset_code_point): Must use make_int.
3013 (split_builtin_char): New function.
3015 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3017 * mule-charset.c (char_byte_table): Change name from
3018 "char-code-table" to "char-byte-table".
3019 (mark_char_code_table): New function.
3020 (char_code_table_equal): New function.
3021 (char_code_table_hash): New function.
3022 (char_code_table_description): New constant.
3023 (char_code_table): New type.
3024 (make_char_code_table): New function.
3025 (copy_char_code_table): New function.
3026 (get_char_code_table): Modify for `char_code_table' type.
3027 (put_char_code_table): Likewise.
3028 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3031 * char-ucs.h (char_code_table): New type.
3032 (XCHAR_CODE_TABLE): New macro.
3033 (XSETCHAR_CODE_TABLE): New macro.
3034 (CHAR_CODE_TABLE_P): New macro.
3035 (GC_CHAR_CODE_TABLE_P): New macro.
3036 (struct Lisp_Char_Code_Table): New structure.
3038 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3040 * mule-charset.c (Fmake_charset): Setup byte_offset for
3043 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
3045 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3048 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3050 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3053 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3055 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3056 charset, it is regarded as a charset.
3057 (put_char_attribute): New function in UTF-2000.
3058 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3059 charset, mapping-table of the charset is modified.
3060 (Fdefine_char): New function in UTF-2000.
3061 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3062 `Fput_char_attribute'.
3063 (syms_of_mule_charset): Add new function `define-char' and new
3064 symbol `ucs' in UTF-2000.
3065 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3067 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3069 * mule-charset.c (Fcharset_name): Define `byte_offset' in
3070 non-UTF-2000 configuration.
3072 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3074 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3075 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3077 * mule-charset.c (mark_charset): `cs->encoding_table' has been
3079 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3080 (Fset_charset_mapping_table): Likewise.
3082 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3083 (CHARSET_ENCODING_TABLE): Delete.
3084 (XCHARSET_ENCODING_TABLE): Delete.
3085 (charset_code_point): New interface.
3087 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3089 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3090 instead of `charset_get_byte1' and `charset_get_byte2'.
3092 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3093 (charset_get_byte2): Deleted.
3095 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3097 * char-ucs.h (SPLIT_CHAR): New inline function.
3098 (breakup_char_1): Use `SPLIT_CHAR'.
3100 * mule-charset.c (range_charset_code_point): New function.
3101 (charset_code_point): New function.
3103 * char-ucs.h (range_charset_code_point): New interface.
3104 (breakup_char_1): Use `range_charset_code_point'.
3106 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3108 * mule-charset.c (Fmake_charset): Delete unused local variable
3111 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3112 (breakup_char_1): Find a charset and code-point in
3113 `Vcharacter_attribute_table'.
3115 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3117 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3120 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3122 * mule-charset.c (Vcharacter_attribute_table): New variable.
3123 (Fchar_attribute_alist): New function.
3124 (Fget_char_attribute): New function.
3125 (Fput_char_attribute): New function.
3126 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3128 (syms_of_mule_charset): Add new function `char-attribute-alist',
3129 `get-char-attribute' and `put-char-attribute'.
3130 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3132 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
3134 * mule-charset.c (Fmake_charset): Just use
3135 `get_unallocated_leading_byte'.
3137 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3138 sets; don't use final-byte based number for private sets.
3140 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3142 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3145 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3147 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3150 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3152 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3153 of `CHAR_LEADING_BYTE' in UTF-2000.
3155 * insdel.c (find_charsets_in_bufbyte_string): Use
3156 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3157 (find_charsets_in_emchar_string): Likewise.
3159 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3160 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3162 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3163 (CHAR_CHARSET_ID): New macro.
3165 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3167 * chartab.c (get_char_table): Don't use type `Charset_ID' for
3168 charset-id - MIN_LEADING_BYTE.
3169 (put_char_table): Likewise.
3171 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3173 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3174 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3175 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3176 (CHARSET_ID_OFFSET): New macro.
3177 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3178 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3179 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3180 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3182 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3184 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3185 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3186 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3187 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3188 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3190 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3192 * mule-charset.c (next_allocated_leading_byte): New variable in
3194 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3195 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3196 (get_unallocated_leading_byte): Simply use
3197 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3198 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3201 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3202 (MAX_LEADING_BYTE_PRIVATE): New macro.
3203 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3204 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3206 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3208 * mule-charset.c (Fmake_charset): Allocate final-byte based
3209 charset-id for 94-set, 96-set and 94x94-set.
3211 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3213 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3215 (Fmake_charset): Likewise.
3216 (complex_vars_of_mule_charset): Modify the font registry of
3217 `ucs-bmp' not to match `Ethiopic-Unicode'.
3219 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3221 * mule-charset.c (complex_vars_of_mule_charset): Add font
3222 registory of `ucs-bmp'.
3224 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3226 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3227 coded-charsets in `default-coded-charset-priority-list' when
3228 breaking up a character.
3230 * mule-charset.c (Vcharset_latin_viscii): New variable.
3231 (Qlatin_viscii): New variable.
3232 (make_charset): Don't use `decoding_table'.
3233 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3235 (Fset_charset_mapping_table): New implementation.
3236 (syms_of_mule_charset): Add new symbol `latin-viscii'.
3237 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3238 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3239 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3240 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3241 charset `latin_viscii'.
3243 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3244 (CHARSET_TYPE_94X94): Change to 1 from 2.
3245 (CHARSET_TYPE_96): Change to 2 from 1.
3246 (CHARSET_TYPE_128): New macro.
3247 (CHARSET_TYPE_128X128): Change to 5 from 4.
3248 (CHARSET_TYPE_256): New macro.
3249 (CHARSET_TYPE_256X256): Change to 7 from 5.
3250 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3252 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3254 * text-coding.c (char_encode_shift_jis): Refer
3255 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3256 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3258 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3259 (char_byte_table_equal): New function in UTF-2000.
3260 (char_byte_table_hash): New function in UTF-2000.
3261 (char_byte_table_description): New constant in UTF-2000.
3262 (char_byte_table): New type in UTF-2000.
3263 (make_char_byte_table): New function in UTF-2000.
3264 (copy_char_byte_table): New function in UTF-2000.
3265 (make_char_code_table): New macro in UTF-2000.
3266 (get_char_code_table): New function in UTF-2000.
3267 (put_char_code_table): New function in UTF-2000.
3268 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3269 (charset_description): Add setting in UTF-2000.
3270 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3271 `CHARSET_TO_BYTE1_TABLE(cs)'.
3272 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3273 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3274 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3275 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3276 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3277 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3278 `CHARSET_TO_BYTE2_TABLE(cs)'.
3280 * char-ucs.h (char_byte_table): New type.
3281 (XCHAR_BYTE_TABLE): New macro.
3282 (XSETCHAR_BYTE_TABLE): New macro.
3283 (CHAR_BYTE_TABLE_P): New macro.
3284 (GC_CHAR_BYTE_TABLE_P): New macro.
3285 (struct Lisp_Char_Byte_Table): New structure.
3286 (get_char_code_table): New interface.
3287 (Emchar_to_byte_table): Deleted.
3288 (get_byte_from_character_table): Deleted.
3289 (struct Lisp_Charset): Add `encoding_table'; delete
3290 `to_byte1_table' and `to_byte2_table'.
3291 (CHARSET_ENCODING_TABLE): New macro.
3292 (CHARSET_TO_BYTE1_TABLE): Deleted.
3293 (CHARSET_TO_BYTE2_TABLE): Deleted.
3294 (XCHARSET_ENCODING_TABLE): New macro.
3295 (XCHARSET_TO_BYTE1_TABLE): Deleted.
3296 (XCHARSET_TO_BYTE2_TABLE): Deleted.
3298 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3300 * mule-charset.c (syms_of_mule_charset): Delete charset alias
3301 `vietnamese-viscii-*'.
3303 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3305 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3306 (Qvietnamese_viscii_upper): New variable.
3307 (Fdefine_charset_alias): New function.
3308 (syms_of_mule_charset): Add new function `define-charset-alias'.
3309 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3310 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3313 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
3315 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3316 (MAX_CHAR_OBS_94x94): New macro.
3317 (breakup_char_1): Support obsolete XEmacs-UCS private code space
3320 * mule-charset.c (put_byte_from_character_table): Change unit size
3322 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3324 (Fmake_reverse_direction_charset): Modify dummy argument of
3325 `make_charset' for non-UTF-2000 environment.
3327 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3329 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3331 * mule-charset.c (destroy_byte_from_character_table): New macro.
3332 (latin_jisx0201_to_ucs): Deleted.
3333 (latin_iso8859_2_to_ucs): Deleted.
3334 (latin_iso8859_3_to_ucs): Deleted.
3335 (latin_iso8859_4_to_ucs): Deleted.
3336 (latin_iso8859_9_to_ucs): Deleted.
3337 (latin_viscii_lower_to_ucs): Deleted.
3338 (latin_viscii_upper_to_ucs): Deleted.
3339 (mark_charset): Mark `cs->decoding_table'.
3340 (Fcharset_mapping_table): Fix DOC-string.
3341 (Fset_charset_mapping_table): New function.
3342 (syms_of_mule_charset): Add nwe function
3343 `set-charset-mapping-table'.
3344 (complex_vars_of_mule_charset): Don't setup and use
3347 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
3349 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3352 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
3354 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3355 (Vcharset_katakana_jisx0208): New variable.
3356 (Qhiragana_jisx0208): New variable.
3357 (Qkatakana_jisx0208): New variable.
3358 (make_charset): Add new argument `byte_offset'.
3359 (charset_get_byte1): Modify for new coded-charset definition; use
3360 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3361 `XCHARSET_BYTE_OFFSET'.
3362 (Fmake_charset): Modify for `make_charset'.
3363 (Fmake_reverse_direction_charset): Likewise.
3364 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3365 `katakana-jisx0208'.
3366 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3367 `.' in font registry of charset `katakana-jisx0201',
3368 `latin-jisx0201', `vietnamese-viscii-lower' and
3369 `vietnamese-viscii-upper'; modify DOC-string of charset
3370 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3371 registry of charset `japanese-jisx0208' not to use font for JIS
3372 X0208:1990; add new charset `hiragana-jisx0208' and
3373 `katakana-jisx0208'.
3375 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3376 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3377 (struct Lisp_Charset): Add `byte_offset'.
3378 (CHARSET_BYTE_OFFSET): New macro.
3379 (XCHARSET_UCS_MIN): New macro.
3380 (XCHARSET_UCS_MAX): New macro.
3381 (XCHARSET_CODE_OFFSET): New macro.
3382 (XCHARSET_BYTE_OFFSET): New macro.
3383 (MIN_CHAR_HIRAGANA): New macro.
3384 (MAX_CHAR_HIRAGANA): New macro.
3385 (MIN_CHAR_KATAKANA): New macro.
3386 (MAX_CHAR_KATAKANA): New macro.
3387 (MAKE_CHAR): Modify for new coded-charset definition; use
3388 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3389 `XCHARSET_BYTE_OFFSET'.
3391 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3393 * mule-charset.c (CHAR96): Deleted.
3394 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3396 (latin_iso8859_2_to_ucs): Likewise.
3397 (latin_iso8859_3_to_ucs): Likewise.
3398 (latin_iso8859_4_to_ucs): Likewise.
3399 (latin_iso8859_9_to_ucs): Likewise.
3400 (latin_viscii_lower_to_ucs): Likewise.
3401 (latin_viscii_upper_to_ucs): Likewise.
3402 (latin_tcvn5712_to_ucs): Commented out.
3403 (make_charset): Change type of argument `decoding_table' from
3404 <Emchar*> to <Lisp_Object> [vector of characters].
3405 (Fmake_charset): Modify for `make_charset'.
3406 (Fmake_reverse_direction_charset): Likewise.
3407 (Fcharset_mapping_table): New function in UTF-2000.
3408 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3410 (complex_vars_of_mule_charset): Modify for type change of
3411 `*_to_ucs'; modify for `make_charset'.
3413 * char-ucs.h (struct Lisp_Charset): Change type of
3414 `decoding_table' from <Emchar*> to <Lisp_Object>.
3415 (MAKE_CHAR): Modify for new specification of `decoding_table'.
3417 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3419 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3420 error with non-UTF-2000-Mule.
3422 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
3424 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3426 (Vcharset_chinese_cns11643_4): Likewise.
3427 (Vcharset_chinese_cns11643_5): Likewise.
3428 (Vcharset_chinese_cns11643_6): Likewise.
3429 (Vcharset_chinese_cns11643_7): Likewise.
3430 (Qchinese_cns11643_3): Likewise.
3431 (Qchinese_cns11643_4): Likewise.
3432 (Qchinese_cns11643_5): Likewise.
3433 (Qchinese_cns11643_6): Likewise.
3434 (Qchinese_cns11643_7): Likewise.
3435 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3436 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3437 and `chinese-cns11643-7' to lisp/mule/chinese.el.
3438 (complex_vars_of_mule_charset): Likewise.
3440 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3442 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3444 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3445 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3447 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3449 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3451 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3452 (breakup_char_1): Likewise.
3454 * text-coding.c (char_encode_iso2022): Keep designated charsets if
3455 one of them includes the specified character.
3457 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3459 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3461 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3463 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3465 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3467 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3468 definition for non-UTF-2000 Mule.
3469 (latin_iso8859_3_to_ucs): Likewise.
3470 (latin_iso8859_4_to_ucs): Likewise.
3471 (latin_iso8859_9_to_ucs): Likewise.
3472 (latin_jisx0201_to_ucs): Likewise.
3473 (MIN_CHAR_THAI): Likewise.
3474 (MAX_CHAR_THAI): Likewise.
3475 (MIN_CHAR_GREEK): Likewise.
3476 (MAX_CHAR_GREEK): Likewise.
3477 (MIN_CHAR_HEBREW): Likewise.
3478 (MAX_CHAR_HEBREW): Likewise.
3479 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3480 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3481 (MIN_CHAR_CYRILLIC): Likewise.
3482 (MAX_CHAR_CYRILLIC): Likewise.
3484 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3486 * char-ucs.h (breakup_char_1): Use
3487 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3488 thai-tis620 and katakana-jisx0201 area.
3490 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3492 * char-ucs.h (breakup_char_1): Use
3493 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3496 * text-coding.c (reset_encoding_stream): Fixed.
3497 (char_encode_ucs4): Delete `& 255'.
3499 * char-ucs.h (breakup_char_1): Use
3500 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3502 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3504 * file-coding.c (Fmake_coding_system): Don't set up
3505 `codesys->fixed.size'.
3506 (encode_coding_no_conversion): Don't refer
3507 `str->codesys->fixed.size'.
3509 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3511 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3512 (latin_a_char_to_byte1): Deleted.
3513 (latin_a_char_to_byte2): Deleted.
3515 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3517 * mule-charset.c (make_charset): Add new argument `ucs_min',
3518 `ucs_max' and `code_offset'.
3519 (charset_get_byte1): New implementation [delete specific charset
3520 depended implementations].
3521 (Fmake_charset): Modify for `make_charset'.
3522 (Fmake_reverse_direction_charset): Likewise.
3523 (complex_vars_of_mule_charset): Likewise.
3525 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3527 (CHARSET_UCS_MIN): New macro.
3528 (CHARSET_UCS_MAX): New macro.
3529 (CHARSET_CODE_OFFSET): New macro.
3530 (MAKE_CHAR): Delete charset depended definitions [except
3533 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3535 * char-ucs.h (breakup_char_1): Use
3536 `Vdefault_coded_charset_priority_list' for C0-Controls,
3537 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3539 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3541 * char-ucs.h (charset_get_byte1): New function.
3542 (XCHARSET_GET_BYTE1): Deleted.
3543 (charset_get_byte2): New function.
3544 (XCHARSET_GET_BYTE2): Deleted.
3545 (Vdefault_coded_charset_priority_list): New external variable.
3546 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3547 `Vdefault_preferred_coded_charset_list'.
3549 * mule-charset.c (charset_get_byte1): New function.
3550 (charset_get_byte2): New function.
3551 (Vdefault_coded_charset_priority_list): New variable.
3552 (vars_of_mule_charset): Add new variable
3553 `default-coded-charset-priority-list'.
3555 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3557 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3558 (XCHARSET_GET_BYTE2): New inline function.
3559 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3560 `XCHARSET_GET_BYTE2'.
3562 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3564 * mule-charset.c (make_charset): Initialize
3565 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3566 NULL if table is not defined.
3568 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3570 * text-coding.c (char_encode_shift_jis): Use
3571 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3572 `ucs_to_latin_jisx0201'.
3574 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3575 (ucs_to_latin_iso8859_2): Deleted.
3576 (ucs_to_latin_iso8859_3): Deleted.
3577 (ucs_to_latin_iso8859_4): Deleted.
3578 (ucs_to_latin_iso8859_9): Deleted.
3579 (ucs_to_latin_viscii_lower): Deleted.
3580 (ucs_to_latin_viscii_upper): Deleted.
3581 (ucs_to_latin_tcvn5712): Deleted.
3582 (make_charset): Add new argument `decoding_table'; set up
3583 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3584 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3585 `decoding_table' is defined in UTF-2000.
3586 (Fmake_charset): Modify for `make_charset'.
3587 (Fmake_reverse_direction_charset): Likewise.
3588 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3589 and `GENERATE_96_SET'.
3591 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3592 (ucs_to_latin_jisx0201): Deleted.
3593 (latin_iso8859_2_to_ucs): Deleted.
3594 (ucs_to_latin_iso8859_2): Deleted.
3595 (latin_iso8859_3_to_ucs): Deleted.
3596 (ucs_to_latin_iso8859_3): Deleted.
3597 (latin_iso8859_4_to_ucs): Deleted.
3598 (ucs_to_latin_iso8859_4): Deleted.
3599 (latin_iso8859_9_to_ucs): Deleted.
3600 (ucs_to_latin_iso8859_9): Deleted.
3601 (latin_viscii_lower_to_ucs): Deleted.
3602 (ucs_to_latin_viscii_lower): Deleted.
3603 (latin_viscii_upper_to_ucs): Deleted.
3604 (ucs_to_latin_viscii_upper): Deleted.
3605 (struct Lisp_Charset): Renamed `encoding_table' to
3606 `to_byte1_table'; add `to_byte2_table'.
3607 (CHARSET_DECODING_TABLE): New macro.
3608 (CHARSET_TO_BYTE1_TABLE): New macro.
3609 (CHARSET_TO_BYTE2_TABLE): New macro.
3610 (XCHARSET_DECODING_TABLE): New macro.
3611 (XCHARSET_TO_BYTE1_TABLE): New macro.
3612 (XCHARSET_TO_BYTE2_TABLE): New macro.
3613 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3615 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3616 don't use `ucs_to_*' tables.
3618 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3620 * text-coding.c (Fmake_coding_system): Don't set up
3621 `codesys->fixed.size'.
3622 (encode_coding_no_conversion): Use `if' instead of `switch'.
3624 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3626 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3628 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3629 (Fmake_charset): Modify for `make_charset'.
3630 (Fmake_reverse_direction_charset): Likewise.
3631 (complex_vars_of_mule_charset): Likewise.
3633 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3635 * text-coding.c (char_encode_shift_jis): Use table
3636 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3638 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3640 * text-coding.c (text_encode_generic): Use `if' instead of
3642 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3645 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3647 * text-coding.c (encode_coding_sjis): Deleted.
3648 (char_encode_shift_jis): New function.
3649 (char_finish_shift_jis): New function.
3650 (reset_encoding_stream): Set up `encode_char' and `finish' for
3651 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3652 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3653 (char_encode_utf8): Treat `eol_type'.
3655 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3657 * file-coding.c (decode_coding_iso2022): Use
3658 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3660 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3662 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3665 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3667 * char-lb.h (CHAR_COLUMNS): New macro.
3669 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3671 * text-coding.c (char_encode_ucs4): New function.
3672 (char_finish_ucs4): New function.
3673 (encode_coding_ucs4): Deleted.
3674 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3675 (text_encode_generic): Delete local variable `charset' and `half'.
3676 (ucs_to_mule_table): Deleted.
3677 (mule_to_ucs_table): Deleted.
3678 (Fset_ucs_char): Deleted.
3679 (ucs_to_char): Deleted.
3680 (Fucs_char): Deleted.
3681 (Fset_char_ucs): Deleted.
3682 (Fchar_ucs): Deleted.
3683 (decode_ucs4): Deleted.
3684 (mule_char_to_ucs4): Deleted.
3685 (encode_ucs4): Deleted.
3686 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3687 (decode_coding_utf8): Likewise.
3688 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3689 (char_encode_iso2022): Fixed.
3690 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3691 `Fset_char_ucs' and `Fchar_ucs'.
3692 (complex_vars_of_file_coding): Don't initialize
3693 `ucs_to_mule_table'.
3695 * objects-tty.c (tty_initialize_font_instance): Don't use
3698 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3701 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3702 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3704 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3705 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3706 (emchar_string_displayed_columns): Likewise.
3708 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3709 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3710 (string_column_at_point): Likewise.
3711 (Fmove_to_column): Likewise.
3713 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3714 `encoding_table' and `decoding_table'.
3715 (CHARSET_REP_BYTES): Deleted.
3716 (XCHARSET_REP_BYTES): Deleted.
3717 (XCHARSET_COLUMNS): Deleted.
3718 (CHAR_COLUMNS): New macro.
3719 (lookup_composite_char): Deleted unconditionally.
3720 (composite_char_string): Likewise.
3722 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3724 * char-ucs.h (Emchar_to_byte_table): New type.
3725 (get_byte_from_character_table): New function interface.
3726 (Vcharset_latin_jisx0201): New variable.
3727 (latin_jisx0201_to_ucs): New variable.
3728 (ucs_to_latin_jisx0201): New variable.
3729 (Vcharset_latin_iso8859_2): New variable.
3730 (latin_iso8859_2_to_ucs): New variable.
3731 (ucs_to_latin_iso8859_2): New variable.
3732 (Vcharset_latin_iso8859_3): New variable.
3733 (latin_iso8859_3_to_ucs): New variable.
3734 (ucs_to_latin_iso8859_3): New variable.
3735 (Vcharset_latin_iso8859_4): New variable.
3736 (latin_iso8859_4_to_ucs): New variable.
3737 (ucs_to_latin_iso8859_4): New variable.
3738 (Vcharset_latin_iso8859_9): New variable.
3739 (latin_iso8859_9_to_ucs): New variable.
3740 (ucs_to_latin_iso8859_9): New variable.
3741 (Vcharset_latin_viscii_lower): New variable.
3742 (latin_viscii_lower_to_ucs): New variable.
3743 (ucs_to_latin_viscii_lower): New variable.
3744 (Vcharset_latin_viscii_upper): New variable.
3745 (latin_viscii_upper_to_ucs): New variable.
3746 (ucs_to_latin_viscii_upper): New variable.
3747 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3748 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3749 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3750 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3751 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3752 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3753 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3754 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3755 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3756 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3758 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3759 (Vcharset_latin_viscii_upper): New variable.
3760 (make_byte_from_character_table): New function.
3761 (put_byte_from_character_table): New function.
3762 (get_byte_from_character_table): New function.
3763 (CHAR96): New macro.
3764 (ucs_to_latin_jisx0201): New variable.
3765 (latin_jisx0201_to_ucs): New variable.
3766 (ucs_to_latin_iso8859_2): New variable.
3767 (latin_iso8859_2_to_ucs): New variable.
3768 (ucs_to_latin_iso8859_3): New variable.
3769 (latin_iso8859_3_to_ucs): New variable.
3770 (ucs_to_latin_iso8859_4): New variable.
3771 (latin_iso8859_4_to_ucs): New variable.
3772 (ucs_to_latin_iso8859_9): New variable.
3773 (latin_iso8859_9_to_ucs): New variable.
3774 (ucs_to_latin_viscii_lower): New variable.
3775 (latin_viscii_lower_to_ucs): New variable.
3776 (ucs_to_latin_viscii_upper): New variable.
3777 (latin_viscii_upper_to_ucs): New variable.
3778 (ucs_to_latin_tcvn5712): New variable.
3779 (latin_tcvn5712_to_ucs): New variable.
3780 (Qlatin_viscii_lower): New variable.
3781 (Qlatin_viscii_upper): New variable.
3782 (syms_of_mule_charset): Set up new symbol
3783 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3784 (complex_vars_of_mule_charset): Set up new charset
3785 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3786 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3787 `ucs_to_<CHARSET>' tables.
3789 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3791 * text-coding.c: New file.
3793 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3795 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3797 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3798 (MAKE_CHAR): Modify for `ucs-bmp'.
3799 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3800 non-MULE characters of BMP.
3802 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3804 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3807 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3810 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3811 - Include character.h for `CHAR_ASCII_P'.
3813 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3815 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3816 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3818 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3819 (BYTE_C0_P): Likewise.
3820 (BYTE_C1_P): Likewise.
3821 (Lstream_get_emchar_1): Likewise.
3822 (Lstream_fput_emchar): Likewise.
3823 (Lstream_funget_emchar): Likewise.
3824 (copy_internal_to_external): Likewise.
3825 (copy_external_to_internal): Likewise.
3827 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3828 (BYTE_C0_P): Likewise.
3829 (BYTE_C1_P): Likewise.
3830 (Lstream_get_emchar_1): Likewise.
3831 (Lstream_fput_emchar): Likewise.
3832 (Lstream_funget_emchar): Likewise.
3833 (copy_internal_to_external): Likewise.
3834 (copy_external_to_internal): Likewise.
3836 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3837 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3839 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3840 (BYTE_ASCII_P): Moved to mb-1byte.h.
3842 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3844 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3846 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3847 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3848 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3849 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3850 (VALIDATE_CHARPTR_FORWARD): Likewise.
3851 (simple_charptr_emchar): Moved to mb-multibyte.h.
3852 (simple_set_charptr_emchar): Likewise.
3853 (simple_charptr_copy_char): Likewise.
3854 (non_ascii_charptr_emchar): Likewise.
3855 (non_ascii_set_charptr_emchar): Likewise.
3856 (non_ascii_charptr_copy_char): Likewise.
3857 (charptr_emchar): Moved to mb-*byte.h.
3858 (set_charptr_emchar): Likewise.
3859 (charptr_copy_char): Likewise.
3861 * mb-1byte.h, mb-multibyte.h: New files.
3863 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3865 * mb-utf-8.h (MULTIBYTE): New macro.
3866 (MAX_EMCHAR_LEN): Moved from buffer.h.
3867 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3869 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3871 * mb-lb.h, multibyte.h: New files.
3873 * char-1byte.h (Charset_ID): Moved from buffer.h.
3874 (MIN_LEADING_BYTE): Likewise.
3875 (LEADING_BYTE_ASCII): Likewise.
3876 (NUM_LEADING_BYTES): Likewise.
3877 (CHARSETP): Likewise.
3878 (CHARSET_BY_LEADING_BYTE): Likewise.
3879 (XCHARSET_LEADING_BYTE): Likewise.
3880 (XCHARSET_GRAPHIC): Likewise.
3881 (XCHARSET_COLUMNS): Likewise.
3882 (XCHARSET_DIMENSION): Likewise.
3883 (CHAR_CHARSET): Likewise.
3884 (CHAR_LEADING_BYTE): Likewise.
3885 (BREAKUP_CHAR): Likewise.
3886 (Vcharset_ascii): Likewise.
3888 * buffer.h: Include multibyte.h unconditionally.
3889 (VALID_CHARPTR_P): Moved to multibyte.h.
3890 (ASSERT_VALID_CHARPTR): Likewise.
3891 (REAL_INC_CHARPTR): Likewise.
3892 (REAL_INC_CHARBYTIND): Likewise.
3893 (REAL_DEC_CHARPTR): Likewise.
3894 (INC_CHARPTR): Likewise.
3895 (INC_CHARBYTIND): Likewise.
3896 (DEC_CHARPTR): Likewise.
3897 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3898 (VALIDATE_CHARPTR_FORWARD): Likewise.
3899 (charptr_n_addr): Likewise.
3900 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3901 (simple_charptr_emchar): Moved to multibyte.h.
3902 (simple_set_charptr_emchar): Likewise.
3903 (simple_charptr_copy_char): Likewise.
3904 (non_ascii_charptr_emchar): Likewise.
3905 (non_ascii_set_charptr_emchar): Likewise.
3906 (non_ascii_charptr_copy_char): Likewise.
3907 (charptr_emchar): Likewise.
3908 (set_charptr_emchar): Likewise.
3909 (charptr_copy_char): Likewise.
3910 (charptr_emchar_n): Likewise.
3911 (Charset_ID): Moved to char-1byte.h.
3912 (Vcharset_ascii): Likewise.
3913 (CHAR_CHARSET): Likewise.
3914 (CHAR_LEADING_BYTE): Likewise.
3915 (LEADING_BYTE_ASCII): Likewise.
3916 (NUM_LEADING_BYTES): Likewise.
3917 (MIN_LEADING_BYTE): Likewise.
3918 (CHARSETP): Likewise.
3919 (CHARSET_BY_LEADING_BYTE): Likewise.
3920 (XCHARSET_LEADING_BYTE): Likewise.
3921 (XCHARSET_GRAPHIC): Likewise.
3922 (XCHARSET_COLUMNS): Likewise.
3923 (XCHARSET_DIMENSION): Likewise.
3924 (BREAKUP_CHAR): Likewise.
3926 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3928 * character.h: Add document about interface for characters.
3930 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3931 (MAKE_CHAR): Delete comment about
3932 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3933 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3934 (BREAKUP_CHAR): Modify name of arguments.
3935 (CHAR_CHARSET): Modify name of argument.
3937 * buffer.h: Delete document about Emchar accessors.
3939 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3941 * character.h (CHAR_INTP): Moved from buffer.h
3942 (CHAR_OR_CHAR_INTP): Likewise.
3943 (XCHAR_OR_CHAR_INT): Likewise.
3944 (CHECK_CHAR_COERCE_INT): Likewise.
3946 * buffer.h (CHAR_INTP): Moved to character.h
3947 (CHAR_OR_CHAR_INTP): Likewise.
3948 (XCHAR_OR_CHAR_INT): Likewise.
3949 (CHECK_CHAR_COERCE_INT): Likewise.
3951 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3954 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3955 - Include char-1byte.h, char-lb.h or char-ucs.h.
3957 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3959 * buffer.h: Include character unconditionally.
3960 (valid_char_p): Moved to char-*.h.
3961 (non_ascii_valid_char_p): Moved to char-lb.h.
3963 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3965 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3967 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3968 in UTF-2000 because it is not ported yet and not to use
3969 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3970 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3971 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3973 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3974 (CHAR_ASCII_P): Moved from character.h.
3976 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3977 (CHAR_ASCII_P): Likewise.
3978 (CHAR_FIELD1_MASK): Deleted.
3979 (CHAR_FIELD2_MASK): Deleted.
3980 (CHAR_FIELD3_MASK): Deleted.
3981 (MAX_CHAR_BASIC_LATIN): New macro.
3982 (CHAR_FIELD1): Deleted.
3983 (CHAR_FIELD2_INTERNAL): Deleted.
3984 (CHAR_FIELD3_INTERNAL): Deleted.
3985 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3986 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3987 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3988 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3989 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3990 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3991 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3992 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3993 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3994 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3995 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3996 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3997 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3998 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3999 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4000 (MIN_CHAR_COMPOSITION): Deleted.
4001 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4002 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4004 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
4006 * buffer.h: Include mb-utf-8.h in UTF-2000.
4008 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4010 * mb-utf-8.h: New file.
4012 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
4014 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4017 * mule-charset.h, buffer.h (Charset_ID): New type.
4019 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
4021 * mule-canna.c (c2mu): Use `MAKE_CHAR',
4022 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4023 instead of `MULE_CHAR_PRIVATE_OFFSET',
4024 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4025 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4026 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4028 * character.h (Vcharset_japanese_jisx0212): New variable
4031 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
4033 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4034 (charset_by_attributes): Delete array about direction.
4035 (latin_a_char_to_charset): New variable in UTF-2000.
4036 (latin_a_char_to_byte1): New variable in UTF-2000.
4037 (latin_a_char_to_byte2): New variable in UTF-2000.
4038 (Qucs_bmp): New variable.
4039 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4041 (next_allocated_2_byte_leading_byte): Likewise.
4042 (non_ascii_set_charptr_emchar): Likewise.
4043 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4044 `CHARSET_TYPE_256X256' in UTF-2000; modify for
4045 `charset_by_attributes'.
4046 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4047 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4048 and `CHARSET_BY_LEADING_BYTE'.
4049 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4050 `utf-2000-version' to `vars_of_mule_charset'.
4051 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4052 define `leading-code-private-11' in UTF-2000; move setting of
4053 `utf-2000-version' from `syms_of_mule_charset'.
4054 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4057 * character.h (Charset_ID): New type.
4058 (LEADING_BYTE_UCS_BMP): New macro.
4059 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4060 (CHARSET_ID_OFFSET_94): New macro.
4061 (MIN_CHARSET_ID_PRIVATE_94): New macro.
4062 (MAX_CHARSET_ID_PRIVATE_94): New macro.
4063 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4065 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4066 (LEADING_BYTE_LATIN_JISX0201): Likewise.
4067 (CHARSET_ID_OFFSET_96): New macro.
4068 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4069 CHARSET_ID_OFFSET_96 and final-byte.
4070 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4071 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4072 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4073 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4074 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4075 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4076 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4077 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4078 (LEADING_BYTE_THAI_TIS620): Likewise.
4079 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4080 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4081 (CHARSET_ID_OFFSET_94x94): New macro.
4082 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4083 CHARSET_ID_OFFSET_94x94 and final-byte.
4084 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4085 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4086 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4087 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4088 (LEADING_BYTE_CHINESE_GB2312): Likewise.
4089 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4090 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4091 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4092 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4093 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4094 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4095 (CHARSET_TYPE_128X128): New macro.
4096 (CHARSET_TYPE_256X256): New macro.
4097 (XCHARSET_PRIVATE_P): Delete unconditionally.
4098 (charset_by_attributes): Delete array about direction.
4099 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4100 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4101 (MIN_CHAR_94): New macro.
4102 (MAX_CHAR_94): New macro.
4103 (MIN_CHAR_96): New macro.
4104 (MAX_CHAR_96): New macro.
4105 (MIN_CHAR_94x94): New macro.
4106 (MAX_CHAR_94x94): New macro.
4107 (MIN_CHAR_96x96): New macro.
4108 (MAX_CHAR_96x96): New macro.
4109 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4110 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4111 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4113 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4114 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4115 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4116 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4117 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4118 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4119 `XCHARSET_LEADING_BYTE' to make code-point.
4120 (latin_a_char_to_charset): New variable.
4121 (latin_a_char_to_byte1): New variable.
4122 (latin_a_char_to_byte2): New variable.
4123 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4124 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4125 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4127 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4128 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4129 (find_charsets_in_emchar_string): Likewise.
4130 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4132 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4134 (decode_coding_iso2022): Likewise.
4136 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4139 * redisplay.c (redisplay_text_width_emchar_string): Use
4140 `Charset_ID' instead of `unsigned char'.
4141 (redisplay_frame_text_width_string): Likewise.
4143 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4146 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4147 instead of `unsigned char'.
4148 (face_cachel_charset_font_metric_info): Likewise.
4150 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4151 (get_non_ascii_char_table_value): Likewise.
4152 (get_char_table): Likewise.
4153 (put_char_table): Likewise.
4154 (map_over_other_charset): Likewise.
4155 (map_char_table): Likewise.
4157 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4158 instead of `unsigned char'.
4160 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
4162 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4163 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4165 * mule-charset.c (leading_code_private_11): Don't define in
4168 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4169 in UTF-2000 because it is not ported yet and not to use
4170 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4172 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
4174 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4176 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4178 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4181 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4182 of unsigned char to store leading-byte.
4184 * chartab.c (get_non_ascii_char_table_value): Don't use
4185 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4187 * file-coding.c (encode_coding_big5): Delete bogus implementation
4190 * character.h (LEADING_BYTE_*): Delete definition for
4192 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4193 (LEADING_BYTE_PREFIX_P): Deleted.
4194 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4195 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4196 (BUFBYTE_LEADING_BYTE_P): Deleted.
4197 (CHARSET_PRIVATE_P): Deleted unconditionally.
4198 (rep_bytes_by_first_byte): Deleted unconditionally.
4199 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4200 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4201 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4202 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4203 (CHAR_FIELD2): Deleted.
4204 (CHAR_FIELD3): Deleted.
4205 (MAKE_CHAR): Delete definition for non-UTF-2000.
4206 (BREAKUP_CHAR_1_UNSAFE): Deleted.
4207 (breakup_char_1): New implementation.
4208 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4209 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4211 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4213 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4216 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4218 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4219 (CHARSET_PRIVATE_P): Likewise.
4220 (XCHARSET_PRIVATE_P): Likewise.
4221 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4223 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4225 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4227 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4229 * character.h (LEADING_BYTE_*): Changed in UTF2000.
4230 (NUM_LEADING_BYTES): Changed from 128 to 256.
4231 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4232 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4234 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4236 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4238 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4239 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4240 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4241 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4242 (Qchinese_cns11643_3): New variable in UTF2000.
4243 (Qchinese_cns11643_4): New variable in UTF2000.
4244 (Qchinese_cns11643_5): New variable in UTF2000.
4245 (Qchinese_cns11643_6): New variable in UTF2000.
4246 (Qchinese_cns11643_7): New variable in UTF2000.
4247 (syms_of_mule_charset): Define `chinese-cns11643-3',
4248 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4249 and `chinese-cns11643-7' in UTF2000.
4250 (vars_of_mule_charset): Initialize
4251 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4253 (complex_vars_of_mule_charset): Setup charset
4254 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4255 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4257 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4259 * mule-charset.c: Move setting for `leading-code-private-11' from
4260 `syms_of_mule_charset' to `vars_of_mule_charset'.
4262 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4264 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4265 and `NUM_LEADING_BYTES' in assert.
4267 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4269 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4271 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4272 `NUM_LEADING_BYTES' instead of 128.
4274 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
4276 * mule-charset.h (charset_by_leading_byte): Use
4277 `NUM_LEADING_BYTES' instead of 128.
4278 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4280 * mule-charset.c (charset_by_leading_byte): Use
4281 `NUM_LEADING_BYTES' instead of 128.
4282 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4284 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4287 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4289 * mule-charset.c (syms_of_mule_charset): Update to
4292 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4294 * file-coding.c (encode_coding_sjis): New implementation for
4295 UTF2000. (decode_coding_sjis): Ditto.
4297 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4299 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4300 Don't define in UTF2000.
4302 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4305 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4306 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4309 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4311 * config.h.in (CHAR_IS_UCS4): New macro.
4313 * mule-charset.c (rep_bytes_by_first_byte): Modify for
4314 conventional MULE representation.
4315 (syms_of_mule_charset): Update to 0.3 (Imamiya).
4317 * mule-charset.h: Reverted to original.
4319 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4320 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4321 "mule-charset.h" if CHAR_IS_UCS4 is defined.
4323 * character.h: New file.
4325 * file-coding.c (Fmake_coding_system): Set 1 to
4326 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4328 (encode_coding_no_conversion): New implementation for UTF2000.
4330 * file-coding.h (struct Lisp_Coding_System): Add new member
4333 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
4335 * file-coding.c (decode_coding_iso2022): Code-point arguments of
4336 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4337 (encode_coding_iso2022): New implementation for UTF2000.
4339 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4341 * mule-canna.c (c2mu): New implementation for UTF2000.
4344 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4346 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4348 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4350 * file-coding.c (reset_encoding_stream): Set 0 to
4351 `str->iso2022.current_char_boundary' in UTF2000.
4352 (encode_utf8): Don't define in UTF2000.
4353 (encode_coding_utf8): New implementation for UTF-8 representation
4355 (complex_vars_of_file_coding): Define coding-system `utf-8'.
4357 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4359 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4361 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4363 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4365 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4367 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4368 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4369 as UTF-8 in UTF2000.
4370 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4371 (non_ascii_valid_char_p): Don't define in UTF2000.
4372 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4373 (Lstream_get_emchar_1): Likewise.
4374 (utf-2000-version): New variable in UTF2000.
4376 * lread.c (read_escape): Add new reader `u'.
4378 * insdel.c (three_to_one_table): Don't define in UTF2000.
4379 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4380 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4382 (bytind_to_bufpos_func): Likewise.
4383 (buffer_mule_signal_inserted_region): Likewise.
4384 (vars_of_insdel): Don't initialize `three_to_one_table'.
4385 (init_buffer_text): Use `buf->text->mule_size' instead of
4386 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4389 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4390 UTF-8 representation in UTF2000.
4391 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4392 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4393 (decode_coding_iso2022): Don't define local variable `lb' in
4394 UTF2000; don't use LEADING_BYTE in UTF2000; use
4395 `DECODE_ADD_UCS_CHAR' in UTF2000.
4396 (convert_to_external_format): Decode as UTF-8 in UTF2000.
4398 * config.h.in (UTF2000): New macro.
4400 * buffer.h (struct buffer_text): Add new member `mule_size' and
4401 don't add `mule_shifter' and `mule_three_p' in UTF2000.
4402 (valid_char_p): Return always 1 in UTF2000.
4403 (MAX_EMCHAR_LEN): 6 in UTF2000.
4404 (three_to_one_table): Don't define in UTF2000.
4405 (real_bufpos_to_bytind): Modify for UTF-8 representation in
4407 (real_bytind_to_bufpos): Likewise.
4409 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4411 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4413 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4414 representation change.
4415 (Vutf_2000_version): New variable.
4416 (leading_code_private_11): New variable.
4417 (syms_of_mule_charset): Add new variables `utf-2000-version' and
4418 `leading-code-private-11'.
4420 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4421 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4422 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4423 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4424 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4425 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4426 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4427 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4428 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4429 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4430 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4431 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4432 (MIN_CHAR_GREEK): New macro.
4433 (MAX_CHAR_GREEK): New macro.
4434 (MIN_CHAR_CYRILLIC): New macro.
4435 (MAX_CHAR_CYRILLIC): New macro.
4436 (MIN_CHAR_HEBREW): New macro.
4437 (MAX_CHAR_HEBREW): New macro.
4438 (MIN_CHAR_THAI): New macro.
4439 (MAX_CHAR_THAI): New macro.
4440 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4441 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4442 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4443 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4444 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4445 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4446 (CHAR_FIELD2): New inline function.
4447 (CHAR_FIELD3): New inline function.
4448 (MULE_CHAR_PRIVATE_OFFSET): New macro.
4449 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4450 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4451 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4452 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4453 (MIN_CHAR_COMPOSITION): Likewise.
4454 (CHAR_LEADING_BYTE): Modified for character representation change.
4455 (MAKE_CHAR): Likewise.
4457 * lisp.h (Vcharset_latin_iso8859_1): New variable.
4458 (Vcharset_greek_iso8859_7): Likewise.
4459 (Vcharset_cyrillic_iso8859_5): Likewise.
4460 (Vcharset_hebrew_iso8859_8): Likewise.
4461 (Vcharset_thai_tis620): Likewise.
4462 (Vcharset_katakana_jisx0201): Likewise.
4464 2002-08-23 Stephen J. Turnbull <stephen@xemacs.org>
4466 * XEmacs 21.4.9 "Informed Management" is released.
4468 2002-08-19 Andy Piper <andy@xemacs.org>
4470 * fileio.c (Ffile_truename): on cygwin using win32 normalize to
4473 * realpath.c (xrealpath): normalize drive spec also so that dir
4474 sep chars are not mixed on cygwin.
4476 2002-08-06 Jerry James <james@xemacs.org>
4478 * window.c (Fsplit_window): Count only half of the divider width
4479 against the left window when splitting horizontally.
4481 2002-06-24 Andy Piper <andy@xemacs.org>
4483 * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
4484 toolbar was cleared.
4486 * toolbar-msw.c (mswindows_clear_frame_toolbars): new
4487 function. Split out from mswindows_output_frame_toolbars.
4488 (mswindows_output_frame_toolbars): move clear pieces to
4489 mswindows_output_frame_toolbars.
4491 * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
4492 out from gtk_output_frame_toolbars.
4493 (gtk_output_frame_toolbars): move clear pieces to
4494 gtk_clear_frame_toolbars.
4496 * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
4497 the frame is cleared. How this ever worked before is a mystery.
4498 (x_output_frame_toolbars): Only output toolbars.
4499 (x_clear_frame_toolbars): new. Clear previous toolbar locations.
4501 * gutter.c (update_gutter_geometry):
4502 Mark frame layout changed.
4503 (update_frame_gutter_geometry, update_frame_gutters):
4504 Respect frame_layout_changed.
4506 * console.h (struct console_methods): add
4507 clear_frame_toolbars_method.
4509 * redisplay.c (redisplay_frame): call
4510 update_frame_toolbars_geometry and re-order update_frame_toolbars.
4512 * toolbar.h: declare update_frame_toolbars_geometry.
4514 * toolbar.c (update_frame_toolbars_geometry): new function. Split
4515 out from update_frame_toolbars. Call clear_frame_toolbars.
4516 (update_frame_toolbars): only output, do not change geometry.
4518 * redisplay.c: add frame_layout_changed.
4520 * redisplay.h: add frame_layout_changed.
4521 (CLASS_RESET_CHANGED_FLAGS): set it.
4522 (GLOBAL_RESET_CHANGED_FLAGS): ditto.
4523 (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
4524 (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
4526 * device.h (struct device): add frame_layout_changed.
4527 (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
4529 * frame.h (struct frame): add frame_layout_changed.
4530 (MARK_FRAME_LAYOUT_CHANGED): new.
4532 2002-06-30 Mike Alexander <mta@arbortext.com>
4534 * event-msw.c (mswindows_need_event): Don't wait for a new message
4535 if the queue is not empty. Suggested by Paul Moore.
4537 2002-06-12 Andy Piper <andy@xemacs.org>
4539 * frame-msw.c (msprinter_init_frame_3): calculate the frame size
4540 for printing on accurately.
4542 2002-06-09 Rick Rankin <rick_rankin@yahoo.com>
4544 * event-msw.c (mswindows_wnd_proc): Add a handler for the
4545 WM_ACTIVATE message. Make sure that the frame is visible if the
4546 window is visible. This seemss to fix the problem where XEmacs
4547 appears to freeze after switching desktops with certain virtual
4549 (debug_output_mswin_message): Added code to output message
4550 parameters for WM_WINDOWPOSCHANGED,
4551 WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
4553 2002-05-25 Andy Piper <andy@xemacs.org>
4555 * select-x.c (vars_of_select_x): Fix docstring of
4556 x-selection-strict-motif-ownership
4558 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
4560 * keymap.c (get_keymap):
4561 Add comment about do_autoload GCPROs own args.
4563 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
4565 * bytecode.c (execute_optimized_program): check_opcode ifdef
4566 ERROR_CHECK_BYTE_CODE.
4568 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
4570 Thanks to Ben Wing and Michael Sperber.
4572 * eval.c (Fcommand_execute):
4575 (Fmacroexpand_internal):
4576 (function_argcount):
4577 callint.c (Fcall_interactively):
4578 Add comment about do_autoload GCPROs own args.
4580 * (do_autoload): GCPRO both args as well as local Lisp_Object.
4582 * eval.c (Ffuncall): Extra braces to placate GCC.
4584 2002-08-10 Stephen J. Turnbull <stephen@xemacs.org>
4586 * backtrace.h (grow_specpdl):
4588 * EmacsFrame.c (EmacsFrameSetValues):
4589 * eval.c (grow_specpdl):
4590 * ExternalShell.c (hack_event_masks_1):
4591 * glyphs-x.c (convert_EImage_to_XImage):
4592 (x_finalize_image_instance):
4593 * ralloc.c (page_size):
4595 * xgccache.c (gc_cache_hash):
4596 Fix unsigned comparison warnings.
4598 2002-07-29 Jerry James <james@xemacs.org>
4600 * lread.c (locate_file): Any nonnegative return value indicates
4601 success if MODE is nonnegative.
4603 2002-08-03 Brian A Palmer <bpalmer@rescomp.Stanford.EDU>
4605 * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
4608 2002-07-17 Stephen J. Turnbull <stephen@xemacs.org>
4610 * process-unix.c (unix_send_process): #ifdef the coding_stream member.
4612 * dumper.c (pdump_get_indirect_count):
4613 (pdump_scan_by_alignment):
4614 (pdump_dump_root_struct_ptrs):
4615 (pdump_dump_rtables):
4616 (pdump_dump_root_objects):
4618 * nas.c (WaveOpenDataForReading):
4619 * fns.c (print_bit_vector):
4620 * font-lock.c (SINGLE_SYNTAX_STYLE):
4621 * glyphs.c (check_for_ignored_expose):
4622 (find_matching_subwindow):
4624 * imgproc.c (get_histogram):
4625 * redisplay.c (point_in_line_start_cache):
4626 * redisplay-output.c (redisplay_unmap_subwindows):
4627 * symbols.c (defsymbol_massage_name_1):
4628 (defkeyword_massage_name):
4629 (deferror_massage_name_and_message):
4630 * redisplay-x.c (x_output_string):
4631 * emacs.c (run_temacs_argv_size, run_temacs_args_size):
4632 * frame.h (struct frame):
4633 * filelock.c (current_lock_owner):
4634 * doprnt.c (emacs_doprnt_1):
4635 * lisp.h (struct Lisp_Bit_Vector):
4639 2002-02-13 Ben Wing <ben@xemacs.org>
4641 * event-stream.c (reset_key_echo):
4642 * event-stream.c (reset_this_command_keys):
4643 * event-stream.c (execute_command_event):
4644 If console is dead as a result of C-x 5 0, then post-command stuff
4645 needs to be careful and do only non-console-specific stuff.
4647 2002-07-01 Mike Sperber <mike@xemacs.org>
4649 * process-unix.c (unix_send_process): Mark coding_outstream as
4650 non-open upon SIGPIPE.
4652 * event-stream.c (Fnext_event): Reorder switch cases to something
4655 2001-08-13 Dmitry Astapov <adept@umc.com.ua>
4657 * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
4658 Don't bogusly reinitialize ascii_character property.
4660 2002-07-08 Mike Sperber <mike@xemacs.org>
4662 * process.c (Fstart_process_internal): Do error checking before we
4663 fork off the child, so the child can't muck with the state of the
4666 2002-07-08 Mike Sperber <mike@xemacs.org>
4668 * ralloc.c (init_ralloc): Allocate properly for pdump.
4670 2002-06-12 Andy Piper <andy@xemacs.org>
4672 * glyphs.c (query_string_geometry): check the string.
4674 * glyphs-widget.c (widget_logical_unit_height): cope with nil
4677 2002-06-17 Jerry James <james@xemacs.org>
4679 * sysdll.c: Remove RTLD_GLOBAL initialization.
4680 * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
4682 2002-06-25 Stephen J. Turnbull <stephen@xemacs.org>
4684 * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
4686 2002-05-16 Mathias Grimmberger <mgri@zaphod.sax.de>
4688 * sysdep.c (sys_rename): Make sys_rename work for the case where
4689 Windows rename sets errno to EACCES if target file exists.
4691 2002-05-21 Jonathan Harris <jonathan@xemacs.org>
4693 * device-msw.c (mswindows_handle_page_setup_dialog_box):
4694 Fix detection of metric units to work on Win95
4696 2002-05-21 Stephen J. Turnbull <stephen@xemacs.org>
4698 * syswindows.h: #define LOCALE_RETURN_NUMBER. Why, I don't know.
4700 2002-04-25 Andy Piper <andy@xemacs.org>
4702 * redisplay.c (create_text_block): Remove extra comment trailer.
4704 2002-04-24 Andy Piper <andy@xemacs.org>
4706 * redisplay.c (create_text_block): Don't actually add propagation
4707 data if the line ends after we have added a glyph.
4709 2002-04-22 Andy Piper <andy@xemacs.org>
4711 * extents.c (extent_fragment_update): check for glyphs we have
4712 previously displayed.
4713 * extents.c (print_extent_1): warning removal.
4714 * extents.h: change prototype.
4715 * redisplay-output.c (redisplay_normalize_glyph_area): calculate
4716 widths correctly for wide glyphs.
4717 * redisplay.c (position_redisplay_data_type): add end_glyph_width.
4718 * redisplay.c (prop_type): add PROP_GLYPH.
4719 * redisplay.c (struct prop_block): add glyph type
4720 * redisplay.c (add_glyph_rune): when adding part of a glyph add it
4721 to the propagation data.
4722 * redisplay.c (create_text_block): if there is a glyph in the
4723 propagation data use it to salt extent_fragment_update.
4724 * redisplay.c (create_string_text_block): ditto.
4726 2002-04-13 Nix <nix@esperi.demon.co.uk>
4728 * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
4729 * redisplay-output.c (compare_runes): Compare them.
4730 * redisplay.c: Update copyright date.
4731 * redisplay.c (pos_data): Add need_baseline_computation field.
4732 * redisplay.c (add_glyph_rune): Update ascent, descent, and
4733 need_baseline_computation; zero yoffset. Set max_pixmap_height
4734 for all pixmaps, not just automatically positioned ones.
4735 * redisplay.c (calculate_yoffset): New, compute yoffset values.
4736 * redisplay.c (calculate_baseline): New, compute textual baseline.
4737 * redisplay.c (add_glyph_rune): Call them.
4738 * redisplay.c (create_text_block): Likewise.
4739 * redisplay.c (create_overlay_glyph_block): Likewise.
4740 * redisplay.c (add_margin_runes): Likewise.
4741 * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
4743 * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
4744 * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
4745 * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
4746 * redisplay-msw.c (mswindows_output_string): Likewise.
4747 * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
4748 * redisplay-gtk.c (gtk_output_display_block): Likewise.
4749 * redisplay-x.c (x_output_display_block): Likewise.
4751 2002-03-28 Ben Wing <ben@xemacs.org>
4753 * redisplay.c: Fixed bug in redisplay
4754 w.r.t. hscroll/truncation/continuation glyphs causing jumping up
4755 and down of the lines, since they're bigger than the line
4756 size. (It was seen most obviously when there's a horizontal scroll
4757 bar, e.g. do C-h a glyph or something like that.) The problem was
4758 that the glyph-contrib-p setting on glyphs was ignored even if it
4759 was set properly, which it wasn't until now.
4761 2002-04-24 Andy Piper <andy@xemacs.org>
4763 * lisp.h (Dynarr_end): Fix definition.
4765 2002-02-06 Adrian Aichner <adrian@xemacs.org>
4767 * redisplay.c (mark_redisplay): Remove call to
4768 update_frame_window_mirror.
4770 2001-11-15 Andy Piper <andy@xemacs.org>
4772 * win32.c (Fmswindows_shell_execute): fix handling of URL's under
4775 2002-02-13 Andy Piper <andy@xemacs.org>
4777 * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
4778 we did in fact enqueue the XM_MAPFRAME event.
4780 2002-01-15 Adrian Aichner <adrian@xemacs.org>
4782 * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
4783 to fix problem switching between virtual desktops under virtuawin
4784 virtual window manager.
4786 2001-07-30 Adrian Aichner <adrian@xemacs.org>
4788 * event-msw.c: Typo fix.
4789 * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
4790 magic XM_MAPFRAME event has been sent.
4792 2001-11-23 Andy Piper <andy@xemacs.org>
4794 * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
4796 2001-11-21 Andy Piper <andy@xemacs.org>
4798 * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
4799 mouse events outside the frame.
4801 2002-03-20 Andy Piper <andy@xemacs.org>
4803 * menubar-msw.c (mswindows_popup_menu): warning removal.
4804 * dialog-msw.c (dialog_popped_down): ditto.
4806 2001-12-11 Andy Piper <andy@xemacs.org>
4808 * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
4809 * dialog-msw.c (mswindows_make_dialog_box_internal): set
4811 * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
4812 * menubar-msw.c (mswindows_handle_wm_command): ditto.
4813 * menubar-msw.c (mswindows_popup_menu): ditto.
4815 2001-10-29 Andy Piper <andy@xemacs.org>
4817 * dialog-msw.c (handle_directory_dialog_box): quit if the user
4820 2002-01-03 Andy Piper <andy@xemacs.org>
4822 * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
4826 2002-03-29 Jonathan Harris <jonathan@xemacs.org>
4828 * device-msw.c (plist_get_margin): Add arg specifying mm or inches
4829 * device-msw.c (plist_set_margin): Fix multiplicand used for mm
4830 * device-msw.c (mswindows_handle_page_setup_dialog_box):
4831 Detect and handle case where machine is set up for metric units
4833 2002-04-02 Andy Piper <andy@xemacs.org>
4835 * dired-msw.c (mswindows_get_files):
4836 * nt.c (mswindows_stat): SetErrorMode() so that file errors are
4837 completely handled by XEmacs. Suggested by Thomas Vogler
4838 <mail@thomas-vogler.de>.
4840 2001-11-14 Andy Piper <andy@xemacs.org>
4842 * nt.c (REG_ROOT): change registry key to XEmacs.
4844 2002-04-27 Andy Piper <andy@xemacs.org>
4846 * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
4848 2002-04-26 Andy Piper <andy@xemacs.org>
4850 * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
4853 2002-03-14 Mike Alexander <mta@arbortext.com>
4855 * event-msw.c (mswindows_unwait_process): New, remove process from
4857 * process-nt.c (nt_finalize_process_data): Call
4858 mswindows_unwait_process
4859 * console-msw.h: Declare mswindows_unwait_process
4861 2002-05-14 Stephen J. Turnbull <stephen@xemacs.org>
4863 * editfns.c (Fdecode_time):
4864 (Fformat_time_string):
4865 Check for invalid time. Thanks to Nick Pakoulin <npak@ispras.ru>.
4866 (make_time): Warning elimination (change arg name).
4868 2001-11-24 Andy Piper <andy@xemacs.org>
4870 * window.c (Fsplit_window): Doc return type.
4872 2002-04-01 Andy Piper <andy@xemacs.org>
4874 * emacs.c (Fkill_emacs): Only output message box in interactive
4877 2002-04-26 Andy Piper <andy@xemacs.org>
4879 * config.h.in: pull in 21.5.x change to stop alloca warnings under
4882 2002-03-18 Gregory Steuck <greg-xemacs-patch@nest.cx>
4884 * unexelf.c: Use ELFSIZE or define from _LP64 to indicate a 64
4887 2002-05-09 Stephen J. Turnbull <stephen@xemacs.org>
4889 * XEmacs 21.4.8 "Honest Recruiter" is released.
4891 2002-05-07 Nix <nix@esperi.demon.co.uk>
4893 Supersedes 2002-04-17 patch.
4895 * process.h (PROCESS_LIVE_P): Use the process status as
4896 evidence of health, not the state of the input stream.
4897 (PROCESS_READABLE_P): Say if the process is readable
4898 from. (It may be dead nonetheless.)
4899 (CHECK_READABLE_PROCESS): Test for that condition.
4901 * process.c (create_process): Use PROCESS_READABLE_P.
4902 (read_process_output, set_process_filter): Likewise.
4904 * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
4905 (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
4907 This code is #if 0'd, this is not the time to add new functions:
4909 * process.c (Fprocess_readable_p): Report readability status.
4910 * process.c (Qprocess_readable_p): New, associated symbol...
4911 * process.c (syms_of_process): ... initialize it.
4913 2002-05-04 Stephen J. Turnbull <stephen@xemacs.org>
4915 * XEmacs 21.4.7 "Economic Science" is released.
4917 2002-04-17 Nix <nix@esperi.demon.co.uk>
4919 * process.h (PROCESS_LIVE_P): Use the process status as
4920 evidence of health, not the state of the input stream.
4922 2002-04-30 Charles G. Waldman <cgw@xemacs.org>
4924 * sysdep.c (sys_siglist): change "signum" to "signal"
4926 2001-04-21 Martin Buchholz <martin@xemacs.org>
4928 * s/darwin.h: New file.
4929 Thanks to Greg Parker <gparker@cs.stanford.edu>.
4931 2002-04-23 Andreas Jaeger <aj@suse.de>
4933 * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
4934 which use lib64 for 64-bit libs.
4935 (START_FILES): Likewise.
4937 2002-02-11 Mike Sperber <mike@xemacs.org>
4940 (x_IO_error_handler):
4941 (x_init_device): Temporarily keep device in static variable
4942 `device_being_initialized' so we can recover gracefully from
4943 internal XOpenDevice failure. (XOpenDevice is documented to
4944 return NULL on failure, but sometimes calls the IO error handler
4947 2002-01-31 John H. Palmieri <palmieri@math.washington.edu>
4949 * dired.c (Ffile_name_all_completions): Change documentation --
4950 remove reference to completion-ignored-extensions.
4951 * dired.c (vars_of_dired): Change documentation for
4952 completion-ignored-extensions -- remove reference to
4953 file-name-all-completions.
4955 2002-03-06 Jerry James <james@xemacs.org>
4957 * emodules.c (emodules_load): Fix multiple loading of same module.
4959 2002-01-25 Andrew Begel <abegel@cs.berkeley.edu>
4960 * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
4961 RTLD_LAZY to avoid incorrect symbol binding when using nested
4962 shared libraries on Solaris.
4964 2002-02-12 Stephen J. Turnbull <stephen@xemacs.org>
4966 * fileio.c (Ffind_file_name_handler): Improve docstring.
4968 2002-01-20 Stephen J. Turnbull <stephen@xemacs.org>
4970 * fns.c (Fmapconcat): Improve docstring.
4972 2002-01-03 Eric Gillespie, Jr. <epg@pretzelnet.org>
4974 * device-gtk.c: Add prototype for
4975 emacs_gtk_selection_clear_event_handle.
4976 (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
4977 selection. Setup signal handler for "selection_clear_event"
4978 (emacs_gtk_selection_clear_event_handle).
4980 * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
4981 other applications owning the clipboard (based on
4982 x_handle_selection_clear).
4984 2001-12-23 William M. Perry <wmperry@gnu.org>
4986 * menubar-gtk.c (gtk_popup_menu) Add sanity checks, fix crash.
4988 2002-01-04 Martin Buchholz <martin@xemacs.org>
4990 * keymap.c (define_key_alternate_name): Parenthesize EQ.
4992 2001-12-17 Stephen J. Turnbull <stephen@xemacs.org>
4994 * XEmacs 21.4.6 "Common Lisp" is released.
4996 2001-12-16 Torsten Duwe <duwe@caldera.de>
4998 * search.c (Freplace_match): Add missing sub-expression functionality.
5000 * buffer.c (decode_buffer): Add a check for pointer type to
5001 decode_buffer, before gcc's CSE optimization reorders a
5002 dereference in front of the allow_string test.
5004 2001-11-16 Darryl Okahata <darrylo@xemacs.org>
5006 * window.c (window_loop): Fix bug that sometimes prevented
5007 window_loop() from iterating across multiple devices. Also, at
5008 Ben's request, changed infloop-detecting code to abort() instead
5009 of silently terminating window_loop().
5011 2001-11-21 Stephen J. Turnbull <stephen@xemacs.org>
5013 Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5014 * editfns.c (make_time): New function.
5015 (Fencode_time): Use it instead of wasteful_word_to_lisp.
5016 * lisp.h (make_time): Prototype and comment it.
5017 * dired.c (wasteful_word_to_lisp): Deprecate.
5018 (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5020 2001-10-31 Kyle Jones <kyle_jones@wonderworks.com>
5022 * fileio.c (auto_save_1): Use current coding system, not
5025 2001-11-13 Ben Wing <ben@xemacs.org>
5028 * window.c (window_truncation_on):
5029 * window.c (syms_of_window):
5030 truncate-partial-width-windows should respect the buffer being
5031 displayed, like other redisplay vars.
5033 2001-11-13 Hirokazu FUKUI <hfukui@sannet.ne.jp>
5035 * event-stream.c (Fread_key_sequence): save current buffer.
5037 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
5039 * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5041 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
5043 * alloc.c (lcrecord_stats): Add space for types defined in modules.
5045 2001-10-26 Mike Alexander <mta@arbortext.com>
5047 * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5049 2001-10-25 Andy Piper <andy@xemacs.org>
5052 * dialog-msw.c (handle_directory_proc): new function.
5053 (handle_directory_dialog_box): new fucntion.
5054 (handle_file_dialog_box): use new directory dialog support.
5055 (mswindows_make_dialog_box_internal): ditto.
5056 * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5058 (mswindows_find_frame): make global.
5059 * fileio.c (Fexpand_file_name): build fix.
5060 * general-slots.h: add Qdirectory.
5061 * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5063 * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5064 cygwin not leaving win32 paths unchanged.
5065 * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5066 cygwin runtime to do path conversion.
5067 (Fmswindows_shell_execute): fix cygwin handling of URLs.
5068 (syms_of_win32): add new function.
5069 * window.c (window_loop): build fix.
5071 2001-10-15 Andy Piper <andy@xemacs.org>
5073 (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5075 2001-10-23 Stephen J. Turnbull <stephen@xemacs.org>
5077 * XEmacs 21.4.5 "Civil Service" is released.
5079 2001-04-08 Danny Colascione <qtmstr@optonline.net>
5081 * glyphs-x.c: Force buffer-tab highlight update when moving the
5082 buffer, avoiding an ugly black border, used for keyboard focus
5083 indication, on a widget that can never have keyboard focus, the
5086 2001-08-30 Daiki Ueno <ueno@unixuser.org>
5088 * process-unix.c (unix_open_multicast_group): Remove too much
5089 conversion between host and network byte order.
5091 2001-09-10 Nix <nix@esperi.demon.co.uk>
5093 * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5094 before replacing them.
5096 * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5099 * src/window.c (undedicate_windows): Use it.
5100 * src/window.h: Add prototype.
5102 2001-09-17 Ben Wing <ben@xemacs.org>
5104 * fileio.c (normalize_filename):
5105 * fileio.c (Fexpand_file_name):
5106 Fix various C++ compile errors in Andy's recent code.
5108 * callint.c (Fcall_interactively):
5109 * editfns.c (Ftemp_directory):
5110 * editfns.c (Fuser_full_name):
5111 * emacs.c (argmatch):
5112 * lread.c (locate_file_map_suffixes):
5113 * redisplay-x.c (x_ring_bell):
5114 Fix sign-compare warnings.
5116 2001-09-08 Andy Piper <andy@xemacs.org>
5118 * fileio.c (normalize_filename): copied from nt.c
5119 * (Ffile_name_directory): enable win32 paths under cygwin.
5120 * (Ffile_name_nondirectory): ditto.
5121 * (directory_file_name): ditto.
5122 * (Fexpand_file_name): ditto.
5123 * (Ffile_truename): ditto.
5124 * (Fsubstitute_in_file_name): ditto.
5125 * (Ffile_name_absolute_p): ditto.
5126 * (Ffile_readable_p): ditto.
5128 2001-09-08 Andy Piper <andy@xemacs.org>
5130 * device-msw.c (mswindows_finish_init_device): remove dde
5132 * device-msw.c (mswindows_init_dde): factor out from
5133 mswindows_finish_init_device()
5134 * device-msw.c (init_mswindows_very_early): new function
5135 initialize but don't enable dde.
5136 * emacs.c (main_1): call init_mswindows_very_early.
5138 * event-msw.c (mswindows_dde_callback): only execute when we are
5140 * symsinit.h: declare init_mswindows_very_early.
5142 2001-05-02 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5144 [sjt: This has been in 21.5 for months with no complaints.]
5146 * console.h (struct console_methods): Added flags member.
5147 (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5148 (CONMETH_IMPL_FLAG):
5149 (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5150 Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5152 * device.c (window_system_pixelated_geometry): Use the above macros.
5154 * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5155 implememntation flag.
5156 * device.h (DEVICE_DISPLAY_P): Use it.
5158 * frame.c (delete_frame_internal): Use the above macro.
5160 * redisplay.c (redisplay_device): Use it.
5161 (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5162 (redisplay_frame): Ditto.
5164 * device-msw.c (mswindows_device_implementation_flags): Removed.
5165 (msprinter_device_implementation_flags): Removed.
5166 (console_type_create_device_mswindows): Removed references to
5167 implementation_flags methods, set implementation flags here.
5168 (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5170 * device-gtk.c (gtk_device_implementation_flags): Removed method.
5171 (console_type_create_device_gtk): Removed method declaration.
5172 Added commented out statement which semantically matches the
5173 commented out statement in the above removed method.
5175 2001-04-14 Gordon Sadler <gbsadler1@lcisp.com>
5177 The attached patch fixes a few warnings.
5179 * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5180 * src/frame-gtk.c: guard against GNOME calls in GTK only
5181 * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5182 * src/select-gtk.c: prototype lisp_to_time
5184 2001-06-08 Ben Wing <ben@xemacs.org>
5186 ------ gc-in-window-procedure fixes ------
5189 * alloc.c (struct post_gc_action):
5190 * alloc.c (register_post_gc_action):
5191 * alloc.c (run_post_gc_actions):
5192 * alloc.c (garbage_collect_1):
5193 Create "post-gc actions", to avoid those dreaded "GC during window
5194 procedure" problems.
5197 Abort, clean and simple, when GC in window procedure. We want
5198 to flush these puppies out.
5201 * glyphs-msw.c (finalize_destroy_window):
5202 * glyphs-msw.c (mswindows_finalize_image_instance):
5203 Use a post-gc action when destroying subwindows.
5206 Declare register_post_gc_action().
5209 * scrollbar-msw.c (unshow_that_mofo):
5210 Use a post-gc action when unshowing scrollbar windows, if in gc.
5212 * redisplay.c (mark_redisplay):
5213 Add comment about the utter evilness of what's going down here.
5215 ------ cygwin setitimer fixes ------
5217 * Makefile.in.in (sheap_objs):
5218 * Makefile.in.in (profile_objs):
5219 * Makefile.in.in (objs):
5220 Compile profile.c only when HAVE_SETITIMER.
5222 * nt.c (mswindows_sigset):
5223 * nt.c (mswindows_sighold):
5224 * nt.c (mswindows_sigrelse):
5225 * nt.c (mswindows_sigpause):
5226 * nt.c (mswindows_raise):
5227 * nt.c (close_file_data):
5231 Move setitimer() emulation to win32.c, because Cygwin needs it too.
5234 * profile.c (Fstart_profiling):
5235 * profile.c (Fstop_profiling):
5236 Make sure we don't compile if no setitimer(). Use qxe_setitimer()
5237 instead of just plain setitimer().
5240 * signal.c (set_one_shot_timer):
5242 Define qxe_setitimer() as an encapsulation around setitimer() --
5243 call setitimer() directly unless Cygwin or MS Win, in which case
5244 we use our simulated version in win32.c.
5247 * systime.h (struct itimerval):
5248 * systime.h (ITIMER_REAL):
5249 Prototype mswindows_setitimer() and qxe_setitimer(). Long
5250 comment about "qxe" and the policy regarding encapsulation.
5253 * win32.c (setitimer_helper_proc):
5254 * win32.c (setitimer_helper_period):
5255 * win32.c (setitimer_helper):
5256 * win32.c (mswindows_setitimer):
5257 Move setitimer() emulation here, so Cygwin can use it.
5258 Rename a couple of functions and variables to be longer and more
5259 descriptive. In setitimer_helper_proc(), send the signal
5260 using either mswindows_raise() or (on Cygwin) kill(). If for
5261 some reason we are still getting lockups, we'll change the kill()
5262 to directly invoke the signal handlers.
5264 ------ windows shell fixes ------
5268 Comments about how these two files must die.
5270 * callproc.c (init_callproc):
5271 On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5272 not just COMSPEC. (more correct and closer to FSF.) Don't
5273 force a value for SHELL into the environment. (Comments added
5274 to explain why not.)
5276 * nt.c (init_user_info):
5277 Don't shove a fabricated SHELL into the environment. See above.
5279 2001-06-01 Ben Wing <ben@xemacs.org>
5281 * Makefile.in.in (ldflags):
5282 eliminate that pesky "defaulting to 00401000" warning.
5286 2001-06-15 Golubev I. N. <gin@mo.msk.ru>
5288 * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5289 * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5291 2001-04-24 Jerry James <james@xemacs.org>
5293 * faces.h: pass parameters to Fadd_spec_to_specifier in the
5296 2001-06-01 Ben Wing <ben@xemacs.org>
5298 * event-msw.c (debug_mswin_messages):
5299 conditionalize the messages that were causing compile errors.
5300 (if only macros could generate #ifdef statements ...)
5302 2001-07-28 Stephen J. Turnbull <stephen@xemacs.org>
5304 * XEmacs 21.4.4 "Artificial Intelligence" is released.
5306 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
5308 * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5310 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
5312 * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5313 * process-unix.c (unix_canonicalize_host_name):
5314 sysdep.c (init_system_name):
5315 Use it to conditionally support IPv6 canonicalization.
5317 2001-05-31 Paul Stodghill <stodghil@cs.cornell.edu>
5320 Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5322 2001-05-19 Paul Krause <paulkrause1@mediaone.net>
5324 * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5325 attempt is made to scroll when no scroll bar is available.
5327 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
5329 * input-method-motif.c (XIM_delete_frame): New callback.
5330 (XIM_init_frame): Register it. (Reapplied by SJT, it somehow
5331 got deleted from 21.4.3.)
5333 2001-06-01 Ben Wing <ben@xemacs.org>
5335 * nt.c (mswindows_utime):
5336 * nt.c (close_file_data):
5337 fix off-by-one-indirection error.
5339 2001-05-29 Adrian Aichner <adrian@xemacs.org>
5341 * fileio.c: Include nt.h. Remove lisp_string_set_file_times()
5342 because set_file_times() now takes Lisp_Object path, instead of
5344 * nt.c: Include buffer.h.
5345 * nt.c (convert_from_time_t): New.
5346 * nt.c (mswindows_utime): New. Use utime, since SetFileTime does
5347 not set mtime correctly.
5348 * nt.h: Declare mswindows_utime().
5349 * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5350 path, instead of char*.
5351 * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5353 2001-05-30 Ben Wing <ben@xemacs.org>
5357 (Stephen, just take all event-msw.c patches. This includes
5358 the "iconify" fix below.)
5361 * event-msw.c (mswindows_dequeue_dispatch_event):
5362 * event-msw.c (assert):
5363 * event-msw.c (emacs_mswindows_quit_p):
5364 * event-msw.c (debug_mswin_messages):
5365 * event-msw.c (debug_output_mswin_message):
5366 * event-msw.c (vars_of_event_mswindows):
5367 Fix yet more problems with C-g handling.
5368 Implement debug-mswindows-events.
5370 2001-05-24 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5372 * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5374 2001-05-23 Ben Wing <ben@xemacs.org>
5376 * event-msw.c (winsock_writer):
5377 * event-msw.c (winsock_closer):
5378 prior kludgy code was clobbering the buffer, thinking it was
5379 "unused" space to store an unneeded return value; instead, use
5380 the variable we've already got staring us in the face.
5382 2001-05-17 Andy Piper <andy@xemacs.org>
5384 * sysfile.h: don't assume that file attributes are boolean
5386 2001-05-23 Ben Wing <ben@xemacs.org>
5388 * device-msw.c (msprinter_init_device):
5389 signal an error rather than crash with an unavailable network
5390 printer (from Mike Alexander).
5393 * event-msw.c (struct winsock_stream):
5394 * event-msw.c (winsock_writer):
5395 * event-msw.c (winsock_closer):
5396 * event-msw.c (make_winsock_stream_1):
5397 cleanup headers. fix (hopefully) an error with data corruption
5398 when sending to a network connection.
5400 * fileio.c (Fexpand_file_name): Fix evil code that attempts
5401 to handle the ~user prefix by (a) always assuming we're referencing
5402 ourselves and not even verifying the user -- hence any file with
5403 a tilde as its first char is invalid! (b) if there wasn't a slash
5404 following the filename, the pointer was set *past* the end of
5405 file and we started reading from uninitialized memory. Now we
5406 simply treat these as files, always.
5408 * buffer.c (common_init_complex_vars_of_buffer): comment change.
5410 2001-05-19 Ben Wing <ben@xemacs.org>
5412 * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5415 * process-nt.c (vars_of_process_nt):
5416 remove unused mswindows-quote-process-args. rec for 21.4.
5418 2001-05-12 Ben Wing <ben@xemacs.org>
5420 * event-msw.c (mswindows_dde_callback):
5421 * event-msw.c (mswindows_wnd_proc):
5422 eliminate cygwin warnings.
5424 2001-05-06 Ben Wing <ben@xemacs.org>
5428 * device-msw.c (print_dialog_worker):
5429 * device-msw.c (mswindows_handle_print_dialog_box):
5430 * device-msw.c (syms_of_device_mswindows):
5431 * dialog-msw.c (mswindows_make_dialog_box_internal):
5433 implement printing the selection when it's selected.
5435 2001-05-20 Drazen Kacar <dave@arsdigita.com>
5437 * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
5439 2001-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
5441 * lisp.h (EMACS_INT_MAX): This should be one bit less since
5442 EMACS_INT is signed.
5444 2001-04-15 Michael Lausch <mla@1012surf.net>
5446 * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
5447 gtk_widget_request_size() to give scrollbar >0 width for
5450 2001-05-30 William M. Perry <wmperry@gnu.org>
5452 * event-gtk.c: Check for buttons as modifier keys.
5454 2001-05-25 Craig Lanning <CraigL@Knology.net>
5457 Properly find MinGW's <process.h> inside Cygwin's restructured
5458 include directories. Don't try to include <cygwin/version.h>
5459 since we are dropping support for MinGW in versions of Cygwin
5462 Drop support for MinGW in versions of Cygwin before b21.
5464 Properly find MinGW's <process.h> inside Cygwin's restructured
5465 include directories.
5467 Drop support for MinGW in versions of Cygwin before b21.
5469 Even though a.out.h is no longer detected by configure, allow
5470 MinGW to use it until we figure out how to do the job with Win32.
5472 2001-07-11 Matt Tucker <tuck@whistlingfish.net>
5474 * syntax.c (find_start_of_comment):
5475 Fix `unbalanced parentheses' bug when dealing with mixed comment
5476 styles in c++/java/etc. mode
5478 2001-05-29 Mike Alexander <mta@arbortext.com>
5480 * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
5481 FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
5483 2001-05-17 Andrew Begel <abegel@eecs.berkeley.edu>
5485 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
5487 2001-03-31 Mike Sperber <mike@xemacs.org>
5489 * search.c (Freplace_match): Support FSF-style specification of
5490 match subexpression when applied to a buffer.
5492 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
5494 * event-stream.c (is_scrollbar_event): add missing semicolon
5496 2001-05-22 Isaac Hollander <ysh@mindspring.com>
5498 * Makefile.in.in: Use TAR macro instead of hardcoding
5499 tar. Allows use of GNU tar instead of system tar
5501 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
5503 * event-stream.c (is_scrollbar_event): add missing semicolon
5505 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
5507 * XEmacs 21.4.3 "Academic Rigor" is released.
5509 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
5511 * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
5513 2001-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
5515 * buffer.c (Vcase_fold_search): Remove obsolete
5516 comment about non ASCII case-fold-search. This
5517 bug has been fixed by case-table changes.
5519 2001-05-11 Stephen J. Turnbull <stephen@xemacs.org>
5521 * event-msw.c: Restore include of events-mod.h.
5523 2001-04-22 zhaoway <zw@debian.org>
5525 * event-stream.c (is_scrollbar_event): Noop returning 0 if
5528 2001-05-10 Stephen J. Turnbull <stephen@xemacs.org>
5530 * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
5532 2001-05-08 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
5534 * mule-charset.c (Fmake_charset): Add missing else.
5536 2001-04-23 Ben Wing <ben@xemacs.org>
5538 * event-msw.c (FAKE_MOD_QUIT):
5539 * event-msw.c (mswindows_dequeue_dispatch_event):
5540 * event-msw.c (mswindows_wnd_proc):
5541 * event-msw.c (emacs_mswindows_quit_p):
5542 Get critical quit working.
5544 2001-05-05 Ben Wing <ben@xemacs.org>
5548 * device-msw.c (mswindows_get_default_margin):
5549 * frame-msw.c (mswindows_size_frame_internal):
5550 * frame-msw.c (msprinter_init_frame_1):
5551 * frame-msw.c (vars_of_frame_mswindows):
5552 Change top/bottom margin defaults to 0.5 inches.
5554 2001-05-01 Martin Buchholz <martin@xemacs.org>
5556 Fix link error with gcc 3.0 on Linux.
5557 * terminfo.c (UP): Remove.
5558 * terminfo.c (BC): Remove.
5559 * terminfo.c (PC): Remove.
5560 They weren't used, and in any case, these symbols should be
5561 defined in the *library*.
5563 2001-05-03 Martin Buchholz <martin@xemacs.org>
5565 * s/aix4.h: Fix crash with xlc -O3.
5566 Improve comment explaining how -O3 works.
5568 2001-04-15 Ben Wing <ben@xemacs.org>
5571 * event-stream.c (Fnext_event):
5572 * event-stream.c (is_scrollbar_event):
5573 * event-stream.c (execute_command_event):
5574 Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
5575 crash' problem. His fix introduces other problems. We filter
5576 out scrollbar events specifically, making them somewhat invisible
5577 to command-building, and not appearing in `this-command-keys'.
5578 More work is still needed (see comments in event-stream.c), but
5579 this fixes all the major problems.
5581 2001-04-20 Ben Wing <ben@xemacs.org>
5583 * .cvsignore: Added stuff for Windows.
5585 2001-04-28 Ben Wing <ben@xemacs.org>
5587 * buffer.c (Ferase_buffer):
5588 * editfns.c (buffer_insert1):
5589 * editfns.c (Finsert_before_markers):
5590 * editfns.c (Finsert_string):
5591 * editfns.c (Finsert_char):
5592 * editfns.c (Fdelete_region):
5593 * editfns.c (Fwiden):
5594 * editfns.c (Fnarrow_to_region):
5595 remove bogus lines setting zmacs_region_stays to 0.
5597 2001-04-15 Gunnar Evermann <ge204@eng.cam.ac.uk>
5599 * process-unix.c (unix_open_network_stream): If connect() fails
5600 invalidate file descriptor after closing it.
5602 2001-03-08 Mike Alexander <mta@arbortext.com>
5604 * event-msw.c (mswindows_need_event_in_modal_loop):
5605 Don't dispatch a message if we didn't get one.
5606 (mswindows_need_event):
5607 Terminate the correct process when one exits instead of the first
5608 one on Vprocess_list and look for process termination when in
5609 mswindows_protect_modal_loop.
5611 2001-04-19 Stephen J. Turnbull <stephen@xemacs.org>
5613 * XEmacs 21.4.1 "Copyleft" is released.
5615 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
5617 * input-method-motif.c (XIM_delete_frame): New callback.
5618 (XIM_init_frame): Register it.
5620 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
5622 * XEmacs 21.4.0 "Solid Vapor" is released.
5624 2001-04-15 Ben Wing <ben@xemacs.org>
5626 * cmdloop.c (call_command_loop):
5627 Fix braino in bit-rotting code.
5629 2001-04-07 Hrvoje Niksic <hniksic@arsdigita.com>
5631 * extents.c (Fset_extent_endpoints): Force creation of extent info
5632 in buffer_or_string.
5634 * extents.c (process_extents_for_insertion_mapper): Correctly
5635 check for open-open zero-length extents.
5637 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
5639 * lisp.h: New typedefs Memory_count, Element_count.
5642 Sign-compare warning elimination: several unsigned -> signed.
5643 Based on work by Ben Wing <ben@xemacs.org>.
5645 2001-04-14 Stephen J. Turnbull <stephen@xemacs.org>
5647 * XEmacs 21.2.47 "Zephir" is released.
5649 2001-04-02 Jan Vroonhof <jan@xemacs.org>
5651 * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
5653 2001-04-03 Mike Sperber <mike@xemacs.org>
5655 * search.c: Revert previous patch due because of release.
5657 2001-03-30 Ben Wing <ben@xemacs.org>
5660 Add missing killpg prototype.
5663 Add a comment about fixing problems when a new entry is added
5666 * frame-msw.c (mswindows_init_frame_1):
5667 Fix compile warnings.
5669 * menubar.c (vars_of_menubar):
5670 Provide `menu-accelerator-support' to indicate that we properly
5671 support %_ in menu specifications, so that package code can
5672 conditionalize on this (and remove %_ from menu specifications
5677 * scrollbar-msw.c (can_scroll):
5679 Fix handling of mouse wheel under Windows to follow standards --
5680 now scrolls window under pointer, not selected window.
5682 2001-03-31 Mike Sperber <mike@xemacs.org>
5684 * search.c (Freplace_match): Support FSF-style specification of
5685 match subexpression when applied to a buffer.
5687 2001-03-15 Martin Buchholz <martin@xemacs.org>
5689 * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
5690 function to modify KEYMAP, so map over a copy of the hash table.
5692 2001-03-21 Martin Buchholz <martin@xemacs.org>
5694 * XEmacs 21.2.46 "Urania" is released.
5696 2001-03-20 Dan Holmsand <dan@eyebee.com>
5698 * realpath.c (xrealpath): Make file-truename work with symlinks to
5699 /cygdrive paths on cygwin. Always lowercase drive-letters on
5701 (cygwin_readlink): Don't try to find canonical filename unless
5704 2001-03-15 Stephen J. Turnbull <stephen@xemacs.org>
5706 * ChangeLog: Log GTK merge.
5712 Revert gratuitous whitespace changes from GTK merge.
5714 * emacs.c: Document end of complex #ifdef @ l. 1495.
5717 2001-03-12 Andy Piper <andy@xemacs.org>
5719 * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
5720 have to do likewise.
5722 2001-03-12 Andy Piper <andy@xemacs.org>
5724 * sysdep.c: we only support mingw now.
5726 2001-03-09 Andy Piper <andy@xemacs.org>
5728 * unexcw.c (copy_executable_and_dump_data_section): making approx
5729 overrun a warning only.
5731 2001-03-10 William M. Perry <wmperry@aventail.com>
5733 * faces.c (complex_vars_of_faces): Rewrote the font mucking to
5734 satisfy Stephen's identical-after-cpp plea.
5736 2001-03-02 Ben Wing <ben@xemacs.org>
5739 * cmds.c (Fforward_char):
5743 Augment documentation of the most common motion commands to make
5744 note of the shifted-motion support.
5746 2001-03-02 Ben Wing <ben@xemacs.org>
5748 * nt.c (mswindows_fstat):
5749 * nt.c (mswindows_stat):
5750 * search.c (boyer_moore):
5751 Fix compile warnings under Windows.
5753 * sysdep.c (sys_readdir):
5754 Fix buggy filename-conversion code under Mule.
5756 2001-03-09 William M. Perry <wmperry@aventail.com>
5778 * redisplay-output.c:
5784 The Great GTK Merge.
5791 * emacs-widget-accessors.c:
5805 * native-gtk-toolbar.c:
5816 The Great GTK Merge: new files.
5818 2001-02-26 Ben Wing <ben@xemacs.org>
5820 Reapplied Lstream change.
5822 2001-02-26 Ben Wing <ben@xemacs.org>
5824 Undid the last change, since it is more controversial than I
5825 thought. It should be back in at some point soon.
5827 2001-02-25 Ben Wing <ben@xemacs.org>
5830 * callproc.c (Fold_call_process_internal):
5831 * event-msw.c (ntpipe_slurp_reader):
5832 * event-msw.c (ntpipe_shove_writer):
5833 * event-msw.c (winsock_reader):
5834 * event-msw.c (winsock_writer):
5836 * file-coding.c (detect_eol_type):
5837 * file-coding.c (detect_coding_type):
5838 * file-coding.c (determine_real_coding_system):
5839 * file-coding.c (Fdetect_coding_region):
5840 * file-coding.c (decoding_reader):
5841 * file-coding.c (decoding_writer):
5842 * file-coding.c (mule_decode):
5843 * file-coding.c (Fdecode_coding_region):
5844 * file-coding.c (encoding_reader):
5845 * file-coding.c (encoding_writer):
5846 * file-coding.c (mule_encode):
5847 * file-coding.c (Fencode_coding_region):
5848 * file-coding.c (detect_coding_sjis):
5849 * file-coding.c (decode_coding_sjis):
5850 * file-coding.c (encode_coding_sjis):
5851 * file-coding.c (detect_coding_big5):
5852 * file-coding.c (decode_coding_big5):
5853 * file-coding.c (encode_coding_big5):
5854 * file-coding.c (detect_coding_ucs4):
5855 * file-coding.c (decode_coding_ucs4):
5856 * file-coding.c (encode_coding_ucs4):
5857 * file-coding.c (detect_coding_utf8):
5858 * file-coding.c (decode_coding_utf8):
5859 * file-coding.c (encode_coding_utf8):
5860 * file-coding.c (detect_coding_iso2022):
5861 * file-coding.c (decode_coding_iso2022):
5862 * file-coding.c (encode_coding_iso2022):
5863 * file-coding.c (decode_coding_no_conversion):
5864 * file-coding.c (encode_coding_no_conversion):
5865 * glyphs-x.c (write_lisp_string_to_temp_file):
5866 * gpmevent.c (tty_get_foreign_selection):
5869 * lstream.c (Lstream_flush_out):
5870 * lstream.c (Lstream_adding):
5871 * lstream.c (Lstream_write_1):
5872 * lstream.c (Lstream_write):
5873 * lstream.c (Lstream_raw_read):
5874 * lstream.c (Lstream_read_more):
5875 * lstream.c (Lstream_read):
5876 * lstream.c (Lstream_unread):
5877 * lstream.c (Lstream_fputc):
5878 * lstream.c (stdio_reader):
5879 * lstream.c (stdio_writer):
5880 * lstream.c (filedesc_reader):
5881 * lstream.c (filedesc_writer):
5882 * lstream.c (lisp_string_reader):
5883 * lstream.c (struct fixed_buffer_stream):
5884 * lstream.c (make_fixed_buffer_input_stream):
5885 * lstream.c (make_fixed_buffer_output_stream):
5886 * lstream.c (fixed_buffer_reader):
5887 * lstream.c (fixed_buffer_writer):
5888 * lstream.c (struct resizing_buffer_stream):
5889 * lstream.c (resizing_buffer_writer):
5890 * lstream.c (dynarr_writer):
5891 * lstream.c (lisp_buffer_reader):
5892 * lstream.c (lisp_buffer_writer):
5894 * lstream.h (lstream_implementation):
5895 * lstream.h (struct lstream):
5897 * process-nt.c (nt_send_process):
5898 * process-unix.c (unix_send_process):
5900 Correct Lstream lossage due to mixing of signed and unsigned
5901 quantities. All Lstream uses of size_t and ssize_t are now a
5902 single signed data type Lstream_data_count. This fixes problems
5903 under Windows with sending large quantities of data to a process,
5904 and may well fix other subtle bugs.
5906 2001-02-23 Martin Buchholz <martin@xemacs.org>
5908 * XEmacs 21.2.45 "Thelxepeia" is released.
5910 2001-02-21 Martin Buchholz <martin@xemacs.org>
5912 * lisp-union.h (XSETINT):
5915 Reverse previous change of 2001-02-06.
5917 2001-02-20 Matt Tucker <tuck@whistlingfish.net>
5919 Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
5921 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
5922 * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
5923 Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
5924 * regex.c (POS_AS_IN_BUFFER): removed
5925 * regex.c (re_search_2):
5926 * regex.c (re_match_2):
5927 Don't use an offset of 1 when calculating buffer positions, since
5928 `BI_BUF_BEGV' does it already.
5930 2001-02-18 Wim Dumon <wim@easics.be>
5932 * insdel.c (prepare_to_modify_buffer): Also check for
5933 supersession when clash-detection is enabled.
5935 2001-02-17 Matt Tucker <tuck@whistlingfish.net>
5937 * regex.c (re_match_2_internal):
5938 Convert temp characters from 'const unsigned char' to 're_char'.
5939 Fix crashing bug with extended characters under mule.
5940 * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
5941 syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
5942 font-lock, pdump, and new syntax-table code.
5943 * syntax.c (find_start_of_comment):
5944 (find_end_of_comment):
5946 Fix crashing bugs involving moving beyond end of buffer.
5947 * syntax.c (find_start_of_comment):
5948 Fixed logic to allow proper detection of cases where the same
5949 character is used to end both a two-char comment start and a
5950 two-char comment end sequence. Fixes `(forward-comment -1)'.
5951 * syntax.c (find_start_of_comment):
5952 Return position just past last comment-end character for all cases
5953 (previously was only done for two-char comment-end sequences).
5954 * syntax.c (forward-comment):
5955 Take value returned from `find_end_of_comment', rather than
5957 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
5958 Properly deal with BUFFERP (syntax_cache.object)
5960 2001-02-17 Martin Buchholz <martin@xemacs.org>
5962 * alloc.c (Fgarbage_collect):
5963 * alloc.c (make_bit_vector_from_byte_vector):
5964 -Wsign-compare-correctness.
5966 2001-02-16 Martin Buchholz <martin@xemacs.org>
5968 * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
5969 (XSETCHAR): Likewise.
5970 (XSETOBJ): Likewise.
5972 2001-02-15 Martin Buchholz <martin@xemacs.org>
5974 * mule-canna.c (canna-func-delete_previous):
5975 Rename to canna-func-delete-previous.
5977 2001-02-14 Martin Buchholz <martin@xemacs.org>
5979 * mule-ccl.c (ccl_driver): Warning suppression. Use countof.
5981 2001-02-13 Matt Tucker <tuck@whistlingfish.net>
5983 * font-lock.c (find_context): Fix C++ compile errors introduced by
5986 2001-02-13 Martin Buchholz <martin@xemacs.org>
5988 * s/aix4.h: Later versions of IBM C compiler need a bug workaround
5989 pragma, but earlier ones barf on the same pragma.
5991 2001-02-06 Mike Sperber <mike@xemacs.org>
5993 * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
5994 `configure-mule-lisp-directory'.
5996 2001-02-12 Martin Buchholz <martin@xemacs.org>
5998 Make sure dump-id.c is compiled in the same way as other .c's.
5999 Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6000 * dump-id.h: Remove.
6001 * emacs.c: Move dump-id.h into dumper.h.
6002 * dumper.h: Move dump-id.h into dumper.h.
6004 Use standard .c.o rule for building dump-id.o.
6005 Remove preprocessor flags from link command.
6006 Add dump-id.o to ${otherobjs} if PDUMP.
6008 2001-02-07 Matt Tucker <tuck@whistlingfish.net>
6010 Port FSF 20.7 syntax table improvements.
6014 Fixups for new syntax table stuff.
6015 * dired.c: Include syntax.c.
6016 (Fdirectory_files): Initialize regex_match_object and
6018 * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6019 and Fget_char_property.
6021 Use ported FSF 20.7 syntax table improvements.
6026 2001-02-09 Martin Buchholz <martin@xemacs.org>
6028 * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6029 Unixware's enum boolean from sys/types.h.
6031 2001-02-10 Martin Buchholz <martin@xemacs.org>
6033 Fix support for building with latest Purify.
6034 * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6035 (PURIFY_FLAGS): Likewise.
6037 2001-02-09 Martin Buchholz <martin@xemacs.org>
6039 * fileio.c (lisp_string_set_file_times): New.
6040 * fileio.c (Fcopy_file): Use it.
6042 (copy-file filename non-ascii-filename t t)
6043 ==> No such file or directory, non-ascii-filename
6045 2001-02-10 Martin Buchholz <martin@xemacs.org>
6047 * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6048 USHRT_MAX seems clearer than ~0 anyways.
6050 2001-02-09 Martin Buchholz <martin@xemacs.org>
6052 dumper improvements. Inspired by Olivier.
6053 * dumper.c (pdump_max_align): New.
6054 * dumper.c (pdump_add_entry): Use pdump_max_align.
6055 * dumper.c (pdump_get_entry_list): Likewise.
6056 * dumper.c (pdump_scan_by_alignment): Likewise.
6057 Don't iterate through unnecessary alignments.
6058 * dumper.c (pdump_file_get): No need to align result of malloc().
6059 * dumper.c (pdump_mallocadr): Remove.
6060 The result of malloc() is guaranteed to be maximally aligned.
6061 * dumper.c: s/elmt/elt/g;
6062 * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6063 * dumper.c (pdump_alert_undump_object): Likewise.
6064 * dumper.c (pdump_align_table):
6065 Don't support alignments > 64.
6066 Store ALIGNOF's, not shift counts, in table.
6068 2001-02-09 Martin Buchholz <martin@xemacs.org>
6070 * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6071 * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6072 * systime.h: Use HAVE_UTIME.
6073 * sysdep.c (struct utimbuf): Remove.
6074 * sysdep.c (set_file_times): Prefer utime() to utimes().
6075 * config.h.in (HAVE_UTIME): New.
6076 * config.h.in (HAVE_UTIME_H): Remove.
6077 * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6079 2001-02-09 Martin Buchholz <martin@xemacs.org>
6081 * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6083 2001-02-08 Martin Buchholz <martin@xemacs.org>
6085 * s/irix6-0.h: Use the standard system memmove, not bcopy.
6087 2001-02-08 Martin Buchholz <martin@xemacs.org>
6089 * XEmacs 21.2.44 "Thalia" is released.
6091 2001-02-06 Martin Buchholz <martin@xemacs.org>
6093 Fixes crashes in kill-emacs on some systems.
6094 * process-unix.c (unix_kill_child_process):
6095 It's OK for kill() to fail with ESRCH.
6097 2001-02-07 Martin Buchholz <martin@xemacs.org>
6099 Contortions to make .gdbinit tricks work on most systems.
6100 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6101 * alloc.c (dbg_valmask): Make non-const.
6102 * alloc.c (dbg_typemask): Make non-const.
6103 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6104 * alloc.c (dbg_valbits): Make non-const.
6105 * alloc.c (dbg_gctypebits): Make non-const.
6106 * .gdbinit (decode_object): Make it work with AIX cc.
6108 2001-02-06 Martin Buchholz <martin@xemacs.org>
6110 * elhash.c (make_general_lisp_hash_table):
6111 Use simpler and more efficient calloc to clear entries.
6113 2001-02-07 Martin Buchholz <martin@xemacs.org>
6115 * window.c (window_scroll): Work around an AIX C compiler bug.
6116 Fixes 'scroll-up' does nothing problem with xlC.
6118 2001-02-05 Martin Buchholz <martin@xemacs.org>
6120 * .gdbinit: Remove obsolete comment.
6122 2001-01-31 Mike Alexander <mta@arbortext.com>
6124 * select.c (Fown_selection_internal): Set owned_p for device
6127 2001-02-01 Martin Buchholz <martin@xemacs.org>
6130 "not" cannot be used as a macro name as it is an operator in C++
6131 * config.h.in: Stop #defining `not'.
6132 * chartab.c (check_category_char): not ==> not_p
6133 * chartab.h: Likewise.
6134 * regex.c (re_match_2_internal): Likewise.
6136 2001-02-02 Martin Buchholz <martin@xemacs.org>
6138 * lisp-disunion.h: Fix up comments.
6140 2001-01-31 Martin Buchholz <martin@xemacs.org>
6142 * keymap.c (define_key_check_and_coerce_keysym):
6144 Support mouse-6 and mouse-7 bindings in the obvious way.
6146 2001-02-01 Martin Buchholz <martin@xemacs.org>
6148 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6150 2001-01-30 Martin Buchholz <martin@xemacs.org>
6152 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6153 Previous patch missed DEFVAR_INT_MAGIC.
6154 Make sure future DEFVAR_foo use correct types.
6155 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6156 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6157 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6158 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6159 * (DEFVAR_INT): Likewise.
6160 * redisplay.c (vertical_clip): Should be of type Fixnum.
6161 * redisplay.c (horizontal_clip): Likewise.
6162 * lisp.h (dump_add_opaque_int): New.
6163 (dump_add_opaque_fixnum): New.
6165 2001-01-29 Andy Piper <andy@xemacs.org>
6167 * glyphs-widget.c (check_valid_int_or_function): allow symbols
6168 since they can be eval'ed
6170 2001-01-29 Martin Buchholz <martin@xemacs.org>
6172 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6173 Oops, XEmacs redefines `class'. Use `typename' instead.
6175 2001-01-28 Martin Buchholz <martin@xemacs.org>
6177 * dumper.c: Fix C++ compile errors.
6179 2001-01-29 Martin Buchholz <martin@xemacs.org>
6181 * tparam.c: Use correct prototypes.
6183 2001-01-28 Martin Buchholz <martin@xemacs.org>
6185 * sysproc.h: #include util.h for NetBSD's openpty.
6187 2001-01-27 Martin Buchholz <martin@xemacs.org>
6189 More 64-bit correctness.
6190 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6191 Use a typedef `fixnum' for the type used for DEFVAR_INT.
6193 This finally finishes the 64-bit SGI port.
6194 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6195 * symbols.c: Fix up comments and type casts.
6196 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6197 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6198 * symeval.h (Fixnum): New type.
6199 * symeval.h (symbol_value_type): Fix up comment.
6215 * mule-canna.c: A million DEFVAR_INTs here...
6216 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6229 s/int/Fixnum/g in DEFVAR_INT declarations.
6231 2001-01-26 Martin Buchholz <martin@xemacs.org>
6233 Port pdump to SGI alignment-sensitive environment.
6234 Lisp Object sizeof methods now return aligned sizes. Rely on that.
6235 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6237 Define and use aligned reading and writing macros.
6238 Use buffered stdio instead of posix i/o for faster dumping.
6239 Eliminate kludgy 256 byte space for header.
6240 Read and write from dump file using structs for alignment safety.
6241 * dumper.c (pdump_align_stream): New.
6242 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6243 * dumper.c (PDUMP_READ_ALIGNED): New.
6244 * dumper.c (PDUMP_WRITE_ALIGNED): New.
6245 * dumper.c (pdump_static_Lisp_Object): New struct.
6246 * dumper.c (pdump_static_pointer): New struct.
6247 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6248 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6249 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6250 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6252 * dumper.c (pdump_backtrace):
6253 * dumper.c (pdump_get_indirect_count):
6254 * dumper.c (pdump_register_object):
6255 * dumper.c (pdump_register_struct):
6256 * dumper.c (pdump_reloc_one):
6257 * dumper.c (pdump_scan_by_alignment):
6258 * dumper.c (pdump_dump_from_root_struct_ptrs):
6259 * dumper.c (pdump_dump_opaques):
6260 * dumper.c (pdump_dump_rtables):
6261 * dumper.c (pdump_dump_from_root_objects):
6263 * dumper.c (pdump_load_finish):
6264 Use aligned reading and writing.
6266 * dumper.c (pdump_free): Make static.
6267 * dumper.c (pdump_hFile): Likewise.
6268 * dumper.c (pdump_hMap): Likewise.
6270 2001-01-26 Martin Buchholz <martin@xemacs.org>
6272 * XEmacs 21.2.43 "Terspichore" is released.
6274 2001-01-25 Martin Buchholz <martin@xemacs.org>
6276 Type fiddling for window_config.saved_windows_count
6277 * window.c (struct window_config):
6278 Make saved_windows_count member unsigned.
6279 * window.c (sizeof_window_config_for_n_windows):
6280 Make parameter unsigned.
6281 * window.c (mark_window_config):
6282 * window.c (window_config_equal):
6283 * window.c (free_window_configuration):
6284 * window.c (Fset_window_configuration):
6285 * window.c (count_windows):
6286 * window.c (Fcurrent_window_configuration):
6287 * window.c (reinit_vars_of_window):
6288 Update all callers and users.
6290 2001-01-25 Martin Buchholz <martin@xemacs.org>
6292 Alignment correctness for flexible arrays.
6293 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6294 Make alignment-correct. Add interesting comments.
6295 * alloc.c (size_vector):
6296 * alloc.c (make_vector_internal):
6297 * alloc.c (make_bit_vector_internal):
6298 * alloc.c (sweep_bit_vectors_1):
6299 * fns.c (size_bit_vector):
6300 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6301 * window.c (sizeof_window_config_for_n_windows):
6302 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6304 2001-01-24 Martin Buchholz <martin@xemacs.org>
6306 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6308 2001-01-23 Andy Piper <andy@xemacs.org>
6310 * select.c (Fown_selection_internal): pass owned_p
6312 * select-msw.c (mswindows_own_selection): New Signature.
6314 * console.h (struct console_methods): add owned_p to
6317 * select-x.c (x_own_selection): pass owned_p
6318 (hack_motif_clipboard_selection): use owned_p
6319 (vars_of_select_x): new variable -
6320 x_selection_strict_motif_ownership.
6322 2001-01-23 Martin Buchholz <martin@xemacs.org>
6324 * specifier.h (specifier_data_offset): Remove pointless parens.
6325 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6327 2001-01-24 Martin Buchholz <martin@xemacs.org>
6329 Make Lisp_Object sizeof methods be alignment-correct.
6330 pdump must restore objects to the same alignment as the C compiler
6331 assumes. It really matters on SGIs.
6332 * lstream.c (aligned_sizeof_lstream): New.
6333 (sizeof_lstream): Use aligned_sizeof_lstream.
6334 (Lstream_new): Likewise.
6335 * opaque.c (aligned_sizeof_opaque): New.
6336 (sizeof_opaque): Use aligned_sizeof_opaque.
6337 (make_opaque): Likewise.
6338 * specifier.c (aligned_sizeof_specifier): New.
6339 (sizeof_specifier): Use aligned_sizeof_specifier.
6340 (make_specifier_internal): Likewise.
6342 2001-01-23 Martin Buchholz <martin@xemacs.org>
6344 * lstream.h (struct lstream): Use max_align_t for trailing data.
6345 * specifier.h (struct Lisp_Specifier): Likewise.
6347 2001-01-22 Martin Buchholz <martin@xemacs.org>
6349 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6350 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6351 (CCL_SUSPEND): Likewise.
6352 (CCL_INVALID_CMD): Likewise.
6353 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6354 (ccl_driver): Likewise.
6355 (CCL_WRITE_CHAR): Macro hygiene.
6356 (CCL_WRITE_STRING): Macro hygiene.
6358 2001-01-22 Martin Buchholz <martin@xemacs.org>
6360 Port "portable" dumper to SunOS 4 and HP-UX.
6361 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6362 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6363 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6365 2001-01-22 Martin Buchholz <martin@xemacs.org>
6367 * lisp.h (ALIGNOF): A better definition for C++.
6369 2001-01-20 Martin Buchholz <martin@xemacs.org>
6372 Fix printf warnings: int format, long int arg.
6373 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6374 (PUSH_FAILURE_POINT): Use correct printf formats.
6375 (POP_FAILURE_POINT): Use correct printf formats.
6376 Use do {...} while (0)
6378 2001-01-20 Martin Buchholz <martin@xemacs.org>
6380 * XEmacs 21.2.42 "Poseidon" is released.
6382 2001-01-20 Martin Buchholz <martin@xemacs.org>
6384 * console-x.h: typo fix du jour. Remove #if 0'ed code.
6386 2001-01-19 Martin Buchholz <martin@xemacs.org>
6388 De-kludgify FIXED_TYPE free list frobbing.
6389 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6390 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6391 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6392 * alloc.c (Lisp_Free): New pseudo lisp object definition.
6393 * alloc.c (LRECORD_FREE_P): New.
6394 * alloc.c (MARK_LRECORD_AS_FREE): New.
6395 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6396 * alloc.c (STRUCT_FREE_P): Deleted.
6397 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6398 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6399 * alloc.c (STRING_CHARS_FREE_P): New.
6400 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6401 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6402 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6403 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6404 * alloc.c (resize_string): Use new definitions.
6405 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6406 * alloc.c (verify_string_chars_integrity): Use new definitions.
6407 * alloc.c (compact_string_chars): Use new definitions.
6408 * alloc.c: Update monster comments.
6409 * lrecord.h (lrecord_type): Add some new lrecord types for
6412 2001-01-18 Martin Buchholz <martin@xemacs.org>
6414 Improve alignment hackery.
6415 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6416 (max_align_t): Moved from opaque.h - general purpose.
6417 (ALIGN_PTR): Use size_t, not long.
6418 * opaque.h (max_align_t): Move to lisp.h.
6420 2001-01-18 Norbert Koch <nk@LF.net>
6422 * gui.h: Fix and add prototypes to fix build problems.
6424 2001-01-18 Martin Buchholz <martin@xemacs.org>
6426 temacs is going away, so `dump-temacs' is now a bad name.
6427 * .dbxrc (dump-temacs): Rename to `dmp'.
6428 * .gdbinit (dump-temacs): Rename to `dmp'.
6430 2001-01-17 Andy Piper <andy@xemacs.org>
6432 * glyphs.c (print_image_instance): comment to make martin happy.
6434 * glyphs-x.c (x_redisplay_widget): update faces after a frame
6437 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
6439 (mswindows_tab_control_redisplay): warning suppression.
6441 * glyphs-widget.c (widget_update): re-write to cope with updated
6443 (widget_instantiate): use new gui_item functions.
6444 (tab_control_update): deleted.
6445 (progress_gauge_update): deleted.
6446 (image_instantiator_progress_guage): take out update reference.
6447 (image_instantiator_tree_view): ditto.
6448 (image_instantiator_tab_control): ditto.
6450 * gui.c (widget_gui_parse_item_keywords): new function. Do things
6452 (gui_item_add_keyval_pair): re-write to cope with descriptors and
6453 return whether anything was changed.
6454 (update_gui_item_keywords): as it sounds.
6456 * gui.h: declare widget_gui_parse_item_keywords.
6458 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
6459 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
6461 2001-01-17 Martin Buchholz <martin@xemacs.org>
6463 * XEmacs 21.2.41 "Polyhymnia" is released.
6465 2001-01-16 Didier Verna <didier@xemacs.org>
6467 * glyphs.c (image_instantiate): don't use fallbacks when
6468 instantiating a face's background pixmap by inheritance.
6470 2001-01-14 Mike Sperber <mike@xemacs.org>
6472 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
6473 Conditionalize accordingly.
6475 2001-01-16 Martin Buchholz <martin@xemacs.org>
6477 * dumper.c (pdump_file_get): Fix a compiler warning.
6479 2001-01-15 Martin Buchholz <martin@xemacs.org>
6481 Make Purify happy when pdumping.
6482 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
6483 iniitalizing all bits of new lisp object memory.
6484 * symbols.c (Fmake_local_variable): Likewise.
6485 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
6486 * symbols.c (Fdefvaralias): Likewise.
6487 * mule-charset.c (vars_of_mule_charset): Likewise.
6489 2001-01-15 Martin Buchholz <martin@xemacs.org>
6490 Add the `-nd' flag when running pre-dump operations under the debugger.
6491 * .dbxrc (run-temacs): Add `-nd'.
6492 * .dbxrc (update-elc): Likewise.
6493 * .dbxrc (dump-temacs): Likewise.
6494 * .gdbinit (run-temacs): Likewise.
6495 * .gdbinit (check-temacs): Likewise.
6496 * .gdbinit (update-elc): Likewise.
6497 * .gdbinit (dump-temacs): Likewise.
6499 2001-01-14 Martin Buchholz <martin@xemacs.org>
6501 Allow building 64-bit executables on AIX with GNU malloc, e.g.
6502 export OBJECT_MODE=64
6503 configure --pdump --use-union-type=no
6504 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
6505 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
6507 * miscplay.c (sndcnv8U_2mono):
6508 Avoid two uses of `++' in the same expression.
6509 Suppresses a GCC warning.
6511 2001-01-13 Martin Buchholz <martin@xemacs.org>
6513 Make sure future compilers don't miscompile alloc.c.
6515 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
6516 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
6518 2001-01-12 Martin Buchholz <martin@xemacs.org>
6520 * dumper.c: A little post-pdump-rename comment fixup.
6522 2001-01-09 Jerry James <james@eecs.ku.edu>
6524 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
6526 2001-01-13 Martin Buchholz <martin@xemacs.org>
6528 * *.[ch]: Globally rename symbols using the following `pdump-rename'
6532 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
6535 replace_symbol pdump_wire_lists pdump_weak_object_chains
6536 replace_symbol pdump_wire_list dump_add_weak_object_chain
6538 replace_symbol pdump_wires pdump_root_objects
6539 replace_symbol pdump_wire dump_add_root_object
6541 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
6542 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
6544 replace_symbol dumpstructinfos pdump_root_struct_ptrs
6545 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
6546 replace_symbol dumpstructinfo pdump_root_struct_ptr
6547 replace_symbol dumpstruct dump_add_root_struct_ptr
6549 replace_symbol dumpopaque dump_add_opaque
6550 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
6551 replace_symbol dumpopaqueinfos pdump_opaques
6552 replace_symbol dumpopaqueinfo pdump_opaque
6554 replace_symbol nb_structdump nb_root_struct_ptrs
6555 replace_symbol nb_opaquedump nb_opaques
6557 replace_symbol align_table pdump_align_table
6558 replace_symbol dump_header pdump_header
6560 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
6561 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
6564 2001-01-12 Martin Buchholz <martin@xemacs.org>
6566 * s/aix4.h: Keep the C for AIX compiler from overaggressively
6567 optimizing bytecount_to_charcount().
6569 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
6572 (HAVE_DLFCN_H): Removed.
6573 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
6575 2001-01-06 Martin Buchholz <martin@xemacs.org>
6577 Portable dumper maintainability improvements.
6578 * alloc.c (staticpro):
6579 * alloc.c (staticpro_nodump):
6580 * alloc.c (garbage_collect_1):
6581 * alloc.c (reinit_alloc_once_early):
6582 * alloc.c (init_alloc_once_early):
6583 * alloc.c: Move dumper functions to alloc.c.
6584 * dumper.c (pdump_backtrace):
6585 * dumper.c (pdump_dump_structs):
6586 * dumper.c (pdump_dump_opaques):
6587 * dumper.c (pdump_dump_rtables):
6588 * dumper.c (pdump_dump_wired):
6590 * dumper.c (pdump_load_check):
6591 * dumper.c (pdump_load_finish):
6592 * dumper.c (pdump_file_unmap):
6593 * dumper.c (pdump_file_get):
6594 * dumper.c (pdump_resource_free):
6595 * dumper.c (pdump_resource_get):
6596 * dumper.c (pdump_file_free):
6597 * dumper.c (pdump_file_try):
6598 * dumper.c (pdump_load):
6599 Remove fixed size limits on staticpro(), staticpro_nodump(),
6600 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
6601 Remove custom code for dumping lrecord_implementations_table - use
6603 Remove (most of the) custom code for dumping staticpros - dump it
6604 like any other dynarr.
6606 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
6607 * dumper.c: Moved functions from alloc.c.
6608 * alloc.c (dumpstruct): Moved to dumper.c.
6609 * alloc.c (dumpopaque): Likewise.
6610 * alloc.c (pdump_wire): Likewise.
6611 * alloc.c (pdump_wire_list): Likewise.
6613 * lisp.h (Dynarr_sizeof): New.
6614 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
6615 * lisp.h (Dynarr_end): New. Very slightly C++oid.
6616 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
6618 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
6619 * lisp.h (dumpopaque): ditto.
6620 * lisp.h (pdump_wire): ditto.
6621 * lisp.h (pdump_wire_list): ditto.
6623 2001-01-09 Martin Buchholz <martin@xemacs.org>
6625 * make-src-depend (PrintPatternDeps):
6626 Use `sort' to make output independent of perl version.
6628 2001-01-08 Martin Buchholz <martin@xemacs.org>
6631 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
6632 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
6634 2001-01-03 Didier Verna <didier@xemacs.org>
6636 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
6637 that `focus_frame' is alive before thinking of calling
6638 `redisplay_redraw_cursor' on it.
6640 2001-01-08 Martin Buchholz <martin@xemacs.org>
6642 * XEmacs 21.2.40 is released.
6644 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
6646 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
6648 2001-01-06 Martin Buchholz <martin@xemacs.org>
6650 * alloc.c (dbg_valmask): Make const.
6651 * alloc.c (dbg_typemask): Make const.
6652 * alloc.c (dbg_USE_UNION_TYPE): Make const.
6653 * alloc.c (dbg_valbits): Make const.
6654 * alloc.c (dbg_gctypebits): Make const.
6656 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
6658 * redisplay-x.c (x_bevel_area):
6659 redisplay.h (struct rune):
6660 Typo fixes in comments.
6662 2001-01-05 Andy Piper <andy@xemacs.org>
6664 * glyphs-x.c (x_redisplay_widget): use size changed for offset
6667 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
6669 2001-01-05 Martin Buchholz <martin@xemacs.org>
6671 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
6673 * mule-ccl.c (stack_idx_of_map_multiple):
6674 Non const global data must not be initialized!
6675 Found by MIYASHITA Hisashi.
6677 2001-01-02 Andy Piper <andy@xemacs.org>
6679 * frame.c (change_frame_size): make sure frame size is always
6682 * glyphs.c (image_instance_layout): minor code reuse.
6684 * window.c (Fcurrent_window_configuration): revert previous
6687 2001-01-02 Martin Buchholz <martin@xemacs.org>
6690 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
6692 2000-12-31 Andy Piper <andy@xemacs.org>
6694 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
6695 when widget gets unmapped.
6697 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
6698 function. Make sure widgets losing focus don't just drop it.
6699 (handle_focus_event_1): record the widget with focus.
6701 2000-12-31 Andy Piper <andy@xemacs.org>
6703 * window.c (allocate_window): use
6704 make_image_instance_cache_hash_table.
6705 (make_dummy_parent): ditto.
6706 (Fset_window_configuration): ditto.
6708 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
6710 * glyphs.c (process_image_string_instantiator): use
6712 (get_image_instantiator_governing_domain): ditto.
6713 (normalize_image_instantiator): ditto.
6714 (instantiate_image_instantiator): ditto.
6715 (make_image_instance_1): ditto.
6716 (image_instantiate): ditto. Key on glyph *and* instantiator type.
6717 (instantiator_eq_equal): new function for use with instance hash
6719 (instantiator_eq_hash): ditto.
6720 (make_image_instance_cache_hash_table): create a suitable hash
6721 table for storing image instances.
6723 * elhash.h (hash_table_weakness): new internal weakness type
6724 HASH_TABLE_KEY_CAR_VALUE_WEAK.
6725 declare new functions.
6727 * elhash.c (finish_marking_weak_hash_tables): introduce yet
6728 another weakness type for glyphs.
6729 (make_standard_lisp_hash_table): new function split out from
6730 make_general_lisp_hash_table.
6731 (make_lisp_hash_table): call make_standard_lisp_hash_table.
6732 (hash_table_instantiate): ditto.
6733 (Fmake_hash_table): ditto.
6735 2000-12-31 Martin Buchholz <martin@xemacs.org>
6737 * XEmacs 21.2.39 is released.
6739 2000-12-29 Andy Piper <andy@xemacs.org>
6741 * menubar.c (menubar_visible_p_changed): signal the frame changed.
6743 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
6744 the frame has changed so that we pick up geometry changes such as
6747 2000-12-28 Andy Piper <andy@xemacs.org>
6749 * lastfile.c (my_ebss): make a char array so we can pad the
6750 bss. Fixes cygwin unexec.
6752 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
6754 2000-12-26 Andy Piper <andy@xemacs.org>
6756 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
6757 comments and try and be more precise about a non-/SIGIO world.
6758 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
6761 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
6762 we don't normalize to zero width or height.
6764 2000-12-24 Andy Piper <andy@xemacs.org>
6766 * Makefile.in.in (ldflags): add -mwindows when appropriate.
6768 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
6770 * s/sco5.h: SCO 5 has pty support.
6772 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
6774 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
6775 input-method-xlib.c contains whole contents of input-method-xfs.c,
6776 so we can use input-method-xlib.c's code for USE_XFONTSET
6778 * input-method-xfs.c: removed.
6780 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
6782 * file-coding.h (enum coding_category_type): reorder enumerators to
6783 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
6784 (now one greater than largest real coding_category_type enumerator).
6785 * file-coding.c (coding_category_symbol, coding_category_by_priority,
6786 coding_category_system, fcd_descriptihon_1, decode_coding_category,
6787 Fcoding_category_list, Fset_coding_priority_list,
6788 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
6789 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
6791 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
6793 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
6794 * redisplay-output.c (redisplay_output_window): Clear top of window
6795 when face is changed.
6796 * redisplay-x.c (x_redraw_exposed_window): Call
6797 redisplay_clear_top_of_window.
6798 * redisplay.h: Publish redisplay_clear_top_of_window.
6800 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
6802 * buffer.c (Fkill_buffer): Map over all devices.
6803 * window.c (window_loop): Remove UNSHOW_BUFFER code.
6804 (list_windows): New function.
6805 (list_all_windows): Ditto.
6806 (Freplace_buffer_in_windows): Use them.
6808 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6810 * database.c (berkdb_subtype): Recognize new subtype `queue'.
6811 (Fopen_database): Use `db_create' instead of `db_open'.
6812 (syms_of_database): Initialize Qqueue.
6814 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
6816 * buffer.c (common_init_complex_vars_of_buffer): Initialize
6817 buffer_local_face_property.
6818 * buffer.h (struct buffer): New member buffer_local_face_property.
6819 * window.c (Fset_window_buffer): Mark window's face as changed
6820 when buffer has buffer local face.
6821 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
6822 * objects.c (color_after_change): Set buffer_local_face_property
6823 when locale of face specifier is buffer.
6824 * objects.c (font_after_change): Ditto.
6825 * objects.c (face_boolean_after_change): Ditto.
6826 * glyphs.c (image_after_change): Ditto.
6828 2000-12-09 Dan Holmsand <dan@eyebee.com>
6830 * nt.c (mswindows_fstat): Report file permissions, volume serial
6831 number, etc. Code adapted from FSF Emacs 20.7.
6833 2000-12-09 Dan Holmsand <dan@eyebee.com>
6835 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
6836 of stat when we don't have symbolic links, to make sure
6837 mswindows_stat is called on mswindows.
6839 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
6841 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
6843 2000-12-12 Martin Buchholz <martin@xemacs.org>
6845 * doprnt.c (emacs_doprnt_1): More printing fixes.
6846 Make printing of numbers compatible with libc and FSF Emacs.
6847 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
6848 Use the system printf to do most of the hard work of formatting,
6849 instead of doprnt_1().
6850 Calculate memory to allocate for format string.
6851 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
6852 (doprnt_1): Cleaner code and documentation.
6854 2000-12-01 Jerry James <james@eecs.ukans.edu>
6856 * Makefile.in.in: Use the loop variable to install headers.
6858 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
6860 * window.c (Fsplit_window): Don't invalidate face cache.
6862 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
6864 * minibuf.c (Fall_completions): Undo the previous change
6865 which removed checking elements start with space.
6867 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
6869 * mule-canna.c: Didier suppression.
6871 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
6873 * mule-canna.c: rename static unsigned char buf[] to key_buffer
6874 (warning suppression). Add English comment translations.
6876 2000-12-05 Martin Buchholz <martin@xemacs.org>
6878 * unexelfsgi.c (unexec): Better test for mmap failure.
6880 2000-12-05 Martin Buchholz <martin@xemacs.org>
6882 * XEmacs 21.2.38 is released.
6884 2000-12-05 Martin Buchholz <martin@xemacs.org>
6886 * redisplay.c (bar-cursor): Make a user variable.
6888 * symsinit.h: Add init_postgresql_from_environment.
6890 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
6892 * regex.c: Convert to clean C.
6894 2000-12-05 Dan Holmsand <dan@eyebee.com>
6897 Don't #include sysfile.h. Revert to duplicating PATH_MAX
6899 (sys_readlink): renamed to system_readlink to avoid conflict with
6900 the other sys_readlink.
6902 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
6904 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
6906 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
6908 * postgresql.c (init_postgresql_from_environment): new function.
6909 (vars_of_postgresql): Move code initializing Lisp variables out and
6910 into init_postgresql_from_environment.
6911 emacs.c (main_1): Call init_postgresql_from_environment if and only
6912 if running a dumped XEmacs.
6914 2000-08-31 Dan Holmsand <dan@eyebee.com>
6916 * buffer.c: Make find-file-compare-truenames default to true on
6919 * realpath.c (win32_abs_start):
6921 (win32_readlink): New functions.
6922 (xrealpath): Return really real filenames on windows.
6924 * fileio.c (Ffile_truename): Make file-truename work on windows.
6926 2000-11-29 Didier Verna <didier@xemacs.org>
6928 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
6929 * faces.c (update_face_cachel_data): use it.
6930 * faces.c (add_face_cachel): use it. Complete background pixmap
6931 frobbing in face cache if `update_face_cachel_data' has not done so.
6933 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
6935 * search.c (string_match_1): Don't set last_thing_searched
6938 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
6940 * buffer.c: Include casetab.h
6941 (common_init_complex_vars_of_buffer): Use new case-table object.
6942 * buffer.h: Include casetab.h
6943 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
6944 (DOWNCASE_TABLE_OF): Ditto.
6945 * bufslots.h: Remove char-tables and add case-table.
6946 * casetab.c: Include casetab.h
6947 (CASE_TABLE_P): Removed.
6948 (mark_case_table): New function.
6949 (allocate_case_table): New function.
6950 (Fcase_table_p): Use new case-table.
6951 (case_table_char): New function.
6952 (Fget_case_table): Ditto.
6953 (Fput_case_table): Ditto.
6954 (Fput_case_table_pair): Ditto.
6955 (Fcopy_case_table): Ditto.
6956 (Fcurrent_case_table): Return case-table.
6957 (Fstandard_case_table): Return case-table.
6958 (Fset_case_table): Fix doc-string.
6959 (set_case_table): Use case-table
6960 (syms_of_casetab): DEFSUBR new functions.
6961 (complex_vars_of_casetab): Set up standard case-table.
6962 * casetab.h: New file.
6963 * editfns.c: Include casetab.h
6964 (Fcompare_buffer_substrings): Use case-table.
6965 * inline.c: Include casetab.h
6966 * lisp.h: Remove bogus extern.
6967 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
6968 * search.c: Include casetab.h
6969 (TRANSLATE_ASCII): Removed.
6970 (TRANSLATE): Unconditionally translate character.
6971 (looking_at_1): Use case-table.
6972 (string_match_1): Ditto.
6973 (fast_string_match): Ditto.
6974 (search_command): Ditto.
6975 (search_buffer): Separate boyer_moore. Check whether
6976 boyer_moore is possible.
6977 (simple_search): New function.
6978 (boyer_moore): Separated from search_buffer. Translate char.
6980 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
6982 * regex.c (RE_TR_ASCII): Removed.
6983 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
6984 (PATFETCH): Call PATFETCH_RAW.
6985 (PATFETCH_RAW): Fetch Emchar.
6986 (PATUNFETCH): Decrement charptr.
6987 (GET_BUFFER_SPACE): Rename b to buf_end.
6989 (BUF_PUSH_2): Ditto.
6990 (BUF_PUSH_3): Ditto.
6991 (EXTEND_BUFFER): Ditto.
6992 (SET_LIST_BIT): Ditto.
6993 (regex_compile): Ditto. Translate non ASCII char.
6994 (compile_range): Ditto.
6995 (re_search_2): Ditto.
6996 (re_match_2_internal): Compare Emchar.
6997 (bcmp_translate): Ditto.
6999 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
7001 * lisp.h (basic char/int typedefs): comment improvement.
7003 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
7005 * emacs.c (main_1): unconditional pdump unstomping; don't save and
7006 unstomp inhibit_site_lisp. Improve comments.
7008 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
7010 * mule-charset.c (Fcharset_property): improve type checking, comments.
7012 2000-11-28 Andy Piper <andy@xemacs.org>
7014 * redisplay-output.c (redisplay_output_subwindow): make sure we do
7015 clipped display for windows in the gutter also.
7016 (redisplay_display_boxes_in_window_p): change semantics of return
7017 codes to be more intuitive.
7019 * gutter.h: declare display_boxes_in_gutter_p.
7021 * gutter.c (display_boxes_in_gutter_p): new function for
7024 2000-11-22 Andy Piper <andy@xemacs.org>
7026 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7029 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
7031 * callproc.c (Fold_call_process_internal):
7032 * gpm.c (Freceive_gpm_event):
7033 (tty_get_foreign_selection): Might be just warning supression.
7034 * fileio.c (Fwrite_region_internal):
7035 (Fset_visited_file_modtime):
7036 * keymap.c (event_matches_key_specifier_p):
7037 Initialize GCPROed variable.
7039 * menubar-x.c (command_builder_find_menu_accelerator):
7040 Initialize before use.
7042 2000-11-23 Andy Piper <andy@xemacs.org>
7044 * unexcw.c (unexec): make the resulting executable executable.
7046 2000-11-21 Martin Buchholz <martin@xemacs.org>
7048 * doc.c (get_doc_string):
7049 Use size_t, not int, for result of XSTRING_LENGTH.
7051 * cmds.c (Fdelete_char):
7052 * cmds.c (Fpoint_at_eol):
7053 * cmds.c (Fself_insert_command):
7054 Use EMACS_INT, not int, for result of XINT.
7055 Someday, someone will want to insert more than 2**31 identical characters.
7057 * cmds.c (Fdelete_char):
7058 * cmds.c (Fdelete_backward_char):
7059 * syntax.c (Fforward_word):
7060 * syntax.c (Fforward_comment):
7061 Make COUNT argument optional, for consistency with forward-char et al.
7063 2000-11-22 Martin Buchholz <martin@xemacs.org>
7066 * print.c (long_to_string):
7067 Return a useful value: the pointer at end of data written.
7070 Use `static const char * const' for constant strings.
7071 (union printf_arg): Delete `i', `ui' members.
7074 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7075 Do all printf-ing via the `l' specifier.
7076 Use EMACS_INT instead of int.
7079 2000-11-20 Didier Verna <didier@xemacs.org>
7081 * faces.c (update_face_cachel_data): don't frob the background
7082 pixmap when the window is being created. The face is needed but
7085 2000-11-20 Andy Piper <andy@xemacs.org>
7087 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7088 messing with a debug environment.
7090 2000-11-20 Martin Buchholz <martin@xemacs.org>
7092 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7094 2000-11-20 Martin Buchholz <martin@xemacs.org>
7096 * casetab.c (Fcase_table_p): Fix compile error and crash.
7098 2000-11-18 Philip Aston <philipa@mail.com>
7100 * s/cygwin32.h: Cygwin has SVR4-like pty support.
7102 2000-11-18 Martin Buchholz <martin@xemacs.org>
7104 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
7105 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7107 2000-11-17 Martin Buchholz <martin@xemacs.org>
7109 * config.h.in: Define HAVE_ELF_H if elf.h exists.
7110 * unexelf.c: Use HAVE_ELF_H.
7111 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7112 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7113 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7114 Greg Harrington <greg_harrington@hotmail.com> provided a machine
7116 So this is an unexelfsgi.c from a different line of development.
7118 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
7120 * regex.c (RE_TR_ASCII): New function.
7121 (RE_TRANSLATE): Call it.
7123 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
7125 * buffer.h (TRT_TABLE_OF): Remove assert.
7126 (IN_TRT_TABLE_DOMAIN): Removed.
7128 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
7130 * free-hook.c (log_gcpro):
7131 (show_gcprohist): Add support for GCPRO5.
7133 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
7135 * emacs.c (main_1): Improve -sd error message when --pdump=no.
7137 2000-11-16 Olivier Galibert <galibert@xemacs.org>
7139 * symeval.h: Declare flush_all_buffer_local_cache.
7141 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7142 (flush_buffer_local_cache): Added.
7143 (flush_all_buffer_local_cache): Added.
7145 * lrecord.h: Remove unused XD_LO_RESET_NIL.
7147 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7148 (pdump_dump_data): Ditto.
7149 (pdump_reloc_one): Ditto.
7150 (pdump): Remove unused pdump_qnil. Flush buffer local caches
7154 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
7156 * buffer.c: Remove if 0'ed entry.
7157 * buffer.h: Rewrite TRT to use char-table.
7158 * bufslots.h: Remove mirror tables.
7159 * casetab.c: Remove mirror tables.
7160 (CASE_TABLE_P): New macro.
7161 (Fcase_table_p): Element of a case table is string or char-table.
7162 (make_mirror_trt_table): Removed.
7163 (set_case_table): Setup char-table from strings for backward
7165 * dired.c (Fdirectory_files):
7166 * dired-msw.c: (mswindows_get_files):
7167 * lisp.h: Change prototype of re_pattern_buffer.
7168 * regex.c: (RE_TRANSLATE): New macro.
7169 (TRANSLATE_P): Ditto.
7170 Change translate to type RE_TRANSLATE_TYPE.
7171 * regex.h: Define RE_TRANSLATE_TYPE
7172 * search.c (TRANSLATE): New macro.
7173 (TRANSLATE_ASCII): New macro.
7174 Translate table is changed to Lisp_Object.
7175 (signal_failure): Inhibit return.
7177 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
7184 Do UNGCPRO before return.
7186 2000-11-14 Martin Buchholz <martin@xemacs.org>
7188 * XEmacs 21.2.37 is released.
7190 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
7192 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7193 Add comments about discarded return value.
7195 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
7198 * event-stream.c: Fix comments. Remove some #if 0'ed part.
7200 2000-10-27 Andy Piper <andy@xemacs.org>
7202 * gutter.c (Fset_default_gutter_position): default left and right
7204 (calculate_gutter_size): calculate resonable heuristic for left
7205 and right gutter sizes.
7206 (specifier_vars_of_gutter): change left and right gutter sizes to
7208 (calculate_gutter_size_from_display_lines): new function.
7209 (output_gutter): check for resizing on left and right gutters.
7210 (clear_gutter): don't special case top and left gutters.
7211 (specifier_vars_of_gutter): use new signature for
7212 set_specifier_caching.
7214 * glyphs-x.c (x_redisplay_widget): spelling fix.
7215 * glyphs.c (specifier_vars_of_glyphs):
7216 * menubar.c (specifier_vars_of_menubar):
7217 * redisplay.c (specifier_vars_of_redisplay):
7218 * toolbar.c (specifier_vars_of_toolbar):
7219 * window.c (specifier_vars_of_window):
7220 * scrollbar.c (specifier_vars_of_scrollbar):
7221 (complex_vars_of_scrollbar): use new signature for
7222 set_specifier_caching.
7224 * specifier.c (set_specifier_caching): include recompute flag.
7225 (recompute_one_cached_specifier_in_window): always recompute if
7227 (recompute_one_cached_specifier_in_frame): ditto.
7229 * specifier.h (struct specifier_caching): add recompute flag.
7231 2000-10-24 Andy Piper <andy@xemacs.org>
7233 * unexcw.c (copy_executable_and_dump_data_section): add new
7234 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7237 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7239 * console-x.h (x_device): New member modifier_release_time.
7240 * event-Xt.c (x_handle_sticky_modifiers):
7241 Bound interval modifier keys are sticky.
7242 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7243 * events.h: extern it.
7245 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7247 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7249 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7251 * event-stream.c (execute_command_event): Preserve current_events
7252 and the like when event is misc-user-event.
7253 Inhibit quit during the call to maybe_echo_keys.
7255 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
7257 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7258 symlink when buffer is killed.
7259 (inhibit_clash_detection): New variable.
7261 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
7263 * console.c (Fset_input_method): Trigger redisplay on tty.
7265 2000-11-07 Martin Buchholz <martin@xemacs.org>
7267 * process.c (Fprocess_status): Revert to previous behavior:
7268 (process-status "nosuchprocess") ==> nil
7270 2000-11-06 Martin Buchholz <martin@xemacs.org>
7272 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7273 Work around another GCC 2.95.2 optimizer bug.
7275 2000-11-02 Martin Buchholz <martin@xemacs.org>
7277 * process.c (Fget_process): Use LIST_LOOP_2.
7278 (kill_buffer_processes): Use LIST_LOOP_2.
7280 * minibuf.c (Fall_completions):
7281 Delete old non-functional code for FSF fourth argument.
7283 * frame.c (frame_matches_frame_spec):
7284 Renamed from `frame_matches_frametype'. Update all callers.
7285 (device_matches_device_spec):
7286 Renamed from 'device_matches_console_spec'. Update all callers.
7288 * doc.c (Fsubstitute_command_keys):
7289 Remove buffer overflow crash. Small code cleanups.
7291 * casetab.c (check_case_table): Simpler code.
7293 * window.c (Freplace_buffer_in_windows):
7294 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7295 (and similar implementation) as Fdelete_windows_on.
7298 * alloc.c (Fmake_list):
7299 * alloc.c (make_vector):
7300 * alloc.c (Fmake_vector):
7301 * alloc.c (make_bit_vector):
7302 * alloc.c (Fmake_bit_vector):
7303 * alloc.c (Fbit_vector):
7304 * alloc.c (Fmake_string):
7305 * alloc.c (Fpurecopy):
7306 * alloc.c (Fmemory_limit):
7308 * buffer.c (Fget_buffer):
7309 * buffer.c (Fkill_buffer):
7310 * buffer.c (complex_vars_of_buffer):
7311 * bytecode.c (Fcompiled_function_stack_depth):
7312 * callint.c (Fprefix_numeric_value):
7314 * event-stream.c (Fread_key_sequence):
7316 * casetab.c (Fcase_table_p):
7317 * casetab.c (check_case_table):
7318 * casetab.c (Fset_case_table):
7319 * casetab.c (Fset_standard_case_table):
7321 * chartab.c (Fchar_table_type):
7322 * chartab.c (Freset_char_table):
7323 * chartab.c (Fget_char_table):
7324 * chartab.c (Fget_range_char_table):
7325 * chartab.c (Fput_char_table):
7326 * chartab.c (Fmap_char_table):
7327 * chartab.c (Fcategory_table_p):
7328 * chartab.c (Fcheck_category_at):
7329 * chartab.c (Fchar_in_category_p):
7330 * chartab.c (Fcategory_table):
7331 * chartab.c (Fcopy_category_table):
7332 * chartab.c (Fset_category_table):
7333 * chartab.c (Fcategory_designator_p):
7334 * chartab.c (Fcategory_table_value_p):
7335 * cmds.c (Fdelete_char):
7336 * cmds.c (Fdelete_backward_char):
7337 * cmds.c (Fself_insert_command):
7338 * cmds.c (Fself_insert_internal):
7339 * console.c (Fvalid_console_type_p):
7340 * console.c (Fcdfw_console):
7341 * console.c (Fconsole_type):
7342 * console.c (Fconsole_name):
7343 * console.c (Fconsole_device_list):
7344 * console.c (Fconsole_on_window_system_p):
7348 * data.c (Fsubr_interactive):
7349 * data.c (Fchar_to_int):
7350 * data.c (Fint_to_char):
7353 * data.c (Fnumber_to_string):
7354 * data.c (Fstring_to_number):
7356 * database.c (mark_database):
7357 * database.c (finalize_database):
7358 * database.c (Fdatabase_live_p):
7359 * database.c (Fdatabasep):
7360 * device-x.c (Fx_get_resource):
7361 * device.c (Fdfw_device):
7363 * dired.c (Ffile_name_completion):
7364 * dired.c (Ffile_name_all_completions):
7365 * dired.c (Fuser_name_completion):
7366 * dired.c (Fuser_name_completion_1):
7367 * dired.c (Fuser_name_all_completions):
7368 * doc.c (Fdocumentation):
7369 * doc.c (Fdocumentation_property):
7370 * doc.c (Fsubstitute_command_keys):
7372 * editfns.c (Fchar_to_string):
7373 * editfns.c (Fstring_to_char):
7374 * editfns.c (Ftemp_directory):
7375 * editfns.c (Finsert_char):
7376 * editfns.c (Fbuffer_substring_no_properties):
7377 * editfns.c (Fnarrow_to_region):
7378 * editfns.c (Fchar_equal):
7379 * editfns.c (Fchar_Equal):
7380 * editfns.c (Ftranspose_regions):
7381 * emacs.c (Fdump_emacs):
7383 * eval.c (Fcommand_execute):
7384 * eval.c (Fautoload):
7385 * eval.c (Fbacktrace):
7386 * eval.c (Fbacktrace_frame):
7388 * events.c (Fcopy_event):
7389 * events.c (Fcharacter_to_event):
7390 * events.c (Fevent_button):
7391 * events.c (Fevent_process):
7393 * extents.c (Fnext_extent_change):
7394 * extents.c (Fextent_property):
7396 * faces.c (Fmake_face):
7398 * file-coding.c (Fencode_shift_jis_char):
7399 * file-coding.c (Fencode_big5_char):
7400 * fileio.c (Ffile_name_directory):
7401 * fileio.c (Ffile_name_nondirectory):
7402 * fileio.c (Ffile_name_as_directory):
7403 * fileio.c (Fdirectory_file_name):
7404 * fileio.c (Ffile_truename):
7405 * fileio.c (Fsubstitute_in_file_name):
7406 * fileio.c (Ffile_modes):
7407 * fileio.c (Fset_file_modes):
7408 * fileio.c (Fset_default_file_modes):
7409 * fileio.c (Fverify_visited_file_modtime):
7410 * floatfns.c (Facos):
7411 * floatfns.c (Fasin):
7412 * floatfns.c (Fatan):
7413 * floatfns.c (Fcos):
7414 * floatfns.c (Fsin):
7415 * floatfns.c (Ftan):
7416 * floatfns.c (Fbessel_j0):
7417 * floatfns.c (Fbessel_j1):
7418 * floatfns.c (Fbessel_jn):
7419 * floatfns.c (Fbessel_y0):
7420 * floatfns.c (Fbessel_y1):
7421 * floatfns.c (Fbessel_yn):
7422 * floatfns.c (Ferf):
7423 * floatfns.c (Ferfc):
7424 * floatfns.c (Flog_gamma):
7425 * floatfns.c (Fexp):
7426 * floatfns.c (Fexpt):
7427 * floatfns.c (Flog):
7428 * floatfns.c (Flog10):
7429 * floatfns.c (Fsqrt):
7430 * floatfns.c (Fcube_root):
7431 * floatfns.c (Facosh):
7432 * floatfns.c (Fasinh):
7433 * floatfns.c (Fatanh):
7434 * floatfns.c (Fcosh):
7435 * floatfns.c (Fsinh):
7436 * floatfns.c (Ftanh):
7437 * floatfns.c (Fabs):
7438 * floatfns.c (Ffloat):
7439 * floatfns.c (Flogb):
7440 * floatfns.c (Fceiling):
7441 * floatfns.c (Ffloor):
7442 * floatfns.c (Fround):
7443 * floatfns.c (Ftruncate):
7444 * floatfns.c (Ffceiling):
7445 * floatfns.c (Fffloor):
7446 * floatfns.c (Ffround):
7447 * floatfns.c (Fftruncate):
7448 * fns.c (Fstring_equal):
7449 * fns.c (Fstring_lessp):
7454 * fns.c (Fsubstring):
7456 * fns.c (Fold_assoc):
7457 * fns.c (assoc_no_quit):
7459 * fns.c (Fold_assq):
7460 * fns.c (assq_no_quit):
7462 * fns.c (Fold_rassoc):
7464 * fns.c (Fold_rassq):
7465 * fns.c (rassq_no_quit):
7466 * fns.c (Fremassoc):
7467 * fns.c (remassoc_no_quit):
7469 * fns.c (remassq_no_quit):
7470 * fns.c (Fremrassoc):
7471 * fns.c (Fremrassq):
7472 * fns.c (remrassq_no_quit):
7474 * fns.c (Fplist_get):
7475 * fns.c (Fplist_put):
7476 * fns.c (Fplist_remprop):
7477 * fns.c (Fplist_member):
7478 * fns.c (Flax_plist_get):
7479 * fns.c (Flax_plist_put):
7480 * fns.c (Flax_plist_remprop):
7481 * fns.c (Flax_plist_member):
7483 * fns.c (Fold_equal):
7485 * fns.c (Fbase64_encode_region):
7486 * fns.c (Fbase64_encode_string):
7487 * fns.c (Fbase64_decode_region):
7489 * frame.c (frame_matches_frame_spec):
7490 * frame.c (device_matches_device_spec):
7491 * frame.c (next_frame):
7492 * frame.c (previous_frame):
7493 * frame.c (Fnext_frame):
7494 * frame.c (Fprevious_frame):
7495 * frame.c (Fframe_property):
7496 * frame.c (Fset_frame_height):
7497 * frame.c (Fset_frame_size):
7501 * glyphs.c (decode_error_behavior_flag):
7502 * glyphs.c (Fmake_image_instance):
7503 * indent.c (Findent_to):
7504 * intl.c (Fignore_defer_gettext):
7505 * keymap.c (Fkeymapp):
7506 * keymap.c (Flookup_key):
7508 * lread.c (Fload_internal):
7509 * lread.c (Feval_buffer):
7510 * lread.c (Feval_region):
7511 * macros.c (Fexecute_kbd_macro):
7512 * marker.c (set_marker_internal):
7513 * marker.c (Fset_marker):
7514 * marker.c (set_marker_restricted):
7515 * marker.c (Fcopy_marker):
7516 * marker.c (noseeum_copy_marker):
7518 * menubar.c (Fpopup_menu):
7520 * mule-charset.c (Fcharset_name):
7521 * mule-charset.c (Fchar_charset):
7522 * mule-charset.c (Fchar_octet):
7523 * mule-charset.c (Fsplit_char):
7524 * mule-wnnfns.c (Fwnn_open):
7525 * mule-wnnfns.c (Fwnn_dict_comment):
7526 * mule-wnnfns.c (Fwnn_quit_henkan):
7527 * mule-wnnfns.c (Fwnn_word_toroku):
7528 * mule-wnnfns.c (Fwnn_word_sakujo):
7529 * mule-wnnfns.c (Fwnn_word_use):
7530 * mule-wnnfns.c (Fwnn_hindo_set):
7532 * objects.c (Fmake_color_instance):
7533 * objects.c (Fmake_font_instance):
7534 * print.c (Fwrite_char):
7536 * process.c (mark_process):
7537 * process.c (print_process):
7538 * process.c (get_process_from_usid):
7539 * process.c (Fprocessp):
7540 * process.c (Fprocess_live_p):
7541 * process.c (Fget_process):
7542 * process.c (Fget_buffer_process):
7543 * process.c (get_process):
7544 * process.c (Fprocess_id):
7545 * process.c (Fprocess_name):
7546 * process.c (Fprocess_command):
7547 * process.c (init_process_io_handles):
7548 * process.c (start_process_unwind):
7549 * process.c (Fstart_process_internal):
7550 * process.c (Fopen_multicast_group_internal):
7551 * process.c (Fset_process_window_size):
7552 * process.c (read_process_output):
7553 * process.c (send_process):
7554 * process.c (Fprocess_tty_name):
7555 * process.c (Fset_process_buffer):
7556 * process.c (Fprocess_buffer):
7557 * process.c (Fprocess_mark):
7558 * process.c (set_process_filter):
7559 * process.c (Fset_process_filter):
7560 * process.c (Fprocess_filter):
7561 * process.c (Fprocess_send_region):
7562 * process.c (Fprocess_send_string):
7563 * process.c (exec_sentinel):
7564 * process.c (Fset_process_sentinel):
7565 * process.c (Fprocess_sentinel):
7566 * process.c (status_notify):
7567 * process.c (Fprocess_status):
7568 * process.c (Fprocess_exit_status):
7569 * process.c (process_send_signal):
7570 * process.c (Fprocess_send_eof):
7571 * process.c (deactivate_process):
7572 * process.c (remove_process):
7573 * process.c (Fdelete_process):
7574 * process.c (kill_buffer_processes):
7575 * process.c (Fprocess_kill_without_query):
7576 * process.c (Fprocess_kill_without_query_p):
7578 * rangetab.c (Fget_range_table):
7579 * rangetab.c (Fput_range_table):
7580 * rangetab.c (Fremove_range_table):
7581 * rangetab.c (Fclear_range_table):
7583 * search.c (Fskip_chars_forward):
7584 * search.c (Fskip_chars_backward):
7585 * search.c (Fskip_syntax_forward):
7586 * search.c (Fskip_syntax_backward):
7587 * search.c (search_command):
7588 * search.c (Freplace_match):
7589 * search.c (Fregexp_quote):
7590 * select.c (Fown_selection_internal):
7591 * select.c (Fselection_owner_p):
7592 * select.c (Fselection_exists_p):
7593 * select.c (Fget_selection_internal):
7596 * symbols.c (Fintern):
7597 * symbols.c (Fintern_soft):
7598 * symbols.c (Funintern):
7599 * symbols.c (Fapropos_internal):
7600 * symbols.c (Fset_default):
7602 * syntax.c (Fsyntax_table_p):
7603 * syntax.c (Fcopy_syntax_table):
7604 * syntax.c (Fset_syntax_table):
7605 * syntax.c (Fchar_syntax):
7606 * syntax.c (syntax_match):
7607 * syntax.c (Fmatching_paren):
7608 * syntax.c (Fforward_word):
7609 * syntax.c (scan_lists):
7610 * syntax.c (Fscan_lists):
7611 * syntax.c (Fscan_sexps):
7612 * syntax.c (Fparse_partial_sexp):
7613 * toolbar.c (Fcheck_toolbar_button_syntax):
7616 * window.c (Fwindowp):
7617 * window.c (Fwindow_live_p):
7618 * window.c (Fwindow_point):
7619 * window.c (Fdelete_window):
7620 * window.c (Fnext_window):
7621 * window.c (Fprevious_window):
7622 * window.c (Fother_window):
7623 * window.c (window_loop):
7624 * window.c (Fget_lru_window):
7625 * window.c (Fsplit_window):
7626 * window.c (Fenlarge_window):
7627 * window.c (Fenlarge_window_pixels):
7628 * window.c (Fshrink_window):
7629 * window.c (Fshrink_window_pixels):
7630 * window.c (change_window_height):
7631 * window.c (Fwindow_configuration_p):
7632 * window.c (Fcurrent_window_configuration):
7634 * casefiddle.c (casify_object):
7635 * casefiddle.c (Fupcase):
7636 * casefiddle.c (Fdowncase):
7637 * casefiddle.c (Fcapitalize):
7638 * casefiddle.c (Fupcase_initials):
7639 * casefiddle.c (casify_region_internal):
7640 * casefiddle.c (casify_region):
7641 * casefiddle.c (Fupcase_region):
7642 * casefiddle.c (Fdowncase_region):
7643 * casefiddle.c (Fcapitalize_region):
7644 * casefiddle.c (Fupcase_initials_region):
7645 * casefiddle.c (Fupcase_word):
7646 * casefiddle.c (Fdowncase_word):
7647 * casefiddle.c (Fcapitalize_word):
7648 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
7649 Replace 0 with '\0' when working with bytes.
7650 Replace initial "(" with "\(" in docstrings.
7652 2000-11-01 Martin Buchholz <martin@xemacs.org>
7654 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
7656 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
7658 2000-10-31 Martin Buchholz <martin@xemacs.org>
7660 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
7662 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
7664 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
7667 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
7669 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
7670 (inhibit_auto_save_session): New variable.
7671 (vars_of_fileio): Declare and initialize them.
7672 * fileio.c (Fdo_auto_save): Don't create session file if
7673 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
7675 2000-10-31 Martin Buchholz <martin@xemacs.org>
7677 * sgiplay.c (play_internal): C++ compilability.
7678 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
7679 * callproc.c (Fold_call_process_internal):
7680 Remove unused vars `env', `first'.
7681 * scrollbar.c (update_scrollbar_instance):
7682 #### unused var `current_window'.
7683 * redisplay-tty.c: Put currently unused vars insert_mode_on,
7684 etc. within #ifdef NOT_YET.
7685 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
7686 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
7687 * specifier.c (specifier_instance):
7688 #### unused var `tag'.
7689 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
7691 2000-10-27 Martin Buchholz <martin@xemacs.org>
7694 * fns.c (list_sort):
7695 * fns.c (Ffillarray):
7696 * fns.c (bytecode_nconc2):
7699 * fns.c (Fmapconcat):
7700 Be pedantically 64-bit correct. For the time when someone will
7701 want to have a list with length > 2**32.
7703 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7704 Work around MIPSpro compiler bug.
7706 * process-unix.c (unix_kill_child_process): Add snarky comment.
7707 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
7709 * config.h.in: Oops, _getpt ==> _getpty
7711 2000-10-26 Martin Buchholz <martin@xemacs.org>
7715 Use void*, not char*, as return type of alloca().
7717 * alloc.c (free_marker): Side effect inside assert expression!
7719 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
7721 * mule-charset.c (Fset_charset_ccl_program): To check
7722 if the given ccl program is valid, use setup_ccl_program()
7723 instead of CHECK_VECTOR().
7724 (Fmake_charset): Likewise.
7726 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
7728 * faces.c (get_extent_fragment_face_cache_index):
7729 Fix cachel.merged_faces memory leak.
7731 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
7733 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
7734 Reset MSB of octets obtained by DECODE_SJIS
7735 because of the incompatibility with Emacs.
7736 (ccl_driver)<CCL_ENCODE_SJIS>:
7737 Set MSB of octets before passing them to
7738 ENCODE_SJIS because of the incompatibility
7741 2000-10-18 Daiki Ueno <ueno@unixuser.org>
7743 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
7744 (DECLARE_LRECORD): Undo the last change.
7745 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
7747 2000-10-17 Daiki Ueno <ueno@unixuser.org>
7749 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
7750 the implementation to lrecord_implementations_table.
7752 2000-10-14 Daiki Ueno <ueno@unixuser.org>
7754 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
7755 initial value of `lrecord_type_##c_name' and
7756 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
7757 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
7758 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
7759 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
7760 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
7762 2000-10-17 Martin Buchholz <martin@xemacs.org>
7764 * miscplay.c (sndcnv8S_2mono):
7765 (sndcnv2monounsigned):
7766 (sndcnvULaw_2linear):
7768 Remove implementation-defined behavior.
7770 2000-10-12 Martin Buchholz <martin@xemacs.org>
7772 * input-method-xlib.c: Warning suppression.
7774 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
7776 * mule-ccl.c: Sync up with Emacs 21.0.90.
7777 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
7779 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
7781 (ccl_driver[WriteMultibyteChar2]): Bug fix.
7782 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
7783 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
7784 leading char belongs to official 2-dimensional charset.
7785 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
7786 write the given character as is. Otherwise,
7787 if it is a multibyte char, convert it by
7788 non_ascii_set_charptr_emchar, then write it.
7789 (CCL_WRITE_STRING): Likewise.
7790 (ccl_get_compiled_code): New function.
7791 (setup_ccl_program): When ccl_prog is invalid,
7793 (Fregister_code_conversion_map): New function.
7794 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
7796 * mule-ccl.h: Sync up with Emacs 21.0.90.
7797 (Fregister_ccl_program): export it.
7799 * redisplay-msw.c (separate_textual_runs):
7800 If ccl program is not valid, don't do ccl conversion.
7802 * redisplay-x.c (separate_textual_runs): Ditto.
7804 * file-coding.c (Fmake_coding_system):
7805 When type is ccl and value is vector, register it
7806 with a proper symbol. And checks whether the
7807 given ccl program is valid.
7808 (mule_decode): When calling ccl_driver, if src indicates
7809 NULL pointer, set an empty string instead.
7810 (mule_encode): Likewise.
7812 2000-10-11 Martin Buchholz <martin@xemacs.org>
7814 The following large batch of changes gets us back to a state of
7815 C++ compilability. Extbyte is now a char, which means that
7816 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
7818 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
7820 * sound.c (Fplay_sound): Type correctness.
7822 * select-x.c (hack_motif_clipboard_selection): Type correctness.
7823 (x_get_window_property): Type correctness.
7824 (receive_incremental_selection): unsigned char ==> Extbyte
7825 (selection_data_to_lisp_data): unsigned char ==> Extbyte
7826 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
7827 (Fx_store_cutbuffer_internal): Type correctness.
7829 * process-unix.c (try_to_initialize_subtty): Type correctness.
7831 * objects-x.c (x_print_color_instance): Type correctness.
7832 (x_print_font_instance): Type correctness.
7833 (x_list_fonts): SExtbyte ==> Extbyte.
7834 (valid_x_font_name_p): SExtbyte ==> Extbyte.
7835 (x_find_charset_font): SExtbyte ==> Extbyte.
7836 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
7837 (truename_via_XListFonts): SExtbyte ==> Extbyte.
7838 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
7841 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
7842 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
7843 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
7844 (BYTE_C0_P): Use bit ops for char-signedness safety.
7845 (BYTE_C1_P): Use bit ops for char-signedness safety.
7846 (CHARSET_BY_LEADING_BYTE):
7847 (CHARSET_BY_ATTRIBUTES):
7848 Always use inline function.
7849 Use type_checking_assert.
7852 * mule-charset.c (non_ascii_charptr_copy_char):
7853 Modify to work with both ASCII and non-ASCII characters.
7854 Improve docs and variable names.
7855 Replace over-clever fall-through switch with a simple loop.
7856 (Lstream_get_emchar_1):
7857 Replace over-clever fall-through switch with a simple loop.
7859 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7860 Warning suppression.
7862 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
7863 the return value of Lstream_getc, which could be EOF as well.
7865 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
7867 * lisp.h: Make Extbyte a char, not unsigned char, so that external
7868 APIs can be used on Extbytes without casts. Risky!
7872 * input-method-xlib.c (XIM_init_device):
7873 Use Xlib.h instead of IntrinsicP.h.
7874 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
7875 which will break in X11R7.
7876 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
7877 to call XRegisterIMInstantiateCallback with correct types.
7879 * gui-x.c (button_item_to_widget_value): Type correctness.
7881 * glyphs.c (bitmap_to_lisp_data): Type correctness.
7883 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
7884 (xbm_instantiate_1): Type correctness.
7885 (BUILD_GLYPH_INST): Type correctness.
7887 * fileio.c (Fsubstitute_in_file_name): Type correctness.
7890 (decode_coding_sjis):
7891 (decode_coding_big5):
7892 (decode_coding_ucs4):
7893 (decode_coding_utf8):
7894 (decode_coding_iso2022):
7895 (decode_coding_no_conversion):
7896 Make all decoding functions take an Extbyte * arg.
7897 (encode_coding_sjis):
7898 (encode_coding_big5):
7899 (encode_coding_ucs4):
7900 (encode_coding_utf8):
7901 (encode_coding_iso2022):
7902 (encode_coding_no_conversion):
7903 Make all encoding functions take a Bufbyte * arg.
7904 Use size_t instead of unsigned int for memory sizes.
7905 Only cast to unsigned char whenever dereferencing Extbyte *.
7907 * doc.c (unparesseuxify_doc_string): Type correctness.
7909 * console-x.c (split_up_display_spec):
7910 Rewrite without using details of internal string representation.
7911 (x_semi_canonicalize_device_connection): Type correctness.
7914 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
7915 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
7916 (HAVE_XFREE386): Removed.
7918 * buffer.h (DEC_CHARPTR): `const' correctness.
7919 (bufbyte_strcmp): New.
7920 (bufbyte_memcmp): New.
7922 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
7924 * buffer.h (XCHAR_OR_CHAR_INT):
7925 Always use inline function.
7926 Remove redundant type checking assert() - XINT will abort quite nicely.
7928 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
7930 * search.c (Freplace_match): Set newtext to an empty string.
7932 2000-10-10 Martin Buchholz <martin@xemacs.org>
7934 * s/decosf1-3.h: Remove #include of stropts.h
7935 * s/ptx.h: Remove #include of stropts.h
7936 * s/usg5-4.h: Remove #include of stropts.h
7939 Use stropts.h, not sys/stropts.h.
7940 Use strtio.h, not sys/strtio.h.
7942 2000-10-04 Martin Buchholz <martin@xemacs.org>
7944 * XEmacs 21.2.36 is released.
7946 2000-09-21 Andy Piper <andy@xemacs.org>
7948 * glyphs-x.c (x_redisplay_widget): make sure non-structural
7949 changes still involve copying the widget tree.
7950 (update_widget_face): make sure a change is register in the widget
7951 tree. Call update_tab_widget_face appropriately.
7952 (update_tab_widget_face): ditto.
7953 (x_tab_control_redisplay): make sure non-structural changes still
7954 involve copying the widget tree.
7956 2000-08-31 Daiki Ueno <ueno@unixuser.org>
7958 * lread.c (locate_file): Check the path element is non-nil.
7960 2000-10-02 Martin Buchholz <martin@xemacs.org>
7962 * lisp.h: Warning suppression for SCO compilers.
7964 * redisplay-tty.c (reset_tty_modes): Fix crash.
7965 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
7967 2000-09-27 Martin Buchholz <martin@xemacs.org>
7969 Big signal/process handling overhaul. Bugs fixed:
7970 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
7971 M-x comint-kill-subjob should work for both values nil and t of
7972 process-connection-type. It was broken on most platforms.
7973 Testing on Irix and Cygwin still needed. Other plaforms tested.
7974 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
7975 * process-unix.c: Signal/Process handling overhaul.
7976 (pty_name): make 64 bytes, as `expect' does, for paranoia.
7977 (allocate_pty): Use all available modern methods of allocating
7978 ptys, falling back to old style BSD allocation as a last resort.
7979 Use allegedly more secure Unix98 pty allocation by default.
7980 (allocate_pty_the_old_fashioned_way): New. the last resort.
7981 (unix_create_process): Push ptem, ldterm, ttcompat where
7982 available. Autoconfiscate.
7983 (try_to_initialize_subtty): New.
7984 (unix_kill_child_process): Proper signal handling for ptys on most
7985 platforms, using special knowledge of AIX, BSD, etc...
7986 (unix_create_process): Always disconnect_controlling_terminal() for
7987 subprocesses, whether using ptys or not.
7988 * process.h: Remove old getpt-dependent PTY code.
7989 * process.c (Fprocess_send_signal): New, obvious generic function.
7990 (decode_signal): New.
7991 (Finterrupt_process):
7995 (Fcontinue_process):
7996 (Fsignal_process): Use decode_signal.
7997 (process_send_signal):
7998 Many docstring corrections.
7999 Allow any signal to be sent to a process object.
8000 * config.h.in: Add symbols for big signal/process overhaul.
8001 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8002 * sysproc.h: Include process-related headers, where available:
8003 sys/stropts.h sys/strtio.h pty.h libutil.h
8011 Remove old S&M pty stuff.
8012 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8013 * systty.h: Simplify cpp hackery, improve comments.
8014 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8016 * editfns.c (Fformat_time_string):
8017 Be a little more paranoid with the return value of ctime.
8019 * fileio.c (check_executable):
8021 Use symbolic constants X_OK, W_OK.
8023 * console-x.c (split_up_display_spec): Fix a warning.
8025 2000-10-02 Martin Buchholz <martin@xemacs.org>
8027 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8028 * ntproc.c (sys_spawnve): make_string ==> build_string
8029 Small clarity improvements.
8031 2000-09-30 Martin Buchholz <martin@xemacs.org>
8033 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8035 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8037 * config.h.in (HAVE_STRCASECMP): Remove.
8039 2000-09-29 Martin Buchholz <martin@xemacs.org>
8041 * redisplay-output.c (redisplay_output_pixmap):
8042 Cleaner and possibly more 64-bit correct code.
8044 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
8046 * dumper.c (pdump_load_finish): move restoration of
8047 `noninteractive1' to emacs.c (main_1).
8048 * emacs.c (main_1): protect LISP-visible command-line flags
8051 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
8053 * Makefile.in.in (versionclean): Use EXE_TARGET and
8054 DUMP_TARGET instead of literal program names.
8056 2000-09-20 Martin Buchholz <martin@xemacs.org>
8058 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8060 2000-09-19 Martin Buchholz <martin@xemacs.org>
8062 * *: Spelling mega-patch
8064 2000-09-19 Martin Buchholz <martin@xemacs.org>
8066 * fns.c (bad_bad_turtle):
8067 Delete "Eek!" comment, since we fixed the bug to which it refers.
8069 2000-09-16 Martin Buchholz <martin@xemacs.org>
8071 * alloca.c: Replace REGISTER with register.
8073 2000-09-16 Daiki Ueno <ueno@unixuser.org>
8075 * file-coding.c (ucs_to_char): Use countof.
8077 2000-09-16 Martin Buchholz <martin@xemacs.org>
8079 * file-coding.c: (ucs_to_char):
8080 (complex_vars_of_file_coding):
8081 Use countof instead of sizeof.
8082 Use CHECK_NATNUM instead of CHECK_INT.
8084 * sysdep.c (strcasecmp): Remove.
8085 * device-x.c (ascii_strcasecmp): New.
8086 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8087 Avoid using non-standard non-portable strcasecmp.
8089 2000-09-16 Martin Buchholz <martin@xemacs.org>
8091 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8092 * font-lock.c: remove reference to emacsfns.h.
8093 * search.c: small doc improvement.
8094 * event-Xt.c: correct file names in comments.
8095 * console-x.h Correct file names in comments.
8096 * frame.c: Correct file names in comments.
8097 * event-stream.c: remove Energize from comments.
8099 2000-09-15 Martin Buchholz <martin@xemacs.org>
8101 * symeval.h (DEFERROR_STANDARD):
8104 (DEFSYMBOL_NO_DUMP):
8105 (DEFSYMBOL_MULTIWORD_PREDICATE):
8106 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8108 The construct &##name is not sensible C.
8109 Fixes compilation errors with Unixware native compiler.
8111 2000-09-14 Martin Buchholz <martin@xemacs.org>
8113 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8114 (next_frame_internal): Removed. We now just have next_frame.
8116 Write a simpler and cleaner one-pass algorithm.
8117 Remove called_from_delete_device arg and #ifdefed-out code.
8119 Renamed from prev_frame. Update callers.
8120 Cleaned up to have an analogous implementation to next_frame.
8121 (other_visible_frames_internal): Remove the
8122 called_from_delete_device bogus arg, and hence, remove this
8123 function. Just use other_visible_frames().
8125 * window.c (Fnext_window):
8127 Since next_frame() is guaranteed to return a frame, remove check
8128 for nil inserted in previous patch.
8131 Make code look more like Fnext_window.
8133 Respect the `console' arg when iterating through windows.
8134 Fixes bug: (get-buffer-window buffer t device) not respecting
8136 This function needs more work, as others have pointed out.
8138 * frame.h: Rename prev_frame to previous_frame.
8139 device_matches_console_spec no longer takes a `frame' arg.
8144 Use EMACS_BLOCK_SIGNAL instead of sigblock.
8145 From "Golubev I. N." <gin@mo.msk.ru>.
8147 * make-src-depend: Fix typo.
8149 2000-09-13 Martin Buchholz <martin@xemacs.org>
8151 * window.c (Fnext_window):
8152 next_frame() might return nil, not a frame.
8154 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8156 * frame.c (next_frame_internal):
8157 We've passed a frame if we've passed its device.
8159 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8160 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8162 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
8164 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8165 Allow option to suppress accelerators in menu/dialog items.
8166 (populate_or_checksum_helper): Pass dialog title through above.
8168 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
8170 * event-msw.c (mswindows_key_to_emacs_keysym):
8171 Add "pause" key, fix "menu" key.
8173 2000-09-09 Martin Buchholz <martin@xemacs.org>
8175 * eval.c (reinit_vars_of_eval):
8176 Increase max_lisp_eval_depth to 1000,
8177 required for thai-xtis.el to byte-compile under some circumstances.
8179 2000-09-04 Martin Buchholz <martin@xemacs.org>
8181 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8184 2000-09-01 Martin Buchholz <martin@xemacs.org>
8186 * make-src-depend: Make the generated Makefiles smaller.
8188 * s/hpux.h (SETUP_SLAVE_PTY):
8189 Provide a %d in the format string for the errno argument.
8191 * editfns.c (Ftemp_directory):
8193 Avoid buffer overrun on very long file name.
8195 * input-method-xlib.c (XIM_init_device):
8196 6th parameter of XRegisterIMInstantiateCallback has different
8197 pointer types on different OSes, so simply cast to (void *).
8199 * unexhp9k800.c: Warning fixes. Fiddly changes.
8201 * sysdll.c (dll_open):
8202 shl_load will hang hard if passed a NULL filename.
8203 Simply return NULL for compatibility with dlopen.
8204 * sysdll.c: Conform to XEmacs coding standards.
8206 * sysdep.c (get_pty_max_bytes):
8207 Support pty input lines longer than 512 bytes on HP-UX 10.20.
8209 2000-08-31 Martin Buchholz <martin@xemacs.org>
8211 * tooltalk.c: Add #include <syssignal.h>
8213 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
8215 * s/hpux.h: Don't use undefined function sigunblock().
8217 2000-08-31 Martin Buchholz <martin@xemacs.org>
8219 * config.h.in: Add HAVE_BALLOON_HELP.
8220 * emacs.c: Use HAVE_BALLOON_HELP.
8221 * Makefile.in.in (x_objs):
8222 Make Balloon Help conditional on finding shape.h.
8224 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
8226 * syntax.c (regex_emacs_buffer_p): New variable.
8227 * syntax.h (regex_emacs_buffer_p): extern.
8228 * search.c (looking_at_1):
8230 (fast_string_match):
8231 (search_buffer): Set regex_emacs_buffer_p.
8232 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8233 when before_dot, at_dot, after_dot.
8235 2000-08-23 Andy Piper <andy@xemacs.org>
8237 * gui-x.c (popup_selection_callback): Only set action_occurred
8238 when we really have an image instance.
8239 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8241 2000-08-23 Andy Piper <andy@xemacs.org>
8243 * gui-msw.c (mswindows_handle_gui_wm_command): set
8245 * gui-x.c (popup_selection_callback): ditto.
8247 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8248 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8249 (struct Lisp_Image_Instance): add action_occurred flag.
8251 * glyphs.c (redisplay_subwindow): use action_occurred flag.
8252 (image_instance_changed): ditto.
8253 (reset_frame_subwindow_instance_cache): only unmap windows - do
8254 not remove them from the cache also.
8256 * glyphs-widget.c (tab_control_update): better debug.
8257 (progress_gauge_update): ditto.
8258 (layout_update): ditto.
8259 (layout_instantiate): ditto.
8260 (tab_control_order_only_changed): cope with null pending items.
8262 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8263 debug. Force selection of an item when an action occurred. Cope
8264 with null pending_items.
8265 (mswindows_progress_gauge_redisplay): better debug.
8266 * glyphs-x.c (x_tab_control_redisplay): ditto.
8268 * redisplay.c (redisplay_frame): reset the frame cache if the
8271 * window.c (Fset_window_configuration): potentially re-enable
8273 (window_unmap_subwindows): need to finalize instances here since
8274 it is only used in mark_window_as_deleted.
8276 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
8278 * nas.c (SndOpenDataForReading):
8279 nas.c (WaveOpenDataForReading):
8280 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8281 Somehow escaped from the 2000-08-14 patch.
8283 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
8285 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8286 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8288 2000-08-21 Andy Piper <andy@xemacs.org>
8290 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8291 window if it is not already displayed.
8293 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8294 it is not already displayed.
8296 * window.c (Fset_window_configuration): don't reset the frame
8299 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8300 instances from the frame cache if we are actually finalizing them.
8301 (reset_frame_subwindow_instance_cache): reset frame cache only
8302 after unmapping everything.
8303 (map_subwindow): set displayed flag after mapping.
8305 2000-08-21 Martin Buchholz <martin@xemacs.org>
8307 * data.c (indirect_function):
8308 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8310 * eval.c (function_argcount):
8311 Use original function when signaling errors.
8313 2000-08-18 Andy Piper <andy@xemacs.org>
8315 * frame.c (delete_frame_internal): use new
8316 free_frame_subwindow_instances name.
8318 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8319 (add_tab_item): make return type correct.
8320 (mswindows_tab_control_instantiate): assert index of tab.
8321 (mswindows_tab_control_redisplay): Re-code to use
8322 gui_item_equal_sans_selected and gui_item_list_find_selected.
8324 * glyphs-widget.c (tab_control_update): Correct comment.
8326 * window.c (window_unmap_subwindows): use new
8327 unmap_subwindow_instance_cache_mapper.
8328 (window_unmap_subwindows_cache_mapper): deleted.
8329 (Fset_window_configuration): comparisons should now be with
8330 EQ. Preserve the subwindow instance cache across configuration
8332 (allocate_window): ditto.
8333 (make_dummy_parent): ditto.
8335 * glyphs.c (free_frame_subwindow_instances): rename from
8336 free_frame_subwindow_instance_cache. finalize all instances rather
8337 than just those in the display cache.
8338 (finalize_all_subwindow_instances): walk windows unmapping and
8339 finalizing subwindows.
8340 (unmap_subwindow_instance_cache_mapper): moved from
8341 window.c. Allow finalization as well as unmapping.
8343 * gui.c (gui_item_list_find_selected): new function.
8345 * gui.h (gui_item_list_find_selected): declare.
8347 * glyphs-x.c (x_tab_control_redisplay): pick tab
8348 explicitly. Re-code to use gui_item_equal_sans_selected and
8349 gui_item_list_find_selected.
8351 * glyphs-x.h: add lwlib-utils.h
8353 * buffer.c (Frecord_buffer): undo previous change.
8355 2000-08-09 Vin Shelton <acs@xemacs.org>
8357 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8358 possible. Create temporary files more securely. The patch was
8359 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8360 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
8361 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8364 2000-08-07 Ben Wing <ben@xemacs.org>
8366 * getloadavg.c: remove duplicate (and windows-breaking)
8367 includes of fcntl.h and sys/file.h.
8369 * nt.c: remove duplicate getloadavg() definition.
8371 * sysdll.h (Qdll_filename_encoding): add missing stand-in
8374 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
8376 * eval.c (function_argcount): If function needs to be autoloaded
8377 actually use the loaded definition.
8380 2000-08-05 Ben Wing <ben@xemacs.org>
8382 * getloadavg.c: add prototype for getloadavg(). remove
8383 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8384 of the code). remove duplicate header includes.
8386 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8388 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8389 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8390 useful load average.
8392 * alloc.c (reinit_alloc_once_early): removed references to
8393 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8394 the lisp vars are the only things referencing the malloc_sbrk_*
8395 vars, and they were already if 0'd out. these vars only exist
8396 in the older malloc.c, which is basically unused, and they're
8397 only for informational purposes.
8399 * m\*.h: removed useless VIRT_ADDR_VARIES.
8401 * m\powerpc.h: removed stray NO_ARG_ARRAY.
8403 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
8405 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8406 color if the image is a mono pixmap.
8408 2000-07-30 Ben Wing <ben@xemacs.org>
8410 * Makefile.in.in (release):
8413 * buffer.c (directory_is_current_directory):
8414 * dired-msw.c (mswindows_get_files):
8416 * dired.c (Fdirectory_files):
8417 * dired.c (file_name_completion_stat):
8418 * dired.c (Ffile_attributes):
8419 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8420 preprocessor tricks, to avoid problems on some machines
8423 * callproc.c (egetenv): GC docs.
8426 * console-msw.h (struct mswindows_dialog_id):
8427 * lrecord.h (lrecord_type):
8428 New object for use with MSW dialogs.
8430 * console.h (struct console_methods):
8431 New enable/disable frame methods, for proper modal dialogs.
8433 * device-msw.c (msprinter_default_printer): Fix to follow
8434 proper Mule conventions.
8437 * device-msw.c (signal_open_printer_error):
8438 * device-msw.c (msprinter_init_device):
8439 * device-msw.c (ensure_not_printing):
8440 * device-msw.c (plist_get_margin):
8441 * device-msw.c (Fmsprinter_select_settings):
8442 * device-msw.c (finalize_devmode):
8443 * device-msw.c (Fmsprinter_settings_despecialize):
8444 * device-msw.c (signal_enum_priner_error):
8445 * extents.c (decode_extent):
8446 * extents.c (decode_map_extents_flags):
8447 * extents.c (decode_extent_at_flag):
8448 * extents.c (Fextent_at):
8449 * extents.c (Fextents_at):
8450 * extents.c (symbol_to_glyph_layout):
8451 [[[[2]]]] Use structured errors.
8454 * dialog-msw.c (mswindows_is_dialog_msg):
8455 * dialog-msw.c (mark_mswindows_dialog_id):
8456 * dialog-msw.c (dialog_proc):
8457 * dialog-msw.c (handle_question_dialog_box):
8458 * dialog-msw.c (syms_of_dialog_mswindows):
8459 Define new object to clean up marking; use it as a dialog identifier.
8460 Call new delete-dialog-box-hook.
8462 * dialog-x.c (dbox_selection_callback):
8463 * dialog-x.c (dbox_descriptor_to_widget_value):
8464 * dialog-x.c (x_make_dialog_box_internal):
8465 Call new delete-dialog-box-hook.
8469 * dialog.c (syms_of_dialog):
8470 * dialog.c (vars_of_dialog):
8471 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
8474 * eval.c (signal_call_debugger):
8475 when noninteractive, output stack traces on the console instead
8476 of in a (never-seen) buffer.
8478 * eval.c (signal_type_error):
8479 * eval.c (invalid_argument_2):
8481 new funs for use w/structured errors.
8484 * event-Xt.c (x_to_emacs_keysym):
8485 * event-Xt.c (describe_event):
8486 * event-Xt.c (emacs_Xt_event_handler):
8487 * event-Xt.c (vars_of_event_Xt):
8489 * event-msw.c (mswindows_wnd_proc):
8490 * event-msw.c (vars_of_event_mswindows):
8491 rename {x,mswindows}-debug-events to debug-{}-events for
8492 consistency with other debug-foo variables.
8495 document next-event more clearly.
8497 * fileio.c (Ffile_name_directory):
8498 * fileio.c (Ffile_name_nondirectory):
8499 * fileio.c (Funhandled_file_name_directory):
8500 * fileio.c (file_name_as_directory):
8501 * fileio.c (Ffile_name_as_directory):
8502 * fileio.c (directory_file_name):
8503 * fileio.c (Fdirectory_file_name):
8504 * fileio.c (Fmake_temp_name):
8505 * fileio.c (Ffile_truename):
8506 * fileio.c (Fsubstitute_in_file_name):
8507 * fileio.c (expand_and_dir_to_file):
8508 * fileio.c (barf_or_query_if_file_exists):
8509 * fileio.c (check_executable):
8510 * fileio.c (Ffile_exists_p):
8511 * fileio.c (Ffile_writable_p):
8512 * fileio.c (Ffile_directory_p):
8513 * fileio.c (Ffile_regular_p):
8514 * fileio.c (Ffile_modes):
8515 * fileio.c (Ffile_newer_than_file_p):
8516 * fileio.c (Fverify_visited_file_modtime):
8517 * fileio.c (Fset_visited_file_modtime):
8518 * fileio.c (auto_save_1):
8523 * frame-msw.c (mswindows_init_frame_1):
8524 * frame-msw.c (mswindows_enable_frame):
8525 * frame-msw.c (error_frame_unsizable):
8526 * frame-msw.c (msprinter_init_frame_1):
8527 * frame-msw.c (msprinter_init_frame_3):
8528 * frame-msw.c (console_type_create_frame_mswindows):
8530 implement new enable/disable frame methods.
8533 * frame-x.c (x_enable_frame):
8534 * frame-x.c (console_type_create_frame_x):
8535 implement new enable/disable frame methods.
8538 * frame.c (Fdisable_frame):
8539 * frame.c (syms_of_frame):
8540 * frame.h (struct frame):
8541 implement new enable/disable frame methods/functions.
8546 * glyphs-msw.c (mswindows_widget_instantiate):
8547 comment that initial-focus should be implemented.
8550 * glyphs-widget.c (check_valid_instantiator):
8551 * glyphs-widget.c (check_valid_orientation):
8552 * glyphs-widget.c (check_valid_tab_orientation):
8553 * glyphs-widget.c (check_valid_justification):
8554 * glyphs-widget.c (check_valid_border):
8555 * glyphs-widget.c (check_valid_callback):
8556 * glyphs-widget.c (check_valid_int_or_function):
8557 * glyphs-widget.c (check_valid_string_or_vector):
8558 * glyphs-widget.c (check_valid_item_list_1):
8559 * glyphs-widget.c (widget_validate):
8560 * glyphs-widget.c (combo_box_validate):
8561 * glyphs-widget.c (widget_instantiate):
8562 * glyphs-widget.c (syms_of_glyphs_widget):
8563 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
8564 * glyphs-widget.c (image_instantiator_combo_box):
8565 * glyphs-widget.c (image_instantiator_scrollbar):
8566 * glyphs-widget.c (image_instantiator_tab_control):
8567 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
8569 support (unimplemented) keyword initial-focus.
8570 reindent long macros.
8572 * glyphs-x.c (x_redisplay_widget):
8573 * glyphs-x.c (x_button_instantiate):
8574 * glyphs-x.c (x_button_redisplay):
8575 * glyphs-x.c (x_progress_gauge_instantiate):
8576 * glyphs-x.c (x_edit_field_instantiate):
8577 * glyphs-x.c (x_combo_box_instantiate):
8578 * glyphs-x.c (x_tab_control_instantiate):
8579 * glyphs-x.c (x_label_instantiate):
8581 * gui-x.c (button_item_to_widget_value):
8582 * gui-x.c (gui_items_to_widget_values_1):
8583 * gui-x.c (gui_item_children_to_widget_values):
8584 * gui-x.c (gui_items_to_widget_values):
8586 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8587 add new flag to gui-parsing routines to indicate whether
8588 accelerator specs should be supported.
8590 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
8592 * glyphs.h (struct Lisp_Image_Instance):
8593 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
8594 add initial-focus flag.
8597 * gui.c (syms_of_gui):
8598 * gui.c (vars_of_gui):
8599 clean up menu-no-selection-hook.
8602 support delete-dialog-box-hook.
8604 * lread.c (Fload_internal):
8605 * lread.c (locate_file_in_directory_mapper):
8609 * lrecord.h (struct toolbar_button):
8610 * lrecord.h (syms_of_toolbar):
8611 document how to create a new object.
8613 * menubar-msw.c (mswindows_char_is_accelerator):
8614 may be called on frames w/o menus.
8616 * menubar.c (vars_of_menubar):
8617 clean up :filter docs.
8624 * process-nt.c (validate_signal_number):
8625 * process-nt.c (signal_cannot_launch):
8626 * process-nt.c (nt_create_process):
8627 * process-nt.c (nt_send_process):
8628 * process-nt.c (nt_kill_child_process):
8629 * process-nt.c (nt_open_network_stream):
8630 * process-nt.c (syms_of_process_nt):
8632 delete quote-handling. call new lisp code that does it better.
8634 * process-unix.c (connect_to_file_descriptor):
8635 * process-unix.c (allocate_pty):
8636 * process-unix.c (unix_send_process):
8637 * process-unix.c (unix_kill_child_process):
8638 * process-unix.c (unix_open_network_stream):
8639 * process-unix.c (unix_open_multicast_group):
8643 * process.c (Fstart_process_internal):
8644 (2). need to canonicalize process path even if absolute.
8646 * select-msw.c (symbol_to_ms_cf):
8647 * select-msw.c (ms_cf_to_symbol):
8648 * select-msw.c (cf_is_autofreed):
8649 * select-msw.c (mswindows_destroy_selection):
8651 * select.c (syms_of_select):
8653 support dibv5, fix bugs. (from Mike Alexander)
8655 * select.c (Fget_selection_internal):
8656 * select.c (select_convert_out):
8659 * sysdep.c (xemacs_stat):
8664 but keep original stat() here because we provide encapsulation
8668 * sysfile.h (fstat):
8669 remove stat garbage.
8673 don't include tchar.h. it's inappropriate because it makes
8674 compile-time distinctions when we want runtime distinctions.
8675 (we provide our own tchar replacements)
8678 use default object printer for toolbar-button.
8681 make sure we don't encapsulate.
8683 * window.c (vars_of_window):
8684 emphasize that temp-buffer-show-hook is obsolete.
8686 2000-08-05 Martin Buchholz <martin@xemacs.org>
8688 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
8689 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
8691 * events.c (Fevent_timestamp_lessp):
8692 Not 64-bit clean. Use EMACS_INT, not int.
8694 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
8696 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
8697 unsigned int and changed the last enum to
8698 lrecord_type_last_built_in_type.
8699 (lrecord_implementations_table): changed prototype to know how
8700 long the array is supposed to be.
8701 (lrecord_type_count): new unsigned int to keep track of the
8702 current number of lisp lrecord types.
8703 (DEFINE_EXTERNAL_LRECORD):
8704 (DECLARE_EXTERNAL_LRECORD): Added these two for external
8705 dynamic-modules to declare new lisp types. They are the same
8706 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
8707 int for each new type, and increment lrecord_type_count by 1.
8709 * alloc.c (lrecord_implementations_table): Changed to reference
8710 lrecord_type_last_built_in_type for the size of the array.
8711 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
8713 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
8715 * glyphs.h (check_valid_item_list): Renamed from
8716 check_valid_item_list_1.
8718 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
8720 * select.c (Qselect_coerce): New.
8721 * select.c (Vselection_coercion_alist): New.
8722 * select.c (syms_of_select): Declare.
8723 * select.c (get-selection-internal): Use it.
8724 Use the new select-coerce functionality.
8726 * select.c (select_coerce): New.
8727 * select.h (select_coerce): Declare.
8728 New function to coerce one type of data into another.
8730 2000-08-03 Martin Buchholz <martin@xemacs.org>
8732 * callproc.c (Fcall_process_internal):
8733 (Fcall_process_internal):
8734 * process-unix.c (unix_create_process):
8735 Save and restore the value of errno, so that error messages are accurate.
8737 2000-08-01 Martin Buchholz <martin@xemacs.org>
8739 * elhash.c (print_hash_table):
8740 Fix printing of hash tables to also use `key-and-value' instead of `t'.
8741 Prettify docstrings and indentation.
8743 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
8745 * window.c (Fwindow_pixel_edges): Subtract frame border and
8748 2000-07-31 Andy Piper <andy@xemacs.org>
8750 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
8751 will acknowledge the change.
8753 * glyphs.h: declare tab_control_order_only_changed.
8755 * glyphs-x.c (x_tab_control_redisplay): use
8756 tab_control_order_only_changed.
8758 * glyphs-widget.c (tab_control_order_only_changed): new function.
8760 * glyphs-msw.c (mswindows_tab_control_redisplay): use
8761 tab_control_order_only_changed.
8763 * gui.c (gui_item_equal_sans_selected): new function.
8764 (gui_item_equal): use it.
8766 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
8767 :properties in favor of :items..
8769 * glyphs-widget.c (check_valid_item_list): rename from
8770 check_valid_item_list_1.
8771 (check_valid_item_list_1): renamed.
8772 (combo_box_validate): deprecate :properties in favor of :items.
8773 (widget_instantiate): ditto.
8774 (tab_control_update): ditto.
8775 (image_instantiator_combo_box): ditto.
8776 (image_instantiator_tree_view): ditto.
8777 (image_instantiator_tab_control): ditto.
8778 (layout_post_instantiate): remove dead code.
8780 * print.c (debug_print_no_newline): only write to debugger if in
8783 * elhash.c (Fmake_hash_table): update doc string.
8785 * event-msw.c (mswindows_wnd_proc): don't allow processing of
8786 messages whilst in GC. This at least stops XEmacs crashing but has
8787 the potential for wierd behaviour.
8789 2000-07-31 Martin Buchholz <martin@xemacs.org>
8792 Make existence of s&m files optional.
8794 * s/bsd386.h: Remove HAVE_GETLOADAVG.
8795 * s/freebsd.h: Remove HAVE_GETLOADAVG.
8796 * s/gnu.h: Remove HAVE_GETLOADAVG.
8797 * s/netbsd.h: Remove HAVE_GETLOADAVG.
8798 * s/sol2.h: Remove HAVE_GETLOADAVG.
8799 * lisp.h: Remove getloadavg() declaration.
8801 Include <sys/loadavg.h> if available.
8802 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
8803 * config.h.in: Group together getloadavg()-related macros.
8804 Use only configure-time tests to detect getloadavg().
8806 2000-07-30 Martin Buchholz <martin@xemacs.org>
8808 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
8810 2000-07-25 Andy Piper <andy@xemacs.org>
8812 * syswindows.h: add tchar.h for native builds.
8814 * frame.c (syms_of_frame): remove set-glyph-image.
8816 * general-slots.h: add Qset_glyph_image.
8818 * glyphs-widget.c (layout_update): add domain arg to
8820 (syms_of_glyphs_widget): remove set-glyph-image.
8822 2000-07-23 Ben Wing <ben@xemacs.org>
8824 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
8827 2000-07-22 Andy Piper <andy@xemacs.org>
8829 * symsinit.h: add syms_of_win32().
8831 * gui-msw.c (syms_of_gui_mswindows): remove
8832 Fmswindows_shell_execute.
8833 (Fmswindows_shell_execute): moved to win32.c.
8835 * emacs.c (main_1): add syms_of_win32 ().
8837 * win32.c (init_potentially_nonexistent_functions): rewrite in
8838 compiler-friendly terms.
8839 (Fmswindows_shell_execute): move here from gui-msw.c.
8840 (syms_of_win32): new.
8842 * device-msw.c (Fmswindows_printer_list): clean up args to
8844 Don't include tchar under cygwin or mingw.
8845 (msprinter_default_printer): make cygwin-friendly.
8847 2000-07-21 Andy Piper <andy@xemacs.org>
8849 * glyphs-widget.c (image_instantiator_tree_view): use tab
8850 control's update function.
8851 (layout_property): new function. Retrieve items.
8853 * glyphs-msw.c (mswindows_tree_view_redisplay): new
8854 function. Re-populate the tree view from the pending items.
8856 * glyphs.c (instantiate_image_instantiator): Make sure the domain
8857 is designated the parent if the domain is an image instance. This
8858 is needed so that dirtiness can be cascade up the hierarchy and
8859 thus for layout children to be redisplayed correctly.
8860 (allocate_image_instance): rename glyph -> parent.
8862 * redisplay.h: change redisplay_output_layout signature.
8864 * redisplay-msw.c (mswindows_output_display_block): use domain
8867 * redisplay-x.c (x_output_display_block): use domain arg.
8869 2000-07-10 Andy Piper <andy@xemacs.org>
8871 * window.c (Fset_window_configuration): add comment.
8873 * redisplay-output.c (compare_runes):
8874 (redisplay_output_subwindow): redisplay rather than update subwindow.
8875 (redisplay_output_layout): ditto.
8877 * redisplay-msw.c (mswindows_frame_output_end):
8878 (mswindows_frame_output_end): make defer window pos optional.
8880 * lisp.h: add Flast.
8882 * glyphs.h (struct image_instantiator_methods): add dest_mask top
8883 normalize method. Change update method to be for changed
8884 instantiators. Add redisplay method. Change signature of layout
8886 (struct Lisp_Image_Instance): add instantiator.
8887 (IMAGE_INSTANCE_INSTANTIATOR): new.
8888 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
8889 (XIMAGE_INSTANCE_INSTANTIATOR): new.
8890 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
8893 (find_instantiator_differences): new function.
8894 (Fset_instantiator_property): new convenience function.
8895 (check_image_instance_structure): strictly check for vector
8897 (normalize_image_instantiator): make non-static.
8898 (instantiate_image_instantiator): pass on dest_mask and use new
8899 signatures for image_instance_layout and friends.
8900 (mark_image_instance): mark the instantiator. Mark the subwindow
8901 face not the widget face.
8902 (image_instance_equal): add instantiator.
8903 (image_instance_hash): ditto.
8904 (allocate_image_instance): ditto.
8905 (Fset_image_instance_property): removed.
8906 (Fimage_instance_file_name): ditto.
8907 (Fcolorize_image_instance): ditto.
8908 (image_instance_layout): add offsets to be set.
8909 (update_image_instance): new function. update an image instance
8910 from its changed instantiator.
8911 (inherit_normalize): add dest_mask.
8912 (xbm_normalize): ditto.
8913 (xface_normalize): ditto.
8914 (xpm_normalize): ditto.
8915 (text_update): set_property -> update.
8916 (image_instantiate): use the glyph identity as a hash key, not the
8918 (glyph_width): use new image_instance_layout signature.
8919 (glyph_ascent): ditto.
8920 (glyph_descent): ditto.
8921 (glyph_height): ditto.
8922 (glyph_query_geometry): ressurrect.
8923 (glyph_layout): ditto.
8924 (redisplay_subwindow): update -> redisplay.
8925 (syms_of_glyphs): add Fset_instantiator_property.
8926 (image_instantiator_format_create): set_property -> update.
8929 (autodetect_normalize): add dest_maks to signature.
8930 (x_redisplay_subwindow): update -> redisplay.
8931 (x_redisplay_widget): ditto.
8932 (x_button_redisplay): ditto.
8933 (x_progress_gauge_redisplay): ditto.
8934 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
8936 (console_type_create_glyphs_x): update -> redisplay.
8937 (image_instantiator_format_create_glyphs_x): ditto.
8940 (check_valid_instantiator): disallow glyphs in the instantiator,
8941 they must now be vectors.
8942 (check_valid_instantiator_list): ditto.
8943 (glyph_instantiator_to_glyph): use internal symbol rather than
8945 (widget_update): renamed from widget_set_property. Call cascaded
8947 (redisplay_widget): renamed from update_widget.
8948 (widget_layout): image_instance_layout now takes position as well
8950 (widget_normalize): ditto.
8951 (widget_instantiate): ditto.
8952 (tab_control_query_geometry) ditto.:
8953 (tab_control_update): renamed from tab_control_set_property.
8954 (progress_gauge_update): set_property -> update.
8955 (layout_normalize): rewrite so that child instantiators are
8957 (layout_update): new function. Create glyphs from the normalized
8958 children and cope with any other layout keywords. We do not
8959 instantiate children here that will be take care of by
8960 redisplay_output_layout.
8961 (layout_instantiate): call layout_update and not much else.
8962 (layout_post_instantiate): not sure whether this is needed
8964 (layout_query_geometry): query glyph geometry rather than
8965 image_instance geometry.
8966 (layout_layout): set offsets from pass in parameters. Use glyph
8967 geometry and layout functions rather than image instance ones.
8968 (native_layout_layout): ditto.
8969 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
8970 (image_instantiator_widget): set_property -> update.
8971 (image_instantiator_buttons): ditto.
8972 (image_instantiator_progress_guage): ditto.
8973 (image_instantiator_tab_control): ditto.
8974 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
8975 (image_instantiator_layout): add update method.
8977 * glyphs-msw.c (bmp_normalize):
8978 (mswindows_resource_normalize): add dest_mask so that it can be
8979 proprogated by layout_normalize.
8980 (begin_defer_window_pos): make optional because it may not be the
8981 right thing to do and it introduces differences with X.
8982 (mswindows_unmap_subwindow): ditto.
8983 (mswindows_map_subwindow): ditto.
8984 (mswindows_redisplay_subwindow): renamed from
8985 mswindows_update_subwindow.
8986 (mswindows_redisplay_widget): ditto.
8987 (mswindows_button_redisplay): renamed from
8988 mswindows_button_update. Update is now what the instantiation
8989 function does for a changed instantiator.
8990 (mswindows_progress_gauge_instantiate): set the progress value
8991 here if appropriate.
8992 (mswindows_tab_control_redisplay): cope with re-ordering of the
8993 members of the tab widget by simply selecting the new top
8994 widget. This makes things appear ok if you click on a tab.
8995 (mswindows_combo_box_instantiate): image_instance_layout now takes
8996 position as well as size.
8997 (mswindows_progress_gauge_redisplay): renamed from
8998 mswindows_progress_gauge_update.
8999 (console_type_create_glyphs_mswindows): fix update -> redisplay.
9000 (image_instantiator_format_create_glyphs_mswindows): ditto.
9002 * glyphs-eimage.c (jpeg_normalize):
9005 (tiff_normalize): add dest_mask so that it can be proprogated by
9010 (hash_table_weakness_validate):
9011 (decode_hash_table_weakness):
9012 (Fhash_table_weakness):
9014 (syms_of_elhash): use Ben's naming scheme for hashtable types..
9016 * console.h (struct console_methods): move update_* to
9019 2000-07-20 Ben Wing <ben@xemacs.org>
9021 * *.[ch] (XSETOBJ): remove unused middle argument.
9022 lisp-disunion.h: correct wrap_object() to one argument.
9024 2000-07-15 Ben Wing <ben@xemacs.org>
9027 * s/cygwin32.h (CYGWIN_CONV_PATH):
9028 Add missing logb prototype for v1.1.
9029 Use post-b20 names and alias to pre-b20 names when pre-b20.
9031 * s/windowsnt.h: [5].
9033 2000-07-15 Ben Wing <ben@xemacs.org>
9035 * Makefile.in.in (x_objs):
9036 * Makefile.in.in (sheap_objs):
9037 * Makefile.in.in (objs):
9038 added win32.o, cosmetic cleanups.
9040 * alloc.c (Fmake_byte_code):
9041 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9042 etc. macros which declare their own args now.
9044 * alloc.c (syms_of_alloc):
9045 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9048 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9050 * buffer.c (Fget_file_buffer):
9051 Fixed GCPRO problem.
9053 * buffer.c (get_truename_buffer):
9054 Fixed comment about GC checking.
9056 * buffer.c (syms_of_buffer):
9057 Undeclared those dedicated frame funs.
9061 Define convenience macros for internal/external conversions.
9062 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9063 and Qenvironment_variable_encoding for cleaner code.
9066 Remove dedicated-frame; in lisp.
9068 * bytecode.c (funcall_compiled_function):
9071 * bytecode.c (syms_of_bytecode):
9075 * console-msw.c (mswindows_show_console): Rewrote.
9077 * console-msw.c (Fmswindows_debugging_output): New.
9078 Sends to OutputDebugString (special MSWin debugger interface).
9080 * console-msw.c (Fmswindows_message_box):
9081 Fixed stupid bugs so it works when called from kill-emacs.
9083 * console-msw.c (syms_of_console_mswindows):
9084 Declare Fmswindows_debugging_output.
9087 New MSWin prototypes.
9089 * console-msw.h (struct mswindows_frame):
9090 New entry last-click-mods for improved button-modifier support.
9092 * console-msw.h (FRAME_MSWINDOWS_POPUP):
9093 New struct entry `popup' with corresponding accessor.
9096 * console-x.c (split_up_display_spec):
9097 * console-x.c (get_display_arg_connection):
9098 * console-x.c (x_semi_canonicalize_console_connection):
9099 * console-x.c (x_canonicalize_device_connection):
9100 [[[6]]]: Change char to more specific type.
9101 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9103 * console-x.c (x_semi_canonicalize_console_connection):
9104 * console-x.c (x_canonicalize_device_connection):
9105 [[[9]]]: Fix up error signalling to use new structured error system.
9108 [[[4]]]: Define codesys aliases:
9109 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9110 Qx_color_name_encoding, Qx_display_name_encoding.
9112 * console.h (struct console_methods):
9113 New method make_dialog_box_internal supersedes older
9114 popup_dialog_box method.
9117 Define many new errors, part of new structured errors.
9119 * data.c (init_errors_once_early):
9120 * data.c (syms_of_data):
9123 * device-msw.c (mswindows_init_device):
9124 [[[5]]]: Cleanup to support NT 3.51.
9126 * device-msw.c (decode_devmode): Cleanup.
9128 * device-msw.c (mswindows_handle_print_setup_dialog_box):
9129 * device-msw.c (mswindows_handle_print_dialog_box):
9130 * device-msw.c (mswindows_handle_page_setup_dialog_box):
9131 * device-msw.c (syms_of_device_mswindows):
9132 Delete the dialog box primitives recently introduced by Kirill and
9133 instead interface to general dialog box interface.
9136 * device-x.c (compute_x_app_name):
9137 * device-x.c (x_init_device):
9138 * device-x.c (Fx_valid_keysym_name_p):
9139 * device-x.c (Fx_set_font_path):
9143 * device.h (wrap_device): New.
9144 First of its kind; meant to replace XSETDEVICE.
9146 * dialog-msw.c: Many file-dialog symbols.
9148 * dialog-msw.c (mswindows_register_popup_frame): New.
9149 * dialog-msw.c (mswindows_is_dialog_msg): New.
9150 For supporting kbd traversal in dialog boxes.
9152 * dialog-msw.c (dialog_proc):
9153 Support hitting ESC in dialogs.
9155 * dialog-msw.c (struct):
9156 Common dialog box errors.
9158 * dialog-msw.c (handle_file_dialog_box): New.
9159 Add file dialog code.
9161 * dialog-msw.c (handle_question_dialog_box):
9162 Redo existing code to support new question dialog syntax.
9164 * dialog-msw.c (console_type_create_dialog_mswindows):
9165 We support new dialog console method.
9167 * dialog-msw.c (syms_of_dialog_mswindows):
9168 * dialog-msw.c (vars_of_dialog_mswindows):
9169 New file dialog symbols, vars.
9172 * dialog-x.c (maybe_run_dbox_text_callback):
9173 * dialog-x.c (dbox_descriptor_to_widget_value):
9174 * dialog-x.c (x_make_dialog_box_internal):
9175 * dialog-x.c (console_type_create_dialog_x):
9176 Mule-ize entire file.
9177 Redo to support question dialog syntax.
9181 * dialog.c (Fmake_dialog_box_internal):
9182 * dialog.c (syms_of_dialog):
9183 Kill old popup-dialog-box, replace with new primitive.
9184 Just call device method or signal error.
9186 * eldap.c (Fldap_open):
9187 * eldap.c (Fldap_search_basic):
9188 * eldap.c (Fldap_add):
9189 * eldap.c (Fldap_modify):
9194 * emacs.c (make_arg_list_1):
9195 * emacs.c (make_arg_list):
9196 Mule-ize call to dll_init().
9200 * emacs.c (make_argc_argv):
9201 * emacs.c (free_argc_argv):
9202 * emacs.c (init_cmdargs):
9204 * emacs.c (Fkill_emacs):
9205 * emacs.c (Fdump_emacs):
9206 Update comments about what can be used in syms_* etc.
9207 Call init_win32() when necessary.
9208 Fix up MS Win dialog box in kill-buffer to actually work right.
9219 * eval.c (condition_case_3):
9221 * eval.c (function_argcount):
9222 * eval.c (funcall_lambda):
9225 * eval.c (type_error): New.
9226 * eval.c (maybe_type_error): New.
9227 * eval.c (continuable_type_error): New.
9228 * eval.c (maybe_continuable_type_error): New.
9229 * eval.c (type_error_with_frob): New.
9230 * eval.c (maybe_type_error_with_frob): New.
9231 * eval.c (continuable_type_error_with_frob): New.
9232 * eval.c (maybe_continuable_type_error_with_frob): New.
9233 New functions for use with structured errors.
9236 * event-Xt.c (x_event_to_emacs_event):
9237 Buttons are now modifiers too.
9239 * event-Xt.c (emacs_Xt_current_event_timestamp):
9240 Implement new event method.
9241 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9244 * event-msw.c (ntpipe_shove_writer): [5].
9245 * event-msw.c (mswindows_enqueue_mouse_button_event):
9246 * event-msw.c (mswindows_drain_windows_queue):
9247 * event-msw.c (mswindows_wnd_proc): [7].
9248 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9249 * event-msw.c (mswindows_modifier_state):
9250 Throughout: support new button modifiers.
9252 * event-msw.c (emacs_mswindows_current_event_timestamp):
9253 Implement new event method.
9254 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9257 * event-stream.c (event_stream_current_event_timestamp): New.
9258 * event-stream.c (maybe_kbd_translate): New functionality.
9259 * event-stream.c (vars_of_event_stream):
9260 Document new kbd-translate-table functionality.
9262 * event-stream.c (Fcurrent_event_timestamp): New.
9263 New primitive for use in fabricated events.
9264 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9266 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9269 * events.c (Fmake_event):
9270 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9274 * events.c (format_event_object): fix gcc warnings.
9276 * events.c (Fevent_timestamp): Document new primitives.
9278 * events.c (TIMESTAMP_HALFSPACE): New.
9280 * events.c (Fevent_timestamp_lessp): New. New primitive for
9281 comparing timestamps correctly (half-space algorithm).
9283 * events.c (Fevent_modifier_bits): Doc fix.
9285 * events.c (Fevent_modifiers): Major doc addition.
9286 * events.c (event_x_y_pixel_internal): Typo fix.
9287 * events.c (syms_of_events): Declare new primitives.
9290 Update long comment for button modifiers, timestamps.
9292 * events.h (struct event_stream):
9293 New current_event_timestamp method.
9296 * extents.c (extent_in_region_p):
9297 * extents.c (decode_extent):
9298 * extents.c (Fset_extent_parent):
9299 * extents.c (decode_map_extents_flags):
9303 * extents.c (struct extent_at_arg):
9304 * extents.c (decode_extent_at_flag):
9305 * extents.c (extent_at_mapper):
9306 * extents.c (extent_at_bytind):
9307 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9308 * extents.c (Fextents_at): New primitive. [9].
9309 * extents.c (symbol_to_glyph_layout): [9].
9310 Support new primitive `extents-at'.
9313 * extents.c (get_text_property_bytind):
9314 extent_at_bytind has another arg.
9317 * extents.c (syms_of_extents): New primitive.
9319 * file-coding.c (Fmake_coding_system): [1].
9320 * file-coding.c (subsidiary_coding_system): fix gcc warning
9321 * file-coding.c (syms_of_file_coding): [2].
9323 * fileio.c (Fexpand_file_name):
9324 * fileio.c (Fsysnetunam):
9325 * fileio.c (Ffile_exists_p):
9326 * fileio.c (Ffile_executable_p):
9327 * fileio.c (Fverify_visited_file_modtime):
9330 * fileio.c (syms_of_fileio): [2].
9332 * filelock.c (lock_file_1):
9333 * filelock.c (current_lock_owner):
9334 * filelock.c (lock_if_free):
9335 * filelock.c (lock_file):
9336 * filelock.c (unlock_file):
9339 * fns.c (concat): Fix gcc warning.
9342 * fns.c (Fold_member):
9344 * fns.c (Fold_memq):
9345 * fns.c (memq_no_quit):
9347 * fns.c (Fold_assoc):
9349 * fns.c (Fold_assq):
9350 * fns.c (assq_no_quit):
9352 * fns.c (Fold_rassoc):
9354 * fns.c (Fold_rassq):
9355 * fns.c (rassq_no_quit):
9357 * fns.c (Fold_delete):
9359 * fns.c (Fold_delq):
9360 * fns.c (delq_no_quit):
9361 * fns.c (Fremassoc):
9363 * fns.c (remassq_no_quit):
9364 * fns.c (Fremrassoc):
9365 * fns.c (Fremrassq):
9366 * fns.c (remrassq_no_quit):
9371 * frame-msw.c (mswindows_init_frame_1):
9372 * frame-msw.c (mswindows_delete_frame):
9373 Register popups with dialog code so keyboard traversing works.
9375 * frame-tty.c (tty_raise_frame_no_select): [1].
9378 * frame-x.c (x_set_frame_text_value):
9379 * frame-x.c (x_set_frame_properties):
9380 * frame-x.c (x_create_widgets):
9384 * frame.c (Fmouse_pixel_position): Minor doc fixes.
9386 * frame.h (wrap_frame): New.
9387 Macro like wrap_device.
9390 * general.c (SYMBOL):
9391 * general.c (syms_of_general):
9392 Major reorg. This is now just a wrapper and symbols themselves
9393 are listed in general-slots.h.
9395 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9396 * glyphs-msw.c (mswindows_resource_instantiate): [5].
9398 * glyphs-msw.c (mswindows_native_layout_instantiate):
9399 Add DS_CONTROL so keyboard traversal will work.
9402 * glyphs-widget.c (syms_of_glyphs_widget):
9403 Move some symbols to general-slots.h.
9406 * glyphs-x.c (xbm_instantiate_1):
9407 * glyphs-x.c (x_xbm_instantiate):
9408 * glyphs-x.c (x_xface_instantiate):
9409 * glyphs-x.c (autodetect_instantiate):
9410 * glyphs-x.c (cursor_font_instantiate):
9411 * glyphs-x.c (x_update_widget):
9412 * glyphs-x.c (x_widget_instantiate):
9413 * glyphs.c (bitmap_to_lisp_data):
9414 * glyphs.c (pixmap_to_lisp_data):
9417 * glyphs.c (syms_of_glyphs):
9421 * gui-x.c (print_widget_value):
9422 * gui-x.c (menu_separator_style_and_to_external):
9423 * gui-x.c (add_accel_and_to_external):
9424 * gui-x.c (button_item_to_widget_value):
9425 * gui-x.c (gui_items_to_widget_values_1):
9426 * gui-x.c (gui_items_to_widget_values):
9427 * gui-x.c (syms_of_gui_x):
9428 * gui-x.c (vars_of_gui_x):
9429 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
9433 Muleize, prototype changes matching gui-x.c.
9436 * gui.c (separator_string_p):
9437 * gui.c (gui_item_add_keyval_pair):
9438 * gui.c (make_gui_item_from_keywords_internal):
9439 * gui.c (signal_too_long_error):
9440 * gui.c (parse_gui_item_tree_item):
9441 * gui.c (syms_of_gui):
9442 * gui.c (vars_of_gui):
9444 menu-no-selection-hook moved here (used by MSWin).
9445 Move some symbols to general-slots.h.
9449 * insdel.c (get_buffer_pos_char):
9450 * insdel.c (get_buffer_range_char):
9453 * keymap.c (keymap_lookup_directly):
9454 * keymap.c (keymap_store):
9455 * keymap.c (ensure_meta_prefix_char_keymapp):
9456 * keymap.c (describe_map):
9458 Support new button modifiers.
9460 * lisp-disunion.h (wrap_object):
9461 * lisp-disunion.h (XSETOBJ):
9462 Rename make_obj to wrap_object.
9465 * lisp-union.h (make_int):
9466 * lisp-union.h (make_char):
9467 Support wrap_object.
9470 * lisp.h (LIST_LOOP):
9471 * lisp.h (EXTERNAL_LIST_LOOP):
9472 * lisp.h (LIST_LOOP_2):
9473 * lisp.h (EXTERNAL_LIST_LOOP_1):
9474 * lisp.h (EXTERNAL_LIST_LOOP_2):
9475 * lisp.h (EXTERNAL_LIST_LOOP_3):
9476 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
9477 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9478 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
9479 * lisp.h (EXTERNAL_ALIST_LOOP_5):
9480 * lisp.h (EXTERNAL_ALIST_LOOP_6):
9481 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
9482 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
9483 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
9484 * lisp.h (struct Lisp_Symbol):
9485 * lisp.h (maybe_continuable_error_with_frob):
9486 Fix up section comments.
9487 Add new types for char to indicate usage.
9488 Delete symbols auto-generated from general-slots.h.
9489 Add prototypes for structured error functions.
9490 Add long comments describing looping macros and change interface
9491 so that lvalues are automatically declared.
9492 Add NO_DECLARE macro in case callers want to declare lvalues
9495 * lread.c (read_syntax_error):
9496 * lread.c (continuable_read_syntax_error):
9497 * lread.c (read_structure):
9498 * lread.c (sequence_reader):
9499 * lread.c (read_list_conser):
9500 * lread.c (read_compiled_function):
9501 Rename syntax_error and continuable_syntax_error to avoid clash
9502 with same-named structured error functions.
9504 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9505 * menubar-msw.c (populate_menu_add_item):
9506 * menubar-msw.c (populate_or_checksum_helper):
9511 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9512 Mule-ize whole file.
9514 * menubar.c (Fnormalize_menu_item_name): Add optimization.
9516 * mule-charset.c (Fmake_charset):
9517 * mule-wnnfns.c (Fwnn_set_param):
9520 * ntproc.c (create_child):
9521 * ntproc.c (Fwin32_set_current_locale):
9522 Add comments portending doom.
9525 * objects-msw.c (old_font_enum_callback_2):
9526 * objects-msw.c (font_enum_callback_1):
9527 * objects-msw.c (mswindows_enumerate_fonts):
9531 * objects-x.c (allocate_nearest_color):
9532 * objects-x.c (x_parse_nearest_color):
9533 * objects-x.c (x_initialize_color_instance):
9534 * objects-x.c (x_print_color_instance):
9535 * objects-x.c (x_finalize_color_instance):
9536 * objects-x.c (x_valid_color_name_p):
9537 * objects-x.c (x_initialize_font_instance):
9538 * objects-x.c (x_print_font_instance):
9539 * objects-x.c (valid_x_font_name_p):
9540 * objects-x.c (truename_via_FONT_prop):
9541 * objects-x.c (truename_via_random_props):
9542 * objects-x.c (truename_via_XListFonts):
9543 * objects-x.c (x_font_truename):
9544 * objects-x.c (x_font_instance_truename):
9545 * objects-x.c (x_font_instance_properties):
9546 * objects-x.c (x_list_fonts):
9547 * objects-x.c (x_find_charset_font):
9548 Mule-ize entire file.
9555 * print.c (std_handle_out_external):
9556 * print.c (debug_print_no_newline):
9557 * print.c (syms_of_print):
9558 Output to all debugger kinds in debug-print.
9559 Fix console-output code under MSWin to actually work.
9561 * process-nt.c (send_signal):
9562 * process-nt.c (nt_create_process):
9563 Use newer Unicode macros.
9565 * process-unix.c (unix_create_process):
9566 * process-unix.c (unix_canonicalize_host_name):
9567 * process-unix.c (unix_open_network_stream):
9573 * search.c (syms_of_search):
9576 * select-msw.c (mswindows_destroy_selection):
9579 * select-x.c (symbol_to_x_atom):
9582 * select.c (syms_of_select):
9585 * sound.c (Fplay_sound_file):
9589 * specifier.c (decode_specifier_type):
9590 * specifier.c (Fvalid_specifier_locale_type_p):
9591 * specifier.c (check_valid_locale_or_locale_type):
9592 * specifier.c (decode_locale):
9593 * specifier.c (decode_locale_type):
9594 * specifier.c (decode_locale_list):
9595 * specifier.c (check_valid_domain):
9596 * specifier.c (decode_specifier_tag_set):
9597 * specifier.c (Fcanonicalize_tag_set):
9598 * specifier.c (Fdefine_specifier_tag):
9599 * specifier.c (Fspecifier_tag_predicate):
9600 * specifier.c (check_valid_inst_list):
9601 * specifier.c (check_valid_spec_list):
9602 * specifier.c (decode_how_to_add_specification):
9603 * specifier.c (check_modifiable_specifier):
9604 * specifier.c (specifier_add_spec):
9605 * specifier.c (boolean_validate):
9606 * specifier.c (display_table_validate):
9609 * specifier.c (syms_of_specifier):
9610 Move some symbols to general-slots.h.
9614 * symbols.c (Fmapatoms):
9615 * symbols.c (Fapropos_internal):
9618 * symbols.c (set_default_buffer_slot_variable):
9619 * symbols.c (set_default_console_slot_variable):
9622 * symbols.c (defsymbol_massage_name_1):
9623 * symbols.c (defkeyword_massage_name):
9624 * symbols.c (deferror_1):
9625 * symbols.c (deferror):
9626 * symbols.c (deferror_massage_name_and_message):
9628 * symeval.h (DEFSYMBOL):
9629 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
9631 * symbols.c (syms_of_symbols):
9635 * symsinit.h (init_win32): New.
9636 Also new is syms_of_dialog_mswindows.
9639 Add new Unicode macros, missing Cygwin wide-char functions,
9640 convenience conversion macros for Qmswindows_tstr, macros for
9641 encapsulating required MSWin <-> Cygwin filename conversions,
9642 prototype for dynamically-extracted (not in NT 3.51) functions.
9647 * tooltalk.c (Fadd_tooltalk_message_arg):
9648 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
9649 * tooltalk.c (Fadd_tooltalk_pattern_arg):
9652 * tooltalk.c (syms_of_tooltalk):
9656 * unexnt.c (unexec):
9657 Fix up headers, declaration of unexec() to be more standard.
9659 2000-07-20 Martin Buchholz <martin@xemacs.org>
9661 * offix.h: Revert change to guard macros - they're used in offix.c!
9663 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9665 * lisp.h: Defsubred Fdelete.
9667 * console-msw.h: (msprinter_default_printer): Added.
9669 * console-msw.c (msprinter_canonicalize_console_connection):
9670 (msprinter_canonicalize_device_connection): Added.
9672 * device-msw.c (msprinter_default_printer):
9673 (Fmswingows_get_default_printer):
9674 (signal_enum_priner_error):
9675 (Fmswingows_printer_list): Added.
9677 2000-07-19 Martin Buchholz <martin@xemacs.org>
9679 * XEmacs 21.2.35 is released.
9681 2000-07-19 Martin Buchholz <martin@xemacs.org>
9683 * select-x.c (x_handle_selection_request):
9684 Text selected in xemacs and pasted into xterm failed to appear.
9685 Spelling fixes and cosmetic changes.
9687 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9689 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
9690 XEmacs frame (fix for doubling chars in dialog boxes).
9692 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
9694 * select.c (select_convert_in, select_convert_out):
9695 Don't call intern() every time.
9697 * select.c (Qselect_convert_in, Qselect_convert_out): New.
9698 * select.c (vars_of_select): Initialise them.
9700 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
9702 * select.c (selection-coercible-types): New.
9704 * select.c (own-selection-internal):
9705 * select.c (get-selection-internal):
9706 MULE bug fix - these should default to COMPOUND_TEXT and not
9707 STRING for MULE. I think.
9709 * select.c (select_convert_out): Use selection-coercible-types
9710 to find types that we can attempt to perform coercions on.
9712 2000-07-18 Martin Buchholz <martin@xemacs.org>
9716 Add coding: cookie to identify encoding.
9718 * mule-canna.c (CANNA_mode_keys): make static.
9719 Use proper prototypes, even for functions of no arguments.
9720 Remove external prototype for Fding().
9722 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
9724 * select.c (syms_of_select): Add missing DEFSUBR.
9726 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
9728 * select.c (get_selection_internal, own_selection_internal):
9729 Make the type default to STRING, rather than placing a nil type
9730 into Vselection_alist.
9732 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
9734 * gpmevent.c (tty_selection_exists_p):
9735 * gpmevent.c (tty_own_selection):
9736 Updated parameter lists.
9738 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
9740 * select.h (selection-alist): Removed declaration.
9742 * select.h (get_local_selection):
9743 * select.c (get_local_selection):
9746 * select.h (convert_selection): Removed declaration.
9747 * select.c (convert_selection): Removed.
9748 This function belongs in Lisp.
9750 * select.h (select_convert_in): Declare.
9751 * select.h (select_convert_out): Declare.
9752 * select.c (select_convert_in): New.
9753 * select.c (select_convert_out): New.
9754 New conversion functions for other files to call.
9756 * select.h (select_notify_buffer_kill): Declare.
9757 * select.c (select_notify_buffer_kill): New.
9758 New functions that get called from kill-buffer.
9760 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
9761 X-specific lisp code.
9763 * select.h: Declare some of the lisp-visible functions for
9766 * select.c (clean_local_selection_data): Removed. This was
9767 a disgusting function, and previously should have been in
9768 select-x.c in any case. The functionality is now provided
9769 in select-convert-from-integer (select.el).
9771 * select.c (available-selection-types): Fixed stupidity where
9772 INTEGER and ATOM got added twice. Also add STRING when we see an
9775 * select.c (get-selection-internal): Removed symbol stripping. No
9776 longer causes conversion when data comes from the internal cache.
9778 * select.c (syms_of_select): Added new functions.
9780 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
9781 error checking - previously this called abort!
9783 * select-x.c (x_own_selection): Changed comment.
9785 * select-x.c (x_handle_selection_request): Use select_convert_out.
9786 Don't mess with selection-alist; it's an internal variable of select.c.
9788 * select-x.c (x_get_foreign_selection): Use select_convert_in.
9790 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
9791 rather than messing with selection-alist.
9793 * select-msw.c (mswindows_get_foreign_selection):
9794 Use TO_INTERNAL_FORMAT rather than hacking.
9796 2000-07-14 Martin Buchholz <martin@xemacs.org>
9798 * process-unix.c (unix_open_multicast_group):
9799 (unix_open_multicast_group): Remove useless casts.
9801 2000-07-13 Martin Buchholz <martin@xemacs.org>
9803 * sound.c (Fplay_sound): Fix `unused variable' warning.
9805 * emacs.c (main): Use correct type for _environ on SCO5.
9807 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
9809 * console.h (own_selection_method):
9810 * console.h (selection_exists_p_method):
9811 * console.h (available_selection_types_method): New.
9812 * console.h (register_selection_data_type_method): New.
9813 * console.h (selection_data_type_name): New.
9815 * console-msw.h (mswindows_destroy_selection): Declare it. New
9816 function & alist to track GlobalAlloc()'d handles that need
9817 releasing when the clipboard data gets replaced or emptied.
9819 * event-msw.c (mswindows_wnd_proc): Call it.
9821 * lisp.h, general.c (Qappend): New symbol representing a
9824 * select.c (own-selection-internal):
9825 * select.c (selection-exists-p):
9826 * select.c (available-selection-types): New.
9827 * select.c (register-selection-data-type): New.
9828 * select.c (selection-data-type-name): New. New functions to deal
9829 with device-specific selection data formats.
9830 * select.c (selection-converter-out-alist): Renamed.
9831 * select.c (selection-converter-in-alist): New.
9832 * select.c (selection-appender-alist): New. Added new alists.
9833 * select.c (syms_of_select, vars_of_select): Added new symbols &
9835 * select.c (get_local_selection): Split.
9836 * select.c: Removed spurious type checking - selections may now be
9837 of any type, not just strings.
9838 * select.c (own-selection-internal):
9840 * select.h, select.c (convert_selection): New. Created
9841 convert_selection() function based on get_local_selection().
9842 * select.h, select.c (QCF_*): New symbols representing mswindows
9844 * select.h, select.c (Qreplace_all, Qreplace_existing): New
9845 symbols representing `how-to-add' modes.
9847 * select-msw.c (x_sym_p): New.
9848 * select-msw.c (symbol_to_ms_cf): New.
9849 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
9850 symbols & clipboard formats. Can also handle string names.
9851 * select-msw.c (mswindows_own_selection):
9852 * select-msw.c (mswindows_selection_exists_p):
9853 Added `data-type' parameter. Use it.
9854 * select-msw.c (mswindows_available_selection_types): New.
9855 * select-msw.c (mswindows_register_selection_data_type): New.
9856 * select-msw.c (mswindows_selection_data_type_name): New.
9857 * select-msw.c (mswindows_own_selection):
9858 * select-msw.c (mswindows_get_foreign_selection):
9859 * select-msw.c (mswindows_selection_exists_p): Rewrote.
9860 * select-msw.c (console_create_select_mswindows): Added new methods.
9861 * select-msw.c (mswindows_destroy_selection): New.
9862 * select-msw.c (Vhandle_alist): New list.
9863 * select-msw.c (mswindows_own_selection):
9865 * select-x.c (x_own_selection):
9866 * select-x.c (x_selection_exists_p):
9867 * select-x.c: Added some comments about maybe using new
9869 * select-x.c (x_own_selection):
9871 * specifier.c: Remove definition of Qappend (now in general.c)
9872 * specifier.c (syms_of_specifier): Remove Qappend.
9874 2000-07-12 Martin Buchholz <martin@xemacs.org>
9876 * config.h.in: Add socklen_t.
9878 * s/decosf4-0.h: No special compiler flags needed or desired.
9879 In particular, undefine _BSD for DEC OSF 4.0.
9881 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9883 * redisplay-msw.c (msprinter_frame_output_end): Added.
9884 (console_type_create_redisplay_mswindows): Referred the above.
9886 * frame.c (setup_frame_without_minibuffer): Do not create a
9887 default minibuffer frame on a printer device.
9889 * frame-msw.c (apply_dc_geometry): Added.
9890 (msprinter_start_page):
9891 (msprinter_init_frame_3):
9892 (msprinter_eject_page): Use it.
9894 * console-msw.h (struct msprinter_frame): Added pix_left and top,
9895 and removed residual duplex and orientation properties.
9897 2000-07-11 Martin Buchholz <martin@xemacs.org>
9899 * eval.c (function_argcount): Work around a DEC CC compiler bug.
9901 * unexalpha.c: Remove system prototypes from C sources!
9903 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
9905 * eval.c: Remove references to M-x edit-options in DEFUNs for
9906 `defvar' and `defconst'.
9908 2000-07-09 Martin Buchholz <martin@xemacs.org>
9910 * config.h.in: Remove SMART_INCLUDE hackery.
9913 * config.h.in: Don't use SMART_INCLUDE.
9915 * postgresql.h: Include libpq-fe.h here. Fix typo.
9916 * inline.c: Simply #include "postgresql.h"
9918 - Don't use SMART_INCLUDE
9919 - Use simply "const".
9920 - Use standard doc string conventions.
9921 - Use correct type for result of PQstatus.
9923 2000-07-09 Martin Buchholz <martin@xemacs.org>
9925 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
9927 C++ compilation changes.
9928 * config.h.in (EXTERN_C): Define.
9929 * config.h.in (not): This is also a C++ keyword.
9930 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
9931 * cm.c: Use EXTERN_C.
9932 * redisplay-tty.c: Use EXTERN_C.
9933 * sysdep.c: Use EXTERN_C. Remove Gould support.
9935 2000-07-09 Martin Buchholz <martin@xemacs.org>
9937 * general.c: Remove duplicate definition for Qfunction.
9939 2000-07-08 Ben Wing <ben@xemacs.org>
9941 * device-msw.c (msprinter_init_device):
9942 * device-msw.c (sync_printer_with_devmode):
9943 * device-msw.c (handle_devmode_changes):
9944 * device-msw.c (print_dialog_worker):
9945 * device-msw.c (Fmsprinter_apply_settings):
9946 * device-msw.c (hash_devmode):
9947 * device-msw.c (Fmsprinter_settings_despecialize):
9948 use Qmswindows_tstr, not Qctext.
9950 * vm-limit.c (check_memory_limits):
9951 avoid infinite loop printing warning messages.
9953 2000-07-05 Craig Lanning <lanning@scra.org>
9955 * Makefile.in.in: Add support for including the Windows resources
9956 when building with the cygwin and mingw targets.
9958 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
9959 not set or not correct.
9960 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
9961 (init_initial_directory): Don't try to use $PWD on the
9962 WIN32_NATIVE target.
9965 [[Add -mwindows to eliminate console window.]] not required --ben
9966 (HAVE_NATIVE_SOUND): removed; now handled by configure.
9967 (MAIL_USE_POP): removed; now handled by configure.
9969 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
9970 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
9971 (HAVE_NATIVE_SOUND): removed; now handled by configure.
9972 (MAIL_USE_POP): removed; now handled by configure.
9973 (ENCAPSULATE_STAT): from Dan Holmsand, added.
9974 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
9975 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
9977 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
9978 up from <winsock.h> via systime.h.
9979 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
9980 (getpagesize): from Dan Holmsand, added.
9981 Added #endif which was left dangling by Ben's mega patch; added
9982 comment to help prevent this in the future.
9984 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
9986 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9988 * console-msw.h (struct mswindows_device): Removed unnecessary
9989 cached device geometry values.
9990 Added update_tick and an accessor macro.
9991 (Lisp_Devmode): Added lrecord declaration.
9992 (struct msprinter_device): Contain devmode as a Lisp object.
9993 Added mswindows_get_selected_frame_hwnd();
9995 * console.h (struct console_methods): Indentation nitpicking.
9997 * device-msw.c (mswindows_init_device): Do not initialize geometry
9998 cache. Initialize update tick.
9999 (mswindows_device_system_metrics): Ask the device for its geometry.
10000 (global_free_2_maybe):
10001 (devmode_to_hglobal):
10002 (handle_printer_changes):
10003 (ensure_not_printing):
10004 (print_dialog_worker):
10005 (Fmsprinter_print_setup_dialog):
10006 (Fmsprinter_print_dialog):
10007 (plist_get_margin):
10008 (plist_set_margin):
10009 (Fmsprinter_page_setup_dialog): Added functions.
10010 (sync_printer_with_devmode):
10011 (handle_devmode_changes):
10012 (Fmsprinter_get_settings):
10013 (Fmsprinter_select_settings):
10014 (Fmsprinter_apply_settings):
10015 (allocate_devmode):
10016 (Fmsprinter_settings_copy):
10017 (Fmsprinter_settings_despecialize):
10019 (finalize_devmode):
10021 (hash_devmode): Added functions
10022 (syms_of_device_mswindows): Init devmode lrecord class.
10024 * device.h: Added an exfun for find-device.
10026 * event-msw.c (mswindows_wnd_proc): Do not update the cached
10027 geometry; although, recreate the device compatible DC.
10029 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10030 (msprinter_init_frame_3):
10031 (msprinter_frame_property):
10032 (msprinter_internal_frame_property_p):
10033 (msprinter_frame_properties):
10034 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10035 print job properties (will move to device settings).
10037 * lisp.h: Added symbols.
10039 * general.c (syms_of_general): Declared them.
10041 * hash.c (string_hash): Added.
10043 * lrecord.h (lrecord_type): Added devmode lrecord type.
10045 2000-07-02 Mike Sperber <mike@xemacs.org>
10047 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10050 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
10052 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10055 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
10057 * data.c (Fstring_to_number): Don't recognize floating point if
10060 2000-06-22 Martin Buchholz <martin@xemacs.org>
10062 * glyphs-widget.c (tab_control_query_geometry):
10063 (widget_query_geometry):
10064 (button_query_geometry):
10065 * glyphs.c (text_query_geometry):
10066 Enforce type correctness.
10068 2000-06-18 Martin Buchholz <martin@xemacs.org>
10070 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10071 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10073 2000-06-17 Martin Buchholz <martin@xemacs.org>
10075 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10076 conflicts with gcc's fixincluded version of FOO.h.
10078 * glyphs.h (image_instance_geometry): Remove trailing `,'
10080 2000-06-08 Mike Alexander <mta@arbortext.com>
10082 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10083 (shove_thread): Don't write the same output twice
10084 (make_ntpipe_output_stream): Increase priority of shove thread
10085 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10087 (ntpipe_shove_closer): Don't delete the pipe until we're done with
10090 2000-06-12 Ben Wing <ben@xemacs.org>
10092 * s\mingw32.h (sigset):
10093 * s\windowsnt.h (sigset):
10094 rename msw_ to mswindows_ for consistency with general convention.
10096 2000-06-12 Ben Wing <ben@xemacs.org>
10099 * console-msw.c (mswindows_get_console_hwnd):
10100 * console-msw.c (mswindows_ensure_console_allocated):
10101 * console-msw.c (mswindows_hide_console):
10102 * console-msw.c (mswindows_show_console):
10103 * console-msw.c (mswindows_ensure_console_buffered):
10104 * console-msw.c (mswindows_output_console_string):
10105 * console-msw.c (mswindows_windows9x_p):
10107 * device-msw.c (mswindows_get_workspace_coords):
10108 * device-msw.c (mswindows_device_system_metrics):
10109 * dialog-msw.c (mswindows_popup_dialog_box):
10110 * event-msw.c (mswindows_wnd_proc):
10111 * frame-msw.c (mswindows_size_frame_internal):
10112 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10113 * menubar-msw.c (displayable_menu_item):
10114 * menubar-msw.c (mswindows_char_is_accelerator):
10116 * nt.c (mswindows_sigset):
10117 * nt.c (mswindows_sigrelse):
10118 * nt.c (mswindows_sigpause):
10119 * nt.c (mswindows_raise):
10120 * nt.c (timer_proc):
10122 * ntproc.c (find_child_console):
10123 * ntproc.c (sys_kill):
10125 * print.c (std_handle_out_external):
10126 * process-nt.c (find_child_console):
10127 * process-nt.c (send_signal_the_95_way):
10128 * process-nt.c (ensure_console_window_exists):
10129 * process-nt.c (nt_create_process):
10131 rename msw_ to mswindows_ for consistency with general convention.
10135 include nt.h, not syswindows.h.
10137 * nt.c (mswindows_fstat):
10138 * nt.c (mswindows_stat):
10139 prefix mswindows_ instead of attempting to directly override the
10140 library functions. fix declarations.
10143 include syswindows.h. move some sysdep.h stuff here.
10146 include syswindows.h, not <windows.h>.
10154 * sysdep.c (sys_fstat):
10155 * sysdep.c (sys_stat):
10156 call mswindows versions when appropriate.
10159 move mswin decls to nt.h.
10162 add long comment describing appropriate use of the various windows
10165 2000-06-11 Ben Wing <ben@xemacs.org>
10167 * device-x.c: Correct doc string for sixth arg of x-get-resource.
10169 2000-06-10 Ben Wing <ben@xemacs.org>
10171 * Makefile.in.in (release):
10172 Correction to make sure xemacs.exe always dumped when correct.
10176 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10178 * buffer.c (set_buffer_internal):
10179 [[[[2]]]]: Remove HAVE_FEP code.
10181 * buffer.c (init_initial_directory):
10185 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10189 * callproc.c (call_process_cleanup):
10190 * callproc.c (Fold_call_process_internal):
10191 * callproc.c (child_setup):
10192 * callproc.c (getenv_internal):
10193 * callproc.c (init_callproc):
10194 * callproc.c (vars_of_callproc):
10195 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10196 __CYGWIN32__ -> CYGWIN.
10197 DOS_NT -> WIN32_NATIVE.
10198 Remove MSDOS support/references, converting to WIN32_NATIVE
10200 __MINGW32__ -> MINGW.
10201 Fix windows.h includes.
10202 Remove bogus HAVE_NTGUI.
10208 mswindows_message_outputted added for use in allowing startup
10209 errors on the console to be seen.
10211 * console-msw.c (msw_ensure_console_allocated):
10212 * console-msw.c (msw_output_console_string):
10213 * console-msw.c (DHEADER):
10214 * console-msw.c (DOPAQUE_DATA):
10215 * console-msw.c (DEVENT):
10216 * console-msw.c (DCONS):
10217 * console-msw.c (DCONSCDR):
10218 * console-msw.c (DSTRING):
10219 * console-msw.c (DVECTOR):
10220 * console-msw.c (DSYMBOL):
10221 * console-msw.c (DSYMNAME):
10224 * console-stream.c (stream_init_console):
10225 Fix text/binary problems.
10228 * device-msw.c (mswindows_finish_init_device):
10229 * device-msw.c (mswindows_delete_device):
10232 * device.c (handle_asynch_device_change):
10236 * dgif_lib.c (DGifOpenFileName):
10237 * dgif_lib.c (DGifOpenFileHandle):
10238 * dgif_lib.c (DGifGetLine):
10239 * dgif_lib.c (DGifGetPixel):
10240 Added config.h/lisp.h, fix up includes.
10247 * dired.c (file_name_completion):
10248 * dired.c (Ffile_attributes):
10249 * dired.c (syms_of_dired):
10253 * dumper.c (pdump_file_unmap):
10254 * dumper.c (pdump_load):
10258 * editfns.c (Ftemp_directory):
10259 * editfns.c (user_login_name):
10260 * editfns.c (Fuser_real_login_name):
10261 * editfns.c (get_home_directory):
10264 * elhash.c (finish_marking_weak_hash_tables):
10265 [[[[5]]]]: Fix GCC warnings.
10268 * emacs.c (mswindows_handle_hardware_exceptions):
10269 * emacs.c (make_arg_list_1):
10270 * emacs.c (main_1):
10271 * emacs.c (Fkill_emacs):
10272 * emacs.c (Fdump_emacs):
10274 Fix problems with nested crashes, add long comment.
10276 * event-Xt.c (init_event_Xt_late):
10280 * event-msw.c (mswindows_dde_callback):
10281 * event-msw.c (mswindows_handle_sticky_modifiers):
10282 * event-msw.c (mswindows_wnd_proc):
10286 * events.c (character_to_event):
10290 * fileio.c (Ffile_name_directory):
10291 * fileio.c (Ffile_name_nondirectory):
10292 * fileio.c (directory_file_name):
10293 * fileio.c (Fexpand_file_name):
10294 * fileio.c (Fsubstitute_in_file_name):
10295 * fileio.c (Ffile_name_absolute_p):
10296 * fileio.c (check_executable):
10297 * fileio.c (Ffile_readable_p):
10298 * fileio.c (Ffile_accessible_directory_p):
10299 * fileio.c (Ffile_modes):
10300 * fileio.c (Funix_sync):
10301 * fileio.c (vars_of_fileio):
10304 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10306 Expand getdefdir defn.
10307 Fix bogus rename() comment.
10309 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
10310 to use standard XEmacs include files, e.g. sysfile.h, rather
10311 than system-specific includes.
10317 * frame.c (vars_of_frame):
10321 * getloadavg.c (getloadavg):
10323 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
10324 (We don't use it elsewhere in the code; just add a comment.)
10331 * glyphs-msw.c (mswindows_resource_instantiate):
10334 * glyphs-x.c (x_native_layout_instantiate):
10337 * gui-msw.c (Fmswindows_shell_execute):
10346 * lread.c (locate_file_in_directory_mapper):
10353 * mem-limits.h (get_lim_data):
10365 * nt.c (rva_to_section):
10366 * nt.c (mswindows_executable_type):
10368 Fix closedir() defn.
10371 [[[[8]]]]: *_OK defs moved to sysfile.h.
10380 * print.c (std_handle_out_external):
10384 * process-nt.c (nt_create_process):
10386 try to fix process quoting somewhat.
10388 * process-unix.c (unix_create_process):
10392 * process.c (vars_of_process):
10399 * realpath.c (xrealpath):
10402 * redisplay-tty.c (init_tty_for_redisplay):
10412 * sheap.c (more_static_core):
10413 * sheap.c (report_sheap_usage):
10417 * signal.c (alarm_signal):
10424 * strftime.c (zone_name):
10427 * symsinit.h (init_sunpro):
10431 commctrl.h not in Cygwin b20.1.
10434 * sysdep.c (endif):
10435 * sysdep.c (sys_subshell):
10436 * sysdep.c (init_baud_rate):
10437 * sysdep.c (emacs_get_tty):
10438 * sysdep.c (emacs_set_tty):
10439 * sysdep.c (tty_init_sys_modes_on_device):
10440 * sysdep.c (init_system_name):
10441 * sysdep.c (sys_open):
10442 * sysdep.c (interruptible_open):
10443 * sysdep.c (sys_fopen):
10444 * sysdep.c (sys_mkdir):
10445 * sysdep.c (sys_rename):
10446 * sysdep.c (get_process_times_1):
10453 * sysdir.h (DIRENTRY_NONEMPTY):
10456 * sysdll.c (dll_init):
10462 added text/binary defs.
10468 * sysproc.h (EDESTADDRREQ):
10469 * sysproc.h (poll_fds_for_input):
10486 Always define WIN32_LEAN_AND_MEAN.
10488 * unexcw.c (unexec):
10492 * unexec.c (copy_text_and_data):
10493 * unexec.c (adjust_lnnoptrs):
10497 * unexnt.c (_start):
10500 2000-06-07 Ben Wing <ben@xemacs.org>
10502 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
10503 was used only as a model. We've long since extracted any useful
10504 logic or code out of this. (I just did an exhaustive search.)
10506 * s\msdos.h: Removed.
10508 * s\windows95.h: Removed.
10510 2000-06-10 Ben Wing <ben@xemacs.org>
10514 Don't use extern with fun defs.
10518 Remove nt\inc include.
10519 Remove getdisk, getdefdir. (The former is unused, the latter
10520 expanded in fileio.h.)
10523 * s\windowsnt.h (WIN32_NATIVE):
10524 * s\windowsnt.h (HAVE_STRCASECMP):
10526 Add long comment about preprocessor changes.
10527 Remove getdisk, getdefdir. (The former is unused, the latter
10528 expanded in fileio.h.)
10530 2000-06-10 Ben Wing <ben@xemacs.org>
10539 Remove bogus/unused NO_SOCK_SIGIO.
10541 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
10543 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
10546 2000-06-04 Mike Sperber <mike@xemacs.org>
10548 * casetab.c (set_case_table): For `set-standard-case-table',
10549 actually deposit the new case tables where the rest of XEmacs can
10552 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
10554 * data.c (Faset): Don't cast XCHAR() to unsigned char.
10556 2000-06-05 Ben Wing <ben@xemacs.org>
10558 * callproc.c (child_setup): Don't do close_load_descs() under
10559 MS Windows. Put in a comment explaining why.
10561 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
10563 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
10564 Toolkit shell" which breaks `kill-compilation' on Windows NT
10565 native, retaining STDERR handling improvements.
10567 2000-06-01 Andreas Jaeger <aj@suse.de>
10569 * s/s390.h: Support for S390, based on a patch by Martin
10570 Schwidefsky <schwidefsky@de.ibm.com>.
10572 2000-05-30 Andy Piper <andy@xemacs.org>
10574 * window.c (allocate_window):
10575 (make_dummy_parent):
10576 (Fset_window_configuration): use new hashtable type.
10578 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
10579 (struct image_instantiator_methods):
10580 (struct Lisp_Image_Instance): make instance geometry signed.
10582 * glyphs.c (instantiate_image_instantiator):
10583 (image_instance_query_geometry):
10584 (image_instance_layout):
10585 (image_instance_layout):
10586 (query_string_geometry):
10587 (text_query_geometry):
10588 (image_instantiate):
10589 (image_instantiate):
10590 (cache_subwindow_instance_in_frame_maybe):
10591 (subwindow_query_geometry): make instance geometry signed.
10593 * glyphs-widget.c (widget_query_geometry):
10595 (button_query_geometry):
10596 (tree_view_query_geometry):
10597 (tab_control_query_geometry):
10598 (layout_query_geometry):
10600 (native_layout_layout): make instance geometry signed.
10602 2000-05-29 Olivier Galibert <galibert@pobox.com>
10604 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
10607 * general.c (syms_of_general): Add Qfull_assoc symbol.
10609 * data.c (finish_marking_weak_lists): Mark full-assoc lists
10611 (decode_weak_list_type): Decode full-assoc type.
10612 (encode_weak_list_type): Encode full-assoc type.
10613 (Fmake_weak_list): Update doc string.
10615 2000-05-30 Andy Piper <andy@xemacs.org>
10617 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
10619 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
10620 (decode_hash_table_weakness): ditto.
10621 (Fhash_table_weakness): ditto.
10622 (Fhash_table_type): ditto.
10623 (finish_marking_weak_hash_tables): ditto.
10624 (hash_table_weakness_validate): ditto.
10625 (syms_of_elhash): ditto.
10627 2000-05-28 Martin Buchholz <martin@xemacs.org>
10629 * XEmacs 21.2.34 is released.
10631 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
10633 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
10635 (updating_line_start_cache): Gone.
10636 (regenerate_window): Replace resetting of VERTICAL_CLIP by
10637 generic code to force a minimum of 1 line laid out in the
10640 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
10642 * glyphs.c (instantiate_image_instantiator): Check for initialized
10643 height & width no longer special cases IMAGE_NOTHING.
10644 (nothing_instantiate): Set height and width of instance.
10646 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
10648 * unexelf.c (unexec): Search for ".data" section.
10649 Initialize new_data2_offset from old_data_index.
10650 Remove redundant check for ElfW.
10652 2000-05-23 Andy Piper <andy@xemacs.org>
10654 * glyphs.c (get_image_instantiator_governing_domain): allow more
10655 specific domains as the governing domain rather than expecting an
10656 exact match. This fixes problems with layouts.
10658 2000-05-22 Andy Piper <andy@xemacs.org>
10660 * redisplay-output.c (compare_runes): check for non-images
10662 * glyphs.c (set_glyph_dirty_p): ditto.
10663 (update_glyph_cachel_data): ditto.
10665 * glyphs-widget.c (layout_post_instantiate): ditto.
10666 (layout_post_instantiate): ditto.
10668 * event-msw.c (mswindows_wnd_proc): warning removal.
10670 2000-05-12 Craig Lanning <CraigL@DyCon.com>
10672 * s\mingw32.h: Added #undef for CLASH_DETECTION.
10674 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
10676 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
10678 * nt.c (rva_to_section): mingw32 needs rva_to_section.
10679 (mswindows_executable_type): mingw32 now has enough headers for
10682 2000-05-20 Andy Piper <andy@xemacs.org>
10684 * console-msw.c (mswindows_output_last_error): ; -> ,
10686 2000-05-12 Andy Piper <andy@xemacs.org>
10688 * console-msw.c (FROB): compare ints with ints.
10690 2000-05-11 Andy Piper <andy@xemacs.org>
10692 * glyphs-x.c (x_finalize_image_instance): make minimal build
10695 2000-05-20 Ben Wing <ben@xemacs.org>
10698 * event-Xt.c (vars_of_event_Xt):
10699 move modifier-keys-are-sticky to event-stream.c.
10702 * event-msw.c (mswindows_enqueue_mouse_button_event):
10703 * event-msw.c (key_needs_default_processing_p):
10704 * event-msw.c (XEMSW_LCONTROL):
10705 * event-msw.c (mswindows_handle_sticky_modifiers):
10706 * event-msw.c (FROB):
10707 * event-msw.c (clear_sticky_modifiers):
10708 * event-msw.c (output_modifier_keyboard_state):
10709 * event-msw.c (output_alt_keyboard_state):
10710 * event-msw.c (mswindows_wnd_proc):
10711 * event-msw.c (mswindows_modifier_state):
10712 * event-msw.c (emacs_mswindows_handle_magic_event):
10713 implement sticky modifiers.
10716 * event-stream.c (vars_of_event_stream):
10717 move modifier-keys-are-sticky here.
10720 add CHECK_FUNCTION.
10723 implement map-range-table.
10726 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
10728 * redisplay-tty.c (reset_tty_modes):
10729 (tty_redisplay_shutdown): Adjust argument type to
10730 tty_frame_output_end.
10732 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
10734 * eval.c (Fbacktrace): Don't output a line with only right
10737 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
10739 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
10740 (Fpq_reset_poll): Ditto.
10742 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
10744 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
10746 2000-05-16 Ben Wing <ben@xemacs.org>
10749 * buffer.c (dfc_convert_to/from_internal_format):
10750 * buffer.c (reinit_vars_of_buffer):
10751 Fix conversion functions to allow reentrancy.
10754 * console-msw.c (mswindows_output_last_error):
10755 New fun, generally useful -- output a human-readable
10756 version of GetLastError() on the console.
10759 * console-msw.h (struct mswindows_frame):
10760 Changes for DeferWindowPos. Declare mswindows_output_last_error().
10762 * console-stream.c (stream_output_begin):
10763 * console-stream.c (stream_output_end):
10764 * console-stream.c (stream_output_vertical_divider):
10765 * console-stream.c (stream_clear_region):
10766 * console-stream.c (stream_flash):
10767 * console-stream.c (console_type_create_stream):
10768 Delete blank stream methods, not needed.
10770 * console.h (struct console_methods):
10771 Split begin/end methods into window and frame.
10774 * event-msw.c (mswindows_handle_paint):
10775 * event-msw.c (output_alt_keyboard_state):
10776 * event-msw.c (mswindows_wnd_proc):
10777 * event-msw.c (vars_of_event_mswindows):
10778 Comment about problems with ignored-expose.
10779 Define mswindows-debug-events; not really implemented.
10781 * frame-msw.c (mswindows_init_frame_1):
10785 * glyphs-msw.c (begin_defer_window_pos):
10786 * glyphs-msw.c (mswindows_unmap_subwindow):
10787 * glyphs-msw.c (mswindows_map_subwindow):
10788 * glyphs-msw.c (mswindows_resize_subwindow):
10789 Use DeferWindowPos to reduce flashing when mapping/unmapping.
10791 * glyphs.c (make_image_instance_1):
10794 * gutter.c (Fredisplay_gutter_area):
10795 Use new begin/end methods.
10797 * lisp.h (Dynarr_new2):
10801 * redisplay-msw.c (mswindows_frame_output_begin):
10802 * redisplay-msw.c (mswindows_frame_output_end):
10803 * redisplay-msw.c (console_type_create_redisplay_mswindows):
10804 New begin/end methods -- handle DeferWindowPos.
10806 * redisplay-output.c (redisplay_move_cursor):
10807 * redisplay-output.c (redraw_cursor_in_window):
10808 * redisplay-output.c (redisplay_update_line):
10809 * redisplay-output.c (redisplay_output_window):
10810 New begin/end methods.
10813 * redisplay-tty.c (tty_frame_output_begin):
10814 * redisplay-tty.c (tty_frame_output_end):
10815 * redisplay-tty.c (console_type_create_redisplay_tty):
10816 New begin/end methods.
10819 * redisplay-x.c (x_window_output_begin):
10820 * redisplay-x.c (x_window_output_end):
10821 * redisplay-x.c (console_type_create_redisplay_x):
10822 New begin/end methods.
10824 * redisplay.c (redisplay_frame):
10825 * redisplay.c (Fredisplay_echo_area):
10826 New begin/end methods.
10827 use MAYBE_DEVMETH for clear_frame; it may not exist.
10829 * window.h (WINDOW_XFRAME):
10830 WINDOW_XFOO macros -- get locale and decode struct pointer.
10833 2000-05-12 Ben Wing <ben@xemacs.org>
10836 * emacs.c (ensure_no_quitting_from_now_on):
10837 * emacs.c (fatal_error_signal):
10838 * emacs.c (mswindows_handle_hardware_exceptions):
10840 * emacs.c (Fkill_emacs):
10841 * emacs.c (shut_down_emacs):
10842 * emacs.c (assert_failed):
10843 various improvements in fatal error handling.
10846 move preparing_for_armageddon to emacs.c.
10849 declare fatal_error_in_progress.
10852 * print.c (std_handle_out_external):
10853 * print.c (std_handle_out_va):
10854 * print.c (stderr_out):
10855 * print.c (stdout_out):
10856 use console under mswin when no standard output.
10857 don't do code conversion during fatal error.
10859 * scrollbar.c (Fscrollbar_page_up):
10860 * scrollbar.c (Fscrollbar_page_down):
10861 fix missing else. reindent.
10863 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
10867 * glyphs.h (GLYPH_CACHEL_DESCENT):
10868 (GLYPH_CACHEL_DESCENT):
10869 (GLYPH_CACHEL_DESCENT):
10870 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
10871 used in case these are inline functions.
10872 Use more absurd values to error check.
10874 include window.h for error check functions.
10876 2000-05-11 Ben Wing <ben@xemacs.org>
10878 * cmdloop.c (Freally_early_error_handler):
10879 Display message box under windows; otherwise, message will disappear
10880 before it can be viewed.
10883 * console-msw.c (Fmswindows_message_box):
10884 * console-msw.c (FROB):
10885 * console-msw.c (syms_of_console_mswindows):
10886 Define new fun `mswindows-message-box'.
10887 #### I will merge this into `popup-dialog-box'; just give me
10891 * general.c (syms_of_general):
10892 Some new symbols used in `mswindows-message-box'.
10895 * glyphs.c (Fset_image_instance_property):
10896 put warning in this fun.
10899 * glyphs.h (GLYPH_CACHEL_WIDTH):
10900 * glyphs.h (GLYPH_CACHEL_ASCENT):
10901 * glyphs.h (GLYPH_CACHEL):
10902 * glyphs.h (GLYPH_CACHEL_GLYPH):
10903 define error-checking versions to try to catch a bug i've seen --
10904 redisplay gets in an infinite loop because the glyph width of the
10905 continuation glyph is 65535.
10908 Extern message-box stuff.
10910 * window.c (allocate_window):
10911 * window.c (make_dummy_parent):
10912 * window.c (Fset_window_configuration):
10913 Use EQUAL not EQ for subwindow caches to make them work a bit
10914 better. (Something is still very broken.)
10917 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
10919 * glyphs.c (image_instantiate): Suppress gcc warnings.
10920 (Fmake_image_instance): Fix doc string.
10921 * specifier.c (Fmake_specifier): Ditto.
10923 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
10925 * paths.h.in (PATH_LOCK): Removed.
10926 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
10927 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
10929 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
10931 * fns.c (Ffeaturep): Update e-mail address in doc-string.
10932 Document (featurep '(and xemacs 21.02)).
10934 2000-05-09 Ben Wing <ben@xemacs.org>
10936 * buffer.c (complex_vars_of_buffer):
10937 update modeline-format doc.
10940 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
10943 timeline of all released versions of Emacs, for use in creating
10944 authorship comments and in synching up.
10946 * glyphs-widget.c (image_instantiator_buttons):
10947 * glyphs-widget.c (image_instantiator_edit_fields):
10948 * glyphs-widget.c (image_instantiator_combo_box):
10949 * glyphs-widget.c (image_instantiator_scrollbar):
10950 * glyphs-widget.c (image_instantiator_progress_guage):
10951 * glyphs-widget.c (image_instantiator_tree_view):
10952 * glyphs-widget.c (image_instantiator_tab_control):
10953 * glyphs-widget.c (image_instantiator_labels):
10954 * glyphs-widget.c (image_instantiator_layout):
10955 * glyphs-widget.c (image_instantiator_native_layout):
10956 rename decode_domain method to governing_domain.
10959 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
10960 * glyphs.c (add_entry_to_device_ii_format_list):
10961 make sure we don't put an entry more than once into the list.
10962 * glyphs.c (check_instance_cache_mapper):
10963 *************************************************************
10964 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
10966 *************************************************************
10967 * glyphs.c (get_image_instantiator_governing_domain):
10968 clean up, expand on new concept of governing domain.
10969 * glyphs.c (instantiate_image_instantiator):
10970 * glyphs.c (allocate_image_instance):
10971 use governing_domain instead of cache_domain in naming.
10972 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
10973 * glyphs.c (make_image_instance_1):
10974 * glyphs.c (Fmake_image_instance):
10975 allow for any domain (not just device), and process the
10976 governing domain correctly. very big doc fix.
10977 * glyphs.c (Fimage_instance_domain):
10978 new primitive, to retrieve the governing domain of an image instance.
10979 * glyphs.c (image_instantiate):
10980 use new governing_domain stuff. this fixes a crash you could get
10981 by instantiating certain widget glyphs in frame locales. (should
10982 signal an error instead of crashing.)
10983 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
10984 * glyphs.c (Fglyphp): clean up doc.
10985 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
10986 * glyphs.c (syms_of_glyphs):
10987 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
10988 * glyphs.c (image_instantiator_format_create): add some comments about
10990 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
10991 for current-display-table. (Apparently Hrjove implemented in 1998 a
10992 design I wrote up in 1996, but didn't update the doc string.)
10994 * glyphs.h: clean up a doc string.
10995 * glyphs.h (governing_domain):
10996 * glyphs.h (struct image_instantiator_methods):
10997 changes for governing_domain stuff.
11000 * gutter.c (Fgutter_specifier_p):
11001 * gutter.c (Fgutter_size_specifier_p):
11002 * gutter.c (Fgutter_visible_specifier_p):
11004 * objects.c (Fcolor_specifier_p):
11005 * objects.c (Ffont_specifier_p):
11006 * objects.c (Fface_boolean_specifier_p):
11007 doc strings moved to make-*-specifier.
11009 * redisplay.c (add_disp_table_entry_runes_1):
11010 * redisplay.c (generate_fstring_runes):
11011 * redisplay.c (screen):
11012 add random comments and doc strings.
11015 * specifier.c (Fmake_specifier):
11016 major overhaul of this doc string.
11018 * specifier.c (Fvalid_specifier_domain_p):
11019 comment about the bogosity of image instances being domains.
11020 * specifier.c (decode_domain):
11021 now non-static, used in glyphs.c.
11022 * specifier.c (specifier_instance):
11023 comment about the bogosity of image instances being domains.
11024 * specifier.c (Fgeneric_specifier_p):
11025 move doc string to make-generic-specifier.
11026 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11030 * specifier.h (DOMAIN_FRAME):
11031 * specifier.h (DOMAIN_LIVE_P):
11032 * specifier.h (DOMAIN_XDEVICE):
11034 add comments about problems with these macros.
11035 prototype for decode_domain.
11038 * toolbar.c (Ftoolbar_specifier_p):
11039 move doc string to `make-toolbar-specifier'.
11041 * window.c (window_unmap_subwindows_cache_mapper):
11042 *************************************************************
11043 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11045 *************************************************************
11047 2000-05-09 Andy Piper <andy@xemacs.org>
11049 * glyphs.h: declare reset_frame_subwindow_instance_cache.
11051 * window.c (Fset_window_configuration): reset the frame subwindow
11052 cache and re-initialize the window subwindow caches.
11054 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11056 2000-05-09 Ben Wing <ben@xemacs.org>
11058 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11061 2000-04-26 Mike Woolley <mike@bulsara.com>
11063 * ntheap.c: Changed recreate_heap to limit the amount reserved
11064 for the heap to that which is actually available. Also now
11065 displays a message box (with some dignostics) in the event that
11066 it still can't start.
11068 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11070 * callproc.c (Fold_call_process_internal): GCPRO path
11072 2000-05-08 Jan Vroonhof <jan@xemacs.org>
11074 Patch by Bill Perry.
11076 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11077 back data instead of #ifdef.
11078 (Fscrollbar_page_down): ditto.
11080 2000-05-07 Ben Wing <ben@xemacs.org>
11083 Kludge for defining Qmswindows_tstr.
11086 * nt.c (open_input_file):
11087 * nt.c (open_output_file):
11088 * nt.c (rva_to_section):
11089 * nt.c (mswindows_executable_type):
11090 Move all memory-mapped-file routines here (some were in unexnt.c,
11091 which is bad because they are used by process-nt.c, and unexnt
11092 won't be around when portable dumping). Synched the above routines
11096 Removed ifdef'd out bogus code.
11097 Fixed some prototypes.
11099 * nt.h (file_data):
11100 * nt.h (OFFSET_TO_RVA):
11101 * nt.h (RVA_TO_OFFSET):
11102 * nt.h (RVA_TO_PTR):
11103 Moved the memory-mapped-file structures, macros and prototypes
11104 here, to parallel nt.c. ntheap.h should really be removed
11105 entirely, and it's a non-portable-dumper specific file.
11107 * ntheap.h (round_to_next):
11108 Moved the memory-mapped-file structures, macros and prototypes
11111 * ntproc.c (compare_env):
11112 Moved rva_to_section and mswindows_executable_type to nt.c.
11113 Moved compare_env to process-nt.c.
11114 ntproc.c will die, one day.
11116 * ntproc.c (sys_spawnve):
11117 Account for win32_ -> mswindows_.
11120 * process-nt.c (struct nt_process_data):
11121 * process-nt.c (ensure_console_window_exists):
11122 * process-nt.c (compare_env):
11123 * process-nt.c (nt_create_process):
11124 * process-nt.c (nt_kill_process_by_pid):
11125 * process-nt.c (syms_of_process_nt):
11126 * process-nt.c (vars_of_process_nt):
11127 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11128 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11129 changes). Eliminate our old `nt-quote-process-args' mechanism.
11130 Synch up nt_create_process with FSF 20.6 sys_spawnve.
11131 Move compare_env here from ntproc.c.
11133 * process.c (Fprocess_send_region):
11134 Takes an optional fourth argument, BUFFER, which should fix some
11135 problems with call-process.
11138 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11141 Move ICC_BAR_CLASSES to syscommctrl.h.
11142 Add preliminary macros for MSWindows/Mule. More to come.
11145 * unexnt.c (unexec):
11146 open_output_file moved to nt.c.
11149 2000-05-05 Andy Piper <andy@xemacs.org>
11151 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11152 instance from the frame cache also since GC may catch up too late
11153 to make frame deletion sane.
11155 2000-05-04 Andy Piper <andy@xemacs.org>
11157 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11158 (x_finalize_image_instance): ungcpro on deletion.
11160 * glyphs.c (image_instantiator_format_create): give pointers a
11161 query geometry method so that the geometry is at least set.
11163 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11164 initialize layouts if using widgets.
11166 2000-05-03 Andy Piper <andy@xemacs.org>
11168 * nt.c: remove bogus reference to sysmmsystem.h
11170 * gui-x.c (popup_selection_callback): fix no selection abort.
11172 2000-05-02 Andy Piper <andy@xemacs.org>
11174 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11175 (mswindows_widget_instantiate): ditto.
11177 * glyphs-widget.c (initialize_widget_image_instance): initialize
11178 children correctly.
11179 (widget_instantiate): cope with children and items in the same
11182 * glyphs.c (mark_image_instance): cope with children as a first
11184 (image_instance_equal): ditto.
11185 (image_instance_hash): ditto.
11186 (image_instance_changed): ditto.
11188 2000-04-30 Andy Piper <andy@xemacs.org>
11190 * glyphs.c (subwindow_query_geometry): new function. Return some
11192 (subwindow_instantiate): don't assign dimensions if none have been
11194 (image_instantiator_format_create): add subwindow_query_geometry.
11195 (print_image_instance): cope with layouts as widgets.
11197 2000-04-29 Andy Piper <andy@xemacs.org>
11199 * frame.c (delete_frame_internal): call
11200 free_frame_subwindow_instance_cache so that all subwindows are
11201 finalized before their parent.
11202 (mark_frame): remove subwindow_cachels.
11203 (Fmake_frame): remove subwindow_cachel manipulation.
11204 (allocate_frame_core): subwindow_instance_cache is a weak list.
11205 (delete_frame_internal): set subwindow_instance_cache to nil.
11207 * glyphs-msw.c (mswindows_finalize_image_instance): make double
11209 (mswindows_finalize_image_instance): use the device
11210 not the domain as the domain may have died already.
11212 * glyphs-x.c (x_finalize_image_instance): ditto.
11213 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11216 * redisplay-output.c (redisplay_unmap_subwindows): update for
11217 subwindow instance cache as a weak list.
11218 (redisplay_unmap_subwindows_maybe): ditto.
11219 (redisplay_unmap_subwindows_except_us): ditto.
11221 * glyphs.c (unmap_subwindow): error checking will check the domain
11222 so don't deal with it here. Don't use cachels anymore.
11223 (map_subwindow): ditto.
11224 (update_subwindow_cachel_data): remove old accessor names.
11225 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11226 (Fresize_subwindow): don't update cachel.
11227 (mark_subwindow_cachels):
11228 (update_subwindow_cachel_data):
11229 (add_subwindow_cachel):
11230 (get_subwindow_cachel_index):
11231 (update_subwindow_cachel):
11232 (reset_subwindow_cachels):
11233 (mark_subwindow_cachels_as_not_updated): deleted.
11234 (cache_subwindow_instance_in_frame_maybe): new function. Add a
11235 subwindow instance to the frame cache.
11236 (find_matching_subwindow): update for subwindow instance cache as
11238 (update_widget_instances): ditto.
11239 (image_instance_type_to_mask):inlined.
11240 (free_frame_subwindow_instance_cache): new function. finalize all
11241 subwindows that are instantiated.
11243 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11244 of cachel information.
11245 (IMAGE_INSTANCE_DISPLAY_X):
11246 (IMAGE_INSTANCE_DISPLAY_Y):
11247 (IMAGE_INSTANCE_DISPLAY_WIDTH):
11248 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11249 (XIMAGE_INSTANCE_DISPLAY_X):
11250 (XIMAGE_INSTANCE_DISPLAY_Y):
11251 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11252 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11253 remove subwindow_cachel structure and function references.
11254 (image_instance_type_to_mask): inline from glyphs.c
11256 * redisplay.c (redisplay_frame): remove subwindow_cachel
11259 * frame.h (struct frame): remove subwindow_cachels.
11260 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11262 * frameslots.h: add subwindow_instance_cache.
11264 * window.c (replace_window): check subwindow cache of replacement.
11265 (window_unmap_subwindows_cache_mapper):
11266 (window_unmap_subwindows): new functions. Unmap all subwindows
11267 cached on this window.
11268 (mark_window_as_deleted): unmap all subwindows.
11270 2000-04-27 Andy Piper <andy@xemacs.org>
11272 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11274 * glyphs-widget.c (widget_layout): return something.
11275 (layout_layout): return something. Fail if not initialized.
11276 (layout_query_geometry): ditto.
11277 (image_instantiator_native_layout): new function. Initialized the
11278 native layout type.
11279 (widget_instantiate): don't do layout stuff here.
11281 * glyphs.c (instantiate_image_instantiator): reorded calling or
11282 instantiate and post_instantiate with layout in between.
11283 (image_instance_layout): be more selective about deciding whether
11284 the layout has been done or not.
11286 * glyphs.h (struct image_instantiator_methods): return a value
11287 from layout_method.
11289 2000-04-26 Andy Piper <andy@xemacs.org>
11291 * glyphs.c (allocate_image_instance): make initial width and
11292 height unspecified. Set initialized to 0.
11294 * syscommctrl.h new file. Encapsulates commctrl.h.
11296 * syswindows.h new file. Encapsulates windows.h.
11298 * ntplay.c: use new syswindows.h and syscommctrl.h header.
11300 * console-msw.h: ditto.
11302 * redisplay-tty.c (tty_output_display_block): remove layout references.
11304 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11305 window handle rather than just the frame.
11307 * glyphs.c (mark_image_instance): remove layout references.
11308 (print_image_instance): ditto.
11309 (image_instance_equal): ditto.
11310 (image_instance_hash): ditto.
11311 (decode_image_instance_type): ditto.
11312 (encode_image_instance_type): ditto.
11313 (image_instantiate): ditto.
11314 (allocate_glyph): ditto.
11315 (Fimage_instance_height): ditto.
11316 (Fimage_instance_width): ditto.
11317 (update_subwindow): ditto.
11319 * redisplay-x.c (x_output_display_block): recode for layouts as
11322 * redisplay-output.c (redisplay_output_layout): recode for layouts
11324 (compare_runes): remove layout references.
11326 * redisplay-msw.c (mswindows_output_display_block): recode for
11327 layouts as widgets.
11329 * glyphs-widget.c (image_instantiator_layout): remove
11330 layout_possible_dest_types.
11331 (layout_possible_dest_types): deleted.
11333 * glyphs.h (image_instance_type): remove layout references.
11334 (struct Lisp_Image_Instance): ditto. Add initialized flag.
11335 (IMAGE_INSTANCE_INITIALIZED): new accessor.
11336 (XIMAGE_INSTANCE_INITIALIZED): ditto.
11338 2000-04-25 Andy Piper <andy@xemacs.org>
11340 * glyphs-widget.c (image_instantiator_buttons):
11341 (image_instantiator_edit_fields):
11342 (image_instantiator_combo_box):
11343 (image_instantiator_scrollbar):
11344 (image_instantiator_progress_guage):
11345 (image_instantiator_tree_view):
11346 (image_instantiator_tab_control):
11347 (image_instantiator_labels):
11348 (image_instantiator_layout): call default post_instantiate method.
11349 (widget_post_instantiate): new function. Simply lays out the
11352 * glyphs.h (struct image_instantiator_methods): add
11353 post_instantiate method.
11355 * glyphs.c (instantiate_image_instantiator): add post_instantiate
11358 2000-04-23 Andy Piper <andy@xemacs.org>
11360 * glyphs.h (struct image_instantiator_methods): add
11361 decode_domain_method.
11362 (struct Lisp_Image_Instance): remove subwindow frame - it can be
11363 derived from the domain.
11364 (IMAGE_INSTANCE_FRAME): new accessor.
11365 (XIMAGE_INSTANCE_FRAME): ditto.
11367 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11368 instead of _SUBWINDOW_FRAME.
11369 (finalize_image_instance): ditto.
11370 (Fimage_instance_foreground): ditto.
11371 (Fimage_instance_background): ditto.
11372 (image_instantiate): ditto.
11373 (update_subwindow_cachel): ditto.
11374 (update_subwindow): ditto.
11375 (unmap_subwindow): ditto.
11376 (map_subwindow): ditto
11377 (subwindow_instantiate): ditto.
11378 * glyphs-msw.c (mswindows_update_widget): ditto.
11379 (mswindows_progress_gauge_instantiate): ditto.
11380 (mswindows_tab_control_update): ditto.
11381 * glyphs-x.c (x_update_widget): ditto.
11382 (x_widget_instantiate): ditto.
11383 (x_tab_control_instantiate): ditto.
11384 (x_tab_control_update): ditto.
11385 * event-msw.c (mswindows_wnd_proc): ditto
11387 * glyphs-widget.c (image_instantiator_layout): use
11388 subwindow_decode_domain.
11389 (image_instantiator_buttons): ditto.
11390 (image_instantiator_edit_fields): ditto.
11391 (image_instantiator_combo_box): ditto.
11392 (image_instantiator_scrollbar): ditto.
11393 (image_instantiator_progress_guage): ditto.
11394 (image_instantiator_tree_view): ditto.
11395 (image_instantiator_tab_control): ditto.
11396 (image_instantiator_labels): ditto.
11397 (image_instantiator_layout): ditto.
11399 * glyphs.c: add instance error checking to many functions.
11400 (instantiate_image_instantiator): decode device from cache_domain.
11401 (image_instantiate): partially rewrite by using
11402 decode_image_instantiator_domain to determine what domain the
11403 instance needs to be cached in.
11404 (decode_image_instantiator_domain): new function. Determine what
11405 domain the image needs to be cached in.
11406 (check_window_subwindow_cache): new error checking function.
11407 (check_instance_cache_mapper): ditto.
11408 (check_image_instance_structure): ditto.
11409 (subwindow_decode_domain): new function. Encodes a window as a
11410 subwindow's cache domain.
11411 (image_instantiator_format_create): use it for text and
11414 2000-04-21 Andy Piper <andy@xemacs.org>
11416 * glyphs.c (image_instance_device): new function.
11417 (image_instance_frame): new function.
11418 (image_instance_window): new function.
11419 (image_instance_live_p): new function.
11421 * window.c (mark_window_as_deleted): reset the subwindow_instance_
11424 * glyphs.h (struct Lisp_Image_Instance): device->domain.
11425 (IMAGE_INSTANCE_DOMAIN): new accessor.
11426 (XIMAGE_INSTANCE_DOMAIN): ditto.
11428 * glyphs-x.c (x_finalize_image_instance): device->domain.
11430 * glyphs-msw.c (init_image_instance_geometry): device->domain.
11431 (mswindows_finalize_image_instance): ditto.
11433 * glyphs-eimage.c (jpeg_instantiate): device->domain.
11434 (gif_instantiate): ditto.
11435 (png_instantiate): ditto.
11436 (tiff_instantiate): ditto.
11438 * glyphs.c (instantiate_image_instantiator): use domain rather
11440 (mark_image_instance): device -> domain.
11441 (print_image_instance): ditto.
11442 (finalize_image_instance): ditto.
11443 (image_instance_equal): ditto.
11444 (allocate_image_instance): ditto.
11445 (Fcolorize_image_instance): ditto.
11446 (query_string_geometry): ditto.
11447 (image_instantiate): ditto
11448 (query_string_font): ditto.
11449 (image_instantiate): ditto.
11450 (update_subwindow): ditto.
11451 (unmap_subwindow): ditto.
11452 (map_subwindow): ditto.
11453 (subwindow_instantiate): ditto.
11455 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
11456 (DOMAIN_FRAME): ditto.
11457 (DOMAIN_WINDOW): ditto.
11458 (DOMAIN_LIVE_P): ditto.
11459 (XDOMAIN_DEVICE): ditto.
11460 (XDOMAIN_FRAME): ditto.
11461 (XDOMAIN_WINDOW): ditto.
11463 * specifier.c (Fvalid_specifier_domain_p): add image instances as
11464 a valid specifier domain.
11466 2000-04-19 Andy Piper <andy@xemacs.org>
11468 * glyphs-widget.c (syms_of_glyphs_widget): remove
11469 widget-callback-current-channel.
11470 (vars_of_glyphs_widget): ditto.
11473 * gui.c (get_gui_callback): revert to previous behaviour.
11475 2000-04-18 Andy Piper <andy@xemacs.org>
11477 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
11478 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
11479 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
11481 * glyphs.c (image_instance_equal): add margin_width.
11482 (image_instance_hash): ditto.
11484 * glyphs-widget.c (widget_instantiate): deal with margin-width.
11485 (layout_query_geometry): ditto.
11486 (layout_layout): ditto.
11487 (syms_of_glyphs_widget): add margin-width.
11488 (image_instantiator_layout): allow margin-width.
11490 * glyphs.c (update_widget_instances): make a normal function.
11491 (syms_of_glyphs): remove Qupdate_widget_instances.
11494 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
11495 so that we don't corrupt ideas about the last event or
11496 command. Remove widget-callback-current-channel fiddling.
11497 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11499 2000-05-01 Martin Buchholz <martin@xemacs.org>
11501 * XEmacs 21.2.33 is released.
11503 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
11505 * make-src-depend: Allow dots in header file name.
11507 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
11509 * mule-charset.h (struct charset_lookup): Add
11510 next_allocated_1_byte_leading_byte and
11511 next_allocated_2_byte_leading_byte.
11512 * mule-charset.c: Move above two variables so that those values
11515 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
11517 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
11518 when string length is zero.
11519 (find_charsets_in_emchar_string): Ditto.
11521 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
11523 * lisp.h: extern Qdialog and Qmenubar.
11525 * gui-x.c: added events.h.
11526 also fixed typo which made the file uncompilable.
11528 * general.c: Added Qmenubar and Qdialog
11530 2000-04-28 Ben Wing <ben@xemacs.org>
11532 * frame-msw.c (mswindows_init_frame_1):
11533 * frame-msw.c (mswindows_mark_frame):
11534 * event-msw.c (mswindows_enqueue_dispatch_event):
11536 * console-msw.h (struct mswindows_frame):
11537 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
11538 there are now three hash tables for callbacks.
11539 mswindows_enqueue_dispatch_event is no longer static.
11541 * dialog-x.c (maybe_run_dbox_text_callback):
11542 * dialog-x.c (dbox_descriptor_to_widget_value):
11543 switch to new cons3 form for callbacks.
11545 * glyphs-msw.c (mswindows_register_gui_item):
11546 * glyphs-msw.c (mswindows_widget_instantiate):
11547 * glyphs-msw.c (add_tree_item):
11548 * glyphs-msw.c (add_tab_item):
11549 new image instance parameter, so it can be passed to callback-ex.
11550 respect :callback-ex as well as :callback.
11552 * glyphs-widget.c (VALID_GUI_KEYWORDS):
11555 * glyphs.c (print_image_instance):
11556 prettify, e.g. now prints widget type.
11559 certain funs have new image instance parameter.
11562 * gui.c (get_gui_callback):
11563 * gui.c (gui_item_add_keyval_pair):
11564 * gui.c (gui_item_init):
11565 * gui.c (gui_add_item_keywords_to_plist):
11566 * gui.c (mark_gui_item):
11567 * gui.c (gui_item_hash):
11568 * gui.c (gui_item_equal):
11569 * gui.c (copy_gui_item):
11570 * gui.c (syms_of_gui):
11571 recognize callback-ex in a number of places.
11572 also, fix the annoying "can't get out of yes-no dialog" bug.
11575 * gui.h (struct Lisp_Gui_Item):
11576 recognize callback-ex in a number of places.
11578 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11579 new parameter in button_item_to_widget_value.
11581 * glyphs-x.c (x_update_widget):
11582 * glyphs-x.c (x_button_instantiate):
11583 * glyphs-x.c (x_button_update):
11584 * glyphs-x.c (x_progress_gauge_instantiate):
11585 * glyphs-x.c (x_edit_field_instantiate):
11586 * glyphs-x.c (x_combo_box_instantiate):
11587 * glyphs-x.c (x_tab_control_instantiate):
11588 * glyphs-x.c (x_label_instantiate):
11589 new image instance parameter in various places.
11592 * event-Xt.c (enqueue_Xt_dispatch_event):
11593 this fun gets exported.
11596 * gui-msw.c (mswindows_handle_gui_wm_command):
11597 handle both :callback and :callback-ex, and generate our own
11598 event because it's one of the callback-ex arguments.
11601 * gui-x.c (popup_selection_callback):
11602 handle both :callback and :callback-ex, and generate our own
11603 event because it's one of the callback-ex arguments.
11604 * gui-x.c (button_item_to_widget_value):
11605 * gui-x.c (gui_items_to_widget_values_1):
11606 * gui-x.c (gui_item_children_to_widget_values):
11607 * gui-x.c (gui_items_to_widget_values):
11608 new image instance parameter in various places.
11610 * fns.c (Freplace_list):
11611 fix small typo in doc string.
11614 declare enqueue_Xt_dispatch_event.
11616 2000-04-28 Ben Wing <ben@xemacs.org>
11619 * buffer.c (Frecord_buffer):
11620 * buffer.c (syms_of_buffer):
11621 delete record-buffer-hook.
11624 * fns.c (Freplace_list):
11625 * fns.c (syms_of_fns):
11626 new primitive replace-list.
11629 slot for old buffer-alist.
11632 exfun replace-list.
11635 * redisplay.c (redisplay_frame):
11636 * redisplay.c (syms_of_redisplay):
11637 * redisplay.c (vars_of_redisplay):
11638 new hook buffer-list-changed-hook.
11641 2000-04-27 Ben Wing <ben@xemacs.org>
11643 * extents.h: extern in_modeline_generation.
11645 * redisplay.c (generate_formatted_string_db): set
11646 in_modeline_generation.
11648 * extents.c (extent_changed_for_redisplay): don't mark redisplay
11649 flags if in modeline generation. otherwise frame-modified-tick
11650 is ticked far too often.
11651 Declare in_modeline_generation.
11653 2000-04-26 Ben Wing <ben@xemacs.org>
11655 * emacs.c (vars_of_emacs): document quick-build "error-checking"
11657 (vars_of_emacs): add quick-build as an error-checking option.
11658 A bit kludgy, but there doesn't seem much point in creating
11659 a real var for this.
11661 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
11663 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
11665 * redisplay.h (struct display_line): Add a new variable,
11668 * redisplay.c (create_text_block): Set dl->line_continuation if
11669 the line continues.
11670 (create_string_text_block): Ditto.
11671 (regenerate_window_incrementally): Use line_continuation instead
11672 of searching continuation glyph.
11673 (add_margin_runes): Call add_glyph_rune.
11674 (add_glyph_rune): Handle margin glyph.
11676 2000-04-20 Martin Buchholz <martin@xemacs.org>
11678 * filelock.c (fill_in_lock_file_name):
11680 Check for IS_ANY_SEP instead of '/'.
11682 Avoid generating gratuitous garbage. Call user_login_name() directly.
11683 Never check errno without first seeing that system call failed.
11684 (unlock_file): Add GCPRO.
11685 (Flock_buffer): Fix docstring.
11686 (Ffile_locked_p): Fix docstring. Add GCPRO.
11688 2000-04-19 Martin Buchholz <martin@xemacs.org>
11690 * sysdep.c (get_pty_max_bytes):
11691 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
11692 strings longer than 252 bytes.
11694 * md5.c: Unconditionally include ANSI header <limits.h>
11696 * glyphs-x.c (convert_EImage_to_XImage):
11697 * lisp-union.h (union Lisp_Object):
11698 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
11700 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
11702 * filelock.c (current_lock_owner): Remove unused variable o, p.
11704 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
11706 * callint.c: Remove multiply defined symbol Qlet
11707 (syms_of_callint): ditto.
11709 2000-04-14 Andy Piper <andy@xemacs.org>
11711 * general.c (syms_of_general): add last-command, this-command, let
11714 * lisp.h: declare various symbols.
11716 * glyphs.h: declare Qwidget_callback_current_channel;
11718 * glyphs-widget.c (syms_of_glyphs_widget): add
11719 Qgui_callback_current_channel.
11720 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
11722 * gui-msw.c (mswindows_handle_gui_wm_command): bind
11723 widget-callback-current-channel when invoking the interactive
11724 arg. Also bind last-command and next-command when invoking the
11726 * gui-x.c (popup_selection_callback): ditto.
11728 * gui.c (get_gui_callback): massage args so that we are always
11729 calling eval. This allows us to add our own variable bindings
11732 * glyphs-x.c (x_button_instantiate): use
11733 gui_items_to_widget_values since this is GC safe.
11734 (x_progress_gauge_instantiate): ditto.
11735 (x_edit_field_instantiate): ditto.
11736 (x_label_instantiate): ditto.
11738 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
11739 (emacs_Xt_event_widget_focus_out): new function
11740 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
11742 (emacs_Xt_event_add_widget_actions): new function. add focus
11743 functions as actions.
11744 (init_event_Xt_late): use it.
11746 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
11748 * event-stream.c (Fdispatch_event): Doc fix.
11750 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
11752 * postgresql.c: Remove all references to PQsetenv*.
11754 * postgresql.h: Remove references to PGsetenvHandler object.
11755 * lrecord.h (lrecord_type): Ditto.
11757 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11759 * glyphs-msw.h (struct mswindows_image_instance_data): Added
11760 real_heigh and real_width members, and accessor macros for these.
11762 * glyphs-msw.c (init_image_instance_geometry): New function.
11763 (init_image_instance_from_dibitmap): Use it.
11764 (mswindows_resource_instantiate): Use it.
11765 (init_image_instance_from_xbm_inline): Use it.
11766 (mswindows_initialize_image_instance_mask): Use real bitmap
11768 (mswindows_create_resized_bitmap): Ditto.
11769 (mswindows_create_resized_mask): Ditto.
11771 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
11772 and bitmap to their surface size.
11774 2000-04-11 Jan Vroonhof <jan@xemacs.org>
11776 * process-unix.c (unix_send_process): Guard against process MIA
11777 after Faccept_process_output.
11779 2000-04-11 Ben Wing <ben@xemacs.org>
11781 * eval.c (unbind_to_hairy): fix brokenness introduced by
11782 nanosecond speed improvements.
11784 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
11786 * sunplay.c (init_device): To play sounds correctly, the device
11787 apparently needs to be initialized at least once by XEmacs. Make
11790 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
11792 * redisplay.c (add_margin_runes): Add text image glyph
11795 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
11797 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
11798 gcc is newer than 2.5.
11800 2000-04-06 Colin Rafferty <colin@xemacs.org>
11802 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
11804 * fns.c (size_bit_vector):
11805 * alloc.c (size_vector):
11806 (make_vector_internal):
11807 (make_bit_vector_internal):
11808 (sweep_bit_vectors_1):
11809 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
11811 2000-04-06 Andy Piper <andy@xemacs.org>
11813 * gmalloc.c (malloc): undo previous change.
11818 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
11820 * line-number.c (buffer_line_number): Revert to former version.
11822 2000-04-06 Andy Piper <andy@xemacs.org>
11824 * gmalloc.c (malloc): add error checking.
11829 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
11830 button_item_to_widget_value arg.
11832 * glyphs-x.c (x_button_instantiate): add extra
11833 button_item_to_widget_value arg.
11834 (x_progress_gauge_instantiate): ditto.
11835 (x_edit_field_instantiate): ditto.
11836 (x_label_instantiate): ditto.
11838 * gui-x.c (gui_items_to_widget_values_1): add extra
11839 button_item_to_widget_value arg.
11840 (button_item_to_widget_value): add extra menu_item_p arg.
11842 * gui-x.h: change signature of button_item_to_widget_value.
11844 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
11845 button_item_to_widget_value arg.
11847 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
11849 * buffer.h (struct buffer): auto_save_modified should be long.
11851 2000-04-05 Andy Piper <andy@xemacs.org>
11853 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
11855 (button_query_geometry): give a little more room so that athena
11858 2000-04-05 Andy Piper <andy@xemacs.org>
11860 * faces.c (complex_vars_of_faces): The widget face should inherit
11861 the font of the gui-element face.
11863 2000-04-04 Andy Piper <andy@xemacs.org>
11865 * glyphs-x.c (x_button_update): new function. unconditionally
11866 update a button's state when the instance is dirty.
11867 (image_instantiator_format_create_glyphs_x): add x_button_update.
11868 (x_widget_instantiate): remove old resize cruft.
11870 2000-04-02 Andy Piper <andy@xemacs.org>
11872 * frame.c (change_frame_size_1): The introduction of gutters means
11873 that we need to allow 0 as a potential frame dimension.
11875 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
11877 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
11878 image glyph if allow_cursor.
11879 (add_hscroll_rune): Don't allow cursor to border glyph.
11880 (create_text_block): Ditto.
11882 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
11883 text not in buffer.
11884 (redisplay_output_layout): Call ensure_face_cachel_complete for
11888 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
11890 * redisplay.c (add_glyph_rune): Adding text image as text runes.
11892 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
11895 * redisplay-tty.c (tty_output_display_block): Delete the routine
11896 for text image glyph
11897 * redisplay-x.c (x_output_display_block): ditto
11898 * redisplay-msw.c (mswindows_output_display_block): ditto
11900 2000-02-02 Mike Alexander <mta@arbortext.com>
11902 Note: Some of these were committed by accident as part of other
11905 * regex.c (regex_compile): Avoid compiler warnings.
11907 * ntproc.c (sys_spawnve): Avoid compiler warnings.
11909 * nt.h: Declare term_ntproc correctly.
11911 * nt.c: Remove incorrect declaration of get_home_directory which
11912 is declared correctly in lisp.h.
11914 * keymap.c (get_keyelt): Avoid compiler warnings.
11915 (raw_lookup_key_mapper): Avoid compiler warnings.
11917 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
11919 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
11921 * filemode.c (mode_string): Avoid compiler warnings.
11923 * file-coding.c (Fcoding_system_aliasee): Add return statement to
11926 * events-mod.h: Undef some things that winuser.h defines differently.
11928 * data.c (Faset): Avoid compiler warnings.
11930 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
11932 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
11934 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
11935 Fall through to simple beep on error.
11936 Replace "extern" by real header file.
11938 * linuxplay.c: Use nativesound.h
11939 (play_sound_data): Return error code. Be less verbose on error.
11941 * sunplay.c: Use nativesound.h
11942 (play_sound_data): Return error code. Be less verbose on error.
11944 * ntplay.c: Use nativesound.h
11945 (play_sound_data): Return fake error code
11947 * sgiplay.c: Use nativesound.h
11948 (play_sound_data): Return error code
11950 * hpplay.c: Use nativesound.h, partially implement
11951 new error code. Break compilation until finished.
11952 (play_sound_data): error code.
11954 * nativesound.h (play_sound_file):
11955 (play_sound_data): Prototype in new header.
11957 2000-03-31 Andy Piper <andy@xemacs.org>
11959 * glyphs-widget.c: (button_query_geometry): new function. Adjust
11960 for toggle and radio buttons.
11961 (image_instantiator_buttons): use it.
11963 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
11965 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
11966 (x_update_horizontal_scrollbar_callback): Return if no mirror was
11967 found. Scrollbar event probably belonged to some old config.
11969 2000-03-31 Andy Piper <andy@xemacs.org>
11971 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
11973 (initialize_widget_image_instance): default layout to
11974 LAYOUT_HORIZONTAL rather than 0.
11975 (widget_instantiate): reverse the item list at the end rather than
11977 (layout_layout): re-code for the border text at the front of the
11978 item list rather than at the end.
11979 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
11980 provided by the user.
11981 (widget_query_geometry): comment.
11983 2000-03-30 Andy Piper <andy@xemacs.org>
11985 * glyphs-widget.c (image_instantiator_layout): allow standard
11986 widget keywords in layouts.
11988 * gutter.c (output_gutter): cope with nil gutter contents.
11990 * frame.c (Fset_frame_properties): add gutter docs.
11992 2000-03-29 Andy Piper <andy@xemacs.org>
11994 * toolbar-msw.c (TBSTYLE_FLAT): add.
11995 (mswindows_output_toolbar): minor fiddling.
11997 2000-03-29 Andy Piper <andy@xemacs.org>
11999 * gutter.c (output_gutter): force gutter size recalculation if
12000 what we are trying to display won't fit.
12001 (update_gutter_geometry): new function. A per-gutter version of
12002 update_frame_gutter_geometry.
12003 (update_frame_gutter_geometry): use it.
12004 (redraw_exposed_gutter): add extra debugging output.
12006 2000-03-28 Mike Alexander <mta@arbortext.com>
12008 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12009 (pdump_file_unmap): Implement it on Windows
12010 (pdump_file_get): Save alocated handles for pdump_file_unmap
12012 2000-03-28 Andy Piper <andy@xemacs.org>
12014 * gui.c (get_gui_callback): treat Quit specially.
12016 2000-03-27 Andy Piper <andy@xemacs.org>
12018 * glyphs.c (image_instantiate): be careful to check in the same
12021 2000-03-27 Didier Verna <didier@xemacs.org>
12023 * config.h.in: define the proper SMART_INCLUDE macro.
12024 handle renaming of `foo_h_path' to `foo_h_file'.
12026 * database.c: ditto.
12030 * linuxplay.c: ditto.
12032 * terminfo.c: ditto.
12034 * tooltalk.h: ditto.
12036 2000-03-27 Andy Piper <andy@xemacs.org>
12038 * glyphs-msw.c (mswindows_update_widget): make sure the widget
12039 gets updated whenever the face might have changed.
12041 2000-03-26 Mike Alexander <mta@arbortext.com>
12043 * dumper.c (pdump_resource_free): Fix the comment.
12045 2000-03-21 Olivier Galibert <galibert@pobox.com>
12047 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12049 2000-03-22 Mike Alexander <mta@arbortext.com>
12051 * dumper.c: Include Windows headers on Windows
12052 (pdump_resource_free): Add a body to the function
12053 (pdump_load): exe_name -> exe_path and add some comments.
12055 2000-03-25 Mike Alexander <mta@arbortext.com>
12057 * gui.c (copy_gui_item_tree): Return a value in all cases
12059 2000-03-21 Didier Verna <didier@xemacs.org>
12061 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12063 (SMART_INCLUDE): new macro.
12064 (POSTGRES_INCLUDE): new macro to include postgresql headers from
12065 the proper location.
12067 * postgresql.c: use it.
12071 2000-03-24 Andy Piper <andy@xemacs.org>
12073 * gutter.c (redraw_exposed_gutters): must be "in display" when we
12076 2000-03-24 Andy Piper <andy@xemacs.org>
12078 * redisplay-output.c (compare_runes): use image_instance_changed
12079 to detect changes. Do not depend on glyphs_changed, only depend on
12081 (redisplay_output_layout): add debug messages.
12082 (compare_runes): ditto.
12084 * glyphs.h: declare new functions.
12085 (struct Lisp_Image_Instance): remove percent and associated
12088 * gui.h: declare new copying functions.
12090 * gui.c (copy_gui_item_tree): new function.
12091 (copy_gui_item): new function.
12092 (gui_item_id_hash): revert to standard hash.
12093 (gui_item_hash): ditto.
12094 (gui_item_hash_internal): deleted.
12095 (mark_gui_item): mark value.
12096 (gui_item_add_keyval_pair): add value.
12097 (gui_item_init): ditto.
12098 (gui_add_item_keywords_to_plist): ditto.
12099 (gui_item_equal): ditto.
12100 (syms_of_gui): add Q_value.
12102 * glyphs-x.c (x_progress_gauge_update): use pending items and
12103 value for setting the state.
12104 (x_update_widget): don't set items from pending here.
12106 * glyphs-widget.c (update_widget): update items here.
12107 (progress_gauge_set_property): use items for storing value. Put
12108 new value in pending items.
12110 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12111 items for new value. Convert percent -> value.
12112 (mswindows_tab_control_update): don't update items here.
12114 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12115 (update_subwindow): ditto.
12116 (image_instance_changed): new function. Compare hash values and
12117 past and present widget items.
12118 (image_instantiate): We more careful about where we instantiate
12120 (image_instantiate): add error checking.
12122 * gutter.c (syms_of_gutter): use -hook.
12124 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
12126 * console-tty.c (Fset_console_tty_input_coding_system): Use
12128 (Fset_console_tty_output_coding_system): Use Qterminal.
12129 (tty_init_console): Use Qkeyboard and Qterminal.
12131 2000-03-21 Ben Wing <ben@xemacs.org>
12133 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12134 From Mike Alexander <mta@arbortext.com>.
12136 2000-03-21 Ben Wing <ben@xemacs.org>
12138 * event-msw.c (mswindows_need_event): Horrible kludge to fix
12139 process brokenness. Proper implementation to come.
12141 Rename call-process-internal to old-call-process-internal.
12142 New impl. in process.el.
12144 2000-03-21 Martin Buchholz <martin@xemacs.org>
12146 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12148 2000-03-20 Andy Piper <andy@xemacs.org>
12150 * glyphs.c (full_list_hash): make hashes of the same elements in
12151 different orders return different values.
12153 2000-03-20 Martin Buchholz <martin@xemacs.org>
12155 * XEmacs 21.2.32 is released.
12157 2000-03-20 Martin Buchholz <martin@xemacs.org>
12159 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12160 (DFC_MALLOC_USE_CONVERTED_DATA):
12161 Add aliasing-safe casts to allow use with char* or unsigned char*
12164 * eldap.c (Fldap_open):
12165 (Fldap_search_basic):
12168 Make C++-compilable.
12169 Make sure GCPRO'ed variables are initialized.
12170 Use temp variables to avoid repeated calls to Flength.
12172 2000-03-16 Martin Buchholz <martin@xemacs.org>
12175 Make sure PATH_MAX is always defined.
12176 Include limits.h for PATH_MAX.
12177 Deprecate use of MAXPATHLEN.
12179 2000-03-10 Martin Buchholz <martin@xemacs.org>
12181 * emacs.c: Add reinit_vars_of_fileio.
12182 * symsinit.h: Add reinit_vars_of_fileio.
12183 * fileio.c (reinit_vars_of_fileio): New.
12184 * fileio.c (Fmake_temp_name):
12185 Initialize temp_name random number from microseconds to make
12186 collisions even less likely. Initialize always at process startup
12187 time. (make-temp-name) used to return the same file name twice in
12189 Random stylistic fiddling.
12192 2000-03-20 Andy Piper <andy@xemacs.org>
12194 * glyphs.c (image_instantiate): allow text glyphs to be
12195 instantiated in the minibuffer window.
12197 2000-03-19 Andy Piper <andy@xemacs.org>
12199 * glyphs.c (image_instance_hash): be careful about which items we
12202 * glyphs-widget.c (tab_control_set_property): record into pending
12203 items rather than the actual items.
12205 * glyphs-x.c (x_update_widget): use pending items to update with.
12207 * glyphs-msw.c (mswindows_tab_control_update): use pending items
12210 * glyphs.c (mark_image_instance): mark pending items.
12212 * window.c (Fset_window_configuration): record the buffer.
12213 (Fselect_window): totally revert previous change which breaks many
12216 2000-03-18 Andy Piper <andy@xemacs.org>
12218 * glyphs-msw.c (mswindows_tab_control_update): force selected
12221 * glyphs.c (image_instantiate): don't allow the minibuffer as a
12222 window domain cache, otherwise we get inconsistencies at
12223 startup. There is something fishy at startup which can lead to the
12224 minibuffer being the selected window when the gutter content is
12227 * gui.c (parse_gui_item_tree_list): add probably unnecessary
12229 (parse_gui_item_tree_children): ditto.
12230 (parse_gui_item_tree_item): ditto.
12232 * glyphs.c (Fupdate_widget_instances): return something.
12234 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
12236 * window.c (Fselect_window): Undo 2000-03-17 change.
12238 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
12240 * postgresql.c (Fpq_setenv): Remove this turkey when linking
12241 against v7.0 libraries. Insta-coredump city until the postgres
12244 2000-03-17 Andy Piper <andy@xemacs.org>
12246 * faces.c (complex_vars_of_faces): don't give the widget face an
12247 inherited background pixmap.
12249 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12252 * event-stream.c (Fdispatch_non_command_events): return something.
12254 * gutter.c (output_gutter): use widget face.
12255 (clear_gutter): ditto.
12257 * NEWS: adjust again.
12259 * window.c (Fselect_window): make sure this runs to completion to
12260 avoid oddities with Fset_window_configuration.
12261 (Fcurrent_window_configuration): in general do not save the
12262 minibuffer as the selected window.
12264 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12266 2000-03-16 Olivier Galibert <galibert@pobox.com>
12268 * emacs.c (Frunning_temacs_p): Revert previous patch.
12269 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12271 2000-03-16 Andy Piper <andy@xemacs.org>
12273 * glyphs-x.c (x_tab_control_update): if no widget values then
12276 * NEWS: update for new features.
12278 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12279 synthetic event to the native system.
12280 (reinit_vars_of_event_Xt): set force_event_pending to
12281 emacs_Xt_force_event_pending.
12283 * events.h (struct event_stream): add force_event_pending.
12285 * specifier.c (recompute_one_cached_specifier_in_window): add
12288 * redisplay.c (redisplay_frame): don't call
12289 update_frame_subwindows. Reset subwindow cachels when
12290 subwindows_changed, removing this was an optimization too far.
12292 * redisplay-output.c (compare_runes): reorganize so that we catch
12293 glyph changes when we want them. Set optimize_output when this
12294 would help layouts.
12295 (redisplay_output_layout): remove frame_really_changed, use
12296 optimize_output instead.
12298 * redisplay-msw.c (mswindows_output_display_block): reset
12299 optimize_output after outputting a glyph.
12300 * redisplay-x.c (x_output_display_block): ditto.
12301 * redisplay-tty.c (tty_output_display_block): ditto.
12303 * gutter.c: (specifier_vars_of_gutter): use new spec changed
12305 (gutter_specs_changed): do specific gutter positions.
12306 (top_gutter_specs_changed): new function. Only update the
12307 specified gutter specs.
12308 (bottom_gutter_specs_changed): ditto.
12309 (left_gutter_specs_changed): ditto.
12310 (right_gutter_specs_changed): ditto.
12312 * gui.c (gui_item_hash_internal): new function, does a real hash.
12313 (gui_item_id_hash): use it.
12314 (gui_item_hash): hash the eval'ed gui_item.
12316 * gui-x.c (popup_selection_callback): send an eval event to call
12317 Fupdate_widget_instances.
12319 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12320 to call Fupdate_widget_instances.
12322 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12323 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12325 * glyphs.c: (update_frame_subwindows): deleted.
12326 (Fupdate_widget_instances): new function for updating the dirty
12327 state of widgets that might have changed.
12328 (syms_of_glyphs): add Qupdate_widget_instances.
12329 (full_list_hash): hash a list completely.
12330 (image_instance_hash): use it for items and properties.
12332 * frame-msw.c (mswindows_size_frame_internal): remove unused
12335 * faces.h (struct face_cachel): fix comment.
12337 * event-stream.c (Fdispatch_non_command_events): new
12338 function. Process non-command events, forcing an event cycle
12340 (syms_of_event_stream): declare.
12341 (event_stream_force_event_pending): new function. Force an event
12342 on the native event queue so that an event cycle will occur next
12346 (struct ntpipe_shove_stream):
12347 (mswindows_enqueue_dispatch_event):
12348 (mswindows_dequeue_dispatch_event):
12349 (mswindows_cancel_dispatch_event):
12350 (mswindows_pump_outstanding_events):
12351 (mswindows_drain_windows_queue):
12352 (mswindows_handle_paint):
12353 (mswindows_wnd_proc):
12354 (mswindows_key_to_emacs_keysym):
12355 (get_process_input_waitable):
12356 (emacs_mswindows_delete_stream_pair): re-indent file.
12357 (mswindows_need_event): do not process further fds if the windows
12358 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12359 fixes the 100% cpu problem.
12360 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12362 2000-03-15 Olivier Galibert <galibert@pobox.com>
12368 * emacs.c: Moved dump file searching to dumper.c.
12369 (Frunning_temacs_p): Fixed.
12371 * alloc.c: Moved everything pdump-related to dumper.c. Removed
12372 last_lrecord_type_index_assigned.
12374 2000-02-20 Olivier Galibert <galibert@pobox.com>
12376 * symsinit.h: Added reinit parameter to init_console_stream
12379 * lisp.h: Added file parameter to pdump_load declaration.
12381 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12382 support. Added dump file searching.
12384 * config.h.in: Added EMACS_PROGNAME.
12386 * console-stream.c (init_console_stream): Fix reinitialisation
12387 when running from temacs.
12389 * alloc.c (pdump): Add id support.
12390 (pdump_load): Add file parameter and signature/id support.
12392 * Makefile.in.in: Add full pdump support.
12394 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
12396 * postgresql.c: Update documentation to reflect latest code
12398 (print_result): Show tuple counts in printed representation when
12400 (Fpq_put_nbytes): MULE-ize.
12401 (Fpq_get_line_async): Ditto.
12403 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
12405 * postgresql.c (Fpq_lo_import): Fix return value.
12406 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12408 2000-03-13 Ben Wing <ben@xemacs.org>
12410 * alloc.c (pdump_load):
12411 Fix compile warning under mswin.
12413 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
12415 * postgresql.c: Mule-ization, bug fixes.
12416 Use PG_CODING to encapsulate coding system name changes.
12417 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12418 (pg-coding-system): Create.
12420 (Fpq_conn_defaults): Mule-ize.
12421 (Fpq_connectdb): Mule-ize & bug fix.
12422 (Fpq_connect_start): Mule-ize.
12423 (Fpq_set_client_encoding): Mule-ize.
12424 (Fpq_finish): Document `DEAD' connection status.
12425 (Fpq_clear): Ditto.
12426 (Fpq_pgconn): Mule-ize.
12427 (Fpq_exec): Mule-ize & bug fix.
12428 (Fpq_send_query): Ditto.
12429 (Fpq_get_result): Ditto.
12430 (Fpq_res_status): Mule-ize.
12431 (Fpq_result_error_message): Mule-ize.
12432 (Fpq_ntuples): fix comments.
12433 (Fpq_fname): Mule-ize.
12434 (Fpq_fnumber): Mule-ize.
12435 (Fpq_ftype): fix comments.
12436 (Fpq_get_value): Mule-ize.
12437 (Fpq_cmd_status): Ditto.
12438 (Fpq_cmd_tuples): Ditto.
12439 (Fpq_oid_value): Ditto.
12440 (Fpq_notifies): Ditto.
12441 (Fpq_lo_import): Ditto.
12442 (Fpq_lo_export): Ditto.
12443 (Fpq_get_line): Ditto.
12444 (Fpq_put_line): Mule-ize and bug fix.
12445 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
12447 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
12449 * postgresql.c (vars_of_postgresql): Mule-ize.
12450 (Fpq_conn_defaults): Ditto.
12452 2000-03-12 Ben Wing <ben@xemacs.org>
12454 * alloc.c (Fmake_byte_code):
12455 * alloc.c (debug_string_purity_print):
12456 * alloc.c (pdump_backtrace):
12457 * alloc.c (pdump_get_indirect_count):
12458 * alloc.c (pdump_register_sub):
12459 * alloc.c (pdump_register_object):
12460 * alloc.c (pdump_register_struct):
12461 * alloc.c (pdump_dump_data):
12462 * alloc.c (pdump_reloc_one):
12466 * console-msw.c (GetConsoleHwnd):
12467 * console-msw.c (msw_hide_console):
12468 * console-msw.c (msw_show_console):
12469 * console-msw.c (msw_ensure_console_buffered):
12470 * console-msw.c (msw_output_console_string):
12471 * console-msw.c (console_type_create_mswindows):
12473 a) Added functions to manipulate the console window for use with
12476 b) Added support for writing text to the console, which is now
12477 used under Windows when xemacs is not being run non-interactively,
12478 to write text that would otherwise be destined for stdout because
12479 under these circumstances, text written to stdout tends to
12480 disappear and not be seen.
12484 * event-Xt.c (x_event_to_emacs_event):
12485 * event-Xt.c (describe_event_window):
12486 * events-mod.h (XEMACS_MOD_CONTROL):
12488 * events.c (Fmake_event):
12489 * events.c (character_to_event):
12490 * events.c (event_to_character):
12491 * events.c (format_event_object):
12492 * events.c (Fevent_modifiers):
12494 * events.h (struct key_data):
12495 * events.h (struct button_data):
12496 * events.h (struct misc_user_data):
12497 * frame-x.c (Fcde_start_drag_internal):
12498 * frame-x.c (Foffix_start_drag_internal):
12499 * gpmevent.c (Freceive_gpm_event):
12501 * keymap.c (bucky_sym_to_bucky_bit):
12502 * keymap.c (control_meta_superify):
12503 * keymap.c (make_key_description):
12504 * keymap.c (keymap_lookup_directly):
12505 * keymap.c (create_bucky_submap):
12506 * keymap.c (keymap_store):
12507 * keymap.c (define_key_check_and_coerce_keysym):
12508 * keymap.c (define_key_parser):
12509 * keymap.c (define_key_alternate_name):
12510 * keymap.c (Fdefine_key):
12511 * keymap.c (raw_lookup_key_mapper):
12512 * keymap.c (struct map_keymap_unsorted_closure):
12513 * keymap.c (map_keymap_unsorted_mapper):
12514 * keymap.c (map_keymap_sort_predicate):
12515 * keymap.c (map_keymap_sorted):
12516 * keymap.c (accessible_keymaps_mapper_1):
12517 * keymap.c (where_is_recursive_mapper):
12518 * keymap.c (describe_map_mapper):
12519 * keymap.c (describe_map_sort_predicate):
12520 * keymap.c (describe_map):
12521 * keymap.c (complex_vars_of_keymap):
12522 And a number of other files, the key modifier preprocessor
12523 constants that xemacs uses have names that conflict with constants
12524 defined under MS Windows for other purposes, so they were renamed
12525 to begin with the prefix XEMACS_. The variables that hold such
12526 modifiers were changed to consistently be of type int to fix
12527 various compile warnings.
12529 * console.c (complex_vars_of_console):
12532 * device-msw.c (mswindows_finish_init_device):
12533 * device-msw.c (msw_get_workspace_coords):
12534 * device-msw.c (mswindows_device_system_metrics):
12535 and various other files, added support for a new
12536 device property called offset-workspace which returns the position
12537 of the upper left corner of the workspace area and goes along with
12538 the existing size-workspace property.
12541 * dialog-msw.c (push_bufbyte_string_as_unicode):
12542 * dialog-msw.c (mswindows_popup_dialog_box):
12543 Added support for XEmacs-style accelerator specifications in
12544 button text. Note: I didn't add support for this under X Windows,
12545 and somebody needs to do this.
12548 * dialog.c (Fpopup_dialog_box):
12549 Documented the support for accelerators that was just mentioned.
12551 editfns.c (get_home_directory): Changed behavior under Windows
12552 when HOME not defined; former behavior was irretrievably broken.
12555 * emacs.c (main_1):
12557 * minibuf.c (clear_echo_area_internal):
12558 * minibuf.c (echo_area_append):
12560 * print.c (std_handle_out_external):
12561 * print.c (std_handle_out_va):
12563 * print.c (write_string_to_stdio_stream):
12564 * print.c (output_string):
12565 * print.c (debug_print):
12566 * print.c (debug_backtrace):
12567 * print.c (debug_short_backtrace):
12568 Cleaned up the code that prints text to stdout so that this can be
12569 changed to output into a console window instead under MS Windows,
12570 as described above.
12573 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
12574 * eval.c (internal_catch):
12575 * eval.c (unwind_to_catch):
12576 * eval.c (throw_or_bomb_out):
12577 * eval.c (condition_case_1):
12578 * eval.c (signal_1):
12579 * eval.c (check_error_state_sanity):
12580 * eval.c (call_with_suspended_errors_1):
12581 * eval.c (call_with_suspended_errors):
12582 * eval.c (reinit_vars_of_eval):
12583 Added code to catch throw loops and check for a pesky bug that may
12587 * event-msw.c (key_needs_default_processing_p):
12588 * event-msw.c (mswindows_wnd_proc):
12589 * event-msw.c (mswindows_modifier_state):
12590 * event-msw.c (emacs_mswindows_quit_p):
12591 * event-msw.c (vars_of_event_mswindows):
12592 a) Added support for using the alt key to select menu items as is
12593 standard under MS Windows. This is controlled using the variable
12594 menu-accelerator-enabled, just like under X Windows. There is an
12595 option on the options menu to turn this support on. I really
12596 think that it should be on by default under Windows, but I'm not
12597 going to make this change yet.
12599 b) Added support for dynamic display size changes under Windows.
12602 * event-stream.c (maybe_echo_keys):
12603 * event-stream.c (Fnext_event):
12604 * event-stream.c (command_builder_find_leaf):
12605 * event-stream.c (lookup_command_event):
12606 * event-stream.c (execute_command_event):
12607 * event-stream.c (pre_command_hook):
12608 * event-stream.c (post_command_hook):
12609 * event-stream.c (syms_of_event_stream):
12610 * event-stream.c (vars_of_event_stream):
12611 * event-stream.c (complex_vars_of_event_stream):
12612 * events.h (struct command_builder):
12614 a) Tried to clean up a little bit the horribly written x-specific
12615 accelerator code that crept into this file. I moved this code
12616 into menubar-x.c where it belongs. I also needed to move the
12617 command builder structure into the file events.h because it is
12618 accessed directly by this accelerator code. What I didn't do, but
12619 which should be done at some point, is to properly abstract this
12620 code using device methods instead of the kludgy way that it
12621 currently hooks into the event code.
12623 b) Added the lisp variables this-command-properties and
12624 last-command- properties, which should be used to synchronize two
12625 adjacent commands in preference to playing games with the variable
12626 this-command, which is typically what happens.
12628 c) Added some slightly nasty code to hook into the lisp support
12629 for shifted- motion-key selection. This is actually necessary for
12630 somewhat complicated reasons, which are described in
12631 simple.el. (NB: I think the proper thing would be to have the code
12632 that calls the pre and post command hooks also call out to generic
12633 lisp functions in simple.el, where all built-in stuff could be
12634 added. I will think about this more.)
12636 * event-unixoid.c (poll_fds_for_input):
12637 * lread.c (readchar):
12638 * redisplay-tty.c (tty_clear_frame):
12639 * redisplay-x.c (x_get_gc):
12640 * signal.c (interrupt_signal):
12641 And a whole bunch of other files: fixed up places that printed
12642 directly to stderr to instead call the function stderr_out so that
12643 the changes I made under Windows work correctly.
12645 * filemode.c (mode_string):
12649 * frame-msw.c (mswindows_size_frame_internal):
12650 Fixed the computation of frame size and position to keep the frame
12651 within the workspace area, rather than within the physical
12652 dimensions of the screen, so that the frame doesn't overlap window
12653 manager decorations, such as the start menu and toolbar, typically
12654 at the bottom of the screen.
12656 * frame.c (vars_of_frame):
12657 Changed the default frame title format under MS Windows to consist
12658 of buffername-XEmacs, which is standard under MS Windows. I think
12659 it might be a good idea to change this everywhere because I think
12660 it is superior to the current frame title format, but this is the
12661 kind of change that is likely to cause some people to get annoyed,
12662 so I'm not making it.
12664 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
12666 * gui-msw.c (mswindows_handle_gui_wm_command):
12667 Fixed compile warnings.
12670 * gui-x.c (strdup_and_add_accel):
12671 * gui-x.c (button_item_to_widget_value):
12673 Added code to automatically put an accelerator onto the beginning
12674 of menu items that don't have one as is now the standard, and is
12675 described more later. Also fixed things so that the menu item
12676 name can be an evaluated expression, again a new standard.
12679 * gui.c (gui_item_add_keyval_pair):
12680 * gui.c (make_gui_item_from_keywords_internal):
12681 * gui.c (gui_add_item_keywords_to_plist):
12682 * gui.c (gui_item_accelerator):
12683 * gui.c (gui_name_accelerator):
12684 * gui.c (gui_item_included_p):
12685 * gui.c (gui_item_display_flush_left):
12686 * gui.c (gui_item_display_flush_right):
12687 * gui.c (parse_gui_item_tree_item):
12688 * gui.c (parse_gui_item_tree_children):
12689 * gui.c (parse_gui_item_tree_list):
12690 Mule-ized. Cleanup. GCPRO addition.
12692 * line-number.c (buffer_line_number):
12694 * lisp.h (EMACS_INT_MAX):
12695 Added the manifest constant EMACS_INT_MIN corresponding to the
12696 existing constant EMACS_INT_MAX. This is partially to fix compile
12697 warnings under Windows, and partly for cleanliness.
12700 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
12701 * menubar-msw.c (msw_translate_menu_or_dialog_item):
12702 * menubar-msw.c (displayable_menu_item):
12703 * menubar-msw.c (populate_menu_add_item):
12704 * menubar-msw.c (populate_or_checksum_helper):
12705 * menubar-msw.c (populate_menu):
12706 * menubar-msw.c (update_frame_menubar_maybe):
12707 * menubar-msw.c (prune_menubar):
12708 * menubar-msw.c (msw_char_is_accelerator):
12709 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
12710 * menubar-msw.c (mswindows_handle_wm_command):
12711 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
12712 * menubar-msw.c (mswindows_handle_wm_initmenu):
12713 * menubar-msw.c (mswindows_update_frame_menubars):
12714 * menubar-msw.c (mswindows_free_frame_menubars):
12715 * menubar-msw.c (mswindows_popup_menu):
12716 Fixed a bug in handling accelerators where an extra character
12717 would be displayed in the menu item. Also generalized the
12718 function displayable_menu_item because it is now used by the
12719 dialog box code as well. And finally, added code in the functions
12720 that create the menubar to extract a list of accelerators for the
12721 top level menubar, which is used in the event code to determine
12722 whether a particular alt-key combination should be used to invoke
12723 a menu item, or should be passed through to access the standard
12724 XEmacs keymap binding for this key combination.
12726 Much needed GCPROing.
12729 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12730 * menubar-x.c (menu_item_descriptor_to_widget_value):
12731 * menubar-x.c (restore_in_menu_callback):
12732 * menubar-x.c (x_popup_menu):
12733 * menubar-x.c (menu_move_up):
12734 * menubar-x.c (menu_move_down):
12735 * menubar-x.c (menu_move_left):
12736 * menubar-x.c (menu_move_right):
12737 * menubar-x.c (menu_select_item):
12738 * menubar-x.c (command_builder_operate_menu_accelerator):
12739 * menubar-x.c (menu_accelerator_junk_on_error):
12740 * menubar-x.c (command_builder_find_menu_accelerator):
12741 * menubar-x.c (Faccelerate_menu):
12743 Moved a whole bunch of code here that was previously in
12744 event-stream.c as described above. There is also code connected
12745 to the new standard of adding an accelerator to the beginning of
12746 menu items that don't have one as described above and below.
12749 * menubar.c (menu_parse_submenu_keywords):
12750 * menubar.c (Fmenu_find_real_submenu):
12751 * menubar.c (Fnormalize_menu_item_name):
12752 * menubar.c (syms_of_menubar):
12753 * menubar.c (vars_of_menubar):
12754 * menubar.c (complex_vars_of_menubar):
12756 a) Cleaned up a bunch of documentation and improved it.
12758 b) XEmacs now automatically adds an accelerator onto the beginning
12759 of any menu items that don't have one. I did this because there
12760 will inevitably be some menu items on the main menubar that don't
12761 have accelerators on them because the package that adds that
12762 particular menu item hasn't yet been fixed up to have accelerators
12763 in them and it looked rather strange to have some items with and
12764 some items without accelerators, especially since even in items
12765 without accelerators, you can, at least under windows, still
12766 access the item through an accelerator corresponding to the first
12767 character in the item's name. If people don't like this behavior,
12768 I can add a variable to turn it off optionally, but I'm not sure
12769 this is a good idea because we really do need to have accelerators
12770 on all of the menu items, and if a package doesn't like the
12771 accelerators being put on the first character, then it should put
12772 the accelerators where they belong.
12774 c) I made a behavior change, which is that the descriptor that
12775 specifies the text of the menu item, which formerly was just a
12776 string, can now also be an evaluated expression. This makes this
12777 descriptor parallel with all of the others, which could also be
12778 evaluated expressions. This also obviates the need for the
12779 keyword :label, which was previously listed in the documentation
12780 as unimplemented, and which was for the same purpose.
12785 * ntproc.c (new_child):
12786 * ntproc.c (sys_spawnve):
12787 * ntproc.c (find_child_console):
12788 * ntproc.c (sys_kill):
12789 Fixed compile warnings. By the way, this file should really go
12790 away entirely, and this will happen as soon as Kirill makes his
12791 final round of process cleanups, which affect the function
12795 * process-nt.c (struct nt_process_data):
12796 * process-nt.c (find_process_from_pid):
12797 * process-nt.c (send_signal_the_nt_way):
12798 * process-nt.c (enable_child_signals):
12799 * process-nt.c (find_child_console):
12800 * process-nt.c (send_signal_the_95_way):
12801 * process-nt.c (nt_finalize_process_data):
12802 * process-nt.c (ensure_console_window_exists):
12803 * process-nt.c (nt_create_process):
12804 * process-nt.c (nt_kill_child_process):
12805 * process-nt.c (nt_kill_process_by_pid):
12806 * process-nt.c (nt_open_network_stream):
12807 * process-nt.c (vars_of_process_nt):
12808 Copied over code from Emacs 20.5 to correctly send signals to sub-
12809 processes under Windows 95. Also added code to automatically
12810 create and hide console window when a sub-process is created under
12811 Windows 95, which obviates the need for the separate runemacs.exe
12812 executable, and finally implemented some variables that were
12813 implemented in Emacs 20.5, but previously not in XEmacs. These
12814 include mswindows- start-process-share-console and
12815 mswindows-start-process-inherit-error-mode. (Both of these only
12816 apply to Windows 95.)
12818 * regex.c (regex_compile): Fixed a compile warning.
12821 * select-msw.c (mswindows_own_selection):
12822 * select-msw.c (mswindows_get_foreign_selection):
12823 * select-msw.c (mswindows_disown_selection):
12824 * select-msw.c (console_type_create_select_mswindows):
12825 * select-msw.c (syms_of_select_mswindows):
12826 Cleaned up the file and implemented the device method
12827 selection_exists_p, which had accidentally been left out. Also
12828 removed four lisp functions that were remnants from before the
12829 time when the selection code was properly device abstracted.
12830 These functions are no longer needed because there are generic
12831 equivalents, and because they were added recently and don't exist
12832 in FSF Emacs, I don't think there's any problem with just deleting
12836 * sysdep.c (sys_subshell):
12837 Fixed a compile warning, although in this case there's probably
12838 something wrong with this code, and it ought to be looked into
12839 more thoroughly by somebody who understands it.
12842 * window.c (Fwindow_text_area_height):
12843 * window.c (Fwindow_width):
12844 * window.c (Fwindow_full_width):
12845 * window.c (Fwindow_pixel_width):
12846 * window.c (debug_print_window):
12847 * window.c (syms_of_window):
12848 Added functions window-text-area-height and window-full-width,
12849 which are functions for returning various width and height
12850 characteristics of a window. (One of these functions is necessary
12851 for making the file dialog box work correctly, and the other one
12852 was added for completeness.) Also added a table to the
12853 documentation for window-height which describes the entire scheme
12854 for accessing width and height characteristics of a window.
12856 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12858 * nt.c (fstat): Added a comment for another problem with
12859 non-encapsulated [f]stat(), reported by Adrian Aichner
12860 <aichner@ecf.teradyne.com>.
12862 2000-03-11 Andy Piper <andy@xemacs.org>
12864 * window.c (make_dummy_parent): initialize subwindow instance
12866 (Fset_window_configuration): zero extent_modiff.
12868 2000-03-10 Andy Piper <andy@xemacs.org>
12870 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
12871 more changes can be triggered.
12872 (Fredisplay_frame): ditto.
12873 (Fredraw_device): ditto.
12874 (Fredisplay_device): ditto.
12875 (redisplay_frame): make non-static.
12876 (redisplay_frame): call update_frame_gutter_geometry outside of
12879 * gutter.h: declare update_frame_gutter_geometry.
12881 * redisplay.h: declare redisplay_frame.
12883 * gutter.c (update_frame_gutter_geometry): move geometry changes
12884 in update_frame_gutters here. Geometry changes can only occur
12885 outside of redisplay.
12886 (update_frame_gutters): remove geometry change code.
12887 (Fredisplay_gutter_area): make sure that we are in display when we
12888 update and that we have flushed any size changes.
12890 2000-03-11 Andy Piper <andy@xemacs.org>
12892 * alloc.c (pdump_dump_data): remove i & count shadows.
12894 2000-02-27 Mike Alexander <mta@arbortext.com>
12896 * sysdep.h: Declare pdump_read_file
12898 * sysdep.c (pdump_read_file): New function
12900 * alloc.c (pdump_load): Call pdump_read_file to get the portable
12903 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
12905 * lrecord.h: add `lrecord_type_pgsetenv'.
12907 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
12909 * symsinit.h: declare (vars|syms)_of* functions.
12910 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
12912 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
12914 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
12916 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
12919 * emacs.c (main_1): Call postgres initialization code.
12921 * postgresql.h: New file. PostgreSQL RDBMS support.
12922 * postgresql.c: New file.
12924 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
12926 * redisplay-output.c (redisplay_output_display_block): Disable
12929 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
12931 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
12932 (Fcanna_henkan_next): Ditto.
12933 (Fcanna_bunsetu_henkou): Ditto.
12934 (Fcanna_henkan_kakutei): Ditto.
12935 (Fcanna_henkan_end): Ditto.
12936 (Fcanna_henkan_quit): Ditto.
12937 (Fcanna_henkan_next): Set retun value correctly.
12938 (c2mu): Use unsigned char instead of signed char.
12940 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
12942 * emacs.c (main_1): Always call syms_of_gui.
12943 * inline.c: include gui.h
12945 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
12947 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
12948 converted to Lisp_Object.
12949 (Qtop_bottom): New variable.
12950 (syms_of_redisplay): Initialize it.
12951 * redisplay.h (Vvisible_bell): Ditto.
12952 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
12953 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
12954 only flash top and bottom.
12956 2000-03-08 Andy Piper <andy@xemacs.org>
12958 * buffer.c (Frename_buffer): record new buffer name the right way.
12960 2000-03-08 Andy Piper <andy@xemacs.org>
12962 * glyphs.c (update_subwindow): increase hash depth so that widget
12963 items get picked up properly.
12965 * redisplay-output.c (compare_runes): increase hash depth so that
12966 widget items get picked up properly.
12968 2000-03-08 Andy Piper <andy@xemacs.org>
12970 * gutter.c (output_gutter): add some debug.
12972 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
12973 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
12974 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
12976 * redisplay-output.c (compare_runes): use display_hash to
12977 determine if glyphs really are not the same.
12979 * glyphs.c (update_subwindow): check display_hash to see if
12980 anything really needs to be updated. If not then do
12981 nothing. Record the display_hash after updating.
12982 (image_instance_equal): compare the image_instance face also.
12984 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
12986 * redisplay.h: Fix comment style.
12988 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
12990 * consle-msw.h (struct mswindows_frame):
12991 Added new member paint_pending to indicate whether a WM_PAINT
12992 magic event has been queued for this frame.
12994 * event-msw.c (mswindows_drain_windows_queue):
12995 Don't queue a WM_PAINT magic event if one is already queued.
12996 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
12998 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13000 2000-03-07 Didier Verna <didier@xemacs.org>
13002 * dired.c: #include `regex.h' after `sysfile.h'.
13004 2000-03-06 Martin Buchholz <martin@xemacs.org>
13006 * sound.c (init_nas_sound): Fix compiler warning.
13008 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13010 (MARK_STRUCT_AS_FREE):
13011 (MARK_STRUCT_AS_NOT_FREE):
13012 Make `gcc -fstrict-aliasing' work properly.
13014 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
13016 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13017 (mswindows_delete_device): Call CoUnnitialize().
13019 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13021 2000-02-25 <CraigL@DyCon.com>
13023 * process-nt.c: MinGW now has <shellapi.h>, but still needs
13026 * sysdep.c: This extern declaration for environ prevents MinGW
13027 from finding the variable in CRTDLL.DLL.
13029 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13031 (SHGFI_EXETYPE): ..
13032 (WM_MOUSEWHEEL): ..
13033 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13035 (MMRESULT): Removed, now defined in cygwin's windows headers.
13037 (uid_t,gid_t,pid_t,ssize_t): ..
13038 (_timeb): Removed, MinGW defines both _timeb and timeb.
13039 (HAVE_H_ERRNO): Added.
13040 (HAVE_TZNAME): Added, configure is not detecting this.
13042 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
13044 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13045 * syntax.c (syntax_match): Use it.
13047 * cmds.c: Import auto-fill-chars from FSF Emacs.
13048 (Vauto_fill_chars): New variables.
13049 (internal_self_insert): Check Vauto_fill_chars.
13051 Declare auto-fill-chars as a Lisp variable and initialize it.
13053 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
13055 * fileio.c (Fmake_symbolic_link):
13057 Run handlers even if local machine doesn't have symlinks.
13059 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
13061 * event-msw.c (mswindows_drain_windows_queue):
13062 Don't generate paint magic events for non-XEmacs frames.
13064 2000-03-05 Andy Piper <andy@xemacs.org>
13066 * redisplay.c (redisplay_frame): generate_displayable_area and
13067 friends assumes that we are not in GC, we therefore have to make
13068 sure that this doesn't happen.
13070 * gutter.c (calculate_gutter_size): generate_displayable_area
13071 assumes that we are not in GC, we therefore have to make sure that
13072 this doesn't happen.
13074 2000-03-05 Martin Buchholz <martin@xemacs.org>
13076 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13078 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
13080 * redisplay.c (regenerate_window): Make sure we set a sane value
13081 for end_pos even if we jump out of the loop.
13082 (regenerate_window): Answer Ben's question :-).
13083 (start_end_of_last_line): Add may_error argument.
13084 (start_of_last_line):
13085 (end_of_last_line): Pass may_error = 0.
13086 (end_of_last_line_may_error): New function.
13087 (pixel_to_glyph_translation): Use it, so we don't crash in
13090 2000-03-04 Andy Piper <andy@xemacs.org>
13092 * window.h (struct window): add gutter_extent_modiff.
13094 * window.c (allocate_window): zero out gutter_extent_modiff.
13096 * redisplay.h: declare sync_display_line_structs.
13098 * redisplay.c (add_glyph_rune): add a better comment.
13100 * redisplay-output.c (sync_display_line_structs): made non-static.
13101 (compare_runes): remove unneccesary glyph cachel access.
13103 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13105 * gutter.c (output_gutter): don't output the gutter if extent
13106 changes only involve extents in buffers. use 4 sets of display
13108 (gutter_extent_signal_changed_region_maybe): new function. Mark
13109 extents in gutters as changed.
13110 (update_frame_gutters): use 4 sets of display lines.
13111 (reset_gutter_display_lines): ditto.
13112 (free_frame_gutters): ditto.
13113 (redraw_exposed_gutter): force output of gutters.
13115 * frame.h (struct frame): add 4 sets of gutter display lines.
13117 * extents.c: (extent_changed_for_redisplay): signal changes to
13118 extents in strings in the gutter as well as extents in buffers.
13120 2000-03-02 Andy Piper <andy@xemacs.org>
13122 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13124 * frame.c (Fmake_frame): make sure the gutters get initialized
13125 after the frame is visible.
13126 (set_frame_selected_window): re-arrange compilation macros a
13128 (change_frame_size_1): mark gutters changed.
13130 * device.c (Fset_device_class): mark gutters changed.
13132 2000-03-01 Andy Piper <andy@xemacs.org>
13134 * window.c (window_top_frame_gutter_height): deleted.
13135 (window_bottom_frame_gutter_height): ditto.
13136 (window_left_frame_gutter_height): ditto.
13137 (window_right_frame_gutter_height): ditto.
13138 (window_top_gutter_height): don't use them.
13139 (window_bottom_gutter_height): ditto.
13140 (window_left_gutter_width): ditto.
13141 (window_right_gutter_width): ditto.
13142 (Fsplit_window): ditto.
13143 (Fwindow_pixel_edges): don't use border dimensions here.
13145 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13146 (update_scrollbar_instance): ditto.
13148 * redisplay.c (generate_modeline): don't take gutters into account.
13149 (generate_modeline): ditto.
13150 (redisplay_frame): small gutter display optimization.
13152 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13154 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13155 gutters into account.
13157 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13158 for window position and type.
13160 * gutter.c (get_gutter_coords): fix for frame gutters.
13161 (update_frame_gutters): update frame geometry if the gutters have
13163 (init_frame_gutters): record current gutter geometries.
13165 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13167 (mswindows_widget_instantiate): ditto.
13169 * frame.h (struct frame): add current_gutter_bounds.
13171 * frame.c (change_frame_size_1): position window and minibuffer
13172 appropriately taking into account the frame gutters.
13174 * frame-x.c: (x_initialize_frame_size): take into account the
13177 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
13179 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
13181 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
13183 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13185 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13187 * file-coding.c (reset_decoding_stream): Clear previous
13188 detection state when autodetect.
13190 2000-02-29 Didier Verna <didier@xemacs.org>
13192 * extents.c (set_extent_glyph_1): don't require extents to be
13195 2000-02-27 Andy Piper <andy@xemacs.org>
13197 * gutter.c (Fset_default_gutter_position): don't default left and
13198 right gutter visibility to t.
13199 (Fset_default_gutter_position): run
13200 default-gutter-position-changed-hook.
13201 (syms_of_gutter): add default-gutter-position-changed-hook.
13203 2000-02-26 Andy Piper <andy@xemacs.org>
13205 * specifier.c (Fmake_specifier): add gutter references.
13207 * gutter.h (RAW_WINDOW_GUTTER): new macro.
13209 * lisp.h: declare Fvalid_plist_p.
13211 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13213 (default_gutter_visible_p_changed_in_window): invalidate gutter as
13214 well as its visibility so that it gets reconstructed.
13215 (construct_window_gutter_spec): new function. Construct a string
13216 to be displayed in the gutter from a plist of strings. Take care
13217 to only use elements that are declared as visible.
13218 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13220 (gutter_validate): allow plists of strings in the specifier.
13221 (gutter_specs_changed): construct the real_gutter from the gutter
13222 specs using construct_window_gutter_spec.
13223 (gutter_visible_validate): gutter-visible is a new specifier type.
13224 (Fgutter_visible_specifier_p): new function for the new specifier.
13225 (syms_of_gutter): declare gutter-visible and
13226 Fgutter_visible_specifier_p.
13227 (specifier_type_create_gutter): intitalize new gutter-visible
13229 (reinit_specifier_type_create_gutter): ditto.
13230 (specifier_vars_of_gutter): use new specifier type for gutter
13232 (init_frame_gutters): construct real_gutter correctly.
13233 (Fgutter_specifier_p): beef up documentation.
13234 (Fgutter_size_specifier_p): ditto.
13236 * winslots.h: add real_gutter slots.
13238 2000-02-25 Andy Piper <andy@xemacs.org>
13240 * device-msw.c: Be kind to older cygwin versions. From Raymond
13241 Toy <toy@rtp.ericsson.se>.
13243 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13244 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13246 2000-02-25 Martin Buchholz <martin@xemacs.org>
13248 * elhash.c (MARK_OBJ): Practice macro hygiene.
13250 2000-02-24 Martin Buchholz <martin@xemacs.org>
13252 * miscplay.c: s/__inline__/inline/g;
13253 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13254 (get_device_compdc): INLINE ==> static inline
13255 * *.[ch]: Change INLINE to INLINE_HEADER globally.
13256 find -name '*.h' | \
13257 xargs global-replace \
13258 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13260 2000-02-25 Andy Piper <andy@xemacs.org>
13262 * window.c (window_top_frame_gutter_height): new function.
13263 (window_top_window_gutter_height): ditto.
13264 (window_top_gutter_height): use them.
13265 (window_bottom_frame_gutter_height): new function.
13266 (window_bottom_window_gutter_height): ditto.
13267 (window_bottom_gutter_height): use them.
13268 (window_left_window_gutter_width): new function.
13269 (window_left_frame_gutter_width): ditto.
13270 (window_left_gutter_width): use them.
13271 (window_right_window_gutter_width): new function.
13272 (window_right_frame_gutter_width): ditto.
13273 (window_right_gutter_width): use them.
13274 (window_pixel_height): new function. calulate window pixel height
13275 with frame gutter involvement.
13276 (Fsplit_window): calculate new sizes taking frame gutters into
13278 (window_char_height_to_pixel_height): don't include frame gutters.
13279 (window_char_height): use window_pixel_height.
13280 (window_pixheight): rename from window_pixel_height.
13281 (change_window_height): use it.
13282 (window_pixel_height_to_char_height): don't include frame gutters.
13283 (window_char_width_to_pixel_width): ditto.
13285 2000-02-25 Andy Piper <andy@xemacs.org>
13287 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13290 2000-02-24 Martin Buchholz <martin@xemacs.org>
13292 * alloc.c (staticpro):
13293 (staticpro_nodump):
13298 (compact_string_chars):
13299 (pdump_dump_wired):
13300 Convert: if (foo) abort(); ==> assert (! foo);
13302 * eldap.c (Fldap_search_basic):
13306 Fix compiler warnings, and possible crashes if (random) return
13307 value were to be used.
13309 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13311 * device-msw.c: Workaround ResetDC failure.
13313 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13314 applying a devmode.
13316 * redisplay-msw.c (get_frame_dc): Added start_page_p.
13317 (mswindows_text_width): Do not start printer page.
13319 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13321 * glyphs-msw.c: Added image methods to msprinter console and
13322 msprinter-specific image instantiation.
13324 2000-02-20 Mike Alexander <mta@arbortext.com>
13326 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13327 to avoid crashes when selection-sets-clipboard is on
13328 (mswindows_own_selection): ditto
13330 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13333 * redisplay-msw.c (get_frame_dc):
13334 (get_frame_compdc):
13336 * device-msw.c (mswindows_init_device):
13337 (mswindows_delete_device):
13338 (msprinter_init_device):
13339 (msprinter_delete_device):
13340 * frame-msw.c (mswindows_init_frame_1):
13341 (mswindows_delete_frame):
13342 (msprinter_init_frame_3):
13343 (msprinter_delete_frame): Move compatible DC to device object from
13344 frame object, for both mswindows and msprinter. Only one at a time
13345 is needed, it is a real waste to have one per frame!
13347 2000-02-23 Andy Piper <andy@xemacs.org>
13349 * glyphs.c: add dynamic width and height elements.
13350 (image_instance_equal): ditto.
13352 * glyphs-widget.c (widget_query_geometry): calculate width and
13353 height dynamically if required.
13354 (initialize_widget_image_instance): initialize dynamic dimensions.
13355 (widget_instantiate): pick-up dynamic dimensions.
13357 * glyphs.h (struct Lisp_Image_Instance): add width and height for
13358 dynamic determination. Add appropriate macros.
13360 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13362 (WINDOW_GUTTER_SIZE): ditto.
13363 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13365 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13367 (get_frame_dc): ditto.
13369 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13372 2000-02-23 Martin Buchholz <martin@xemacs.org>
13374 * XEmacs 21.2.31 is released.
13376 2000-02-22 Ben Wing <ben@xemacs.org>
13378 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13380 2000-02-22 Andy Piper <andy@xemacs.org>
13382 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13384 2000-02-21 Mike Sperber <mike@xemacs.org>
13388 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13391 2000-02-21 Mike Sperber <mike@xemacs.org>
13393 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13395 2000-02-21 Martin Buchholz <martin@xemacs.org>
13397 * XEmacs 21.2.30 is released.
13399 2000-02-20 Martin Buchholz <martin@xemacs.org>
13401 Performance hacking.
13403 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13404 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13405 * emacs.c (main_1):
13407 * console.c (DEFVAR_CONSOLE_LOCAL_1):
13408 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13409 * symeval.h (DEFVAR_SYMVAL_FWD):
13410 * symbols.c (guts_of_unbound_marker):
13411 Make all c_readonly objects also lisp_readonly and marked for life.
13412 * lrecord.h (struct lrecord_implementation):
13413 Document flags better.
13414 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13415 * lrecord.h (DECLARE_LRECORD):
13416 * lrecord.h (XSETRECORD):
13417 * lrecord.h (RECORDP):
13418 * lrecord.h (RECORD_TYPEP):
13419 * lrecord.h (RECORD_MARKER): New.
13420 * lrecord.h (error_check_*):
13421 * lrecord.h (CONCHECK_NONRECORD):
13422 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13423 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13424 * lrecord.h (set_lheader_implementation):
13425 * lrecord.h (enum lrecord_type): New.
13426 * symeval.h (SYMBOL_VALUE_MAGIC_P):
13427 * alloc.c (disksave_object_finalization_1):
13428 * alloc.c (mark_object):
13429 * alloc.c (lrecord_type_index):
13430 * alloc.c (tick_lcrecord_stats):
13431 * alloc.c (Fgarbage_collect):
13432 * alloc.c (init_alloc_once_early):
13433 * alloc.c (pdump_load):
13434 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
13435 * alloc.c (lrecord_type_index): Delete.
13436 Make lisp object type indexes be constant.
13437 Makes (byte-compile) 5% faster.
13438 Put all marker functions into their own array.
13439 Makes (garbage-collect) 5% faster.
13440 Optimize SYMBOL_VALUE_MAGIC_P.
13441 Makes (byte-compile) 2-3% faster.
13442 * config.h.in (gc_checking_assert): New.
13443 * alloc.c: Use gc_checking_assert().
13444 * .dbxrc: Make compatible with new object type implementation.
13445 * .gdbinit: Make compatible with new object type implementation.
13446 * alloc.c: Delete all symbols defined only for debugging, such as
13447 Lisp_Type_Vector and lrecord_charset.
13449 2000-02-21 Andy Piper <andy@xemacs.org>
13451 * gui-msw.c (Fmswindows_shell_execute): fix file location
13454 * buffer.c (Fkill_buffer): remove buffer from alist buffer
13455 unshowing so that set_window_buffer doesn't undo
13456 kill_buffer_hook's hard work.
13458 * glyphs-widget.c (tab_control_query_geometry): don't count the
13459 first item when calculating geometry.
13461 * glyphs.c (map_subwindow): remove redundant code.
13462 (update_frame_subwindows): be more circumspect about when to
13465 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
13466 when items haven't changed. Update faces if faces have changed as
13467 well as just the widget face.
13468 (x_tab_control_update): Update faces if faces have changed as well
13469 as just the widget face.
13471 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
13473 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
13475 (build_syscolor_string): Use mswindows_color_to_string to try to
13477 (mswindows_device_system_metrics): Reverse the foreground and
13478 background colors so that they match the documentation.
13480 * objects-msw.c: (mswindows_X_color_map): tweak some values so
13481 they match the default Windows palette.
13482 (mswindows_color_to_string): New function.
13484 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
13486 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
13488 2000-02-18 Olivier Galibert <galibert@pobox.com>
13490 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
13491 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
13493 * symbols.c (init_symbols_once_early): Removed obsolete
13494 DATA_SEG_BITS related kludge.
13495 (defvar_magic): Ditto.
13497 * malloc.c: Removed obsolete DATA_SEG_BITS
13499 * mem-limits.h: Ditto.
13501 * Makefile.in.in: Removed obsolete HAVE_SHM
13504 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
13506 * device-msw.c (mswindows_delete_device): Free DDE string
13509 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13511 * keymap.c (get_keyelt):
13512 * unexnt.c (unexec):
13513 * vm-limit.c (memory_warnings):
13514 * ntheap.c (recreate_heap):
13515 * ntheap.h (UNINIT_PTR):
13516 * select-msw.c (Fmswindows_get_clipboard):
13517 (Fmswindows_set_clipboard):
13518 * objects-msw.h (MSWINDOWS_BAD_HFONT):
13520 * menubar-msw.c (displayable_menu_item):
13522 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
13523 * sysdep.c (sys_subshell):
13524 * process-nt.c (nt_create_process):
13525 * nt.c (normalize_filename):
13526 (dostounix_filename):
13527 (unixtodos_filename):
13528 * ntproc.c (win32_executable_type):
13529 * ntplay.c (play_sound_data_1):
13531 * editfns.c (get_home_directory):
13532 * event-msw.c (struct winsock_stream):
13533 (mswindows_dde_callback):
13534 * device-msw.c (msprinter_init_device):
13535 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
13537 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
13538 mswindows_clear_toolbar were swapped!
13540 * objects-msw.c:(colormap_t):
13542 * emacs.c (struct standard_args): Fixed const jumble.
13544 * glyphs-widget.c (update_widget): Fixed comparison notation.
13546 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
13548 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
13549 __declspec(noreturn) syntax.
13551 2000-02-19 Martin Buchholz <martin@xemacs.org>
13553 * eldap.c (Fldap_open):
13554 (Fldap_search_basic):
13557 Use new coding system conversion macros.
13559 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13561 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
13563 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
13565 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
13566 (Fldap_add, Fldap_modify, Fldap_delete): New functions
13568 * eldap.c (Qadd, Qreplace): New constant symbols
13569 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
13570 interruptions by XEmacs signals
13571 Remove unnecessary calls to slow_down_interrupts and
13572 speed_up_interrupts
13573 (Fldap_search_basic): Renamed from Fldap_search_internal
13574 Added new optional parameter VERBOSE that triggers the
13575 display of progress messages
13576 Remove unnecessary calls to slow_down_interrupts and
13577 speed_up_interrupts
13578 LDAP result code analysis rewritten
13579 (Fldap_add, Fldap_modify, Fldap_delete): New functions
13580 (syms_of_eldap): Define the new symbols and functions
13583 2000-02-17 Martin Buchholz <martin@xemacs.org>
13585 * realpath.c: Determine PATH_MAX maximally portably.
13587 * insdel.c (bytecount_to_charcount): Optimize.
13588 The function used to be optimized for entirely ASCII sequences.
13589 Now it is optimized for successive characters from the same
13590 charset. This also wins big for _mostly_ ASCII sequences.
13592 * fileio.c (Ffile_truename): convert return from realpath() using
13593 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
13594 - Rewrite GCPROing slightly.
13596 * sysdep.c (sys_open): Do filename conversion, like all other
13597 sys_* functions. Fixes bug:
13598 (let ((file-name-coding-system 'iso-8859-2))
13599 (write-region x y latin2-name))
13600 ==> writes filename using internal encoding.
13602 2000-02-18 Martin Buchholz <martin@xemacs.org>
13604 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
13605 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
13606 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
13607 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
13608 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
13609 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
13610 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
13611 (CONST_IF_NOT_DEBUG): Delete.
13612 * alloc.c (this_one_is_unmarkable): Delete.
13613 (mark_object): Don't check for this_one_is_unmarkable. Use the
13614 c_readonly flag instead.
13615 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
13617 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
13619 * event-msw.c (mswindows_drain_windows_queue):
13620 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
13621 away redundant repaint events.
13623 2000-02-17 Andy Piper <andy@xemacs.org>
13625 * redisplay.h: declare mark_redisplay_structs.
13627 * redisplay.c (redisplay_window):
13628 (redisplay_frame): don't check subwindows_state_changed.
13629 (mark_redisplay): mark gutters here.
13631 * glyphs.c: (instantiate_image_instantiator): always layout if we
13632 haven't done so already.
13633 (allocate_image_instance): don't mark as dirty.
13634 (update_subwindow): bind inhibit_quit.
13636 * gutter.c (mark_gutters): new function.
13638 * glyphs-x.c (x_update_widget): Always resize to get round a
13641 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
13642 breaking absolutely everything.
13644 * gutter.h: declare mark_gutters.
13646 2000-02-16 Martin Buchholz <martin@xemacs.org>
13648 * XEmacs 21.2.29 is released.
13650 2000-02-15 Olivier Galibert <galibert@pobox.com>
13652 * fns.c (size_bit_vector): Fix computation of the size.
13654 2000-02-15 Martin Buchholz <martin@xemacs.org>
13656 * *.[ch]: Change CONST to const globally.
13657 find -name '*.[ch]' | \
13658 xargs global-replace \
13659 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
13660 - Remove vestigial references to CONST_IS_LOSING
13662 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
13664 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
13665 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
13666 events instead of dispatching them directly.
13667 (mswindows_handle_paint): New function to do repainting.
13668 (mswindows_wnd_proc):
13669 (emacs_mswindows_handle_magic_event): Call above function.
13671 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
13673 * objects-msw.c (mswindows_create_font_variant): Return the new
13675 (initialize_font_instance): Get font metrics from the underlined
13676 variant of the font to cope with the case where the underlined
13677 font has a bigger descent.
13679 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
13681 * gui.c (gui_item_accelerator): Return the first underlined
13682 character in item name.
13684 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13686 * lisp.h: Added Qprinter.
13688 * general.c (syms_of_general): Initialized it.
13690 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
13692 (get_frame_compdc): Made inline.
13694 * console.h (struct console_methods): Added eject_page method.
13696 * frame.h: Added FRAME_DISPLAY_P and friends.
13697 Aligned backslahes in many macros in more readable fashion.
13698 Added page_number to struct frame, and an accessor macro
13701 * defice.h: Added DEVICE_DISPLAY_P and friends.
13703 * device.c (Fdevice_printer_p): Used these.
13705 * frame.c (allocate_frame_core): Initialize page number.
13706 (Fprint_job_page_number):
13707 (Fprint_job_eject_page): Implemented.
13709 * frame-msw.c (msprinter_eject_page): Added method.
13710 (msprinter_start_page): Added.
13712 * window.c (Fwindow_truncated_p): Fixed docstring.
13713 (Fwindow_last_line_visible_height): Implemented.
13715 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13717 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
13719 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13721 * syntax.c (scan_words): Always advance at least one character.
13723 2000-02-13 Andy Piper <andy@xemacs.org>
13725 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
13726 to make sure the glyph is in the cachels.
13728 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
13729 global image instance flag.
13730 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
13731 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
13733 * glyphs.c (allocate_image_instance): set dirty bits correctly.
13734 (Fset_image_instance_property): mark layout as changed.
13735 (invalidate_glyph_geometry_maybe): mark layout as changed.
13736 (glyph_width): use new NEEDS_LAYOUT macro.
13737 (glyph_ascent): ditto.
13738 (glyph_descent): ditto.
13739 (glyph_height): ditto.
13740 (image_instance_layout): mark layout as clean after laying out.
13741 (update_subwindow): don't mark layout as clean here.
13743 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
13744 should no longer be needed.
13746 * glyphs-x.c (x_update_widget): sanitize asserts.
13747 (x_finalize_image_instance): sanitize assignment to widgets.
13749 * glyphs-widget.c (widget_instantiate): don't need to clear the
13752 2000-02-13 Martin Buchholz <martin@xemacs.org>
13754 * sysdep.c (getcwd): Use standard prototype.
13755 * sysdep.h (getcwd): Use standard prototype.
13757 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
13758 (sequence, start, end).
13759 Remove redundant type checking.
13760 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
13761 view of `caller-protects') to avoid a crash where the real fix was
13764 2000-02-12 Martin Buchholz <martin@xemacs.org>
13766 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
13768 * s/sol2.h: Remove feature macro initialization.
13770 * alloc.c (alloc_lcrecord): Add more type checking assertions.
13771 (vector_hash): New. Code from internal_hash.
13773 Fix up allocation subsystem comments.
13775 * config.h.in: Add __EXTENSIONS__ for Solaris.
13777 * systime.h (EMACS_GETTIMEOFDAY): New.
13778 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
13779 Remove Solaris-specific code.
13780 Use void* for the (ignored) second arg for gettimeofday().
13782 * elhash.c (hash_table_hash): Implement it, finally.
13783 * elhash.c: Use hashcode_t.
13785 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
13786 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
13788 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
13789 * fns.c (size_bit_vector):
13790 * alloc.c (size_vector):
13791 (make_vector_internal):
13792 (make_bit_vector_internal):
13793 (sweep_bit_vectors_1):
13794 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
13796 2000-02-10 Martin Buchholz <martin@xemacs.org>
13798 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
13799 Include strings.h to avoid warnings for bzero and strcasecmp.
13801 2000-02-10 Olivier Galibert <galibert@pobox.com>
13803 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
13804 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
13806 * fns.c (size_bit_vector): New. Declare bit vectors as a
13809 2000-02-10 Olivier Galibert <galibert@pobox.com>
13811 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
13812 use a value field instead.
13813 (symbol_value_forward_forward): Use value field.
13814 (DEFVAR_SYMVAL_FWD): Use value field.
13815 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
13816 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
13817 (DEFVAR_CONST_INT): Ditto.
13818 (DEFVAR_BOOL): Ditto.
13819 (DEFVAR_CONST_BOOL): Ditto.
13820 (DEFVAR_INT_MAGIC): Ditto.
13821 (DEFVAR_BOOL_MAGIC): Ditto.
13823 * symbols.c (guts_of_unbound_marker): Use value field.
13824 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
13825 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
13827 * lisp.h: Declare dumpopaque and noninteractive1.
13829 * alloc.c (dumpopaque): Added.
13830 (pdump_dump_opaquevec): Added.
13831 (pdump): Call pdump_dump_opaquevec to dump opaque data.
13832 (pdump_load): Reload opaque data. Sync noninteractive1 with
13835 2000-02-10 Andy Piper <andy@xemacs.org>
13837 * glyphs.c (image_instance_layout): if the size changes, mark it
13840 * redisplay-output.c (redisplay_output_layout): Update the
13842 (redisplay_output_subwindow): ditto.
13844 * glyphs.c (update_subwindow): make sure we reset flags for
13845 layouts as well as everything else.
13847 * glyphs-widget.c (layout_layout): don't need to set the instances
13850 2000-02-09 Martin Buchholz <martin@xemacs.org>
13852 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
13853 not HAVE_DLOPEN, which is a lower-level thing.
13855 * .cvsignore: Ignore gmon.out
13857 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
13859 * .cvsignore: Ignore portable dumper xemacs.dmp file
13861 2000-02-09 Andy Piper <andy@xemacs.org>
13863 * redisplay-output.c (redisplay_output_layout): be more clever
13864 about when we output based on the changed flags.
13866 * glyphs.h (struct image_instantiator_methods): add update_method.
13867 (struct Lisp_Image_Instance): add changed flags. Declare new
13868 macros for manipulating them.
13870 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
13871 (image_instance_parent_glyph): find an image_instance's parent
13872 glyph or image_instance.
13873 (image_instance_layout): mark the size as changed.
13874 (set_image_instance_dirty_p): new function. mark an image
13875 instance, plus all of its parents, as dirty.
13876 (Fset_image_instance_property): use it.
13877 (Fglyph_animated_timeout_handler): use it.
13878 (update_subwindow): call update_widget and device methods for
13879 update_subwindow. Mark all changed flags as clean.
13880 (Fresize_subwindow): mark size as changed.
13882 * glyphs-x.c (x_finalize_image_instance): try and detect gc
13884 (x_update_subwindow): only resize subwindows here.
13885 (x_update_widget): new function. Update all changed properties of
13887 (x_resize_subwindow): deleted.
13888 (x_widget_set_property): deleted.
13889 (x_progress_gauge_set_property): deleted.
13890 (x_progress_gauge_update): new function. Implement recorded
13892 (x_tab_control_update): ditto.
13893 (x_tab_control_set_property): deleted.
13894 (console_type_create_glyphs_x): declare new functions.
13895 (image_instantiator_format_create_glyphs_x): ditto.
13897 * glyphs-widget.c (widget_set_property): mark text changed.
13898 (update_widget): new function. Update properties of a widget.
13899 (widget_instantiate): for layouts make sure we set their
13900 children's parent correctly.
13901 (tab_control_set_property): new function. Record changes that will
13902 take place under redisplay's control.
13903 (progress_gauge_set_property): ditto.
13904 (image_instantiator_progress_guage): declare new functions.
13905 (image_instantiator_tab_control): ditto.
13907 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
13909 (mswindows_update_widget): new function. Update all properties on
13910 a widget that have changed.
13911 (mswindows_button_update): new function. Update a button's set
13913 (mswindows_tab_control_update): new function. Update the items in
13915 (mswindows_tab_control_set_property): deleted.
13916 (mswindows_progress_gauge_update): new function. Update the
13917 progress gauge's progress.
13918 (mswindows_widget_set_property): deleted. This is all done
13919 asynchronously now.
13920 (mswindows_progress_gauge_set_property): ditto.
13921 (console_type_create_glyphs_mswindows): declare new methods.
13922 (image_instantiator_format_create_glyphs_mswindows): ditto.
13924 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
13925 (msprinter_set_frame_properties): ditto.
13927 * console.h (struct console_methods): Add update_widget_method.
13929 2000-02-09 Andy Piper <andy@xemacs.org>
13931 * gui-msw.c (Fmswindows_shell_execute): Make
13932 mswindows-shell-execute industrial strength.
13934 2000-02-08 Martin Buchholz <martin@xemacs.org>
13936 * lrecord.h: Make macro argument `props' match member function `plist'.
13939 * fns.c (Fremprop):
13940 * fns.c (Fobject_plist):
13943 Object property list frobbing cleanup.
13944 - Allow any lisp object (compared with `eq'), not just symbols, as
13945 keys in object plists.
13946 - Move symbol plist frobbing into symbols.c, where it belongs.
13947 - Move string plist frobbing into alloc.c, where it belongs.
13948 - Everything's an lrecord now, so no need to test for symbolp, etc.
13949 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
13951 * extents.c: Reorder code to remove declarations.
13953 * frame.h (store_in_alist): Remove useless declaration.
13955 2000-02-07 Martin Buchholz <martin@xemacs.org>
13957 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
13958 * config.h.in: Add HAVE_XCONVERTCASE.
13960 2000-02-07 Andy Piper <andy@xemacs.org>
13962 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
13963 it breaks many things.
13965 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
13967 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
13968 actually can start a common comment type.
13969 * src/syntax.h (SYNTAX_END_P): ditto for end.
13971 2000-02-07 Martin Buchholz <martin@xemacs.org>
13973 * XEmacs 21.2.28 is released.
13975 2000-02-06 Martin Buchholz <martin@xemacs.org>
13977 * event-Xt.c (x_keysym_to_character): New.
13978 (maybe_define_x_key_as_self_inserting_character): New.
13979 (x_has_keysym): New.
13980 Auto-define all keys on the keyboard as self-insert-key.
13982 2000-02-02 Martin Buchholz <martin@xemacs.org>
13984 * menubar.c (vars_of_menubar): A small code simplification.
13986 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
13989 * ExternalClient.c:
13990 * EmacsShell-sub.c:
13993 Use consistent style for specifying X resources.
13995 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
13996 This makes (dontusethis-set-symbol-value-handler) actually usable.
13998 * lrecord.h (lrecord_decription_type):
13999 * alloc.c (pdump_register_sub):
14002 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14003 Comply with XEmacs coding style.
14004 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14005 args, and XD_LISP_OBJECT_ARRAY with 3 args.
14007 * keymap.c (Faccessible_keymaps):
14008 Make (accessible-keymaps map "\C-h") do the Right Thing.
14009 Make (accessible-keymaps map []) do the Right Thing.
14010 Make (accessible-keymaps map "") do the Right Thing.
14011 (check_keymap_definition_loop): New function.
14012 (keymap_store_internal): Keep luser from shooting self in foot,
14013 via (define-key ctl-x-4-map "p" global-map).
14014 Remove fullness slot from struct Lisp_Keymap, since hash tables
14016 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14018 2000-01-30 Martin Buchholz <martin@xemacs.org>
14020 * redisplay.c (init_redisplay): Fix small memory leak.
14022 * elhash.c (pdump_reorganize_hash_table):
14023 Rename from reorganize_hash_table. Change prototype.
14024 Reuse the original memory for hentries. Save 100k.
14025 * alloc.c (PDUMP_READ): new macro.
14026 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14027 * alloc.c: No need to #ifndef before #undef.
14029 * print.c: Allow debug_print() to print readably by modifying
14030 debug_print_readably. Use consistent variable names.
14032 * .dbxrc: Try to get things to work even if stopped in a function
14033 without source available by explicitly specifying source files.
14034 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14036 * unexnt.c (_start): Removed bogus code which caused loading heap
14037 from differrent executable file.
14038 Removed bogus assignment to _fmode, which caused inconsistencies.
14040 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14042 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14043 Have spawnve encapsulation regard DONT_ENCAPSULATE.
14044 Do not preliminary `#define signal sigset'.
14046 * systime.h: Do not prototype environ on windows nt and cygwin,
14047 this conflicts with system header.
14049 * syssignal.h: Use correct define for WINDOWSNT
14051 * sysdep.h: Do not prototype environ on windows nt, this conflicts
14052 with system header.
14054 * sysdep.c (near start of file): Fixed commentary and rearranged
14055 ifdefs in readable order.
14056 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14059 (end_of_data): Do not compile in if using PDUMP.
14061 * symsinit.h: Prototyped vars_of_nt().
14063 * ntproc.c (windows9x_p): Added, instead of os_subtype.
14064 (find_child_console): Use it.
14065 (sys_kill): Use it.
14067 * ntheap.h: Do not extern os_subtype.
14069 * ntheap.c (cache_system_info): Do not cache unneeded:
14070 nt_major_version, nt_minor_version and os_subtype.
14071 (recreate_heap): Do not compile in when PDUMPing.
14073 * nt.c (geteuid and friends): Use the new varibale
14074 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14075 (init_user_info): Removed the above mentioned hackery.
14076 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14077 stat has been fixed in the C runtime.
14078 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14080 * file-coding.c (struct file_coding_dump): Do not define
14081 ucs_to_mule_table in the struct if not MULE.
14082 (struct struct lrecord_description fcd_description_1): Do not dump
14085 * emacs.c (main_1): Call vars_of_nt().
14086 (right before Fdump_emacs_data): Don't need lastfile if using both
14087 portabe dumper and system malloc.
14089 * alloc.c (Fmemory_limit): Conditionalized out.
14090 (pdump): Use OPEN_BINARY for the portable dump file.
14091 (pdump_load): Ditto.
14093 2000-02-02 Mike Alexander <mta@arbortext.com>
14095 * nt.c (convert_time): Set tm_isdst before calling mktime and
14096 avoid calling it at all if the compiler supports 64 bit integers.
14097 Also initialize utc_base_ft before using it.
14099 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
14101 * frame.c (change_frame_size_1): Take f->internal_border_width
14102 into consideration when calculating the width of the frame.
14104 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14106 * window.c (frame_min_height):
14107 (frame_size_valid_p):
14108 (frame_pixsize_valid_p): Added.
14109 (check_frame_size): Generalized.
14111 * window.h: Prototyped the above.
14114 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14115 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14116 Deleted Vwin32_* and Vbinary_process_* unused variables.
14118 * device-msw.c (msprinter_init_device): Do not get printer font
14119 list; Added DEVMODE functions.
14121 * frame-msw.c: Added lots of printer code.
14123 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14126 * console-msw.h: Added more msprinter device private slots.
14128 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14130 * event-msw.c (key_needs_default_processing_p): Added.
14131 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14133 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14135 * glyphs.c (image_instance_layout): Mark image instance as clean
14137 (glyph_dirty_p): Removed redundant function.
14138 (invalidate_glyph_geometry_maybe): Added.
14139 (update_glyph_cachel_data): Call it.
14141 * glyphs.h: Prototyped it.
14143 * redisplay.c (add_glyph_rune): Call it.
14144 (redisplay_window): Reset glyphs cachels when frame faces have
14145 changed, thus forcing recomputation of built-in border glyphs.
14147 2000-01-30 Martin Buchholz <martin@xemacs.org>
14149 * Makefile.in.in: Make portable dumper and purify play well together.
14150 Add imperfect, but better than nothing, support for pdump.
14151 Remove xemacs.dmp when temacs is re-generated.
14152 Don't ignore errors when dumping xemacs.
14154 * symbols.c (maybe_call_magic_handler): Remove one magic number.
14156 2000-01-28 Andy Piper <andy@xemacs.org>
14158 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14159 (setup_normal_frame): ditto.
14160 (setup_frame_without_minibuffer): ditto.
14161 (setup_minibuffer_frame): ditto.
14162 (delete_frame_internal): ditto.
14163 (Fmake_frame_invisible): ditto.
14164 (Ficonify_frame): ditto.
14166 * window.h: change Fset_window_buffer signature.
14168 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14169 (Fset_window_buffer): allow recording of buffer if the window is
14170 the selected window.
14171 (window_loop): Use new Fset_window signature.
14173 2000-01-23 Daniel Pittman <daniel@danann.net>
14175 * config.h.in: Added template for `HAVE_ATHENA_3D'
14177 2000-01-29 Andy Piper <andy@xemacs.org>
14179 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14181 * gutter.c (output_gutter): Don't output if the window isn't live.
14183 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14185 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14186 of 01/12/00: Moved SetFocus back here where it belongs.
14188 2000-01-23 Andy Piper <andy@xemacs.org>
14190 * s/cygwin32.h: declare printer things.
14192 2000-01-26 Andy Piper <andy@xemacs.org>
14194 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14197 2000-01-24 Andy Piper <andy@xemacs.org>
14199 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14200 (mswindows_button_instantiate): Make sure glyph is a pixmap.
14202 * glyphs-widget.c (widget_instantiate): Avoid shadows.
14204 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14206 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14208 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14209 (mswindows_output_display_block): Avoid local shadows.
14211 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14212 (mswindows_enqueue_mouse_button_event): ditto.
14213 (mswindows_handle_gui_wm_command): remove declaration.
14215 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14218 * console-msw.h: Avoid shadows.
14219 (mswindows_get_toolbar_button_text):
14220 (emacs_mswindows_create_stream_pair):
14221 (emacs_mswindows_delete_stream_pair):
14222 (mswindows_handle_toolbar_wm_command): declare.
14224 * device-msw.c (build_syscolor_string): Avoid shadows.
14226 2000-01-23 Andy Piper <andy@xemacs.org>
14228 * glyphs-widget.c (widget_instantiate): reverse the items for
14229 layouts so that children are in the expected order.
14231 2000-01-28 Martin Buchholz <martin@xemacs.org>
14233 * ralloc.c: safe_bcopy ==> memmove
14234 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14235 * s/msdos.h: Remove BCOPY macros.
14236 * insdel.c (gap_right): Remove BCOPY conditional code.
14237 * insdel.c (gap_left): Remove BCOPY conditional code.
14238 XEmacs demands a working ANSI C compiler - hence memmove.
14240 * regex.c (regex_compile): Remove accidental use of trigraphs.
14242 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14244 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14247 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14249 * event-msw.c (mswindows_drain_windows_queue): Added the
14251 (mswindows_need_event): Commented the call to
14252 mswindows_drain_windows_queue().
14253 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14256 * console-msw.h: Moved a few function prototypes here from
14259 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14260 parameter from unsigned short to unsigned long.
14261 (Fmswindows_shell_execute): Added return value.
14263 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14265 * sysdep.c (init_system_name):
14266 process-unix.c (unix_canonicalized_host_name):
14267 Don't call freeaddrinfo() if getaddrinfo() fails.
14269 * process-unix.c (unix_open_unix_network_stream):
14270 Moved the code to get a port # into address loop.
14272 2000-01-27 Martin Buchholz <martin@xemacs.org>
14274 * buffer.c (reinit_vars_of_buffer):
14275 The right place to initialize conversion_in_dynarr and
14276 conversion_out_dynarr.
14278 * alloc.c (pdump): Use the real open() till sys_open() is functional.
14280 * process-unix.c (unix_canonicalize_host_name): Muleize.
14281 (unix_open_network_stream): Muleize.
14283 * buffer.h: Fix up prototypes for ralloc.c functions.
14285 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14286 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14287 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14288 instead of gethostbyname()
14289 * process-unix.c: In unix_canonicalize_host_name() and
14290 unix_open_network_stream(), add code to use getaddrinfo()
14291 instead of gethostbyname().
14293 2000-01-27 Daniel Pittman <daniel@danann.net>
14295 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14296 libs when built with flat Athena.
14298 2000-01-27 Martin Buchholz <martin@xemacs.org>
14300 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14301 Use coding standards for function prototypes.
14303 2000-01-25 Martin Buchholz <martin@xemacs.org>
14305 * dialog-msw.c (push_lisp_string_as_unicode):
14306 * doc.c (unparesseuxify_doc_string):
14307 * dired.c (Fuser_name_completion_1):
14308 * dired.c (Fuser_name_all_completions):
14309 * dired.c (free_user_cache):
14310 * dired.c (user_name_completion):
14311 * console-x.c (get_display_arg_connection):
14312 * minibuf.c (clear_echo_area_internal):
14313 * minibuf.c (echo_area_append):
14314 * eldap.c (Fldap_open):
14315 * eldap.c (Fldap_search_internal):
14316 * frame-x.c (x_set_frame_text_value):
14317 * frame-x.c (x_set_frame_properties):
14318 * frame-x.c (x_create_widgets):
14319 * redisplay-tty.c (term_get_fkeys_1):
14320 * objects-x.c (x_parse_nearest_color):
14321 * objects-x.c (x_valid_color_name_p):
14322 * objects-x.c (x_initialize_font_instance):
14323 * objects-x.c (x_list_fonts):
14324 * objects-x.c (x_find_charset_font):
14325 * tooltalk.c (Fadd_tooltalk_message_arg):
14326 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14327 * tooltalk.c (Fadd_tooltalk_pattern_arg):
14328 * process-unix.c (unix_create_process):
14329 * ntproc.c (sys_spawnve):
14330 * sound.c (Fplay_sound_file):
14331 * sound.c (Fplay_sound):
14332 * buffer.c (init_initial_directory):
14333 * buffer.c (init_buffer):
14334 * editfns.c (init_editfns):
14335 * editfns.c (Ftemp_directory):
14336 * editfns.c (Fuser_full_name):
14337 * editfns.c (uncache_home_directory):
14338 * editfns.c (get_home_directory):
14339 * editfns.c (Fuser_home_directory):
14340 * editfns.c (Fformat_time_string):
14341 * editfns.c (Fcurrent_time_string):
14342 * gui-x.c (button_item_to_widget_value):
14343 * database.c (Fopen_database):
14344 * event-Xt.c (x_to_emacs_keysym):
14345 * event-Xt.c (x_event_to_emacs_event):
14346 * event-Xt.c (describe_event_window):
14347 * event-msw.c (mswindows_wnd_proc):
14348 * glyphs-eimage.c (jpeg_instantiate):
14349 * glyphs-eimage.c (gif_instantiate):
14350 * glyphs-eimage.c (png_instantiate):
14351 * glyphs-eimage.c (tiff_instantiate):
14352 * glyphs-x.c (xbm_instantiate_1):
14353 * glyphs-x.c (x_xbm_instantiate):
14354 * glyphs-x.c (x_xface_instantiate):
14355 * glyphs-x.c (autodetect_instantiate):
14356 * glyphs-x.c (cursor_font_instantiate):
14357 * glyphs-x.c (x_widget_instantiate):
14358 * glyphs-x.c (x_widget_set_property):
14359 * glyphs-x.c (x_widget_property):
14360 * glyphs-x.c (BUILD_GLYPH_INST):
14361 * print.c (write_string_to_stdio_stream):
14362 * print.c (output_string):
14363 * print.c (Falternate_debugging_output):
14364 * print.c (Fexternal_debugging_output):
14365 * glyphs-msw.c (extract_xpm_color_names):
14366 * glyphs-msw.c (mswindows_xpm_instantiate):
14367 * glyphs-msw.c (bmp_instantiate):
14368 * glyphs-msw.c (resource_name_to_resource):
14369 * glyphs-msw.c (mswindows_resource_instantiate):
14370 * glyphs-msw.c (xbm_instantiate_1):
14371 * glyphs-msw.c (mswindows_xbm_instantiate):
14372 * glyphs-msw.c (mswindows_xface_instantiate):
14373 * glyphs-msw.c (mswindows_widget_instantiate):
14374 * glyphs-msw.c (add_tree_item):
14375 * glyphs-msw.c (add_tab_item):
14376 * glyphs-msw.c (mswindows_combo_box_instantiate):
14377 * glyphs-msw.c (mswindows_widget_property):
14378 * glyphs-msw.c (mswindows_combo_box_property):
14379 * glyphs-msw.c (mswindows_widget_set_property):
14380 * console.c (stuff_buffered_input):
14381 * objects-msw.c (mswindows_initialize_color_instance):
14382 * objects-msw.c (mswindows_valid_color_name_p):
14383 * objects-msw.c (mswindows_list_fonts):
14384 * objects-msw.c (mswindows_font_instance_truename):
14385 * bytecode.c (optimize_compiled_function):
14386 * select-x.c (symbol_to_x_atom):
14387 * select-x.c (x_atom_to_symbol):
14388 * select-x.c (hack_motif_clipboard_selection):
14389 * select-x.c (selection_data_to_lisp_data):
14390 * select-x.c (lisp_data_to_selection_data):
14391 * select-x.c (Fx_get_cutbuffer_internal):
14392 * select-x.c (Fx_store_cutbuffer_internal):
14393 * buffer.h (TO_EXTERNAL_FORMAT): New function.
14394 * buffer.h (TO_INTERNAL_FORMAT): New function.
14395 * emacs.c (make_arg_list_1):
14396 * emacs.c (make_argc_argv):
14397 * emacs.c (main_1):
14398 * emacs.c (Fdump_emacs):
14399 * emacs.c (split_string_by_emchar_1):
14404 * device-x.c (x_init_device):
14405 * device-x.c (Fx_valid_keysym_name_p):
14406 * device-x.c (Fx_get_font_path):
14407 * device-x.c (Fx_set_font_path):
14408 * glyphs.c (bitmap_to_lisp_data):
14409 * glyphs.c (pixmap_to_lisp_data):
14410 * alloc.c (make_ext_string): Use coding system arguments. Update
14412 * alloc.c (build_string):
14413 * callproc.c (child_setup):
14414 * callproc.c (init_callproc):
14415 * fileio.c (lisp_strerror):
14416 * fileio.c (directory_file_name):
14417 * fileio.c (Fexpand_file_name):
14418 * fileio.c (Ffile_truename):
14419 * fileio.c (Fsysnetunam):
14420 * fileio.c (Fdo_auto_save):
14421 * sysdep.c (sys_readdir):
14422 * tests.c: New file. Allow adding C tests.
14423 Replace GET_* macros with a more comprehensible and flexible
14424 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14426 Any coding system can be used to do format conversion.
14427 Eliminate enum external_data_format.
14428 Eliminate convert_to_external_format.
14429 Eliminate convert_to_internal_format.
14430 Make sure file-name, keyboard, terminal, and ctext are always
14431 defined as coding systems or aliases. Make
14432 file-name-coding-system, terminal-coding-system, and
14433 keyboard-coding-system magical variables that are equivalent to
14434 defining the corresponding coding system aliases.
14436 * file-coding.c (Fcoding_system_canonical_name_p): New function.
14437 * file-coding.c (Fcoding_system_alias_p): New function.
14438 * file-coding.c (Fcoding_system_aliasee): New function.
14439 * file-coding.c (append_suffix_to_symbol): New function.
14440 * file-coding.c (dangling_coding_system_alias_p): New function.
14441 * file-coding.c (Ffind_coding_system):
14442 * file-coding.c (Fcopy_coding_system):
14443 * file-coding.c (encode_coding_no_conversion):
14444 * file-coding.c (syms_of_file_coding):
14445 * file-coding.c (vars_of_file_coding):
14446 Rewrite coding system alias code.
14447 Allow nested aliases, like symbolic links.
14448 Allow redefinition of coding system aliases.
14449 Prevent existence of dangling coding system aliases.
14451 * dired.c (Fuser_name_completion_1):
14452 * dired.c (Fuser_name_all_completions):
14453 A crash would happen if user did QUIT in the middle of building
14454 user_name_cache. Remove redundant code in mainline and unwind_protect.
14457 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
14459 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
14460 an unsigned char *. Update all callers.
14462 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14464 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
14466 2000-01-25 Martin Buchholz <martin@xemacs.org>
14468 * elhash.c (hentry_description): Use more portable definition.
14469 (resize_hash_table): Initialize new hentries using
14470 xnew_array_and_zero, thereby simplifying the code.
14472 * mule-charset.c (make_charset): Make sure entire object is
14473 initialized, to avoid Purify warnings.
14475 * alloc.c (resize_string): Fix unlikely crash with big strings.
14477 2000-01-24 Martin Buchholz <martin@xemacs.org>
14479 * realpath.c (xrealpath):
14480 Don't call getwd().
14482 2000-01-25 Martin Buchholz <martin@xemacs.org>
14484 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
14486 1999-12-28 Max Matveev <max@melbourne.sgi.com>
14488 * unexelfsgi.c (unexec): Change the way we decide which segment
14489 should be extended.
14491 Assumption that .bss section should be outside the PT_LOADable
14492 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
14493 it's present) is inside the 'data' segment. This would fail the
14494 test which was used to find a segment to grow and cover new
14495 heap. Instead of this assumption, I created another one - on IRIX
14496 the segment to grow should start below .bss and it's address
14497 should extent above the end of .bss. Once this segment is
14498 identified, it's grown to accommodate the new heap and new
14499 zero-length .bss section is added at the end of .data2.
14501 2000-01-25 Martin Buchholz <martin@xemacs.org>
14503 * eval.c (Feval): Wrong number of arguments should use original
14504 function, not the indirect_function version of it.
14506 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
14508 * glyphs-x.c (x_button_instantiate): Don't add image if
14509 it is not a pixmap.
14510 (x_locate_pixmap_file): Call Fexpand_file_name when file name
14513 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
14515 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
14517 (DEFVAR_INT_MAGIC): Ditto.
14518 (DEFVAR_BOOL_MAGIC): Ditto.
14519 * glyphs.h: Reindent backslash.
14521 2000-01-24 Martin Buchholz <martin@xemacs.org>
14523 * glyphs-widget.c (layout_query_geometry):
14524 (layout_layout): Use correct types for gheight, gwidth.
14526 2000-01-24 Martin Buchholz <martin@xemacs.org>
14528 * EmacsManager.c (QueryGeometry): Purified.
14530 2000-01-23 Martin Buchholz <martin@xemacs.org>
14532 * alloc.c (make_float): Make sure entire object is initialized, to
14533 avoid Purify warnings.
14534 (pdump_register_sub): Remove useless assignment.
14535 (pdump): Use xmalloc, not malloc.
14536 (pdump_load): Use xmalloc, not malloc.
14538 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14545 * sysdep.c: Removed redundant #include <windows.h>
14547 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14549 * frame.c (delete_frame_internal): Do not delete device when its
14550 implementation so declares.
14551 (delete_frame_internal): Set device selected frame to nil when
14552 last frame goes away.
14554 * device-msw.c (msprinter_device_system_metrics): Implemented.
14555 (mswindows_device_system_metrics): Added 'device-dpi property.
14557 * device.c: (Fdevice_printer_p): Added.
14558 Added 'offset-workspace device metric.
14560 * console.h (device_metrics): Declared DM_offset_workspace.
14562 2000-01-23 Martin Buchholz <martin@xemacs.org>
14564 * fileio.c (Ffile_truename): Remove pointless and confusing
14565 initialization of elen.
14567 * glyphs-widget.c: Compiler warning fixes.
14569 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
14571 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
14572 instead of a Lisp_Object as argument to make it consistent with
14573 the other LIVE_P macros.
14574 (CHECK_LIVE_PROCESS): New macro.
14576 * process.c: Declare Qprocess_live_p.
14577 (Fprocess_live_p): New function.
14578 (create_process): Use PROCESS_LIVE_P.
14579 (read_process_output): Ditto.
14580 (set_process_filter): Ditto.
14581 (Fdelete_process): Ditto.
14582 (kill_buffer_processes): Ditto
14583 (process_send_signal): Use CHECK_LIVE_PROCESS.
14584 (Fprocess_input_coding_system): Check whether process is still
14585 alive (fix PR#1061).
14586 (Fprocess_output_coding_system): Ditto.
14587 (Fprocess_coding_system): Ditto.
14588 (Fset_process_input_coding_system): Ditto.
14589 (Fset_process_output_coding_system): Ditto.
14591 2000-01-23 Andy Piper <andy@xemacs.org>
14593 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
14596 * glyphs.c (mark_image_instance): take into account changed
14597 image_instance format.
14598 (image_instance_equal): ditto.
14599 (image_instance_hash): ditto.
14601 * glyphs-widget.c (widget_instantiate): Incorporate layout
14602 instantiation here. Delay layout of the layout until later.
14603 (layout_instantiate): deleted.
14604 (layout_query_geometry): new function. get the geometry of a
14606 (layout_layout): layout a layout dynamically.
14607 (image_instantiator_widget): New function - splitting up
14608 image_instantiator_format_create_glyphs_widget for netwinder
14610 (image_instantiator_buttons):
14611 (image_instantiator_edit_fields):
14612 (image_instantiator_combo_box):
14613 (image_instantiator_scrollbar):
14614 (image_instantiator_progress_guage):
14615 (image_instantiator_tree_view):
14616 (image_instantiator_tab_control):
14617 (image_instantiator_labels):
14618 (image_instantiator_layout): ditto.
14619 (image_instantiator_format_create_glyphs_widget): Call preceding
14622 2000-01-22 Martin Buchholz <martin@xemacs.org>
14624 * process.c (Fset_process_coding_system):
14625 * device-x.c (Fx_keysym_hash_table):
14628 * lstream.c (Lstream_write): Return documented value, not 0.
14630 * fileio.c (directory_file_name):
14631 (Fsubstitute_in_file_name):
14632 (Fsubstitute_insert_file_contents_internal):
14633 (Fwrite_region_internal):
14638 Remove vestigial APOLLO-conditional code.
14640 2000-01-21 Martin Buchholz <martin@xemacs.org>
14642 * getpagesize.h: Add guard macros.
14643 * libsst.h: Add guard macros.
14644 * libst.h: Add guard macros.
14645 * line-number.h: Add guard macros.
14646 * ndir.h: Add guard macros.
14647 * sysfloat.h: Add guard macros.
14648 * sysfile.h: Add guard macros.
14649 * sysproc.h: Add guard macros.
14650 * syswait.h: Add guard macros.
14651 * xintrinsic.h: Add guard macros.
14652 * xintrinsicp.h: Add guard macros.
14653 * xmmanager.h: Add guard macros.
14654 * xmmanagerp.h: Add guard macros.
14655 * xmprimitive.h: Add guard macros.
14656 * xmu.h: Add guard macros.
14657 * gpmevent.h: Add copyright statement. Add guard macros.
14658 * miscplay.h: Add guard macros.
14659 * *.h: Use consistent C-standards-approved guard macro names.
14661 * opaque.c (make_opaque): Switch parameter order.
14662 * opaque.h (make_opaque): Switch parameter order.
14663 Update all callers.
14664 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
14666 * config.h.in (type_checking_assert): Added.
14667 (bufpos_checking_assert): Added.
14669 2000-01-21 Martin Buchholz <martin@xemacs.org>
14671 * alloc.c: Harmless pdump changes.
14673 - spell alignment correctly.
14674 * sysdep.c: Use countof()
14676 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14678 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
14679 initially_selected_for_input() console method, default to 0.
14680 (semi_canonicalize_console_connection): Try to delegate to
14681 canonicalize_console_connection if no such console method.
14682 (canonicalize_console_connection): Vice versa.
14683 (print_console): Do not print nil connection.
14685 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
14686 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
14687 (XDEVIMPF_FRAMELESS_OK): Added.
14688 (CONSOLE_INHERITS_METHOD): Added.
14690 * console-msw.c (mswindows_canonicalize_console_connection):
14692 (mswindows_canonicalize_device_connection): Added.
14694 * console-msw.h (struct msprinter_device): Added this struct and
14696 (mswindows_device): Made fontlist a lisp object.
14698 * device.c (semi_canonicalize_device_connection): Try to delegate
14699 to canonicalize_device_connection if no such console method.
14700 (canonicalize_device_connection): Vice versa.
14701 (print_device): Do not print nil connection.
14703 * device-msw.c (mswindows_init_device): Call InitCommonControls
14705 (mswindows_delete_device): Removed fontlist deallocation.
14706 (mswindows_mark_device): Added.
14708 * events.c (event_equal): Added abort() at unreached code.
14709 (event_hash): Ditto.
14711 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
14712 fallback tags of Windows devices.
14714 * general.c (syms_of_general): Initialized Qmsprinter.
14716 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
14717 of fallback tags of Windows devices.
14719 * lisp.h: Declared Qmsprinter.
14721 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
14723 (mswindows_list_fonts): Ditto.
14724 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
14725 that it can be used by both mswindows and msprinter devices.
14726 (initialize_font_instance): Added.
14727 (mswindows_initialize_font_instance): Use it.
14728 (msprinter_initialize_font_instance): Added.
14730 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
14731 and implementation flags check.
14732 (redisplay_without_hooks): Changed the call to the above.
14733 (Fredraw_device): Ditto.
14734 (Fredisplay_device): Ditto.
14736 * redisplay-msw.c (get_frame_dc): Implemented.
14737 (get_frame_compdc): Implemented.
14738 (many functions): Use the two functions above to get device
14739 contexts, ether for a window or a printer.
14741 2000-01-21 Olivier Galibert <galibert@pobox.com>
14743 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
14744 initialization here.
14745 (init_symbols_once_early): Call it.
14746 * emacs.c (main_1): Call it.
14747 * symsinit.h: Declare it.
14749 2000-01-19 Olivier Galibert <galibert@pobox.com>
14751 * alloc.c: Use a lrecord_header * in the backtrace instead of a
14753 (pdump_backtrace): Ditto.
14754 (pdump_register_object): Ditto. Cleanup use of the pointers.
14755 (pdump_get_entry): Abort if trying to register a null pointer.
14756 (pdump_dump_data): Cleanup types when relocating.
14757 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
14758 (pdump_dump_rtables): Remove bad casts.
14759 (pdump_load): Cleanup relocation w.r.t union type. Use a
14760 Lisp_Object instead of a EMACS_INT for the hashtable
14763 2000-01-20 Martin Buchholz <martin@xemacs.org>
14765 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
14767 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
14769 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
14771 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
14773 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14775 * faces.h (FACE_STRIKETHRU_P): Added.
14777 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
14780 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
14781 (mswindows_set_dc_font): New function, aware of font variants,
14782 separated from mswindows_update_dc.
14784 * objects-msw.h (struct mswindows_font_instance_data): Added
14787 * objects-msw.c (mswindows_finalize_font_instance): Delete all
14788 cached fonts and the data structure.
14789 (mswindows_initialize_font_instance): Added creation of font data
14791 (mswindows_print_font_instance): Print at least something.
14792 (mswindows_create_font_variant): Implemented.
14793 (mswindows_get_hfont): Implemented.
14795 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
14797 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
14798 prototyping problem with msvc.
14800 * emacs.c (main_1): added syms_of_gui_mswindows() call
14802 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
14803 syms_of_gui_mswindows() function
14805 * symsinit.h: added the prototype for syms_of_gui_mswindows()
14807 2000-01-18 Martin Buchholz <martin@xemacs.org>
14809 * XEmacs 21.2.27 is released.
14811 2000-01-18 Martin Buchholz <martin@xemacs.org>
14813 * glyphs-eimage.c (struct tiff_error_struct):
14815 (tiff_warning_func):
14816 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
14821 * unexec.c: Remove vestigial Lucid C code.
14825 * libsst.c: Ansify.
14826 Remove declarations of errno and strerror().
14828 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
14830 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
14832 2000-01-16 Martin Buchholz <martin@xemacs.org>
14834 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
14837 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14842 Change enum eol_type to eol_type_t.
14844 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14846 * gui.c (get_gui_callback): Check cons before accessing car.
14848 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14850 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
14851 (XSETSPECIFIER_TYPE): Ditto.
14853 2000-01-17 Didier Verna <didier@xemacs.org>
14855 * redisplay.c (generate_fstring_runes): compute string size in
14856 characters, not bytes.
14858 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
14860 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
14862 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
14864 * print.c (print_error_message): Call print_prepare().
14866 2000-01-14 Martin Buchholz <martin@xemacs.org>
14868 * .dbxrc: Renamed from dbxrc.
14870 * events.c (event_to_character):
14871 Use `assert (foo)' instead of `if (!foo) abort()'
14873 * .gdbinit (xtype): Add documentation.
14874 * .gdbinit (check-temacs): New function.
14875 * .gdbinit (check-xemacs): New function.
14876 * dbxrc (check-xemacs): New function.
14877 * dbxrc (check-xemacs): New function.
14879 2000-01-14 Andy Piper <andy@xemacs.org>
14881 * glyphs-widget.c (widget_query_geometry): Make sure that we
14882 calculate default dimensions correctly.
14884 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14886 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
14888 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
14889 pdump_wire'd variable.
14891 * emacs.c: (main_1): Conditionalized calls to
14892 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
14894 2000-01-13 Martin Buchholz <martin@xemacs.org>
14896 * window.c (Fset_window_configuration):
14897 * sysdep.c (_start):
14898 * input-method-motif.c (res):
14899 * event-Xt.c (Xt_process_to_emacs_event):
14900 Simple compiler warning fixes.
14902 * bytecode.c (funcall_compiled_function): Use the original
14903 function symbol on the backtrace list in preference to the
14904 compiled_function object in error messages.
14906 2000-01-13 Andy Piper <andy@xemacs.org>
14908 * glyphs-x.c (update_widget_face): Make sure we update the widget
14909 background as well as foreground.
14911 2000-01-13 Andy Piper <andy@xemacs.org>
14913 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
14914 fields to subwindow.
14915 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
14916 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
14917 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
14918 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
14920 * glyphs-widget.c (check_valid_tab_orientation): new function.
14921 (initialize_widget_image_instance): zero orientation and
14923 (widget_instantiate): pick up orientation.
14924 (tab_control_query_geometry): return appropriate values for
14927 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
14928 appropriate creation flags for left, right and bottom tabs.
14930 * s/cygwin32.h: add tab definitions.
14932 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14934 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
14935 frame upon hiding a subwindow.
14936 (mswindows_button_instantiate): Changed the push button style to
14938 (mswindows_button_instantiate): Removed button BS_NOTIFY
14940 (mswindows_button_instantiate): Removed redundant check for
14941 a disabled gui item.
14942 (mswindows_button_instantiate): Made use of WS_TABSTOP
14943 consistent: "operable" controls (edit, button, tree, scroll) have
14944 this style, "display-only" ones (static, progress gauge) do
14945 not. This style is currently ignored by XEmacs though. Also,
14946 removed the WS_EX_CONTROLPARENT style - it is not for children,
14947 it is for their parents!
14948 (mswindows_edit_field_instantiate): Ditto.
14949 (mswindows_progress_gauge_instantiate): Ditto.
14950 (mswindows_tree_view_instantiate): Ditto.
14951 (mswindows_tab_control_instantiate): Ditto.
14952 (mswindows_scrollbar_instantiate): Ditto.
14953 (mswindows_combo_box_instantiate): Ditto.
14954 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
14955 style to the "clip" window.
14956 (mswindows_button_instantiate): Removed compilation warning by
14957 equally typing terms of the ?: operator.
14959 2000-01-12 Didier Verna <didier@xemacs.org>
14961 * redisplay.c (generate_fstring_runes): new parameter holding the
14962 last modeline-format extent.
14963 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
14964 extent, fill the glyph block with it.
14965 (generate_fstring_runes): handle these parameters.
14966 (generate_formatted_string_db): ditto.
14968 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
14969 glyphs'extents in the modeline.
14971 1999-01-11 Mike Woolley <mike@bulsara.com>
14973 * ntheap.c: Reduced the reserved heap space from 1Gb down to
14974 256Mb, as a workaround for the non-starting problem many people
14977 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14979 * console-tty.c (Fset_console_tty_output_coding_system):
14980 Force redrawing tty frame.
14982 2000-01-10 Didier Verna <didier@xemacs.org>
14984 * redisplay.c (generate_fstring_runes): fix size computation bug.
14986 2000-01-09 William M. Perry <wmperry@aventail.com>
14988 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
14990 2000-01-09 Andy Piper <andy@xemacs.org>
14992 * glyphs-msw.c: index -> i to avoid shadows.
14993 (xbm_create_bitmap_from_data): make static.
14994 (check_valid_string_or_int): deleted.
14995 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
14997 * glyphs-x.c (x_update_subwindow): remove unused args.
14999 * glyphs.c (glyph_image_instance): return the thing. Don't set the
15000 back pointer - this is done in allocate_image_instance.
15001 (query_string_font): return Qnil to make the compiler happy.
15002 (unmap_subwindow): set to ~0 to make the compiler happy.
15003 (glyph_query_geometry): comment out until used.
15004 (glyph_layout): ditto.
15006 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
15008 * insdel.c (signal_after_change): Remove extraneous unbind_to().