1 2002-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
4 Q_lowercase, Q_uppercase in UTF-2000.
6 * chartab.c (get_char_table): Add special code for the standard
7 case table to use character attribute `->downcase' and
8 `->uppercase' for case operations in UTF-2000.
10 * casetab.c (Qflippedcase): New variable in UTF-2000.
11 (Q_lowercase): Likewise.
12 (Q_uppercase): Likewise.
13 (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
14 and `->uppercase' in UTF-2000.
15 (complex_vars_of_casetab): Assign attribute name `downcase' to
16 downcase and CANON table of Vstandard_case_table in UTF-2000;
17 assign attribute name `flippedcase' to upcase and EQV table of
18 Vstandard_case_table in UTF-2000.
20 2002-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
22 * text-coding.c (decode_add_er_char): Support isolated-chars.
23 (char_encode_as_entity_reference): Likewise.
25 2002-08-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
27 * emacs.c (Vutf_2000_lisp_directory): New variable.
28 (Vconfigure_utf_2000_lisp_directory): Likewise.
29 (complex_vars_of_emacs): Add new variable
30 `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
32 2002-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
34 * char-ucs.h (DECODE_CHAR): Delete special code for
35 `chinese-big5-1' and `chinese-big5-2'.
37 * mule-charset.c (Qbig5_1): New variable in UTF-2000.
39 (decode_defined_char): Support CONVERSION_BIG5_1 and
41 (decode_builtin_char): Likewise.
42 (charset_code_point): Likewise.
43 (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
44 'conversion in UTF-2000.
45 (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
46 (complex_vars_of_mule_charset): Define `chinese-big5-1' and
47 `chinese-big5-2' as children of `chinese-big5'.
49 * char-ucs.h (CONVERSION_BIG5_1): New macro.
50 (CONVERSION_BIG5_2): New macro.
52 2002-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
54 * text-coding.c (char_encode_big5): Support entity-reference.
56 2002-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
58 * text-coding.c (char_encode_as_entity_reference): New function.
59 (char_encode_utf8): Use `char_encode_as_entity_reference'.
61 2002-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
63 * text-coding.c (decode_coding_big5): Support entity-reference
66 2002-08-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
68 * text-coding.c (allocate_coding_system): Initialize initial
69 charsets for CODESYS_UTF8.
70 (Fmake_coding_system): Accept charset-g0, charset-g1 and
71 charset-g2 for CODESYS_UTF8.
72 (decode_coding_utf8): Use charset-g0.
73 (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
74 to force variants to map to UCS.
76 2002-07-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
78 * text-coding.c (Qutf_8_mcs): New variable.
79 (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
80 (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
81 instead of `utf-8' in UTF-2000.
83 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
85 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
86 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
87 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
88 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
89 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
90 CONVERSION_96x96x96x96 are introduced.
91 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
92 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
93 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
95 * char-ucs.h (CONVERSION_94): New macro.
96 (CONVERSION_96): New macro.
97 (CONVERSION_94x94): New macro.
98 (CONVERSION_96x96): New macro.
99 (CONVERSION_94x94x94): New macro.
100 (CONVERSION_96x96x96): New macro.
101 (CONVERSION_94x94x94x60): New macro.
102 (CONVERSION_94x94x94x94): New macro.
103 (CONVERSION_96x96x96x96): New macro.
105 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
107 * chartab.c (Vcharacter_variant_table): Deleted.
108 (Fchar_variants): Use character-attribute `->ucs-variants' instead
109 of `Vcharacter_variant_table'.
110 (Fput_char_attribute): Likewise.
111 (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
112 (complex_vars_of_chartab): Likewise.
114 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
116 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
118 * fns.c (Qideographic_structure): New variable.
119 (Qkeyword_char): New variable.
120 (ids_format_unit): New function.
121 (Fideographic_structure_to_ids): New function.
122 (syms_of_fns): Add new symbols `ideographic-structure' and
123 `:char'; add new builtin function `ideographic-structure-to-ids'.
125 * data.c (Fchar_ref_p): New function.
126 (syms_of_data): Add new builtin function `char-ref-p'.
128 * chartab.h: Add an EXFUN for `Ffind_char'.
130 2002-07-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
132 * text-coding.c (Vcharacter_composition_table): Deleted.
133 (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
136 * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
138 (Vcharacter_composition_table): Deleted.
139 (Fget_composite_char): Use the implementation for external-DB
140 support in every UTF-2000.
141 (Fput_char_attribute): Likewise.
142 (char_attribute_system_db_file): Don't define if external-DB
143 feature is not available.
144 (Fsave_char_attribute_table): Likewise.
145 (Fmount_char_attribute_table): Likewise.
146 (Fclose_char_attribute_table): Likewise.
147 (Freset_char_attribute_table): Likewise.
148 (Fload_char_attribute_table): Likewise.
149 (syms_of_chartab): Don't define `save-char-attribute-table',
150 `mount-char-attribute-table', `reset-char-attribute-table',
151 `close-char-attribute-table' and `load-char-attribute-table' if
152 external-DB feature is not available.
153 (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
155 2002-07-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
157 * text-coding.c (Qcomposition): Add extern if external-DB feature
159 (Vcharacter_composition_table): Don't add extern if external-DB
160 feature is supported.
161 (COMPOSE_ADD_CHAR): Modify for new data-representation of
162 character composition rule if external-DB feature is supported.
164 * chartab.c (Vcharacter_composition_table): Don't define if
165 external-DB feature is supported.
166 (Qcomposition): New variable.
167 (Fget_composite_char): New implementation for external-DB support.
168 (Fput_char_attribute): Use `composition' property of each
169 character instead of `Vcharacter_composition_table' to store
170 character-composition rules if external-DB feature is supported.
171 (syms_of_chartab): Add new symbol `composition'.
172 (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
173 external-DB feature is supported.
175 2002-07-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
177 * chartab.c (Vchar_db_stingy_mode): New variable.
178 (load_char_attribute_maybe): Close database if
179 Vchar_db_stingy_mode is not NIL.
180 (Fload_char_attribute_table_map_function): Use
181 `get_char_id_table_0' instead of `get_char_id_table'.
182 (vars_of_chartab): Add new variable `char-db-stingy-mode'.
184 * chartab.h (get_char_id_table_0): New inline function.
185 (get_char_id_table): Use `get_char_id_table_0'.
187 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
189 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
190 and `COMPOSE_ADD_CHAR'.
191 (decode_coding_iso2022): Use `decode_flush_er_chars'.
193 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
195 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
196 instead of `DECODE_ADD_UCS_CHAR'.
197 (COMPOSE_ADD_CHAR): Likewise.
199 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
201 * text-coding.c (decode_flush_er_chars): New inline function.
202 (decode_add_er_char): New function.
203 (decode_coding_utf8): Use `decode_flush_er_chars' and
204 `decode_add_er_char'.
206 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
208 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
209 done before `decode_output_utf8_partial_char'.
211 * mule-charset.c (complex_vars_of_mule_charset): Specify
212 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
213 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
215 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
217 * mule-charset.c (decode_defined_char): New function; search
219 (decode_builtin_char): Don't search mother if
220 XCHARSET_MAX_CODE(charset) == 0.
221 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
222 == 0 even if code >= XCHARSET_MAX_CODE(charset).
223 (Fdecode_char): Use `decode_defined_char' instead of
224 `DECODE_DEFINED_CHAR'.
225 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
226 mother of `Vcharset_ucs_jis'.
228 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
229 instead of `DECODE_DEFINED_CHAR'.
231 * char-ucs.h (decode_defined_char): Renamed from
232 `DECODE_DEFINED_CHAR'; changed to normal function.
233 (DECODE_CHAR): Use `decode_defined_char' instead of
234 `DECODE_DEFINED_CHAR'.
236 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
238 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
240 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
242 * text-coding.c (Vcoded_charset_entity_reference_alist): New
244 (Quse_entity_reference): New variable.
248 (coding_system_description): Add description for
250 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
251 (allocate_coding_system): Initialize `ccs_priority_list' in
253 (Fmake_coding_system): Add description about
254 'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
256 (Fcoding_system_property): Accept `disable-composition' and
257 `use-entity-reference' in UTF-2000.
258 (struct decoding_stream): Add new member `er_counter' and `er_buf'
260 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
261 (decode_coding_utf8): Decode entity-reference if
262 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
263 (char_encode_utf8): Encode non-Unicode characters as
264 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
266 (syms_of_file_coding): Add new symbols `use-entity-reference',
268 (vars_of_file_coding): Add new variable
269 `coded-charset-entity-reference-alist'.
270 (complex_vars_of_file_coding): Declare `disable-composition' and
271 `use-entity-reference' to be coding-system-properties in UTF-2000.
273 * file-coding.h (struct Lisp_Coding_System): Add new member
274 `use_entity_reference' and `ccs_priority_list'.
275 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
276 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
277 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
279 2002-07-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
281 * chartab.c (save_uint8_byte_table): Don't clear the table.
282 (save_uint16_byte_table): Likewise.
283 (save_byte_table): Likewise.
284 (Fmount_char_attribute_table): New function.
285 (syms_of_chartab): Add new builtin function
286 `mount-char-attribute-table'.
288 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
290 * mule-charset.c (Fsave_charset_mapping_table): Open database as
292 (load_char_decoding_entry_maybe): Open database as read-only mode.
294 * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
295 open database as "w+" mode.
296 (load_char_attribute_maybe): Open database as read-only mode.
297 (Fload_char_attribute_table): Likewise.
299 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
301 * chartab.c (mark_char_table): Don't refer `ct->db_file'.
302 (char_table_description): Delete member `db_file'.
303 (Fmake_char_table): Don't refer `ct->db_file'.
304 (Fcopy_char_table): Likewise.
305 (Fsave_char_attribute_table): Likewise.
306 (Fclose_char_attribute_table): Likewise.
307 (Freset_char_attribute_table): Likewise.
308 (load_char_attribute_maybe): Likewise.
309 (Fload_char_attribute_table): Likewise.
311 * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
313 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
315 * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
316 (Fsave_char_attribute_table): Don't check `ct->db_file' if
318 (load_char_attribute_maybe): Likewise.
319 (Fload_char_attribute_table): Likewise.
321 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
323 * chartab.c (Fclose_char_attribute_table): Set Qnil on
324 `ct->db_file' unconditionally.
326 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
328 * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
330 (char_table_description): Add description for `db_file' and `db'
332 (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
334 (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
335 (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
336 (Fclose_char_attribute_table): New function.
337 (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
338 (load_char_attribute_maybe): Change interface; use `cit->db_file'
340 (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
341 (syms_of_chartab): Add new builtin function
342 `Fclose_char_attribute_table'.
344 2002-06-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
346 * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
348 (load_char_attribute_maybe): Change interface.
349 (get_char_id_table): Modify for `load_char_attribute_maybe'.
351 2002-06-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
353 * database.h: Add an EXFUN for `Fdatabase_live_p'.
355 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
357 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
358 instead of `DECODE_CHAR' for mother; don't use special code for
359 chinese-big5 to use code space of chinese-big5-1 and
361 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
362 `MAX_CHAR_BIG5_CDP' for chinese-big5.
364 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
365 (MAX_CHAR_BIG5_CDP): Revival.
367 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
369 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
370 the XLFD registry-encoding name of `chinese-big5'.
372 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
374 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
375 (Qchinese_big5_cdp): Deleted.
376 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
377 (complex_vars_of_mule_charset): Delete coded-charset
380 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
381 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
382 `CHARSET_ID_OFFSET - n' for private CCS.
383 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
384 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
385 of `MIN_LEADING_BYTE'.
386 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
387 `(CHARSET_ID_OFFSET - 97)'.
388 (MIN_CHAR_BIG5_CDP): Deleted.
389 (MAX_CHAR_BIG5_CDP): Deleted.
391 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
393 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
395 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
397 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
398 (vars_of_mule): Add new variable `utf-2000-version' [moved from
401 * chartab.c (Vutf_2000_version): Moved to mule.c.
402 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
404 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
406 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
407 when HAVE_CHISE_CLIENT is not defined.
409 * mule.c (vars_of_mule): Provide feature `chise' when
410 HAVE_CHISE_CLIENT is defined.
412 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
414 * config.h.in (UTF2000): Add comment.
415 (HAVE_CHISE_CLIENT): New macro.
417 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
419 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
421 (Fput_char_attribute): Likewise.
422 (char_attribute_system_db_file): Encode file-name of attribute.
423 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
426 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
428 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
429 (Fsave_charset_mapping_table): Use
430 `char_attribute_system_db_file'.
431 (load_char_decoding_entry_maybe): Likewise.
433 * chartab.h (Qsystem_char_id): New external variable.
434 (char_attribute_system_db_file): New prototype.
436 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
437 (char_attribute_system_db_file): New function.
438 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
439 (Freset_char_attribute_table): Likewise.
440 (load_char_attribute_maybe): Likewise.
441 (Fload_char_attribute_table): Likewise.
442 (syms_of_chartab): Add new symbol `system-char-id'.
444 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
446 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
447 `XCHARSET_GRAPHIC(ccs)'.
449 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
451 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
453 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
455 * chartab.c (Q_ucs_variants): New variable.
456 (syms_of_chartab): Add new symbol `->ucs-variants'.
457 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
458 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
459 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
461 * mule-charset.c (load_char_decoding_entry_maybe): New function.
463 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
464 `HAVE_DATABASE' is defined.
465 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
466 `HAVE_DATABASE' is defined.
468 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
470 * chartab.c (Fsave_char_attribute_table): Don't clear internal
472 (Freset_char_attribute_table): New function.
473 (syms_of_chartab): Add new builtin function
474 `reset-char-attribute-table'.
476 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
478 * chartab.c (load_char_attribute_maybe): Don't make directories.
480 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
482 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
484 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
487 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
489 * mule-charset.c (Fsave_charset_mapping_table): Use
490 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
492 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
493 instead of `XCHARSET_CHARS'.
495 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
497 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
498 (XCHARSET_BYTE_SIZE): Likewise.
500 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
502 (XCHARSET_BYTE_SIZE): Likewise.
504 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
506 * chartab.c (Fput_char_attribute): Use exec-directory instead of
507 data-directory to store database.
508 (Fsave_char_attribute_table): Likewise.
509 (load_char_attribute_maybe): Likewise.
510 (Fload_char_attribute_table): Likewise.
512 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
514 * mule-charset.c (Fsave_charset_mapping_table): New function.
515 (syms_of_mule_charset): Add new builtin function
516 `save-charset-mapping-table'.
518 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
520 * char-ucs.h (decoding_table_check_elements): Delete prototype.
521 (get_ccs_octet_table): New inline function.
522 (put_ccs_octet_table): Likewise.
523 (decoding_table_put_char): Use `get_ccs_octet_table' and
524 `put_ccs_octet_table'.
525 (decoding_table_remove_char): Use `decoding_table_put_char'.
526 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
528 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
530 (make_charset): Use Qunbound instead Qnil as initial value of
533 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
535 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
536 element is Qunloaded.
537 (map_over_uint16_byte_table): Likewise.
538 (map_over_byte_table): Likewise.
539 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
540 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
541 database support, load encoding-table of the specified
542 coded-charset if it is not loaded yet.
543 (save_uint8_byte_table): New function of UTF-2000 with external
545 (save_uint16_byte_table): Likewise.
546 (save_byte_table): Likewise.
547 (Fput_char_attribute): Don't store value into external database
548 even if the external database feature is supported in UTF-2000;
549 set `attribute' as name of char-table if the external database
550 feature is supported.
551 (Fsave_char_attribute_table): New function in UTF-2000.
552 (syms_of_chartab): Add new builtin function
553 `save-char-attribute-table' in UTF-2000.
555 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
557 * chartab.c (char_attribute_table_to_put): New variable in
559 (Qput_char_table_map_function): Likewise.
560 (value_to_put): Likewise.
561 (Fput_char_table_map_function): New function in UTF-2000.
562 (put_char_table): Use `Fmap_char_attribute' for
563 CHARTAB_RANGE_CHARSET in UTF-2000.
564 (Fput_char_attribute): Store symbol instead of string in
565 `XCHAR_TABLE_NAME (table)'.
566 (load_char_attribute_maybe): Likewise.
567 (syms_of_chartab): Add new symbol/function
568 `put-char-table-map-function'.
570 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
572 * database.h: Add new EXFUN for `Fmap_database'.
574 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
575 (syms_of_database): Likewise.
577 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
579 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
580 (XCHAR_TABLE_UNLOADED): Likewise.
582 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
583 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
584 HAVE_DATABASE is defined.
585 (char_attribute_table_to_load): New variable of UTF-2000 with
586 external database support.
587 (Qload_char_attribute_table_map_function): Likewise.
588 (Fload_char_attribute_table_map_function): New function of
589 UTF-2000 with external database support.
590 (Fload_char_attribute_table): New function of UTF-2000.
591 (Fmap_char_attribute): Call Fload_char_attribute_table if
592 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
593 (syms_of_chartab): Add new symbol and function
594 `load-char-attribute-table-map-function' in UTF-2000 with external
595 database support; add new function `load-char-attribute-table' in
598 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
600 * chartab.h (load_char_attribute_maybe): New prototype for
601 UTF-2000 with DATABASE support.
602 (get_char_id_table): Use `load_char_attribute_maybe' if
603 HAVE_DATABASE is defined.
605 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
606 with DATABASE support.
608 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
610 * chartab.c (Fput_char_attribute): Use S-expression as key of
613 * chartab.h (get_char_id_table): Use S-expression as key of
616 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
618 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
619 if an element is not loaded, load the corresponding attributes
620 from an external database.
621 (map_over_uint16_byte_table): Likewise.
622 (map_over_byte_table): Likewise.
623 (map_char_table): Modify for `map_over_uint8_byte_table',
624 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
625 element is not loaded, load the corresponding attributes from an
627 (Fput_char_attribute): Change initial values to Qunloaded.
629 * chartab.h (get_char_id_table): If a character attribute is not
630 loaded and the attribute value is not found in an external
631 database, store Qunbound as the attribute value.
633 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
635 * chartab.c (BT_UINT8_unloaded): New macro.
636 (UINT8_VALUE_P): Accept Qunloaded.
637 (UINT8_ENCODE): Likewise.
638 (UINT8_DECODE): Likewise.
639 (BT_UINT16_unloaded): New macro.
640 (UINT16_VALUE_P): Accept Qunloaded.
641 (UINT16_ENCODE): Likewise.
642 (UINT16_DECODE): Likewise.
643 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
645 (mark_char_table): Mark `ct->name' in UTF-2000.
646 (char_table_description): Add `name' in UTF-2000.
647 (Fmake_char_table): Initialize `ct->name'.
648 (Fcopy_char_table): Copy `ct->name'.
649 (Fput_char_attribute): Store value into an external database if
650 HAVE_DATABASE is defined.
652 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
654 (CHAR_TABLE_NAME): New macro in UTF-2000.
655 (XCHAR_TABLE_NAME): New macro in UTF-2000.
656 (get_char_id_table): Try to read an external database if Qunloaded
657 is stored in a table.
659 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
662 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
664 * database.h: Add EXFUN definitions for Fopen_database,
665 Fput_database, Fget_database and Fclose_database.
667 * data.c (Qunloaded): New variable in UTF-2000.
669 * lisp.h (Qunloaded): New variable in UTF-2000.
671 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
673 * mule-charset.c (put_char_ccs_code_point): Modify for
674 `decoding_table_remove_char' and `decoding_table_put_char'.
675 (remove_char_ccs): Modify for `decoding_table_remove_char'.
677 * char-ucs.h (decoding_table_remove_char): Change arguments to
678 hide decoding_table vector.
679 (decoding_table_put_char): Likewise.
681 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
683 * mule-charset.c (decoding_table_remove_char): Moved to
685 (decoding_table_put_char): Likewise.
687 * char-ucs.h (decoding_table_check_elements): New prototype [moved
688 from mule-charset.c].
689 (decoding_table_remove_char): New inline function [moved from
691 (decoding_table_put_char): Likewise.
693 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
695 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
698 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
700 * mule-charset.c (decode_builtin_char): Support mother charsets.
702 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
704 * mule-charset.c (Q94x94x60): New variable.
705 (charset_code_point): Support conversion `94x94x60'.
706 (Fmake_charset): Likewise.
707 (syms_of_mule_charset): Add new symbol `94x94x60'.
709 * char-ucs.h (CONVERSION_94x94x60): New macro.
711 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
713 * mule-charset.c (charset_code_point): Unify code about
716 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
718 * mule-charset.c (charset_code_point): Merge code about builtin
719 characters into code about mother charsets; don't use
720 `range_charset_code_point'.
721 (range_charset_code_point): Deleted.
723 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
725 * mule-charset.c (Qcode_offset): New variable.
726 (Fmake_charset): Use `XUINT' to get value of `min-code' and
727 `max-code'; accept new property `code-offset'.
728 (syms_of_mule_charset): Add new symbol `code-offset'.
730 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
732 * mule-charset.c (range_charset_code_point): Fixed.
734 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
736 * mule-charset.c (decode_builtin_char): Change semantics of
737 code-offset of coded-charset.
738 (charset_code_point): Likewise.
739 (range_charset_code_point): Likewise.
740 (complex_vars_of_mule_charset): Modify for the change.
742 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
744 * mule-charset.c (Fencode_char): Reverse arguments.
746 * mule-charset.c (charset_code_point): Fixed.
748 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
750 * mule-charset.c (Vcharset_mojikyo): Deleted.
751 (Vcharset_mojikyo_2022_1): Deleted.
752 (Vcharset_mojikyo_pj_{1..21}): Deleted.
753 (Qmin_code): New variable in UTF-2000.
754 (Qmax_code): Likewise.
756 (Qconversion): Likewise.
759 (Qmojikyo_2022_1): Deleted.
760 (Qmojikyo_pj_{1..22}): Deleted.
761 (mark_charset): Mark `cs->mother'.
762 (charset_description): Add description for `mother'.
763 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
764 new arguments `mother' and `conversion'; use
765 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
766 (charset_code_point): Moved from char-ucs.h; support `mother'
768 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
769 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
770 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
771 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
772 allow 2 as the value of `graphic' in UTF-2000; add new properties
773 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
774 require `final' in UTF-2000; modify for `make_charset'.
775 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
776 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
777 (Fcharset_property): Support `mother', `min-code' and `max-code'.
778 (Fencode_char): New function.
779 (syms_of_mule_charset): Add new builtin function `encode-char' in
780 UTF-2000; add new symbols `min-code', `max-code', `mother',
781 `conversion' and `94x60'; delete symbols `mojikyo',
782 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
783 (complex_vars_of_mule_charset): Modify for `make_charset' change;
784 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
785 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
787 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
788 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
790 * char-ucs.h (Vcharset_mojikyo): Deleted.
791 (Vcharset_mojikyo_2022_1): Deleted.
792 (LEADING_BYTE_MOJIKYO): Deleted.
793 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
794 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
795 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
796 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
797 add new member `mother'; add new member `conversion'.
798 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
799 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
800 (CHARSET_MOTHER): New macro.
801 (CHARSET_CONVERSION): New macro.
802 (CONVERSION_IDENTICAL): New macro.
803 (CONVERSION_94x60): New macro.
804 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
805 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
806 (XCHARSET_MOTHER): New macro.
807 (XCHARSET_CONVERSION): New macro.
808 (MIN_CHAR_MOJIKYO): Deleted.
809 (MAX_CHAR_MOJIKYO): Deleted.
810 (DECODE_MOJIKYO_2022): Deleted.
811 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
812 (charset_code_point): Changed to non-inline function.
813 (encode_char_1): Use `charset_code_point'.
814 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
816 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
818 * lread.c (read_compiled_function): Fix prototype.
819 (read_vector): Likewise.
821 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
823 * lrecord.h (struct lrecord_header): Delete `older'.
824 (set_lheader_implementation): Delete code for `older'.
825 (set_lheader_older_implementation): Deleted.
826 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
827 (OLDER_RECORD_P): Deleted.
828 (OLDER_RECORD_HEADER_P): Deleted.
829 (alloc_older_lcrecord): Deleted.
830 (alloc_older_lcrecord_type): Deleted.
832 * alloc.c (all_older_lcrecords): Deleted.
833 (alloc_older_lcrecord): Deleted.
834 (disksave_object_finalization_1): Delete code for older objects.
835 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
836 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
838 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
840 * mule-charset.c (decoding_table_put_char): Use `make_vector'
841 instead of `make_older_vector'.
842 (put_char_ccs_code_point): Likewise.
843 (mark_charset): Mark `cs->decoding_table'.
844 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
846 * lisp.h (make_older_vector): Deleted.
847 (make_vector_newer): Deleted.
849 * config.h.in (HAVE_GGC): Deleted.
851 * alloc.c (make_older_vector): Deleted.
852 (make_vector_newer_1): Deleted.
853 (make_vector_newer): Deleted.
855 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
857 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
858 (Qideograph_daikanwa_2): New variable.
859 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
860 (complex_vars_of_mule_charset): Add new coded-charset
861 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
862 `LEADING_BYTE_DAIKANWA'.
864 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
865 (LEADING_BYTE_DAIKANWA_1): New macro.
866 (LEADING_BYTE_DAIKANWA_2): New macro.
867 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
869 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
871 * mule-charset.c (complex_vars_of_mule_charset): Change
872 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
873 the second revised version.
875 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
877 * mule-charset.c (Vcharset_ucs_smp): New variable.
878 (Vcharset_ucs_sip): New variable.
879 (Qucs_smp): New variable.
880 (Qucs_sip): New variable.
881 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
882 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
883 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
884 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
885 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
886 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
888 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
889 (LEADING_BYTE_UCS_SIP): New macro.
890 (MIN_CHAR_SMP): New macro.
891 (MAX_CHAR_SMP): New macro.
892 (MIN_CHAR_SIP): New macro.
893 (MAX_CHAR_SIP): New macro.
895 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
897 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
900 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
902 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
903 value; don't store value into `encoding_table' of `Lisp_Charset'.
904 (mark_charset): `encoding_table' was deleted.
905 (charset_description): Likewise.
906 (make_charset): Likewise.
907 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
908 `put_char_ccs_code_point'.
910 * chartab.h (Fput_char_attribute): New EXFUN.
912 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
913 is unified with normal symbol space.
914 (Fget_char_attribute): Likewise.
915 (Fput_char_attribute): Likewise; behavior of
916 `put_char_ccs_code_point' is changed.
918 * char-ucs.h: Include "elhash.h".
919 (Vchar_attribute_hash_table): New external variable.
920 (struct Lisp_Charset): Delete `encoding_table'.
921 (CHARSET_ENCODING_TABLE): New implementation; refer
922 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
925 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
927 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
930 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
932 * text-coding.c (char_encode_big5): Prefer charset-g1 than
935 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
937 * chartab.c (uint8_byte_table_description): New constant.
938 (uint8-byte-table): Use `uint8_byte_table_description'.
939 (uint16_byte_table_description): New constant.
940 (uint16-byte-table): Use `uint16_byte_table_description'.
942 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
944 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
945 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
947 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
949 * mule-charset.c (Vcharset_ucs_ks): New variable.
950 (Qucs_ks): New variable.
951 (syms_of_mule_charset): Add new symbol `ucs-ks'.
952 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
954 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
956 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
958 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
959 (Fdecode_char): Likewise.
961 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
963 (Fdefine_char): Modify for Fdecode_char.
964 (Ffind_char): Likewise.
966 * mule-charset.c (Fdecode_char): Add new optional argument
968 (Fdecode_builtin_char): Modify for `Fdecode_char'.
970 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
972 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
973 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
974 (allocate_coding_system): Initialize initial-charsets of
975 CODESYS_BIG5 in XEmacs UTF-2000.
976 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
977 CODESYS_BIG5 in XEmacs UTF-2000.
978 (decode_coding_big5): Use initial-charset-g0 and -g1 of
979 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
981 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
983 (Qideograph_hanziku_{1 .. 12}): Likewise.
984 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
986 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
987 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
988 `ideograph-hanziku-{1 .. 12}'.
990 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
991 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
992 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
993 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
994 (DECODE_DEFINED_CHAR): New inline function.
995 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
997 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
999 * mule-charset.c (Vcharset_china3_jef): Renamed from
1000 `Vcharset_japanese_jef_china3'.
1001 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1002 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1003 `{MIN|MAX}_CHAR_JEF_CHINA3'..
1004 (syms_of_mule_charset): Rename `china3-jef' from
1005 `japanese-jef-china3'.
1006 (complex_vars_of_mule_charset): Likewise; rename
1007 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1009 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1010 `LEADING_BYTE_JEF_CHINA3'.
1011 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1012 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1014 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1016 * mule-charset.c (encode_builtin_char_1): Comment out special code
1017 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1019 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1020 (MAX_CHAR_MOJIKYO_0): Comment out.
1021 (MIN_CHAR_CBETA): Changed to 0x00E20000.
1022 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1023 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1024 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1026 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1028 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1029 (Qideograph_cbeta): New variable.
1030 (encode_builtin_char_1): Comment out special code for
1031 coded-charset `mojikyo' and `japanese-jef-china3'.
1032 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1033 (complex_vars_of_mule_charset): Add new coded-charset
1036 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1037 (MIN_CHAR_CBETA): New macro.
1038 (MAX_CHAR_CBETA): New macro.
1040 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1042 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1043 (LEADING_BYTE_JEF_CHINA3): New macro.
1044 (MIN_CHAR_JEF_CHINA3): New macro.
1045 (MAX_CHAR_JEF_CHINA3): Likewise.
1046 (DECODE_CHAR): Fixed.
1048 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1050 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1051 (Qjapanese_jef_china3): New variable.
1052 (encode_builtin_char_1): Support `japanese-jef-china3'.
1053 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1054 (complex_vars_of_mule_charset): Add new coded-charset
1055 `japanese-jef-china3'.
1057 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1059 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1060 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1061 94^4, 96^3, 96^4, 128^n and 256^n set.
1062 (put_char_table): Use `XCHARSET_CELL_RANGE'.
1063 (map_char_table): Likewise.
1065 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1067 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1070 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1072 * chartab.h (get_char_id_table): New inline function.
1074 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1077 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1079 * chartab.h (decode_char_table_range): New prototype in XEmacs
1081 (put_char_id_table): New inline function in XEmacs UTF-2000.
1083 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1085 (decode_char_table_range): Delete static declaration in XEmacs
1088 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1090 * chartab.c (put_char_id_table): Use `put_char_table'.
1092 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1094 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1095 (map_over_uint16_byte_table): Likewise.
1096 (map_over_byte_table): Likewise.
1097 (map_char_table): Modify for `map_over_uint8_byte_table',
1098 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1101 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1103 * chartab.c (struct map_char_table_for_charset_arg): New
1105 (map_char_table_for_charset_fun): New function.
1106 (map_char_table): Use `map_char_table' for encoding_table of
1109 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1111 * chartab.c (map_char_table): Check a character is found in
1112 range->charset instead of non default value is defined in
1113 char-table when range is CHARTAB_RANGE_ROW.
1115 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1117 * chartab.c (map_char_id_table): Deleted.
1118 (Fmap_char_attribute): Use `map_char_table' instead of
1119 `map_char_id_table'.
1121 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1123 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1125 (update_syntax_table): Deleted in XEmacs UTF-2000.
1127 * syntax.c (find_defun_start): Use `syntax_table' instead of
1128 `mirror_syntax_table' in XEmacs UTF-2000.
1129 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1131 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1133 (Fmatching_paren): Likewise.
1134 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1136 (find_start_of_comment): Likewise.
1137 (find_end_of_comment): Likewise.
1138 (Fforward_comment): Likewise.
1139 (scan_lists): Likewise.
1140 (char_quoted): Likewise.
1141 (Fbackward_prefix_chars): Likewise.
1142 (scan_sexps_forward): Likewise.
1143 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1144 (update_syntax_table): Likewise.
1146 * search.c (skip_chars): Use `syntax_table' instead of
1147 `mirror_syntax_table' in XEmacs UTF-2000.
1148 (wordify): Likewise.
1149 (Freplace_match): Likewise.
1151 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1152 `mirror_syntax_table' in XEmacs UTF-2000.
1153 (WORDCHAR_P_UNSAFE): Likewise.
1154 (re_match_2_internal): Likewise.
1156 * font-lock.c (find_context): Use `buf->syntax_table' instead of
1157 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1159 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1160 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1162 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1165 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1167 (print_char_table): Print `default_value' in XEmacs UTF-2000.
1168 (char_table_description): Delete `mirror_table' in XEmacs
1170 (fill_char_table): Don't call `update_syntax_table' in XEmacs
1172 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1173 (Fcopy_char_table): Likewise.
1174 (put_char_table): Don't call `update_syntax_table' in XEmacs
1177 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1178 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1179 (casify_region_internal): Likewise.
1181 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1183 * buffer.c (common_init_complex_vars_of_buffer): Don't use
1184 `mirror_syntax_table' in XEmacs UTF-2000.
1186 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1187 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1188 (Fexpand_abbrev): Likewise.
1190 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1192 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1194 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1196 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1197 (map_over_uint16_byte_table): Likewise.
1198 (map_over_byte_table): Likewise.
1199 (get_char_id_table): Refer `cit->default_value'.
1200 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1201 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1202 of character-id ranges.
1203 (mark_char_table): Mark `ct->default_value'.
1204 (char_table_description): Add `default_value'.
1205 (fill_char_table): Use `default_value'.
1206 (decode_char_table_range): Decode `nil' as
1207 `CHARTAB_RANGE_DEFAULT'.
1208 (get_char_id_table): Refer `cit->default_value'.
1209 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1210 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1211 temporary hack; check value of char-table is bound or not.
1212 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1214 * chartab.h (struct Lisp_Char_Table): Add new member
1215 `default_value' in XEmacs UTF-2000.
1216 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1217 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1220 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1222 * chartab.h (Lisp_Char_ID_Table): Deleted.
1224 * chartab.c (char_table_description): Fix typo.
1225 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1226 `Lisp_Char_ID_Table'.
1228 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1230 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1233 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1236 * chartab.h (XCHAR_ID_TABLE): Deleted.
1237 (XSETCHAR_ID_TABLE): Deleted.
1238 (CHAR_ID_TABLE_P): Deleted.
1240 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1242 (Fget_composite_char): Likewise.
1243 (put_char_table): Likewise.
1244 (add_char_attribute_alist_mapper): Fixed.
1245 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1247 (Fget_char_attribute): Likewise.
1248 (Fget_char_attribute): Likewise.
1249 (Fmap_char_attribute): Likewise.
1251 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1253 (encode_char_1): Likewise.
1255 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1257 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1260 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1261 instead of `XCHAR_ID_TABLE'.
1262 (remove_char_ccs): Likewise.
1264 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1266 (Fget_composite_char): Likewise.
1267 (Fchar_variants): Likewise.
1268 (put_char_table): Likewise.
1269 (add_char_attribute_alist_mapper): Likewise.
1270 (Fchar_attribute_alist): Likewise.
1271 (Fget_char_attribute): Likewise.
1272 (Fput_char_attribute): Likewise.
1273 (Fmap_char_attribute): Likewise.
1274 (Fmap_char_attribute): Likewise.
1276 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1278 (encode_char_1): Likewise.
1280 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1282 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1283 `Lisp_Char_ID_Table'.
1284 (mark_char_id_table): Deleted.
1285 (print_char_id_table): Likewise.
1286 (char_id_table_equal): Likewise.
1287 (char_id_table_hash): Likewise.
1288 (char_id_table_description): Likewise.
1289 (char_id_table): Likewise.
1290 (make_char_id_table): Use `Fmake_char_table' and
1292 (get_char_id_table): Use `Lisp_Char_Table' instead of
1293 `Lisp_Char_ID_Table'.
1294 (put_char_id_table): Likewise.
1295 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1297 (Fremove_char_attribute): Likewise.
1298 (syms_of_chartab): Don't define type `char-id-table'.
1300 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1301 (char_id_table): Likewise.
1302 (GC_CHAR_ID_TABLE_P): Likewise.
1303 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1304 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1305 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1306 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1307 (get_char_id_table): Use `Lisp_Char_Table' instead of
1308 `Lisp_Char_ID_Table'.
1309 (put_char_id_table_0): Likewise.
1310 (put_char_id_table): Likewise.
1312 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1314 * chartab.h: Lisp_Byte_Table related codes are moved from
1317 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1319 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1321 * chartab.h: Don't include "chartab.h".
1322 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1323 (Lisp_Char_ID_Table): Likewise.
1324 (char_id_table): Likewise.
1325 (XCHAR_ID_TABLE): Likewise.
1326 (XSETCHAR_ID_TABLE): Likewise.
1327 (CHAR_ID_TABLE_P): Likewise.
1328 (GC_CHAR_ID_TABLE_P): Likewise.
1329 (get_char_id_table): Likewise.
1331 * char-ucs.h: Include "chartab.h".
1332 (struct Lisp_Char_ID_Table): Moved to chartab.h.
1333 (Lisp_Char_ID_Table): Likewise.
1334 (char_id_table): Likewise.
1335 (XCHAR_ID_TABLE): Likewise.
1336 (XSETCHAR_ID_TABLE): Likewise.
1337 (CHAR_ID_TABLE_P): Likewise.
1338 (GC_CHAR_ID_TABLE_P): Likewise.
1339 (get_char_id_table): Likewise.
1341 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1343 * chartab.c (copy_uint8_byte_table): New function.
1344 (copy_uint16_byte_table): New function.
1345 (copy_byte_table): New function.
1346 (map_over_uint8_byte_table): Modify to avoid huge numbers of
1348 (map_over_uint16_byte_table): Likewise.
1349 (map_over_byte_table): Likewise.
1350 (get_byte_table): Move prototype to chartab.h.
1351 (put_byte_table): Likewise.
1352 (put_char_id_table_0): Moved to chartab.h.
1353 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1354 (char_table_entry_equal): Likewise.
1355 (char_table_entry_hash): Likewise.
1356 (char_table_entry_description): Likewise.
1357 (char_table_entry): Likewise.
1358 (make_char_table_entry): Likewise.
1359 (copy_char_table_entry): Likewise.
1360 (get_non_ascii_char_table_value): Likewise.
1361 (map_over_charset_ascii): Likewise.
1362 (map_over_charset_control_1): Likewise.
1363 (map_over_charset_row): Likewise.
1364 (map_over_other_charset): Likewise.
1365 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1366 (print_char_table): Likewise.
1367 (char_table_equal): Likewise.
1368 (char_table_hash): Likewise.
1369 (char_table_description): Likewise.
1370 (fill_char_table): Likewise.
1371 (Fcopy_char_table): Likewise.
1372 (get_char_table): Likewise.
1373 (Fget_range_char_table): Likewise.
1374 (put_char_table): Likewise.
1375 (map_char_table): Likewise.
1376 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1379 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1381 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1382 `Vauto_fill_chars' in XEmacs UTF-2000.
1384 * chartab.h (get_byte_table): New prototype [moved from
1386 (put_byte_table): Likewise [moved from chartab.c].
1387 (put_char_id_table_0): New inline function [moved from chartab.c].
1388 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1389 (Lisp_Char_Table_Entry): Likewise.
1390 (char_table_entry): Likewise.
1391 (XCHAR_TABLE_ENTRY): Likewise.
1392 (XSETCHAR_TABLE_ENTRY): Likewise.
1393 (CHAR_TABLE_ENTRYP): Likewise.
1394 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1395 (NUM_ASCII_CHARS): Likewise.
1396 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1397 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1399 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1401 * chartab.c (get_char_id_table): Change interface.
1402 (put_char_id_table_0): New function.
1403 (put_char_id_table): Change interface; new implementation.
1404 (Fget_composite_char): Modify for interface change of
1405 `get_char_id_table'.
1406 (Fchar_variants): Likewise.
1407 (add_char_attribute_alist_mapper): Likewise.
1408 (Fchar_attribute_alist): Likewise.
1409 (Fget_char_attribute): Likewise.
1410 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1411 as same as character as the first argument like `put-char-table';
1412 modify for interface change of `put_char_id_table'.
1413 (Fremove_char_attribute): Modify for interface change of
1414 `put_char_id_table'.
1416 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1418 * text-coding.c: Sync up with XEmacs 21.2.41.
1419 (COMPOSE_ADD_CHAR): Modify for interface change of
1420 `get_char_id_table'.
1422 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1423 change of `put_char_id_table'.
1424 (remove_char_ccs): Likewise.
1426 * chartab.h (put_char_id_table): Change interface.
1428 * char-ucs.h (get_char_id_table): Change interface.
1429 (charset_code_point): Modify for interface change of
1430 `get_char_id_table'.
1431 (encode_char_1): Likewise.
1433 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1435 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1437 (map_over_uint16_byte_table): Likewise.
1438 (map_over_byte_table): Likewise.
1439 (map_char_id_table): Add new argument `range' like
1441 (Fmap_char_attribute): Add new argument `range' like
1444 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1446 * chartab.c (map_over_uint8_byte_table): Change interface of
1447 mapping function to use struct chartab_range instead of Emchar.
1448 (map_over_uint16_byte_table): Likewise.
1449 (map_over_byte_table): Likewise.
1450 (map_char_id_table): Likewise.
1451 (struct slow_map_char_id_table_arg): Deleted.
1452 (slow_map_char_id_table_fun): Deleted.
1453 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1454 function `slow_map_char_table_fun' instead of struct
1455 `slow_map_char_id_table_arg' and function
1456 `slow_map_char_id_table_fun'.
1458 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1460 * mule-charset.c: Move char-it-table related codes to chartab.c.
1461 (Vutf_2000_version): Moved to chartab.c.
1462 (Fdefine_char): Likewise.
1463 (Ffind_char): Likewise.
1464 (syms_of_mule_charset): Move types `uint8-byte-table',
1465 `uint16-byte-table', `byte-table' and `char-id-table' to
1466 chartab.c; move functions `char_attribute_list,
1467 `find_char_attribute_table, `char_attribute_alist,
1468 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1469 `map_char_attribute, `define_char, `find_char, `char_variants and
1470 `get_composite_char to chartab.c; move symbols `=>ucs',
1471 `->decomposition', `compat', `isolated', `initial', `medial',
1472 `final', `vertical', `noBreak', `fraction', `super', `sub',
1473 `circle', `square', `wide', `narrow', `small' and `font' to
1475 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1476 setting codes for `Vcharacter_composition_table' and
1477 `Vcharacter_variant_table' to chartab.c.
1478 (complex_vars_of_mule_charset): Move setting code for
1479 `Vchar_attribute_hash_table' to chartab.c.
1481 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1482 (make_char_id_table): New prototype.
1483 (put_char_id_table): Likewise.
1484 (Fget_char_attribute): Likewise.
1486 * chartab.c: Move char-id-table related code from mule-charset.c.
1487 (Vutf_2000_version): Moved from mule-charset.c.
1489 * char-ucs.h (Qucs): New external variable.
1490 (put_char_ccs_code_point): New prototype.
1491 (remove_char_ccs): Likewise.
1493 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1495 * mule-charset.c (Vcharset_ucs_jis): New variable.
1496 (Qucs_jis): Likewise.
1497 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1498 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1500 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1502 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1504 * mule-charset.c (map_over_uint8_byte_table): New function.
1505 (map_over_uint16_byte_table): Likewise.
1506 (map_over_byte_table): Likewise.
1507 (map_char_id_table): Likewise.
1508 (slow_map_char_id_table_fun): Likewise.
1509 (Fmap_char_attribute): Likewise.
1510 (syms_of_mule_charset): Add new function `map-char-attribute'.
1512 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1514 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1515 (syms_of_mule_charset): Add new function `find-char'.
1517 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1519 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1521 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1522 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1524 (complex_vars_of_mule_charset): Add new coded-charset
1525 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1526 `ideograph-gt-pj-*'.
1528 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1530 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1532 * mule-charset.c (encode_builtin_char_1): Purge codes about
1533 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1534 {MIN|MAX}_CHAR_HEBREW.
1535 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1536 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1538 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1539 (MAX_CHAR_GREEK): Purged.
1540 (MIN_CHAR_CYRILLIC): Purged.
1541 (MAX_CHAR_CYRILLIC): Purged.
1542 (MIN_CHAR_HEBREW): Commented out.
1543 (MAX_CHAR_HEBREW): Likewise.
1545 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1547 * mule-charset.c (Qto_ucs): New variable.
1548 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1549 (Fdefine_char): Likewise.
1550 (syms_of_mule_charset): Add new symbol `=>ucs'.
1552 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1554 * mule-charset.c (Fdecode_char): Fixed.
1556 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1558 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1559 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1562 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1564 * mule-charset.c (Vcharset_ucs_big5): New variable.
1565 (Qucs_big5): Likewise.
1566 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1567 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1569 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1571 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1573 * mule-charset.c (decode_builtin_char): Check Big5 code range
1574 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1576 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1578 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1579 (Qchinese_gb12345): Likewise.
1580 (Fdecode_builtin_char): Fixed.
1581 (syms_of_mule_charset): Add `chinese-gb12345'.
1582 (complex_vars_of_mule_charset): Add coded-charset
1585 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1586 (LEADING_BYTE_CHINESE_GB12345): New macro.
1588 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1590 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1591 and `latin-viscii-upper' for `latin-viscii'.
1593 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1595 * mule-charset.c (Fdecode_builtin_char): Comment out
1596 regularization code for ISO-IR GR representation.
1598 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1600 * mule-charset.c (decode_builtin_char): New function; renamed from
1601 `make_builtin_char'; return -1 instead of signal.
1602 (Fdecode_builtin_char): Use `decode_builtin_char'.
1604 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1605 `make_builtin_char'.
1606 (DECODE_CHAR): Use `decode_builtin_char' instead of
1607 `make_builtin_char'; use mapping table of `chinese-big5' for
1608 `chinese-big5-{1,2}'.
1610 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1612 * text-coding.c (char_encode_big5): New function.
1613 (char_finish_big5): Likewise.
1614 (reset_encoding_stream): Use `char_encode_big5' and
1615 `char_finish_big5' for CODESYS_BIG5.
1616 (mule_encode): Don't use `encode_coding_big5'.
1617 (encode_coding_big5): Deleted.
1619 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1621 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1622 0x81- in XEmacs UTF-2000.
1623 (detect_coding_big5): Likewise.
1625 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1627 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1628 generate character-id if the CCS property does not have
1629 corresponding predefined character.
1630 (make_builtin_char): Return -1 if corresponding predefined
1631 character is not found.
1632 (Fdecode_char): Return nil if corresponding character is not
1634 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1635 don't map to builtin ucs space.
1637 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1639 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1640 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1642 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1644 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1645 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1646 (Qideograph_gt): Likewise.
1647 (Qideograph_gt_pj_{1..11}): Likewise.
1648 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1649 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1650 `ideograph-gt-pj-11'.
1651 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1652 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1653 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1655 * char-ucs.h (LEADING_BYTE_GT): New macro.
1656 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1657 (MIN_CHAR_GT): Likewise.
1658 (MAX_CHAR_GT): Likewise.
1660 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1662 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1663 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1665 * doprnt.c (unsigned_int_converters): Add `c'.
1666 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1668 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1669 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1671 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1672 (MAX_CHAR_MOJIKYO_0): New macro.
1673 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1675 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1677 * mule-charset.c (Fdefine_char): Delete cemented out code.
1678 (encode_builtin_char_1): Modify for new allocation of builtin
1681 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1683 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1685 * mule-charset.c (Vcharset_ucs_cns): New variable.
1686 (Qucs_cns): New variable.
1687 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1688 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1690 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1692 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1694 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1696 * search.c (search_buffer): Make `charset_base_code' as
1697 character-id >> 6 to eliminate the corresponding last byte in
1698 UTF-8 representation [I'm not sure it is right thing].
1699 (boyer_moore): Likewise.
1701 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1703 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1704 representation in MULE.
1706 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1708 * text-coding.c (Fmake_coding_system): Use
1709 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1710 `EXTERNAL_PROPERTY_LIST_LOOP'.
1712 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1714 * text-coding.c (decode_output_utf8_partial_char): New function.
1715 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1717 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1719 * text-coding.c (decode_coding_utf8): Output original byte
1720 sequence if it is broken; change order of conditions.
1722 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1725 * mb-multibyte.h (BYTE_ASCII_P):
1726 Use bit ops for char-signedness safety.
1727 (BYTE_C0_P): Use bit ops for char-signedness safety.
1728 (BYTE_C1_P): Use bit ops for char-signedness safety.
1730 * character.h: (XCHAR_OR_CHAR_INT):
1731 Always use inline function.
1732 Remove redundant type checking assert() - XINT will abort quite
1735 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1737 * text-coding.c: (Fencode_shift_jis_char):
1738 (Fencode_big5_char):
1739 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1740 Replace 0 with '\0' when working with bytes.
1741 Replace initial "(" with "\(" in docstrings.
1743 (Fmake_coding_system):
1744 When type is ccl and value is vector, register it with a proper
1745 symbol. And checks whether the given ccl program is valid.
1746 (mule_decode): When calling ccl_driver, if src indicates
1747 NULL pointer, set an empty string instead.
1748 (mule_encode): Likewise.
1751 (detect_coding_sjis):
1752 (decode_coding_sjis):
1753 (detect_coding_big5):
1754 (decode_coding_big5):
1755 (detect_coding_ucs4):
1756 (decode_coding_ucs4):
1757 (detect_coding_utf8):
1758 (decode_coding_utf8):
1759 (detect_coding_iso2022):
1760 (decode_coding_iso2022):
1761 (decode_coding_no_conversion):
1763 Make all detecting and decoding functions take an Extbyte * arg.
1764 (text_encode_generic):
1765 (encode_coding_big5):
1766 (encode_coding_no_conversion):
1768 Make all encoding functions take a Bufbyte * arg.
1769 Use size_t instead of unsigned int for memory sizes.
1770 Only cast to unsigned char whenever dereferencing Extbyte *.
1772 (struct lrecord_description fcd_description_1): Use countof.
1773 (complex_vars_of_file_coding):
1774 Use countof instead of sizeof.
1775 Use CHECK_NATNUM instead of CHECK_INT.
1777 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1779 * mule-charset.c (Fget_char_attribute): Add new optional argument
1781 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1782 (remove_char_ccs): Likewise.
1784 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1786 * text-coding.c (char_encode_shift_jis): New implementation in
1788 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1791 * mule-charset.c (Vcharset_chinese_big5): New variable in
1793 (Qchinese_big5): New variable in UTF-2000.
1794 (BIG5_SAME_ROW): New macro in UTF-2000.
1795 (make_builtin_char): Use builtin characters of
1796 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1797 characters of `Vcharset_chinese_big5'.
1798 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1799 (complex_vars_of_mule_charset): Add new coded-charset
1800 `chinese-big5' in UTF-2000.
1802 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1803 (Vcharset_chinese_big5): New external variable declaration.
1804 (Vcharset_japanese_jisx0208_1990): Likewise.
1806 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1808 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1810 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1812 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1814 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1815 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1816 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1819 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1821 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1823 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1825 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1828 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1830 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1831 for `CHARSET_BY_ATTRIBUTES'.
1832 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1833 `CHARSET_BY_ATTRIBUTES'.
1835 * text-coding.c (struct decoding_stream): Rename member `CH' to
1837 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1838 (decode_coding_sjis): Likewise.
1839 (decode_coding_big5): Likewise.
1840 (decode_coding_ucs4): Likewise.
1841 (decode_coding_utf8): Likewise.
1842 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1843 `CHARSET_BY_ATTRIBUTES'.
1844 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1845 `str->counter'; decode 3, 4 bytes sets.
1846 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1848 (decode_coding_no_conversion): Use `str->cpos' instead of
1851 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1852 (Qmojikyo_2022_1): New variable.
1853 (make_charset): Don't use `CHARSET_TYPE_*'.
1854 (range_charset_code_point): Support coded-charset
1856 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1857 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1858 `CHARSET_BY_ATTRIBUTES'.
1859 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1860 `CHARSET_BY_ATTRIBUTES'.
1861 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1862 (complex_vars_of_mule_charset): Add new coded-charset
1865 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1866 interface; changed to inline function.
1868 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1869 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1870 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1871 (CHARSET_TYPE_94): Deleted.
1872 (CHARSET_TYPE_94X94): Deleted.
1873 (CHARSET_TYPE_96): Deleted.
1874 (CHARSET_TYPE_96X96): Deleted.
1875 (CHARSET_TYPE_128): Deleted.
1876 (CHARSET_TYPE_128X128): Deleted.
1877 (CHARSET_TYPE_256): Deleted.
1878 (CHARSET_TYPE_256X256): Deleted.
1879 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1881 (DECODE_MOJIKYO_2022): New inline function.
1882 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1883 `Vcharset_mojikyo_2022_1'.
1885 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1887 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1889 (put_byte_table): Likewise.
1890 (char_id_table_equal): Use `get_byte_table' [new implementation].
1892 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1894 * mule-charset.c: Include <limits.h> in UTF-2000.
1895 (BT_UINT8_MIN): New macro in UTF-2000.
1896 (BT_UINT8_MAX): New macro in UTF-2000.
1897 (BT_UINT8_t): New macro in UTF-2000.
1898 (BT_UINT8_nil): New macro in UTF-2000.
1899 (BT_UINT8_unbound): New macro in UTF-2000.
1900 (INT_UINT8_P): New inline function in UTF-2000.
1901 (UINT8_VALUE_P): New inline function in UTF-2000.
1902 (UINT8_ENCODE): New inline function in UTF-2000.
1903 (UINT8_DECODE): New inline function in UTF-2000.
1904 (mark_uint8_byte_table): New function in UTF-2000.
1905 (print_uint8_byte_table): New function in UTF-2000.
1906 (uint8_byte_table_equal): New function in UTF-2000.
1907 (uint8_byte_table_hash): New function in UTF-2000.
1908 (make_uint8_byte_table): New function in UTF-2000.
1909 (uint8_byte_table_same_value_p): New function in UTF-2000.
1910 (BT_UINT16_MIN): New macro in UTF-2000.
1911 (BT_UINT16_MAX): New macro in UTF-2000.
1912 (BT_UINT16_t): New macro in UTF-2000.
1913 (BT_UINT16_nil): New macro in UTF-2000.
1914 (BT_UINT16_unbound): New macro in UTF-2000.
1915 (INT_UINT16_P): New inline function in UTF-2000.
1916 (UINT16_VALUE_P): New inline function in UTF-2000.
1917 (UINT16_ENCODE): New inline function in UTF-2000.
1918 (UINT16_DECODE): New inline function in UTF-2000.
1919 (UINT8_TO_UINT16): New inline function in UTF-2000.
1920 (mark_uint16_byte_table): New function in UTF-2000.
1921 (print_uint16_byte_table): New function in UTF-2000.
1922 (uint16_byte_table_equal): New function in UTF-2000.
1923 (uint16_byte_table_hash): New function in UTF-2000.
1924 (make_uint16_byte_table): New function in UTF-2000.
1925 (uint16_byte_table_same_value_p): New function in UTF-2000.
1926 (print_byte_table): New function in UTF-2000.
1927 (byte-table): Use `print_byte_table' as printer.
1928 (make_byte_table): Delete second argument `older'.
1929 (byte_table_same_value_p): New function in UTF-2000.
1930 (copy_byte_table): Deleted.
1931 (get_byte_table): New function in UTF-2000.
1932 (put_byte_table): New function in UTF-2000.
1933 (print_char_id_table): New function in UTF-2000.
1934 (char-id-table): Use `print_char_id_table' as printer.
1935 (make_char_id_table): Delete second argument `older'.
1936 (get_char_id_table): Use `get_byte_table [new implementation].
1937 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1939 (Ffind_char_attribute_table): New function in UTF-2000.
1940 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1941 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1942 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1943 (syms_of_mule_charset): Add new function
1944 `find-char-attribute-table' in UTF-2000.
1946 * lrecord.h (enum lrecord_type): Add
1947 `lrecord_type_uint16_byte_table' and
1948 `lrecord_type_uint8_byte_table'.
1950 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1951 (Lisp_Uint8_Byte_Table): New type.
1952 (XUINT8_BYTE_TABLE): New macro.
1953 (XSETUINT8_BYTE_TABLE): New macro.
1954 (UINT8_BYTE_TABLE_P): New macro.
1955 (GC_UINT8_BYTE_TABLE_P): New macro.
1956 (struct Lisp_Uint16_Byte_Table): New structure.
1957 (Lisp_Uint16_Byte_Table): New type.
1958 (XUINT16_BYTE_TABLE): New macro.
1959 (XSETUINT16_BYTE_TABLE): New macro.
1960 (UINT16_BYTE_TABLE_P): New macro.
1961 (GC_UINT16_BYTE_TABLE_P): New macro.
1963 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1965 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1966 (Vcharacter_ideographic_strokes_table): Deleted.
1967 (Vcharacter_total_strokes_table): Deleted.
1968 (Vcharacter_morohashi_daikanwa_table): Deleted.
1969 (Vcharacter_decomposition_table): Deleted.
1970 (Qname): Deleted because it is duplicated.
1971 (Qideographic_radical): Deleted.
1972 (Qideographic_strokes): Deleted.
1973 (Qtotal_strokes): Deleted.
1974 (Qmorohashi_daikanwa): Deleted.
1975 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1976 `ideographic-radical', `ideographic-strokes', `total-strokes',
1977 `morohashi-daikanwa' and `->decomposition'.
1978 (Fget_char_attribute): Likewise.
1979 (Fput_char_attribute): Likewise; use `make-vector' instead of
1980 `make_older_vector' for `->decomposition' value.
1981 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1982 `ideograph-daikanwa'.
1983 (syms_of_mule_charset): Delete builtin symbols `name',
1984 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1985 `morohashi-daikanwa'.
1986 (vars_of_mule_charset): Don't setup
1987 `Vcharacter_ideographic_radical_table',
1988 `Vcharacter_ideographic_strokes_table',
1989 `Vcharacter_total_strokes_table',
1990 `Vcharacter_morohashi_daikanwa_table' and
1991 `Vcharacter_decomposition_table'.
1993 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1995 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1996 `make_older_vector', `make_vector_newer_1' and
1997 `make_vector_newer'.
1999 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2000 `make_older_vector' and `make_vector_newer'.
2002 * config.h.in (HAVE_GGC): New macro.
2004 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2006 * mule-charset.c (struct char_attribute_list_closure): New
2007 structure in UTF-2000.
2008 (add_char_attribute_to_list_mapper): New function in UTF-2000.
2009 (Fchar_attribute_list): Likewise.
2010 (Fset_charset_mapping_table): Use `make_vector_newer'.
2011 (Fdecode_builtin_char): New function in UTF-2000.
2012 (syms_of_mule_charset): Add new function `char-attribute-list' and
2013 `decode-builtin-char' in UTF-2000.
2015 * lisp.h (make_vector_newer): New prototype.
2017 * alloc.c (make_vector_newer_1): New function.
2018 (make_vector_newer): New function.
2020 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2022 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2025 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2027 * mule-charset.c (Vchar_attribute_hash_table): New variable.
2028 (Vcharacter_attribute_table): Deleted.
2029 (Vcharacter_name_table): Deleted.
2030 (put_char_attribute): Deleted.
2031 (remove_char_attribute): Deleted.
2032 (struct char_attribute_alist_closure): New structure.
2033 (add_char_attribute_alist_mapper): New function.
2034 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2035 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2036 (Fget_char_attribute): Likewise.
2037 (Fput_char_attribute): Likewise.
2038 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2039 of `remove_char_attribute'.
2040 (Fdefine_char): Return character.
2041 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2042 and `Vcharacter_name_table'.
2043 (complex_vars_of_mule_charset): Likewise
2044 `Vchar_attribute_hash_table'.
2046 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2048 * character.h (CHARC_CHARSET): New macro.
2049 (CHARC_CHARSET_ID): New macro.
2050 (CHARC_CODE_POINT): New macro.
2051 (CHARC_COLUMNS): New macro.
2052 (CHARC_TO_CHAR): New inline function.
2053 (CHARC_EQ): New inline function.
2054 (CHARC_ASCII_EQ): New inline function.
2055 (CHARC_IS_SPACE): New inline function.
2056 (ASCII_TO_CHARC): New inline function.
2058 * char-ucs.h (encode_char_2): Deleted.
2059 (ENCODE_CHAR): Use `encode_char_1' again.
2060 (breakup_char_1): Likewise.
2061 (CHAR_TO_CHARC): New inline function.
2063 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2065 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2067 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2068 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2069 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2070 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2071 (create_string_text_block): Use `CHARC_ASCII_EQ' and
2073 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2075 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2077 (x_output_display_block): Use `CHARC_CHARSET' and
2080 * redisplay-tty.c (tty_output_display_block): Use
2082 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2084 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2086 * insdel.c (find_charsets_in_charc_string): Use
2088 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2089 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2090 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2091 (convert_charc_string_into_malloced_string): Likewise.
2093 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2095 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2096 instead of <Emchar_dynarr *> for buf; use
2097 `convert_bufbyte_string_into_charc_dynarr' instead of
2098 `convert_bufbyte_string_into_emchar_dynarr'; use
2099 `find_charsets_in_charc_string' instead of
2100 `find_charsets_in_emchar_string'.
2103 - Include "character.h".
2104 (struct rune): New member `cglyph'; delete member `chr'.
2106 * redisplay.c (redisplay_text_width_charc_string): New function;
2107 delete `redisplay_text_width_emchar_string'.
2108 (rtw_charc_dynarr): New variable; renamed from
2109 `rtw_emchar_dynarr'.
2110 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2111 `rtw_emchar_dynarr'; use
2112 `convert_bufbyte_string_into_charc_dynarr' instead of
2113 `convert_bufbyte_string_into_emchar_dynarr'; use
2114 `redisplay_text_width_charc_string' instead of
2115 `redisplay_text_width_emchar_string'.
2116 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2117 instead of `rtw_emchar_dynarr'; use
2118 `convert_bufbyte_string_into_charc_dynarr' instead of
2119 `convert_bufbyte_string_into_emchar_dynarr'.
2120 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2121 `redisplay_text_width_charc_string' instead of
2122 `redisplay_text_width_emchar_string'.
2123 (create_text_block): Modify for <struct rune> change.
2124 (generate_formatted_string_db): Likewise.
2125 (create_string_text_block): Likewise.
2126 (pixel_to_glyph_translation): Likewise.
2128 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2129 instead of <const Emchar *>.
2130 (x_text_width): Likewise.
2131 (x_output_display_block): Use <Charc_dynarr *> instead
2132 <Emchar_dynarr *>; modify for <structure rune> change.
2133 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2136 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2137 <const Emchar *>; use `charc_string_displayed_columns' instead of
2138 `emchar_string_displayed_columns'.
2139 (tty_output_display_block): Use <Charc_dynarr *> instead of
2140 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2141 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2142 (tty_output_charc_dynarr_dynarr): New variable; renamed from
2143 `tty_output_emchar_dynarr_dynarr'.
2144 (tty_output_charc_dynarr): New function; delete
2145 `tty_output_charc_dynarr'.
2147 * redisplay-output.c (compare_runes): Modify for `struct rune'.
2148 (redisplay_output_layout): Use <Charc_dynarr *> instead of
2149 <Emchar_dynarr *> for buf; use
2150 `convert_bufbyte_string_into_charc_dynarr' instead of
2151 `convert_bufbyte_string_into_emchar_dynarr'.
2153 * frame.c (title_string_charc_dynarr): New variable; renamed from
2154 `title_string_emchar_dynarr'.
2155 (generate_title_string): Use `title_string_charc_dynarr' instead
2156 of `title_string_emchar_dynarr'; use
2157 `convert_charc_string_into_malloced_string' instead of
2158 `convert_emchar_string_into_malloced_string'.
2159 (init_frame): Use `title_string_charc_dynarr' instead of
2160 `title_string_emchar_dynarr'.
2163 - Include "character.h".
2164 (struct console_methods): Use <const Charc *> instead of <const
2165 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2166 <Emchar_dynarr *> in output_string_method.
2168 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2171 * console-stream.c (stream_text_width): Use <const Charc *>
2172 instead of <const Emchar *>.
2174 * character.h (Charc_dynarr): New type.
2176 * char-ucs.h (structure Charc): New structure; define new type
2179 * char-lb.h (DECODE_CHAR): New inline function.
2180 (encode_char_1): New inline function.
2181 (ENCODE_CHAR): New macro.
2182 (structure Charc): New structure; define new type `Charc'.
2184 * char-1byte.h (Vcharset_control_1): New macro.
2185 (Vcharset_latin_iso8859_1): New macro.
2186 (DECODE_CHAR): New inline function.
2187 (encode_char_1): New inline function.
2188 (ENCODE_CHAR): New macro.
2189 (structure Charc): New structure; define new type `Charc'.
2191 * insdel.c (find_charsets_in_charc_string): New function; delete
2192 `find_charsets_in_emchar_string'.
2193 (charc_string_displayed_columns): New function; delete
2194 `emchar_string_displayed_columns'.
2195 (convert_bufbyte_string_into_charc_dynarr): New function; delete
2196 `convert_bufbyte_string_into_emchar_dynarr'.
2197 (convert_charc_string_into_bufbyte_dynarr): New function; delete
2198 `convert_charc_string_into_bufbyte_dynarr'.
2199 (convert_charc_string_into_malloced_string): New function; delete
2200 `convert_charc_string_into_malloced_string'.
2202 * buffer.h (find_charsets_in_charc_string): New prototype; delete
2203 `find_charsets_in_emchar_string'.
2204 (charc_string_displayed_columns): New prototype; delete
2205 `emchar_string_displayed_columns'.
2206 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2207 `convert_charc_string_into_bufbyte_dynarr'.
2208 (convert_charc_string_into_malloced_string): New prototype; delete
2209 `convert_charc_string_into_malloced_string'.
2211 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2213 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2215 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2217 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2219 * char-ucs.h: Use <short> for <Charset_ID>.
2221 * mule-charset.h, char-1byte.h: Use <unsigned char> for
2224 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2226 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2229 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2231 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2233 (Qmorohashi_daikanwa): New variable.
2234 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2235 for `morohashi-daikanwa' attribute.
2236 (Fget_char_attribute): Likewise.
2237 (Fput_char_attribute): Likewise.
2238 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2239 has the same value of `ideograph-daikanwa'.
2240 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2241 (vars_of_mule_charset): Setup
2242 `Vcharacter_morohashi_daikanwa_table'.
2244 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2246 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2248 (add_charset_to_list_mapper): Add `key' instead of
2249 `XCHARSET_NAME (value)' to return aliases.
2251 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2253 * mule-charset.c (Vcharacter_ideographic_radical_table): New
2255 (Vcharacter_ideographic_strokes_table): New variable.
2256 (Qideographic_radical): New variable.
2257 (Qideographic_strokes): New variable.
2258 (Fchar_attribute_alist): Use
2259 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2260 attribute; use `Vcharacter_ideographic_strokes_table' for
2261 `ideographic-strokes' attribute.
2262 (Fget_char_attribute): Likewise.
2263 (Fput_char_attribute): Likewise.
2264 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2265 `ideographic-strokes'.
2266 (vars_of_mule_charset): Setup
2267 `Vcharacter_ideographic_radical_table' and
2268 `Vcharacter_ideographic_strokes_table'.
2270 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2272 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2273 (Qtotal_strokes): New variable.
2274 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2275 `total-strokes' attribute.
2276 (Fget_char_attribute): Likewise.
2277 (Fput_char_attribute): Likewise.
2278 (syms_of_mule_charset): Add new symbol `total-strokes'.
2279 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2281 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2283 * mule-charset.c (Vcharacter_decomposition_table): New variable.
2284 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2286 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2287 `->decomposition' attribute.
2288 (Fput_char_attribute): Likewise.
2289 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2291 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2293 * mule-charset.c (decoding_table_check_elements): New function.
2294 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2296 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2298 * mule-charset.c (Fset_charset_mapping_table): Use
2299 `put_char_ccs_code_point'.
2301 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2303 * mule-charset.c (decoding_table_put_char): New inline function.
2304 (put_char_ccs_code_point): Use `decoding_table_put_char'.
2306 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2308 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2309 (XCHARSET_BYTE_SIZE): New macro.
2310 (decoding_table_remove_char): New inline function.
2311 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2312 `decoding_table_remove_char'.
2313 (remove_char_ccs): Use `decoding_table_remove_char'.
2314 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2316 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2318 * mule-charset.c (Vcharacter_name_table): New variable.
2319 (Qname): New variable.
2320 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2322 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2323 `Vcharacter_name_table' for `name' attribute.
2324 (Fremove_char_attribute): Use function `remove_char_ccs'.
2325 (put_char_ccs_code_point): New function.
2326 (remove_char_ccs): New function.
2327 (syms_of_mule_charset): Add new symbol `name'.
2328 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2330 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2332 * mule-charset.c (make_byte_table): Add new argument `older'.
2333 (make_char_id_table): Likewise.
2334 (copy_char_id_table): Comment out because it is not used.
2335 (put_char_id_table): Modify for `make_byte_table'.
2336 (Fput_char_attribute): Make encoding_table as older object;
2337 inherit older bit of `Vcharacter_composition_table'.
2338 (mark_charset): Don't mark `cs->encoding_table'.
2339 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2340 normal object; make `Vcharacter_composition_table' as an older
2341 object; delete staticpro for `Vcharacter_composition_table'; make
2342 `Vcharacter_variant_table' as a normal object.
2344 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2345 (mark_object): Don't check older object in UTF-2000.
2347 * lrecord.h (struct lrecord_header): Add new member `older' in
2349 (set_lheader_implementation): Setup `SLI_header->older' in
2351 (set_lheader_older_implementation): New macro in UTF-2000.
2352 (OLDER_RECORD_P): New macro in UTF-2000.
2353 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2354 (alloc_older_lcrecord): New prototype in UTF-2000.
2355 (alloc_older_lcrecord_type): New macro in UTF-2000.
2357 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2359 * mule-charset.c (byte_table_description): Use
2360 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2361 (char_id_table_description): Delete bogus `, 1'.
2362 (Fget_char_attribute): Refer encoding_table of each coded-charset
2363 to get value of coded-charset attribute of a character.
2364 (Fput_char_attribute): Use `make_older_vector' instead of
2365 `make_vector'; use encoding_table of each coded-charset to store
2366 value of coded-charset attribute of a character.
2367 (Fremove_char_attribute): Use encoding_table of each coded-charset
2368 to store value of coded-charset attribute of a character.
2369 (mark_charset): Mark `cs->encoding_table'; don't mark
2370 `cs->decoding_table'.
2371 (charset_description): Add description of new member
2373 (make_charset): Initialize `encoding_table'.
2375 * char-ucs.h (struct Lisp_Charset): Add new member
2377 (CHARSET_ENCODING_TABLE): New macro.
2378 (XCHARSET_ENCODING_TABLE): New macro.
2379 (charset_code_point): New implementation.
2380 (encode_char_1): Likewise.
2382 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2383 (disksave_object_finalization_1): Call finalizers of
2384 `all_older_lcrecords' in UTF-2000.
2385 (make_older_vector): New function in UTF-2000.
2386 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2389 * lisp.h (make_older_vector): New prototype in UTF-2000.
2391 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2393 * lrecord.h (enum lrecord_type): Rename
2394 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2396 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2397 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2398 `get_char_code_table'.
2400 * mule-charset.c (mark_char_id_table): Renamed from
2401 `mark_char_code_table'.
2402 (char_id_table_equal): Renamed from `char_code_table_equal'.
2403 (char_id_table_hash): Renamed from `char_code_table_hash'.
2404 (make_char_id_table): Renamed from `make_char_code_table'.
2405 (copy_char_id_table): Renamed from `copy_char_code_table'.
2406 (get_char_id_table): Renamed from `get_char_code_table'.
2407 (put_char_id_table): Renamed from `put_char_code_table'.
2408 (to_char_id): Renamed from `to_char_code'.
2410 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2411 `Lisp_Char_Code_Table'.
2412 (char_id_table): Renamed from `char_code_table'.
2413 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2414 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2415 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2416 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2417 (get_char_id_table): Renamed from `get_char_code_table'.
2419 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2421 * lrecord.h (enum lrecord_type): Rename
2422 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2424 * mule-charset.c (mark_byte_table): Renamed from
2425 `mark_char_byte_table'.
2426 (byte_table_equal): Renamed from `char_byte_table_equal'.
2427 (byte_table_hash): Renamed from `byte_table_hash'.
2428 (make_byte_table): Renamed from `make_byte_table'.
2429 (copy_byte_table): Renamed from `copy_char_byte_table'.
2431 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2432 `Lisp_Char_Byte_Table'.
2433 (byte_table): Renamed from `char_byte_table'.
2434 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2435 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2436 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2437 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2439 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2441 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2442 (dfc_convert_to_internal_format): Likewise.
2444 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2445 * text-coding.c (Fcoding_system_alias_p): New function.
2446 * text-coding.c (Fcoding_system_aliasee): New function.
2447 * text-coding.c (append_suffix_to_symbol): New function.
2448 * text-coding.c (dangling_coding_system_alias_p): New function.
2449 * text-coding.c (Ffind_coding_system):
2450 * text-coding.c (Fcopy_coding_system):
2451 * text-coding.c (encode_coding_no_conversion):
2452 * text-coding.c (syms_of_file_coding):
2453 * text-coding.c (vars_of_file_coding):
2454 Rewrite coding system alias code.
2455 Allow nested aliases, like symbolic links.
2456 Allow redefinition of coding system aliases.
2457 Prevent existence of dangling coding system aliases.
2458 Eliminate convert_to_external_format.
2459 Eliminate convert_to_internal_format.
2461 * text-coding.c: Change enum eol_type to eol_type_t.
2463 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2465 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2466 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2468 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2469 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2471 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2473 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2474 `ideograph-daikanwa'.
2476 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2477 (Vcharset_ucs_bmp): Likewise.
2478 (Vcharset_mojikyo): Add new extern variable definition.
2479 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2480 (Vcharset_latin_iso8859_3): Likewise.
2481 (Vcharset_latin_iso8859_4): Likewise.
2482 (Vcharset_latin_iso8859_9): Likewise.
2483 (Vcharset_latin_viscii_lower): Likewise.
2484 (Vcharset_latin_viscii_upper): Likewise.
2485 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2486 `mojikyo' code-point is used to decode.
2487 (encode_char_2): New function [to convert `mojikyo' code-point to
2488 Mojikyo font encoding].
2489 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2490 (breakup_char_1): Likewise.
2491 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2493 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2495 * text-coding.c (Fmake_coding_system): Add document about
2496 `disable-composition' property.
2498 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2500 * text-coding.c (Qdisable_composition): New variable; delete
2502 (Fmake_coding_system): Add new property `disable-composite';
2503 delete property `composite'.
2504 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2505 instead of `!CODING_SYSTEM_COMPOSITE'.
2506 (syms_of_file_coding): Add new symbol `disable-composition';
2507 delete symbol `composite'.
2509 * file-coding.h (struct Lisp_Coding_System): Add
2510 `disable_composition'; delete `enable_composition'.
2511 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2512 `CODING_SYSTEM_COMPOSITE'.
2513 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2514 `XCODING_SYSTEM_COMPOSITE'.
2516 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2518 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2521 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2523 * text-coding.c (Qcomposite): New variable.
2524 (Fmake_coding_system): Add new property `composite'.
2525 (struct decoding_stream): Add `combined_char_count',
2526 `combined_chars' and `combining_table' in UTF-2000.
2527 (COMPOSE_FLUSH_CHARS): New macro.
2528 (COMPOSE_ADD_CHAR): New macro.
2529 (reset_decoding_stream): Reset `str->combined_char_count' and
2530 `str->combining_table' in UTF-2000.
2531 (decode_coding_iso2022): Modify for character-decomposition.
2532 (syms_of_file_coding): Add new symbol `composite'.
2534 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2536 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2537 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2538 of `Vcharacter_composition_table' if `->decomposition' property
2540 (Qlatin_tcvn5712): New variable.
2541 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2542 (complex_vars_of_mule_charset): Add new coded-charset
2545 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2547 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2549 * file-coding.h (struct Lisp_Coding_System): Add
2550 `enable_composition'.
2551 (CODING_SYSTEM_COMPOSITE): New macro.
2552 (XCODING_SYSTEM_COMPOSITE): New macro.
2554 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2556 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2558 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2560 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2561 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2563 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2565 * mule-charset.c (Vcharset_mojikyo): New variable.
2566 (Fdefine_char): Don't use coded-charset which does not have
2567 non-builtin character range to allocate character-id.
2568 (Qmojikyo): New variable.
2569 (syms_of_mule_charset): Add new symbol `mojikyo'.
2570 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2572 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2573 (LEADING_BYTE_MOJIKYO): New macro.
2574 (MIN_CHAR_MOJIKYO): New macro.
2575 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2576 (MAX_CHAR_MOJIKYO): New macro.
2578 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2580 * mule-charset.c (remove_char_attribute): Fixed.
2582 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2584 * mule-charset.c (remove_char_attribute): New function.
2585 (Fremove_char_attribute): New function.
2586 (encode_builtin_char_1): Comment out builtin-support for
2587 greek-iso8859-7 and cyrillic-iso8859-5.
2588 (Fdecode_char): Check `code' is an integer.
2589 (syms_of_mule_charset): Add `remove-char-attribute'.
2590 (MIN_CHAR_GREEK): Deleted.
2591 (MAX_CHAR_GREEK): Likewise.
2592 (MIN_CHAR_CYRILLIC): Likewise.
2593 (MAX_CHAR_CYRILLIC): Likewise.
2594 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2595 MAX_CHAR_GREEK for `greek-iso8859-7'.
2597 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2598 (MAX_CHAR_GREEK): Likewise.
2599 (MIN_CHAR_CYRILLIC): Likewise.
2600 (MAX_CHAR_CYRILLIC): Likewise.
2602 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2604 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2605 format is used without `ucs' property.
2606 (Fdecode_char): Fix problem with GR representation.
2607 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2608 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2610 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2612 * mule-charset.c (make_builtin_char): New function.
2613 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2614 (Fset_charset_mapping_table): Modify for new representation of
2616 (Fdecode_char): New function.
2617 (syms_of_mule_charset): Add new builtin function `decode-char' in
2620 * char-ucs.h (make_builtin_char): New prototype.
2621 (DECODE_CHAR): New inline function.
2622 (MAKE_CHAR): Use `DECODE_CHAR'.
2624 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2626 * text-coding.c (parse_charset_conversion_specs): Use
2627 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2629 (iso2022_designate): Likewise.
2631 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2632 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2634 * mule-charset.c (Vcharset_ucs): New variable.
2635 (print_charset): Change design; use `CHARSET_CHARS' and
2636 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2637 (make_charset): Change signature to specify `chars' and
2638 `dimension' instead of `type'.
2639 (range_charset_code_point): Modify for 256^n-set.
2640 (encode_builtin_char_1): Encode as `ucs' in default.
2641 (Fmake_charset): Modify for `make_charset'.
2642 (Fmake_reverse_direction_charset): Likewise.
2643 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2645 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2648 * char-ucs.h (Vcharset_ucs): New variable.
2649 (LEADING_BYTE_UCS): New macro.
2650 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2651 and `chars' to `unsigned short' from `unsigned int'.
2652 (CHARSET_TYPE): Deleted.
2653 (XCHARSET_TYPE): Deleted.
2655 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2657 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2659 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2660 (ENCODE_CHAR): New macro.
2662 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2664 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2665 to 0.14 (Kawachi-Katakami).
2667 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2669 * text-coding.c (char_encode_shift_jis): Modify for
2670 `charset_code_point'.
2671 (char_encode_iso2022): Likewise.
2673 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2674 (integer) instead of list of <Lisp_Object>s (integers) as the
2675 format of code-point of a coded-charset.
2676 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2677 (encode_builtin_char_1): New function; delete
2678 `split_builtin_char'.
2679 (charset_code_point): Return <int> instead of <Lisp_Object>.
2680 (Fsplit_char): Don't use `SPLIT_CHAR'.
2682 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2683 prototype for `split_builtin_char'.
2684 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2685 (charset_code_point): Likewise.
2686 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2687 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2689 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2691 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2692 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2694 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2696 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2698 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2699 (MAX_CHAR_OBS_94x94): Deleted.
2701 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2703 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2705 * char-ucs.h (MAX_CHAR_BMP): New macro.
2707 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2709 * text-coding.c: Sync with r21-2-24.
2711 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2713 * file-coding.c: Modify for UTF-2000.
2715 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2717 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2720 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2722 * mule-charset.c (split_builtin_char): Delete builtin support for
2723 `katakana-jisx0201'.
2724 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2725 BMP area in builtin representation.
2727 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2728 `Vcharset_katakana_jisx0201'.
2730 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2732 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2733 (Qisolated): New variable.
2734 (Qinitial): New variable.
2735 (Qmedial): New variable.
2736 (Qfinal): New variable.
2737 (Qvertical): New variable.
2738 (Qsmall): New variable.
2739 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2740 `Qvertical' and `Qsmall'.
2741 (Qmojikyo_pj_[1 .. 21]): New variable.
2742 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2743 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2744 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2747 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2749 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2750 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2751 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2753 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2755 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2756 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2758 (Qjapanese_jisx0208_1990): New variable.
2759 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2760 (complex_vars_of_mule_charset): Add new coded-charset
2761 `japanese-jisx0208-1990'.
2763 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2764 (MIN_CHAR_JIS_X0208_1990): New macro.
2765 (MAX_CHAR_JIS_X0208_1990): New macro.
2767 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2769 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2770 coded-charset is not found.
2772 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2774 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2775 (Fdefine_char): Use `Fmake_char'.
2777 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2779 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2780 (Vcharset_hiragana_jisx0208): Deleted.
2781 (Vcharset_katakana_jisx0208): Deleted.
2782 (Qideograph_daikanwa): New variable.
2783 (Qhiragana_jisx0208): Deleted.
2784 (Qkatakana_jisx0208): Deleted.
2785 (split_builtin_char): Split `ideograph-daikanwa'.
2786 (Fsplit_char): New implementation for UTF-2000.
2787 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2788 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2789 (complex_vars_of_mule_charset): Add new coded-charset
2790 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2791 `katakana-jisx0208'.
2793 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2794 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2795 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2796 (MIN_CHAR_DAIKANWA): New macro.
2797 (MAX_CHAR_DAIKANWA): New macro.
2799 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2801 * data.c (Fstring_to_number): Don't recognize floating point if
2804 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2806 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2808 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2810 * mule-charset.c (Qsquare): New variable.
2811 (to_char_code): Add `Qsquare'.
2812 (syms_of_mule_charset): Add new symbol `square'.
2814 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2816 * mule-charset.c (Qcircle): New variable.
2817 (to_char_code): Add `Qcircle'.
2818 (syms_of_mule_charset): Add new symbol `circle'.
2820 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2822 * mule-charset.c (Qfont): New variable.
2823 (to_char_code): Add `Qfont'.
2824 (syms_of_mule_charset): Add new symbol `font'.
2826 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2828 * mule-charset.c (Qsub): New variable.
2829 (to_char_code): Add `Qsub'.
2830 (syms_of_mule_charset): Add new symbol `sub'.
2832 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2834 * mule-charset.c (Fput_char_attribute): Convert each element of
2835 VALUE to GL position if ATTRIBUTE is a GR-set,
2837 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2839 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2840 coded-charset is a GR-set.
2842 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2844 * mule-charset.c (Fput_char_attribute): Check each element of
2845 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2847 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2849 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2851 (Qethiopic_ucs): New variable in UTF-2000.
2852 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2853 (complex_vars_of_mule_charset): Add new coded-charset
2854 `ethiopic-ucs' in UTF-2000.
2856 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2857 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2859 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2861 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2863 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2865 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2868 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2870 * mule-charset.c (Vcharacter_variant_table): New variable.
2871 (Q_ucs): New variable.
2872 (Fchar_variants): New function.
2873 (Fput_char_attribute): Register `->ucs' value to
2874 `Vcharacter_variant_table'.
2875 (syms_of_mule_charset): Add new function `char-variants' and new
2877 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2879 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2881 * mule-charset.c (get_char_code_table): Allow negative character
2883 (put_char_code_table): Likewise.
2884 (Vcharacter_composition_table): New variable.
2885 (Q_decomposition): New variable.
2886 (Qwide): New variable.
2887 (Qnarrow): New variable.
2888 (Qcompat): New variable.
2889 (QnoBreak): New variable.
2890 (Qsuper): New variable.
2891 (Qfraction): New variable.
2892 (to_char_code): New function.
2893 (Fget_composite_char): New function.
2894 (Fput_char_attribute): Register `->decomposition' value to
2895 `Vcharacter_composition_table'.
2896 (syms_of_mule_charset): Add new function `get-composite-char', new
2897 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2898 `super' and `fraction'.
2899 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2901 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2903 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2904 character; copy the return value.
2906 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2908 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2910 * mule-charset.c (range_charset_code_point): Must use make_int.
2911 (split_builtin_char): New function.
2913 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2915 * mule-charset.c (char_byte_table): Change name from
2916 "char-code-table" to "char-byte-table".
2917 (mark_char_code_table): New function.
2918 (char_code_table_equal): New function.
2919 (char_code_table_hash): New function.
2920 (char_code_table_description): New constant.
2921 (char_code_table): New type.
2922 (make_char_code_table): New function.
2923 (copy_char_code_table): New function.
2924 (get_char_code_table): Modify for `char_code_table' type.
2925 (put_char_code_table): Likewise.
2926 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2929 * char-ucs.h (char_code_table): New type.
2930 (XCHAR_CODE_TABLE): New macro.
2931 (XSETCHAR_CODE_TABLE): New macro.
2932 (CHAR_CODE_TABLE_P): New macro.
2933 (GC_CHAR_CODE_TABLE_P): New macro.
2934 (struct Lisp_Char_Code_Table): New structure.
2936 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2938 * mule-charset.c (Fmake_charset): Setup byte_offset for
2941 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2943 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2946 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2948 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2951 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2953 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2954 charset, it is regarded as a charset.
2955 (put_char_attribute): New function in UTF-2000.
2956 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2957 charset, mapping-table of the charset is modified.
2958 (Fdefine_char): New function in UTF-2000.
2959 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2960 `Fput_char_attribute'.
2961 (syms_of_mule_charset): Add new function `define-char' and new
2962 symbol `ucs' in UTF-2000.
2963 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2965 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2967 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2968 non-UTF-2000 configuration.
2970 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2972 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2973 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2975 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2977 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2978 (Fset_charset_mapping_table): Likewise.
2980 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2981 (CHARSET_ENCODING_TABLE): Delete.
2982 (XCHARSET_ENCODING_TABLE): Delete.
2983 (charset_code_point): New interface.
2985 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2987 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2988 instead of `charset_get_byte1' and `charset_get_byte2'.
2990 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2991 (charset_get_byte2): Deleted.
2993 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2995 * char-ucs.h (SPLIT_CHAR): New inline function.
2996 (breakup_char_1): Use `SPLIT_CHAR'.
2998 * mule-charset.c (range_charset_code_point): New function.
2999 (charset_code_point): New function.
3001 * char-ucs.h (range_charset_code_point): New interface.
3002 (breakup_char_1): Use `range_charset_code_point'.
3004 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3006 * mule-charset.c (Fmake_charset): Delete unused local variable
3009 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3010 (breakup_char_1): Find a charset and code-point in
3011 `Vcharacter_attribute_table'.
3013 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3015 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3018 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3020 * mule-charset.c (Vcharacter_attribute_table): New variable.
3021 (Fchar_attribute_alist): New function.
3022 (Fget_char_attribute): New function.
3023 (Fput_char_attribute): New function.
3024 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3026 (syms_of_mule_charset): Add new function `char-attribute-alist',
3027 `get-char-attribute' and `put-char-attribute'.
3028 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3030 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
3032 * mule-charset.c (Fmake_charset): Just use
3033 `get_unallocated_leading_byte'.
3035 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3036 sets; don't use final-byte based number for private sets.
3038 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3040 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3043 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3045 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3048 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3050 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3051 of `CHAR_LEADING_BYTE' in UTF-2000.
3053 * insdel.c (find_charsets_in_bufbyte_string): Use
3054 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3055 (find_charsets_in_emchar_string): Likewise.
3057 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3058 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3060 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3061 (CHAR_CHARSET_ID): New macro.
3063 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3065 * chartab.c (get_char_table): Don't use type `Charset_ID' for
3066 charset-id - MIN_LEADING_BYTE.
3067 (put_char_table): Likewise.
3069 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3071 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3072 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3073 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3074 (CHARSET_ID_OFFSET): New macro.
3075 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3076 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3077 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3078 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3080 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3082 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3083 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3084 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3085 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3086 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3088 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3090 * mule-charset.c (next_allocated_leading_byte): New variable in
3092 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3093 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3094 (get_unallocated_leading_byte): Simply use
3095 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3096 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3099 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3100 (MAX_LEADING_BYTE_PRIVATE): New macro.
3101 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3102 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3104 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3106 * mule-charset.c (Fmake_charset): Allocate final-byte based
3107 charset-id for 94-set, 96-set and 94x94-set.
3109 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3111 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3113 (Fmake_charset): Likewise.
3114 (complex_vars_of_mule_charset): Modify the font registry of
3115 `ucs-bmp' not to match `Ethiopic-Unicode'.
3117 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3119 * mule-charset.c (complex_vars_of_mule_charset): Add font
3120 registory of `ucs-bmp'.
3122 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3124 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3125 coded-charsets in `default-coded-charset-priority-list' when
3126 breaking up a character.
3128 * mule-charset.c (Vcharset_latin_viscii): New variable.
3129 (Qlatin_viscii): New variable.
3130 (make_charset): Don't use `decoding_table'.
3131 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3133 (Fset_charset_mapping_table): New implementation.
3134 (syms_of_mule_charset): Add new symbol `latin-viscii'.
3135 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3136 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3137 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3138 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3139 charset `latin_viscii'.
3141 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3142 (CHARSET_TYPE_94X94): Change to 1 from 2.
3143 (CHARSET_TYPE_96): Change to 2 from 1.
3144 (CHARSET_TYPE_128): New macro.
3145 (CHARSET_TYPE_128X128): Change to 5 from 4.
3146 (CHARSET_TYPE_256): New macro.
3147 (CHARSET_TYPE_256X256): Change to 7 from 5.
3148 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3150 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3152 * text-coding.c (char_encode_shift_jis): Refer
3153 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3154 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3156 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3157 (char_byte_table_equal): New function in UTF-2000.
3158 (char_byte_table_hash): New function in UTF-2000.
3159 (char_byte_table_description): New constant in UTF-2000.
3160 (char_byte_table): New type in UTF-2000.
3161 (make_char_byte_table): New function in UTF-2000.
3162 (copy_char_byte_table): New function in UTF-2000.
3163 (make_char_code_table): New macro in UTF-2000.
3164 (get_char_code_table): New function in UTF-2000.
3165 (put_char_code_table): New function in UTF-2000.
3166 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3167 (charset_description): Add setting in UTF-2000.
3168 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3169 `CHARSET_TO_BYTE1_TABLE(cs)'.
3170 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3171 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3172 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3173 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3174 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3175 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3176 `CHARSET_TO_BYTE2_TABLE(cs)'.
3178 * char-ucs.h (char_byte_table): New type.
3179 (XCHAR_BYTE_TABLE): New macro.
3180 (XSETCHAR_BYTE_TABLE): New macro.
3181 (CHAR_BYTE_TABLE_P): New macro.
3182 (GC_CHAR_BYTE_TABLE_P): New macro.
3183 (struct Lisp_Char_Byte_Table): New structure.
3184 (get_char_code_table): New interface.
3185 (Emchar_to_byte_table): Deleted.
3186 (get_byte_from_character_table): Deleted.
3187 (struct Lisp_Charset): Add `encoding_table'; delete
3188 `to_byte1_table' and `to_byte2_table'.
3189 (CHARSET_ENCODING_TABLE): New macro.
3190 (CHARSET_TO_BYTE1_TABLE): Deleted.
3191 (CHARSET_TO_BYTE2_TABLE): Deleted.
3192 (XCHARSET_ENCODING_TABLE): New macro.
3193 (XCHARSET_TO_BYTE1_TABLE): Deleted.
3194 (XCHARSET_TO_BYTE2_TABLE): Deleted.
3196 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3198 * mule-charset.c (syms_of_mule_charset): Delete charset alias
3199 `vietnamese-viscii-*'.
3201 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3203 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3204 (Qvietnamese_viscii_upper): New variable.
3205 (Fdefine_charset_alias): New function.
3206 (syms_of_mule_charset): Add new function `define-charset-alias'.
3207 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3208 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3211 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
3213 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3214 (MAX_CHAR_OBS_94x94): New macro.
3215 (breakup_char_1): Support obsolete XEmacs-UCS private code space
3218 * mule-charset.c (put_byte_from_character_table): Change unit size
3220 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3222 (Fmake_reverse_direction_charset): Modify dummy argument of
3223 `make_charset' for non-UTF-2000 environment.
3225 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3227 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3229 * mule-charset.c (destroy_byte_from_character_table): New macro.
3230 (latin_jisx0201_to_ucs): Deleted.
3231 (latin_iso8859_2_to_ucs): Deleted.
3232 (latin_iso8859_3_to_ucs): Deleted.
3233 (latin_iso8859_4_to_ucs): Deleted.
3234 (latin_iso8859_9_to_ucs): Deleted.
3235 (latin_viscii_lower_to_ucs): Deleted.
3236 (latin_viscii_upper_to_ucs): Deleted.
3237 (mark_charset): Mark `cs->decoding_table'.
3238 (Fcharset_mapping_table): Fix DOC-string.
3239 (Fset_charset_mapping_table): New function.
3240 (syms_of_mule_charset): Add nwe function
3241 `set-charset-mapping-table'.
3242 (complex_vars_of_mule_charset): Don't setup and use
3245 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
3247 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3250 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
3252 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3253 (Vcharset_katakana_jisx0208): New variable.
3254 (Qhiragana_jisx0208): New variable.
3255 (Qkatakana_jisx0208): New variable.
3256 (make_charset): Add new argument `byte_offset'.
3257 (charset_get_byte1): Modify for new coded-charset definition; use
3258 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3259 `XCHARSET_BYTE_OFFSET'.
3260 (Fmake_charset): Modify for `make_charset'.
3261 (Fmake_reverse_direction_charset): Likewise.
3262 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3263 `katakana-jisx0208'.
3264 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3265 `.' in font registry of charset `katakana-jisx0201',
3266 `latin-jisx0201', `vietnamese-viscii-lower' and
3267 `vietnamese-viscii-upper'; modify DOC-string of charset
3268 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3269 registry of charset `japanese-jisx0208' not to use font for JIS
3270 X0208:1990; add new charset `hiragana-jisx0208' and
3271 `katakana-jisx0208'.
3273 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3274 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3275 (struct Lisp_Charset): Add `byte_offset'.
3276 (CHARSET_BYTE_OFFSET): New macro.
3277 (XCHARSET_UCS_MIN): New macro.
3278 (XCHARSET_UCS_MAX): New macro.
3279 (XCHARSET_CODE_OFFSET): New macro.
3280 (XCHARSET_BYTE_OFFSET): New macro.
3281 (MIN_CHAR_HIRAGANA): New macro.
3282 (MAX_CHAR_HIRAGANA): New macro.
3283 (MIN_CHAR_KATAKANA): New macro.
3284 (MAX_CHAR_KATAKANA): New macro.
3285 (MAKE_CHAR): Modify for new coded-charset definition; use
3286 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3287 `XCHARSET_BYTE_OFFSET'.
3289 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3291 * mule-charset.c (CHAR96): Deleted.
3292 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3294 (latin_iso8859_2_to_ucs): Likewise.
3295 (latin_iso8859_3_to_ucs): Likewise.
3296 (latin_iso8859_4_to_ucs): Likewise.
3297 (latin_iso8859_9_to_ucs): Likewise.
3298 (latin_viscii_lower_to_ucs): Likewise.
3299 (latin_viscii_upper_to_ucs): Likewise.
3300 (latin_tcvn5712_to_ucs): Commented out.
3301 (make_charset): Change type of argument `decoding_table' from
3302 <Emchar*> to <Lisp_Object> [vector of characters].
3303 (Fmake_charset): Modify for `make_charset'.
3304 (Fmake_reverse_direction_charset): Likewise.
3305 (Fcharset_mapping_table): New function in UTF-2000.
3306 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3308 (complex_vars_of_mule_charset): Modify for type change of
3309 `*_to_ucs'; modify for `make_charset'.
3311 * char-ucs.h (struct Lisp_Charset): Change type of
3312 `decoding_table' from <Emchar*> to <Lisp_Object>.
3313 (MAKE_CHAR): Modify for new specification of `decoding_table'.
3315 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3317 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3318 error with non-UTF-2000-Mule.
3320 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
3322 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3324 (Vcharset_chinese_cns11643_4): Likewise.
3325 (Vcharset_chinese_cns11643_5): Likewise.
3326 (Vcharset_chinese_cns11643_6): Likewise.
3327 (Vcharset_chinese_cns11643_7): Likewise.
3328 (Qchinese_cns11643_3): Likewise.
3329 (Qchinese_cns11643_4): Likewise.
3330 (Qchinese_cns11643_5): Likewise.
3331 (Qchinese_cns11643_6): Likewise.
3332 (Qchinese_cns11643_7): Likewise.
3333 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3334 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3335 and `chinese-cns11643-7' to lisp/mule/chinese.el.
3336 (complex_vars_of_mule_charset): Likewise.
3338 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3340 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3342 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3343 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3345 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3347 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3349 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3350 (breakup_char_1): Likewise.
3352 * text-coding.c (char_encode_iso2022): Keep designated charsets if
3353 one of them includes the specified character.
3355 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3357 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3359 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3361 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3363 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3365 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3366 definition for non-UTF-2000 Mule.
3367 (latin_iso8859_3_to_ucs): Likewise.
3368 (latin_iso8859_4_to_ucs): Likewise.
3369 (latin_iso8859_9_to_ucs): Likewise.
3370 (latin_jisx0201_to_ucs): Likewise.
3371 (MIN_CHAR_THAI): Likewise.
3372 (MAX_CHAR_THAI): Likewise.
3373 (MIN_CHAR_GREEK): Likewise.
3374 (MAX_CHAR_GREEK): Likewise.
3375 (MIN_CHAR_HEBREW): Likewise.
3376 (MAX_CHAR_HEBREW): Likewise.
3377 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3378 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3379 (MIN_CHAR_CYRILLIC): Likewise.
3380 (MAX_CHAR_CYRILLIC): Likewise.
3382 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3384 * char-ucs.h (breakup_char_1): Use
3385 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3386 thai-tis620 and katakana-jisx0201 area.
3388 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3390 * char-ucs.h (breakup_char_1): Use
3391 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3394 * text-coding.c (reset_encoding_stream): Fixed.
3395 (char_encode_ucs4): Delete `& 255'.
3397 * char-ucs.h (breakup_char_1): Use
3398 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3400 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3402 * file-coding.c (Fmake_coding_system): Don't set up
3403 `codesys->fixed.size'.
3404 (encode_coding_no_conversion): Don't refer
3405 `str->codesys->fixed.size'.
3407 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3409 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3410 (latin_a_char_to_byte1): Deleted.
3411 (latin_a_char_to_byte2): Deleted.
3413 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3415 * mule-charset.c (make_charset): Add new argument `ucs_min',
3416 `ucs_max' and `code_offset'.
3417 (charset_get_byte1): New implementation [delete specific charset
3418 depended implementations].
3419 (Fmake_charset): Modify for `make_charset'.
3420 (Fmake_reverse_direction_charset): Likewise.
3421 (complex_vars_of_mule_charset): Likewise.
3423 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3425 (CHARSET_UCS_MIN): New macro.
3426 (CHARSET_UCS_MAX): New macro.
3427 (CHARSET_CODE_OFFSET): New macro.
3428 (MAKE_CHAR): Delete charset depended definitions [except
3431 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3433 * char-ucs.h (breakup_char_1): Use
3434 `Vdefault_coded_charset_priority_list' for C0-Controls,
3435 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3437 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3439 * char-ucs.h (charset_get_byte1): New function.
3440 (XCHARSET_GET_BYTE1): Deleted.
3441 (charset_get_byte2): New function.
3442 (XCHARSET_GET_BYTE2): Deleted.
3443 (Vdefault_coded_charset_priority_list): New external variable.
3444 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3445 `Vdefault_preferred_coded_charset_list'.
3447 * mule-charset.c (charset_get_byte1): New function.
3448 (charset_get_byte2): New function.
3449 (Vdefault_coded_charset_priority_list): New variable.
3450 (vars_of_mule_charset): Add new variable
3451 `default-coded-charset-priority-list'.
3453 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3455 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3456 (XCHARSET_GET_BYTE2): New inline function.
3457 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3458 `XCHARSET_GET_BYTE2'.
3460 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3462 * mule-charset.c (make_charset): Initialize
3463 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3464 NULL if table is not defined.
3466 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3468 * text-coding.c (char_encode_shift_jis): Use
3469 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3470 `ucs_to_latin_jisx0201'.
3472 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3473 (ucs_to_latin_iso8859_2): Deleted.
3474 (ucs_to_latin_iso8859_3): Deleted.
3475 (ucs_to_latin_iso8859_4): Deleted.
3476 (ucs_to_latin_iso8859_9): Deleted.
3477 (ucs_to_latin_viscii_lower): Deleted.
3478 (ucs_to_latin_viscii_upper): Deleted.
3479 (ucs_to_latin_tcvn5712): Deleted.
3480 (make_charset): Add new argument `decoding_table'; set up
3481 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3482 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3483 `decoding_table' is defined in UTF-2000.
3484 (Fmake_charset): Modify for `make_charset'.
3485 (Fmake_reverse_direction_charset): Likewise.
3486 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3487 and `GENERATE_96_SET'.
3489 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3490 (ucs_to_latin_jisx0201): Deleted.
3491 (latin_iso8859_2_to_ucs): Deleted.
3492 (ucs_to_latin_iso8859_2): Deleted.
3493 (latin_iso8859_3_to_ucs): Deleted.
3494 (ucs_to_latin_iso8859_3): Deleted.
3495 (latin_iso8859_4_to_ucs): Deleted.
3496 (ucs_to_latin_iso8859_4): Deleted.
3497 (latin_iso8859_9_to_ucs): Deleted.
3498 (ucs_to_latin_iso8859_9): Deleted.
3499 (latin_viscii_lower_to_ucs): Deleted.
3500 (ucs_to_latin_viscii_lower): Deleted.
3501 (latin_viscii_upper_to_ucs): Deleted.
3502 (ucs_to_latin_viscii_upper): Deleted.
3503 (struct Lisp_Charset): Renamed `encoding_table' to
3504 `to_byte1_table'; add `to_byte2_table'.
3505 (CHARSET_DECODING_TABLE): New macro.
3506 (CHARSET_TO_BYTE1_TABLE): New macro.
3507 (CHARSET_TO_BYTE2_TABLE): New macro.
3508 (XCHARSET_DECODING_TABLE): New macro.
3509 (XCHARSET_TO_BYTE1_TABLE): New macro.
3510 (XCHARSET_TO_BYTE2_TABLE): New macro.
3511 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3513 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3514 don't use `ucs_to_*' tables.
3516 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3518 * text-coding.c (Fmake_coding_system): Don't set up
3519 `codesys->fixed.size'.
3520 (encode_coding_no_conversion): Use `if' instead of `switch'.
3522 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3524 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3526 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3527 (Fmake_charset): Modify for `make_charset'.
3528 (Fmake_reverse_direction_charset): Likewise.
3529 (complex_vars_of_mule_charset): Likewise.
3531 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3533 * text-coding.c (char_encode_shift_jis): Use table
3534 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3536 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3538 * text-coding.c (text_encode_generic): Use `if' instead of
3540 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3543 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3545 * text-coding.c (encode_coding_sjis): Deleted.
3546 (char_encode_shift_jis): New function.
3547 (char_finish_shift_jis): New function.
3548 (reset_encoding_stream): Set up `encode_char' and `finish' for
3549 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3550 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3551 (char_encode_utf8): Treat `eol_type'.
3553 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3555 * file-coding.c (decode_coding_iso2022): Use
3556 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3558 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3560 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3563 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3565 * char-lb.h (CHAR_COLUMNS): New macro.
3567 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3569 * text-coding.c (char_encode_ucs4): New function.
3570 (char_finish_ucs4): New function.
3571 (encode_coding_ucs4): Deleted.
3572 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3573 (text_encode_generic): Delete local variable `charset' and `half'.
3574 (ucs_to_mule_table): Deleted.
3575 (mule_to_ucs_table): Deleted.
3576 (Fset_ucs_char): Deleted.
3577 (ucs_to_char): Deleted.
3578 (Fucs_char): Deleted.
3579 (Fset_char_ucs): Deleted.
3580 (Fchar_ucs): Deleted.
3581 (decode_ucs4): Deleted.
3582 (mule_char_to_ucs4): Deleted.
3583 (encode_ucs4): Deleted.
3584 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3585 (decode_coding_utf8): Likewise.
3586 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3587 (char_encode_iso2022): Fixed.
3588 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3589 `Fset_char_ucs' and `Fchar_ucs'.
3590 (complex_vars_of_file_coding): Don't initialize
3591 `ucs_to_mule_table'.
3593 * objects-tty.c (tty_initialize_font_instance): Don't use
3596 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3599 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3600 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3602 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3603 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3604 (emchar_string_displayed_columns): Likewise.
3606 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3607 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3608 (string_column_at_point): Likewise.
3609 (Fmove_to_column): Likewise.
3611 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3612 `encoding_table' and `decoding_table'.
3613 (CHARSET_REP_BYTES): Deleted.
3614 (XCHARSET_REP_BYTES): Deleted.
3615 (XCHARSET_COLUMNS): Deleted.
3616 (CHAR_COLUMNS): New macro.
3617 (lookup_composite_char): Deleted unconditionally.
3618 (composite_char_string): Likewise.
3620 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3622 * char-ucs.h (Emchar_to_byte_table): New type.
3623 (get_byte_from_character_table): New function interface.
3624 (Vcharset_latin_jisx0201): New variable.
3625 (latin_jisx0201_to_ucs): New variable.
3626 (ucs_to_latin_jisx0201): New variable.
3627 (Vcharset_latin_iso8859_2): New variable.
3628 (latin_iso8859_2_to_ucs): New variable.
3629 (ucs_to_latin_iso8859_2): New variable.
3630 (Vcharset_latin_iso8859_3): New variable.
3631 (latin_iso8859_3_to_ucs): New variable.
3632 (ucs_to_latin_iso8859_3): New variable.
3633 (Vcharset_latin_iso8859_4): New variable.
3634 (latin_iso8859_4_to_ucs): New variable.
3635 (ucs_to_latin_iso8859_4): New variable.
3636 (Vcharset_latin_iso8859_9): New variable.
3637 (latin_iso8859_9_to_ucs): New variable.
3638 (ucs_to_latin_iso8859_9): New variable.
3639 (Vcharset_latin_viscii_lower): New variable.
3640 (latin_viscii_lower_to_ucs): New variable.
3641 (ucs_to_latin_viscii_lower): New variable.
3642 (Vcharset_latin_viscii_upper): New variable.
3643 (latin_viscii_upper_to_ucs): New variable.
3644 (ucs_to_latin_viscii_upper): New variable.
3645 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3646 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3647 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3648 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3649 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3650 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3651 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3652 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3653 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3654 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3656 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3657 (Vcharset_latin_viscii_upper): New variable.
3658 (make_byte_from_character_table): New function.
3659 (put_byte_from_character_table): New function.
3660 (get_byte_from_character_table): New function.
3661 (CHAR96): New macro.
3662 (ucs_to_latin_jisx0201): New variable.
3663 (latin_jisx0201_to_ucs): New variable.
3664 (ucs_to_latin_iso8859_2): New variable.
3665 (latin_iso8859_2_to_ucs): New variable.
3666 (ucs_to_latin_iso8859_3): New variable.
3667 (latin_iso8859_3_to_ucs): New variable.
3668 (ucs_to_latin_iso8859_4): New variable.
3669 (latin_iso8859_4_to_ucs): New variable.
3670 (ucs_to_latin_iso8859_9): New variable.
3671 (latin_iso8859_9_to_ucs): New variable.
3672 (ucs_to_latin_viscii_lower): New variable.
3673 (latin_viscii_lower_to_ucs): New variable.
3674 (ucs_to_latin_viscii_upper): New variable.
3675 (latin_viscii_upper_to_ucs): New variable.
3676 (ucs_to_latin_tcvn5712): New variable.
3677 (latin_tcvn5712_to_ucs): New variable.
3678 (Qlatin_viscii_lower): New variable.
3679 (Qlatin_viscii_upper): New variable.
3680 (syms_of_mule_charset): Set up new symbol
3681 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3682 (complex_vars_of_mule_charset): Set up new charset
3683 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3684 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3685 `ucs_to_<CHARSET>' tables.
3687 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3689 * text-coding.c: New file.
3691 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3693 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3695 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3696 (MAKE_CHAR): Modify for `ucs-bmp'.
3697 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3698 non-MULE characters of BMP.
3700 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3702 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3705 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3708 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3709 - Include character.h for `CHAR_ASCII_P'.
3711 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3713 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3714 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3716 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3717 (BYTE_C0_P): Likewise.
3718 (BYTE_C1_P): Likewise.
3719 (Lstream_get_emchar_1): Likewise.
3720 (Lstream_fput_emchar): Likewise.
3721 (Lstream_funget_emchar): Likewise.
3722 (copy_internal_to_external): Likewise.
3723 (copy_external_to_internal): Likewise.
3725 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3726 (BYTE_C0_P): Likewise.
3727 (BYTE_C1_P): Likewise.
3728 (Lstream_get_emchar_1): Likewise.
3729 (Lstream_fput_emchar): Likewise.
3730 (Lstream_funget_emchar): Likewise.
3731 (copy_internal_to_external): Likewise.
3732 (copy_external_to_internal): Likewise.
3734 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3735 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3737 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3738 (BYTE_ASCII_P): Moved to mb-1byte.h.
3740 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3742 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3744 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3745 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3746 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3747 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3748 (VALIDATE_CHARPTR_FORWARD): Likewise.
3749 (simple_charptr_emchar): Moved to mb-multibyte.h.
3750 (simple_set_charptr_emchar): Likewise.
3751 (simple_charptr_copy_char): Likewise.
3752 (non_ascii_charptr_emchar): Likewise.
3753 (non_ascii_set_charptr_emchar): Likewise.
3754 (non_ascii_charptr_copy_char): Likewise.
3755 (charptr_emchar): Moved to mb-*byte.h.
3756 (set_charptr_emchar): Likewise.
3757 (charptr_copy_char): Likewise.
3759 * mb-1byte.h, mb-multibyte.h: New files.
3761 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3763 * mb-utf-8.h (MULTIBYTE): New macro.
3764 (MAX_EMCHAR_LEN): Moved from buffer.h.
3765 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3767 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3769 * mb-lb.h, multibyte.h: New files.
3771 * char-1byte.h (Charset_ID): Moved from buffer.h.
3772 (MIN_LEADING_BYTE): Likewise.
3773 (LEADING_BYTE_ASCII): Likewise.
3774 (NUM_LEADING_BYTES): Likewise.
3775 (CHARSETP): Likewise.
3776 (CHARSET_BY_LEADING_BYTE): Likewise.
3777 (XCHARSET_LEADING_BYTE): Likewise.
3778 (XCHARSET_GRAPHIC): Likewise.
3779 (XCHARSET_COLUMNS): Likewise.
3780 (XCHARSET_DIMENSION): Likewise.
3781 (CHAR_CHARSET): Likewise.
3782 (CHAR_LEADING_BYTE): Likewise.
3783 (BREAKUP_CHAR): Likewise.
3784 (Vcharset_ascii): Likewise.
3786 * buffer.h: Include multibyte.h unconditionally.
3787 (VALID_CHARPTR_P): Moved to multibyte.h.
3788 (ASSERT_VALID_CHARPTR): Likewise.
3789 (REAL_INC_CHARPTR): Likewise.
3790 (REAL_INC_CHARBYTIND): Likewise.
3791 (REAL_DEC_CHARPTR): Likewise.
3792 (INC_CHARPTR): Likewise.
3793 (INC_CHARBYTIND): Likewise.
3794 (DEC_CHARPTR): Likewise.
3795 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3796 (VALIDATE_CHARPTR_FORWARD): Likewise.
3797 (charptr_n_addr): Likewise.
3798 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3799 (simple_charptr_emchar): Moved to multibyte.h.
3800 (simple_set_charptr_emchar): Likewise.
3801 (simple_charptr_copy_char): Likewise.
3802 (non_ascii_charptr_emchar): Likewise.
3803 (non_ascii_set_charptr_emchar): Likewise.
3804 (non_ascii_charptr_copy_char): Likewise.
3805 (charptr_emchar): Likewise.
3806 (set_charptr_emchar): Likewise.
3807 (charptr_copy_char): Likewise.
3808 (charptr_emchar_n): Likewise.
3809 (Charset_ID): Moved to char-1byte.h.
3810 (Vcharset_ascii): Likewise.
3811 (CHAR_CHARSET): Likewise.
3812 (CHAR_LEADING_BYTE): Likewise.
3813 (LEADING_BYTE_ASCII): Likewise.
3814 (NUM_LEADING_BYTES): Likewise.
3815 (MIN_LEADING_BYTE): Likewise.
3816 (CHARSETP): Likewise.
3817 (CHARSET_BY_LEADING_BYTE): Likewise.
3818 (XCHARSET_LEADING_BYTE): Likewise.
3819 (XCHARSET_GRAPHIC): Likewise.
3820 (XCHARSET_COLUMNS): Likewise.
3821 (XCHARSET_DIMENSION): Likewise.
3822 (BREAKUP_CHAR): Likewise.
3824 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3826 * character.h: Add document about interface for characters.
3828 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3829 (MAKE_CHAR): Delete comment about
3830 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3831 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3832 (BREAKUP_CHAR): Modify name of arguments.
3833 (CHAR_CHARSET): Modify name of argument.
3835 * buffer.h: Delete document about Emchar accessors.
3837 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3839 * character.h (CHAR_INTP): Moved from buffer.h
3840 (CHAR_OR_CHAR_INTP): Likewise.
3841 (XCHAR_OR_CHAR_INT): Likewise.
3842 (CHECK_CHAR_COERCE_INT): Likewise.
3844 * buffer.h (CHAR_INTP): Moved to character.h
3845 (CHAR_OR_CHAR_INTP): Likewise.
3846 (XCHAR_OR_CHAR_INT): Likewise.
3847 (CHECK_CHAR_COERCE_INT): Likewise.
3849 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3852 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3853 - Include char-1byte.h, char-lb.h or char-ucs.h.
3855 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3857 * buffer.h: Include character unconditionally.
3858 (valid_char_p): Moved to char-*.h.
3859 (non_ascii_valid_char_p): Moved to char-lb.h.
3861 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3863 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3865 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3866 in UTF-2000 because it is not ported yet and not to use
3867 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3868 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3869 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3871 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3872 (CHAR_ASCII_P): Moved from character.h.
3874 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3875 (CHAR_ASCII_P): Likewise.
3876 (CHAR_FIELD1_MASK): Deleted.
3877 (CHAR_FIELD2_MASK): Deleted.
3878 (CHAR_FIELD3_MASK): Deleted.
3879 (MAX_CHAR_BASIC_LATIN): New macro.
3880 (CHAR_FIELD1): Deleted.
3881 (CHAR_FIELD2_INTERNAL): Deleted.
3882 (CHAR_FIELD3_INTERNAL): Deleted.
3883 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3884 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3885 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3886 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3887 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3888 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3889 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3890 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3891 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3892 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3893 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3894 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3895 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3896 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3897 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3898 (MIN_CHAR_COMPOSITION): Deleted.
3899 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3900 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3902 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
3904 * buffer.h: Include mb-utf-8.h in UTF-2000.
3906 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3908 * mb-utf-8.h: New file.
3910 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
3912 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3915 * mule-charset.h, buffer.h (Charset_ID): New type.
3917 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3919 * mule-canna.c (c2mu): Use `MAKE_CHAR',
3920 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3921 instead of `MULE_CHAR_PRIVATE_OFFSET',
3922 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3923 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3924 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3926 * character.h (Vcharset_japanese_jisx0212): New variable
3929 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3931 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3932 (charset_by_attributes): Delete array about direction.
3933 (latin_a_char_to_charset): New variable in UTF-2000.
3934 (latin_a_char_to_byte1): New variable in UTF-2000.
3935 (latin_a_char_to_byte2): New variable in UTF-2000.
3936 (Qucs_bmp): New variable.
3937 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3939 (next_allocated_2_byte_leading_byte): Likewise.
3940 (non_ascii_set_charptr_emchar): Likewise.
3941 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3942 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3943 `charset_by_attributes'.
3944 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3945 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3946 and `CHARSET_BY_LEADING_BYTE'.
3947 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3948 `utf-2000-version' to `vars_of_mule_charset'.
3949 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3950 define `leading-code-private-11' in UTF-2000; move setting of
3951 `utf-2000-version' from `syms_of_mule_charset'.
3952 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3955 * character.h (Charset_ID): New type.
3956 (LEADING_BYTE_UCS_BMP): New macro.
3957 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3958 (CHARSET_ID_OFFSET_94): New macro.
3959 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3960 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3961 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3963 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3964 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3965 (CHARSET_ID_OFFSET_96): New macro.
3966 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3967 CHARSET_ID_OFFSET_96 and final-byte.
3968 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3969 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3970 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3971 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3972 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3973 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3974 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3975 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3976 (LEADING_BYTE_THAI_TIS620): Likewise.
3977 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3978 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3979 (CHARSET_ID_OFFSET_94x94): New macro.
3980 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3981 CHARSET_ID_OFFSET_94x94 and final-byte.
3982 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3983 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3984 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3985 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3986 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3987 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3988 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3989 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3990 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3991 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3992 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3993 (CHARSET_TYPE_128X128): New macro.
3994 (CHARSET_TYPE_256X256): New macro.
3995 (XCHARSET_PRIVATE_P): Delete unconditionally.
3996 (charset_by_attributes): Delete array about direction.
3997 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3998 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3999 (MIN_CHAR_94): New macro.
4000 (MAX_CHAR_94): New macro.
4001 (MIN_CHAR_96): New macro.
4002 (MAX_CHAR_96): New macro.
4003 (MIN_CHAR_94x94): New macro.
4004 (MAX_CHAR_94x94): New macro.
4005 (MIN_CHAR_96x96): New macro.
4006 (MAX_CHAR_96x96): New macro.
4007 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4008 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4009 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4011 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4012 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4013 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4014 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4015 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4016 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4017 `XCHARSET_LEADING_BYTE' to make code-point.
4018 (latin_a_char_to_charset): New variable.
4019 (latin_a_char_to_byte1): New variable.
4020 (latin_a_char_to_byte2): New variable.
4021 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4022 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4023 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4025 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4026 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4027 (find_charsets_in_emchar_string): Likewise.
4028 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4030 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4032 (decode_coding_iso2022): Likewise.
4034 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4037 * redisplay.c (redisplay_text_width_emchar_string): Use
4038 `Charset_ID' instead of `unsigned char'.
4039 (redisplay_frame_text_width_string): Likewise.
4041 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4044 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4045 instead of `unsigned char'.
4046 (face_cachel_charset_font_metric_info): Likewise.
4048 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4049 (get_non_ascii_char_table_value): Likewise.
4050 (get_char_table): Likewise.
4051 (put_char_table): Likewise.
4052 (map_over_other_charset): Likewise.
4053 (map_char_table): Likewise.
4055 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4056 instead of `unsigned char'.
4058 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
4060 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4061 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4063 * mule-charset.c (leading_code_private_11): Don't define in
4066 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4067 in UTF-2000 because it is not ported yet and not to use
4068 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4070 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
4072 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4074 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4076 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4079 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4080 of unsigned char to store leading-byte.
4082 * chartab.c (get_non_ascii_char_table_value): Don't use
4083 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4085 * file-coding.c (encode_coding_big5): Delete bogus implementation
4088 * character.h (LEADING_BYTE_*): Delete definition for
4090 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4091 (LEADING_BYTE_PREFIX_P): Deleted.
4092 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4093 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4094 (BUFBYTE_LEADING_BYTE_P): Deleted.
4095 (CHARSET_PRIVATE_P): Deleted unconditionally.
4096 (rep_bytes_by_first_byte): Deleted unconditionally.
4097 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4098 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4099 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4100 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4101 (CHAR_FIELD2): Deleted.
4102 (CHAR_FIELD3): Deleted.
4103 (MAKE_CHAR): Delete definition for non-UTF-2000.
4104 (BREAKUP_CHAR_1_UNSAFE): Deleted.
4105 (breakup_char_1): New implementation.
4106 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4107 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4109 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4111 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4114 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4116 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4117 (CHARSET_PRIVATE_P): Likewise.
4118 (XCHARSET_PRIVATE_P): Likewise.
4119 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4121 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4123 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4125 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4127 * character.h (LEADING_BYTE_*): Changed in UTF2000.
4128 (NUM_LEADING_BYTES): Changed from 128 to 256.
4129 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4130 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4132 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4134 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4136 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4137 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4138 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4139 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4140 (Qchinese_cns11643_3): New variable in UTF2000.
4141 (Qchinese_cns11643_4): New variable in UTF2000.
4142 (Qchinese_cns11643_5): New variable in UTF2000.
4143 (Qchinese_cns11643_6): New variable in UTF2000.
4144 (Qchinese_cns11643_7): New variable in UTF2000.
4145 (syms_of_mule_charset): Define `chinese-cns11643-3',
4146 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4147 and `chinese-cns11643-7' in UTF2000.
4148 (vars_of_mule_charset): Initialize
4149 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4151 (complex_vars_of_mule_charset): Setup charset
4152 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4153 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4155 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4157 * mule-charset.c: Move setting for `leading-code-private-11' from
4158 `syms_of_mule_charset' to `vars_of_mule_charset'.
4160 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4162 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4163 and `NUM_LEADING_BYTES' in assert.
4165 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4167 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4169 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4170 `NUM_LEADING_BYTES' instead of 128.
4172 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
4174 * mule-charset.h (charset_by_leading_byte): Use
4175 `NUM_LEADING_BYTES' instead of 128.
4176 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4178 * mule-charset.c (charset_by_leading_byte): Use
4179 `NUM_LEADING_BYTES' instead of 128.
4180 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4182 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4185 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4187 * mule-charset.c (syms_of_mule_charset): Update to
4190 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4192 * file-coding.c (encode_coding_sjis): New implementation for
4193 UTF2000. (decode_coding_sjis): Ditto.
4195 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4197 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4198 Don't define in UTF2000.
4200 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4203 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4204 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4207 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4209 * config.h.in (CHAR_IS_UCS4): New macro.
4211 * mule-charset.c (rep_bytes_by_first_byte): Modify for
4212 conventional MULE representation.
4213 (syms_of_mule_charset): Update to 0.3 (Imamiya).
4215 * mule-charset.h: Reverted to original.
4217 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4218 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4219 "mule-charset.h" if CHAR_IS_UCS4 is defined.
4221 * character.h: New file.
4223 * file-coding.c (Fmake_coding_system): Set 1 to
4224 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4226 (encode_coding_no_conversion): New implementation for UTF2000.
4228 * file-coding.h (struct Lisp_Coding_System): Add new member
4231 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
4233 * file-coding.c (decode_coding_iso2022): Code-point arguments of
4234 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4235 (encode_coding_iso2022): New implementation for UTF2000.
4237 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4239 * mule-canna.c (c2mu): New implementation for UTF2000.
4242 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4244 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4246 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4248 * file-coding.c (reset_encoding_stream): Set 0 to
4249 `str->iso2022.current_char_boundary' in UTF2000.
4250 (encode_utf8): Don't define in UTF2000.
4251 (encode_coding_utf8): New implementation for UTF-8 representation
4253 (complex_vars_of_file_coding): Define coding-system `utf-8'.
4255 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4257 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4259 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4261 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4263 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4265 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4266 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4267 as UTF-8 in UTF2000.
4268 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4269 (non_ascii_valid_char_p): Don't define in UTF2000.
4270 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4271 (Lstream_get_emchar_1): Likewise.
4272 (utf-2000-version): New variable in UTF2000.
4274 * lread.c (read_escape): Add new reader `u'.
4276 * insdel.c (three_to_one_table): Don't define in UTF2000.
4277 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4278 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4280 (bytind_to_bufpos_func): Likewise.
4281 (buffer_mule_signal_inserted_region): Likewise.
4282 (vars_of_insdel): Don't initialize `three_to_one_table'.
4283 (init_buffer_text): Use `buf->text->mule_size' instead of
4284 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4287 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4288 UTF-8 representation in UTF2000.
4289 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4290 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4291 (decode_coding_iso2022): Don't define local variable `lb' in
4292 UTF2000; don't use LEADING_BYTE in UTF2000; use
4293 `DECODE_ADD_UCS_CHAR' in UTF2000.
4294 (convert_to_external_format): Decode as UTF-8 in UTF2000.
4296 * config.h.in (UTF2000): New macro.
4298 * buffer.h (struct buffer_text): Add new member `mule_size' and
4299 don't add `mule_shifter' and `mule_three_p' in UTF2000.
4300 (valid_char_p): Return always 1 in UTF2000.
4301 (MAX_EMCHAR_LEN): 6 in UTF2000.
4302 (three_to_one_table): Don't define in UTF2000.
4303 (real_bufpos_to_bytind): Modify for UTF-8 representation in
4305 (real_bytind_to_bufpos): Likewise.
4307 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4309 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4311 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4312 representation change.
4313 (Vutf_2000_version): New variable.
4314 (leading_code_private_11): New variable.
4315 (syms_of_mule_charset): Add new variables `utf-2000-version' and
4316 `leading-code-private-11'.
4318 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4319 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4320 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4321 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4322 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4323 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4324 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4325 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4326 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4327 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4328 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4329 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4330 (MIN_CHAR_GREEK): New macro.
4331 (MAX_CHAR_GREEK): New macro.
4332 (MIN_CHAR_CYRILLIC): New macro.
4333 (MAX_CHAR_CYRILLIC): New macro.
4334 (MIN_CHAR_HEBREW): New macro.
4335 (MAX_CHAR_HEBREW): New macro.
4336 (MIN_CHAR_THAI): New macro.
4337 (MAX_CHAR_THAI): New macro.
4338 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4339 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4340 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4341 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4342 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4343 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4344 (CHAR_FIELD2): New inline function.
4345 (CHAR_FIELD3): New inline function.
4346 (MULE_CHAR_PRIVATE_OFFSET): New macro.
4347 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4348 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4349 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4350 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4351 (MIN_CHAR_COMPOSITION): Likewise.
4352 (CHAR_LEADING_BYTE): Modified for character representation change.
4353 (MAKE_CHAR): Likewise.
4355 * lisp.h (Vcharset_latin_iso8859_1): New variable.
4356 (Vcharset_greek_iso8859_7): Likewise.
4357 (Vcharset_cyrillic_iso8859_5): Likewise.
4358 (Vcharset_hebrew_iso8859_8): Likewise.
4359 (Vcharset_thai_tis620): Likewise.
4360 (Vcharset_katakana_jisx0201): Likewise.
4362 2001-10-23 Stephen J. Turnbull <stephen@xemacs.org>
4364 * XEmacs 21.4.5 "Civil Service" is released.
4366 2001-04-08 Danny Colascione <qtmstr@optonline.net>
4368 * glyphs-x.c: Force buffer-tab highlight update when moving the
4369 buffer, avoiding an ugly black border, used for keyboard focus
4370 indication, on a widget that can never have keyboard focus, the
4373 2001-08-30 Daiki Ueno <ueno@unixuser.org>
4375 * process-unix.c (unix_open_multicast_group): Remove too much
4376 conversion between host and network byte order.
4378 2001-09-10 Nix <nix@esperi.demon.co.uk>
4380 * src/buffer.c (kill_buffer): Undedicate windows showing BUF
4381 before replacing them.
4383 * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
4386 * src/window.c (undedicate_windows): Use it.
4387 * src/window.h: Add prototype.
4389 2001-09-17 Ben Wing <ben@xemacs.org>
4391 * fileio.c (normalize_filename):
4392 * fileio.c (Fexpand_file_name):
4393 Fix various C++ compile errors in Andy's recent code.
4395 * callint.c (Fcall_interactively):
4396 * editfns.c (Ftemp_directory):
4397 * editfns.c (Fuser_full_name):
4398 * emacs.c (argmatch):
4399 * lread.c (locate_file_map_suffixes):
4400 * redisplay-x.c (x_ring_bell):
4401 Fix sign-compare warnings.
4403 2001-09-08 Andy Piper <andy@xemacs.org>
4405 * fileio.c (normalize_filename): copied from nt.c
4406 * (Ffile_name_directory): enable win32 paths under cygwin.
4407 * (Ffile_name_nondirectory): ditto.
4408 * (directory_file_name): ditto.
4409 * (Fexpand_file_name): ditto.
4410 * (Ffile_truename): ditto.
4411 * (Fsubstitute_in_file_name): ditto.
4412 * (Ffile_name_absolute_p): ditto.
4413 * (Ffile_readable_p): ditto.
4415 2001-09-08 Andy Piper <andy@xemacs.org>
4417 * device-msw.c (mswindows_finish_init_device): remove dde
4419 * device-msw.c (mswindows_init_dde): factor out from
4420 mswindows_finish_init_device()
4421 * device-msw.c (init_mswindows_very_early): new function
4422 initialize but don't enable dde.
4423 * emacs.c (main_1): call init_mswindows_very_early.
4425 * event-msw.c (mswindows_dde_callback): only execute when we are
4427 * symsinit.h: declare init_mswindows_very_early.
4429 2001-05-02 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
4431 [sjt: This has been in 21.5 for months with no complaints.]
4433 * console.h (struct console_methods): Added flags member.
4434 (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
4435 (CONMETH_IMPL_FLAG):
4436 (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
4437 Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
4439 * device.c (window_system_pixelated_geometry): Use the above macros.
4441 * device.h (DEVICE_IMPL_FLAG): Macro to check a device
4442 implememntation flag.
4443 * device.h (DEVICE_DISPLAY_P): Use it.
4445 * frame.c (delete_frame_internal): Use the above macro.
4447 * redisplay.c (redisplay_device): Use it.
4448 (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
4449 (redisplay_frame): Ditto.
4451 * device-msw.c (mswindows_device_implementation_flags): Removed.
4452 (msprinter_device_implementation_flags): Removed.
4453 (console_type_create_device_mswindows): Removed references to
4454 implementation_flags methods, set implementation flags here.
4455 (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
4457 * device-gtk.c (gtk_device_implementation_flags): Removed method.
4458 (console_type_create_device_gtk): Removed method declaration.
4459 Added commented out statement which semantically matches the
4460 commented out statement in the above removed method.
4462 2001-04-14 Gordon Sadler <gbsadler1@lcisp.com>
4464 The attached patch fixes a few warnings.
4466 * src/emacs.c: prototype console_type_create_select_gtk for GTK only
4467 * src/frame-gtk.c: guard against GNOME calls in GTK only
4468 * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
4469 * src/select-gtk.c: prototype lisp_to_time
4471 2001-06-08 Ben Wing <ben@xemacs.org>
4473 ------ gc-in-window-procedure fixes ------
4476 * alloc.c (struct post_gc_action):
4477 * alloc.c (register_post_gc_action):
4478 * alloc.c (run_post_gc_actions):
4479 * alloc.c (garbage_collect_1):
4480 Create "post-gc actions", to avoid those dreaded "GC during window
4481 procedure" problems.
4484 Abort, clean and simple, when GC in window procedure. We want
4485 to flush these puppies out.
4488 * glyphs-msw.c (finalize_destroy_window):
4489 * glyphs-msw.c (mswindows_finalize_image_instance):
4490 Use a post-gc action when destroying subwindows.
4493 Declare register_post_gc_action().
4496 * scrollbar-msw.c (unshow_that_mofo):
4497 Use a post-gc action when unshowing scrollbar windows, if in gc.
4499 * redisplay.c (mark_redisplay):
4500 Add comment about the utter evilness of what's going down here.
4502 ------ cygwin setitimer fixes ------
4504 * Makefile.in.in (sheap_objs):
4505 * Makefile.in.in (profile_objs):
4506 * Makefile.in.in (objs):
4507 Compile profile.c only when HAVE_SETITIMER.
4509 * nt.c (mswindows_sigset):
4510 * nt.c (mswindows_sighold):
4511 * nt.c (mswindows_sigrelse):
4512 * nt.c (mswindows_sigpause):
4513 * nt.c (mswindows_raise):
4514 * nt.c (close_file_data):
4518 Move setitimer() emulation to win32.c, because Cygwin needs it too.
4521 * profile.c (Fstart_profiling):
4522 * profile.c (Fstop_profiling):
4523 Make sure we don't compile if no setitimer(). Use qxe_setitimer()
4524 instead of just plain setitimer().
4527 * signal.c (set_one_shot_timer):
4529 Define qxe_setitimer() as an encapsulation around setitimer() --
4530 call setitimer() directly unless Cygwin or MS Win, in which case
4531 we use our simulated version in win32.c.
4534 * systime.h (struct itimerval):
4535 * systime.h (ITIMER_REAL):
4536 Prototype mswindows_setitimer() and qxe_setitimer(). Long
4537 comment about "qxe" and the policy regarding encapsulation.
4540 * win32.c (setitimer_helper_proc):
4541 * win32.c (setitimer_helper_period):
4542 * win32.c (setitimer_helper):
4543 * win32.c (mswindows_setitimer):
4544 Move setitimer() emulation here, so Cygwin can use it.
4545 Rename a couple of functions and variables to be longer and more
4546 descriptive. In setitimer_helper_proc(), send the signal
4547 using either mswindows_raise() or (on Cygwin) kill(). If for
4548 some reason we are still getting lockups, we'll change the kill()
4549 to directly invoke the signal handlers.
4551 ------ windows shell fixes ------
4555 Comments about how these two files must die.
4557 * callproc.c (init_callproc):
4558 On MS Windows, init shell-file-name from SHELL, then COMSPEC,
4559 not just COMSPEC. (more correct and closer to FSF.) Don't
4560 force a value for SHELL into the environment. (Comments added
4561 to explain why not.)
4563 * nt.c (init_user_info):
4564 Don't shove a fabricated SHELL into the environment. See above.
4566 2001-06-01 Ben Wing <ben@xemacs.org>
4568 * Makefile.in.in (ldflags):
4569 eliminate that pesky "defaulting to 00401000" warning.
4573 2001-06-15 Golubev I. N. <gin@mo.msk.ru>
4575 * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
4576 * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
4578 2001-04-24 Jerry James <james@xemacs.org>
4580 * faces.h: pass parameters to Fadd_spec_to_specifier in the
4583 2001-06-01 Ben Wing <ben@xemacs.org>
4585 * event-msw.c (debug_mswin_messages):
4586 conditionalize the messages that were causing compile errors.
4587 (if only macros could generate #ifdef statements ...)
4589 2001-07-28 Stephen J. Turnbull <stephen@xemacs.org>
4591 * XEmacs 21.4.4 "Artificial Intelligence" is released.
4593 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
4595 * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
4597 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
4599 * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
4600 * process-unix.c (unix_canonicalize_host_name):
4601 sysdep.c (init_system_name):
4602 Use it to conditionally support IPv6 canonicalization.
4604 2001-05-31 Paul Stodghill <stodghil@cs.cornell.edu>
4607 Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
4609 2001-05-19 Paul Krause <paulkrause1@mediaone.net>
4611 * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
4612 attempt is made to scroll when no scroll bar is available.
4614 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
4616 * input-method-motif.c (XIM_delete_frame): New callback.
4617 (XIM_init_frame): Register it. (Reapplied by SJT, it somehow
4618 got deleted from 21.4.3.)
4620 2001-06-01 Ben Wing <ben@xemacs.org>
4622 * nt.c (mswindows_utime):
4623 * nt.c (close_file_data):
4624 fix off-by-one-indirection error.
4626 2001-05-29 Adrian Aichner <adrian@xemacs.org>
4628 * fileio.c: Include nt.h. Remove lisp_string_set_file_times()
4629 because set_file_times() now takes Lisp_Object path, instead of
4631 * nt.c: Include buffer.h.
4632 * nt.c (convert_from_time_t): New.
4633 * nt.c (mswindows_utime): New. Use utime, since SetFileTime does
4634 not set mtime correctly.
4635 * nt.h: Declare mswindows_utime().
4636 * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
4637 path, instead of char*.
4638 * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
4640 2001-05-30 Ben Wing <ben@xemacs.org>
4644 (Stephen, just take all event-msw.c patches. This includes
4645 the "iconify" fix below.)
4648 * event-msw.c (mswindows_dequeue_dispatch_event):
4649 * event-msw.c (assert):
4650 * event-msw.c (emacs_mswindows_quit_p):
4651 * event-msw.c (debug_mswin_messages):
4652 * event-msw.c (debug_output_mswin_message):
4653 * event-msw.c (vars_of_event_mswindows):
4654 Fix yet more problems with C-g handling.
4655 Implement debug-mswindows-events.
4657 2001-05-24 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
4659 * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
4661 2001-05-23 Ben Wing <ben@xemacs.org>
4663 * event-msw.c (winsock_writer):
4664 * event-msw.c (winsock_closer):
4665 prior kludgy code was clobbering the buffer, thinking it was
4666 "unused" space to store an unneeded return value; instead, use
4667 the variable we've already got staring us in the face.
4669 2001-05-17 Andy Piper <andy@xemacs.org>
4671 * sysfile.h: don't assume that file attributes are boolean
4673 2001-05-23 Ben Wing <ben@xemacs.org>
4675 * device-msw.c (msprinter_init_device):
4676 signal an error rather than crash with an unavailable network
4677 printer (from Mike Alexander).
4680 * event-msw.c (struct winsock_stream):
4681 * event-msw.c (winsock_writer):
4682 * event-msw.c (winsock_closer):
4683 * event-msw.c (make_winsock_stream_1):
4684 cleanup headers. fix (hopefully) an error with data corruption
4685 when sending to a network connection.
4687 * fileio.c (Fexpand_file_name): Fix evil code that attempts
4688 to handle the ~user prefix by (a) always assuming we're referencing
4689 ourselves and not even verifying the user -- hence any file with
4690 a tilde as its first char is invalid! (b) if there wasn't a slash
4691 following the filename, the pointer was set *past* the end of
4692 file and we started reading from uninitialized memory. Now we
4693 simply treat these as files, always.
4695 * buffer.c (common_init_complex_vars_of_buffer): comment change.
4697 2001-05-19 Ben Wing <ben@xemacs.org>
4699 * eval.c: doc comment about gcpro'ing in record_unwind_protect.
4702 * process-nt.c (vars_of_process_nt):
4703 remove unused mswindows-quote-process-args. rec for 21.4.
4705 2001-05-12 Ben Wing <ben@xemacs.org>
4707 * event-msw.c (mswindows_dde_callback):
4708 * event-msw.c (mswindows_wnd_proc):
4709 eliminate cygwin warnings.
4711 2001-05-06 Ben Wing <ben@xemacs.org>
4715 * device-msw.c (print_dialog_worker):
4716 * device-msw.c (mswindows_handle_print_dialog_box):
4717 * device-msw.c (syms_of_device_mswindows):
4718 * dialog-msw.c (mswindows_make_dialog_box_internal):
4720 implement printing the selection when it's selected.
4722 2001-05-20 Drazen Kacar <dave@arsdigita.com>
4724 * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
4726 2001-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
4728 * lisp.h (EMACS_INT_MAX): This should be one bit less since
4729 EMACS_INT is signed.
4731 2001-04-15 Michael Lausch <mla@1012surf.net>
4733 * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
4734 gtk_widget_request_size() to give scrollbar >0 width for
4737 2001-05-30 William M. Perry <wmperry@gnu.org>
4739 * event-gtk.c: Check for buttons as modifier keys.
4741 2001-05-25 Craig Lanning <CraigL@Knology.net>
4744 Properly find MinGW's <process.h> inside Cygwin's restructured
4745 include directories. Don't try to include <cygwin/version.h>
4746 since we are dropping support for MinGW in versions of Cygwin
4749 Drop support for MinGW in versions of Cygwin before b21.
4751 Properly find MinGW's <process.h> inside Cygwin's restructured
4752 include directories.
4754 Drop support for MinGW in versions of Cygwin before b21.
4756 Even though a.out.h is no longer detected by configure, allow
4757 MinGW to use it until we figure out how to do the job with Win32.
4759 2001-07-11 Matt Tucker <tuck@whistlingfish.net>
4761 * syntax.c (find_start_of_comment):
4762 Fix `unbalanced parentheses' bug when dealing with mixed comment
4763 styles in c++/java/etc. mode
4765 2001-05-29 Mike Alexander <mta@arbortext.com>
4767 * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
4768 FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
4770 2001-05-17 Andrew Begel <abegel@eecs.berkeley.edu>
4772 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
4774 2001-03-31 Mike Sperber <mike@xemacs.org>
4776 * search.c (Freplace_match): Support FSF-style specification of
4777 match subexpression when applied to a buffer.
4779 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
4781 * event-stream.c (is_scrollbar_event): add missing semicolon
4783 2001-05-22 Isaac Hollander <ysh@mindspring.com>
4785 * Makefile.in.in: Use TAR macro instead of hardcoding
4786 tar. Allows use of GNU tar instead of system tar
4788 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
4790 * event-stream.c (is_scrollbar_event): add missing semicolon
4792 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
4794 * XEmacs 21.4.3 "Academic Rigor" is released.
4796 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
4798 * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
4800 2001-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
4802 * buffer.c (Vcase_fold_search): Remove obsolete
4803 comment about non ASCII case-fold-search. This
4804 bug has been fixed by case-table changes.
4806 2001-05-11 Stephen J. Turnbull <stephen@xemacs.org>
4808 * event-msw.c: Restore include of events-mod.h.
4810 2001-04-22 zhaoway <zw@debian.org>
4812 * event-stream.c (is_scrollbar_event): Noop returning 0 if
4815 2001-05-10 Stephen J. Turnbull <stephen@xemacs.org>
4817 * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
4819 2001-05-08 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
4821 * mule-charset.c (Fmake_charset): Add missing else.
4823 2001-04-23 Ben Wing <ben@xemacs.org>
4825 * event-msw.c (FAKE_MOD_QUIT):
4826 * event-msw.c (mswindows_dequeue_dispatch_event):
4827 * event-msw.c (mswindows_wnd_proc):
4828 * event-msw.c (emacs_mswindows_quit_p):
4829 Get critical quit working.
4831 2001-05-05 Ben Wing <ben@xemacs.org>
4835 * device-msw.c (mswindows_get_default_margin):
4836 * frame-msw.c (mswindows_size_frame_internal):
4837 * frame-msw.c (msprinter_init_frame_1):
4838 * frame-msw.c (vars_of_frame_mswindows):
4839 Change top/bottom margin defaults to 0.5 inches.
4841 2001-05-01 Martin Buchholz <martin@xemacs.org>
4843 Fix link error with gcc 3.0 on Linux.
4844 * terminfo.c (UP): Remove.
4845 * terminfo.c (BC): Remove.
4846 * terminfo.c (PC): Remove.
4847 They weren't used, and in any case, these symbols should be
4848 defined in the *library*.
4850 2001-05-03 Martin Buchholz <martin@xemacs.org>
4852 * s/aix4.h: Fix crash with xlc -O3.
4853 Improve comment explaining how -O3 works.
4855 2001-04-15 Ben Wing <ben@xemacs.org>
4858 * event-stream.c (Fnext_event):
4859 * event-stream.c (is_scrollbar_event):
4860 * event-stream.c (execute_command_event):
4861 Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
4862 crash' problem. His fix introduces other problems. We filter
4863 out scrollbar events specifically, making them somewhat invisible
4864 to command-building, and not appearing in `this-command-keys'.
4865 More work is still needed (see comments in event-stream.c), but
4866 this fixes all the major problems.
4868 2001-04-20 Ben Wing <ben@xemacs.org>
4870 * .cvsignore: Added stuff for Windows.
4872 2001-04-28 Ben Wing <ben@xemacs.org>
4874 * buffer.c (Ferase_buffer):
4875 * editfns.c (buffer_insert1):
4876 * editfns.c (Finsert_before_markers):
4877 * editfns.c (Finsert_string):
4878 * editfns.c (Finsert_char):
4879 * editfns.c (Fdelete_region):
4880 * editfns.c (Fwiden):
4881 * editfns.c (Fnarrow_to_region):
4882 remove bogus lines setting zmacs_region_stays to 0.
4884 2001-04-15 Gunnar Evermann <ge204@eng.cam.ac.uk>
4886 * process-unix.c (unix_open_network_stream): If connect() fails
4887 invalidate file descriptor after closing it.
4889 2001-03-08 Mike Alexander <mta@arbortext.com>
4891 * event-msw.c (mswindows_need_event_in_modal_loop):
4892 Don't dispatch a message if we didn't get one.
4893 (mswindows_need_event):
4894 Terminate the correct process when one exits instead of the first
4895 one on Vprocess_list and look for process termination when in
4896 mswindows_protect_modal_loop.
4898 2001-04-19 Stephen J. Turnbull <stephen@xemacs.org>
4900 * XEmacs 21.4.1 "Copyleft" is released.
4902 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
4904 * input-method-motif.c (XIM_delete_frame): New callback.
4905 (XIM_init_frame): Register it.
4907 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
4909 * XEmacs 21.4.0 "Solid Vapor" is released.
4911 2001-04-15 Ben Wing <ben@xemacs.org>
4913 * cmdloop.c (call_command_loop):
4914 Fix braino in bit-rotting code.
4916 2001-04-07 Hrvoje Niksic <hniksic@arsdigita.com>
4918 * extents.c (Fset_extent_endpoints): Force creation of extent info
4919 in buffer_or_string.
4921 * extents.c (process_extents_for_insertion_mapper): Correctly
4922 check for open-open zero-length extents.
4924 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
4926 * lisp.h: New typedefs Memory_count, Element_count.
4929 Sign-compare warning elimination: several unsigned -> signed.
4930 Based on work by Ben Wing <ben@xemacs.org>.
4932 2001-04-14 Stephen J. Turnbull <stephen@xemacs.org>
4934 * XEmacs 21.2.47 "Zephir" is released.
4936 2001-04-02 Jan Vroonhof <jan@xemacs.org>
4938 * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
4940 2001-04-03 Mike Sperber <mike@xemacs.org>
4942 * search.c: Revert previous patch due because of release.
4944 2001-03-30 Ben Wing <ben@xemacs.org>
4947 Add missing killpg prototype.
4950 Add a comment about fixing problems when a new entry is added
4953 * frame-msw.c (mswindows_init_frame_1):
4954 Fix compile warnings.
4956 * menubar.c (vars_of_menubar):
4957 Provide `menu-accelerator-support' to indicate that we properly
4958 support %_ in menu specifications, so that package code can
4959 conditionalize on this (and remove %_ from menu specifications
4964 * scrollbar-msw.c (can_scroll):
4966 Fix handling of mouse wheel under Windows to follow standards --
4967 now scrolls window under pointer, not selected window.
4969 2001-03-31 Mike Sperber <mike@xemacs.org>
4971 * search.c (Freplace_match): Support FSF-style specification of
4972 match subexpression when applied to a buffer.
4974 2001-03-15 Martin Buchholz <martin@xemacs.org>
4976 * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
4977 function to modify KEYMAP, so map over a copy of the hash table.
4979 2001-03-21 Martin Buchholz <martin@xemacs.org>
4981 * XEmacs 21.2.46 "Urania" is released.
4983 2001-03-20 Dan Holmsand <dan@eyebee.com>
4985 * realpath.c (xrealpath): Make file-truename work with symlinks to
4986 /cygdrive paths on cygwin. Always lowercase drive-letters on
4988 (cygwin_readlink): Don't try to find canonical filename unless
4991 2001-03-15 Stephen J. Turnbull <stephen@xemacs.org>
4993 * ChangeLog: Log GTK merge.
4999 Revert gratuitous whitespace changes from GTK merge.
5001 * emacs.c: Document end of complex #ifdef @ l. 1495.
5004 2001-03-12 Andy Piper <andy@xemacs.org>
5006 * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
5007 have to do likewise.
5009 2001-03-12 Andy Piper <andy@xemacs.org>
5011 * sysdep.c: we only support mingw now.
5013 2001-03-09 Andy Piper <andy@xemacs.org>
5015 * unexcw.c (copy_executable_and_dump_data_section): making approx
5016 overrun a warning only.
5018 2001-03-10 William M. Perry <wmperry@aventail.com>
5020 * faces.c (complex_vars_of_faces): Rewrote the font mucking to
5021 satisfy Stephen's identical-after-cpp plea.
5023 2001-03-02 Ben Wing <ben@xemacs.org>
5026 * cmds.c (Fforward_char):
5030 Augment documentation of the most common motion commands to make
5031 note of the shifted-motion support.
5033 2001-03-02 Ben Wing <ben@xemacs.org>
5035 * nt.c (mswindows_fstat):
5036 * nt.c (mswindows_stat):
5037 * search.c (boyer_moore):
5038 Fix compile warnings under Windows.
5040 * sysdep.c (sys_readdir):
5041 Fix buggy filename-conversion code under Mule.
5043 2001-03-09 William M. Perry <wmperry@aventail.com>
5065 * redisplay-output.c:
5071 The Great GTK Merge.
5078 * emacs-widget-accessors.c:
5092 * native-gtk-toolbar.c:
5103 The Great GTK Merge: new files.
5105 2001-02-26 Ben Wing <ben@xemacs.org>
5107 Reapplied Lstream change.
5109 2001-02-26 Ben Wing <ben@xemacs.org>
5111 Undid the last change, since it is more controversial than I
5112 thought. It should be back in at some point soon.
5114 2001-02-25 Ben Wing <ben@xemacs.org>
5117 * callproc.c (Fold_call_process_internal):
5118 * event-msw.c (ntpipe_slurp_reader):
5119 * event-msw.c (ntpipe_shove_writer):
5120 * event-msw.c (winsock_reader):
5121 * event-msw.c (winsock_writer):
5123 * file-coding.c (detect_eol_type):
5124 * file-coding.c (detect_coding_type):
5125 * file-coding.c (determine_real_coding_system):
5126 * file-coding.c (Fdetect_coding_region):
5127 * file-coding.c (decoding_reader):
5128 * file-coding.c (decoding_writer):
5129 * file-coding.c (mule_decode):
5130 * file-coding.c (Fdecode_coding_region):
5131 * file-coding.c (encoding_reader):
5132 * file-coding.c (encoding_writer):
5133 * file-coding.c (mule_encode):
5134 * file-coding.c (Fencode_coding_region):
5135 * file-coding.c (detect_coding_sjis):
5136 * file-coding.c (decode_coding_sjis):
5137 * file-coding.c (encode_coding_sjis):
5138 * file-coding.c (detect_coding_big5):
5139 * file-coding.c (decode_coding_big5):
5140 * file-coding.c (encode_coding_big5):
5141 * file-coding.c (detect_coding_ucs4):
5142 * file-coding.c (decode_coding_ucs4):
5143 * file-coding.c (encode_coding_ucs4):
5144 * file-coding.c (detect_coding_utf8):
5145 * file-coding.c (decode_coding_utf8):
5146 * file-coding.c (encode_coding_utf8):
5147 * file-coding.c (detect_coding_iso2022):
5148 * file-coding.c (decode_coding_iso2022):
5149 * file-coding.c (encode_coding_iso2022):
5150 * file-coding.c (decode_coding_no_conversion):
5151 * file-coding.c (encode_coding_no_conversion):
5152 * glyphs-x.c (write_lisp_string_to_temp_file):
5153 * gpmevent.c (tty_get_foreign_selection):
5156 * lstream.c (Lstream_flush_out):
5157 * lstream.c (Lstream_adding):
5158 * lstream.c (Lstream_write_1):
5159 * lstream.c (Lstream_write):
5160 * lstream.c (Lstream_raw_read):
5161 * lstream.c (Lstream_read_more):
5162 * lstream.c (Lstream_read):
5163 * lstream.c (Lstream_unread):
5164 * lstream.c (Lstream_fputc):
5165 * lstream.c (stdio_reader):
5166 * lstream.c (stdio_writer):
5167 * lstream.c (filedesc_reader):
5168 * lstream.c (filedesc_writer):
5169 * lstream.c (lisp_string_reader):
5170 * lstream.c (struct fixed_buffer_stream):
5171 * lstream.c (make_fixed_buffer_input_stream):
5172 * lstream.c (make_fixed_buffer_output_stream):
5173 * lstream.c (fixed_buffer_reader):
5174 * lstream.c (fixed_buffer_writer):
5175 * lstream.c (struct resizing_buffer_stream):
5176 * lstream.c (resizing_buffer_writer):
5177 * lstream.c (dynarr_writer):
5178 * lstream.c (lisp_buffer_reader):
5179 * lstream.c (lisp_buffer_writer):
5181 * lstream.h (lstream_implementation):
5182 * lstream.h (struct lstream):
5184 * process-nt.c (nt_send_process):
5185 * process-unix.c (unix_send_process):
5187 Correct Lstream lossage due to mixing of signed and unsigned
5188 quantities. All Lstream uses of size_t and ssize_t are now a
5189 single signed data type Lstream_data_count. This fixes problems
5190 under Windows with sending large quantities of data to a process,
5191 and may well fix other subtle bugs.
5193 2001-02-23 Martin Buchholz <martin@xemacs.org>
5195 * XEmacs 21.2.45 "Thelxepeia" is released.
5197 2001-02-21 Martin Buchholz <martin@xemacs.org>
5199 * lisp-union.h (XSETINT):
5202 Reverse previous change of 2001-02-06.
5204 2001-02-20 Matt Tucker <tuck@whistlingfish.net>
5206 Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
5208 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
5209 * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
5210 Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
5211 * regex.c (POS_AS_IN_BUFFER): removed
5212 * regex.c (re_search_2):
5213 * regex.c (re_match_2):
5214 Don't use an offset of 1 when calculating buffer positions, since
5215 `BI_BUF_BEGV' does it already.
5217 2001-02-18 Wim Dumon <wim@easics.be>
5219 * insdel.c (prepare_to_modify_buffer): Also check for
5220 supersession when clash-detection is enabled.
5222 2001-02-17 Matt Tucker <tuck@whistlingfish.net>
5224 * regex.c (re_match_2_internal):
5225 Convert temp characters from 'const unsigned char' to 're_char'.
5226 Fix crashing bug with extended characters under mule.
5227 * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
5228 syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
5229 font-lock, pdump, and new syntax-table code.
5230 * syntax.c (find_start_of_comment):
5231 (find_end_of_comment):
5233 Fix crashing bugs involving moving beyond end of buffer.
5234 * syntax.c (find_start_of_comment):
5235 Fixed logic to allow proper detection of cases where the same
5236 character is used to end both a two-char comment start and a
5237 two-char comment end sequence. Fixes `(forward-comment -1)'.
5238 * syntax.c (find_start_of_comment):
5239 Return position just past last comment-end character for all cases
5240 (previously was only done for two-char comment-end sequences).
5241 * syntax.c (forward-comment):
5242 Take value returned from `find_end_of_comment', rather than
5244 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
5245 Properly deal with BUFFERP (syntax_cache.object)
5247 2001-02-17 Martin Buchholz <martin@xemacs.org>
5249 * alloc.c (Fgarbage_collect):
5250 * alloc.c (make_bit_vector_from_byte_vector):
5251 -Wsign-compare-correctness.
5253 2001-02-16 Martin Buchholz <martin@xemacs.org>
5255 * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
5256 (XSETCHAR): Likewise.
5257 (XSETOBJ): Likewise.
5259 2001-02-15 Martin Buchholz <martin@xemacs.org>
5261 * mule-canna.c (canna-func-delete_previous):
5262 Rename to canna-func-delete-previous.
5264 2001-02-14 Martin Buchholz <martin@xemacs.org>
5266 * mule-ccl.c (ccl_driver): Warning suppression. Use countof.
5268 2001-02-13 Matt Tucker <tuck@whistlingfish.net>
5270 * font-lock.c (find_context): Fix C++ compile errors introduced by
5273 2001-02-13 Martin Buchholz <martin@xemacs.org>
5275 * s/aix4.h: Later versions of IBM C compiler need a bug workaround
5276 pragma, but earlier ones barf on the same pragma.
5278 2001-02-06 Mike Sperber <mike@xemacs.org>
5280 * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
5281 `configure-mule-lisp-directory'.
5283 2001-02-12 Martin Buchholz <martin@xemacs.org>
5285 Make sure dump-id.c is compiled in the same way as other .c's.
5286 Fixes pdump compilation failure with HP's cc, which defaults to K&R.
5287 * dump-id.h: Remove.
5288 * emacs.c: Move dump-id.h into dumper.h.
5289 * dumper.h: Move dump-id.h into dumper.h.
5291 Use standard .c.o rule for building dump-id.o.
5292 Remove preprocessor flags from link command.
5293 Add dump-id.o to ${otherobjs} if PDUMP.
5295 2001-02-07 Matt Tucker <tuck@whistlingfish.net>
5297 Port FSF 20.7 syntax table improvements.
5301 Fixups for new syntax table stuff.
5302 * dired.c: Include syntax.c.
5303 (Fdirectory_files): Initialize regex_match_object and
5305 * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
5306 and Fget_char_property.
5308 Use ported FSF 20.7 syntax table improvements.
5313 2001-02-09 Martin Buchholz <martin@xemacs.org>
5315 * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
5316 Unixware's enum boolean from sys/types.h.
5318 2001-02-10 Martin Buchholz <martin@xemacs.org>
5320 Fix support for building with latest Purify.
5321 * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
5322 (PURIFY_FLAGS): Likewise.
5324 2001-02-09 Martin Buchholz <martin@xemacs.org>
5326 * fileio.c (lisp_string_set_file_times): New.
5327 * fileio.c (Fcopy_file): Use it.
5329 (copy-file filename non-ascii-filename t t)
5330 ==> No such file or directory, non-ascii-filename
5332 2001-02-10 Martin Buchholz <martin@xemacs.org>
5334 * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
5335 USHRT_MAX seems clearer than ~0 anyways.
5337 2001-02-09 Martin Buchholz <martin@xemacs.org>
5339 dumper improvements. Inspired by Olivier.
5340 * dumper.c (pdump_max_align): New.
5341 * dumper.c (pdump_add_entry): Use pdump_max_align.
5342 * dumper.c (pdump_get_entry_list): Likewise.
5343 * dumper.c (pdump_scan_by_alignment): Likewise.
5344 Don't iterate through unnecessary alignments.
5345 * dumper.c (pdump_file_get): No need to align result of malloc().
5346 * dumper.c (pdump_mallocadr): Remove.
5347 The result of malloc() is guaranteed to be maximally aligned.
5348 * dumper.c: s/elmt/elt/g;
5349 * dumper.c (pdump_object_table): Allocate dynamically, not statically.
5350 * dumper.c (pdump_alert_undump_object): Likewise.
5351 * dumper.c (pdump_align_table):
5352 Don't support alignments > 64.
5353 Store ALIGNOF's, not shift counts, in table.
5355 2001-02-09 Martin Buchholz <martin@xemacs.org>
5357 * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
5358 * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
5359 * systime.h: Use HAVE_UTIME.
5360 * sysdep.c (struct utimbuf): Remove.
5361 * sysdep.c (set_file_times): Prefer utime() to utimes().
5362 * config.h.in (HAVE_UTIME): New.
5363 * config.h.in (HAVE_UTIME_H): Remove.
5364 * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
5366 2001-02-09 Martin Buchholz <martin@xemacs.org>
5368 * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
5370 2001-02-08 Martin Buchholz <martin@xemacs.org>
5372 * s/irix6-0.h: Use the standard system memmove, not bcopy.
5374 2001-02-08 Martin Buchholz <martin@xemacs.org>
5376 * XEmacs 21.2.44 "Thalia" is released.
5378 2001-02-06 Martin Buchholz <martin@xemacs.org>
5380 Fixes crashes in kill-emacs on some systems.
5381 * process-unix.c (unix_kill_child_process):
5382 It's OK for kill() to fail with ESRCH.
5384 2001-02-07 Martin Buchholz <martin@xemacs.org>
5386 Contortions to make .gdbinit tricks work on most systems.
5387 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
5388 * alloc.c (dbg_valmask): Make non-const.
5389 * alloc.c (dbg_typemask): Make non-const.
5390 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
5391 * alloc.c (dbg_valbits): Make non-const.
5392 * alloc.c (dbg_gctypebits): Make non-const.
5393 * .gdbinit (decode_object): Make it work with AIX cc.
5395 2001-02-06 Martin Buchholz <martin@xemacs.org>
5397 * elhash.c (make_general_lisp_hash_table):
5398 Use simpler and more efficient calloc to clear entries.
5400 2001-02-07 Martin Buchholz <martin@xemacs.org>
5402 * window.c (window_scroll): Work around an AIX C compiler bug.
5403 Fixes 'scroll-up' does nothing problem with xlC.
5405 2001-02-05 Martin Buchholz <martin@xemacs.org>
5407 * .gdbinit: Remove obsolete comment.
5409 2001-01-31 Mike Alexander <mta@arbortext.com>
5411 * select.c (Fown_selection_internal): Set owned_p for device
5414 2001-02-01 Martin Buchholz <martin@xemacs.org>
5417 "not" cannot be used as a macro name as it is an operator in C++
5418 * config.h.in: Stop #defining `not'.
5419 * chartab.c (check_category_char): not ==> not_p
5420 * chartab.h: Likewise.
5421 * regex.c (re_match_2_internal): Likewise.
5423 2001-02-02 Martin Buchholz <martin@xemacs.org>
5425 * lisp-disunion.h: Fix up comments.
5427 2001-01-31 Martin Buchholz <martin@xemacs.org>
5429 * keymap.c (define_key_check_and_coerce_keysym):
5431 Support mouse-6 and mouse-7 bindings in the obvious way.
5433 2001-02-01 Martin Buchholz <martin@xemacs.org>
5435 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
5437 2001-01-30 Martin Buchholz <martin@xemacs.org>
5439 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
5440 Previous patch missed DEFVAR_INT_MAGIC.
5441 Make sure future DEFVAR_foo use correct types.
5442 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
5443 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
5444 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
5445 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
5446 * (DEFVAR_INT): Likewise.
5447 * redisplay.c (vertical_clip): Should be of type Fixnum.
5448 * redisplay.c (horizontal_clip): Likewise.
5449 * lisp.h (dump_add_opaque_int): New.
5450 (dump_add_opaque_fixnum): New.
5452 2001-01-29 Andy Piper <andy@xemacs.org>
5454 * glyphs-widget.c (check_valid_int_or_function): allow symbols
5455 since they can be eval'ed
5457 2001-01-29 Martin Buchholz <martin@xemacs.org>
5459 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
5460 Oops, XEmacs redefines `class'. Use `typename' instead.
5462 2001-01-28 Martin Buchholz <martin@xemacs.org>
5464 * dumper.c: Fix C++ compile errors.
5466 2001-01-29 Martin Buchholz <martin@xemacs.org>
5468 * tparam.c: Use correct prototypes.
5470 2001-01-28 Martin Buchholz <martin@xemacs.org>
5472 * sysproc.h: #include util.h for NetBSD's openpty.
5474 2001-01-27 Martin Buchholz <martin@xemacs.org>
5476 More 64-bit correctness.
5477 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
5478 Use a typedef `fixnum' for the type used for DEFVAR_INT.
5480 This finally finishes the 64-bit SGI port.
5481 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
5482 * symbols.c: Fix up comments and type casts.
5483 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
5484 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
5485 * symeval.h (Fixnum): New type.
5486 * symeval.h (symbol_value_type): Fix up comment.
5502 * mule-canna.c: A million DEFVAR_INTs here...
5503 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
5516 s/int/Fixnum/g in DEFVAR_INT declarations.
5518 2001-01-26 Martin Buchholz <martin@xemacs.org>
5520 Port pdump to SGI alignment-sensitive environment.
5521 Lisp Object sizeof methods now return aligned sizes. Rely on that.
5522 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
5524 Define and use aligned reading and writing macros.
5525 Use buffered stdio instead of posix i/o for faster dumping.
5526 Eliminate kludgy 256 byte space for header.
5527 Read and write from dump file using structs for alignment safety.
5528 * dumper.c (pdump_align_stream): New.
5529 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
5530 * dumper.c (PDUMP_READ_ALIGNED): New.
5531 * dumper.c (PDUMP_WRITE_ALIGNED): New.
5532 * dumper.c (pdump_static_Lisp_Object): New struct.
5533 * dumper.c (pdump_static_pointer): New struct.
5534 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
5535 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
5536 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
5537 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
5539 * dumper.c (pdump_backtrace):
5540 * dumper.c (pdump_get_indirect_count):
5541 * dumper.c (pdump_register_object):
5542 * dumper.c (pdump_register_struct):
5543 * dumper.c (pdump_reloc_one):
5544 * dumper.c (pdump_scan_by_alignment):
5545 * dumper.c (pdump_dump_from_root_struct_ptrs):
5546 * dumper.c (pdump_dump_opaques):
5547 * dumper.c (pdump_dump_rtables):
5548 * dumper.c (pdump_dump_from_root_objects):
5550 * dumper.c (pdump_load_finish):
5551 Use aligned reading and writing.
5553 * dumper.c (pdump_free): Make static.
5554 * dumper.c (pdump_hFile): Likewise.
5555 * dumper.c (pdump_hMap): Likewise.
5557 2001-01-26 Martin Buchholz <martin@xemacs.org>
5559 * XEmacs 21.2.43 "Terspichore" is released.
5561 2001-01-25 Martin Buchholz <martin@xemacs.org>
5563 Type fiddling for window_config.saved_windows_count
5564 * window.c (struct window_config):
5565 Make saved_windows_count member unsigned.
5566 * window.c (sizeof_window_config_for_n_windows):
5567 Make parameter unsigned.
5568 * window.c (mark_window_config):
5569 * window.c (window_config_equal):
5570 * window.c (free_window_configuration):
5571 * window.c (Fset_window_configuration):
5572 * window.c (count_windows):
5573 * window.c (Fcurrent_window_configuration):
5574 * window.c (reinit_vars_of_window):
5575 Update all callers and users.
5577 2001-01-25 Martin Buchholz <martin@xemacs.org>
5579 Alignment correctness for flexible arrays.
5580 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
5581 Make alignment-correct. Add interesting comments.
5582 * alloc.c (size_vector):
5583 * alloc.c (make_vector_internal):
5584 * alloc.c (make_bit_vector_internal):
5585 * alloc.c (sweep_bit_vectors_1):
5586 * fns.c (size_bit_vector):
5587 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
5588 * window.c (sizeof_window_config_for_n_windows):
5589 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
5591 2001-01-24 Martin Buchholz <martin@xemacs.org>
5593 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
5595 2001-01-23 Andy Piper <andy@xemacs.org>
5597 * select.c (Fown_selection_internal): pass owned_p
5599 * select-msw.c (mswindows_own_selection): New Signature.
5601 * console.h (struct console_methods): add owned_p to
5604 * select-x.c (x_own_selection): pass owned_p
5605 (hack_motif_clipboard_selection): use owned_p
5606 (vars_of_select_x): new variable -
5607 x_selection_strict_motif_ownership.
5609 2001-01-23 Martin Buchholz <martin@xemacs.org>
5611 * specifier.h (specifier_data_offset): Remove pointless parens.
5612 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
5614 2001-01-24 Martin Buchholz <martin@xemacs.org>
5616 Make Lisp_Object sizeof methods be alignment-correct.
5617 pdump must restore objects to the same alignment as the C compiler
5618 assumes. It really matters on SGIs.
5619 * lstream.c (aligned_sizeof_lstream): New.
5620 (sizeof_lstream): Use aligned_sizeof_lstream.
5621 (Lstream_new): Likewise.
5622 * opaque.c (aligned_sizeof_opaque): New.
5623 (sizeof_opaque): Use aligned_sizeof_opaque.
5624 (make_opaque): Likewise.
5625 * specifier.c (aligned_sizeof_specifier): New.
5626 (sizeof_specifier): Use aligned_sizeof_specifier.
5627 (make_specifier_internal): Likewise.
5629 2001-01-23 Martin Buchholz <martin@xemacs.org>
5631 * lstream.h (struct lstream): Use max_align_t for trailing data.
5632 * specifier.h (struct Lisp_Specifier): Likewise.
5634 2001-01-22 Martin Buchholz <martin@xemacs.org>
5636 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
5637 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
5638 (CCL_SUSPEND): Likewise.
5639 (CCL_INVALID_CMD): Likewise.
5640 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
5641 (ccl_driver): Likewise.
5642 (CCL_WRITE_CHAR): Macro hygiene.
5643 (CCL_WRITE_STRING): Macro hygiene.
5645 2001-01-22 Martin Buchholz <martin@xemacs.org>
5647 Port "portable" dumper to SunOS 4 and HP-UX.
5648 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
5649 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
5650 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
5652 2001-01-22 Martin Buchholz <martin@xemacs.org>
5654 * lisp.h (ALIGNOF): A better definition for C++.
5656 2001-01-20 Martin Buchholz <martin@xemacs.org>
5659 Fix printf warnings: int format, long int arg.
5660 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
5661 (PUSH_FAILURE_POINT): Use correct printf formats.
5662 (POP_FAILURE_POINT): Use correct printf formats.
5663 Use do {...} while (0)
5665 2001-01-20 Martin Buchholz <martin@xemacs.org>
5667 * XEmacs 21.2.42 "Poseidon" is released.
5669 2001-01-20 Martin Buchholz <martin@xemacs.org>
5671 * console-x.h: typo fix du jour. Remove #if 0'ed code.
5673 2001-01-19 Martin Buchholz <martin@xemacs.org>
5675 De-kludgify FIXED_TYPE free list frobbing.
5676 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
5677 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
5678 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
5679 * alloc.c (Lisp_Free): New pseudo lisp object definition.
5680 * alloc.c (LRECORD_FREE_P): New.
5681 * alloc.c (MARK_LRECORD_AS_FREE): New.
5682 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
5683 * alloc.c (STRUCT_FREE_P): Deleted.
5684 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
5685 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
5686 * alloc.c (STRING_CHARS_FREE_P): New.
5687 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
5688 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
5689 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
5690 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
5691 * alloc.c (resize_string): Use new definitions.
5692 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
5693 * alloc.c (verify_string_chars_integrity): Use new definitions.
5694 * alloc.c (compact_string_chars): Use new definitions.
5695 * alloc.c: Update monster comments.
5696 * lrecord.h (lrecord_type): Add some new lrecord types for
5699 2001-01-18 Martin Buchholz <martin@xemacs.org>
5701 Improve alignment hackery.
5702 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
5703 (max_align_t): Moved from opaque.h - general purpose.
5704 (ALIGN_PTR): Use size_t, not long.
5705 * opaque.h (max_align_t): Move to lisp.h.
5707 2001-01-18 Norbert Koch <nk@LF.net>
5709 * gui.h: Fix and add prototypes to fix build problems.
5711 2001-01-18 Martin Buchholz <martin@xemacs.org>
5713 temacs is going away, so `dump-temacs' is now a bad name.
5714 * .dbxrc (dump-temacs): Rename to `dmp'.
5715 * .gdbinit (dump-temacs): Rename to `dmp'.
5717 2001-01-17 Andy Piper <andy@xemacs.org>
5719 * glyphs.c (print_image_instance): comment to make martin happy.
5721 * glyphs-x.c (x_redisplay_widget): update faces after a frame
5724 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
5726 (mswindows_tab_control_redisplay): warning suppression.
5728 * glyphs-widget.c (widget_update): re-write to cope with updated
5730 (widget_instantiate): use new gui_item functions.
5731 (tab_control_update): deleted.
5732 (progress_gauge_update): deleted.
5733 (image_instantiator_progress_guage): take out update reference.
5734 (image_instantiator_tree_view): ditto.
5735 (image_instantiator_tab_control): ditto.
5737 * gui.c (widget_gui_parse_item_keywords): new function. Do things
5739 (gui_item_add_keyval_pair): re-write to cope with descriptors and
5740 return whether anything was changed.
5741 (update_gui_item_keywords): as it sounds.
5743 * gui.h: declare widget_gui_parse_item_keywords.
5745 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
5746 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
5748 2001-01-17 Martin Buchholz <martin@xemacs.org>
5750 * XEmacs 21.2.41 "Polyhymnia" is released.
5752 2001-01-16 Didier Verna <didier@xemacs.org>
5754 * glyphs.c (image_instantiate): don't use fallbacks when
5755 instantiating a face's background pixmap by inheritance.
5757 2001-01-14 Mike Sperber <mike@xemacs.org>
5759 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
5760 Conditionalize accordingly.
5762 2001-01-16 Martin Buchholz <martin@xemacs.org>
5764 * dumper.c (pdump_file_get): Fix a compiler warning.
5766 2001-01-15 Martin Buchholz <martin@xemacs.org>
5768 Make Purify happy when pdumping.
5769 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
5770 iniitalizing all bits of new lisp object memory.
5771 * symbols.c (Fmake_local_variable): Likewise.
5772 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
5773 * symbols.c (Fdefvaralias): Likewise.
5774 * mule-charset.c (vars_of_mule_charset): Likewise.
5776 2001-01-15 Martin Buchholz <martin@xemacs.org>
5777 Add the `-nd' flag when running pre-dump operations under the debugger.
5778 * .dbxrc (run-temacs): Add `-nd'.
5779 * .dbxrc (update-elc): Likewise.
5780 * .dbxrc (dump-temacs): Likewise.
5781 * .gdbinit (run-temacs): Likewise.
5782 * .gdbinit (check-temacs): Likewise.
5783 * .gdbinit (update-elc): Likewise.
5784 * .gdbinit (dump-temacs): Likewise.
5786 2001-01-14 Martin Buchholz <martin@xemacs.org>
5788 Allow building 64-bit executables on AIX with GNU malloc, e.g.
5789 export OBJECT_MODE=64
5790 configure --pdump --use-union-type=no
5791 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
5792 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
5794 * miscplay.c (sndcnv8U_2mono):
5795 Avoid two uses of `++' in the same expression.
5796 Suppresses a GCC warning.
5798 2001-01-13 Martin Buchholz <martin@xemacs.org>
5800 Make sure future compilers don't miscompile alloc.c.
5802 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
5803 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
5805 2001-01-12 Martin Buchholz <martin@xemacs.org>
5807 * dumper.c: A little post-pdump-rename comment fixup.
5809 2001-01-09 Jerry James <james@eecs.ku.edu>
5811 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
5813 2001-01-13 Martin Buchholz <martin@xemacs.org>
5815 * *.[ch]: Globally rename symbols using the following `pdump-rename'
5819 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
5822 replace_symbol pdump_wire_lists pdump_weak_object_chains
5823 replace_symbol pdump_wire_list dump_add_weak_object_chain
5825 replace_symbol pdump_wires pdump_root_objects
5826 replace_symbol pdump_wire dump_add_root_object
5828 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
5829 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
5831 replace_symbol dumpstructinfos pdump_root_struct_ptrs
5832 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
5833 replace_symbol dumpstructinfo pdump_root_struct_ptr
5834 replace_symbol dumpstruct dump_add_root_struct_ptr
5836 replace_symbol dumpopaque dump_add_opaque
5837 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
5838 replace_symbol dumpopaqueinfos pdump_opaques
5839 replace_symbol dumpopaqueinfo pdump_opaque
5841 replace_symbol nb_structdump nb_root_struct_ptrs
5842 replace_symbol nb_opaquedump nb_opaques
5844 replace_symbol align_table pdump_align_table
5845 replace_symbol dump_header pdump_header
5847 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
5848 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
5851 2001-01-12 Martin Buchholz <martin@xemacs.org>
5853 * s/aix4.h: Keep the C for AIX compiler from overaggressively
5854 optimizing bytecount_to_charcount().
5856 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
5859 (HAVE_DLFCN_H): Removed.
5860 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
5862 2001-01-06 Martin Buchholz <martin@xemacs.org>
5864 Portable dumper maintainability improvements.
5865 * alloc.c (staticpro):
5866 * alloc.c (staticpro_nodump):
5867 * alloc.c (garbage_collect_1):
5868 * alloc.c (reinit_alloc_once_early):
5869 * alloc.c (init_alloc_once_early):
5870 * alloc.c: Move dumper functions to alloc.c.
5871 * dumper.c (pdump_backtrace):
5872 * dumper.c (pdump_dump_structs):
5873 * dumper.c (pdump_dump_opaques):
5874 * dumper.c (pdump_dump_rtables):
5875 * dumper.c (pdump_dump_wired):
5877 * dumper.c (pdump_load_check):
5878 * dumper.c (pdump_load_finish):
5879 * dumper.c (pdump_file_unmap):
5880 * dumper.c (pdump_file_get):
5881 * dumper.c (pdump_resource_free):
5882 * dumper.c (pdump_resource_get):
5883 * dumper.c (pdump_file_free):
5884 * dumper.c (pdump_file_try):
5885 * dumper.c (pdump_load):
5886 Remove fixed size limits on staticpro(), staticpro_nodump(),
5887 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
5888 Remove custom code for dumping lrecord_implementations_table - use
5890 Remove (most of the) custom code for dumping staticpros - dump it
5891 like any other dynarr.
5893 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
5894 * dumper.c: Moved functions from alloc.c.
5895 * alloc.c (dumpstruct): Moved to dumper.c.
5896 * alloc.c (dumpopaque): Likewise.
5897 * alloc.c (pdump_wire): Likewise.
5898 * alloc.c (pdump_wire_list): Likewise.
5900 * lisp.h (Dynarr_sizeof): New.
5901 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
5902 * lisp.h (Dynarr_end): New. Very slightly C++oid.
5903 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
5905 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
5906 * lisp.h (dumpopaque): ditto.
5907 * lisp.h (pdump_wire): ditto.
5908 * lisp.h (pdump_wire_list): ditto.
5910 2001-01-09 Martin Buchholz <martin@xemacs.org>
5912 * make-src-depend (PrintPatternDeps):
5913 Use `sort' to make output independent of perl version.
5915 2001-01-08 Martin Buchholz <martin@xemacs.org>
5918 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
5919 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
5921 2001-01-03 Didier Verna <didier@xemacs.org>
5923 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
5924 that `focus_frame' is alive before thinking of calling
5925 `redisplay_redraw_cursor' on it.
5927 2001-01-08 Martin Buchholz <martin@xemacs.org>
5929 * XEmacs 21.2.40 is released.
5931 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
5933 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
5935 2001-01-06 Martin Buchholz <martin@xemacs.org>
5937 * alloc.c (dbg_valmask): Make const.
5938 * alloc.c (dbg_typemask): Make const.
5939 * alloc.c (dbg_USE_UNION_TYPE): Make const.
5940 * alloc.c (dbg_valbits): Make const.
5941 * alloc.c (dbg_gctypebits): Make const.
5943 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
5945 * redisplay-x.c (x_bevel_area):
5946 redisplay.h (struct rune):
5947 Typo fixes in comments.
5949 2001-01-05 Andy Piper <andy@xemacs.org>
5951 * glyphs-x.c (x_redisplay_widget): use size changed for offset
5954 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
5956 2001-01-05 Martin Buchholz <martin@xemacs.org>
5958 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
5960 * mule-ccl.c (stack_idx_of_map_multiple):
5961 Non const global data must not be initialized!
5962 Found by MIYASHITA Hisashi.
5964 2001-01-02 Andy Piper <andy@xemacs.org>
5966 * frame.c (change_frame_size): make sure frame size is always
5969 * glyphs.c (image_instance_layout): minor code reuse.
5971 * window.c (Fcurrent_window_configuration): revert previous
5974 2001-01-02 Martin Buchholz <martin@xemacs.org>
5977 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
5979 2000-12-31 Andy Piper <andy@xemacs.org>
5981 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
5982 when widget gets unmapped.
5984 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
5985 function. Make sure widgets losing focus don't just drop it.
5986 (handle_focus_event_1): record the widget with focus.
5988 2000-12-31 Andy Piper <andy@xemacs.org>
5990 * window.c (allocate_window): use
5991 make_image_instance_cache_hash_table.
5992 (make_dummy_parent): ditto.
5993 (Fset_window_configuration): ditto.
5995 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
5997 * glyphs.c (process_image_string_instantiator): use
5999 (get_image_instantiator_governing_domain): ditto.
6000 (normalize_image_instantiator): ditto.
6001 (instantiate_image_instantiator): ditto.
6002 (make_image_instance_1): ditto.
6003 (image_instantiate): ditto. Key on glyph *and* instantiator type.
6004 (instantiator_eq_equal): new function for use with instance hash
6006 (instantiator_eq_hash): ditto.
6007 (make_image_instance_cache_hash_table): create a suitable hash
6008 table for storing image instances.
6010 * elhash.h (hash_table_weakness): new internal weakness type
6011 HASH_TABLE_KEY_CAR_VALUE_WEAK.
6012 declare new functions.
6014 * elhash.c (finish_marking_weak_hash_tables): introduce yet
6015 another weakness type for glyphs.
6016 (make_standard_lisp_hash_table): new function split out from
6017 make_general_lisp_hash_table.
6018 (make_lisp_hash_table): call make_standard_lisp_hash_table.
6019 (hash_table_instantiate): ditto.
6020 (Fmake_hash_table): ditto.
6022 2000-12-31 Martin Buchholz <martin@xemacs.org>
6024 * XEmacs 21.2.39 is released.
6026 2000-12-29 Andy Piper <andy@xemacs.org>
6028 * menubar.c (menubar_visible_p_changed): signal the frame changed.
6030 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
6031 the frame has changed so that we pick up geometry changes such as
6034 2000-12-28 Andy Piper <andy@xemacs.org>
6036 * lastfile.c (my_ebss): make a char array so we can pad the
6037 bss. Fixes cygwin unexec.
6039 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
6041 2000-12-26 Andy Piper <andy@xemacs.org>
6043 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
6044 comments and try and be more precise about a non-/SIGIO world.
6045 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
6048 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
6049 we don't normalize to zero width or height.
6051 2000-12-24 Andy Piper <andy@xemacs.org>
6053 * Makefile.in.in (ldflags): add -mwindows when appropriate.
6055 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
6057 * s/sco5.h: SCO 5 has pty support.
6059 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
6061 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
6062 input-method-xlib.c contains whole contents of input-method-xfs.c,
6063 so we can use input-method-xlib.c's code for USE_XFONTSET
6065 * input-method-xfs.c: removed.
6067 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
6069 * file-coding.h (enum coding_category_type): reorder enumerators to
6070 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
6071 (now one greater than largest real coding_category_type enumerator).
6072 * file-coding.c (coding_category_symbol, coding_category_by_priority,
6073 coding_category_system, fcd_descriptihon_1, decode_coding_category,
6074 Fcoding_category_list, Fset_coding_priority_list,
6075 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
6076 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
6078 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
6080 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
6081 * redisplay-output.c (redisplay_output_window): Clear top of window
6082 when face is changed.
6083 * redisplay-x.c (x_redraw_exposed_window): Call
6084 redisplay_clear_top_of_window.
6085 * redisplay.h: Publish redisplay_clear_top_of_window.
6087 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
6089 * buffer.c (Fkill_buffer): Map over all devices.
6090 * window.c (window_loop): Remove UNSHOW_BUFFER code.
6091 (list_windows): New function.
6092 (list_all_windows): Ditto.
6093 (Freplace_buffer_in_windows): Use them.
6095 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6097 * database.c (berkdb_subtype): Recognize new subtype `queue'.
6098 (Fopen_database): Use `db_create' instead of `db_open'.
6099 (syms_of_database): Initialize Qqueue.
6101 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
6103 * buffer.c (common_init_complex_vars_of_buffer): Initialize
6104 buffer_local_face_property.
6105 * buffer.h (struct buffer): New member buffer_local_face_property.
6106 * window.c (Fset_window_buffer): Mark window's face as changed
6107 when buffer has buffer local face.
6108 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
6109 * objects.c (color_after_change): Set buffer_local_face_property
6110 when locale of face specifier is buffer.
6111 * objects.c (font_after_change): Ditto.
6112 * objects.c (face_boolean_after_change): Ditto.
6113 * glyphs.c (image_after_change): Ditto.
6115 2000-12-09 Dan Holmsand <dan@eyebee.com>
6117 * nt.c (mswindows_fstat): Report file permissions, volume serial
6118 number, etc. Code adapted from FSF Emacs 20.7.
6120 2000-12-09 Dan Holmsand <dan@eyebee.com>
6122 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
6123 of stat when we don't have symbolic links, to make sure
6124 mswindows_stat is called on mswindows.
6126 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
6128 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
6130 2000-12-12 Martin Buchholz <martin@xemacs.org>
6132 * doprnt.c (emacs_doprnt_1): More printing fixes.
6133 Make printing of numbers compatible with libc and FSF Emacs.
6134 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
6135 Use the system printf to do most of the hard work of formatting,
6136 instead of doprnt_1().
6137 Calculate memory to allocate for format string.
6138 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
6139 (doprnt_1): Cleaner code and documentation.
6141 2000-12-01 Jerry James <james@eecs.ukans.edu>
6143 * Makefile.in.in: Use the loop variable to install headers.
6145 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
6147 * window.c (Fsplit_window): Don't invalidate face cache.
6149 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
6151 * minibuf.c (Fall_completions): Undo the previous change
6152 which removed checking elements start with space.
6154 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
6156 * mule-canna.c: Didier suppression.
6158 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
6160 * mule-canna.c: rename static unsigned char buf[] to key_buffer
6161 (warning suppression). Add English comment translations.
6163 2000-12-05 Martin Buchholz <martin@xemacs.org>
6165 * unexelfsgi.c (unexec): Better test for mmap failure.
6167 2000-12-05 Martin Buchholz <martin@xemacs.org>
6169 * XEmacs 21.2.38 is released.
6171 2000-12-05 Martin Buchholz <martin@xemacs.org>
6173 * redisplay.c (bar-cursor): Make a user variable.
6175 * symsinit.h: Add init_postgresql_from_environment.
6177 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
6179 * regex.c: Convert to clean C.
6181 2000-12-05 Dan Holmsand <dan@eyebee.com>
6184 Don't #include sysfile.h. Revert to duplicating PATH_MAX
6186 (sys_readlink): renamed to system_readlink to avoid conflict with
6187 the other sys_readlink.
6189 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
6191 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
6193 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
6195 * postgresql.c (init_postgresql_from_environment): new function.
6196 (vars_of_postgresql): Move code initializing Lisp variables out and
6197 into init_postgresql_from_environment.
6198 emacs.c (main_1): Call init_postgresql_from_environment if and only
6199 if running a dumped XEmacs.
6201 2000-08-31 Dan Holmsand <dan@eyebee.com>
6203 * buffer.c: Make find-file-compare-truenames default to true on
6206 * realpath.c (win32_abs_start):
6208 (win32_readlink): New functions.
6209 (xrealpath): Return really real filenames on windows.
6211 * fileio.c (Ffile_truename): Make file-truename work on windows.
6213 2000-11-29 Didier Verna <didier@xemacs.org>
6215 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
6216 * faces.c (update_face_cachel_data): use it.
6217 * faces.c (add_face_cachel): use it. Complete background pixmap
6218 frobbing in face cache if `update_face_cachel_data' has not done so.
6220 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
6222 * search.c (string_match_1): Don't set last_thing_searched
6225 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
6227 * buffer.c: Include casetab.h
6228 (common_init_complex_vars_of_buffer): Use new case-table object.
6229 * buffer.h: Include casetab.h
6230 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
6231 (DOWNCASE_TABLE_OF): Ditto.
6232 * bufslots.h: Remove char-tables and add case-table.
6233 * casetab.c: Include casetab.h
6234 (CASE_TABLE_P): Removed.
6235 (mark_case_table): New function.
6236 (allocate_case_table): New function.
6237 (Fcase_table_p): Use new case-table.
6238 (case_table_char): New function.
6239 (Fget_case_table): Ditto.
6240 (Fput_case_table): Ditto.
6241 (Fput_case_table_pair): Ditto.
6242 (Fcopy_case_table): Ditto.
6243 (Fcurrent_case_table): Return case-table.
6244 (Fstandard_case_table): Return case-table.
6245 (Fset_case_table): Fix doc-string.
6246 (set_case_table): Use case-table
6247 (syms_of_casetab): DEFSUBR new functions.
6248 (complex_vars_of_casetab): Set up standard case-table.
6249 * casetab.h: New file.
6250 * editfns.c: Include casetab.h
6251 (Fcompare_buffer_substrings): Use case-table.
6252 * inline.c: Include casetab.h
6253 * lisp.h: Remove bogus extern.
6254 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
6255 * search.c: Include casetab.h
6256 (TRANSLATE_ASCII): Removed.
6257 (TRANSLATE): Unconditionally translate character.
6258 (looking_at_1): Use case-table.
6259 (string_match_1): Ditto.
6260 (fast_string_match): Ditto.
6261 (search_command): Ditto.
6262 (search_buffer): Separate boyer_moore. Check whether
6263 boyer_moore is possible.
6264 (simple_search): New function.
6265 (boyer_moore): Separated from search_buffer. Translate char.
6267 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
6269 * regex.c (RE_TR_ASCII): Removed.
6270 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
6271 (PATFETCH): Call PATFETCH_RAW.
6272 (PATFETCH_RAW): Fetch Emchar.
6273 (PATUNFETCH): Decrement charptr.
6274 (GET_BUFFER_SPACE): Rename b to buf_end.
6276 (BUF_PUSH_2): Ditto.
6277 (BUF_PUSH_3): Ditto.
6278 (EXTEND_BUFFER): Ditto.
6279 (SET_LIST_BIT): Ditto.
6280 (regex_compile): Ditto. Translate non ASCII char.
6281 (compile_range): Ditto.
6282 (re_search_2): Ditto.
6283 (re_match_2_internal): Compare Emchar.
6284 (bcmp_translate): Ditto.
6286 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
6288 * lisp.h (basic char/int typedefs): comment improvement.
6290 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
6292 * emacs.c (main_1): unconditional pdump unstomping; don't save and
6293 unstomp inhibit_site_lisp. Improve comments.
6295 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
6297 * mule-charset.c (Fcharset_property): improve type checking, comments.
6299 2000-11-28 Andy Piper <andy@xemacs.org>
6301 * redisplay-output.c (redisplay_output_subwindow): make sure we do
6302 clipped display for windows in the gutter also.
6303 (redisplay_display_boxes_in_window_p): change semantics of return
6304 codes to be more intuitive.
6306 * gutter.h: declare display_boxes_in_gutter_p.
6308 * gutter.c (display_boxes_in_gutter_p): new function for
6311 2000-11-22 Andy Piper <andy@xemacs.org>
6313 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
6316 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
6318 * callproc.c (Fold_call_process_internal):
6319 * gpm.c (Freceive_gpm_event):
6320 (tty_get_foreign_selection): Might be just warning supression.
6321 * fileio.c (Fwrite_region_internal):
6322 (Fset_visited_file_modtime):
6323 * keymap.c (event_matches_key_specifier_p):
6324 Initialize GCPROed variable.
6326 * menubar-x.c (command_builder_find_menu_accelerator):
6327 Initialize before use.
6329 2000-11-23 Andy Piper <andy@xemacs.org>
6331 * unexcw.c (unexec): make the resulting executable executable.
6333 2000-11-21 Martin Buchholz <martin@xemacs.org>
6335 * doc.c (get_doc_string):
6336 Use size_t, not int, for result of XSTRING_LENGTH.
6338 * cmds.c (Fdelete_char):
6339 * cmds.c (Fpoint_at_eol):
6340 * cmds.c (Fself_insert_command):
6341 Use EMACS_INT, not int, for result of XINT.
6342 Someday, someone will want to insert more than 2**31 identical characters.
6344 * cmds.c (Fdelete_char):
6345 * cmds.c (Fdelete_backward_char):
6346 * syntax.c (Fforward_word):
6347 * syntax.c (Fforward_comment):
6348 Make COUNT argument optional, for consistency with forward-char et al.
6350 2000-11-22 Martin Buchholz <martin@xemacs.org>
6353 * print.c (long_to_string):
6354 Return a useful value: the pointer at end of data written.
6357 Use `static const char * const' for constant strings.
6358 (union printf_arg): Delete `i', `ui' members.
6361 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
6362 Do all printf-ing via the `l' specifier.
6363 Use EMACS_INT instead of int.
6366 2000-11-20 Didier Verna <didier@xemacs.org>
6368 * faces.c (update_face_cachel_data): don't frob the background
6369 pixmap when the window is being created. The face is needed but
6372 2000-11-20 Andy Piper <andy@xemacs.org>
6374 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
6375 messing with a debug environment.
6377 2000-11-20 Martin Buchholz <martin@xemacs.org>
6379 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
6381 2000-11-20 Martin Buchholz <martin@xemacs.org>
6383 * casetab.c (Fcase_table_p): Fix compile error and crash.
6385 2000-11-18 Philip Aston <philipa@mail.com>
6387 * s/cygwin32.h: Cygwin has SVR4-like pty support.
6389 2000-11-18 Martin Buchholz <martin@xemacs.org>
6391 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
6392 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
6394 2000-11-17 Martin Buchholz <martin@xemacs.org>
6396 * config.h.in: Define HAVE_ELF_H if elf.h exists.
6397 * unexelf.c: Use HAVE_ELF_H.
6398 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
6399 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
6400 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
6401 Greg Harrington <greg_harrington@hotmail.com> provided a machine
6403 So this is an unexelfsgi.c from a different line of development.
6405 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
6407 * regex.c (RE_TR_ASCII): New function.
6408 (RE_TRANSLATE): Call it.
6410 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
6412 * buffer.h (TRT_TABLE_OF): Remove assert.
6413 (IN_TRT_TABLE_DOMAIN): Removed.
6415 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
6417 * free-hook.c (log_gcpro):
6418 (show_gcprohist): Add support for GCPRO5.
6420 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
6422 * emacs.c (main_1): Improve -sd error message when --pdump=no.
6424 2000-11-16 Olivier Galibert <galibert@xemacs.org>
6426 * symeval.h: Declare flush_all_buffer_local_cache.
6428 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
6429 (flush_buffer_local_cache): Added.
6430 (flush_all_buffer_local_cache): Added.
6432 * lrecord.h: Remove unused XD_LO_RESET_NIL.
6434 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
6435 (pdump_dump_data): Ditto.
6436 (pdump_reloc_one): Ditto.
6437 (pdump): Remove unused pdump_qnil. Flush buffer local caches
6441 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
6443 * buffer.c: Remove if 0'ed entry.
6444 * buffer.h: Rewrite TRT to use char-table.
6445 * bufslots.h: Remove mirror tables.
6446 * casetab.c: Remove mirror tables.
6447 (CASE_TABLE_P): New macro.
6448 (Fcase_table_p): Element of a case table is string or char-table.
6449 (make_mirror_trt_table): Removed.
6450 (set_case_table): Setup char-table from strings for backward
6452 * dired.c (Fdirectory_files):
6453 * dired-msw.c: (mswindows_get_files):
6454 * lisp.h: Change prototype of re_pattern_buffer.
6455 * regex.c: (RE_TRANSLATE): New macro.
6456 (TRANSLATE_P): Ditto.
6457 Change translate to type RE_TRANSLATE_TYPE.
6458 * regex.h: Define RE_TRANSLATE_TYPE
6459 * search.c (TRANSLATE): New macro.
6460 (TRANSLATE_ASCII): New macro.
6461 Translate table is changed to Lisp_Object.
6462 (signal_failure): Inhibit return.
6464 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
6471 Do UNGCPRO before return.
6473 2000-11-14 Martin Buchholz <martin@xemacs.org>
6475 * XEmacs 21.2.37 is released.
6477 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
6479 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
6480 Add comments about discarded return value.
6482 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
6485 * event-stream.c: Fix comments. Remove some #if 0'ed part.
6487 2000-10-27 Andy Piper <andy@xemacs.org>
6489 * gutter.c (Fset_default_gutter_position): default left and right
6491 (calculate_gutter_size): calculate resonable heuristic for left
6492 and right gutter sizes.
6493 (specifier_vars_of_gutter): change left and right gutter sizes to
6495 (calculate_gutter_size_from_display_lines): new function.
6496 (output_gutter): check for resizing on left and right gutters.
6497 (clear_gutter): don't special case top and left gutters.
6498 (specifier_vars_of_gutter): use new signature for
6499 set_specifier_caching.
6501 * glyphs-x.c (x_redisplay_widget): spelling fix.
6502 * glyphs.c (specifier_vars_of_glyphs):
6503 * menubar.c (specifier_vars_of_menubar):
6504 * redisplay.c (specifier_vars_of_redisplay):
6505 * toolbar.c (specifier_vars_of_toolbar):
6506 * window.c (specifier_vars_of_window):
6507 * scrollbar.c (specifier_vars_of_scrollbar):
6508 (complex_vars_of_scrollbar): use new signature for
6509 set_specifier_caching.
6511 * specifier.c (set_specifier_caching): include recompute flag.
6512 (recompute_one_cached_specifier_in_window): always recompute if
6514 (recompute_one_cached_specifier_in_frame): ditto.
6516 * specifier.h (struct specifier_caching): add recompute flag.
6518 2000-10-24 Andy Piper <andy@xemacs.org>
6520 * unexcw.c (copy_executable_and_dump_data_section): add new
6521 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
6524 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
6526 * console-x.h (x_device): New member modifier_release_time.
6527 * event-Xt.c (x_handle_sticky_modifiers):
6528 Bound interval modifier keys are sticky.
6529 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
6530 * events.h: extern it.
6532 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
6534 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
6536 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
6538 * event-stream.c (execute_command_event): Preserve current_events
6539 and the like when event is misc-user-event.
6540 Inhibit quit during the call to maybe_echo_keys.
6542 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
6544 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
6545 symlink when buffer is killed.
6546 (inhibit_clash_detection): New variable.
6548 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
6550 * console.c (Fset_input_method): Trigger redisplay on tty.
6552 2000-11-07 Martin Buchholz <martin@xemacs.org>
6554 * process.c (Fprocess_status): Revert to previous behavior:
6555 (process-status "nosuchprocess") ==> nil
6557 2000-11-06 Martin Buchholz <martin@xemacs.org>
6559 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
6560 Work around another GCC 2.95.2 optimizer bug.
6562 2000-11-02 Martin Buchholz <martin@xemacs.org>
6564 * process.c (Fget_process): Use LIST_LOOP_2.
6565 (kill_buffer_processes): Use LIST_LOOP_2.
6567 * minibuf.c (Fall_completions):
6568 Delete old non-functional code for FSF fourth argument.
6570 * frame.c (frame_matches_frame_spec):
6571 Renamed from `frame_matches_frametype'. Update all callers.
6572 (device_matches_device_spec):
6573 Renamed from 'device_matches_console_spec'. Update all callers.
6575 * doc.c (Fsubstitute_command_keys):
6576 Remove buffer overflow crash. Small code cleanups.
6578 * casetab.c (check_case_table): Simpler code.
6580 * window.c (Freplace_buffer_in_windows):
6581 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
6582 (and similar implementation) as Fdelete_windows_on.
6585 * alloc.c (Fmake_list):
6586 * alloc.c (make_vector):
6587 * alloc.c (Fmake_vector):
6588 * alloc.c (make_bit_vector):
6589 * alloc.c (Fmake_bit_vector):
6590 * alloc.c (Fbit_vector):
6591 * alloc.c (Fmake_string):
6592 * alloc.c (Fpurecopy):
6593 * alloc.c (Fmemory_limit):
6595 * buffer.c (Fget_buffer):
6596 * buffer.c (Fkill_buffer):
6597 * buffer.c (complex_vars_of_buffer):
6598 * bytecode.c (Fcompiled_function_stack_depth):
6599 * callint.c (Fprefix_numeric_value):
6601 * event-stream.c (Fread_key_sequence):
6603 * casetab.c (Fcase_table_p):
6604 * casetab.c (check_case_table):
6605 * casetab.c (Fset_case_table):
6606 * casetab.c (Fset_standard_case_table):
6608 * chartab.c (Fchar_table_type):
6609 * chartab.c (Freset_char_table):
6610 * chartab.c (Fget_char_table):
6611 * chartab.c (Fget_range_char_table):
6612 * chartab.c (Fput_char_table):
6613 * chartab.c (Fmap_char_table):
6614 * chartab.c (Fcategory_table_p):
6615 * chartab.c (Fcheck_category_at):
6616 * chartab.c (Fchar_in_category_p):
6617 * chartab.c (Fcategory_table):
6618 * chartab.c (Fcopy_category_table):
6619 * chartab.c (Fset_category_table):
6620 * chartab.c (Fcategory_designator_p):
6621 * chartab.c (Fcategory_table_value_p):
6622 * cmds.c (Fdelete_char):
6623 * cmds.c (Fdelete_backward_char):
6624 * cmds.c (Fself_insert_command):
6625 * cmds.c (Fself_insert_internal):
6626 * console.c (Fvalid_console_type_p):
6627 * console.c (Fcdfw_console):
6628 * console.c (Fconsole_type):
6629 * console.c (Fconsole_name):
6630 * console.c (Fconsole_device_list):
6631 * console.c (Fconsole_on_window_system_p):
6635 * data.c (Fsubr_interactive):
6636 * data.c (Fchar_to_int):
6637 * data.c (Fint_to_char):
6640 * data.c (Fnumber_to_string):
6641 * data.c (Fstring_to_number):
6643 * database.c (mark_database):
6644 * database.c (finalize_database):
6645 * database.c (Fdatabase_live_p):
6646 * database.c (Fdatabasep):
6647 * device-x.c (Fx_get_resource):
6648 * device.c (Fdfw_device):
6650 * dired.c (Ffile_name_completion):
6651 * dired.c (Ffile_name_all_completions):
6652 * dired.c (Fuser_name_completion):
6653 * dired.c (Fuser_name_completion_1):
6654 * dired.c (Fuser_name_all_completions):
6655 * doc.c (Fdocumentation):
6656 * doc.c (Fdocumentation_property):
6657 * doc.c (Fsubstitute_command_keys):
6659 * editfns.c (Fchar_to_string):
6660 * editfns.c (Fstring_to_char):
6661 * editfns.c (Ftemp_directory):
6662 * editfns.c (Finsert_char):
6663 * editfns.c (Fbuffer_substring_no_properties):
6664 * editfns.c (Fnarrow_to_region):
6665 * editfns.c (Fchar_equal):
6666 * editfns.c (Fchar_Equal):
6667 * editfns.c (Ftranspose_regions):
6668 * emacs.c (Fdump_emacs):
6670 * eval.c (Fcommand_execute):
6671 * eval.c (Fautoload):
6672 * eval.c (Fbacktrace):
6673 * eval.c (Fbacktrace_frame):
6675 * events.c (Fcopy_event):
6676 * events.c (Fcharacter_to_event):
6677 * events.c (Fevent_button):
6678 * events.c (Fevent_process):
6680 * extents.c (Fnext_extent_change):
6681 * extents.c (Fextent_property):
6683 * faces.c (Fmake_face):
6685 * file-coding.c (Fencode_shift_jis_char):
6686 * file-coding.c (Fencode_big5_char):
6687 * fileio.c (Ffile_name_directory):
6688 * fileio.c (Ffile_name_nondirectory):
6689 * fileio.c (Ffile_name_as_directory):
6690 * fileio.c (Fdirectory_file_name):
6691 * fileio.c (Ffile_truename):
6692 * fileio.c (Fsubstitute_in_file_name):
6693 * fileio.c (Ffile_modes):
6694 * fileio.c (Fset_file_modes):
6695 * fileio.c (Fset_default_file_modes):
6696 * fileio.c (Fverify_visited_file_modtime):
6697 * floatfns.c (Facos):
6698 * floatfns.c (Fasin):
6699 * floatfns.c (Fatan):
6700 * floatfns.c (Fcos):
6701 * floatfns.c (Fsin):
6702 * floatfns.c (Ftan):
6703 * floatfns.c (Fbessel_j0):
6704 * floatfns.c (Fbessel_j1):
6705 * floatfns.c (Fbessel_jn):
6706 * floatfns.c (Fbessel_y0):
6707 * floatfns.c (Fbessel_y1):
6708 * floatfns.c (Fbessel_yn):
6709 * floatfns.c (Ferf):
6710 * floatfns.c (Ferfc):
6711 * floatfns.c (Flog_gamma):
6712 * floatfns.c (Fexp):
6713 * floatfns.c (Fexpt):
6714 * floatfns.c (Flog):
6715 * floatfns.c (Flog10):
6716 * floatfns.c (Fsqrt):
6717 * floatfns.c (Fcube_root):
6718 * floatfns.c (Facosh):
6719 * floatfns.c (Fasinh):
6720 * floatfns.c (Fatanh):
6721 * floatfns.c (Fcosh):
6722 * floatfns.c (Fsinh):
6723 * floatfns.c (Ftanh):
6724 * floatfns.c (Fabs):
6725 * floatfns.c (Ffloat):
6726 * floatfns.c (Flogb):
6727 * floatfns.c (Fceiling):
6728 * floatfns.c (Ffloor):
6729 * floatfns.c (Fround):
6730 * floatfns.c (Ftruncate):
6731 * floatfns.c (Ffceiling):
6732 * floatfns.c (Fffloor):
6733 * floatfns.c (Ffround):
6734 * floatfns.c (Fftruncate):
6735 * fns.c (Fstring_equal):
6736 * fns.c (Fstring_lessp):
6741 * fns.c (Fsubstring):
6743 * fns.c (Fold_assoc):
6744 * fns.c (assoc_no_quit):
6746 * fns.c (Fold_assq):
6747 * fns.c (assq_no_quit):
6749 * fns.c (Fold_rassoc):
6751 * fns.c (Fold_rassq):
6752 * fns.c (rassq_no_quit):
6753 * fns.c (Fremassoc):
6754 * fns.c (remassoc_no_quit):
6756 * fns.c (remassq_no_quit):
6757 * fns.c (Fremrassoc):
6758 * fns.c (Fremrassq):
6759 * fns.c (remrassq_no_quit):
6761 * fns.c (Fplist_get):
6762 * fns.c (Fplist_put):
6763 * fns.c (Fplist_remprop):
6764 * fns.c (Fplist_member):
6765 * fns.c (Flax_plist_get):
6766 * fns.c (Flax_plist_put):
6767 * fns.c (Flax_plist_remprop):
6768 * fns.c (Flax_plist_member):
6770 * fns.c (Fold_equal):
6772 * fns.c (Fbase64_encode_region):
6773 * fns.c (Fbase64_encode_string):
6774 * fns.c (Fbase64_decode_region):
6776 * frame.c (frame_matches_frame_spec):
6777 * frame.c (device_matches_device_spec):
6778 * frame.c (next_frame):
6779 * frame.c (previous_frame):
6780 * frame.c (Fnext_frame):
6781 * frame.c (Fprevious_frame):
6782 * frame.c (Fframe_property):
6783 * frame.c (Fset_frame_height):
6784 * frame.c (Fset_frame_size):
6788 * glyphs.c (decode_error_behavior_flag):
6789 * glyphs.c (Fmake_image_instance):
6790 * indent.c (Findent_to):
6791 * intl.c (Fignore_defer_gettext):
6792 * keymap.c (Fkeymapp):
6793 * keymap.c (Flookup_key):
6795 * lread.c (Fload_internal):
6796 * lread.c (Feval_buffer):
6797 * lread.c (Feval_region):
6798 * macros.c (Fexecute_kbd_macro):
6799 * marker.c (set_marker_internal):
6800 * marker.c (Fset_marker):
6801 * marker.c (set_marker_restricted):
6802 * marker.c (Fcopy_marker):
6803 * marker.c (noseeum_copy_marker):
6805 * menubar.c (Fpopup_menu):
6807 * mule-charset.c (Fcharset_name):
6808 * mule-charset.c (Fchar_charset):
6809 * mule-charset.c (Fchar_octet):
6810 * mule-charset.c (Fsplit_char):
6811 * mule-wnnfns.c (Fwnn_open):
6812 * mule-wnnfns.c (Fwnn_dict_comment):
6813 * mule-wnnfns.c (Fwnn_quit_henkan):
6814 * mule-wnnfns.c (Fwnn_word_toroku):
6815 * mule-wnnfns.c (Fwnn_word_sakujo):
6816 * mule-wnnfns.c (Fwnn_word_use):
6817 * mule-wnnfns.c (Fwnn_hindo_set):
6819 * objects.c (Fmake_color_instance):
6820 * objects.c (Fmake_font_instance):
6821 * print.c (Fwrite_char):
6823 * process.c (mark_process):
6824 * process.c (print_process):
6825 * process.c (get_process_from_usid):
6826 * process.c (Fprocessp):
6827 * process.c (Fprocess_live_p):
6828 * process.c (Fget_process):
6829 * process.c (Fget_buffer_process):
6830 * process.c (get_process):
6831 * process.c (Fprocess_id):
6832 * process.c (Fprocess_name):
6833 * process.c (Fprocess_command):
6834 * process.c (init_process_io_handles):
6835 * process.c (start_process_unwind):
6836 * process.c (Fstart_process_internal):
6837 * process.c (Fopen_multicast_group_internal):
6838 * process.c (Fset_process_window_size):
6839 * process.c (read_process_output):
6840 * process.c (send_process):
6841 * process.c (Fprocess_tty_name):
6842 * process.c (Fset_process_buffer):
6843 * process.c (Fprocess_buffer):
6844 * process.c (Fprocess_mark):
6845 * process.c (set_process_filter):
6846 * process.c (Fset_process_filter):
6847 * process.c (Fprocess_filter):
6848 * process.c (Fprocess_send_region):
6849 * process.c (Fprocess_send_string):
6850 * process.c (exec_sentinel):
6851 * process.c (Fset_process_sentinel):
6852 * process.c (Fprocess_sentinel):
6853 * process.c (status_notify):
6854 * process.c (Fprocess_status):
6855 * process.c (Fprocess_exit_status):
6856 * process.c (process_send_signal):
6857 * process.c (Fprocess_send_eof):
6858 * process.c (deactivate_process):
6859 * process.c (remove_process):
6860 * process.c (Fdelete_process):
6861 * process.c (kill_buffer_processes):
6862 * process.c (Fprocess_kill_without_query):
6863 * process.c (Fprocess_kill_without_query_p):
6865 * rangetab.c (Fget_range_table):
6866 * rangetab.c (Fput_range_table):
6867 * rangetab.c (Fremove_range_table):
6868 * rangetab.c (Fclear_range_table):
6870 * search.c (Fskip_chars_forward):
6871 * search.c (Fskip_chars_backward):
6872 * search.c (Fskip_syntax_forward):
6873 * search.c (Fskip_syntax_backward):
6874 * search.c (search_command):
6875 * search.c (Freplace_match):
6876 * search.c (Fregexp_quote):
6877 * select.c (Fown_selection_internal):
6878 * select.c (Fselection_owner_p):
6879 * select.c (Fselection_exists_p):
6880 * select.c (Fget_selection_internal):
6883 * symbols.c (Fintern):
6884 * symbols.c (Fintern_soft):
6885 * symbols.c (Funintern):
6886 * symbols.c (Fapropos_internal):
6887 * symbols.c (Fset_default):
6889 * syntax.c (Fsyntax_table_p):
6890 * syntax.c (Fcopy_syntax_table):
6891 * syntax.c (Fset_syntax_table):
6892 * syntax.c (Fchar_syntax):
6893 * syntax.c (syntax_match):
6894 * syntax.c (Fmatching_paren):
6895 * syntax.c (Fforward_word):
6896 * syntax.c (scan_lists):
6897 * syntax.c (Fscan_lists):
6898 * syntax.c (Fscan_sexps):
6899 * syntax.c (Fparse_partial_sexp):
6900 * toolbar.c (Fcheck_toolbar_button_syntax):
6903 * window.c (Fwindowp):
6904 * window.c (Fwindow_live_p):
6905 * window.c (Fwindow_point):
6906 * window.c (Fdelete_window):
6907 * window.c (Fnext_window):
6908 * window.c (Fprevious_window):
6909 * window.c (Fother_window):
6910 * window.c (window_loop):
6911 * window.c (Fget_lru_window):
6912 * window.c (Fsplit_window):
6913 * window.c (Fenlarge_window):
6914 * window.c (Fenlarge_window_pixels):
6915 * window.c (Fshrink_window):
6916 * window.c (Fshrink_window_pixels):
6917 * window.c (change_window_height):
6918 * window.c (Fwindow_configuration_p):
6919 * window.c (Fcurrent_window_configuration):
6921 * casefiddle.c (casify_object):
6922 * casefiddle.c (Fupcase):
6923 * casefiddle.c (Fdowncase):
6924 * casefiddle.c (Fcapitalize):
6925 * casefiddle.c (Fupcase_initials):
6926 * casefiddle.c (casify_region_internal):
6927 * casefiddle.c (casify_region):
6928 * casefiddle.c (Fupcase_region):
6929 * casefiddle.c (Fdowncase_region):
6930 * casefiddle.c (Fcapitalize_region):
6931 * casefiddle.c (Fupcase_initials_region):
6932 * casefiddle.c (Fupcase_word):
6933 * casefiddle.c (Fdowncase_word):
6934 * casefiddle.c (Fcapitalize_word):
6935 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
6936 Replace 0 with '\0' when working with bytes.
6937 Replace initial "(" with "\(" in docstrings.
6939 2000-11-01 Martin Buchholz <martin@xemacs.org>
6941 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
6943 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
6945 2000-10-31 Martin Buchholz <martin@xemacs.org>
6947 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
6949 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
6951 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
6954 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
6956 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
6957 (inhibit_auto_save_session): New variable.
6958 (vars_of_fileio): Declare and initialize them.
6959 * fileio.c (Fdo_auto_save): Don't create session file if
6960 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
6962 2000-10-31 Martin Buchholz <martin@xemacs.org>
6964 * sgiplay.c (play_internal): C++ compilability.
6965 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
6966 * callproc.c (Fold_call_process_internal):
6967 Remove unused vars `env', `first'.
6968 * scrollbar.c (update_scrollbar_instance):
6969 #### unused var `current_window'.
6970 * redisplay-tty.c: Put currently unused vars insert_mode_on,
6971 etc. within #ifdef NOT_YET.
6972 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
6973 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
6974 * specifier.c (specifier_instance):
6975 #### unused var `tag'.
6976 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
6978 2000-10-27 Martin Buchholz <martin@xemacs.org>
6981 * fns.c (list_sort):
6982 * fns.c (Ffillarray):
6983 * fns.c (bytecode_nconc2):
6986 * fns.c (Fmapconcat):
6987 Be pedantically 64-bit correct. For the time when someone will
6988 want to have a list with length > 2**32.
6990 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6991 Work around MIPSpro compiler bug.
6993 * process-unix.c (unix_kill_child_process): Add snarky comment.
6994 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
6996 * config.h.in: Oops, _getpt ==> _getpty
6998 2000-10-26 Martin Buchholz <martin@xemacs.org>
7002 Use void*, not char*, as return type of alloca().
7004 * alloc.c (free_marker): Side effect inside assert expression!
7006 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
7008 * mule-charset.c (Fset_charset_ccl_program): To check
7009 if the given ccl program is valid, use setup_ccl_program()
7010 instead of CHECK_VECTOR().
7011 (Fmake_charset): Likewise.
7013 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
7015 * faces.c (get_extent_fragment_face_cache_index):
7016 Fix cachel.merged_faces memory leak.
7018 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
7020 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
7021 Reset MSB of octets obtained by DECODE_SJIS
7022 because of the incompatibility with Emacs.
7023 (ccl_driver)<CCL_ENCODE_SJIS>:
7024 Set MSB of octets before passing them to
7025 ENCODE_SJIS because of the incompatibility
7028 2000-10-18 Daiki Ueno <ueno@unixuser.org>
7030 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
7031 (DECLARE_LRECORD): Undo the last change.
7032 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
7034 2000-10-17 Daiki Ueno <ueno@unixuser.org>
7036 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
7037 the implementation to lrecord_implementations_table.
7039 2000-10-14 Daiki Ueno <ueno@unixuser.org>
7041 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
7042 initial value of `lrecord_type_##c_name' and
7043 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
7044 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
7045 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
7046 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
7047 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
7049 2000-10-17 Martin Buchholz <martin@xemacs.org>
7051 * miscplay.c (sndcnv8S_2mono):
7052 (sndcnv2monounsigned):
7053 (sndcnvULaw_2linear):
7055 Remove implementation-defined behavior.
7057 2000-10-12 Martin Buchholz <martin@xemacs.org>
7059 * input-method-xlib.c: Warning suppression.
7061 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
7063 * mule-ccl.c: Sync up with Emacs 21.0.90.
7064 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
7066 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
7068 (ccl_driver[WriteMultibyteChar2]): Bug fix.
7069 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
7070 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
7071 leading char belongs to official 2-dimensional charset.
7072 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
7073 write the given character as is. Otherwise,
7074 if it is a multibyte char, convert it by
7075 non_ascii_set_charptr_emchar, then write it.
7076 (CCL_WRITE_STRING): Likewise.
7077 (ccl_get_compiled_code): New function.
7078 (setup_ccl_program): When ccl_prog is invalid,
7080 (Fregister_code_conversion_map): New function.
7081 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
7083 * mule-ccl.h: Sync up with Emacs 21.0.90.
7084 (Fregister_ccl_program): export it.
7086 * redisplay-msw.c (separate_textual_runs):
7087 If ccl program is not valid, don't do ccl conversion.
7089 * redisplay-x.c (separate_textual_runs): Ditto.
7091 * file-coding.c (Fmake_coding_system):
7092 When type is ccl and value is vector, register it
7093 with a proper symbol. And checks whether the
7094 given ccl program is valid.
7095 (mule_decode): When calling ccl_driver, if src indicates
7096 NULL pointer, set an empty string instead.
7097 (mule_encode): Likewise.
7099 2000-10-11 Martin Buchholz <martin@xemacs.org>
7101 The following large batch of changes gets us back to a state of
7102 C++ compilability. Extbyte is now a char, which means that
7103 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
7105 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
7107 * sound.c (Fplay_sound): Type correctness.
7109 * select-x.c (hack_motif_clipboard_selection): Type correctness.
7110 (x_get_window_property): Type correctness.
7111 (receive_incremental_selection): unsigned char ==> Extbyte
7112 (selection_data_to_lisp_data): unsigned char ==> Extbyte
7113 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
7114 (Fx_store_cutbuffer_internal): Type correctness.
7116 * process-unix.c (try_to_initialize_subtty): Type correctness.
7118 * objects-x.c (x_print_color_instance): Type correctness.
7119 (x_print_font_instance): Type correctness.
7120 (x_list_fonts): SExtbyte ==> Extbyte.
7121 (valid_x_font_name_p): SExtbyte ==> Extbyte.
7122 (x_find_charset_font): SExtbyte ==> Extbyte.
7123 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
7124 (truename_via_XListFonts): SExtbyte ==> Extbyte.
7125 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
7128 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
7129 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
7130 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
7131 (BYTE_C0_P): Use bit ops for char-signedness safety.
7132 (BYTE_C1_P): Use bit ops for char-signedness safety.
7133 (CHARSET_BY_LEADING_BYTE):
7134 (CHARSET_BY_ATTRIBUTES):
7135 Always use inline function.
7136 Use type_checking_assert.
7139 * mule-charset.c (non_ascii_charptr_copy_char):
7140 Modify to work with both ASCII and non-ASCII characters.
7141 Improve docs and variable names.
7142 Replace over-clever fall-through switch with a simple loop.
7143 (Lstream_get_emchar_1):
7144 Replace over-clever fall-through switch with a simple loop.
7146 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7147 Warning suppression.
7149 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
7150 the return value of Lstream_getc, which could be EOF as well.
7152 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
7154 * lisp.h: Make Extbyte a char, not unsigned char, so that external
7155 APIs can be used on Extbytes without casts. Risky!
7159 * input-method-xlib.c (XIM_init_device):
7160 Use Xlib.h instead of IntrinsicP.h.
7161 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
7162 which will break in X11R7.
7163 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
7164 to call XRegisterIMInstantiateCallback with correct types.
7166 * gui-x.c (button_item_to_widget_value): Type correctness.
7168 * glyphs.c (bitmap_to_lisp_data): Type correctness.
7170 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
7171 (xbm_instantiate_1): Type correctness.
7172 (BUILD_GLYPH_INST): Type correctness.
7174 * fileio.c (Fsubstitute_in_file_name): Type correctness.
7177 (decode_coding_sjis):
7178 (decode_coding_big5):
7179 (decode_coding_ucs4):
7180 (decode_coding_utf8):
7181 (decode_coding_iso2022):
7182 (decode_coding_no_conversion):
7183 Make all decoding functions take an Extbyte * arg.
7184 (encode_coding_sjis):
7185 (encode_coding_big5):
7186 (encode_coding_ucs4):
7187 (encode_coding_utf8):
7188 (encode_coding_iso2022):
7189 (encode_coding_no_conversion):
7190 Make all encoding functions take a Bufbyte * arg.
7191 Use size_t instead of unsigned int for memory sizes.
7192 Only cast to unsigned char whenever dereferencing Extbyte *.
7194 * doc.c (unparesseuxify_doc_string): Type correctness.
7196 * console-x.c (split_up_display_spec):
7197 Rewrite without using details of internal string representation.
7198 (x_semi_canonicalize_device_connection): Type correctness.
7201 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
7202 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
7203 (HAVE_XFREE386): Removed.
7205 * buffer.h (DEC_CHARPTR): `const' correctness.
7206 (bufbyte_strcmp): New.
7207 (bufbyte_memcmp): New.
7209 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
7211 * buffer.h (XCHAR_OR_CHAR_INT):
7212 Always use inline function.
7213 Remove redundant type checking assert() - XINT will abort quite nicely.
7215 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
7217 * search.c (Freplace_match): Set newtext to an empty string.
7219 2000-10-10 Martin Buchholz <martin@xemacs.org>
7221 * s/decosf1-3.h: Remove #include of stropts.h
7222 * s/ptx.h: Remove #include of stropts.h
7223 * s/usg5-4.h: Remove #include of stropts.h
7226 Use stropts.h, not sys/stropts.h.
7227 Use strtio.h, not sys/strtio.h.
7229 2000-10-04 Martin Buchholz <martin@xemacs.org>
7231 * XEmacs 21.2.36 is released.
7233 2000-09-21 Andy Piper <andy@xemacs.org>
7235 * glyphs-x.c (x_redisplay_widget): make sure non-structural
7236 changes still involve copying the widget tree.
7237 (update_widget_face): make sure a change is register in the widget
7238 tree. Call update_tab_widget_face appropriately.
7239 (update_tab_widget_face): ditto.
7240 (x_tab_control_redisplay): make sure non-structural changes still
7241 involve copying the widget tree.
7243 2000-08-31 Daiki Ueno <ueno@unixuser.org>
7245 * lread.c (locate_file): Check the path element is non-nil.
7247 2000-10-02 Martin Buchholz <martin@xemacs.org>
7249 * lisp.h: Warning suppression for SCO compilers.
7251 * redisplay-tty.c (reset_tty_modes): Fix crash.
7252 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
7254 2000-09-27 Martin Buchholz <martin@xemacs.org>
7256 Big signal/process handling overhaul. Bugs fixed:
7257 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
7258 M-x comint-kill-subjob should work for both values nil and t of
7259 process-connection-type. It was broken on most platforms.
7260 Testing on Irix and Cygwin still needed. Other plaforms tested.
7261 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
7262 * process-unix.c: Signal/Process handling overhaul.
7263 (pty_name): make 64 bytes, as `expect' does, for paranoia.
7264 (allocate_pty): Use all available modern methods of allocating
7265 ptys, falling back to old style BSD allocation as a last resort.
7266 Use allegedly more secure Unix98 pty allocation by default.
7267 (allocate_pty_the_old_fashioned_way): New. the last resort.
7268 (unix_create_process): Push ptem, ldterm, ttcompat where
7269 available. Autoconfiscate.
7270 (try_to_initialize_subtty): New.
7271 (unix_kill_child_process): Proper signal handling for ptys on most
7272 platforms, using special knowledge of AIX, BSD, etc...
7273 (unix_create_process): Always disconnect_controlling_terminal() for
7274 subprocesses, whether using ptys or not.
7275 * process.h: Remove old getpt-dependent PTY code.
7276 * process.c (Fprocess_send_signal): New, obvious generic function.
7277 (decode_signal): New.
7278 (Finterrupt_process):
7282 (Fcontinue_process):
7283 (Fsignal_process): Use decode_signal.
7284 (process_send_signal):
7285 Many docstring corrections.
7286 Allow any signal to be sent to a process object.
7287 * config.h.in: Add symbols for big signal/process overhaul.
7288 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
7289 * sysproc.h: Include process-related headers, where available:
7290 sys/stropts.h sys/strtio.h pty.h libutil.h
7298 Remove old S&M pty stuff.
7299 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
7300 * systty.h: Simplify cpp hackery, improve comments.
7301 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
7303 * editfns.c (Fformat_time_string):
7304 Be a little more paranoid with the return value of ctime.
7306 * fileio.c (check_executable):
7308 Use symbolic constants X_OK, W_OK.
7310 * console-x.c (split_up_display_spec): Fix a warning.
7312 2000-10-02 Martin Buchholz <martin@xemacs.org>
7314 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
7315 * ntproc.c (sys_spawnve): make_string ==> build_string
7316 Small clarity improvements.
7318 2000-09-30 Martin Buchholz <martin@xemacs.org>
7320 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
7322 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
7324 * config.h.in (HAVE_STRCASECMP): Remove.
7326 2000-09-29 Martin Buchholz <martin@xemacs.org>
7328 * redisplay-output.c (redisplay_output_pixmap):
7329 Cleaner and possibly more 64-bit correct code.
7331 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
7333 * dumper.c (pdump_load_finish): move restoration of
7334 `noninteractive1' to emacs.c (main_1).
7335 * emacs.c (main_1): protect LISP-visible command-line flags
7338 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
7340 * Makefile.in.in (versionclean): Use EXE_TARGET and
7341 DUMP_TARGET instead of literal program names.
7343 2000-09-20 Martin Buchholz <martin@xemacs.org>
7345 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
7347 2000-09-19 Martin Buchholz <martin@xemacs.org>
7349 * *: Spelling mega-patch
7351 2000-09-19 Martin Buchholz <martin@xemacs.org>
7353 * fns.c (bad_bad_turtle):
7354 Delete "Eek!" comment, since we fixed the bug to which it refers.
7356 2000-09-16 Martin Buchholz <martin@xemacs.org>
7358 * alloca.c: Replace REGISTER with register.
7360 2000-09-16 Daiki Ueno <ueno@unixuser.org>
7362 * file-coding.c (ucs_to_char): Use countof.
7364 2000-09-16 Martin Buchholz <martin@xemacs.org>
7366 * file-coding.c: (ucs_to_char):
7367 (complex_vars_of_file_coding):
7368 Use countof instead of sizeof.
7369 Use CHECK_NATNUM instead of CHECK_INT.
7371 * sysdep.c (strcasecmp): Remove.
7372 * device-x.c (ascii_strcasecmp): New.
7373 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
7374 Avoid using non-standard non-portable strcasecmp.
7376 2000-09-16 Martin Buchholz <martin@xemacs.org>
7378 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
7379 * font-lock.c: remove reference to emacsfns.h.
7380 * search.c: small doc improvement.
7381 * event-Xt.c: correct file names in comments.
7382 * console-x.h Correct file names in comments.
7383 * frame.c: Correct file names in comments.
7384 * event-stream.c: remove Energize from comments.
7386 2000-09-15 Martin Buchholz <martin@xemacs.org>
7388 * symeval.h (DEFERROR_STANDARD):
7391 (DEFSYMBOL_NO_DUMP):
7392 (DEFSYMBOL_MULTIWORD_PREDICATE):
7393 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
7395 The construct &##name is not sensible C.
7396 Fixes compilation errors with Unixware native compiler.
7398 2000-09-14 Martin Buchholz <martin@xemacs.org>
7400 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
7401 (next_frame_internal): Removed. We now just have next_frame.
7403 Write a simpler and cleaner one-pass algorithm.
7404 Remove called_from_delete_device arg and #ifdefed-out code.
7406 Renamed from prev_frame. Update callers.
7407 Cleaned up to have an analogous implementation to next_frame.
7408 (other_visible_frames_internal): Remove the
7409 called_from_delete_device bogus arg, and hence, remove this
7410 function. Just use other_visible_frames().
7412 * window.c (Fnext_window):
7414 Since next_frame() is guaranteed to return a frame, remove check
7415 for nil inserted in previous patch.
7418 Make code look more like Fnext_window.
7420 Respect the `console' arg when iterating through windows.
7421 Fixes bug: (get-buffer-window buffer t device) not respecting
7423 This function needs more work, as others have pointed out.
7425 * frame.h: Rename prev_frame to previous_frame.
7426 device_matches_console_spec no longer takes a `frame' arg.
7431 Use EMACS_BLOCK_SIGNAL instead of sigblock.
7432 From "Golubev I. N." <gin@mo.msk.ru>.
7434 * make-src-depend: Fix typo.
7436 2000-09-13 Martin Buchholz <martin@xemacs.org>
7438 * window.c (Fnext_window):
7439 next_frame() might return nil, not a frame.
7441 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
7443 * frame.c (next_frame_internal):
7444 We've passed a frame if we've passed its device.
7446 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
7447 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
7449 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
7451 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7452 Allow option to suppress accelerators in menu/dialog items.
7453 (populate_or_checksum_helper): Pass dialog title through above.
7455 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
7457 * event-msw.c (mswindows_key_to_emacs_keysym):
7458 Add "pause" key, fix "menu" key.
7460 2000-09-09 Martin Buchholz <martin@xemacs.org>
7462 * eval.c (reinit_vars_of_eval):
7463 Increase max_lisp_eval_depth to 1000,
7464 required for thai-xtis.el to byte-compile under some circumstances.
7466 2000-09-04 Martin Buchholz <martin@xemacs.org>
7468 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
7471 2000-09-01 Martin Buchholz <martin@xemacs.org>
7473 * make-src-depend: Make the generated Makefiles smaller.
7475 * s/hpux.h (SETUP_SLAVE_PTY):
7476 Provide a %d in the format string for the errno argument.
7478 * editfns.c (Ftemp_directory):
7480 Avoid buffer overrun on very long file name.
7482 * input-method-xlib.c (XIM_init_device):
7483 6th parameter of XRegisterIMInstantiateCallback has different
7484 pointer types on different OSes, so simply cast to (void *).
7486 * unexhp9k800.c: Warning fixes. Fiddly changes.
7488 * sysdll.c (dll_open):
7489 shl_load will hang hard if passed a NULL filename.
7490 Simply return NULL for compatibility with dlopen.
7491 * sysdll.c: Conform to XEmacs coding standards.
7493 * sysdep.c (get_pty_max_bytes):
7494 Support pty input lines longer than 512 bytes on HP-UX 10.20.
7496 2000-08-31 Martin Buchholz <martin@xemacs.org>
7498 * tooltalk.c: Add #include <syssignal.h>
7500 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
7502 * s/hpux.h: Don't use undefined function sigunblock().
7504 2000-08-31 Martin Buchholz <martin@xemacs.org>
7506 * config.h.in: Add HAVE_BALLOON_HELP.
7507 * emacs.c: Use HAVE_BALLOON_HELP.
7508 * Makefile.in.in (x_objs):
7509 Make Balloon Help conditional on finding shape.h.
7511 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
7513 * syntax.c (regex_emacs_buffer_p): New variable.
7514 * syntax.h (regex_emacs_buffer_p): extern.
7515 * search.c (looking_at_1):
7517 (fast_string_match):
7518 (search_buffer): Set regex_emacs_buffer_p.
7519 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
7520 when before_dot, at_dot, after_dot.
7522 2000-08-23 Andy Piper <andy@xemacs.org>
7524 * gui-x.c (popup_selection_callback): Only set action_occurred
7525 when we really have an image instance.
7526 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
7528 2000-08-23 Andy Piper <andy@xemacs.org>
7530 * gui-msw.c (mswindows_handle_gui_wm_command): set
7532 * gui-x.c (popup_selection_callback): ditto.
7534 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
7535 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
7536 (struct Lisp_Image_Instance): add action_occurred flag.
7538 * glyphs.c (redisplay_subwindow): use action_occurred flag.
7539 (image_instance_changed): ditto.
7540 (reset_frame_subwindow_instance_cache): only unmap windows - do
7541 not remove them from the cache also.
7543 * glyphs-widget.c (tab_control_update): better debug.
7544 (progress_gauge_update): ditto.
7545 (layout_update): ditto.
7546 (layout_instantiate): ditto.
7547 (tab_control_order_only_changed): cope with null pending items.
7549 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
7550 debug. Force selection of an item when an action occurred. Cope
7551 with null pending_items.
7552 (mswindows_progress_gauge_redisplay): better debug.
7553 * glyphs-x.c (x_tab_control_redisplay): ditto.
7555 * redisplay.c (redisplay_frame): reset the frame cache if the
7558 * window.c (Fset_window_configuration): potentially re-enable
7560 (window_unmap_subwindows): need to finalize instances here since
7561 it is only used in mark_window_as_deleted.
7563 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
7565 * nas.c (SndOpenDataForReading):
7566 nas.c (WaveOpenDataForReading):
7567 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
7568 Somehow escaped from the 2000-08-14 patch.
7570 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
7572 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
7573 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
7575 2000-08-21 Andy Piper <andy@xemacs.org>
7577 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
7578 window if it is not already displayed.
7580 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
7581 it is not already displayed.
7583 * window.c (Fset_window_configuration): don't reset the frame
7586 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
7587 instances from the frame cache if we are actually finalizing them.
7588 (reset_frame_subwindow_instance_cache): reset frame cache only
7589 after unmapping everything.
7590 (map_subwindow): set displayed flag after mapping.
7592 2000-08-21 Martin Buchholz <martin@xemacs.org>
7594 * data.c (indirect_function):
7595 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
7597 * eval.c (function_argcount):
7598 Use original function when signaling errors.
7600 2000-08-18 Andy Piper <andy@xemacs.org>
7602 * frame.c (delete_frame_internal): use new
7603 free_frame_subwindow_instances name.
7605 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
7606 (add_tab_item): make return type correct.
7607 (mswindows_tab_control_instantiate): assert index of tab.
7608 (mswindows_tab_control_redisplay): Re-code to use
7609 gui_item_equal_sans_selected and gui_item_list_find_selected.
7611 * glyphs-widget.c (tab_control_update): Correct comment.
7613 * window.c (window_unmap_subwindows): use new
7614 unmap_subwindow_instance_cache_mapper.
7615 (window_unmap_subwindows_cache_mapper): deleted.
7616 (Fset_window_configuration): comparisons should now be with
7617 EQ. Preserve the subwindow instance cache across configuration
7619 (allocate_window): ditto.
7620 (make_dummy_parent): ditto.
7622 * glyphs.c (free_frame_subwindow_instances): rename from
7623 free_frame_subwindow_instance_cache. finalize all instances rather
7624 than just those in the display cache.
7625 (finalize_all_subwindow_instances): walk windows unmapping and
7626 finalizing subwindows.
7627 (unmap_subwindow_instance_cache_mapper): moved from
7628 window.c. Allow finalization as well as unmapping.
7630 * gui.c (gui_item_list_find_selected): new function.
7632 * gui.h (gui_item_list_find_selected): declare.
7634 * glyphs-x.c (x_tab_control_redisplay): pick tab
7635 explicitly. Re-code to use gui_item_equal_sans_selected and
7636 gui_item_list_find_selected.
7638 * glyphs-x.h: add lwlib-utils.h
7640 * buffer.c (Frecord_buffer): undo previous change.
7642 2000-08-09 Vin Shelton <acs@xemacs.org>
7644 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
7645 possible. Create temporary files more securely. The patch was
7646 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
7647 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
7648 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
7651 2000-08-07 Ben Wing <ben@xemacs.org>
7653 * getloadavg.c: remove duplicate (and windows-breaking)
7654 includes of fcntl.h and sys/file.h.
7656 * nt.c: remove duplicate getloadavg() definition.
7658 * sysdll.h (Qdll_filename_encoding): add missing stand-in
7661 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
7663 * eval.c (function_argcount): If function needs to be autoloaded
7664 actually use the loaded definition.
7667 2000-08-05 Ben Wing <ben@xemacs.org>
7669 * getloadavg.c: add prototype for getloadavg(). remove
7670 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
7671 of the code). remove duplicate header includes.
7673 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
7675 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
7676 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
7677 useful load average.
7679 * alloc.c (reinit_alloc_once_early): removed references to
7680 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
7681 the lisp vars are the only things referencing the malloc_sbrk_*
7682 vars, and they were already if 0'd out. these vars only exist
7683 in the older malloc.c, which is basically unused, and they're
7684 only for informational purposes.
7686 * m\*.h: removed useless VIRT_ADDR_VARIES.
7688 * m\powerpc.h: removed stray NO_ARG_ARRAY.
7690 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
7692 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
7693 color if the image is a mono pixmap.
7695 2000-07-30 Ben Wing <ben@xemacs.org>
7697 * Makefile.in.in (release):
7700 * buffer.c (directory_is_current_directory):
7701 * dired-msw.c (mswindows_get_files):
7703 * dired.c (Fdirectory_files):
7704 * dired.c (file_name_completion_stat):
7705 * dired.c (Ffile_attributes):
7706 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
7707 preprocessor tricks, to avoid problems on some machines
7710 * callproc.c (egetenv): GC docs.
7713 * console-msw.h (struct mswindows_dialog_id):
7714 * lrecord.h (lrecord_type):
7715 New object for use with MSW dialogs.
7717 * console.h (struct console_methods):
7718 New enable/disable frame methods, for proper modal dialogs.
7720 * device-msw.c (msprinter_default_printer): Fix to follow
7721 proper Mule conventions.
7724 * device-msw.c (signal_open_printer_error):
7725 * device-msw.c (msprinter_init_device):
7726 * device-msw.c (ensure_not_printing):
7727 * device-msw.c (plist_get_margin):
7728 * device-msw.c (Fmsprinter_select_settings):
7729 * device-msw.c (finalize_devmode):
7730 * device-msw.c (Fmsprinter_settings_despecialize):
7731 * device-msw.c (signal_enum_priner_error):
7732 * extents.c (decode_extent):
7733 * extents.c (decode_map_extents_flags):
7734 * extents.c (decode_extent_at_flag):
7735 * extents.c (Fextent_at):
7736 * extents.c (Fextents_at):
7737 * extents.c (symbol_to_glyph_layout):
7738 [[[[2]]]] Use structured errors.
7741 * dialog-msw.c (mswindows_is_dialog_msg):
7742 * dialog-msw.c (mark_mswindows_dialog_id):
7743 * dialog-msw.c (dialog_proc):
7744 * dialog-msw.c (handle_question_dialog_box):
7745 * dialog-msw.c (syms_of_dialog_mswindows):
7746 Define new object to clean up marking; use it as a dialog identifier.
7747 Call new delete-dialog-box-hook.
7749 * dialog-x.c (dbox_selection_callback):
7750 * dialog-x.c (dbox_descriptor_to_widget_value):
7751 * dialog-x.c (x_make_dialog_box_internal):
7752 Call new delete-dialog-box-hook.
7756 * dialog.c (syms_of_dialog):
7757 * dialog.c (vars_of_dialog):
7758 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
7761 * eval.c (signal_call_debugger):
7762 when noninteractive, output stack traces on the console instead
7763 of in a (never-seen) buffer.
7765 * eval.c (signal_type_error):
7766 * eval.c (invalid_argument_2):
7768 new funs for use w/structured errors.
7771 * event-Xt.c (x_to_emacs_keysym):
7772 * event-Xt.c (describe_event):
7773 * event-Xt.c (emacs_Xt_event_handler):
7774 * event-Xt.c (vars_of_event_Xt):
7776 * event-msw.c (mswindows_wnd_proc):
7777 * event-msw.c (vars_of_event_mswindows):
7778 rename {x,mswindows}-debug-events to debug-{}-events for
7779 consistency with other debug-foo variables.
7782 document next-event more clearly.
7784 * fileio.c (Ffile_name_directory):
7785 * fileio.c (Ffile_name_nondirectory):
7786 * fileio.c (Funhandled_file_name_directory):
7787 * fileio.c (file_name_as_directory):
7788 * fileio.c (Ffile_name_as_directory):
7789 * fileio.c (directory_file_name):
7790 * fileio.c (Fdirectory_file_name):
7791 * fileio.c (Fmake_temp_name):
7792 * fileio.c (Ffile_truename):
7793 * fileio.c (Fsubstitute_in_file_name):
7794 * fileio.c (expand_and_dir_to_file):
7795 * fileio.c (barf_or_query_if_file_exists):
7796 * fileio.c (check_executable):
7797 * fileio.c (Ffile_exists_p):
7798 * fileio.c (Ffile_writable_p):
7799 * fileio.c (Ffile_directory_p):
7800 * fileio.c (Ffile_regular_p):
7801 * fileio.c (Ffile_modes):
7802 * fileio.c (Ffile_newer_than_file_p):
7803 * fileio.c (Fverify_visited_file_modtime):
7804 * fileio.c (Fset_visited_file_modtime):
7805 * fileio.c (auto_save_1):
7810 * frame-msw.c (mswindows_init_frame_1):
7811 * frame-msw.c (mswindows_enable_frame):
7812 * frame-msw.c (error_frame_unsizable):
7813 * frame-msw.c (msprinter_init_frame_1):
7814 * frame-msw.c (msprinter_init_frame_3):
7815 * frame-msw.c (console_type_create_frame_mswindows):
7817 implement new enable/disable frame methods.
7820 * frame-x.c (x_enable_frame):
7821 * frame-x.c (console_type_create_frame_x):
7822 implement new enable/disable frame methods.
7825 * frame.c (Fdisable_frame):
7826 * frame.c (syms_of_frame):
7827 * frame.h (struct frame):
7828 implement new enable/disable frame methods/functions.
7833 * glyphs-msw.c (mswindows_widget_instantiate):
7834 comment that initial-focus should be implemented.
7837 * glyphs-widget.c (check_valid_instantiator):
7838 * glyphs-widget.c (check_valid_orientation):
7839 * glyphs-widget.c (check_valid_tab_orientation):
7840 * glyphs-widget.c (check_valid_justification):
7841 * glyphs-widget.c (check_valid_border):
7842 * glyphs-widget.c (check_valid_callback):
7843 * glyphs-widget.c (check_valid_int_or_function):
7844 * glyphs-widget.c (check_valid_string_or_vector):
7845 * glyphs-widget.c (check_valid_item_list_1):
7846 * glyphs-widget.c (widget_validate):
7847 * glyphs-widget.c (combo_box_validate):
7848 * glyphs-widget.c (widget_instantiate):
7849 * glyphs-widget.c (syms_of_glyphs_widget):
7850 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
7851 * glyphs-widget.c (image_instantiator_combo_box):
7852 * glyphs-widget.c (image_instantiator_scrollbar):
7853 * glyphs-widget.c (image_instantiator_tab_control):
7854 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
7856 support (unimplemented) keyword initial-focus.
7857 reindent long macros.
7859 * glyphs-x.c (x_redisplay_widget):
7860 * glyphs-x.c (x_button_instantiate):
7861 * glyphs-x.c (x_button_redisplay):
7862 * glyphs-x.c (x_progress_gauge_instantiate):
7863 * glyphs-x.c (x_edit_field_instantiate):
7864 * glyphs-x.c (x_combo_box_instantiate):
7865 * glyphs-x.c (x_tab_control_instantiate):
7866 * glyphs-x.c (x_label_instantiate):
7868 * gui-x.c (button_item_to_widget_value):
7869 * gui-x.c (gui_items_to_widget_values_1):
7870 * gui-x.c (gui_item_children_to_widget_values):
7871 * gui-x.c (gui_items_to_widget_values):
7873 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7874 add new flag to gui-parsing routines to indicate whether
7875 accelerator specs should be supported.
7877 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
7879 * glyphs.h (struct Lisp_Image_Instance):
7880 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
7881 add initial-focus flag.
7884 * gui.c (syms_of_gui):
7885 * gui.c (vars_of_gui):
7886 clean up menu-no-selection-hook.
7889 support delete-dialog-box-hook.
7891 * lread.c (Fload_internal):
7892 * lread.c (locate_file_in_directory_mapper):
7896 * lrecord.h (struct toolbar_button):
7897 * lrecord.h (syms_of_toolbar):
7898 document how to create a new object.
7900 * menubar-msw.c (mswindows_char_is_accelerator):
7901 may be called on frames w/o menus.
7903 * menubar.c (vars_of_menubar):
7904 clean up :filter docs.
7911 * process-nt.c (validate_signal_number):
7912 * process-nt.c (signal_cannot_launch):
7913 * process-nt.c (nt_create_process):
7914 * process-nt.c (nt_send_process):
7915 * process-nt.c (nt_kill_child_process):
7916 * process-nt.c (nt_open_network_stream):
7917 * process-nt.c (syms_of_process_nt):
7919 delete quote-handling. call new lisp code that does it better.
7921 * process-unix.c (connect_to_file_descriptor):
7922 * process-unix.c (allocate_pty):
7923 * process-unix.c (unix_send_process):
7924 * process-unix.c (unix_kill_child_process):
7925 * process-unix.c (unix_open_network_stream):
7926 * process-unix.c (unix_open_multicast_group):
7930 * process.c (Fstart_process_internal):
7931 (2). need to canonicalize process path even if absolute.
7933 * select-msw.c (symbol_to_ms_cf):
7934 * select-msw.c (ms_cf_to_symbol):
7935 * select-msw.c (cf_is_autofreed):
7936 * select-msw.c (mswindows_destroy_selection):
7938 * select.c (syms_of_select):
7940 support dibv5, fix bugs. (from Mike Alexander)
7942 * select.c (Fget_selection_internal):
7943 * select.c (select_convert_out):
7946 * sysdep.c (xemacs_stat):
7951 but keep original stat() here because we provide encapsulation
7955 * sysfile.h (fstat):
7956 remove stat garbage.
7960 don't include tchar.h. it's inappropriate because it makes
7961 compile-time distinctions when we want runtime distinctions.
7962 (we provide our own tchar replacements)
7965 use default object printer for toolbar-button.
7968 make sure we don't encapsulate.
7970 * window.c (vars_of_window):
7971 emphasize that temp-buffer-show-hook is obsolete.
7973 2000-08-05 Martin Buchholz <martin@xemacs.org>
7975 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
7976 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
7978 * events.c (Fevent_timestamp_lessp):
7979 Not 64-bit clean. Use EMACS_INT, not int.
7981 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
7983 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
7984 unsigned int and changed the last enum to
7985 lrecord_type_last_built_in_type.
7986 (lrecord_implementations_table): changed prototype to know how
7987 long the array is supposed to be.
7988 (lrecord_type_count): new unsigned int to keep track of the
7989 current number of lisp lrecord types.
7990 (DEFINE_EXTERNAL_LRECORD):
7991 (DECLARE_EXTERNAL_LRECORD): Added these two for external
7992 dynamic-modules to declare new lisp types. They are the same
7993 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
7994 int for each new type, and increment lrecord_type_count by 1.
7996 * alloc.c (lrecord_implementations_table): Changed to reference
7997 lrecord_type_last_built_in_type for the size of the array.
7998 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
8000 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
8002 * glyphs.h (check_valid_item_list): Renamed from
8003 check_valid_item_list_1.
8005 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
8007 * select.c (Qselect_coerce): New.
8008 * select.c (Vselection_coercion_alist): New.
8009 * select.c (syms_of_select): Declare.
8010 * select.c (get-selection-internal): Use it.
8011 Use the new select-coerce functionality.
8013 * select.c (select_coerce): New.
8014 * select.h (select_coerce): Declare.
8015 New function to coerce one type of data into another.
8017 2000-08-03 Martin Buchholz <martin@xemacs.org>
8019 * callproc.c (Fcall_process_internal):
8020 (Fcall_process_internal):
8021 * process-unix.c (unix_create_process):
8022 Save and restore the value of errno, so that error messages are accurate.
8024 2000-08-01 Martin Buchholz <martin@xemacs.org>
8026 * elhash.c (print_hash_table):
8027 Fix printing of hash tables to also use `key-and-value' instead of `t'.
8028 Prettify docstrings and indentation.
8030 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
8032 * window.c (Fwindow_pixel_edges): Subtract frame border and
8035 2000-07-31 Andy Piper <andy@xemacs.org>
8037 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
8038 will acknowledge the change.
8040 * glyphs.h: declare tab_control_order_only_changed.
8042 * glyphs-x.c (x_tab_control_redisplay): use
8043 tab_control_order_only_changed.
8045 * glyphs-widget.c (tab_control_order_only_changed): new function.
8047 * glyphs-msw.c (mswindows_tab_control_redisplay): use
8048 tab_control_order_only_changed.
8050 * gui.c (gui_item_equal_sans_selected): new function.
8051 (gui_item_equal): use it.
8053 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
8054 :properties in favor of :items..
8056 * glyphs-widget.c (check_valid_item_list): rename from
8057 check_valid_item_list_1.
8058 (check_valid_item_list_1): renamed.
8059 (combo_box_validate): deprecate :properties in favor of :items.
8060 (widget_instantiate): ditto.
8061 (tab_control_update): ditto.
8062 (image_instantiator_combo_box): ditto.
8063 (image_instantiator_tree_view): ditto.
8064 (image_instantiator_tab_control): ditto.
8065 (layout_post_instantiate): remove dead code.
8067 * print.c (debug_print_no_newline): only write to debugger if in
8070 * elhash.c (Fmake_hash_table): update doc string.
8072 * event-msw.c (mswindows_wnd_proc): don't allow processing of
8073 messages whilst in GC. This at least stops XEmacs crashing but has
8074 the potential for wierd behaviour.
8076 2000-07-31 Martin Buchholz <martin@xemacs.org>
8079 Make existence of s&m files optional.
8081 * s/bsd386.h: Remove HAVE_GETLOADAVG.
8082 * s/freebsd.h: Remove HAVE_GETLOADAVG.
8083 * s/gnu.h: Remove HAVE_GETLOADAVG.
8084 * s/netbsd.h: Remove HAVE_GETLOADAVG.
8085 * s/sol2.h: Remove HAVE_GETLOADAVG.
8086 * lisp.h: Remove getloadavg() declaration.
8088 Include <sys/loadavg.h> if available.
8089 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
8090 * config.h.in: Group together getloadavg()-related macros.
8091 Use only configure-time tests to detect getloadavg().
8093 2000-07-30 Martin Buchholz <martin@xemacs.org>
8095 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
8097 2000-07-25 Andy Piper <andy@xemacs.org>
8099 * syswindows.h: add tchar.h for native builds.
8101 * frame.c (syms_of_frame): remove set-glyph-image.
8103 * general-slots.h: add Qset_glyph_image.
8105 * glyphs-widget.c (layout_update): add domain arg to
8107 (syms_of_glyphs_widget): remove set-glyph-image.
8109 2000-07-23 Ben Wing <ben@xemacs.org>
8111 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
8114 2000-07-22 Andy Piper <andy@xemacs.org>
8116 * symsinit.h: add syms_of_win32().
8118 * gui-msw.c (syms_of_gui_mswindows): remove
8119 Fmswindows_shell_execute.
8120 (Fmswindows_shell_execute): moved to win32.c.
8122 * emacs.c (main_1): add syms_of_win32 ().
8124 * win32.c (init_potentially_nonexistent_functions): rewrite in
8125 compiler-friendly terms.
8126 (Fmswindows_shell_execute): move here from gui-msw.c.
8127 (syms_of_win32): new.
8129 * device-msw.c (Fmswindows_printer_list): clean up args to
8131 Don't include tchar under cygwin or mingw.
8132 (msprinter_default_printer): make cygwin-friendly.
8134 2000-07-21 Andy Piper <andy@xemacs.org>
8136 * glyphs-widget.c (image_instantiator_tree_view): use tab
8137 control's update function.
8138 (layout_property): new function. Retrieve items.
8140 * glyphs-msw.c (mswindows_tree_view_redisplay): new
8141 function. Re-populate the tree view from the pending items.
8143 * glyphs.c (instantiate_image_instantiator): Make sure the domain
8144 is designated the parent if the domain is an image instance. This
8145 is needed so that dirtiness can be cascade up the hierarchy and
8146 thus for layout children to be redisplayed correctly.
8147 (allocate_image_instance): rename glyph -> parent.
8149 * redisplay.h: change redisplay_output_layout signature.
8151 * redisplay-msw.c (mswindows_output_display_block): use domain
8154 * redisplay-x.c (x_output_display_block): use domain arg.
8156 2000-07-10 Andy Piper <andy@xemacs.org>
8158 * window.c (Fset_window_configuration): add comment.
8160 * redisplay-output.c (compare_runes):
8161 (redisplay_output_subwindow): redisplay rather than update subwindow.
8162 (redisplay_output_layout): ditto.
8164 * redisplay-msw.c (mswindows_frame_output_end):
8165 (mswindows_frame_output_end): make defer window pos optional.
8167 * lisp.h: add Flast.
8169 * glyphs.h (struct image_instantiator_methods): add dest_mask top
8170 normalize method. Change update method to be for changed
8171 instantiators. Add redisplay method. Change signature of layout
8173 (struct Lisp_Image_Instance): add instantiator.
8174 (IMAGE_INSTANCE_INSTANTIATOR): new.
8175 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
8176 (XIMAGE_INSTANCE_INSTANTIATOR): new.
8177 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
8180 (find_instantiator_differences): new function.
8181 (Fset_instantiator_property): new convenience function.
8182 (check_image_instance_structure): strictly check for vector
8184 (normalize_image_instantiator): make non-static.
8185 (instantiate_image_instantiator): pass on dest_mask and use new
8186 signatures for image_instance_layout and friends.
8187 (mark_image_instance): mark the instantiator. Mark the subwindow
8188 face not the widget face.
8189 (image_instance_equal): add instantiator.
8190 (image_instance_hash): ditto.
8191 (allocate_image_instance): ditto.
8192 (Fset_image_instance_property): removed.
8193 (Fimage_instance_file_name): ditto.
8194 (Fcolorize_image_instance): ditto.
8195 (image_instance_layout): add offsets to be set.
8196 (update_image_instance): new function. update an image instance
8197 from its changed instantiator.
8198 (inherit_normalize): add dest_mask.
8199 (xbm_normalize): ditto.
8200 (xface_normalize): ditto.
8201 (xpm_normalize): ditto.
8202 (text_update): set_property -> update.
8203 (image_instantiate): use the glyph identity as a hash key, not the
8205 (glyph_width): use new image_instance_layout signature.
8206 (glyph_ascent): ditto.
8207 (glyph_descent): ditto.
8208 (glyph_height): ditto.
8209 (glyph_query_geometry): ressurrect.
8210 (glyph_layout): ditto.
8211 (redisplay_subwindow): update -> redisplay.
8212 (syms_of_glyphs): add Fset_instantiator_property.
8213 (image_instantiator_format_create): set_property -> update.
8216 (autodetect_normalize): add dest_maks to signature.
8217 (x_redisplay_subwindow): update -> redisplay.
8218 (x_redisplay_widget): ditto.
8219 (x_button_redisplay): ditto.
8220 (x_progress_gauge_redisplay): ditto.
8221 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
8223 (console_type_create_glyphs_x): update -> redisplay.
8224 (image_instantiator_format_create_glyphs_x): ditto.
8227 (check_valid_instantiator): disallow glyphs in the instantiator,
8228 they must now be vectors.
8229 (check_valid_instantiator_list): ditto.
8230 (glyph_instantiator_to_glyph): use internal symbol rather than
8232 (widget_update): renamed from widget_set_property. Call cascaded
8234 (redisplay_widget): renamed from update_widget.
8235 (widget_layout): image_instance_layout now takes position as well
8237 (widget_normalize): ditto.
8238 (widget_instantiate): ditto.
8239 (tab_control_query_geometry) ditto.:
8240 (tab_control_update): renamed from tab_control_set_property.
8241 (progress_gauge_update): set_property -> update.
8242 (layout_normalize): rewrite so that child instantiators are
8244 (layout_update): new function. Create glyphs from the normalized
8245 children and cope with any other layout keywords. We do not
8246 instantiate children here that will be take care of by
8247 redisplay_output_layout.
8248 (layout_instantiate): call layout_update and not much else.
8249 (layout_post_instantiate): not sure whether this is needed
8251 (layout_query_geometry): query glyph geometry rather than
8252 image_instance geometry.
8253 (layout_layout): set offsets from pass in parameters. Use glyph
8254 geometry and layout functions rather than image instance ones.
8255 (native_layout_layout): ditto.
8256 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
8257 (image_instantiator_widget): set_property -> update.
8258 (image_instantiator_buttons): ditto.
8259 (image_instantiator_progress_guage): ditto.
8260 (image_instantiator_tab_control): ditto.
8261 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
8262 (image_instantiator_layout): add update method.
8264 * glyphs-msw.c (bmp_normalize):
8265 (mswindows_resource_normalize): add dest_mask so that it can be
8266 proprogated by layout_normalize.
8267 (begin_defer_window_pos): make optional because it may not be the
8268 right thing to do and it introduces differences with X.
8269 (mswindows_unmap_subwindow): ditto.
8270 (mswindows_map_subwindow): ditto.
8271 (mswindows_redisplay_subwindow): renamed from
8272 mswindows_update_subwindow.
8273 (mswindows_redisplay_widget): ditto.
8274 (mswindows_button_redisplay): renamed from
8275 mswindows_button_update. Update is now what the instantiation
8276 function does for a changed instantiator.
8277 (mswindows_progress_gauge_instantiate): set the progress value
8278 here if appropriate.
8279 (mswindows_tab_control_redisplay): cope with re-ordering of the
8280 members of the tab widget by simply selecting the new top
8281 widget. This makes things appear ok if you click on a tab.
8282 (mswindows_combo_box_instantiate): image_instance_layout now takes
8283 position as well as size.
8284 (mswindows_progress_gauge_redisplay): renamed from
8285 mswindows_progress_gauge_update.
8286 (console_type_create_glyphs_mswindows): fix update -> redisplay.
8287 (image_instantiator_format_create_glyphs_mswindows): ditto.
8289 * glyphs-eimage.c (jpeg_normalize):
8292 (tiff_normalize): add dest_mask so that it can be proprogated by
8297 (hash_table_weakness_validate):
8298 (decode_hash_table_weakness):
8299 (Fhash_table_weakness):
8301 (syms_of_elhash): use Ben's naming scheme for hashtable types..
8303 * console.h (struct console_methods): move update_* to
8306 2000-07-20 Ben Wing <ben@xemacs.org>
8308 * *.[ch] (XSETOBJ): remove unused middle argument.
8309 lisp-disunion.h: correct wrap_object() to one argument.
8311 2000-07-15 Ben Wing <ben@xemacs.org>
8314 * s/cygwin32.h (CYGWIN_CONV_PATH):
8315 Add missing logb prototype for v1.1.
8316 Use post-b20 names and alias to pre-b20 names when pre-b20.
8318 * s/windowsnt.h: [5].
8320 2000-07-15 Ben Wing <ben@xemacs.org>
8322 * Makefile.in.in (x_objs):
8323 * Makefile.in.in (sheap_objs):
8324 * Makefile.in.in (objs):
8325 added win32.o, cosmetic cleanups.
8327 * alloc.c (Fmake_byte_code):
8328 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
8329 etc. macros which declare their own args now.
8331 * alloc.c (syms_of_alloc):
8332 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
8335 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
8337 * buffer.c (Fget_file_buffer):
8338 Fixed GCPRO problem.
8340 * buffer.c (get_truename_buffer):
8341 Fixed comment about GC checking.
8343 * buffer.c (syms_of_buffer):
8344 Undeclared those dedicated frame funs.
8348 Define convenience macros for internal/external conversions.
8349 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
8350 and Qenvironment_variable_encoding for cleaner code.
8353 Remove dedicated-frame; in lisp.
8355 * bytecode.c (funcall_compiled_function):
8358 * bytecode.c (syms_of_bytecode):
8362 * console-msw.c (mswindows_show_console): Rewrote.
8364 * console-msw.c (Fmswindows_debugging_output): New.
8365 Sends to OutputDebugString (special MSWin debugger interface).
8367 * console-msw.c (Fmswindows_message_box):
8368 Fixed stupid bugs so it works when called from kill-emacs.
8370 * console-msw.c (syms_of_console_mswindows):
8371 Declare Fmswindows_debugging_output.
8374 New MSWin prototypes.
8376 * console-msw.h (struct mswindows_frame):
8377 New entry last-click-mods for improved button-modifier support.
8379 * console-msw.h (FRAME_MSWINDOWS_POPUP):
8380 New struct entry `popup' with corresponding accessor.
8383 * console-x.c (split_up_display_spec):
8384 * console-x.c (get_display_arg_connection):
8385 * console-x.c (x_semi_canonicalize_console_connection):
8386 * console-x.c (x_canonicalize_device_connection):
8387 [[[6]]]: Change char to more specific type.
8388 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
8390 * console-x.c (x_semi_canonicalize_console_connection):
8391 * console-x.c (x_canonicalize_device_connection):
8392 [[[9]]]: Fix up error signalling to use new structured error system.
8395 [[[4]]]: Define codesys aliases:
8396 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
8397 Qx_color_name_encoding, Qx_display_name_encoding.
8399 * console.h (struct console_methods):
8400 New method make_dialog_box_internal supersedes older
8401 popup_dialog_box method.
8404 Define many new errors, part of new structured errors.
8406 * data.c (init_errors_once_early):
8407 * data.c (syms_of_data):
8410 * device-msw.c (mswindows_init_device):
8411 [[[5]]]: Cleanup to support NT 3.51.
8413 * device-msw.c (decode_devmode): Cleanup.
8415 * device-msw.c (mswindows_handle_print_setup_dialog_box):
8416 * device-msw.c (mswindows_handle_print_dialog_box):
8417 * device-msw.c (mswindows_handle_page_setup_dialog_box):
8418 * device-msw.c (syms_of_device_mswindows):
8419 Delete the dialog box primitives recently introduced by Kirill and
8420 instead interface to general dialog box interface.
8423 * device-x.c (compute_x_app_name):
8424 * device-x.c (x_init_device):
8425 * device-x.c (Fx_valid_keysym_name_p):
8426 * device-x.c (Fx_set_font_path):
8430 * device.h (wrap_device): New.
8431 First of its kind; meant to replace XSETDEVICE.
8433 * dialog-msw.c: Many file-dialog symbols.
8435 * dialog-msw.c (mswindows_register_popup_frame): New.
8436 * dialog-msw.c (mswindows_is_dialog_msg): New.
8437 For supporting kbd traversal in dialog boxes.
8439 * dialog-msw.c (dialog_proc):
8440 Support hitting ESC in dialogs.
8442 * dialog-msw.c (struct):
8443 Common dialog box errors.
8445 * dialog-msw.c (handle_file_dialog_box): New.
8446 Add file dialog code.
8448 * dialog-msw.c (handle_question_dialog_box):
8449 Redo existing code to support new question dialog syntax.
8451 * dialog-msw.c (console_type_create_dialog_mswindows):
8452 We support new dialog console method.
8454 * dialog-msw.c (syms_of_dialog_mswindows):
8455 * dialog-msw.c (vars_of_dialog_mswindows):
8456 New file dialog symbols, vars.
8459 * dialog-x.c (maybe_run_dbox_text_callback):
8460 * dialog-x.c (dbox_descriptor_to_widget_value):
8461 * dialog-x.c (x_make_dialog_box_internal):
8462 * dialog-x.c (console_type_create_dialog_x):
8463 Mule-ize entire file.
8464 Redo to support question dialog syntax.
8468 * dialog.c (Fmake_dialog_box_internal):
8469 * dialog.c (syms_of_dialog):
8470 Kill old popup-dialog-box, replace with new primitive.
8471 Just call device method or signal error.
8473 * eldap.c (Fldap_open):
8474 * eldap.c (Fldap_search_basic):
8475 * eldap.c (Fldap_add):
8476 * eldap.c (Fldap_modify):
8481 * emacs.c (make_arg_list_1):
8482 * emacs.c (make_arg_list):
8483 Mule-ize call to dll_init().
8487 * emacs.c (make_argc_argv):
8488 * emacs.c (free_argc_argv):
8489 * emacs.c (init_cmdargs):
8491 * emacs.c (Fkill_emacs):
8492 * emacs.c (Fdump_emacs):
8493 Update comments about what can be used in syms_* etc.
8494 Call init_win32() when necessary.
8495 Fix up MS Win dialog box in kill-buffer to actually work right.
8506 * eval.c (condition_case_3):
8508 * eval.c (function_argcount):
8509 * eval.c (funcall_lambda):
8512 * eval.c (type_error): New.
8513 * eval.c (maybe_type_error): New.
8514 * eval.c (continuable_type_error): New.
8515 * eval.c (maybe_continuable_type_error): New.
8516 * eval.c (type_error_with_frob): New.
8517 * eval.c (maybe_type_error_with_frob): New.
8518 * eval.c (continuable_type_error_with_frob): New.
8519 * eval.c (maybe_continuable_type_error_with_frob): New.
8520 New functions for use with structured errors.
8523 * event-Xt.c (x_event_to_emacs_event):
8524 Buttons are now modifiers too.
8526 * event-Xt.c (emacs_Xt_current_event_timestamp):
8527 Implement new event method.
8528 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
8531 * event-msw.c (ntpipe_shove_writer): [5].
8532 * event-msw.c (mswindows_enqueue_mouse_button_event):
8533 * event-msw.c (mswindows_drain_windows_queue):
8534 * event-msw.c (mswindows_wnd_proc): [7].
8535 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
8536 * event-msw.c (mswindows_modifier_state):
8537 Throughout: support new button modifiers.
8539 * event-msw.c (emacs_mswindows_current_event_timestamp):
8540 Implement new event method.
8541 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
8544 * event-stream.c (event_stream_current_event_timestamp): New.
8545 * event-stream.c (maybe_kbd_translate): New functionality.
8546 * event-stream.c (vars_of_event_stream):
8547 Document new kbd-translate-table functionality.
8549 * event-stream.c (Fcurrent_event_timestamp): New.
8550 New primitive for use in fabricated events.
8551 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
8553 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
8556 * events.c (Fmake_event):
8557 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
8561 * events.c (format_event_object): fix gcc warnings.
8563 * events.c (Fevent_timestamp): Document new primitives.
8565 * events.c (TIMESTAMP_HALFSPACE): New.
8567 * events.c (Fevent_timestamp_lessp): New. New primitive for
8568 comparing timestamps correctly (half-space algorithm).
8570 * events.c (Fevent_modifier_bits): Doc fix.
8572 * events.c (Fevent_modifiers): Major doc addition.
8573 * events.c (event_x_y_pixel_internal): Typo fix.
8574 * events.c (syms_of_events): Declare new primitives.
8577 Update long comment for button modifiers, timestamps.
8579 * events.h (struct event_stream):
8580 New current_event_timestamp method.
8583 * extents.c (extent_in_region_p):
8584 * extents.c (decode_extent):
8585 * extents.c (Fset_extent_parent):
8586 * extents.c (decode_map_extents_flags):
8590 * extents.c (struct extent_at_arg):
8591 * extents.c (decode_extent_at_flag):
8592 * extents.c (extent_at_mapper):
8593 * extents.c (extent_at_bytind):
8594 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
8595 * extents.c (Fextents_at): New primitive. [9].
8596 * extents.c (symbol_to_glyph_layout): [9].
8597 Support new primitive `extents-at'.
8600 * extents.c (get_text_property_bytind):
8601 extent_at_bytind has another arg.
8604 * extents.c (syms_of_extents): New primitive.
8606 * file-coding.c (Fmake_coding_system): [1].
8607 * file-coding.c (subsidiary_coding_system): fix gcc warning
8608 * file-coding.c (syms_of_file_coding): [2].
8610 * fileio.c (Fexpand_file_name):
8611 * fileio.c (Fsysnetunam):
8612 * fileio.c (Ffile_exists_p):
8613 * fileio.c (Ffile_executable_p):
8614 * fileio.c (Fverify_visited_file_modtime):
8617 * fileio.c (syms_of_fileio): [2].
8619 * filelock.c (lock_file_1):
8620 * filelock.c (current_lock_owner):
8621 * filelock.c (lock_if_free):
8622 * filelock.c (lock_file):
8623 * filelock.c (unlock_file):
8626 * fns.c (concat): Fix gcc warning.
8629 * fns.c (Fold_member):
8631 * fns.c (Fold_memq):
8632 * fns.c (memq_no_quit):
8634 * fns.c (Fold_assoc):
8636 * fns.c (Fold_assq):
8637 * fns.c (assq_no_quit):
8639 * fns.c (Fold_rassoc):
8641 * fns.c (Fold_rassq):
8642 * fns.c (rassq_no_quit):
8644 * fns.c (Fold_delete):
8646 * fns.c (Fold_delq):
8647 * fns.c (delq_no_quit):
8648 * fns.c (Fremassoc):
8650 * fns.c (remassq_no_quit):
8651 * fns.c (Fremrassoc):
8652 * fns.c (Fremrassq):
8653 * fns.c (remrassq_no_quit):
8658 * frame-msw.c (mswindows_init_frame_1):
8659 * frame-msw.c (mswindows_delete_frame):
8660 Register popups with dialog code so keyboard traversing works.
8662 * frame-tty.c (tty_raise_frame_no_select): [1].
8665 * frame-x.c (x_set_frame_text_value):
8666 * frame-x.c (x_set_frame_properties):
8667 * frame-x.c (x_create_widgets):
8671 * frame.c (Fmouse_pixel_position): Minor doc fixes.
8673 * frame.h (wrap_frame): New.
8674 Macro like wrap_device.
8677 * general.c (SYMBOL):
8678 * general.c (syms_of_general):
8679 Major reorg. This is now just a wrapper and symbols themselves
8680 are listed in general-slots.h.
8682 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
8683 * glyphs-msw.c (mswindows_resource_instantiate): [5].
8685 * glyphs-msw.c (mswindows_native_layout_instantiate):
8686 Add DS_CONTROL so keyboard traversal will work.
8689 * glyphs-widget.c (syms_of_glyphs_widget):
8690 Move some symbols to general-slots.h.
8693 * glyphs-x.c (xbm_instantiate_1):
8694 * glyphs-x.c (x_xbm_instantiate):
8695 * glyphs-x.c (x_xface_instantiate):
8696 * glyphs-x.c (autodetect_instantiate):
8697 * glyphs-x.c (cursor_font_instantiate):
8698 * glyphs-x.c (x_update_widget):
8699 * glyphs-x.c (x_widget_instantiate):
8700 * glyphs.c (bitmap_to_lisp_data):
8701 * glyphs.c (pixmap_to_lisp_data):
8704 * glyphs.c (syms_of_glyphs):
8708 * gui-x.c (print_widget_value):
8709 * gui-x.c (menu_separator_style_and_to_external):
8710 * gui-x.c (add_accel_and_to_external):
8711 * gui-x.c (button_item_to_widget_value):
8712 * gui-x.c (gui_items_to_widget_values_1):
8713 * gui-x.c (gui_items_to_widget_values):
8714 * gui-x.c (syms_of_gui_x):
8715 * gui-x.c (vars_of_gui_x):
8716 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
8720 Muleize, prototype changes matching gui-x.c.
8723 * gui.c (separator_string_p):
8724 * gui.c (gui_item_add_keyval_pair):
8725 * gui.c (make_gui_item_from_keywords_internal):
8726 * gui.c (signal_too_long_error):
8727 * gui.c (parse_gui_item_tree_item):
8728 * gui.c (syms_of_gui):
8729 * gui.c (vars_of_gui):
8731 menu-no-selection-hook moved here (used by MSWin).
8732 Move some symbols to general-slots.h.
8736 * insdel.c (get_buffer_pos_char):
8737 * insdel.c (get_buffer_range_char):
8740 * keymap.c (keymap_lookup_directly):
8741 * keymap.c (keymap_store):
8742 * keymap.c (ensure_meta_prefix_char_keymapp):
8743 * keymap.c (describe_map):
8745 Support new button modifiers.
8747 * lisp-disunion.h (wrap_object):
8748 * lisp-disunion.h (XSETOBJ):
8749 Rename make_obj to wrap_object.
8752 * lisp-union.h (make_int):
8753 * lisp-union.h (make_char):
8754 Support wrap_object.
8757 * lisp.h (LIST_LOOP):
8758 * lisp.h (EXTERNAL_LIST_LOOP):
8759 * lisp.h (LIST_LOOP_2):
8760 * lisp.h (EXTERNAL_LIST_LOOP_1):
8761 * lisp.h (EXTERNAL_LIST_LOOP_2):
8762 * lisp.h (EXTERNAL_LIST_LOOP_3):
8763 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
8764 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8765 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
8766 * lisp.h (EXTERNAL_ALIST_LOOP_5):
8767 * lisp.h (EXTERNAL_ALIST_LOOP_6):
8768 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
8769 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
8770 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
8771 * lisp.h (struct Lisp_Symbol):
8772 * lisp.h (maybe_continuable_error_with_frob):
8773 Fix up section comments.
8774 Add new types for char to indicate usage.
8775 Delete symbols auto-generated from general-slots.h.
8776 Add prototypes for structured error functions.
8777 Add long comments describing looping macros and change interface
8778 so that lvalues are automatically declared.
8779 Add NO_DECLARE macro in case callers want to declare lvalues
8782 * lread.c (read_syntax_error):
8783 * lread.c (continuable_read_syntax_error):
8784 * lread.c (read_structure):
8785 * lread.c (sequence_reader):
8786 * lread.c (read_list_conser):
8787 * lread.c (read_compiled_function):
8788 Rename syntax_error and continuable_syntax_error to avoid clash
8789 with same-named structured error functions.
8791 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8792 * menubar-msw.c (populate_menu_add_item):
8793 * menubar-msw.c (populate_or_checksum_helper):
8798 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8799 Mule-ize whole file.
8801 * menubar.c (Fnormalize_menu_item_name): Add optimization.
8803 * mule-charset.c (Fmake_charset):
8804 * mule-wnnfns.c (Fwnn_set_param):
8807 * ntproc.c (create_child):
8808 * ntproc.c (Fwin32_set_current_locale):
8809 Add comments portending doom.
8812 * objects-msw.c (old_font_enum_callback_2):
8813 * objects-msw.c (font_enum_callback_1):
8814 * objects-msw.c (mswindows_enumerate_fonts):
8818 * objects-x.c (allocate_nearest_color):
8819 * objects-x.c (x_parse_nearest_color):
8820 * objects-x.c (x_initialize_color_instance):
8821 * objects-x.c (x_print_color_instance):
8822 * objects-x.c (x_finalize_color_instance):
8823 * objects-x.c (x_valid_color_name_p):
8824 * objects-x.c (x_initialize_font_instance):
8825 * objects-x.c (x_print_font_instance):
8826 * objects-x.c (valid_x_font_name_p):
8827 * objects-x.c (truename_via_FONT_prop):
8828 * objects-x.c (truename_via_random_props):
8829 * objects-x.c (truename_via_XListFonts):
8830 * objects-x.c (x_font_truename):
8831 * objects-x.c (x_font_instance_truename):
8832 * objects-x.c (x_font_instance_properties):
8833 * objects-x.c (x_list_fonts):
8834 * objects-x.c (x_find_charset_font):
8835 Mule-ize entire file.
8842 * print.c (std_handle_out_external):
8843 * print.c (debug_print_no_newline):
8844 * print.c (syms_of_print):
8845 Output to all debugger kinds in debug-print.
8846 Fix console-output code under MSWin to actually work.
8848 * process-nt.c (send_signal):
8849 * process-nt.c (nt_create_process):
8850 Use newer Unicode macros.
8852 * process-unix.c (unix_create_process):
8853 * process-unix.c (unix_canonicalize_host_name):
8854 * process-unix.c (unix_open_network_stream):
8860 * search.c (syms_of_search):
8863 * select-msw.c (mswindows_destroy_selection):
8866 * select-x.c (symbol_to_x_atom):
8869 * select.c (syms_of_select):
8872 * sound.c (Fplay_sound_file):
8876 * specifier.c (decode_specifier_type):
8877 * specifier.c (Fvalid_specifier_locale_type_p):
8878 * specifier.c (check_valid_locale_or_locale_type):
8879 * specifier.c (decode_locale):
8880 * specifier.c (decode_locale_type):
8881 * specifier.c (decode_locale_list):
8882 * specifier.c (check_valid_domain):
8883 * specifier.c (decode_specifier_tag_set):
8884 * specifier.c (Fcanonicalize_tag_set):
8885 * specifier.c (Fdefine_specifier_tag):
8886 * specifier.c (Fspecifier_tag_predicate):
8887 * specifier.c (check_valid_inst_list):
8888 * specifier.c (check_valid_spec_list):
8889 * specifier.c (decode_how_to_add_specification):
8890 * specifier.c (check_modifiable_specifier):
8891 * specifier.c (specifier_add_spec):
8892 * specifier.c (boolean_validate):
8893 * specifier.c (display_table_validate):
8896 * specifier.c (syms_of_specifier):
8897 Move some symbols to general-slots.h.
8901 * symbols.c (Fmapatoms):
8902 * symbols.c (Fapropos_internal):
8905 * symbols.c (set_default_buffer_slot_variable):
8906 * symbols.c (set_default_console_slot_variable):
8909 * symbols.c (defsymbol_massage_name_1):
8910 * symbols.c (defkeyword_massage_name):
8911 * symbols.c (deferror_1):
8912 * symbols.c (deferror):
8913 * symbols.c (deferror_massage_name_and_message):
8915 * symeval.h (DEFSYMBOL):
8916 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
8918 * symbols.c (syms_of_symbols):
8922 * symsinit.h (init_win32): New.
8923 Also new is syms_of_dialog_mswindows.
8926 Add new Unicode macros, missing Cygwin wide-char functions,
8927 convenience conversion macros for Qmswindows_tstr, macros for
8928 encapsulating required MSWin <-> Cygwin filename conversions,
8929 prototype for dynamically-extracted (not in NT 3.51) functions.
8934 * tooltalk.c (Fadd_tooltalk_message_arg):
8935 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
8936 * tooltalk.c (Fadd_tooltalk_pattern_arg):
8939 * tooltalk.c (syms_of_tooltalk):
8943 * unexnt.c (unexec):
8944 Fix up headers, declaration of unexec() to be more standard.
8946 2000-07-20 Martin Buchholz <martin@xemacs.org>
8948 * offix.h: Revert change to guard macros - they're used in offix.c!
8950 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8952 * lisp.h: Defsubred Fdelete.
8954 * console-msw.h: (msprinter_default_printer): Added.
8956 * console-msw.c (msprinter_canonicalize_console_connection):
8957 (msprinter_canonicalize_device_connection): Added.
8959 * device-msw.c (msprinter_default_printer):
8960 (Fmswingows_get_default_printer):
8961 (signal_enum_priner_error):
8962 (Fmswingows_printer_list): Added.
8964 2000-07-19 Martin Buchholz <martin@xemacs.org>
8966 * XEmacs 21.2.35 is released.
8968 2000-07-19 Martin Buchholz <martin@xemacs.org>
8970 * select-x.c (x_handle_selection_request):
8971 Text selected in xemacs and pasted into xterm failed to appear.
8972 Spelling fixes and cosmetic changes.
8974 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8976 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
8977 XEmacs frame (fix for doubling chars in dialog boxes).
8979 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
8981 * select.c (select_convert_in, select_convert_out):
8982 Don't call intern() every time.
8984 * select.c (Qselect_convert_in, Qselect_convert_out): New.
8985 * select.c (vars_of_select): Initialise them.
8987 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
8989 * select.c (selection-coercible-types): New.
8991 * select.c (own-selection-internal):
8992 * select.c (get-selection-internal):
8993 MULE bug fix - these should default to COMPOUND_TEXT and not
8994 STRING for MULE. I think.
8996 * select.c (select_convert_out): Use selection-coercible-types
8997 to find types that we can attempt to perform coercions on.
8999 2000-07-18 Martin Buchholz <martin@xemacs.org>
9003 Add coding: cookie to identify encoding.
9005 * mule-canna.c (CANNA_mode_keys): make static.
9006 Use proper prototypes, even for functions of no arguments.
9007 Remove external prototype for Fding().
9009 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
9011 * select.c (syms_of_select): Add missing DEFSUBR.
9013 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
9015 * select.c (get_selection_internal, own_selection_internal):
9016 Make the type default to STRING, rather than placing a nil type
9017 into Vselection_alist.
9019 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
9021 * gpmevent.c (tty_selection_exists_p):
9022 * gpmevent.c (tty_own_selection):
9023 Updated parameter lists.
9025 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
9027 * select.h (selection-alist): Removed declaration.
9029 * select.h (get_local_selection):
9030 * select.c (get_local_selection):
9033 * select.h (convert_selection): Removed declaration.
9034 * select.c (convert_selection): Removed.
9035 This function belongs in Lisp.
9037 * select.h (select_convert_in): Declare.
9038 * select.h (select_convert_out): Declare.
9039 * select.c (select_convert_in): New.
9040 * select.c (select_convert_out): New.
9041 New conversion functions for other files to call.
9043 * select.h (select_notify_buffer_kill): Declare.
9044 * select.c (select_notify_buffer_kill): New.
9045 New functions that get called from kill-buffer.
9047 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
9048 X-specific lisp code.
9050 * select.h: Declare some of the lisp-visible functions for
9053 * select.c (clean_local_selection_data): Removed. This was
9054 a disgusting function, and previously should have been in
9055 select-x.c in any case. The functionality is now provided
9056 in select-convert-from-integer (select.el).
9058 * select.c (available-selection-types): Fixed stupidity where
9059 INTEGER and ATOM got added twice. Also add STRING when we see an
9062 * select.c (get-selection-internal): Removed symbol stripping. No
9063 longer causes conversion when data comes from the internal cache.
9065 * select.c (syms_of_select): Added new functions.
9067 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
9068 error checking - previously this called abort!
9070 * select-x.c (x_own_selection): Changed comment.
9072 * select-x.c (x_handle_selection_request): Use select_convert_out.
9073 Don't mess with selection-alist; it's an internal variable of select.c.
9075 * select-x.c (x_get_foreign_selection): Use select_convert_in.
9077 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
9078 rather than messing with selection-alist.
9080 * select-msw.c (mswindows_get_foreign_selection):
9081 Use TO_INTERNAL_FORMAT rather than hacking.
9083 2000-07-14 Martin Buchholz <martin@xemacs.org>
9085 * process-unix.c (unix_open_multicast_group):
9086 (unix_open_multicast_group): Remove useless casts.
9088 2000-07-13 Martin Buchholz <martin@xemacs.org>
9090 * sound.c (Fplay_sound): Fix `unused variable' warning.
9092 * emacs.c (main): Use correct type for _environ on SCO5.
9094 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
9096 * console.h (own_selection_method):
9097 * console.h (selection_exists_p_method):
9098 * console.h (available_selection_types_method): New.
9099 * console.h (register_selection_data_type_method): New.
9100 * console.h (selection_data_type_name): New.
9102 * console-msw.h (mswindows_destroy_selection): Declare it. New
9103 function & alist to track GlobalAlloc()'d handles that need
9104 releasing when the clipboard data gets replaced or emptied.
9106 * event-msw.c (mswindows_wnd_proc): Call it.
9108 * lisp.h, general.c (Qappend): New symbol representing a
9111 * select.c (own-selection-internal):
9112 * select.c (selection-exists-p):
9113 * select.c (available-selection-types): New.
9114 * select.c (register-selection-data-type): New.
9115 * select.c (selection-data-type-name): New. New functions to deal
9116 with device-specific selection data formats.
9117 * select.c (selection-converter-out-alist): Renamed.
9118 * select.c (selection-converter-in-alist): New.
9119 * select.c (selection-appender-alist): New. Added new alists.
9120 * select.c (syms_of_select, vars_of_select): Added new symbols &
9122 * select.c (get_local_selection): Split.
9123 * select.c: Removed spurious type checking - selections may now be
9124 of any type, not just strings.
9125 * select.c (own-selection-internal):
9127 * select.h, select.c (convert_selection): New. Created
9128 convert_selection() function based on get_local_selection().
9129 * select.h, select.c (QCF_*): New symbols representing mswindows
9131 * select.h, select.c (Qreplace_all, Qreplace_existing): New
9132 symbols representing `how-to-add' modes.
9134 * select-msw.c (x_sym_p): New.
9135 * select-msw.c (symbol_to_ms_cf): New.
9136 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
9137 symbols & clipboard formats. Can also handle string names.
9138 * select-msw.c (mswindows_own_selection):
9139 * select-msw.c (mswindows_selection_exists_p):
9140 Added `data-type' parameter. Use it.
9141 * select-msw.c (mswindows_available_selection_types): New.
9142 * select-msw.c (mswindows_register_selection_data_type): New.
9143 * select-msw.c (mswindows_selection_data_type_name): New.
9144 * select-msw.c (mswindows_own_selection):
9145 * select-msw.c (mswindows_get_foreign_selection):
9146 * select-msw.c (mswindows_selection_exists_p): Rewrote.
9147 * select-msw.c (console_create_select_mswindows): Added new methods.
9148 * select-msw.c (mswindows_destroy_selection): New.
9149 * select-msw.c (Vhandle_alist): New list.
9150 * select-msw.c (mswindows_own_selection):
9152 * select-x.c (x_own_selection):
9153 * select-x.c (x_selection_exists_p):
9154 * select-x.c: Added some comments about maybe using new
9156 * select-x.c (x_own_selection):
9158 * specifier.c: Remove definition of Qappend (now in general.c)
9159 * specifier.c (syms_of_specifier): Remove Qappend.
9161 2000-07-12 Martin Buchholz <martin@xemacs.org>
9163 * config.h.in: Add socklen_t.
9165 * s/decosf4-0.h: No special compiler flags needed or desired.
9166 In particular, undefine _BSD for DEC OSF 4.0.
9168 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9170 * redisplay-msw.c (msprinter_frame_output_end): Added.
9171 (console_type_create_redisplay_mswindows): Referred the above.
9173 * frame.c (setup_frame_without_minibuffer): Do not create a
9174 default minibuffer frame on a printer device.
9176 * frame-msw.c (apply_dc_geometry): Added.
9177 (msprinter_start_page):
9178 (msprinter_init_frame_3):
9179 (msprinter_eject_page): Use it.
9181 * console-msw.h (struct msprinter_frame): Added pix_left and top,
9182 and removed residual duplex and orientation properties.
9184 2000-07-11 Martin Buchholz <martin@xemacs.org>
9186 * eval.c (function_argcount): Work around a DEC CC compiler bug.
9188 * unexalpha.c: Remove system prototypes from C sources!
9190 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
9192 * eval.c: Remove references to M-x edit-options in DEFUNs for
9193 `defvar' and `defconst'.
9195 2000-07-09 Martin Buchholz <martin@xemacs.org>
9197 * config.h.in: Remove SMART_INCLUDE hackery.
9200 * config.h.in: Don't use SMART_INCLUDE.
9202 * postgresql.h: Include libpq-fe.h here. Fix typo.
9203 * inline.c: Simply #include "postgresql.h"
9205 - Don't use SMART_INCLUDE
9206 - Use simply "const".
9207 - Use standard doc string conventions.
9208 - Use correct type for result of PQstatus.
9210 2000-07-09 Martin Buchholz <martin@xemacs.org>
9212 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
9214 C++ compilation changes.
9215 * config.h.in (EXTERN_C): Define.
9216 * config.h.in (not): This is also a C++ keyword.
9217 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
9218 * cm.c: Use EXTERN_C.
9219 * redisplay-tty.c: Use EXTERN_C.
9220 * sysdep.c: Use EXTERN_C. Remove Gould support.
9222 2000-07-09 Martin Buchholz <martin@xemacs.org>
9224 * general.c: Remove duplicate definition for Qfunction.
9226 2000-07-08 Ben Wing <ben@xemacs.org>
9228 * device-msw.c (msprinter_init_device):
9229 * device-msw.c (sync_printer_with_devmode):
9230 * device-msw.c (handle_devmode_changes):
9231 * device-msw.c (print_dialog_worker):
9232 * device-msw.c (Fmsprinter_apply_settings):
9233 * device-msw.c (hash_devmode):
9234 * device-msw.c (Fmsprinter_settings_despecialize):
9235 use Qmswindows_tstr, not Qctext.
9237 * vm-limit.c (check_memory_limits):
9238 avoid infinite loop printing warning messages.
9240 2000-07-05 Craig Lanning <lanning@scra.org>
9242 * Makefile.in.in: Add support for including the Windows resources
9243 when building with the cygwin and mingw targets.
9245 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
9246 not set or not correct.
9247 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
9248 (init_initial_directory): Don't try to use $PWD on the
9249 WIN32_NATIVE target.
9252 [[Add -mwindows to eliminate console window.]] not required --ben
9253 (HAVE_NATIVE_SOUND): removed; now handled by configure.
9254 (MAIL_USE_POP): removed; now handled by configure.
9256 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
9257 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
9258 (HAVE_NATIVE_SOUND): removed; now handled by configure.
9259 (MAIL_USE_POP): removed; now handled by configure.
9260 (ENCAPSULATE_STAT): from Dan Holmsand, added.
9261 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
9262 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
9264 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
9265 up from <winsock.h> via systime.h.
9266 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
9267 (getpagesize): from Dan Holmsand, added.
9268 Added #endif which was left dangling by Ben's mega patch; added
9269 comment to help prevent this in the future.
9271 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
9273 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9275 * console-msw.h (struct mswindows_device): Removed unnecessary
9276 cached device geometry values.
9277 Added update_tick and an accessor macro.
9278 (Lisp_Devmode): Added lrecord declaration.
9279 (struct msprinter_device): Contain devmode as a Lisp object.
9280 Added mswindows_get_selected_frame_hwnd();
9282 * console.h (struct console_methods): Indentation nitpicking.
9284 * device-msw.c (mswindows_init_device): Do not initialize geometry
9285 cache. Initialize update tick.
9286 (mswindows_device_system_metrics): Ask the device for its geometry.
9287 (global_free_2_maybe):
9288 (devmode_to_hglobal):
9289 (handle_printer_changes):
9290 (ensure_not_printing):
9291 (print_dialog_worker):
9292 (Fmsprinter_print_setup_dialog):
9293 (Fmsprinter_print_dialog):
9296 (Fmsprinter_page_setup_dialog): Added functions.
9297 (sync_printer_with_devmode):
9298 (handle_devmode_changes):
9299 (Fmsprinter_get_settings):
9300 (Fmsprinter_select_settings):
9301 (Fmsprinter_apply_settings):
9303 (Fmsprinter_settings_copy):
9304 (Fmsprinter_settings_despecialize):
9308 (hash_devmode): Added functions
9309 (syms_of_device_mswindows): Init devmode lrecord class.
9311 * device.h: Added an exfun for find-device.
9313 * event-msw.c (mswindows_wnd_proc): Do not update the cached
9314 geometry; although, recreate the device compatible DC.
9316 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
9317 (msprinter_init_frame_3):
9318 (msprinter_frame_property):
9319 (msprinter_internal_frame_property_p):
9320 (msprinter_frame_properties):
9321 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
9322 print job properties (will move to device settings).
9324 * lisp.h: Added symbols.
9326 * general.c (syms_of_general): Declared them.
9328 * hash.c (string_hash): Added.
9330 * lrecord.h (lrecord_type): Added devmode lrecord type.
9332 2000-07-02 Mike Sperber <mike@xemacs.org>
9334 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
9337 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
9339 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
9342 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
9344 * data.c (Fstring_to_number): Don't recognize floating point if
9347 2000-06-22 Martin Buchholz <martin@xemacs.org>
9349 * glyphs-widget.c (tab_control_query_geometry):
9350 (widget_query_geometry):
9351 (button_query_geometry):
9352 * glyphs.c (text_query_geometry):
9353 Enforce type correctness.
9355 2000-06-18 Martin Buchholz <martin@xemacs.org>
9357 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
9358 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
9360 2000-06-17 Martin Buchholz <martin@xemacs.org>
9362 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
9363 conflicts with gcc's fixincluded version of FOO.h.
9365 * glyphs.h (image_instance_geometry): Remove trailing `,'
9367 2000-06-08 Mike Alexander <mta@arbortext.com>
9369 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
9370 (shove_thread): Don't write the same output twice
9371 (make_ntpipe_output_stream): Increase priority of shove thread
9372 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
9374 (ntpipe_shove_closer): Don't delete the pipe until we're done with
9377 2000-06-12 Ben Wing <ben@xemacs.org>
9379 * s\mingw32.h (sigset):
9380 * s\windowsnt.h (sigset):
9381 rename msw_ to mswindows_ for consistency with general convention.
9383 2000-06-12 Ben Wing <ben@xemacs.org>
9386 * console-msw.c (mswindows_get_console_hwnd):
9387 * console-msw.c (mswindows_ensure_console_allocated):
9388 * console-msw.c (mswindows_hide_console):
9389 * console-msw.c (mswindows_show_console):
9390 * console-msw.c (mswindows_ensure_console_buffered):
9391 * console-msw.c (mswindows_output_console_string):
9392 * console-msw.c (mswindows_windows9x_p):
9394 * device-msw.c (mswindows_get_workspace_coords):
9395 * device-msw.c (mswindows_device_system_metrics):
9396 * dialog-msw.c (mswindows_popup_dialog_box):
9397 * event-msw.c (mswindows_wnd_proc):
9398 * frame-msw.c (mswindows_size_frame_internal):
9399 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9400 * menubar-msw.c (displayable_menu_item):
9401 * menubar-msw.c (mswindows_char_is_accelerator):
9403 * nt.c (mswindows_sigset):
9404 * nt.c (mswindows_sigrelse):
9405 * nt.c (mswindows_sigpause):
9406 * nt.c (mswindows_raise):
9407 * nt.c (timer_proc):
9409 * ntproc.c (find_child_console):
9410 * ntproc.c (sys_kill):
9412 * print.c (std_handle_out_external):
9413 * process-nt.c (find_child_console):
9414 * process-nt.c (send_signal_the_95_way):
9415 * process-nt.c (ensure_console_window_exists):
9416 * process-nt.c (nt_create_process):
9418 rename msw_ to mswindows_ for consistency with general convention.
9422 include nt.h, not syswindows.h.
9424 * nt.c (mswindows_fstat):
9425 * nt.c (mswindows_stat):
9426 prefix mswindows_ instead of attempting to directly override the
9427 library functions. fix declarations.
9430 include syswindows.h. move some sysdep.h stuff here.
9433 include syswindows.h, not <windows.h>.
9441 * sysdep.c (sys_fstat):
9442 * sysdep.c (sys_stat):
9443 call mswindows versions when appropriate.
9446 move mswin decls to nt.h.
9449 add long comment describing appropriate use of the various windows
9452 2000-06-11 Ben Wing <ben@xemacs.org>
9454 * device-x.c: Correct doc string for sixth arg of x-get-resource.
9456 2000-06-10 Ben Wing <ben@xemacs.org>
9458 * Makefile.in.in (release):
9459 Correction to make sure xemacs.exe always dumped when correct.
9463 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
9465 * buffer.c (set_buffer_internal):
9466 [[[[2]]]]: Remove HAVE_FEP code.
9468 * buffer.c (init_initial_directory):
9472 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
9476 * callproc.c (call_process_cleanup):
9477 * callproc.c (Fold_call_process_internal):
9478 * callproc.c (child_setup):
9479 * callproc.c (getenv_internal):
9480 * callproc.c (init_callproc):
9481 * callproc.c (vars_of_callproc):
9482 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
9483 __CYGWIN32__ -> CYGWIN.
9484 DOS_NT -> WIN32_NATIVE.
9485 Remove MSDOS support/references, converting to WIN32_NATIVE
9487 __MINGW32__ -> MINGW.
9488 Fix windows.h includes.
9489 Remove bogus HAVE_NTGUI.
9495 mswindows_message_outputted added for use in allowing startup
9496 errors on the console to be seen.
9498 * console-msw.c (msw_ensure_console_allocated):
9499 * console-msw.c (msw_output_console_string):
9500 * console-msw.c (DHEADER):
9501 * console-msw.c (DOPAQUE_DATA):
9502 * console-msw.c (DEVENT):
9503 * console-msw.c (DCONS):
9504 * console-msw.c (DCONSCDR):
9505 * console-msw.c (DSTRING):
9506 * console-msw.c (DVECTOR):
9507 * console-msw.c (DSYMBOL):
9508 * console-msw.c (DSYMNAME):
9511 * console-stream.c (stream_init_console):
9512 Fix text/binary problems.
9515 * device-msw.c (mswindows_finish_init_device):
9516 * device-msw.c (mswindows_delete_device):
9519 * device.c (handle_asynch_device_change):
9523 * dgif_lib.c (DGifOpenFileName):
9524 * dgif_lib.c (DGifOpenFileHandle):
9525 * dgif_lib.c (DGifGetLine):
9526 * dgif_lib.c (DGifGetPixel):
9527 Added config.h/lisp.h, fix up includes.
9534 * dired.c (file_name_completion):
9535 * dired.c (Ffile_attributes):
9536 * dired.c (syms_of_dired):
9540 * dumper.c (pdump_file_unmap):
9541 * dumper.c (pdump_load):
9545 * editfns.c (Ftemp_directory):
9546 * editfns.c (user_login_name):
9547 * editfns.c (Fuser_real_login_name):
9548 * editfns.c (get_home_directory):
9551 * elhash.c (finish_marking_weak_hash_tables):
9552 [[[[5]]]]: Fix GCC warnings.
9555 * emacs.c (mswindows_handle_hardware_exceptions):
9556 * emacs.c (make_arg_list_1):
9558 * emacs.c (Fkill_emacs):
9559 * emacs.c (Fdump_emacs):
9561 Fix problems with nested crashes, add long comment.
9563 * event-Xt.c (init_event_Xt_late):
9567 * event-msw.c (mswindows_dde_callback):
9568 * event-msw.c (mswindows_handle_sticky_modifiers):
9569 * event-msw.c (mswindows_wnd_proc):
9573 * events.c (character_to_event):
9577 * fileio.c (Ffile_name_directory):
9578 * fileio.c (Ffile_name_nondirectory):
9579 * fileio.c (directory_file_name):
9580 * fileio.c (Fexpand_file_name):
9581 * fileio.c (Fsubstitute_in_file_name):
9582 * fileio.c (Ffile_name_absolute_p):
9583 * fileio.c (check_executable):
9584 * fileio.c (Ffile_readable_p):
9585 * fileio.c (Ffile_accessible_directory_p):
9586 * fileio.c (Ffile_modes):
9587 * fileio.c (Funix_sync):
9588 * fileio.c (vars_of_fileio):
9591 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
9593 Expand getdefdir defn.
9594 Fix bogus rename() comment.
9596 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
9597 to use standard XEmacs include files, e.g. sysfile.h, rather
9598 than system-specific includes.
9604 * frame.c (vars_of_frame):
9608 * getloadavg.c (getloadavg):
9610 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
9611 (We don't use it elsewhere in the code; just add a comment.)
9618 * glyphs-msw.c (mswindows_resource_instantiate):
9621 * glyphs-x.c (x_native_layout_instantiate):
9624 * gui-msw.c (Fmswindows_shell_execute):
9633 * lread.c (locate_file_in_directory_mapper):
9640 * mem-limits.h (get_lim_data):
9652 * nt.c (rva_to_section):
9653 * nt.c (mswindows_executable_type):
9655 Fix closedir() defn.
9658 [[[[8]]]]: *_OK defs moved to sysfile.h.
9667 * print.c (std_handle_out_external):
9671 * process-nt.c (nt_create_process):
9673 try to fix process quoting somewhat.
9675 * process-unix.c (unix_create_process):
9679 * process.c (vars_of_process):
9686 * realpath.c (xrealpath):
9689 * redisplay-tty.c (init_tty_for_redisplay):
9699 * sheap.c (more_static_core):
9700 * sheap.c (report_sheap_usage):
9704 * signal.c (alarm_signal):
9711 * strftime.c (zone_name):
9714 * symsinit.h (init_sunpro):
9718 commctrl.h not in Cygwin b20.1.
9722 * sysdep.c (sys_subshell):
9723 * sysdep.c (init_baud_rate):
9724 * sysdep.c (emacs_get_tty):
9725 * sysdep.c (emacs_set_tty):
9726 * sysdep.c (tty_init_sys_modes_on_device):
9727 * sysdep.c (init_system_name):
9728 * sysdep.c (sys_open):
9729 * sysdep.c (interruptible_open):
9730 * sysdep.c (sys_fopen):
9731 * sysdep.c (sys_mkdir):
9732 * sysdep.c (sys_rename):
9733 * sysdep.c (get_process_times_1):
9740 * sysdir.h (DIRENTRY_NONEMPTY):
9743 * sysdll.c (dll_init):
9749 added text/binary defs.
9755 * sysproc.h (EDESTADDRREQ):
9756 * sysproc.h (poll_fds_for_input):
9773 Always define WIN32_LEAN_AND_MEAN.
9775 * unexcw.c (unexec):
9779 * unexec.c (copy_text_and_data):
9780 * unexec.c (adjust_lnnoptrs):
9784 * unexnt.c (_start):
9787 2000-06-07 Ben Wing <ben@xemacs.org>
9789 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
9790 was used only as a model. We've long since extracted any useful
9791 logic or code out of this. (I just did an exhaustive search.)
9793 * s\msdos.h: Removed.
9795 * s\windows95.h: Removed.
9797 2000-06-10 Ben Wing <ben@xemacs.org>
9801 Don't use extern with fun defs.
9805 Remove nt\inc include.
9806 Remove getdisk, getdefdir. (The former is unused, the latter
9807 expanded in fileio.h.)
9810 * s\windowsnt.h (WIN32_NATIVE):
9811 * s\windowsnt.h (HAVE_STRCASECMP):
9813 Add long comment about preprocessor changes.
9814 Remove getdisk, getdefdir. (The former is unused, the latter
9815 expanded in fileio.h.)
9817 2000-06-10 Ben Wing <ben@xemacs.org>
9826 Remove bogus/unused NO_SOCK_SIGIO.
9828 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
9830 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
9833 2000-06-04 Mike Sperber <mike@xemacs.org>
9835 * casetab.c (set_case_table): For `set-standard-case-table',
9836 actually deposit the new case tables where the rest of XEmacs can
9839 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
9841 * data.c (Faset): Don't cast XCHAR() to unsigned char.
9843 2000-06-05 Ben Wing <ben@xemacs.org>
9845 * callproc.c (child_setup): Don't do close_load_descs() under
9846 MS Windows. Put in a comment explaining why.
9848 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
9850 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
9851 Toolkit shell" which breaks `kill-compilation' on Windows NT
9852 native, retaining STDERR handling improvements.
9854 2000-06-01 Andreas Jaeger <aj@suse.de>
9856 * s/s390.h: Support for S390, based on a patch by Martin
9857 Schwidefsky <schwidefsky@de.ibm.com>.
9859 2000-05-30 Andy Piper <andy@xemacs.org>
9861 * window.c (allocate_window):
9862 (make_dummy_parent):
9863 (Fset_window_configuration): use new hashtable type.
9865 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
9866 (struct image_instantiator_methods):
9867 (struct Lisp_Image_Instance): make instance geometry signed.
9869 * glyphs.c (instantiate_image_instantiator):
9870 (image_instance_query_geometry):
9871 (image_instance_layout):
9872 (image_instance_layout):
9873 (query_string_geometry):
9874 (text_query_geometry):
9875 (image_instantiate):
9876 (image_instantiate):
9877 (cache_subwindow_instance_in_frame_maybe):
9878 (subwindow_query_geometry): make instance geometry signed.
9880 * glyphs-widget.c (widget_query_geometry):
9882 (button_query_geometry):
9883 (tree_view_query_geometry):
9884 (tab_control_query_geometry):
9885 (layout_query_geometry):
9887 (native_layout_layout): make instance geometry signed.
9889 2000-05-29 Olivier Galibert <galibert@pobox.com>
9891 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
9894 * general.c (syms_of_general): Add Qfull_assoc symbol.
9896 * data.c (finish_marking_weak_lists): Mark full-assoc lists
9898 (decode_weak_list_type): Decode full-assoc type.
9899 (encode_weak_list_type): Encode full-assoc type.
9900 (Fmake_weak_list): Update doc string.
9902 2000-05-30 Andy Piper <andy@xemacs.org>
9904 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
9906 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
9907 (decode_hash_table_weakness): ditto.
9908 (Fhash_table_weakness): ditto.
9909 (Fhash_table_type): ditto.
9910 (finish_marking_weak_hash_tables): ditto.
9911 (hash_table_weakness_validate): ditto.
9912 (syms_of_elhash): ditto.
9914 2000-05-28 Martin Buchholz <martin@xemacs.org>
9916 * XEmacs 21.2.34 is released.
9918 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
9920 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
9922 (updating_line_start_cache): Gone.
9923 (regenerate_window): Replace resetting of VERTICAL_CLIP by
9924 generic code to force a minimum of 1 line laid out in the
9927 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
9929 * glyphs.c (instantiate_image_instantiator): Check for initialized
9930 height & width no longer special cases IMAGE_NOTHING.
9931 (nothing_instantiate): Set height and width of instance.
9933 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
9935 * unexelf.c (unexec): Search for ".data" section.
9936 Initialize new_data2_offset from old_data_index.
9937 Remove redundant check for ElfW.
9939 2000-05-23 Andy Piper <andy@xemacs.org>
9941 * glyphs.c (get_image_instantiator_governing_domain): allow more
9942 specific domains as the governing domain rather than expecting an
9943 exact match. This fixes problems with layouts.
9945 2000-05-22 Andy Piper <andy@xemacs.org>
9947 * redisplay-output.c (compare_runes): check for non-images
9949 * glyphs.c (set_glyph_dirty_p): ditto.
9950 (update_glyph_cachel_data): ditto.
9952 * glyphs-widget.c (layout_post_instantiate): ditto.
9953 (layout_post_instantiate): ditto.
9955 * event-msw.c (mswindows_wnd_proc): warning removal.
9957 2000-05-12 Craig Lanning <CraigL@DyCon.com>
9959 * s\mingw32.h: Added #undef for CLASH_DETECTION.
9961 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
9963 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
9965 * nt.c (rva_to_section): mingw32 needs rva_to_section.
9966 (mswindows_executable_type): mingw32 now has enough headers for
9969 2000-05-20 Andy Piper <andy@xemacs.org>
9971 * console-msw.c (mswindows_output_last_error): ; -> ,
9973 2000-05-12 Andy Piper <andy@xemacs.org>
9975 * console-msw.c (FROB): compare ints with ints.
9977 2000-05-11 Andy Piper <andy@xemacs.org>
9979 * glyphs-x.c (x_finalize_image_instance): make minimal build
9982 2000-05-20 Ben Wing <ben@xemacs.org>
9985 * event-Xt.c (vars_of_event_Xt):
9986 move modifier-keys-are-sticky to event-stream.c.
9989 * event-msw.c (mswindows_enqueue_mouse_button_event):
9990 * event-msw.c (key_needs_default_processing_p):
9991 * event-msw.c (XEMSW_LCONTROL):
9992 * event-msw.c (mswindows_handle_sticky_modifiers):
9993 * event-msw.c (FROB):
9994 * event-msw.c (clear_sticky_modifiers):
9995 * event-msw.c (output_modifier_keyboard_state):
9996 * event-msw.c (output_alt_keyboard_state):
9997 * event-msw.c (mswindows_wnd_proc):
9998 * event-msw.c (mswindows_modifier_state):
9999 * event-msw.c (emacs_mswindows_handle_magic_event):
10000 implement sticky modifiers.
10003 * event-stream.c (vars_of_event_stream):
10004 move modifier-keys-are-sticky here.
10007 add CHECK_FUNCTION.
10010 implement map-range-table.
10013 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
10015 * redisplay-tty.c (reset_tty_modes):
10016 (tty_redisplay_shutdown): Adjust argument type to
10017 tty_frame_output_end.
10019 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
10021 * eval.c (Fbacktrace): Don't output a line with only right
10024 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
10026 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
10027 (Fpq_reset_poll): Ditto.
10029 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
10031 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
10033 2000-05-16 Ben Wing <ben@xemacs.org>
10036 * buffer.c (dfc_convert_to/from_internal_format):
10037 * buffer.c (reinit_vars_of_buffer):
10038 Fix conversion functions to allow reentrancy.
10041 * console-msw.c (mswindows_output_last_error):
10042 New fun, generally useful -- output a human-readable
10043 version of GetLastError() on the console.
10046 * console-msw.h (struct mswindows_frame):
10047 Changes for DeferWindowPos. Declare mswindows_output_last_error().
10049 * console-stream.c (stream_output_begin):
10050 * console-stream.c (stream_output_end):
10051 * console-stream.c (stream_output_vertical_divider):
10052 * console-stream.c (stream_clear_region):
10053 * console-stream.c (stream_flash):
10054 * console-stream.c (console_type_create_stream):
10055 Delete blank stream methods, not needed.
10057 * console.h (struct console_methods):
10058 Split begin/end methods into window and frame.
10061 * event-msw.c (mswindows_handle_paint):
10062 * event-msw.c (output_alt_keyboard_state):
10063 * event-msw.c (mswindows_wnd_proc):
10064 * event-msw.c (vars_of_event_mswindows):
10065 Comment about problems with ignored-expose.
10066 Define mswindows-debug-events; not really implemented.
10068 * frame-msw.c (mswindows_init_frame_1):
10072 * glyphs-msw.c (begin_defer_window_pos):
10073 * glyphs-msw.c (mswindows_unmap_subwindow):
10074 * glyphs-msw.c (mswindows_map_subwindow):
10075 * glyphs-msw.c (mswindows_resize_subwindow):
10076 Use DeferWindowPos to reduce flashing when mapping/unmapping.
10078 * glyphs.c (make_image_instance_1):
10081 * gutter.c (Fredisplay_gutter_area):
10082 Use new begin/end methods.
10084 * lisp.h (Dynarr_new2):
10088 * redisplay-msw.c (mswindows_frame_output_begin):
10089 * redisplay-msw.c (mswindows_frame_output_end):
10090 * redisplay-msw.c (console_type_create_redisplay_mswindows):
10091 New begin/end methods -- handle DeferWindowPos.
10093 * redisplay-output.c (redisplay_move_cursor):
10094 * redisplay-output.c (redraw_cursor_in_window):
10095 * redisplay-output.c (redisplay_update_line):
10096 * redisplay-output.c (redisplay_output_window):
10097 New begin/end methods.
10100 * redisplay-tty.c (tty_frame_output_begin):
10101 * redisplay-tty.c (tty_frame_output_end):
10102 * redisplay-tty.c (console_type_create_redisplay_tty):
10103 New begin/end methods.
10106 * redisplay-x.c (x_window_output_begin):
10107 * redisplay-x.c (x_window_output_end):
10108 * redisplay-x.c (console_type_create_redisplay_x):
10109 New begin/end methods.
10111 * redisplay.c (redisplay_frame):
10112 * redisplay.c (Fredisplay_echo_area):
10113 New begin/end methods.
10114 use MAYBE_DEVMETH for clear_frame; it may not exist.
10116 * window.h (WINDOW_XFRAME):
10117 WINDOW_XFOO macros -- get locale and decode struct pointer.
10120 2000-05-12 Ben Wing <ben@xemacs.org>
10123 * emacs.c (ensure_no_quitting_from_now_on):
10124 * emacs.c (fatal_error_signal):
10125 * emacs.c (mswindows_handle_hardware_exceptions):
10127 * emacs.c (Fkill_emacs):
10128 * emacs.c (shut_down_emacs):
10129 * emacs.c (assert_failed):
10130 various improvements in fatal error handling.
10133 move preparing_for_armageddon to emacs.c.
10136 declare fatal_error_in_progress.
10139 * print.c (std_handle_out_external):
10140 * print.c (std_handle_out_va):
10141 * print.c (stderr_out):
10142 * print.c (stdout_out):
10143 use console under mswin when no standard output.
10144 don't do code conversion during fatal error.
10146 * scrollbar.c (Fscrollbar_page_up):
10147 * scrollbar.c (Fscrollbar_page_down):
10148 fix missing else. reindent.
10150 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
10154 * glyphs.h (GLYPH_CACHEL_DESCENT):
10155 (GLYPH_CACHEL_DESCENT):
10156 (GLYPH_CACHEL_DESCENT):
10157 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
10158 used in case these are inline functions.
10159 Use more absurd values to error check.
10161 include window.h for error check functions.
10163 2000-05-11 Ben Wing <ben@xemacs.org>
10165 * cmdloop.c (Freally_early_error_handler):
10166 Display message box under windows; otherwise, message will disappear
10167 before it can be viewed.
10170 * console-msw.c (Fmswindows_message_box):
10171 * console-msw.c (FROB):
10172 * console-msw.c (syms_of_console_mswindows):
10173 Define new fun `mswindows-message-box'.
10174 #### I will merge this into `popup-dialog-box'; just give me
10178 * general.c (syms_of_general):
10179 Some new symbols used in `mswindows-message-box'.
10182 * glyphs.c (Fset_image_instance_property):
10183 put warning in this fun.
10186 * glyphs.h (GLYPH_CACHEL_WIDTH):
10187 * glyphs.h (GLYPH_CACHEL_ASCENT):
10188 * glyphs.h (GLYPH_CACHEL):
10189 * glyphs.h (GLYPH_CACHEL_GLYPH):
10190 define error-checking versions to try to catch a bug i've seen --
10191 redisplay gets in an infinite loop because the glyph width of the
10192 continuation glyph is 65535.
10195 Extern message-box stuff.
10197 * window.c (allocate_window):
10198 * window.c (make_dummy_parent):
10199 * window.c (Fset_window_configuration):
10200 Use EQUAL not EQ for subwindow caches to make them work a bit
10201 better. (Something is still very broken.)
10204 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
10206 * glyphs.c (image_instantiate): Suppress gcc warnings.
10207 (Fmake_image_instance): Fix doc string.
10208 * specifier.c (Fmake_specifier): Ditto.
10210 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
10212 * paths.h.in (PATH_LOCK): Removed.
10213 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
10214 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
10216 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
10218 * fns.c (Ffeaturep): Update e-mail address in doc-string.
10219 Document (featurep '(and xemacs 21.02)).
10221 2000-05-09 Ben Wing <ben@xemacs.org>
10223 * buffer.c (complex_vars_of_buffer):
10224 update modeline-format doc.
10227 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
10230 timeline of all released versions of Emacs, for use in creating
10231 authorship comments and in synching up.
10233 * glyphs-widget.c (image_instantiator_buttons):
10234 * glyphs-widget.c (image_instantiator_edit_fields):
10235 * glyphs-widget.c (image_instantiator_combo_box):
10236 * glyphs-widget.c (image_instantiator_scrollbar):
10237 * glyphs-widget.c (image_instantiator_progress_guage):
10238 * glyphs-widget.c (image_instantiator_tree_view):
10239 * glyphs-widget.c (image_instantiator_tab_control):
10240 * glyphs-widget.c (image_instantiator_labels):
10241 * glyphs-widget.c (image_instantiator_layout):
10242 * glyphs-widget.c (image_instantiator_native_layout):
10243 rename decode_domain method to governing_domain.
10246 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
10247 * glyphs.c (add_entry_to_device_ii_format_list):
10248 make sure we don't put an entry more than once into the list.
10249 * glyphs.c (check_instance_cache_mapper):
10250 *************************************************************
10251 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
10253 *************************************************************
10254 * glyphs.c (get_image_instantiator_governing_domain):
10255 clean up, expand on new concept of governing domain.
10256 * glyphs.c (instantiate_image_instantiator):
10257 * glyphs.c (allocate_image_instance):
10258 use governing_domain instead of cache_domain in naming.
10259 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
10260 * glyphs.c (make_image_instance_1):
10261 * glyphs.c (Fmake_image_instance):
10262 allow for any domain (not just device), and process the
10263 governing domain correctly. very big doc fix.
10264 * glyphs.c (Fimage_instance_domain):
10265 new primitive, to retrieve the governing domain of an image instance.
10266 * glyphs.c (image_instantiate):
10267 use new governing_domain stuff. this fixes a crash you could get
10268 by instantiating certain widget glyphs in frame locales. (should
10269 signal an error instead of crashing.)
10270 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
10271 * glyphs.c (Fglyphp): clean up doc.
10272 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
10273 * glyphs.c (syms_of_glyphs):
10274 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
10275 * glyphs.c (image_instantiator_format_create): add some comments about
10277 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
10278 for current-display-table. (Apparently Hrjove implemented in 1998 a
10279 design I wrote up in 1996, but didn't update the doc string.)
10281 * glyphs.h: clean up a doc string.
10282 * glyphs.h (governing_domain):
10283 * glyphs.h (struct image_instantiator_methods):
10284 changes for governing_domain stuff.
10287 * gutter.c (Fgutter_specifier_p):
10288 * gutter.c (Fgutter_size_specifier_p):
10289 * gutter.c (Fgutter_visible_specifier_p):
10291 * objects.c (Fcolor_specifier_p):
10292 * objects.c (Ffont_specifier_p):
10293 * objects.c (Fface_boolean_specifier_p):
10294 doc strings moved to make-*-specifier.
10296 * redisplay.c (add_disp_table_entry_runes_1):
10297 * redisplay.c (generate_fstring_runes):
10298 * redisplay.c (screen):
10299 add random comments and doc strings.
10302 * specifier.c (Fmake_specifier):
10303 major overhaul of this doc string.
10305 * specifier.c (Fvalid_specifier_domain_p):
10306 comment about the bogosity of image instances being domains.
10307 * specifier.c (decode_domain):
10308 now non-static, used in glyphs.c.
10309 * specifier.c (specifier_instance):
10310 comment about the bogosity of image instances being domains.
10311 * specifier.c (Fgeneric_specifier_p):
10312 move doc string to make-generic-specifier.
10313 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
10317 * specifier.h (DOMAIN_FRAME):
10318 * specifier.h (DOMAIN_LIVE_P):
10319 * specifier.h (DOMAIN_XDEVICE):
10321 add comments about problems with these macros.
10322 prototype for decode_domain.
10325 * toolbar.c (Ftoolbar_specifier_p):
10326 move doc string to `make-toolbar-specifier'.
10328 * window.c (window_unmap_subwindows_cache_mapper):
10329 *************************************************************
10330 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
10332 *************************************************************
10334 2000-05-09 Andy Piper <andy@xemacs.org>
10336 * glyphs.h: declare reset_frame_subwindow_instance_cache.
10338 * window.c (Fset_window_configuration): reset the frame subwindow
10339 cache and re-initialize the window subwindow caches.
10341 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
10343 2000-05-09 Ben Wing <ben@xemacs.org>
10345 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
10348 2000-04-26 Mike Woolley <mike@bulsara.com>
10350 * ntheap.c: Changed recreate_heap to limit the amount reserved
10351 for the heap to that which is actually available. Also now
10352 displays a message box (with some dignostics) in the event that
10353 it still can't start.
10355 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
10357 * callproc.c (Fold_call_process_internal): GCPRO path
10359 2000-05-08 Jan Vroonhof <jan@xemacs.org>
10361 Patch by Bill Perry.
10363 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
10364 back data instead of #ifdef.
10365 (Fscrollbar_page_down): ditto.
10367 2000-05-07 Ben Wing <ben@xemacs.org>
10370 Kludge for defining Qmswindows_tstr.
10373 * nt.c (open_input_file):
10374 * nt.c (open_output_file):
10375 * nt.c (rva_to_section):
10376 * nt.c (mswindows_executable_type):
10377 Move all memory-mapped-file routines here (some were in unexnt.c,
10378 which is bad because they are used by process-nt.c, and unexnt
10379 won't be around when portable dumping). Synched the above routines
10383 Removed ifdef'd out bogus code.
10384 Fixed some prototypes.
10386 * nt.h (file_data):
10387 * nt.h (OFFSET_TO_RVA):
10388 * nt.h (RVA_TO_OFFSET):
10389 * nt.h (RVA_TO_PTR):
10390 Moved the memory-mapped-file structures, macros and prototypes
10391 here, to parallel nt.c. ntheap.h should really be removed
10392 entirely, and it's a non-portable-dumper specific file.
10394 * ntheap.h (round_to_next):
10395 Moved the memory-mapped-file structures, macros and prototypes
10398 * ntproc.c (compare_env):
10399 Moved rva_to_section and mswindows_executable_type to nt.c.
10400 Moved compare_env to process-nt.c.
10401 ntproc.c will die, one day.
10403 * ntproc.c (sys_spawnve):
10404 Account for win32_ -> mswindows_.
10407 * process-nt.c (struct nt_process_data):
10408 * process-nt.c (ensure_console_window_exists):
10409 * process-nt.c (compare_env):
10410 * process-nt.c (nt_create_process):
10411 * process-nt.c (nt_kill_process_by_pid):
10412 * process-nt.c (syms_of_process_nt):
10413 * process-nt.c (vars_of_process_nt):
10414 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
10415 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
10416 changes). Eliminate our old `nt-quote-process-args' mechanism.
10417 Synch up nt_create_process with FSF 20.6 sys_spawnve.
10418 Move compare_env here from ntproc.c.
10420 * process.c (Fprocess_send_region):
10421 Takes an optional fourth argument, BUFFER, which should fix some
10422 problems with call-process.
10425 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
10428 Move ICC_BAR_CLASSES to syscommctrl.h.
10429 Add preliminary macros for MSWindows/Mule. More to come.
10432 * unexnt.c (unexec):
10433 open_output_file moved to nt.c.
10436 2000-05-05 Andy Piper <andy@xemacs.org>
10438 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
10439 instance from the frame cache also since GC may catch up too late
10440 to make frame deletion sane.
10442 2000-05-04 Andy Piper <andy@xemacs.org>
10444 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
10445 (x_finalize_image_instance): ungcpro on deletion.
10447 * glyphs.c (image_instantiator_format_create): give pointers a
10448 query geometry method so that the geometry is at least set.
10450 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
10451 initialize layouts if using widgets.
10453 2000-05-03 Andy Piper <andy@xemacs.org>
10455 * nt.c: remove bogus reference to sysmmsystem.h
10457 * gui-x.c (popup_selection_callback): fix no selection abort.
10459 2000-05-02 Andy Piper <andy@xemacs.org>
10461 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
10462 (mswindows_widget_instantiate): ditto.
10464 * glyphs-widget.c (initialize_widget_image_instance): initialize
10465 children correctly.
10466 (widget_instantiate): cope with children and items in the same
10469 * glyphs.c (mark_image_instance): cope with children as a first
10471 (image_instance_equal): ditto.
10472 (image_instance_hash): ditto.
10473 (image_instance_changed): ditto.
10475 2000-04-30 Andy Piper <andy@xemacs.org>
10477 * glyphs.c (subwindow_query_geometry): new function. Return some
10479 (subwindow_instantiate): don't assign dimensions if none have been
10481 (image_instantiator_format_create): add subwindow_query_geometry.
10482 (print_image_instance): cope with layouts as widgets.
10484 2000-04-29 Andy Piper <andy@xemacs.org>
10486 * frame.c (delete_frame_internal): call
10487 free_frame_subwindow_instance_cache so that all subwindows are
10488 finalized before their parent.
10489 (mark_frame): remove subwindow_cachels.
10490 (Fmake_frame): remove subwindow_cachel manipulation.
10491 (allocate_frame_core): subwindow_instance_cache is a weak list.
10492 (delete_frame_internal): set subwindow_instance_cache to nil.
10494 * glyphs-msw.c (mswindows_finalize_image_instance): make double
10496 (mswindows_finalize_image_instance): use the device
10497 not the domain as the domain may have died already.
10499 * glyphs-x.c (x_finalize_image_instance): ditto.
10500 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
10503 * redisplay-output.c (redisplay_unmap_subwindows): update for
10504 subwindow instance cache as a weak list.
10505 (redisplay_unmap_subwindows_maybe): ditto.
10506 (redisplay_unmap_subwindows_except_us): ditto.
10508 * glyphs.c (unmap_subwindow): error checking will check the domain
10509 so don't deal with it here. Don't use cachels anymore.
10510 (map_subwindow): ditto.
10511 (update_subwindow_cachel_data): remove old accessor names.
10512 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
10513 (Fresize_subwindow): don't update cachel.
10514 (mark_subwindow_cachels):
10515 (update_subwindow_cachel_data):
10516 (add_subwindow_cachel):
10517 (get_subwindow_cachel_index):
10518 (update_subwindow_cachel):
10519 (reset_subwindow_cachels):
10520 (mark_subwindow_cachels_as_not_updated): deleted.
10521 (cache_subwindow_instance_in_frame_maybe): new function. Add a
10522 subwindow instance to the frame cache.
10523 (find_matching_subwindow): update for subwindow instance cache as
10525 (update_widget_instances): ditto.
10526 (image_instance_type_to_mask):inlined.
10527 (free_frame_subwindow_instance_cache): new function. finalize all
10528 subwindows that are instantiated.
10530 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
10531 of cachel information.
10532 (IMAGE_INSTANCE_DISPLAY_X):
10533 (IMAGE_INSTANCE_DISPLAY_Y):
10534 (IMAGE_INSTANCE_DISPLAY_WIDTH):
10535 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
10536 (XIMAGE_INSTANCE_DISPLAY_X):
10537 (XIMAGE_INSTANCE_DISPLAY_Y):
10538 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
10539 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
10540 remove subwindow_cachel structure and function references.
10541 (image_instance_type_to_mask): inline from glyphs.c
10543 * redisplay.c (redisplay_frame): remove subwindow_cachel
10546 * frame.h (struct frame): remove subwindow_cachels.
10547 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
10549 * frameslots.h: add subwindow_instance_cache.
10551 * window.c (replace_window): check subwindow cache of replacement.
10552 (window_unmap_subwindows_cache_mapper):
10553 (window_unmap_subwindows): new functions. Unmap all subwindows
10554 cached on this window.
10555 (mark_window_as_deleted): unmap all subwindows.
10557 2000-04-27 Andy Piper <andy@xemacs.org>
10559 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
10561 * glyphs-widget.c (widget_layout): return something.
10562 (layout_layout): return something. Fail if not initialized.
10563 (layout_query_geometry): ditto.
10564 (image_instantiator_native_layout): new function. Initialized the
10565 native layout type.
10566 (widget_instantiate): don't do layout stuff here.
10568 * glyphs.c (instantiate_image_instantiator): reorded calling or
10569 instantiate and post_instantiate with layout in between.
10570 (image_instance_layout): be more selective about deciding whether
10571 the layout has been done or not.
10573 * glyphs.h (struct image_instantiator_methods): return a value
10574 from layout_method.
10576 2000-04-26 Andy Piper <andy@xemacs.org>
10578 * glyphs.c (allocate_image_instance): make initial width and
10579 height unspecified. Set initialized to 0.
10581 * syscommctrl.h new file. Encapsulates commctrl.h.
10583 * syswindows.h new file. Encapsulates windows.h.
10585 * ntplay.c: use new syswindows.h and syscommctrl.h header.
10587 * console-msw.h: ditto.
10589 * redisplay-tty.c (tty_output_display_block): remove layout references.
10591 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
10592 window handle rather than just the frame.
10594 * glyphs.c (mark_image_instance): remove layout references.
10595 (print_image_instance): ditto.
10596 (image_instance_equal): ditto.
10597 (image_instance_hash): ditto.
10598 (decode_image_instance_type): ditto.
10599 (encode_image_instance_type): ditto.
10600 (image_instantiate): ditto.
10601 (allocate_glyph): ditto.
10602 (Fimage_instance_height): ditto.
10603 (Fimage_instance_width): ditto.
10604 (update_subwindow): ditto.
10606 * redisplay-x.c (x_output_display_block): recode for layouts as
10609 * redisplay-output.c (redisplay_output_layout): recode for layouts
10611 (compare_runes): remove layout references.
10613 * redisplay-msw.c (mswindows_output_display_block): recode for
10614 layouts as widgets.
10616 * glyphs-widget.c (image_instantiator_layout): remove
10617 layout_possible_dest_types.
10618 (layout_possible_dest_types): deleted.
10620 * glyphs.h (image_instance_type): remove layout references.
10621 (struct Lisp_Image_Instance): ditto. Add initialized flag.
10622 (IMAGE_INSTANCE_INITIALIZED): new accessor.
10623 (XIMAGE_INSTANCE_INITIALIZED): ditto.
10625 2000-04-25 Andy Piper <andy@xemacs.org>
10627 * glyphs-widget.c (image_instantiator_buttons):
10628 (image_instantiator_edit_fields):
10629 (image_instantiator_combo_box):
10630 (image_instantiator_scrollbar):
10631 (image_instantiator_progress_guage):
10632 (image_instantiator_tree_view):
10633 (image_instantiator_tab_control):
10634 (image_instantiator_labels):
10635 (image_instantiator_layout): call default post_instantiate method.
10636 (widget_post_instantiate): new function. Simply lays out the
10639 * glyphs.h (struct image_instantiator_methods): add
10640 post_instantiate method.
10642 * glyphs.c (instantiate_image_instantiator): add post_instantiate
10645 2000-04-23 Andy Piper <andy@xemacs.org>
10647 * glyphs.h (struct image_instantiator_methods): add
10648 decode_domain_method.
10649 (struct Lisp_Image_Instance): remove subwindow frame - it can be
10650 derived from the domain.
10651 (IMAGE_INSTANCE_FRAME): new accessor.
10652 (XIMAGE_INSTANCE_FRAME): ditto.
10654 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
10655 instead of _SUBWINDOW_FRAME.
10656 (finalize_image_instance): ditto.
10657 (Fimage_instance_foreground): ditto.
10658 (Fimage_instance_background): ditto.
10659 (image_instantiate): ditto.
10660 (update_subwindow_cachel): ditto.
10661 (update_subwindow): ditto.
10662 (unmap_subwindow): ditto.
10663 (map_subwindow): ditto
10664 (subwindow_instantiate): ditto.
10665 * glyphs-msw.c (mswindows_update_widget): ditto.
10666 (mswindows_progress_gauge_instantiate): ditto.
10667 (mswindows_tab_control_update): ditto.
10668 * glyphs-x.c (x_update_widget): ditto.
10669 (x_widget_instantiate): ditto.
10670 (x_tab_control_instantiate): ditto.
10671 (x_tab_control_update): ditto.
10672 * event-msw.c (mswindows_wnd_proc): ditto
10674 * glyphs-widget.c (image_instantiator_layout): use
10675 subwindow_decode_domain.
10676 (image_instantiator_buttons): ditto.
10677 (image_instantiator_edit_fields): ditto.
10678 (image_instantiator_combo_box): ditto.
10679 (image_instantiator_scrollbar): ditto.
10680 (image_instantiator_progress_guage): ditto.
10681 (image_instantiator_tree_view): ditto.
10682 (image_instantiator_tab_control): ditto.
10683 (image_instantiator_labels): ditto.
10684 (image_instantiator_layout): ditto.
10686 * glyphs.c: add instance error checking to many functions.
10687 (instantiate_image_instantiator): decode device from cache_domain.
10688 (image_instantiate): partially rewrite by using
10689 decode_image_instantiator_domain to determine what domain the
10690 instance needs to be cached in.
10691 (decode_image_instantiator_domain): new function. Determine what
10692 domain the image needs to be cached in.
10693 (check_window_subwindow_cache): new error checking function.
10694 (check_instance_cache_mapper): ditto.
10695 (check_image_instance_structure): ditto.
10696 (subwindow_decode_domain): new function. Encodes a window as a
10697 subwindow's cache domain.
10698 (image_instantiator_format_create): use it for text and
10701 2000-04-21 Andy Piper <andy@xemacs.org>
10703 * glyphs.c (image_instance_device): new function.
10704 (image_instance_frame): new function.
10705 (image_instance_window): new function.
10706 (image_instance_live_p): new function.
10708 * window.c (mark_window_as_deleted): reset the subwindow_instance_
10711 * glyphs.h (struct Lisp_Image_Instance): device->domain.
10712 (IMAGE_INSTANCE_DOMAIN): new accessor.
10713 (XIMAGE_INSTANCE_DOMAIN): ditto.
10715 * glyphs-x.c (x_finalize_image_instance): device->domain.
10717 * glyphs-msw.c (init_image_instance_geometry): device->domain.
10718 (mswindows_finalize_image_instance): ditto.
10720 * glyphs-eimage.c (jpeg_instantiate): device->domain.
10721 (gif_instantiate): ditto.
10722 (png_instantiate): ditto.
10723 (tiff_instantiate): ditto.
10725 * glyphs.c (instantiate_image_instantiator): use domain rather
10727 (mark_image_instance): device -> domain.
10728 (print_image_instance): ditto.
10729 (finalize_image_instance): ditto.
10730 (image_instance_equal): ditto.
10731 (allocate_image_instance): ditto.
10732 (Fcolorize_image_instance): ditto.
10733 (query_string_geometry): ditto.
10734 (image_instantiate): ditto
10735 (query_string_font): ditto.
10736 (image_instantiate): ditto.
10737 (update_subwindow): ditto.
10738 (unmap_subwindow): ditto.
10739 (map_subwindow): ditto.
10740 (subwindow_instantiate): ditto.
10742 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
10743 (DOMAIN_FRAME): ditto.
10744 (DOMAIN_WINDOW): ditto.
10745 (DOMAIN_LIVE_P): ditto.
10746 (XDOMAIN_DEVICE): ditto.
10747 (XDOMAIN_FRAME): ditto.
10748 (XDOMAIN_WINDOW): ditto.
10750 * specifier.c (Fvalid_specifier_domain_p): add image instances as
10751 a valid specifier domain.
10753 2000-04-19 Andy Piper <andy@xemacs.org>
10755 * glyphs-widget.c (syms_of_glyphs_widget): remove
10756 widget-callback-current-channel.
10757 (vars_of_glyphs_widget): ditto.
10760 * gui.c (get_gui_callback): revert to previous behaviour.
10762 2000-04-18 Andy Piper <andy@xemacs.org>
10764 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
10765 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
10766 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
10768 * glyphs.c (image_instance_equal): add margin_width.
10769 (image_instance_hash): ditto.
10771 * glyphs-widget.c (widget_instantiate): deal with margin-width.
10772 (layout_query_geometry): ditto.
10773 (layout_layout): ditto.
10774 (syms_of_glyphs_widget): add margin-width.
10775 (image_instantiator_layout): allow margin-width.
10777 * glyphs.c (update_widget_instances): make a normal function.
10778 (syms_of_glyphs): remove Qupdate_widget_instances.
10781 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
10782 so that we don't corrupt ideas about the last event or
10783 command. Remove widget-callback-current-channel fiddling.
10784 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10786 2000-05-01 Martin Buchholz <martin@xemacs.org>
10788 * XEmacs 21.2.33 is released.
10790 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
10792 * make-src-depend: Allow dots in header file name.
10794 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
10796 * mule-charset.h (struct charset_lookup): Add
10797 next_allocated_1_byte_leading_byte and
10798 next_allocated_2_byte_leading_byte.
10799 * mule-charset.c: Move above two variables so that those values
10802 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
10804 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
10805 when string length is zero.
10806 (find_charsets_in_emchar_string): Ditto.
10808 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
10810 * lisp.h: extern Qdialog and Qmenubar.
10812 * gui-x.c: added events.h.
10813 also fixed typo which made the file uncompilable.
10815 * general.c: Added Qmenubar and Qdialog
10817 2000-04-28 Ben Wing <ben@xemacs.org>
10819 * frame-msw.c (mswindows_init_frame_1):
10820 * frame-msw.c (mswindows_mark_frame):
10821 * event-msw.c (mswindows_enqueue_dispatch_event):
10823 * console-msw.h (struct mswindows_frame):
10824 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
10825 there are now three hash tables for callbacks.
10826 mswindows_enqueue_dispatch_event is no longer static.
10828 * dialog-x.c (maybe_run_dbox_text_callback):
10829 * dialog-x.c (dbox_descriptor_to_widget_value):
10830 switch to new cons3 form for callbacks.
10832 * glyphs-msw.c (mswindows_register_gui_item):
10833 * glyphs-msw.c (mswindows_widget_instantiate):
10834 * glyphs-msw.c (add_tree_item):
10835 * glyphs-msw.c (add_tab_item):
10836 new image instance parameter, so it can be passed to callback-ex.
10837 respect :callback-ex as well as :callback.
10839 * glyphs-widget.c (VALID_GUI_KEYWORDS):
10842 * glyphs.c (print_image_instance):
10843 prettify, e.g. now prints widget type.
10846 certain funs have new image instance parameter.
10849 * gui.c (get_gui_callback):
10850 * gui.c (gui_item_add_keyval_pair):
10851 * gui.c (gui_item_init):
10852 * gui.c (gui_add_item_keywords_to_plist):
10853 * gui.c (mark_gui_item):
10854 * gui.c (gui_item_hash):
10855 * gui.c (gui_item_equal):
10856 * gui.c (copy_gui_item):
10857 * gui.c (syms_of_gui):
10858 recognize callback-ex in a number of places.
10859 also, fix the annoying "can't get out of yes-no dialog" bug.
10862 * gui.h (struct Lisp_Gui_Item):
10863 recognize callback-ex in a number of places.
10865 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10866 new parameter in button_item_to_widget_value.
10868 * glyphs-x.c (x_update_widget):
10869 * glyphs-x.c (x_button_instantiate):
10870 * glyphs-x.c (x_button_update):
10871 * glyphs-x.c (x_progress_gauge_instantiate):
10872 * glyphs-x.c (x_edit_field_instantiate):
10873 * glyphs-x.c (x_combo_box_instantiate):
10874 * glyphs-x.c (x_tab_control_instantiate):
10875 * glyphs-x.c (x_label_instantiate):
10876 new image instance parameter in various places.
10879 * event-Xt.c (enqueue_Xt_dispatch_event):
10880 this fun gets exported.
10883 * gui-msw.c (mswindows_handle_gui_wm_command):
10884 handle both :callback and :callback-ex, and generate our own
10885 event because it's one of the callback-ex arguments.
10888 * gui-x.c (popup_selection_callback):
10889 handle both :callback and :callback-ex, and generate our own
10890 event because it's one of the callback-ex arguments.
10891 * gui-x.c (button_item_to_widget_value):
10892 * gui-x.c (gui_items_to_widget_values_1):
10893 * gui-x.c (gui_item_children_to_widget_values):
10894 * gui-x.c (gui_items_to_widget_values):
10895 new image instance parameter in various places.
10897 * fns.c (Freplace_list):
10898 fix small typo in doc string.
10901 declare enqueue_Xt_dispatch_event.
10903 2000-04-28 Ben Wing <ben@xemacs.org>
10906 * buffer.c (Frecord_buffer):
10907 * buffer.c (syms_of_buffer):
10908 delete record-buffer-hook.
10911 * fns.c (Freplace_list):
10912 * fns.c (syms_of_fns):
10913 new primitive replace-list.
10916 slot for old buffer-alist.
10919 exfun replace-list.
10922 * redisplay.c (redisplay_frame):
10923 * redisplay.c (syms_of_redisplay):
10924 * redisplay.c (vars_of_redisplay):
10925 new hook buffer-list-changed-hook.
10928 2000-04-27 Ben Wing <ben@xemacs.org>
10930 * extents.h: extern in_modeline_generation.
10932 * redisplay.c (generate_formatted_string_db): set
10933 in_modeline_generation.
10935 * extents.c (extent_changed_for_redisplay): don't mark redisplay
10936 flags if in modeline generation. otherwise frame-modified-tick
10937 is ticked far too often.
10938 Declare in_modeline_generation.
10940 2000-04-26 Ben Wing <ben@xemacs.org>
10942 * emacs.c (vars_of_emacs): document quick-build "error-checking"
10944 (vars_of_emacs): add quick-build as an error-checking option.
10945 A bit kludgy, but there doesn't seem much point in creating
10946 a real var for this.
10948 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
10950 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
10952 * redisplay.h (struct display_line): Add a new variable,
10955 * redisplay.c (create_text_block): Set dl->line_continuation if
10956 the line continues.
10957 (create_string_text_block): Ditto.
10958 (regenerate_window_incrementally): Use line_continuation instead
10959 of searching continuation glyph.
10960 (add_margin_runes): Call add_glyph_rune.
10961 (add_glyph_rune): Handle margin glyph.
10963 2000-04-20 Martin Buchholz <martin@xemacs.org>
10965 * filelock.c (fill_in_lock_file_name):
10967 Check for IS_ANY_SEP instead of '/'.
10969 Avoid generating gratuitous garbage. Call user_login_name() directly.
10970 Never check errno without first seeing that system call failed.
10971 (unlock_file): Add GCPRO.
10972 (Flock_buffer): Fix docstring.
10973 (Ffile_locked_p): Fix docstring. Add GCPRO.
10975 2000-04-19 Martin Buchholz <martin@xemacs.org>
10977 * sysdep.c (get_pty_max_bytes):
10978 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
10979 strings longer than 252 bytes.
10981 * md5.c: Unconditionally include ANSI header <limits.h>
10983 * glyphs-x.c (convert_EImage_to_XImage):
10984 * lisp-union.h (union Lisp_Object):
10985 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
10987 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
10989 * filelock.c (current_lock_owner): Remove unused variable o, p.
10991 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
10993 * callint.c: Remove multiply defined symbol Qlet
10994 (syms_of_callint): ditto.
10996 2000-04-14 Andy Piper <andy@xemacs.org>
10998 * general.c (syms_of_general): add last-command, this-command, let
11001 * lisp.h: declare various symbols.
11003 * glyphs.h: declare Qwidget_callback_current_channel;
11005 * glyphs-widget.c (syms_of_glyphs_widget): add
11006 Qgui_callback_current_channel.
11007 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
11009 * gui-msw.c (mswindows_handle_gui_wm_command): bind
11010 widget-callback-current-channel when invoking the interactive
11011 arg. Also bind last-command and next-command when invoking the
11013 * gui-x.c (popup_selection_callback): ditto.
11015 * gui.c (get_gui_callback): massage args so that we are always
11016 calling eval. This allows us to add our own variable bindings
11019 * glyphs-x.c (x_button_instantiate): use
11020 gui_items_to_widget_values since this is GC safe.
11021 (x_progress_gauge_instantiate): ditto.
11022 (x_edit_field_instantiate): ditto.
11023 (x_label_instantiate): ditto.
11025 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
11026 (emacs_Xt_event_widget_focus_out): new function
11027 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
11029 (emacs_Xt_event_add_widget_actions): new function. add focus
11030 functions as actions.
11031 (init_event_Xt_late): use it.
11033 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
11035 * event-stream.c (Fdispatch_event): Doc fix.
11037 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
11039 * postgresql.c: Remove all references to PQsetenv*.
11041 * postgresql.h: Remove references to PGsetenvHandler object.
11042 * lrecord.h (lrecord_type): Ditto.
11044 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11046 * glyphs-msw.h (struct mswindows_image_instance_data): Added
11047 real_heigh and real_width members, and accessor macros for these.
11049 * glyphs-msw.c (init_image_instance_geometry): New function.
11050 (init_image_instance_from_dibitmap): Use it.
11051 (mswindows_resource_instantiate): Use it.
11052 (init_image_instance_from_xbm_inline): Use it.
11053 (mswindows_initialize_image_instance_mask): Use real bitmap
11055 (mswindows_create_resized_bitmap): Ditto.
11056 (mswindows_create_resized_mask): Ditto.
11058 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
11059 and bitmap to their surface size.
11061 2000-04-11 Jan Vroonhof <jan@xemacs.org>
11063 * process-unix.c (unix_send_process): Guard against process MIA
11064 after Faccept_process_output.
11066 2000-04-11 Ben Wing <ben@xemacs.org>
11068 * eval.c (unbind_to_hairy): fix brokenness introduced by
11069 nanosecond speed improvements.
11071 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
11073 * sunplay.c (init_device): To play sounds correctly, the device
11074 apparently needs to be initialized at least once by XEmacs. Make
11077 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
11079 * redisplay.c (add_margin_runes): Add text image glyph
11082 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
11084 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
11085 gcc is newer than 2.5.
11087 2000-04-06 Colin Rafferty <colin@xemacs.org>
11089 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
11091 * fns.c (size_bit_vector):
11092 * alloc.c (size_vector):
11093 (make_vector_internal):
11094 (make_bit_vector_internal):
11095 (sweep_bit_vectors_1):
11096 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
11098 2000-04-06 Andy Piper <andy@xemacs.org>
11100 * gmalloc.c (malloc): undo previous change.
11105 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
11107 * line-number.c (buffer_line_number): Revert to former version.
11109 2000-04-06 Andy Piper <andy@xemacs.org>
11111 * gmalloc.c (malloc): add error checking.
11116 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
11117 button_item_to_widget_value arg.
11119 * glyphs-x.c (x_button_instantiate): add extra
11120 button_item_to_widget_value arg.
11121 (x_progress_gauge_instantiate): ditto.
11122 (x_edit_field_instantiate): ditto.
11123 (x_label_instantiate): ditto.
11125 * gui-x.c (gui_items_to_widget_values_1): add extra
11126 button_item_to_widget_value arg.
11127 (button_item_to_widget_value): add extra menu_item_p arg.
11129 * gui-x.h: change signature of button_item_to_widget_value.
11131 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
11132 button_item_to_widget_value arg.
11134 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
11136 * buffer.h (struct buffer): auto_save_modified should be long.
11138 2000-04-05 Andy Piper <andy@xemacs.org>
11140 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
11142 (button_query_geometry): give a little more room so that athena
11145 2000-04-05 Andy Piper <andy@xemacs.org>
11147 * faces.c (complex_vars_of_faces): The widget face should inherit
11148 the font of the gui-element face.
11150 2000-04-04 Andy Piper <andy@xemacs.org>
11152 * glyphs-x.c (x_button_update): new function. unconditionally
11153 update a button's state when the instance is dirty.
11154 (image_instantiator_format_create_glyphs_x): add x_button_update.
11155 (x_widget_instantiate): remove old resize cruft.
11157 2000-04-02 Andy Piper <andy@xemacs.org>
11159 * frame.c (change_frame_size_1): The introduction of gutters means
11160 that we need to allow 0 as a potential frame dimension.
11162 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
11164 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
11165 image glyph if allow_cursor.
11166 (add_hscroll_rune): Don't allow cursor to border glyph.
11167 (create_text_block): Ditto.
11169 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
11170 text not in buffer.
11171 (redisplay_output_layout): Call ensure_face_cachel_complete for
11175 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
11177 * redisplay.c (add_glyph_rune): Adding text image as text runes.
11179 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
11182 * redisplay-tty.c (tty_output_display_block): Delete the routine
11183 for text image glyph
11184 * redisplay-x.c (x_output_display_block): ditto
11185 * redisplay-msw.c (mswindows_output_display_block): ditto
11187 2000-02-02 Mike Alexander <mta@arbortext.com>
11189 Note: Some of these were committed by accident as part of other
11192 * regex.c (regex_compile): Avoid compiler warnings.
11194 * ntproc.c (sys_spawnve): Avoid compiler warnings.
11196 * nt.h: Declare term_ntproc correctly.
11198 * nt.c: Remove incorrect declaration of get_home_directory which
11199 is declared correctly in lisp.h.
11201 * keymap.c (get_keyelt): Avoid compiler warnings.
11202 (raw_lookup_key_mapper): Avoid compiler warnings.
11204 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
11206 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
11208 * filemode.c (mode_string): Avoid compiler warnings.
11210 * file-coding.c (Fcoding_system_aliasee): Add return statement to
11213 * events-mod.h: Undef some things that winuser.h defines differently.
11215 * data.c (Faset): Avoid compiler warnings.
11217 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
11219 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
11221 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
11222 Fall through to simple beep on error.
11223 Replace "extern" by real header file.
11225 * linuxplay.c: Use nativesound.h
11226 (play_sound_data): Return error code. Be less verbose on error.
11228 * sunplay.c: Use nativesound.h
11229 (play_sound_data): Return error code. Be less verbose on error.
11231 * ntplay.c: Use nativesound.h
11232 (play_sound_data): Return fake error code
11234 * sgiplay.c: Use nativesound.h
11235 (play_sound_data): Return error code
11237 * hpplay.c: Use nativesound.h, partially implement
11238 new error code. Break compilation until finished.
11239 (play_sound_data): error code.
11241 * nativesound.h (play_sound_file):
11242 (play_sound_data): Prototype in new header.
11244 2000-03-31 Andy Piper <andy@xemacs.org>
11246 * glyphs-widget.c: (button_query_geometry): new function. Adjust
11247 for toggle and radio buttons.
11248 (image_instantiator_buttons): use it.
11250 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
11252 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
11253 (x_update_horizontal_scrollbar_callback): Return if no mirror was
11254 found. Scrollbar event probably belonged to some old config.
11256 2000-03-31 Andy Piper <andy@xemacs.org>
11258 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
11260 (initialize_widget_image_instance): default layout to
11261 LAYOUT_HORIZONTAL rather than 0.
11262 (widget_instantiate): reverse the item list at the end rather than
11264 (layout_layout): re-code for the border text at the front of the
11265 item list rather than at the end.
11266 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
11267 provided by the user.
11268 (widget_query_geometry): comment.
11270 2000-03-30 Andy Piper <andy@xemacs.org>
11272 * glyphs-widget.c (image_instantiator_layout): allow standard
11273 widget keywords in layouts.
11275 * gutter.c (output_gutter): cope with nil gutter contents.
11277 * frame.c (Fset_frame_properties): add gutter docs.
11279 2000-03-29 Andy Piper <andy@xemacs.org>
11281 * toolbar-msw.c (TBSTYLE_FLAT): add.
11282 (mswindows_output_toolbar): minor fiddling.
11284 2000-03-29 Andy Piper <andy@xemacs.org>
11286 * gutter.c (output_gutter): force gutter size recalculation if
11287 what we are trying to display won't fit.
11288 (update_gutter_geometry): new function. A per-gutter version of
11289 update_frame_gutter_geometry.
11290 (update_frame_gutter_geometry): use it.
11291 (redraw_exposed_gutter): add extra debugging output.
11293 2000-03-28 Mike Alexander <mta@arbortext.com>
11295 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
11296 (pdump_file_unmap): Implement it on Windows
11297 (pdump_file_get): Save alocated handles for pdump_file_unmap
11299 2000-03-28 Andy Piper <andy@xemacs.org>
11301 * gui.c (get_gui_callback): treat Quit specially.
11303 2000-03-27 Andy Piper <andy@xemacs.org>
11305 * glyphs.c (image_instantiate): be careful to check in the same
11308 2000-03-27 Didier Verna <didier@xemacs.org>
11310 * config.h.in: define the proper SMART_INCLUDE macro.
11311 handle renaming of `foo_h_path' to `foo_h_file'.
11313 * database.c: ditto.
11317 * linuxplay.c: ditto.
11319 * terminfo.c: ditto.
11321 * tooltalk.h: ditto.
11323 2000-03-27 Andy Piper <andy@xemacs.org>
11325 * glyphs-msw.c (mswindows_update_widget): make sure the widget
11326 gets updated whenever the face might have changed.
11328 2000-03-26 Mike Alexander <mta@arbortext.com>
11330 * dumper.c (pdump_resource_free): Fix the comment.
11332 2000-03-21 Olivier Galibert <galibert@pobox.com>
11334 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
11336 2000-03-22 Mike Alexander <mta@arbortext.com>
11338 * dumper.c: Include Windows headers on Windows
11339 (pdump_resource_free): Add a body to the function
11340 (pdump_load): exe_name -> exe_path and add some comments.
11342 2000-03-25 Mike Alexander <mta@arbortext.com>
11344 * gui.c (copy_gui_item_tree): Return a value in all cases
11346 2000-03-21 Didier Verna <didier@xemacs.org>
11348 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
11350 (SMART_INCLUDE): new macro.
11351 (POSTGRES_INCLUDE): new macro to include postgresql headers from
11352 the proper location.
11354 * postgresql.c: use it.
11358 2000-03-24 Andy Piper <andy@xemacs.org>
11360 * gutter.c (redraw_exposed_gutters): must be "in display" when we
11363 2000-03-24 Andy Piper <andy@xemacs.org>
11365 * redisplay-output.c (compare_runes): use image_instance_changed
11366 to detect changes. Do not depend on glyphs_changed, only depend on
11368 (redisplay_output_layout): add debug messages.
11369 (compare_runes): ditto.
11371 * glyphs.h: declare new functions.
11372 (struct Lisp_Image_Instance): remove percent and associated
11375 * gui.h: declare new copying functions.
11377 * gui.c (copy_gui_item_tree): new function.
11378 (copy_gui_item): new function.
11379 (gui_item_id_hash): revert to standard hash.
11380 (gui_item_hash): ditto.
11381 (gui_item_hash_internal): deleted.
11382 (mark_gui_item): mark value.
11383 (gui_item_add_keyval_pair): add value.
11384 (gui_item_init): ditto.
11385 (gui_add_item_keywords_to_plist): ditto.
11386 (gui_item_equal): ditto.
11387 (syms_of_gui): add Q_value.
11389 * glyphs-x.c (x_progress_gauge_update): use pending items and
11390 value for setting the state.
11391 (x_update_widget): don't set items from pending here.
11393 * glyphs-widget.c (update_widget): update items here.
11394 (progress_gauge_set_property): use items for storing value. Put
11395 new value in pending items.
11397 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
11398 items for new value. Convert percent -> value.
11399 (mswindows_tab_control_update): don't update items here.
11401 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
11402 (update_subwindow): ditto.
11403 (image_instance_changed): new function. Compare hash values and
11404 past and present widget items.
11405 (image_instantiate): We more careful about where we instantiate
11407 (image_instantiate): add error checking.
11409 * gutter.c (syms_of_gutter): use -hook.
11411 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
11413 * console-tty.c (Fset_console_tty_input_coding_system): Use
11415 (Fset_console_tty_output_coding_system): Use Qterminal.
11416 (tty_init_console): Use Qkeyboard and Qterminal.
11418 2000-03-21 Ben Wing <ben@xemacs.org>
11420 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
11421 From Mike Alexander <mta@arbortext.com>.
11423 2000-03-21 Ben Wing <ben@xemacs.org>
11425 * event-msw.c (mswindows_need_event): Horrible kludge to fix
11426 process brokenness. Proper implementation to come.
11428 Rename call-process-internal to old-call-process-internal.
11429 New impl. in process.el.
11431 2000-03-21 Martin Buchholz <martin@xemacs.org>
11433 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
11435 2000-03-20 Andy Piper <andy@xemacs.org>
11437 * glyphs.c (full_list_hash): make hashes of the same elements in
11438 different orders return different values.
11440 2000-03-20 Martin Buchholz <martin@xemacs.org>
11442 * XEmacs 21.2.32 is released.
11444 2000-03-20 Martin Buchholz <martin@xemacs.org>
11446 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
11447 (DFC_MALLOC_USE_CONVERTED_DATA):
11448 Add aliasing-safe casts to allow use with char* or unsigned char*
11451 * eldap.c (Fldap_open):
11452 (Fldap_search_basic):
11455 Make C++-compilable.
11456 Make sure GCPRO'ed variables are initialized.
11457 Use temp variables to avoid repeated calls to Flength.
11459 2000-03-16 Martin Buchholz <martin@xemacs.org>
11462 Make sure PATH_MAX is always defined.
11463 Include limits.h for PATH_MAX.
11464 Deprecate use of MAXPATHLEN.
11466 2000-03-10 Martin Buchholz <martin@xemacs.org>
11468 * emacs.c: Add reinit_vars_of_fileio.
11469 * symsinit.h: Add reinit_vars_of_fileio.
11470 * fileio.c (reinit_vars_of_fileio): New.
11471 * fileio.c (Fmake_temp_name):
11472 Initialize temp_name random number from microseconds to make
11473 collisions even less likely. Initialize always at process startup
11474 time. (make-temp-name) used to return the same file name twice in
11476 Random stylistic fiddling.
11479 2000-03-20 Andy Piper <andy@xemacs.org>
11481 * glyphs.c (image_instantiate): allow text glyphs to be
11482 instantiated in the minibuffer window.
11484 2000-03-19 Andy Piper <andy@xemacs.org>
11486 * glyphs.c (image_instance_hash): be careful about which items we
11489 * glyphs-widget.c (tab_control_set_property): record into pending
11490 items rather than the actual items.
11492 * glyphs-x.c (x_update_widget): use pending items to update with.
11494 * glyphs-msw.c (mswindows_tab_control_update): use pending items
11497 * glyphs.c (mark_image_instance): mark pending items.
11499 * window.c (Fset_window_configuration): record the buffer.
11500 (Fselect_window): totally revert previous change which breaks many
11503 2000-03-18 Andy Piper <andy@xemacs.org>
11505 * glyphs-msw.c (mswindows_tab_control_update): force selected
11508 * glyphs.c (image_instantiate): don't allow the minibuffer as a
11509 window domain cache, otherwise we get inconsistencies at
11510 startup. There is something fishy at startup which can lead to the
11511 minibuffer being the selected window when the gutter content is
11514 * gui.c (parse_gui_item_tree_list): add probably unnecessary
11516 (parse_gui_item_tree_children): ditto.
11517 (parse_gui_item_tree_item): ditto.
11519 * glyphs.c (Fupdate_widget_instances): return something.
11521 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
11523 * window.c (Fselect_window): Undo 2000-03-17 change.
11525 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
11527 * postgresql.c (Fpq_setenv): Remove this turkey when linking
11528 against v7.0 libraries. Insta-coredump city until the postgres
11531 2000-03-17 Andy Piper <andy@xemacs.org>
11533 * faces.c (complex_vars_of_faces): don't give the widget face an
11534 inherited background pixmap.
11536 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
11539 * event-stream.c (Fdispatch_non_command_events): return something.
11541 * gutter.c (output_gutter): use widget face.
11542 (clear_gutter): ditto.
11544 * NEWS: adjust again.
11546 * window.c (Fselect_window): make sure this runs to completion to
11547 avoid oddities with Fset_window_configuration.
11548 (Fcurrent_window_configuration): in general do not save the
11549 minibuffer as the selected window.
11551 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
11553 2000-03-16 Olivier Galibert <galibert@pobox.com>
11555 * emacs.c (Frunning_temacs_p): Revert previous patch.
11556 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
11558 2000-03-16 Andy Piper <andy@xemacs.org>
11560 * glyphs-x.c (x_tab_control_update): if no widget values then
11563 * NEWS: update for new features.
11565 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
11566 synthetic event to the native system.
11567 (reinit_vars_of_event_Xt): set force_event_pending to
11568 emacs_Xt_force_event_pending.
11570 * events.h (struct event_stream): add force_event_pending.
11572 * specifier.c (recompute_one_cached_specifier_in_window): add
11575 * redisplay.c (redisplay_frame): don't call
11576 update_frame_subwindows. Reset subwindow cachels when
11577 subwindows_changed, removing this was an optimization too far.
11579 * redisplay-output.c (compare_runes): reorganize so that we catch
11580 glyph changes when we want them. Set optimize_output when this
11581 would help layouts.
11582 (redisplay_output_layout): remove frame_really_changed, use
11583 optimize_output instead.
11585 * redisplay-msw.c (mswindows_output_display_block): reset
11586 optimize_output after outputting a glyph.
11587 * redisplay-x.c (x_output_display_block): ditto.
11588 * redisplay-tty.c (tty_output_display_block): ditto.
11590 * gutter.c: (specifier_vars_of_gutter): use new spec changed
11592 (gutter_specs_changed): do specific gutter positions.
11593 (top_gutter_specs_changed): new function. Only update the
11594 specified gutter specs.
11595 (bottom_gutter_specs_changed): ditto.
11596 (left_gutter_specs_changed): ditto.
11597 (right_gutter_specs_changed): ditto.
11599 * gui.c (gui_item_hash_internal): new function, does a real hash.
11600 (gui_item_id_hash): use it.
11601 (gui_item_hash): hash the eval'ed gui_item.
11603 * gui-x.c (popup_selection_callback): send an eval event to call
11604 Fupdate_widget_instances.
11606 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
11607 to call Fupdate_widget_instances.
11609 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
11610 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
11612 * glyphs.c: (update_frame_subwindows): deleted.
11613 (Fupdate_widget_instances): new function for updating the dirty
11614 state of widgets that might have changed.
11615 (syms_of_glyphs): add Qupdate_widget_instances.
11616 (full_list_hash): hash a list completely.
11617 (image_instance_hash): use it for items and properties.
11619 * frame-msw.c (mswindows_size_frame_internal): remove unused
11622 * faces.h (struct face_cachel): fix comment.
11624 * event-stream.c (Fdispatch_non_command_events): new
11625 function. Process non-command events, forcing an event cycle
11627 (syms_of_event_stream): declare.
11628 (event_stream_force_event_pending): new function. Force an event
11629 on the native event queue so that an event cycle will occur next
11633 (struct ntpipe_shove_stream):
11634 (mswindows_enqueue_dispatch_event):
11635 (mswindows_dequeue_dispatch_event):
11636 (mswindows_cancel_dispatch_event):
11637 (mswindows_pump_outstanding_events):
11638 (mswindows_drain_windows_queue):
11639 (mswindows_handle_paint):
11640 (mswindows_wnd_proc):
11641 (mswindows_key_to_emacs_keysym):
11642 (get_process_input_waitable):
11643 (emacs_mswindows_delete_stream_pair): re-indent file.
11644 (mswindows_need_event): do not process further fds if the windows
11645 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
11646 fixes the 100% cpu problem.
11647 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
11649 2000-03-15 Olivier Galibert <galibert@pobox.com>
11655 * emacs.c: Moved dump file searching to dumper.c.
11656 (Frunning_temacs_p): Fixed.
11658 * alloc.c: Moved everything pdump-related to dumper.c. Removed
11659 last_lrecord_type_index_assigned.
11661 2000-02-20 Olivier Galibert <galibert@pobox.com>
11663 * symsinit.h: Added reinit parameter to init_console_stream
11666 * lisp.h: Added file parameter to pdump_load declaration.
11668 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
11669 support. Added dump file searching.
11671 * config.h.in: Added EMACS_PROGNAME.
11673 * console-stream.c (init_console_stream): Fix reinitialisation
11674 when running from temacs.
11676 * alloc.c (pdump): Add id support.
11677 (pdump_load): Add file parameter and signature/id support.
11679 * Makefile.in.in: Add full pdump support.
11681 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
11683 * postgresql.c: Update documentation to reflect latest code
11685 (print_result): Show tuple counts in printed representation when
11687 (Fpq_put_nbytes): MULE-ize.
11688 (Fpq_get_line_async): Ditto.
11690 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
11692 * postgresql.c (Fpq_lo_import): Fix return value.
11693 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
11695 2000-03-13 Ben Wing <ben@xemacs.org>
11697 * alloc.c (pdump_load):
11698 Fix compile warning under mswin.
11700 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
11702 * postgresql.c: Mule-ization, bug fixes.
11703 Use PG_CODING to encapsulate coding system name changes.
11704 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
11705 (pg-coding-system): Create.
11707 (Fpq_conn_defaults): Mule-ize.
11708 (Fpq_connectdb): Mule-ize & bug fix.
11709 (Fpq_connect_start): Mule-ize.
11710 (Fpq_set_client_encoding): Mule-ize.
11711 (Fpq_finish): Document `DEAD' connection status.
11712 (Fpq_clear): Ditto.
11713 (Fpq_pgconn): Mule-ize.
11714 (Fpq_exec): Mule-ize & bug fix.
11715 (Fpq_send_query): Ditto.
11716 (Fpq_get_result): Ditto.
11717 (Fpq_res_status): Mule-ize.
11718 (Fpq_result_error_message): Mule-ize.
11719 (Fpq_ntuples): fix comments.
11720 (Fpq_fname): Mule-ize.
11721 (Fpq_fnumber): Mule-ize.
11722 (Fpq_ftype): fix comments.
11723 (Fpq_get_value): Mule-ize.
11724 (Fpq_cmd_status): Ditto.
11725 (Fpq_cmd_tuples): Ditto.
11726 (Fpq_oid_value): Ditto.
11727 (Fpq_notifies): Ditto.
11728 (Fpq_lo_import): Ditto.
11729 (Fpq_lo_export): Ditto.
11730 (Fpq_get_line): Ditto.
11731 (Fpq_put_line): Mule-ize and bug fix.
11732 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
11734 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
11736 * postgresql.c (vars_of_postgresql): Mule-ize.
11737 (Fpq_conn_defaults): Ditto.
11739 2000-03-12 Ben Wing <ben@xemacs.org>
11741 * alloc.c (Fmake_byte_code):
11742 * alloc.c (debug_string_purity_print):
11743 * alloc.c (pdump_backtrace):
11744 * alloc.c (pdump_get_indirect_count):
11745 * alloc.c (pdump_register_sub):
11746 * alloc.c (pdump_register_object):
11747 * alloc.c (pdump_register_struct):
11748 * alloc.c (pdump_dump_data):
11749 * alloc.c (pdump_reloc_one):
11753 * console-msw.c (GetConsoleHwnd):
11754 * console-msw.c (msw_hide_console):
11755 * console-msw.c (msw_show_console):
11756 * console-msw.c (msw_ensure_console_buffered):
11757 * console-msw.c (msw_output_console_string):
11758 * console-msw.c (console_type_create_mswindows):
11760 a) Added functions to manipulate the console window for use with
11763 b) Added support for writing text to the console, which is now
11764 used under Windows when xemacs is not being run non-interactively,
11765 to write text that would otherwise be destined for stdout because
11766 under these circumstances, text written to stdout tends to
11767 disappear and not be seen.
11771 * event-Xt.c (x_event_to_emacs_event):
11772 * event-Xt.c (describe_event_window):
11773 * events-mod.h (XEMACS_MOD_CONTROL):
11775 * events.c (Fmake_event):
11776 * events.c (character_to_event):
11777 * events.c (event_to_character):
11778 * events.c (format_event_object):
11779 * events.c (Fevent_modifiers):
11781 * events.h (struct key_data):
11782 * events.h (struct button_data):
11783 * events.h (struct misc_user_data):
11784 * frame-x.c (Fcde_start_drag_internal):
11785 * frame-x.c (Foffix_start_drag_internal):
11786 * gpmevent.c (Freceive_gpm_event):
11788 * keymap.c (bucky_sym_to_bucky_bit):
11789 * keymap.c (control_meta_superify):
11790 * keymap.c (make_key_description):
11791 * keymap.c (keymap_lookup_directly):
11792 * keymap.c (create_bucky_submap):
11793 * keymap.c (keymap_store):
11794 * keymap.c (define_key_check_and_coerce_keysym):
11795 * keymap.c (define_key_parser):
11796 * keymap.c (define_key_alternate_name):
11797 * keymap.c (Fdefine_key):
11798 * keymap.c (raw_lookup_key_mapper):
11799 * keymap.c (struct map_keymap_unsorted_closure):
11800 * keymap.c (map_keymap_unsorted_mapper):
11801 * keymap.c (map_keymap_sort_predicate):
11802 * keymap.c (map_keymap_sorted):
11803 * keymap.c (accessible_keymaps_mapper_1):
11804 * keymap.c (where_is_recursive_mapper):
11805 * keymap.c (describe_map_mapper):
11806 * keymap.c (describe_map_sort_predicate):
11807 * keymap.c (describe_map):
11808 * keymap.c (complex_vars_of_keymap):
11809 And a number of other files, the key modifier preprocessor
11810 constants that xemacs uses have names that conflict with constants
11811 defined under MS Windows for other purposes, so they were renamed
11812 to begin with the prefix XEMACS_. The variables that hold such
11813 modifiers were changed to consistently be of type int to fix
11814 various compile warnings.
11816 * console.c (complex_vars_of_console):
11819 * device-msw.c (mswindows_finish_init_device):
11820 * device-msw.c (msw_get_workspace_coords):
11821 * device-msw.c (mswindows_device_system_metrics):
11822 and various other files, added support for a new
11823 device property called offset-workspace which returns the position
11824 of the upper left corner of the workspace area and goes along with
11825 the existing size-workspace property.
11828 * dialog-msw.c (push_bufbyte_string_as_unicode):
11829 * dialog-msw.c (mswindows_popup_dialog_box):
11830 Added support for XEmacs-style accelerator specifications in
11831 button text. Note: I didn't add support for this under X Windows,
11832 and somebody needs to do this.
11835 * dialog.c (Fpopup_dialog_box):
11836 Documented the support for accelerators that was just mentioned.
11838 editfns.c (get_home_directory): Changed behavior under Windows
11839 when HOME not defined; former behavior was irretrievably broken.
11842 * emacs.c (main_1):
11844 * minibuf.c (clear_echo_area_internal):
11845 * minibuf.c (echo_area_append):
11847 * print.c (std_handle_out_external):
11848 * print.c (std_handle_out_va):
11850 * print.c (write_string_to_stdio_stream):
11851 * print.c (output_string):
11852 * print.c (debug_print):
11853 * print.c (debug_backtrace):
11854 * print.c (debug_short_backtrace):
11855 Cleaned up the code that prints text to stdout so that this can be
11856 changed to output into a console window instead under MS Windows,
11857 as described above.
11860 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
11861 * eval.c (internal_catch):
11862 * eval.c (unwind_to_catch):
11863 * eval.c (throw_or_bomb_out):
11864 * eval.c (condition_case_1):
11865 * eval.c (signal_1):
11866 * eval.c (check_error_state_sanity):
11867 * eval.c (call_with_suspended_errors_1):
11868 * eval.c (call_with_suspended_errors):
11869 * eval.c (reinit_vars_of_eval):
11870 Added code to catch throw loops and check for a pesky bug that may
11874 * event-msw.c (key_needs_default_processing_p):
11875 * event-msw.c (mswindows_wnd_proc):
11876 * event-msw.c (mswindows_modifier_state):
11877 * event-msw.c (emacs_mswindows_quit_p):
11878 * event-msw.c (vars_of_event_mswindows):
11879 a) Added support for using the alt key to select menu items as is
11880 standard under MS Windows. This is controlled using the variable
11881 menu-accelerator-enabled, just like under X Windows. There is an
11882 option on the options menu to turn this support on. I really
11883 think that it should be on by default under Windows, but I'm not
11884 going to make this change yet.
11886 b) Added support for dynamic display size changes under Windows.
11889 * event-stream.c (maybe_echo_keys):
11890 * event-stream.c (Fnext_event):
11891 * event-stream.c (command_builder_find_leaf):
11892 * event-stream.c (lookup_command_event):
11893 * event-stream.c (execute_command_event):
11894 * event-stream.c (pre_command_hook):
11895 * event-stream.c (post_command_hook):
11896 * event-stream.c (syms_of_event_stream):
11897 * event-stream.c (vars_of_event_stream):
11898 * event-stream.c (complex_vars_of_event_stream):
11899 * events.h (struct command_builder):
11901 a) Tried to clean up a little bit the horribly written x-specific
11902 accelerator code that crept into this file. I moved this code
11903 into menubar-x.c where it belongs. I also needed to move the
11904 command builder structure into the file events.h because it is
11905 accessed directly by this accelerator code. What I didn't do, but
11906 which should be done at some point, is to properly abstract this
11907 code using device methods instead of the kludgy way that it
11908 currently hooks into the event code.
11910 b) Added the lisp variables this-command-properties and
11911 last-command- properties, which should be used to synchronize two
11912 adjacent commands in preference to playing games with the variable
11913 this-command, which is typically what happens.
11915 c) Added some slightly nasty code to hook into the lisp support
11916 for shifted- motion-key selection. This is actually necessary for
11917 somewhat complicated reasons, which are described in
11918 simple.el. (NB: I think the proper thing would be to have the code
11919 that calls the pre and post command hooks also call out to generic
11920 lisp functions in simple.el, where all built-in stuff could be
11921 added. I will think about this more.)
11923 * event-unixoid.c (poll_fds_for_input):
11924 * lread.c (readchar):
11925 * redisplay-tty.c (tty_clear_frame):
11926 * redisplay-x.c (x_get_gc):
11927 * signal.c (interrupt_signal):
11928 And a whole bunch of other files: fixed up places that printed
11929 directly to stderr to instead call the function stderr_out so that
11930 the changes I made under Windows work correctly.
11932 * filemode.c (mode_string):
11936 * frame-msw.c (mswindows_size_frame_internal):
11937 Fixed the computation of frame size and position to keep the frame
11938 within the workspace area, rather than within the physical
11939 dimensions of the screen, so that the frame doesn't overlap window
11940 manager decorations, such as the start menu and toolbar, typically
11941 at the bottom of the screen.
11943 * frame.c (vars_of_frame):
11944 Changed the default frame title format under MS Windows to consist
11945 of buffername-XEmacs, which is standard under MS Windows. I think
11946 it might be a good idea to change this everywhere because I think
11947 it is superior to the current frame title format, but this is the
11948 kind of change that is likely to cause some people to get annoyed,
11949 so I'm not making it.
11951 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
11953 * gui-msw.c (mswindows_handle_gui_wm_command):
11954 Fixed compile warnings.
11957 * gui-x.c (strdup_and_add_accel):
11958 * gui-x.c (button_item_to_widget_value):
11960 Added code to automatically put an accelerator onto the beginning
11961 of menu items that don't have one as is now the standard, and is
11962 described more later. Also fixed things so that the menu item
11963 name can be an evaluated expression, again a new standard.
11966 * gui.c (gui_item_add_keyval_pair):
11967 * gui.c (make_gui_item_from_keywords_internal):
11968 * gui.c (gui_add_item_keywords_to_plist):
11969 * gui.c (gui_item_accelerator):
11970 * gui.c (gui_name_accelerator):
11971 * gui.c (gui_item_included_p):
11972 * gui.c (gui_item_display_flush_left):
11973 * gui.c (gui_item_display_flush_right):
11974 * gui.c (parse_gui_item_tree_item):
11975 * gui.c (parse_gui_item_tree_children):
11976 * gui.c (parse_gui_item_tree_list):
11977 Mule-ized. Cleanup. GCPRO addition.
11979 * line-number.c (buffer_line_number):
11981 * lisp.h (EMACS_INT_MAX):
11982 Added the manifest constant EMACS_INT_MIN corresponding to the
11983 existing constant EMACS_INT_MAX. This is partially to fix compile
11984 warnings under Windows, and partly for cleanliness.
11987 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
11988 * menubar-msw.c (msw_translate_menu_or_dialog_item):
11989 * menubar-msw.c (displayable_menu_item):
11990 * menubar-msw.c (populate_menu_add_item):
11991 * menubar-msw.c (populate_or_checksum_helper):
11992 * menubar-msw.c (populate_menu):
11993 * menubar-msw.c (update_frame_menubar_maybe):
11994 * menubar-msw.c (prune_menubar):
11995 * menubar-msw.c (msw_char_is_accelerator):
11996 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
11997 * menubar-msw.c (mswindows_handle_wm_command):
11998 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
11999 * menubar-msw.c (mswindows_handle_wm_initmenu):
12000 * menubar-msw.c (mswindows_update_frame_menubars):
12001 * menubar-msw.c (mswindows_free_frame_menubars):
12002 * menubar-msw.c (mswindows_popup_menu):
12003 Fixed a bug in handling accelerators where an extra character
12004 would be displayed in the menu item. Also generalized the
12005 function displayable_menu_item because it is now used by the
12006 dialog box code as well. And finally, added code in the functions
12007 that create the menubar to extract a list of accelerators for the
12008 top level menubar, which is used in the event code to determine
12009 whether a particular alt-key combination should be used to invoke
12010 a menu item, or should be passed through to access the standard
12011 XEmacs keymap binding for this key combination.
12013 Much needed GCPROing.
12016 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12017 * menubar-x.c (menu_item_descriptor_to_widget_value):
12018 * menubar-x.c (restore_in_menu_callback):
12019 * menubar-x.c (x_popup_menu):
12020 * menubar-x.c (menu_move_up):
12021 * menubar-x.c (menu_move_down):
12022 * menubar-x.c (menu_move_left):
12023 * menubar-x.c (menu_move_right):
12024 * menubar-x.c (menu_select_item):
12025 * menubar-x.c (command_builder_operate_menu_accelerator):
12026 * menubar-x.c (menu_accelerator_junk_on_error):
12027 * menubar-x.c (command_builder_find_menu_accelerator):
12028 * menubar-x.c (Faccelerate_menu):
12030 Moved a whole bunch of code here that was previously in
12031 event-stream.c as described above. There is also code connected
12032 to the new standard of adding an accelerator to the beginning of
12033 menu items that don't have one as described above and below.
12036 * menubar.c (menu_parse_submenu_keywords):
12037 * menubar.c (Fmenu_find_real_submenu):
12038 * menubar.c (Fnormalize_menu_item_name):
12039 * menubar.c (syms_of_menubar):
12040 * menubar.c (vars_of_menubar):
12041 * menubar.c (complex_vars_of_menubar):
12043 a) Cleaned up a bunch of documentation and improved it.
12045 b) XEmacs now automatically adds an accelerator onto the beginning
12046 of any menu items that don't have one. I did this because there
12047 will inevitably be some menu items on the main menubar that don't
12048 have accelerators on them because the package that adds that
12049 particular menu item hasn't yet been fixed up to have accelerators
12050 in them and it looked rather strange to have some items with and
12051 some items without accelerators, especially since even in items
12052 without accelerators, you can, at least under windows, still
12053 access the item through an accelerator corresponding to the first
12054 character in the item's name. If people don't like this behavior,
12055 I can add a variable to turn it off optionally, but I'm not sure
12056 this is a good idea because we really do need to have accelerators
12057 on all of the menu items, and if a package doesn't like the
12058 accelerators being put on the first character, then it should put
12059 the accelerators where they belong.
12061 c) I made a behavior change, which is that the descriptor that
12062 specifies the text of the menu item, which formerly was just a
12063 string, can now also be an evaluated expression. This makes this
12064 descriptor parallel with all of the others, which could also be
12065 evaluated expressions. This also obviates the need for the
12066 keyword :label, which was previously listed in the documentation
12067 as unimplemented, and which was for the same purpose.
12072 * ntproc.c (new_child):
12073 * ntproc.c (sys_spawnve):
12074 * ntproc.c (find_child_console):
12075 * ntproc.c (sys_kill):
12076 Fixed compile warnings. By the way, this file should really go
12077 away entirely, and this will happen as soon as Kirill makes his
12078 final round of process cleanups, which affect the function
12082 * process-nt.c (struct nt_process_data):
12083 * process-nt.c (find_process_from_pid):
12084 * process-nt.c (send_signal_the_nt_way):
12085 * process-nt.c (enable_child_signals):
12086 * process-nt.c (find_child_console):
12087 * process-nt.c (send_signal_the_95_way):
12088 * process-nt.c (nt_finalize_process_data):
12089 * process-nt.c (ensure_console_window_exists):
12090 * process-nt.c (nt_create_process):
12091 * process-nt.c (nt_kill_child_process):
12092 * process-nt.c (nt_kill_process_by_pid):
12093 * process-nt.c (nt_open_network_stream):
12094 * process-nt.c (vars_of_process_nt):
12095 Copied over code from Emacs 20.5 to correctly send signals to sub-
12096 processes under Windows 95. Also added code to automatically
12097 create and hide console window when a sub-process is created under
12098 Windows 95, which obviates the need for the separate runemacs.exe
12099 executable, and finally implemented some variables that were
12100 implemented in Emacs 20.5, but previously not in XEmacs. These
12101 include mswindows- start-process-share-console and
12102 mswindows-start-process-inherit-error-mode. (Both of these only
12103 apply to Windows 95.)
12105 * regex.c (regex_compile): Fixed a compile warning.
12108 * select-msw.c (mswindows_own_selection):
12109 * select-msw.c (mswindows_get_foreign_selection):
12110 * select-msw.c (mswindows_disown_selection):
12111 * select-msw.c (console_type_create_select_mswindows):
12112 * select-msw.c (syms_of_select_mswindows):
12113 Cleaned up the file and implemented the device method
12114 selection_exists_p, which had accidentally been left out. Also
12115 removed four lisp functions that were remnants from before the
12116 time when the selection code was properly device abstracted.
12117 These functions are no longer needed because there are generic
12118 equivalents, and because they were added recently and don't exist
12119 in FSF Emacs, I don't think there's any problem with just deleting
12123 * sysdep.c (sys_subshell):
12124 Fixed a compile warning, although in this case there's probably
12125 something wrong with this code, and it ought to be looked into
12126 more thoroughly by somebody who understands it.
12129 * window.c (Fwindow_text_area_height):
12130 * window.c (Fwindow_width):
12131 * window.c (Fwindow_full_width):
12132 * window.c (Fwindow_pixel_width):
12133 * window.c (debug_print_window):
12134 * window.c (syms_of_window):
12135 Added functions window-text-area-height and window-full-width,
12136 which are functions for returning various width and height
12137 characteristics of a window. (One of these functions is necessary
12138 for making the file dialog box work correctly, and the other one
12139 was added for completeness.) Also added a table to the
12140 documentation for window-height which describes the entire scheme
12141 for accessing width and height characteristics of a window.
12143 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12145 * nt.c (fstat): Added a comment for another problem with
12146 non-encapsulated [f]stat(), reported by Adrian Aichner
12147 <aichner@ecf.teradyne.com>.
12149 2000-03-11 Andy Piper <andy@xemacs.org>
12151 * window.c (make_dummy_parent): initialize subwindow instance
12153 (Fset_window_configuration): zero extent_modiff.
12155 2000-03-10 Andy Piper <andy@xemacs.org>
12157 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
12158 more changes can be triggered.
12159 (Fredisplay_frame): ditto.
12160 (Fredraw_device): ditto.
12161 (Fredisplay_device): ditto.
12162 (redisplay_frame): make non-static.
12163 (redisplay_frame): call update_frame_gutter_geometry outside of
12166 * gutter.h: declare update_frame_gutter_geometry.
12168 * redisplay.h: declare redisplay_frame.
12170 * gutter.c (update_frame_gutter_geometry): move geometry changes
12171 in update_frame_gutters here. Geometry changes can only occur
12172 outside of redisplay.
12173 (update_frame_gutters): remove geometry change code.
12174 (Fredisplay_gutter_area): make sure that we are in display when we
12175 update and that we have flushed any size changes.
12177 2000-03-11 Andy Piper <andy@xemacs.org>
12179 * alloc.c (pdump_dump_data): remove i & count shadows.
12181 2000-02-27 Mike Alexander <mta@arbortext.com>
12183 * sysdep.h: Declare pdump_read_file
12185 * sysdep.c (pdump_read_file): New function
12187 * alloc.c (pdump_load): Call pdump_read_file to get the portable
12190 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
12192 * lrecord.h: add `lrecord_type_pgsetenv'.
12194 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
12196 * symsinit.h: declare (vars|syms)_of* functions.
12197 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
12199 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
12201 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
12203 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
12206 * emacs.c (main_1): Call postgres initialization code.
12208 * postgresql.h: New file. PostgreSQL RDBMS support.
12209 * postgresql.c: New file.
12211 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
12213 * redisplay-output.c (redisplay_output_display_block): Disable
12216 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
12218 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
12219 (Fcanna_henkan_next): Ditto.
12220 (Fcanna_bunsetu_henkou): Ditto.
12221 (Fcanna_henkan_kakutei): Ditto.
12222 (Fcanna_henkan_end): Ditto.
12223 (Fcanna_henkan_quit): Ditto.
12224 (Fcanna_henkan_next): Set retun value correctly.
12225 (c2mu): Use unsigned char instead of signed char.
12227 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
12229 * emacs.c (main_1): Always call syms_of_gui.
12230 * inline.c: include gui.h
12232 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
12234 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
12235 converted to Lisp_Object.
12236 (Qtop_bottom): New variable.
12237 (syms_of_redisplay): Initialize it.
12238 * redisplay.h (Vvisible_bell): Ditto.
12239 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
12240 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
12241 only flash top and bottom.
12243 2000-03-08 Andy Piper <andy@xemacs.org>
12245 * buffer.c (Frename_buffer): record new buffer name the right way.
12247 2000-03-08 Andy Piper <andy@xemacs.org>
12249 * glyphs.c (update_subwindow): increase hash depth so that widget
12250 items get picked up properly.
12252 * redisplay-output.c (compare_runes): increase hash depth so that
12253 widget items get picked up properly.
12255 2000-03-08 Andy Piper <andy@xemacs.org>
12257 * gutter.c (output_gutter): add some debug.
12259 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
12260 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
12261 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
12263 * redisplay-output.c (compare_runes): use display_hash to
12264 determine if glyphs really are not the same.
12266 * glyphs.c (update_subwindow): check display_hash to see if
12267 anything really needs to be updated. If not then do
12268 nothing. Record the display_hash after updating.
12269 (image_instance_equal): compare the image_instance face also.
12271 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
12273 * redisplay.h: Fix comment style.
12275 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
12277 * consle-msw.h (struct mswindows_frame):
12278 Added new member paint_pending to indicate whether a WM_PAINT
12279 magic event has been queued for this frame.
12281 * event-msw.c (mswindows_drain_windows_queue):
12282 Don't queue a WM_PAINT magic event if one is already queued.
12283 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
12285 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
12287 2000-03-07 Didier Verna <didier@xemacs.org>
12289 * dired.c: #include `regex.h' after `sysfile.h'.
12291 2000-03-06 Martin Buchholz <martin@xemacs.org>
12293 * sound.c (init_nas_sound): Fix compiler warning.
12295 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
12297 (MARK_STRUCT_AS_FREE):
12298 (MARK_STRUCT_AS_NOT_FREE):
12299 Make `gcc -fstrict-aliasing' work properly.
12301 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
12303 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
12304 (mswindows_delete_device): Call CoUnnitialize().
12306 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
12308 2000-02-25 <CraigL@DyCon.com>
12310 * process-nt.c: MinGW now has <shellapi.h>, but still needs
12313 * sysdep.c: This extern declaration for environ prevents MinGW
12314 from finding the variable in CRTDLL.DLL.
12316 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
12318 (SHGFI_EXETYPE): ..
12319 (WM_MOUSEWHEEL): ..
12320 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
12322 (MMRESULT): Removed, now defined in cygwin's windows headers.
12324 (uid_t,gid_t,pid_t,ssize_t): ..
12325 (_timeb): Removed, MinGW defines both _timeb and timeb.
12326 (HAVE_H_ERRNO): Added.
12327 (HAVE_TZNAME): Added, configure is not detecting this.
12329 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
12331 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
12332 * syntax.c (syntax_match): Use it.
12334 * cmds.c: Import auto-fill-chars from FSF Emacs.
12335 (Vauto_fill_chars): New variables.
12336 (internal_self_insert): Check Vauto_fill_chars.
12338 Declare auto-fill-chars as a Lisp variable and initialize it.
12340 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
12342 * fileio.c (Fmake_symbolic_link):
12344 Run handlers even if local machine doesn't have symlinks.
12346 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
12348 * event-msw.c (mswindows_drain_windows_queue):
12349 Don't generate paint magic events for non-XEmacs frames.
12351 2000-03-05 Andy Piper <andy@xemacs.org>
12353 * redisplay.c (redisplay_frame): generate_displayable_area and
12354 friends assumes that we are not in GC, we therefore have to make
12355 sure that this doesn't happen.
12357 * gutter.c (calculate_gutter_size): generate_displayable_area
12358 assumes that we are not in GC, we therefore have to make sure that
12359 this doesn't happen.
12361 2000-03-05 Martin Buchholz <martin@xemacs.org>
12363 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
12365 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
12367 * redisplay.c (regenerate_window): Make sure we set a sane value
12368 for end_pos even if we jump out of the loop.
12369 (regenerate_window): Answer Ben's question :-).
12370 (start_end_of_last_line): Add may_error argument.
12371 (start_of_last_line):
12372 (end_of_last_line): Pass may_error = 0.
12373 (end_of_last_line_may_error): New function.
12374 (pixel_to_glyph_translation): Use it, so we don't crash in
12377 2000-03-04 Andy Piper <andy@xemacs.org>
12379 * window.h (struct window): add gutter_extent_modiff.
12381 * window.c (allocate_window): zero out gutter_extent_modiff.
12383 * redisplay.h: declare sync_display_line_structs.
12385 * redisplay.c (add_glyph_rune): add a better comment.
12387 * redisplay-output.c (sync_display_line_structs): made non-static.
12388 (compare_runes): remove unneccesary glyph cachel access.
12390 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
12392 * gutter.c (output_gutter): don't output the gutter if extent
12393 changes only involve extents in buffers. use 4 sets of display
12395 (gutter_extent_signal_changed_region_maybe): new function. Mark
12396 extents in gutters as changed.
12397 (update_frame_gutters): use 4 sets of display lines.
12398 (reset_gutter_display_lines): ditto.
12399 (free_frame_gutters): ditto.
12400 (redraw_exposed_gutter): force output of gutters.
12402 * frame.h (struct frame): add 4 sets of gutter display lines.
12404 * extents.c: (extent_changed_for_redisplay): signal changes to
12405 extents in strings in the gutter as well as extents in buffers.
12407 2000-03-02 Andy Piper <andy@xemacs.org>
12409 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
12411 * frame.c (Fmake_frame): make sure the gutters get initialized
12412 after the frame is visible.
12413 (set_frame_selected_window): re-arrange compilation macros a
12415 (change_frame_size_1): mark gutters changed.
12417 * device.c (Fset_device_class): mark gutters changed.
12419 2000-03-01 Andy Piper <andy@xemacs.org>
12421 * window.c (window_top_frame_gutter_height): deleted.
12422 (window_bottom_frame_gutter_height): ditto.
12423 (window_left_frame_gutter_height): ditto.
12424 (window_right_frame_gutter_height): ditto.
12425 (window_top_gutter_height): don't use them.
12426 (window_bottom_gutter_height): ditto.
12427 (window_left_gutter_width): ditto.
12428 (window_right_gutter_width): ditto.
12429 (Fsplit_window): ditto.
12430 (Fwindow_pixel_edges): don't use border dimensions here.
12432 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
12433 (update_scrollbar_instance): ditto.
12435 * redisplay.c (generate_modeline): don't take gutters into account.
12436 (generate_modeline): ditto.
12437 (redisplay_frame): small gutter display optimization.
12439 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
12441 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
12442 gutters into account.
12444 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
12445 for window position and type.
12447 * gutter.c (get_gutter_coords): fix for frame gutters.
12448 (update_frame_gutters): update frame geometry if the gutters have
12450 (init_frame_gutters): record current gutter geometries.
12452 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
12454 (mswindows_widget_instantiate): ditto.
12456 * frame.h (struct frame): add current_gutter_bounds.
12458 * frame.c (change_frame_size_1): position window and minibuffer
12459 appropriately taking into account the frame gutters.
12461 * frame-x.c: (x_initialize_frame_size): take into account the
12464 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
12466 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
12468 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
12470 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
12472 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12474 * file-coding.c (reset_decoding_stream): Clear previous
12475 detection state when autodetect.
12477 2000-02-29 Didier Verna <didier@xemacs.org>
12479 * extents.c (set_extent_glyph_1): don't require extents to be
12482 2000-02-27 Andy Piper <andy@xemacs.org>
12484 * gutter.c (Fset_default_gutter_position): don't default left and
12485 right gutter visibility to t.
12486 (Fset_default_gutter_position): run
12487 default-gutter-position-changed-hook.
12488 (syms_of_gutter): add default-gutter-position-changed-hook.
12490 2000-02-26 Andy Piper <andy@xemacs.org>
12492 * specifier.c (Fmake_specifier): add gutter references.
12494 * gutter.h (RAW_WINDOW_GUTTER): new macro.
12496 * lisp.h: declare Fvalid_plist_p.
12498 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
12500 (default_gutter_visible_p_changed_in_window): invalidate gutter as
12501 well as its visibility so that it gets reconstructed.
12502 (construct_window_gutter_spec): new function. Construct a string
12503 to be displayed in the gutter from a plist of strings. Take care
12504 to only use elements that are declared as visible.
12505 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
12507 (gutter_validate): allow plists of strings in the specifier.
12508 (gutter_specs_changed): construct the real_gutter from the gutter
12509 specs using construct_window_gutter_spec.
12510 (gutter_visible_validate): gutter-visible is a new specifier type.
12511 (Fgutter_visible_specifier_p): new function for the new specifier.
12512 (syms_of_gutter): declare gutter-visible and
12513 Fgutter_visible_specifier_p.
12514 (specifier_type_create_gutter): intitalize new gutter-visible
12516 (reinit_specifier_type_create_gutter): ditto.
12517 (specifier_vars_of_gutter): use new specifier type for gutter
12519 (init_frame_gutters): construct real_gutter correctly.
12520 (Fgutter_specifier_p): beef up documentation.
12521 (Fgutter_size_specifier_p): ditto.
12523 * winslots.h: add real_gutter slots.
12525 2000-02-25 Andy Piper <andy@xemacs.org>
12527 * device-msw.c: Be kind to older cygwin versions. From Raymond
12528 Toy <toy@rtp.ericsson.se>.
12530 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
12531 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
12533 2000-02-25 Martin Buchholz <martin@xemacs.org>
12535 * elhash.c (MARK_OBJ): Practice macro hygiene.
12537 2000-02-24 Martin Buchholz <martin@xemacs.org>
12539 * miscplay.c: s/__inline__/inline/g;
12540 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
12541 (get_device_compdc): INLINE ==> static inline
12542 * *.[ch]: Change INLINE to INLINE_HEADER globally.
12543 find -name '*.h' | \
12544 xargs global-replace \
12545 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
12547 2000-02-25 Andy Piper <andy@xemacs.org>
12549 * window.c (window_top_frame_gutter_height): new function.
12550 (window_top_window_gutter_height): ditto.
12551 (window_top_gutter_height): use them.
12552 (window_bottom_frame_gutter_height): new function.
12553 (window_bottom_window_gutter_height): ditto.
12554 (window_bottom_gutter_height): use them.
12555 (window_left_window_gutter_width): new function.
12556 (window_left_frame_gutter_width): ditto.
12557 (window_left_gutter_width): use them.
12558 (window_right_window_gutter_width): new function.
12559 (window_right_frame_gutter_width): ditto.
12560 (window_right_gutter_width): use them.
12561 (window_pixel_height): new function. calulate window pixel height
12562 with frame gutter involvement.
12563 (Fsplit_window): calculate new sizes taking frame gutters into
12565 (window_char_height_to_pixel_height): don't include frame gutters.
12566 (window_char_height): use window_pixel_height.
12567 (window_pixheight): rename from window_pixel_height.
12568 (change_window_height): use it.
12569 (window_pixel_height_to_char_height): don't include frame gutters.
12570 (window_char_width_to_pixel_width): ditto.
12572 2000-02-25 Andy Piper <andy@xemacs.org>
12574 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
12577 2000-02-24 Martin Buchholz <martin@xemacs.org>
12579 * alloc.c (staticpro):
12580 (staticpro_nodump):
12585 (compact_string_chars):
12586 (pdump_dump_wired):
12587 Convert: if (foo) abort(); ==> assert (! foo);
12589 * eldap.c (Fldap_search_basic):
12593 Fix compiler warnings, and possible crashes if (random) return
12594 value were to be used.
12596 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12598 * device-msw.c: Workaround ResetDC failure.
12600 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
12601 applying a devmode.
12603 * redisplay-msw.c (get_frame_dc): Added start_page_p.
12604 (mswindows_text_width): Do not start printer page.
12606 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
12608 * glyphs-msw.c: Added image methods to msprinter console and
12609 msprinter-specific image instantiation.
12611 2000-02-20 Mike Alexander <mta@arbortext.com>
12613 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
12614 to avoid crashes when selection-sets-clipboard is on
12615 (mswindows_own_selection): ditto
12617 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12620 * redisplay-msw.c (get_frame_dc):
12621 (get_frame_compdc):
12623 * device-msw.c (mswindows_init_device):
12624 (mswindows_delete_device):
12625 (msprinter_init_device):
12626 (msprinter_delete_device):
12627 * frame-msw.c (mswindows_init_frame_1):
12628 (mswindows_delete_frame):
12629 (msprinter_init_frame_3):
12630 (msprinter_delete_frame): Move compatible DC to device object from
12631 frame object, for both mswindows and msprinter. Only one at a time
12632 is needed, it is a real waste to have one per frame!
12634 2000-02-23 Andy Piper <andy@xemacs.org>
12636 * glyphs.c: add dynamic width and height elements.
12637 (image_instance_equal): ditto.
12639 * glyphs-widget.c (widget_query_geometry): calculate width and
12640 height dynamically if required.
12641 (initialize_widget_image_instance): initialize dynamic dimensions.
12642 (widget_instantiate): pick-up dynamic dimensions.
12644 * glyphs.h (struct Lisp_Image_Instance): add width and height for
12645 dynamic determination. Add appropriate macros.
12647 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
12649 (WINDOW_GUTTER_SIZE): ditto.
12650 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
12652 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
12654 (get_frame_dc): ditto.
12656 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
12659 2000-02-23 Martin Buchholz <martin@xemacs.org>
12661 * XEmacs 21.2.31 is released.
12663 2000-02-22 Ben Wing <ben@xemacs.org>
12665 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
12667 2000-02-22 Andy Piper <andy@xemacs.org>
12669 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
12671 2000-02-21 Mike Sperber <mike@xemacs.org>
12675 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
12678 2000-02-21 Mike Sperber <mike@xemacs.org>
12680 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
12682 2000-02-21 Martin Buchholz <martin@xemacs.org>
12684 * XEmacs 21.2.30 is released.
12686 2000-02-20 Martin Buchholz <martin@xemacs.org>
12688 Performance hacking.
12690 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
12691 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
12692 * emacs.c (main_1):
12694 * console.c (DEFVAR_CONSOLE_LOCAL_1):
12695 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
12696 * symeval.h (DEFVAR_SYMVAL_FWD):
12697 * symbols.c (guts_of_unbound_marker):
12698 Make all c_readonly objects also lisp_readonly and marked for life.
12699 * lrecord.h (struct lrecord_implementation):
12700 Document flags better.
12701 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
12702 * lrecord.h (DECLARE_LRECORD):
12703 * lrecord.h (XSETRECORD):
12704 * lrecord.h (RECORDP):
12705 * lrecord.h (RECORD_TYPEP):
12706 * lrecord.h (RECORD_MARKER): New.
12707 * lrecord.h (error_check_*):
12708 * lrecord.h (CONCHECK_NONRECORD):
12709 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
12710 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
12711 * lrecord.h (set_lheader_implementation):
12712 * lrecord.h (enum lrecord_type): New.
12713 * symeval.h (SYMBOL_VALUE_MAGIC_P):
12714 * alloc.c (disksave_object_finalization_1):
12715 * alloc.c (mark_object):
12716 * alloc.c (lrecord_type_index):
12717 * alloc.c (tick_lcrecord_stats):
12718 * alloc.c (Fgarbage_collect):
12719 * alloc.c (init_alloc_once_early):
12720 * alloc.c (pdump_load):
12721 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
12722 * alloc.c (lrecord_type_index): Delete.
12723 Make lisp object type indexes be constant.
12724 Makes (byte-compile) 5% faster.
12725 Put all marker functions into their own array.
12726 Makes (garbage-collect) 5% faster.
12727 Optimize SYMBOL_VALUE_MAGIC_P.
12728 Makes (byte-compile) 2-3% faster.
12729 * config.h.in (gc_checking_assert): New.
12730 * alloc.c: Use gc_checking_assert().
12731 * .dbxrc: Make compatible with new object type implementation.
12732 * .gdbinit: Make compatible with new object type implementation.
12733 * alloc.c: Delete all symbols defined only for debugging, such as
12734 Lisp_Type_Vector and lrecord_charset.
12736 2000-02-21 Andy Piper <andy@xemacs.org>
12738 * gui-msw.c (Fmswindows_shell_execute): fix file location
12741 * buffer.c (Fkill_buffer): remove buffer from alist buffer
12742 unshowing so that set_window_buffer doesn't undo
12743 kill_buffer_hook's hard work.
12745 * glyphs-widget.c (tab_control_query_geometry): don't count the
12746 first item when calculating geometry.
12748 * glyphs.c (map_subwindow): remove redundant code.
12749 (update_frame_subwindows): be more circumspect about when to
12752 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
12753 when items haven't changed. Update faces if faces have changed as
12754 well as just the widget face.
12755 (x_tab_control_update): Update faces if faces have changed as well
12756 as just the widget face.
12758 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
12760 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
12762 (build_syscolor_string): Use mswindows_color_to_string to try to
12764 (mswindows_device_system_metrics): Reverse the foreground and
12765 background colors so that they match the documentation.
12767 * objects-msw.c: (mswindows_X_color_map): tweak some values so
12768 they match the default Windows palette.
12769 (mswindows_color_to_string): New function.
12771 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
12773 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
12775 2000-02-18 Olivier Galibert <galibert@pobox.com>
12777 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
12778 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
12780 * symbols.c (init_symbols_once_early): Removed obsolete
12781 DATA_SEG_BITS related kludge.
12782 (defvar_magic): Ditto.
12784 * malloc.c: Removed obsolete DATA_SEG_BITS
12786 * mem-limits.h: Ditto.
12788 * Makefile.in.in: Removed obsolete HAVE_SHM
12791 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
12793 * device-msw.c (mswindows_delete_device): Free DDE string
12796 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12798 * keymap.c (get_keyelt):
12799 * unexnt.c (unexec):
12800 * vm-limit.c (memory_warnings):
12801 * ntheap.c (recreate_heap):
12802 * ntheap.h (UNINIT_PTR):
12803 * select-msw.c (Fmswindows_get_clipboard):
12804 (Fmswindows_set_clipboard):
12805 * objects-msw.h (MSWINDOWS_BAD_HFONT):
12807 * menubar-msw.c (displayable_menu_item):
12809 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
12810 * sysdep.c (sys_subshell):
12811 * process-nt.c (nt_create_process):
12812 * nt.c (normalize_filename):
12813 (dostounix_filename):
12814 (unixtodos_filename):
12815 * ntproc.c (win32_executable_type):
12816 * ntplay.c (play_sound_data_1):
12818 * editfns.c (get_home_directory):
12819 * event-msw.c (struct winsock_stream):
12820 (mswindows_dde_callback):
12821 * device-msw.c (msprinter_init_device):
12822 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
12824 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
12825 mswindows_clear_toolbar were swapped!
12827 * objects-msw.c:(colormap_t):
12829 * emacs.c (struct standard_args): Fixed const jumble.
12831 * glyphs-widget.c (update_widget): Fixed comparison notation.
12833 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
12835 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
12836 __declspec(noreturn) syntax.
12838 2000-02-19 Martin Buchholz <martin@xemacs.org>
12840 * eldap.c (Fldap_open):
12841 (Fldap_search_basic):
12844 Use new coding system conversion macros.
12846 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12848 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
12850 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
12852 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
12853 (Fldap_add, Fldap_modify, Fldap_delete): New functions
12855 * eldap.c (Qadd, Qreplace): New constant symbols
12856 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
12857 interruptions by XEmacs signals
12858 Remove unnecessary calls to slow_down_interrupts and
12859 speed_up_interrupts
12860 (Fldap_search_basic): Renamed from Fldap_search_internal
12861 Added new optional parameter VERBOSE that triggers the
12862 display of progress messages
12863 Remove unnecessary calls to slow_down_interrupts and
12864 speed_up_interrupts
12865 LDAP result code analysis rewritten
12866 (Fldap_add, Fldap_modify, Fldap_delete): New functions
12867 (syms_of_eldap): Define the new symbols and functions
12870 2000-02-17 Martin Buchholz <martin@xemacs.org>
12872 * realpath.c: Determine PATH_MAX maximally portably.
12874 * insdel.c (bytecount_to_charcount): Optimize.
12875 The function used to be optimized for entirely ASCII sequences.
12876 Now it is optimized for successive characters from the same
12877 charset. This also wins big for _mostly_ ASCII sequences.
12879 * fileio.c (Ffile_truename): convert return from realpath() using
12880 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
12881 - Rewrite GCPROing slightly.
12883 * sysdep.c (sys_open): Do filename conversion, like all other
12884 sys_* functions. Fixes bug:
12885 (let ((file-name-coding-system 'iso-8859-2))
12886 (write-region x y latin2-name))
12887 ==> writes filename using internal encoding.
12889 2000-02-18 Martin Buchholz <martin@xemacs.org>
12891 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
12892 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
12893 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
12894 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
12895 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
12896 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
12897 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
12898 (CONST_IF_NOT_DEBUG): Delete.
12899 * alloc.c (this_one_is_unmarkable): Delete.
12900 (mark_object): Don't check for this_one_is_unmarkable. Use the
12901 c_readonly flag instead.
12902 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
12904 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
12906 * event-msw.c (mswindows_drain_windows_queue):
12907 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
12908 away redundant repaint events.
12910 2000-02-17 Andy Piper <andy@xemacs.org>
12912 * redisplay.h: declare mark_redisplay_structs.
12914 * redisplay.c (redisplay_window):
12915 (redisplay_frame): don't check subwindows_state_changed.
12916 (mark_redisplay): mark gutters here.
12918 * glyphs.c: (instantiate_image_instantiator): always layout if we
12919 haven't done so already.
12920 (allocate_image_instance): don't mark as dirty.
12921 (update_subwindow): bind inhibit_quit.
12923 * gutter.c (mark_gutters): new function.
12925 * glyphs-x.c (x_update_widget): Always resize to get round a
12928 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
12929 breaking absolutely everything.
12931 * gutter.h: declare mark_gutters.
12933 2000-02-16 Martin Buchholz <martin@xemacs.org>
12935 * XEmacs 21.2.29 is released.
12937 2000-02-15 Olivier Galibert <galibert@pobox.com>
12939 * fns.c (size_bit_vector): Fix computation of the size.
12941 2000-02-15 Martin Buchholz <martin@xemacs.org>
12943 * *.[ch]: Change CONST to const globally.
12944 find -name '*.[ch]' | \
12945 xargs global-replace \
12946 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
12947 - Remove vestigial references to CONST_IS_LOSING
12949 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
12951 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
12952 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
12953 events instead of dispatching them directly.
12954 (mswindows_handle_paint): New function to do repainting.
12955 (mswindows_wnd_proc):
12956 (emacs_mswindows_handle_magic_event): Call above function.
12958 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
12960 * objects-msw.c (mswindows_create_font_variant): Return the new
12962 (initialize_font_instance): Get font metrics from the underlined
12963 variant of the font to cope with the case where the underlined
12964 font has a bigger descent.
12966 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
12968 * gui.c (gui_item_accelerator): Return the first underlined
12969 character in item name.
12971 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12973 * lisp.h: Added Qprinter.
12975 * general.c (syms_of_general): Initialized it.
12977 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
12979 (get_frame_compdc): Made inline.
12981 * console.h (struct console_methods): Added eject_page method.
12983 * frame.h: Added FRAME_DISPLAY_P and friends.
12984 Aligned backslahes in many macros in more readable fashion.
12985 Added page_number to struct frame, and an accessor macro
12988 * defice.h: Added DEVICE_DISPLAY_P and friends.
12990 * device.c (Fdevice_printer_p): Used these.
12992 * frame.c (allocate_frame_core): Initialize page number.
12993 (Fprint_job_page_number):
12994 (Fprint_job_eject_page): Implemented.
12996 * frame-msw.c (msprinter_eject_page): Added method.
12997 (msprinter_start_page): Added.
12999 * window.c (Fwindow_truncated_p): Fixed docstring.
13000 (Fwindow_last_line_visible_height): Implemented.
13002 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13004 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
13006 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13008 * syntax.c (scan_words): Always advance at least one character.
13010 2000-02-13 Andy Piper <andy@xemacs.org>
13012 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
13013 to make sure the glyph is in the cachels.
13015 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
13016 global image instance flag.
13017 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
13018 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
13020 * glyphs.c (allocate_image_instance): set dirty bits correctly.
13021 (Fset_image_instance_property): mark layout as changed.
13022 (invalidate_glyph_geometry_maybe): mark layout as changed.
13023 (glyph_width): use new NEEDS_LAYOUT macro.
13024 (glyph_ascent): ditto.
13025 (glyph_descent): ditto.
13026 (glyph_height): ditto.
13027 (image_instance_layout): mark layout as clean after laying out.
13028 (update_subwindow): don't mark layout as clean here.
13030 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
13031 should no longer be needed.
13033 * glyphs-x.c (x_update_widget): sanitize asserts.
13034 (x_finalize_image_instance): sanitize assignment to widgets.
13036 * glyphs-widget.c (widget_instantiate): don't need to clear the
13039 2000-02-13 Martin Buchholz <martin@xemacs.org>
13041 * sysdep.c (getcwd): Use standard prototype.
13042 * sysdep.h (getcwd): Use standard prototype.
13044 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
13045 (sequence, start, end).
13046 Remove redundant type checking.
13047 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
13048 view of `caller-protects') to avoid a crash where the real fix was
13051 2000-02-12 Martin Buchholz <martin@xemacs.org>
13053 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
13055 * s/sol2.h: Remove feature macro initialization.
13057 * alloc.c (alloc_lcrecord): Add more type checking assertions.
13058 (vector_hash): New. Code from internal_hash.
13060 Fix up allocation subsystem comments.
13062 * config.h.in: Add __EXTENSIONS__ for Solaris.
13064 * systime.h (EMACS_GETTIMEOFDAY): New.
13065 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
13066 Remove Solaris-specific code.
13067 Use void* for the (ignored) second arg for gettimeofday().
13069 * elhash.c (hash_table_hash): Implement it, finally.
13070 * elhash.c: Use hashcode_t.
13072 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
13073 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
13075 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
13076 * fns.c (size_bit_vector):
13077 * alloc.c (size_vector):
13078 (make_vector_internal):
13079 (make_bit_vector_internal):
13080 (sweep_bit_vectors_1):
13081 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
13083 2000-02-10 Martin Buchholz <martin@xemacs.org>
13085 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
13086 Include strings.h to avoid warnings for bzero and strcasecmp.
13088 2000-02-10 Olivier Galibert <galibert@pobox.com>
13090 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
13091 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
13093 * fns.c (size_bit_vector): New. Declare bit vectors as a
13096 2000-02-10 Olivier Galibert <galibert@pobox.com>
13098 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
13099 use a value field instead.
13100 (symbol_value_forward_forward): Use value field.
13101 (DEFVAR_SYMVAL_FWD): Use value field.
13102 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
13103 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
13104 (DEFVAR_CONST_INT): Ditto.
13105 (DEFVAR_BOOL): Ditto.
13106 (DEFVAR_CONST_BOOL): Ditto.
13107 (DEFVAR_INT_MAGIC): Ditto.
13108 (DEFVAR_BOOL_MAGIC): Ditto.
13110 * symbols.c (guts_of_unbound_marker): Use value field.
13111 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
13112 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
13114 * lisp.h: Declare dumpopaque and noninteractive1.
13116 * alloc.c (dumpopaque): Added.
13117 (pdump_dump_opaquevec): Added.
13118 (pdump): Call pdump_dump_opaquevec to dump opaque data.
13119 (pdump_load): Reload opaque data. Sync noninteractive1 with
13122 2000-02-10 Andy Piper <andy@xemacs.org>
13124 * glyphs.c (image_instance_layout): if the size changes, mark it
13127 * redisplay-output.c (redisplay_output_layout): Update the
13129 (redisplay_output_subwindow): ditto.
13131 * glyphs.c (update_subwindow): make sure we reset flags for
13132 layouts as well as everything else.
13134 * glyphs-widget.c (layout_layout): don't need to set the instances
13137 2000-02-09 Martin Buchholz <martin@xemacs.org>
13139 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
13140 not HAVE_DLOPEN, which is a lower-level thing.
13142 * .cvsignore: Ignore gmon.out
13144 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
13146 * .cvsignore: Ignore portable dumper xemacs.dmp file
13148 2000-02-09 Andy Piper <andy@xemacs.org>
13150 * redisplay-output.c (redisplay_output_layout): be more clever
13151 about when we output based on the changed flags.
13153 * glyphs.h (struct image_instantiator_methods): add update_method.
13154 (struct Lisp_Image_Instance): add changed flags. Declare new
13155 macros for manipulating them.
13157 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
13158 (image_instance_parent_glyph): find an image_instance's parent
13159 glyph or image_instance.
13160 (image_instance_layout): mark the size as changed.
13161 (set_image_instance_dirty_p): new function. mark an image
13162 instance, plus all of its parents, as dirty.
13163 (Fset_image_instance_property): use it.
13164 (Fglyph_animated_timeout_handler): use it.
13165 (update_subwindow): call update_widget and device methods for
13166 update_subwindow. Mark all changed flags as clean.
13167 (Fresize_subwindow): mark size as changed.
13169 * glyphs-x.c (x_finalize_image_instance): try and detect gc
13171 (x_update_subwindow): only resize subwindows here.
13172 (x_update_widget): new function. Update all changed properties of
13174 (x_resize_subwindow): deleted.
13175 (x_widget_set_property): deleted.
13176 (x_progress_gauge_set_property): deleted.
13177 (x_progress_gauge_update): new function. Implement recorded
13179 (x_tab_control_update): ditto.
13180 (x_tab_control_set_property): deleted.
13181 (console_type_create_glyphs_x): declare new functions.
13182 (image_instantiator_format_create_glyphs_x): ditto.
13184 * glyphs-widget.c (widget_set_property): mark text changed.
13185 (update_widget): new function. Update properties of a widget.
13186 (widget_instantiate): for layouts make sure we set their
13187 children's parent correctly.
13188 (tab_control_set_property): new function. Record changes that will
13189 take place under redisplay's control.
13190 (progress_gauge_set_property): ditto.
13191 (image_instantiator_progress_guage): declare new functions.
13192 (image_instantiator_tab_control): ditto.
13194 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
13196 (mswindows_update_widget): new function. Update all properties on
13197 a widget that have changed.
13198 (mswindows_button_update): new function. Update a button's set
13200 (mswindows_tab_control_update): new function. Update the items in
13202 (mswindows_tab_control_set_property): deleted.
13203 (mswindows_progress_gauge_update): new function. Update the
13204 progress gauge's progress.
13205 (mswindows_widget_set_property): deleted. This is all done
13206 asynchronously now.
13207 (mswindows_progress_gauge_set_property): ditto.
13208 (console_type_create_glyphs_mswindows): declare new methods.
13209 (image_instantiator_format_create_glyphs_mswindows): ditto.
13211 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
13212 (msprinter_set_frame_properties): ditto.
13214 * console.h (struct console_methods): Add update_widget_method.
13216 2000-02-09 Andy Piper <andy@xemacs.org>
13218 * gui-msw.c (Fmswindows_shell_execute): Make
13219 mswindows-shell-execute industrial strength.
13221 2000-02-08 Martin Buchholz <martin@xemacs.org>
13223 * lrecord.h: Make macro argument `props' match member function `plist'.
13226 * fns.c (Fremprop):
13227 * fns.c (Fobject_plist):
13230 Object property list frobbing cleanup.
13231 - Allow any lisp object (compared with `eq'), not just symbols, as
13232 keys in object plists.
13233 - Move symbol plist frobbing into symbols.c, where it belongs.
13234 - Move string plist frobbing into alloc.c, where it belongs.
13235 - Everything's an lrecord now, so no need to test for symbolp, etc.
13236 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
13238 * extents.c: Reorder code to remove declarations.
13240 * frame.h (store_in_alist): Remove useless declaration.
13242 2000-02-07 Martin Buchholz <martin@xemacs.org>
13244 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
13245 * config.h.in: Add HAVE_XCONVERTCASE.
13247 2000-02-07 Andy Piper <andy@xemacs.org>
13249 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
13250 it breaks many things.
13252 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
13254 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
13255 actually can start a common comment type.
13256 * src/syntax.h (SYNTAX_END_P): ditto for end.
13258 2000-02-07 Martin Buchholz <martin@xemacs.org>
13260 * XEmacs 21.2.28 is released.
13262 2000-02-06 Martin Buchholz <martin@xemacs.org>
13264 * event-Xt.c (x_keysym_to_character): New.
13265 (maybe_define_x_key_as_self_inserting_character): New.
13266 (x_has_keysym): New.
13267 Auto-define all keys on the keyboard as self-insert-key.
13269 2000-02-02 Martin Buchholz <martin@xemacs.org>
13271 * menubar.c (vars_of_menubar): A small code simplification.
13273 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
13276 * ExternalClient.c:
13277 * EmacsShell-sub.c:
13280 Use consistent style for specifying X resources.
13282 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
13283 This makes (dontusethis-set-symbol-value-handler) actually usable.
13285 * lrecord.h (lrecord_decription_type):
13286 * alloc.c (pdump_register_sub):
13289 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
13290 Comply with XEmacs coding style.
13291 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
13292 args, and XD_LISP_OBJECT_ARRAY with 3 args.
13294 * keymap.c (Faccessible_keymaps):
13295 Make (accessible-keymaps map "\C-h") do the Right Thing.
13296 Make (accessible-keymaps map []) do the Right Thing.
13297 Make (accessible-keymaps map "") do the Right Thing.
13298 (check_keymap_definition_loop): New function.
13299 (keymap_store_internal): Keep luser from shooting self in foot,
13300 via (define-key ctl-x-4-map "p" global-map).
13301 Remove fullness slot from struct Lisp_Keymap, since hash tables
13303 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
13305 2000-01-30 Martin Buchholz <martin@xemacs.org>
13307 * redisplay.c (init_redisplay): Fix small memory leak.
13309 * elhash.c (pdump_reorganize_hash_table):
13310 Rename from reorganize_hash_table. Change prototype.
13311 Reuse the original memory for hentries. Save 100k.
13312 * alloc.c (PDUMP_READ): new macro.
13313 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
13314 * alloc.c: No need to #ifndef before #undef.
13316 * print.c: Allow debug_print() to print readably by modifying
13317 debug_print_readably. Use consistent variable names.
13319 * .dbxrc: Try to get things to work even if stopped in a function
13320 without source available by explicitly specifying source files.
13321 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13323 * unexnt.c (_start): Removed bogus code which caused loading heap
13324 from differrent executable file.
13325 Removed bogus assignment to _fmode, which caused inconsistencies.
13327 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13329 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
13330 Have spawnve encapsulation regard DONT_ENCAPSULATE.
13331 Do not preliminary `#define signal sigset'.
13333 * systime.h: Do not prototype environ on windows nt and cygwin,
13334 this conflicts with system header.
13336 * syssignal.h: Use correct define for WINDOWSNT
13338 * sysdep.h: Do not prototype environ on windows nt, this conflicts
13339 with system header.
13341 * sysdep.c (near start of file): Fixed commentary and rearranged
13342 ifdefs in readable order.
13343 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
13346 (end_of_data): Do not compile in if using PDUMP.
13348 * symsinit.h: Prototyped vars_of_nt().
13350 * ntproc.c (windows9x_p): Added, instead of os_subtype.
13351 (find_child_console): Use it.
13352 (sys_kill): Use it.
13354 * ntheap.h: Do not extern os_subtype.
13356 * ntheap.c (cache_system_info): Do not cache unneeded:
13357 nt_major_version, nt_minor_version and os_subtype.
13358 (recreate_heap): Do not compile in when PDUMPing.
13360 * nt.c (geteuid and friends): Use the new varibale
13361 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
13362 (init_user_info): Removed the above mentioned hackery.
13363 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
13364 stat has been fixed in the C runtime.
13365 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
13367 * file-coding.c (struct file_coding_dump): Do not define
13368 ucs_to_mule_table in the struct if not MULE.
13369 (struct struct lrecord_description fcd_description_1): Do not dump
13372 * emacs.c (main_1): Call vars_of_nt().
13373 (right before Fdump_emacs_data): Don't need lastfile if using both
13374 portabe dumper and system malloc.
13376 * alloc.c (Fmemory_limit): Conditionalized out.
13377 (pdump): Use OPEN_BINARY for the portable dump file.
13378 (pdump_load): Ditto.
13380 2000-02-02 Mike Alexander <mta@arbortext.com>
13382 * nt.c (convert_time): Set tm_isdst before calling mktime and
13383 avoid calling it at all if the compiler supports 64 bit integers.
13384 Also initialize utc_base_ft before using it.
13386 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
13388 * frame.c (change_frame_size_1): Take f->internal_border_width
13389 into consideration when calculating the width of the frame.
13391 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13393 * window.c (frame_min_height):
13394 (frame_size_valid_p):
13395 (frame_pixsize_valid_p): Added.
13396 (check_frame_size): Generalized.
13398 * window.h: Prototyped the above.
13401 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
13402 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
13403 Deleted Vwin32_* and Vbinary_process_* unused variables.
13405 * device-msw.c (msprinter_init_device): Do not get printer font
13406 list; Added DEVMODE functions.
13408 * frame-msw.c: Added lots of printer code.
13410 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
13413 * console-msw.h: Added more msprinter device private slots.
13415 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13417 * event-msw.c (key_needs_default_processing_p): Added.
13418 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
13420 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13422 * glyphs.c (image_instance_layout): Mark image instance as clean
13424 (glyph_dirty_p): Removed redundant function.
13425 (invalidate_glyph_geometry_maybe): Added.
13426 (update_glyph_cachel_data): Call it.
13428 * glyphs.h: Prototyped it.
13430 * redisplay.c (add_glyph_rune): Call it.
13431 (redisplay_window): Reset glyphs cachels when frame faces have
13432 changed, thus forcing recomputation of built-in border glyphs.
13434 2000-01-30 Martin Buchholz <martin@xemacs.org>
13436 * Makefile.in.in: Make portable dumper and purify play well together.
13437 Add imperfect, but better than nothing, support for pdump.
13438 Remove xemacs.dmp when temacs is re-generated.
13439 Don't ignore errors when dumping xemacs.
13441 * symbols.c (maybe_call_magic_handler): Remove one magic number.
13443 2000-01-28 Andy Piper <andy@xemacs.org>
13445 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
13446 (setup_normal_frame): ditto.
13447 (setup_frame_without_minibuffer): ditto.
13448 (setup_minibuffer_frame): ditto.
13449 (delete_frame_internal): ditto.
13450 (Fmake_frame_invisible): ditto.
13451 (Ficonify_frame): ditto.
13453 * window.h: change Fset_window_buffer signature.
13455 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
13456 (Fset_window_buffer): allow recording of buffer if the window is
13457 the selected window.
13458 (window_loop): Use new Fset_window signature.
13460 2000-01-23 Daniel Pittman <daniel@danann.net>
13462 * config.h.in: Added template for `HAVE_ATHENA_3D'
13464 2000-01-29 Andy Piper <andy@xemacs.org>
13466 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
13468 * gutter.c (output_gutter): Don't output if the window isn't live.
13470 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13472 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
13473 of 01/12/00: Moved SetFocus back here where it belongs.
13475 2000-01-23 Andy Piper <andy@xemacs.org>
13477 * s/cygwin32.h: declare printer things.
13479 2000-01-26 Andy Piper <andy@xemacs.org>
13481 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
13484 2000-01-24 Andy Piper <andy@xemacs.org>
13486 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
13487 (mswindows_button_instantiate): Make sure glyph is a pixmap.
13489 * glyphs-widget.c (widget_instantiate): Avoid shadows.
13491 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
13493 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
13495 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
13496 (mswindows_output_display_block): Avoid local shadows.
13498 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
13499 (mswindows_enqueue_mouse_button_event): ditto.
13500 (mswindows_handle_gui_wm_command): remove declaration.
13502 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
13505 * console-msw.h: Avoid shadows.
13506 (mswindows_get_toolbar_button_text):
13507 (emacs_mswindows_create_stream_pair):
13508 (emacs_mswindows_delete_stream_pair):
13509 (mswindows_handle_toolbar_wm_command): declare.
13511 * device-msw.c (build_syscolor_string): Avoid shadows.
13513 2000-01-23 Andy Piper <andy@xemacs.org>
13515 * glyphs-widget.c (widget_instantiate): reverse the items for
13516 layouts so that children are in the expected order.
13518 2000-01-28 Martin Buchholz <martin@xemacs.org>
13520 * ralloc.c: safe_bcopy ==> memmove
13521 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
13522 * s/msdos.h: Remove BCOPY macros.
13523 * insdel.c (gap_right): Remove BCOPY conditional code.
13524 * insdel.c (gap_left): Remove BCOPY conditional code.
13525 XEmacs demands a working ANSI C compiler - hence memmove.
13527 * regex.c (regex_compile): Remove accidental use of trigraphs.
13529 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13531 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
13534 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13536 * event-msw.c (mswindows_drain_windows_queue): Added the
13538 (mswindows_need_event): Commented the call to
13539 mswindows_drain_windows_queue().
13540 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
13543 * console-msw.h: Moved a few function prototypes here from
13546 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
13547 parameter from unsigned short to unsigned long.
13548 (Fmswindows_shell_execute): Added return value.
13550 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
13552 * sysdep.c (init_system_name):
13553 process-unix.c (unix_canonicalized_host_name):
13554 Don't call freeaddrinfo() if getaddrinfo() fails.
13556 * process-unix.c (unix_open_unix_network_stream):
13557 Moved the code to get a port # into address loop.
13559 2000-01-27 Martin Buchholz <martin@xemacs.org>
13561 * buffer.c (reinit_vars_of_buffer):
13562 The right place to initialize conversion_in_dynarr and
13563 conversion_out_dynarr.
13565 * alloc.c (pdump): Use the real open() till sys_open() is functional.
13567 * process-unix.c (unix_canonicalize_host_name): Muleize.
13568 (unix_open_network_stream): Muleize.
13570 * buffer.h: Fix up prototypes for ralloc.c functions.
13572 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
13573 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
13574 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
13575 instead of gethostbyname()
13576 * process-unix.c: In unix_canonicalize_host_name() and
13577 unix_open_network_stream(), add code to use getaddrinfo()
13578 instead of gethostbyname().
13580 2000-01-27 Daniel Pittman <daniel@danann.net>
13582 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
13583 libs when built with flat Athena.
13585 2000-01-27 Martin Buchholz <martin@xemacs.org>
13587 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
13588 Use coding standards for function prototypes.
13590 2000-01-25 Martin Buchholz <martin@xemacs.org>
13592 * dialog-msw.c (push_lisp_string_as_unicode):
13593 * doc.c (unparesseuxify_doc_string):
13594 * dired.c (Fuser_name_completion_1):
13595 * dired.c (Fuser_name_all_completions):
13596 * dired.c (free_user_cache):
13597 * dired.c (user_name_completion):
13598 * console-x.c (get_display_arg_connection):
13599 * minibuf.c (clear_echo_area_internal):
13600 * minibuf.c (echo_area_append):
13601 * eldap.c (Fldap_open):
13602 * eldap.c (Fldap_search_internal):
13603 * frame-x.c (x_set_frame_text_value):
13604 * frame-x.c (x_set_frame_properties):
13605 * frame-x.c (x_create_widgets):
13606 * redisplay-tty.c (term_get_fkeys_1):
13607 * objects-x.c (x_parse_nearest_color):
13608 * objects-x.c (x_valid_color_name_p):
13609 * objects-x.c (x_initialize_font_instance):
13610 * objects-x.c (x_list_fonts):
13611 * objects-x.c (x_find_charset_font):
13612 * tooltalk.c (Fadd_tooltalk_message_arg):
13613 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
13614 * tooltalk.c (Fadd_tooltalk_pattern_arg):
13615 * process-unix.c (unix_create_process):
13616 * ntproc.c (sys_spawnve):
13617 * sound.c (Fplay_sound_file):
13618 * sound.c (Fplay_sound):
13619 * buffer.c (init_initial_directory):
13620 * buffer.c (init_buffer):
13621 * editfns.c (init_editfns):
13622 * editfns.c (Ftemp_directory):
13623 * editfns.c (Fuser_full_name):
13624 * editfns.c (uncache_home_directory):
13625 * editfns.c (get_home_directory):
13626 * editfns.c (Fuser_home_directory):
13627 * editfns.c (Fformat_time_string):
13628 * editfns.c (Fcurrent_time_string):
13629 * gui-x.c (button_item_to_widget_value):
13630 * database.c (Fopen_database):
13631 * event-Xt.c (x_to_emacs_keysym):
13632 * event-Xt.c (x_event_to_emacs_event):
13633 * event-Xt.c (describe_event_window):
13634 * event-msw.c (mswindows_wnd_proc):
13635 * glyphs-eimage.c (jpeg_instantiate):
13636 * glyphs-eimage.c (gif_instantiate):
13637 * glyphs-eimage.c (png_instantiate):
13638 * glyphs-eimage.c (tiff_instantiate):
13639 * glyphs-x.c (xbm_instantiate_1):
13640 * glyphs-x.c (x_xbm_instantiate):
13641 * glyphs-x.c (x_xface_instantiate):
13642 * glyphs-x.c (autodetect_instantiate):
13643 * glyphs-x.c (cursor_font_instantiate):
13644 * glyphs-x.c (x_widget_instantiate):
13645 * glyphs-x.c (x_widget_set_property):
13646 * glyphs-x.c (x_widget_property):
13647 * glyphs-x.c (BUILD_GLYPH_INST):
13648 * print.c (write_string_to_stdio_stream):
13649 * print.c (output_string):
13650 * print.c (Falternate_debugging_output):
13651 * print.c (Fexternal_debugging_output):
13652 * glyphs-msw.c (extract_xpm_color_names):
13653 * glyphs-msw.c (mswindows_xpm_instantiate):
13654 * glyphs-msw.c (bmp_instantiate):
13655 * glyphs-msw.c (resource_name_to_resource):
13656 * glyphs-msw.c (mswindows_resource_instantiate):
13657 * glyphs-msw.c (xbm_instantiate_1):
13658 * glyphs-msw.c (mswindows_xbm_instantiate):
13659 * glyphs-msw.c (mswindows_xface_instantiate):
13660 * glyphs-msw.c (mswindows_widget_instantiate):
13661 * glyphs-msw.c (add_tree_item):
13662 * glyphs-msw.c (add_tab_item):
13663 * glyphs-msw.c (mswindows_combo_box_instantiate):
13664 * glyphs-msw.c (mswindows_widget_property):
13665 * glyphs-msw.c (mswindows_combo_box_property):
13666 * glyphs-msw.c (mswindows_widget_set_property):
13667 * console.c (stuff_buffered_input):
13668 * objects-msw.c (mswindows_initialize_color_instance):
13669 * objects-msw.c (mswindows_valid_color_name_p):
13670 * objects-msw.c (mswindows_list_fonts):
13671 * objects-msw.c (mswindows_font_instance_truename):
13672 * bytecode.c (optimize_compiled_function):
13673 * select-x.c (symbol_to_x_atom):
13674 * select-x.c (x_atom_to_symbol):
13675 * select-x.c (hack_motif_clipboard_selection):
13676 * select-x.c (selection_data_to_lisp_data):
13677 * select-x.c (lisp_data_to_selection_data):
13678 * select-x.c (Fx_get_cutbuffer_internal):
13679 * select-x.c (Fx_store_cutbuffer_internal):
13680 * buffer.h (TO_EXTERNAL_FORMAT): New function.
13681 * buffer.h (TO_INTERNAL_FORMAT): New function.
13682 * emacs.c (make_arg_list_1):
13683 * emacs.c (make_argc_argv):
13684 * emacs.c (main_1):
13685 * emacs.c (Fdump_emacs):
13686 * emacs.c (split_string_by_emchar_1):
13691 * device-x.c (x_init_device):
13692 * device-x.c (Fx_valid_keysym_name_p):
13693 * device-x.c (Fx_get_font_path):
13694 * device-x.c (Fx_set_font_path):
13695 * glyphs.c (bitmap_to_lisp_data):
13696 * glyphs.c (pixmap_to_lisp_data):
13697 * alloc.c (make_ext_string): Use coding system arguments. Update
13699 * alloc.c (build_string):
13700 * callproc.c (child_setup):
13701 * callproc.c (init_callproc):
13702 * fileio.c (lisp_strerror):
13703 * fileio.c (directory_file_name):
13704 * fileio.c (Fexpand_file_name):
13705 * fileio.c (Ffile_truename):
13706 * fileio.c (Fsysnetunam):
13707 * fileio.c (Fdo_auto_save):
13708 * sysdep.c (sys_readdir):
13709 * tests.c: New file. Allow adding C tests.
13710 Replace GET_* macros with a more comprehensible and flexible
13711 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
13713 Any coding system can be used to do format conversion.
13714 Eliminate enum external_data_format.
13715 Eliminate convert_to_external_format.
13716 Eliminate convert_to_internal_format.
13717 Make sure file-name, keyboard, terminal, and ctext are always
13718 defined as coding systems or aliases. Make
13719 file-name-coding-system, terminal-coding-system, and
13720 keyboard-coding-system magical variables that are equivalent to
13721 defining the corresponding coding system aliases.
13723 * file-coding.c (Fcoding_system_canonical_name_p): New function.
13724 * file-coding.c (Fcoding_system_alias_p): New function.
13725 * file-coding.c (Fcoding_system_aliasee): New function.
13726 * file-coding.c (append_suffix_to_symbol): New function.
13727 * file-coding.c (dangling_coding_system_alias_p): New function.
13728 * file-coding.c (Ffind_coding_system):
13729 * file-coding.c (Fcopy_coding_system):
13730 * file-coding.c (encode_coding_no_conversion):
13731 * file-coding.c (syms_of_file_coding):
13732 * file-coding.c (vars_of_file_coding):
13733 Rewrite coding system alias code.
13734 Allow nested aliases, like symbolic links.
13735 Allow redefinition of coding system aliases.
13736 Prevent existence of dangling coding system aliases.
13738 * dired.c (Fuser_name_completion_1):
13739 * dired.c (Fuser_name_all_completions):
13740 A crash would happen if user did QUIT in the middle of building
13741 user_name_cache. Remove redundant code in mainline and unwind_protect.
13744 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
13746 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
13747 an unsigned char *. Update all callers.
13749 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13751 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
13753 2000-01-25 Martin Buchholz <martin@xemacs.org>
13755 * elhash.c (hentry_description): Use more portable definition.
13756 (resize_hash_table): Initialize new hentries using
13757 xnew_array_and_zero, thereby simplifying the code.
13759 * mule-charset.c (make_charset): Make sure entire object is
13760 initialized, to avoid Purify warnings.
13762 * alloc.c (resize_string): Fix unlikely crash with big strings.
13764 2000-01-24 Martin Buchholz <martin@xemacs.org>
13766 * realpath.c (xrealpath):
13767 Don't call getwd().
13769 2000-01-25 Martin Buchholz <martin@xemacs.org>
13771 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
13773 1999-12-28 Max Matveev <max@melbourne.sgi.com>
13775 * unexelfsgi.c (unexec): Change the way we decide which segment
13776 should be extended.
13778 Assumption that .bss section should be outside the PT_LOADable
13779 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
13780 it's present) is inside the 'data' segment. This would fail the
13781 test which was used to find a segment to grow and cover new
13782 heap. Instead of this assumption, I created another one - on IRIX
13783 the segment to grow should start below .bss and it's address
13784 should extent above the end of .bss. Once this segment is
13785 identified, it's grown to accommodate the new heap and new
13786 zero-length .bss section is added at the end of .data2.
13788 2000-01-25 Martin Buchholz <martin@xemacs.org>
13790 * eval.c (Feval): Wrong number of arguments should use original
13791 function, not the indirect_function version of it.
13793 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
13795 * glyphs-x.c (x_button_instantiate): Don't add image if
13796 it is not a pixmap.
13797 (x_locate_pixmap_file): Call Fexpand_file_name when file name
13800 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
13802 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
13804 (DEFVAR_INT_MAGIC): Ditto.
13805 (DEFVAR_BOOL_MAGIC): Ditto.
13806 * glyphs.h: Reindent backslash.
13808 2000-01-24 Martin Buchholz <martin@xemacs.org>
13810 * glyphs-widget.c (layout_query_geometry):
13811 (layout_layout): Use correct types for gheight, gwidth.
13813 2000-01-24 Martin Buchholz <martin@xemacs.org>
13815 * EmacsManager.c (QueryGeometry): Purified.
13817 2000-01-23 Martin Buchholz <martin@xemacs.org>
13819 * alloc.c (make_float): Make sure entire object is initialized, to
13820 avoid Purify warnings.
13821 (pdump_register_sub): Remove useless assignment.
13822 (pdump): Use xmalloc, not malloc.
13823 (pdump_load): Use xmalloc, not malloc.
13825 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13832 * sysdep.c: Removed redundant #include <windows.h>
13834 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13836 * frame.c (delete_frame_internal): Do not delete device when its
13837 implementation so declares.
13838 (delete_frame_internal): Set device selected frame to nil when
13839 last frame goes away.
13841 * device-msw.c (msprinter_device_system_metrics): Implemented.
13842 (mswindows_device_system_metrics): Added 'device-dpi property.
13844 * device.c: (Fdevice_printer_p): Added.
13845 Added 'offset-workspace device metric.
13847 * console.h (device_metrics): Declared DM_offset_workspace.
13849 2000-01-23 Martin Buchholz <martin@xemacs.org>
13851 * fileio.c (Ffile_truename): Remove pointless and confusing
13852 initialization of elen.
13854 * glyphs-widget.c: Compiler warning fixes.
13856 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
13858 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
13859 instead of a Lisp_Object as argument to make it consistent with
13860 the other LIVE_P macros.
13861 (CHECK_LIVE_PROCESS): New macro.
13863 * process.c: Declare Qprocess_live_p.
13864 (Fprocess_live_p): New function.
13865 (create_process): Use PROCESS_LIVE_P.
13866 (read_process_output): Ditto.
13867 (set_process_filter): Ditto.
13868 (Fdelete_process): Ditto.
13869 (kill_buffer_processes): Ditto
13870 (process_send_signal): Use CHECK_LIVE_PROCESS.
13871 (Fprocess_input_coding_system): Check whether process is still
13872 alive (fix PR#1061).
13873 (Fprocess_output_coding_system): Ditto.
13874 (Fprocess_coding_system): Ditto.
13875 (Fset_process_input_coding_system): Ditto.
13876 (Fset_process_output_coding_system): Ditto.
13878 2000-01-23 Andy Piper <andy@xemacs.org>
13880 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
13883 * glyphs.c (mark_image_instance): take into account changed
13884 image_instance format.
13885 (image_instance_equal): ditto.
13886 (image_instance_hash): ditto.
13888 * glyphs-widget.c (widget_instantiate): Incorporate layout
13889 instantiation here. Delay layout of the layout until later.
13890 (layout_instantiate): deleted.
13891 (layout_query_geometry): new function. get the geometry of a
13893 (layout_layout): layout a layout dynamically.
13894 (image_instantiator_widget): New function - splitting up
13895 image_instantiator_format_create_glyphs_widget for netwinder
13897 (image_instantiator_buttons):
13898 (image_instantiator_edit_fields):
13899 (image_instantiator_combo_box):
13900 (image_instantiator_scrollbar):
13901 (image_instantiator_progress_guage):
13902 (image_instantiator_tree_view):
13903 (image_instantiator_tab_control):
13904 (image_instantiator_labels):
13905 (image_instantiator_layout): ditto.
13906 (image_instantiator_format_create_glyphs_widget): Call preceding
13909 2000-01-22 Martin Buchholz <martin@xemacs.org>
13911 * process.c (Fset_process_coding_system):
13912 * device-x.c (Fx_keysym_hash_table):
13915 * lstream.c (Lstream_write): Return documented value, not 0.
13917 * fileio.c (directory_file_name):
13918 (Fsubstitute_in_file_name):
13919 (Fsubstitute_insert_file_contents_internal):
13920 (Fwrite_region_internal):
13925 Remove vestigial APOLLO-conditional code.
13927 2000-01-21 Martin Buchholz <martin@xemacs.org>
13929 * getpagesize.h: Add guard macros.
13930 * libsst.h: Add guard macros.
13931 * libst.h: Add guard macros.
13932 * line-number.h: Add guard macros.
13933 * ndir.h: Add guard macros.
13934 * sysfloat.h: Add guard macros.
13935 * sysfile.h: Add guard macros.
13936 * sysproc.h: Add guard macros.
13937 * syswait.h: Add guard macros.
13938 * xintrinsic.h: Add guard macros.
13939 * xintrinsicp.h: Add guard macros.
13940 * xmmanager.h: Add guard macros.
13941 * xmmanagerp.h: Add guard macros.
13942 * xmprimitive.h: Add guard macros.
13943 * xmu.h: Add guard macros.
13944 * gpmevent.h: Add copyright statement. Add guard macros.
13945 * miscplay.h: Add guard macros.
13946 * *.h: Use consistent C-standards-approved guard macro names.
13948 * opaque.c (make_opaque): Switch parameter order.
13949 * opaque.h (make_opaque): Switch parameter order.
13950 Update all callers.
13951 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
13953 * config.h.in (type_checking_assert): Added.
13954 (bufpos_checking_assert): Added.
13956 2000-01-21 Martin Buchholz <martin@xemacs.org>
13958 * alloc.c: Harmless pdump changes.
13960 - spell alignment correctly.
13961 * sysdep.c: Use countof()
13963 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13965 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
13966 initially_selected_for_input() console method, default to 0.
13967 (semi_canonicalize_console_connection): Try to delegate to
13968 canonicalize_console_connection if no such console method.
13969 (canonicalize_console_connection): Vice versa.
13970 (print_console): Do not print nil connection.
13972 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
13973 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
13974 (XDEVIMPF_FRAMELESS_OK): Added.
13975 (CONSOLE_INHERITS_METHOD): Added.
13977 * console-msw.c (mswindows_canonicalize_console_connection):
13979 (mswindows_canonicalize_device_connection): Added.
13981 * console-msw.h (struct msprinter_device): Added this struct and
13983 (mswindows_device): Made fontlist a lisp object.
13985 * device.c (semi_canonicalize_device_connection): Try to delegate
13986 to canonicalize_device_connection if no such console method.
13987 (canonicalize_device_connection): Vice versa.
13988 (print_device): Do not print nil connection.
13990 * device-msw.c (mswindows_init_device): Call InitCommonControls
13992 (mswindows_delete_device): Removed fontlist deallocation.
13993 (mswindows_mark_device): Added.
13995 * events.c (event_equal): Added abort() at unreached code.
13996 (event_hash): Ditto.
13998 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
13999 fallback tags of Windows devices.
14001 * general.c (syms_of_general): Initialized Qmsprinter.
14003 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
14004 of fallback tags of Windows devices.
14006 * lisp.h: Declared Qmsprinter.
14008 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
14010 (mswindows_list_fonts): Ditto.
14011 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
14012 that it can be used by both mswindows and msprinter devices.
14013 (initialize_font_instance): Added.
14014 (mswindows_initialize_font_instance): Use it.
14015 (msprinter_initialize_font_instance): Added.
14017 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
14018 and implementation flags check.
14019 (redisplay_without_hooks): Changed the call to the above.
14020 (Fredraw_device): Ditto.
14021 (Fredisplay_device): Ditto.
14023 * redisplay-msw.c (get_frame_dc): Implemented.
14024 (get_frame_compdc): Implemented.
14025 (many functions): Use the two functions above to get device
14026 contexts, ether for a window or a printer.
14028 2000-01-21 Olivier Galibert <galibert@pobox.com>
14030 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
14031 initialization here.
14032 (init_symbols_once_early): Call it.
14033 * emacs.c (main_1): Call it.
14034 * symsinit.h: Declare it.
14036 2000-01-19 Olivier Galibert <galibert@pobox.com>
14038 * alloc.c: Use a lrecord_header * in the backtrace instead of a
14040 (pdump_backtrace): Ditto.
14041 (pdump_register_object): Ditto. Cleanup use of the pointers.
14042 (pdump_get_entry): Abort if trying to register a null pointer.
14043 (pdump_dump_data): Cleanup types when relocating.
14044 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
14045 (pdump_dump_rtables): Remove bad casts.
14046 (pdump_load): Cleanup relocation w.r.t union type. Use a
14047 Lisp_Object instead of a EMACS_INT for the hashtable
14050 2000-01-20 Martin Buchholz <martin@xemacs.org>
14052 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
14054 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
14056 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
14058 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
14060 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14062 * faces.h (FACE_STRIKETHRU_P): Added.
14064 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
14067 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
14068 (mswindows_set_dc_font): New function, aware of font variants,
14069 separated from mswindows_update_dc.
14071 * objects-msw.h (struct mswindows_font_instance_data): Added
14074 * objects-msw.c (mswindows_finalize_font_instance): Delete all
14075 cached fonts and the data structure.
14076 (mswindows_initialize_font_instance): Added creation of font data
14078 (mswindows_print_font_instance): Print at least something.
14079 (mswindows_create_font_variant): Implemented.
14080 (mswindows_get_hfont): Implemented.
14082 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
14084 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
14085 prototyping problem with msvc.
14087 * emacs.c (main_1): added syms_of_gui_mswindows() call
14089 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
14090 syms_of_gui_mswindows() function
14092 * symsinit.h: added the prototype for syms_of_gui_mswindows()
14094 2000-01-18 Martin Buchholz <martin@xemacs.org>
14096 * XEmacs 21.2.27 is released.
14098 2000-01-18 Martin Buchholz <martin@xemacs.org>
14100 * glyphs-eimage.c (struct tiff_error_struct):
14102 (tiff_warning_func):
14103 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
14108 * unexec.c: Remove vestigial Lucid C code.
14112 * libsst.c: Ansify.
14113 Remove declarations of errno and strerror().
14115 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
14117 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
14119 2000-01-16 Martin Buchholz <martin@xemacs.org>
14121 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
14124 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14129 Change enum eol_type to eol_type_t.
14131 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14133 * gui.c (get_gui_callback): Check cons before accessing car.
14135 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14137 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
14138 (XSETSPECIFIER_TYPE): Ditto.
14140 2000-01-17 Didier Verna <didier@xemacs.org>
14142 * redisplay.c (generate_fstring_runes): compute string size in
14143 characters, not bytes.
14145 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
14147 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
14149 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
14151 * print.c (print_error_message): Call print_prepare().
14153 2000-01-14 Martin Buchholz <martin@xemacs.org>
14155 * .dbxrc: Renamed from dbxrc.
14157 * events.c (event_to_character):
14158 Use `assert (foo)' instead of `if (!foo) abort()'
14160 * .gdbinit (xtype): Add documentation.
14161 * .gdbinit (check-temacs): New function.
14162 * .gdbinit (check-xemacs): New function.
14163 * dbxrc (check-xemacs): New function.
14164 * dbxrc (check-xemacs): New function.
14166 2000-01-14 Andy Piper <andy@xemacs.org>
14168 * glyphs-widget.c (widget_query_geometry): Make sure that we
14169 calculate default dimensions correctly.
14171 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14173 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
14175 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
14176 pdump_wire'd variable.
14178 * emacs.c: (main_1): Conditionalized calls to
14179 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
14181 2000-01-13 Martin Buchholz <martin@xemacs.org>
14183 * window.c (Fset_window_configuration):
14184 * sysdep.c (_start):
14185 * input-method-motif.c (res):
14186 * event-Xt.c (Xt_process_to_emacs_event):
14187 Simple compiler warning fixes.
14189 * bytecode.c (funcall_compiled_function): Use the original
14190 function symbol on the backtrace list in preference to the
14191 compiled_function object in error messages.
14193 2000-01-13 Andy Piper <andy@xemacs.org>
14195 * glyphs-x.c (update_widget_face): Make sure we update the widget
14196 background as well as foreground.
14198 2000-01-13 Andy Piper <andy@xemacs.org>
14200 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
14201 fields to subwindow.
14202 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
14203 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
14204 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
14205 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
14207 * glyphs-widget.c (check_valid_tab_orientation): new function.
14208 (initialize_widget_image_instance): zero orientation and
14210 (widget_instantiate): pick up orientation.
14211 (tab_control_query_geometry): return appropriate values for
14214 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
14215 appropriate creation flags for left, right and bottom tabs.
14217 * s/cygwin32.h: add tab definitions.
14219 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14221 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
14222 frame upon hiding a subwindow.
14223 (mswindows_button_instantiate): Changed the push button style to
14225 (mswindows_button_instantiate): Removed button BS_NOTIFY
14227 (mswindows_button_instantiate): Removed redundant check for
14228 a disabled gui item.
14229 (mswindows_button_instantiate): Made use of WS_TABSTOP
14230 consistent: "operable" controls (edit, button, tree, scroll) have
14231 this style, "display-only" ones (static, progress gauge) do
14232 not. This style is currently ignored by XEmacs though. Also,
14233 removed the WS_EX_CONTROLPARENT style - it is not for children,
14234 it is for their parents!
14235 (mswindows_edit_field_instantiate): Ditto.
14236 (mswindows_progress_gauge_instantiate): Ditto.
14237 (mswindows_tree_view_instantiate): Ditto.
14238 (mswindows_tab_control_instantiate): Ditto.
14239 (mswindows_scrollbar_instantiate): Ditto.
14240 (mswindows_combo_box_instantiate): Ditto.
14241 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
14242 style to the "clip" window.
14243 (mswindows_button_instantiate): Removed compilation warning by
14244 equally typing terms of the ?: operator.
14246 2000-01-12 Didier Verna <didier@xemacs.org>
14248 * redisplay.c (generate_fstring_runes): new parameter holding the
14249 last modeline-format extent.
14250 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
14251 extent, fill the glyph block with it.
14252 (generate_fstring_runes): handle these parameters.
14253 (generate_formatted_string_db): ditto.
14255 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
14256 glyphs'extents in the modeline.
14258 1999-01-11 Mike Woolley <mike@bulsara.com>
14260 * ntheap.c: Reduced the reserved heap space from 1Gb down to
14261 256Mb, as a workaround for the non-starting problem many people
14264 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14266 * console-tty.c (Fset_console_tty_output_coding_system):
14267 Force redrawing tty frame.
14269 2000-01-10 Didier Verna <didier@xemacs.org>
14271 * redisplay.c (generate_fstring_runes): fix size computation bug.
14273 2000-01-09 William M. Perry <wmperry@aventail.com>
14275 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
14277 2000-01-09 Andy Piper <andy@xemacs.org>
14279 * glyphs-msw.c: index -> i to avoid shadows.
14280 (xbm_create_bitmap_from_data): make static.
14281 (check_valid_string_or_int): deleted.
14282 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
14284 * glyphs-x.c (x_update_subwindow): remove unused args.
14286 * glyphs.c (glyph_image_instance): return the thing. Don't set the
14287 back pointer - this is done in allocate_image_instance.
14288 (query_string_font): return Qnil to make the compiler happy.
14289 (unmap_subwindow): set to ~0 to make the compiler happy.
14290 (glyph_query_geometry): comment out until used.
14291 (glyph_layout): ditto.
14293 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
14295 * insdel.c (signal_after_change): Remove extraneous unbind_to().