1 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
5 * fns.c (Qideographic_structure): New variable.
6 (Qkeyword_char): New variable.
7 (ids_format_unit): New function.
8 (Fideographic_structure_to_ids): New function.
9 (syms_of_fns): Add new symbols `ideographic-structure' and
10 `:char'; add new builtin function `ideographic-structure-to-ids'.
12 * data.c (Fchar_ref_p): New function.
13 (syms_of_data): Add new builtin function `char-ref-p'.
15 * chartab.h: Add an EXFUN for `Ffind_char'.
17 2002-07-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
19 * text-coding.c (Vcharacter_composition_table): Deleted.
20 (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
23 * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
25 (Vcharacter_composition_table): Deleted.
26 (Fget_composite_char): Use the implementation for external-DB
27 support in every UTF-2000.
28 (Fput_char_attribute): Likewise.
29 (char_attribute_system_db_file): Don't define if external-DB
30 feature is not available.
31 (Fsave_char_attribute_table): Likewise.
32 (Fmount_char_attribute_table): Likewise.
33 (Fclose_char_attribute_table): Likewise.
34 (Freset_char_attribute_table): Likewise.
35 (Fload_char_attribute_table): Likewise.
36 (syms_of_chartab): Don't define `save-char-attribute-table',
37 `mount-char-attribute-table', `reset-char-attribute-table',
38 `close-char-attribute-table' and `load-char-attribute-table' if
39 external-DB feature is not available.
40 (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
42 2002-07-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
44 * text-coding.c (Qcomposition): Add extern if external-DB feature
46 (Vcharacter_composition_table): Don't add extern if external-DB
48 (COMPOSE_ADD_CHAR): Modify for new data-representation of
49 character composition rule if external-DB feature is supported.
51 * chartab.c (Vcharacter_composition_table): Don't define if
52 external-DB feature is supported.
53 (Qcomposition): New variable.
54 (Fget_composite_char): New implementation for external-DB support.
55 (Fput_char_attribute): Use `composition' property of each
56 character instead of `Vcharacter_composition_table' to store
57 character-composition rules if external-DB feature is supported.
58 (syms_of_chartab): Add new symbol `composition'.
59 (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
60 external-DB feature is supported.
62 2002-07-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
64 * chartab.c (Vchar_db_stingy_mode): New variable.
65 (load_char_attribute_maybe): Close database if
66 Vchar_db_stingy_mode is not NIL.
67 (Fload_char_attribute_table_map_function): Use
68 `get_char_id_table_0' instead of `get_char_id_table'.
69 (vars_of_chartab): Add new variable `char-db-stingy-mode'.
71 * chartab.h (get_char_id_table_0): New inline function.
72 (get_char_id_table): Use `get_char_id_table_0'.
74 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
76 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
77 and `COMPOSE_ADD_CHAR'.
78 (decode_coding_iso2022): Use `decode_flush_er_chars'.
80 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
82 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
83 instead of `DECODE_ADD_UCS_CHAR'.
84 (COMPOSE_ADD_CHAR): Likewise.
86 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
88 * text-coding.c (decode_flush_er_chars): New inline function.
89 (decode_add_er_char): New function.
90 (decode_coding_utf8): Use `decode_flush_er_chars' and
93 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
95 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
96 done before `decode_output_utf8_partial_char'.
98 * mule-charset.c (complex_vars_of_mule_charset): Specify
99 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
100 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
102 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
104 * mule-charset.c (decode_defined_char): New function; search
106 (decode_builtin_char): Don't search mother if
107 XCHARSET_MAX_CODE(charset) == 0.
108 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
109 == 0 even if code >= XCHARSET_MAX_CODE(charset).
110 (Fdecode_char): Use `decode_defined_char' instead of
111 `DECODE_DEFINED_CHAR'.
112 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
113 mother of `Vcharset_ucs_jis'.
115 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
116 instead of `DECODE_DEFINED_CHAR'.
118 * char-ucs.h (decode_defined_char): Renamed from
119 `DECODE_DEFINED_CHAR'; changed to normal function.
120 (DECODE_CHAR): Use `decode_defined_char' instead of
121 `DECODE_DEFINED_CHAR'.
123 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
125 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
127 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
129 * text-coding.c (Vcoded_charset_entity_reference_alist): New
131 (Quse_entity_reference): New variable.
135 (coding_system_description): Add description for
137 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
138 (allocate_coding_system): Initialize `ccs_priority_list' in
140 (Fmake_coding_system): Add description about
141 'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
143 (Fcoding_system_property): Accept `disable-composition' and
144 `use-entity-reference' in UTF-2000.
145 (struct decoding_stream): Add new member `er_counter' and `er_buf'
147 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
148 (decode_coding_utf8): Decode entity-reference if
149 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
150 (char_encode_utf8): Encode non-Unicode characters as
151 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
153 (syms_of_file_coding): Add new symbols `use-entity-reference',
155 (vars_of_file_coding): Add new variable
156 `coded-charset-entity-reference-alist'.
157 (complex_vars_of_file_coding): Declare `disable-composition' and
158 `use-entity-reference' to be coding-system-properties in UTF-2000.
160 * file-coding.h (struct Lisp_Coding_System): Add new member
161 `use_entity_reference' and `ccs_priority_list'.
162 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
163 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
164 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
166 2002-07-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
168 * chartab.c (save_uint8_byte_table): Don't clear the table.
169 (save_uint16_byte_table): Likewise.
170 (save_byte_table): Likewise.
171 (Fmount_char_attribute_table): New function.
172 (syms_of_chartab): Add new builtin function
173 `mount-char-attribute-table'.
175 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
177 * mule-charset.c (Fsave_charset_mapping_table): Open database as
179 (load_char_decoding_entry_maybe): Open database as read-only mode.
181 * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
182 open database as "w+" mode.
183 (load_char_attribute_maybe): Open database as read-only mode.
184 (Fload_char_attribute_table): Likewise.
186 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
188 * chartab.c (mark_char_table): Don't refer `ct->db_file'.
189 (char_table_description): Delete member `db_file'.
190 (Fmake_char_table): Don't refer `ct->db_file'.
191 (Fcopy_char_table): Likewise.
192 (Fsave_char_attribute_table): Likewise.
193 (Fclose_char_attribute_table): Likewise.
194 (Freset_char_attribute_table): Likewise.
195 (load_char_attribute_maybe): Likewise.
196 (Fload_char_attribute_table): Likewise.
198 * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
200 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
202 * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
203 (Fsave_char_attribute_table): Don't check `ct->db_file' if
205 (load_char_attribute_maybe): Likewise.
206 (Fload_char_attribute_table): Likewise.
208 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
210 * chartab.c (Fclose_char_attribute_table): Set Qnil on
211 `ct->db_file' unconditionally.
213 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
215 * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
217 (char_table_description): Add description for `db_file' and `db'
219 (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
221 (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
222 (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
223 (Fclose_char_attribute_table): New function.
224 (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
225 (load_char_attribute_maybe): Change interface; use `cit->db_file'
227 (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
228 (syms_of_chartab): Add new builtin function
229 `Fclose_char_attribute_table'.
231 2002-06-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
233 * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
235 (load_char_attribute_maybe): Change interface.
236 (get_char_id_table): Modify for `load_char_attribute_maybe'.
238 2002-06-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
240 * database.h: Add an EXFUN for `Fdatabase_live_p'.
242 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
244 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
245 instead of `DECODE_CHAR' for mother; don't use special code for
246 chinese-big5 to use code space of chinese-big5-1 and
248 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
249 `MAX_CHAR_BIG5_CDP' for chinese-big5.
251 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
252 (MAX_CHAR_BIG5_CDP): Revival.
254 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
256 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
257 the XLFD registry-encoding name of `chinese-big5'.
259 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
261 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
262 (Qchinese_big5_cdp): Deleted.
263 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
264 (complex_vars_of_mule_charset): Delete coded-charset
267 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
268 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
269 `CHARSET_ID_OFFSET - n' for private CCS.
270 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
271 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
272 of `MIN_LEADING_BYTE'.
273 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
274 `(CHARSET_ID_OFFSET - 97)'.
275 (MIN_CHAR_BIG5_CDP): Deleted.
276 (MAX_CHAR_BIG5_CDP): Deleted.
278 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
280 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
282 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
284 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
285 (vars_of_mule): Add new variable `utf-2000-version' [moved from
288 * chartab.c (Vutf_2000_version): Moved to mule.c.
289 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
291 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
293 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
294 when HAVE_CHISE_CLIENT is not defined.
296 * mule.c (vars_of_mule): Provide feature `chise' when
297 HAVE_CHISE_CLIENT is defined.
299 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
301 * config.h.in (UTF2000): Add comment.
302 (HAVE_CHISE_CLIENT): New macro.
304 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
306 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
308 (Fput_char_attribute): Likewise.
309 (char_attribute_system_db_file): Encode file-name of attribute.
310 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
313 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
315 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
316 (Fsave_charset_mapping_table): Use
317 `char_attribute_system_db_file'.
318 (load_char_decoding_entry_maybe): Likewise.
320 * chartab.h (Qsystem_char_id): New external variable.
321 (char_attribute_system_db_file): New prototype.
323 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
324 (char_attribute_system_db_file): New function.
325 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
326 (Freset_char_attribute_table): Likewise.
327 (load_char_attribute_maybe): Likewise.
328 (Fload_char_attribute_table): Likewise.
329 (syms_of_chartab): Add new symbol `system-char-id'.
331 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
333 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
334 `XCHARSET_GRAPHIC(ccs)'.
336 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
338 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
340 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
342 * chartab.c (Q_ucs_variants): New variable.
343 (syms_of_chartab): Add new symbol `->ucs-variants'.
344 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
345 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
346 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
348 * mule-charset.c (load_char_decoding_entry_maybe): New function.
350 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
351 `HAVE_DATABASE' is defined.
352 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
353 `HAVE_DATABASE' is defined.
355 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
357 * chartab.c (Fsave_char_attribute_table): Don't clear internal
359 (Freset_char_attribute_table): New function.
360 (syms_of_chartab): Add new builtin function
361 `reset-char-attribute-table'.
363 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
365 * chartab.c (load_char_attribute_maybe): Don't make directories.
367 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
369 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
371 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
374 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
376 * mule-charset.c (Fsave_charset_mapping_table): Use
377 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
379 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
380 instead of `XCHARSET_CHARS'.
382 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
384 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
385 (XCHARSET_BYTE_SIZE): Likewise.
387 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
389 (XCHARSET_BYTE_SIZE): Likewise.
391 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
393 * chartab.c (Fput_char_attribute): Use exec-directory instead of
394 data-directory to store database.
395 (Fsave_char_attribute_table): Likewise.
396 (load_char_attribute_maybe): Likewise.
397 (Fload_char_attribute_table): Likewise.
399 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
401 * mule-charset.c (Fsave_charset_mapping_table): New function.
402 (syms_of_mule_charset): Add new builtin function
403 `save-charset-mapping-table'.
405 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
407 * char-ucs.h (decoding_table_check_elements): Delete prototype.
408 (get_ccs_octet_table): New inline function.
409 (put_ccs_octet_table): Likewise.
410 (decoding_table_put_char): Use `get_ccs_octet_table' and
411 `put_ccs_octet_table'.
412 (decoding_table_remove_char): Use `decoding_table_put_char'.
413 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
415 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
417 (make_charset): Use Qunbound instead Qnil as initial value of
420 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
422 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
423 element is Qunloaded.
424 (map_over_uint16_byte_table): Likewise.
425 (map_over_byte_table): Likewise.
426 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
427 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
428 database support, load encoding-table of the specified
429 coded-charset if it is not loaded yet.
430 (save_uint8_byte_table): New function of UTF-2000 with external
432 (save_uint16_byte_table): Likewise.
433 (save_byte_table): Likewise.
434 (Fput_char_attribute): Don't store value into external database
435 even if the external database feature is supported in UTF-2000;
436 set `attribute' as name of char-table if the external database
437 feature is supported.
438 (Fsave_char_attribute_table): New function in UTF-2000.
439 (syms_of_chartab): Add new builtin function
440 `save-char-attribute-table' in UTF-2000.
442 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
444 * chartab.c (char_attribute_table_to_put): New variable in
446 (Qput_char_table_map_function): Likewise.
447 (value_to_put): Likewise.
448 (Fput_char_table_map_function): New function in UTF-2000.
449 (put_char_table): Use `Fmap_char_attribute' for
450 CHARTAB_RANGE_CHARSET in UTF-2000.
451 (Fput_char_attribute): Store symbol instead of string in
452 `XCHAR_TABLE_NAME (table)'.
453 (load_char_attribute_maybe): Likewise.
454 (syms_of_chartab): Add new symbol/function
455 `put-char-table-map-function'.
457 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
459 * database.h: Add new EXFUN for `Fmap_database'.
461 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
462 (syms_of_database): Likewise.
464 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
466 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
467 (XCHAR_TABLE_UNLOADED): Likewise.
469 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
470 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
471 HAVE_DATABASE is defined.
472 (char_attribute_table_to_load): New variable of UTF-2000 with
473 external database support.
474 (Qload_char_attribute_table_map_function): Likewise.
475 (Fload_char_attribute_table_map_function): New function of
476 UTF-2000 with external database support.
477 (Fload_char_attribute_table): New function of UTF-2000.
478 (Fmap_char_attribute): Call Fload_char_attribute_table if
479 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
480 (syms_of_chartab): Add new symbol and function
481 `load-char-attribute-table-map-function' in UTF-2000 with external
482 database support; add new function `load-char-attribute-table' in
485 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
487 * chartab.h (load_char_attribute_maybe): New prototype for
488 UTF-2000 with DATABASE support.
489 (get_char_id_table): Use `load_char_attribute_maybe' if
490 HAVE_DATABASE is defined.
492 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
493 with DATABASE support.
495 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
497 * chartab.c (Fput_char_attribute): Use S-expression as key of
500 * chartab.h (get_char_id_table): Use S-expression as key of
503 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
505 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
506 if an element is not loaded, load the corresponding attributes
507 from an external database.
508 (map_over_uint16_byte_table): Likewise.
509 (map_over_byte_table): Likewise.
510 (map_char_table): Modify for `map_over_uint8_byte_table',
511 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
512 element is not loaded, load the corresponding attributes from an
514 (Fput_char_attribute): Change initial values to Qunloaded.
516 * chartab.h (get_char_id_table): If a character attribute is not
517 loaded and the attribute value is not found in an external
518 database, store Qunbound as the attribute value.
520 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
522 * chartab.c (BT_UINT8_unloaded): New macro.
523 (UINT8_VALUE_P): Accept Qunloaded.
524 (UINT8_ENCODE): Likewise.
525 (UINT8_DECODE): Likewise.
526 (BT_UINT16_unloaded): New macro.
527 (UINT16_VALUE_P): Accept Qunloaded.
528 (UINT16_ENCODE): Likewise.
529 (UINT16_DECODE): Likewise.
530 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
532 (mark_char_table): Mark `ct->name' in UTF-2000.
533 (char_table_description): Add `name' in UTF-2000.
534 (Fmake_char_table): Initialize `ct->name'.
535 (Fcopy_char_table): Copy `ct->name'.
536 (Fput_char_attribute): Store value into an external database if
537 HAVE_DATABASE is defined.
539 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
541 (CHAR_TABLE_NAME): New macro in UTF-2000.
542 (XCHAR_TABLE_NAME): New macro in UTF-2000.
543 (get_char_id_table): Try to read an external database if Qunloaded
544 is stored in a table.
546 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
549 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
551 * database.h: Add EXFUN definitions for Fopen_database,
552 Fput_database, Fget_database and Fclose_database.
554 * data.c (Qunloaded): New variable in UTF-2000.
556 * lisp.h (Qunloaded): New variable in UTF-2000.
558 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
560 * mule-charset.c (put_char_ccs_code_point): Modify for
561 `decoding_table_remove_char' and `decoding_table_put_char'.
562 (remove_char_ccs): Modify for `decoding_table_remove_char'.
564 * char-ucs.h (decoding_table_remove_char): Change arguments to
565 hide decoding_table vector.
566 (decoding_table_put_char): Likewise.
568 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
570 * mule-charset.c (decoding_table_remove_char): Moved to
572 (decoding_table_put_char): Likewise.
574 * char-ucs.h (decoding_table_check_elements): New prototype [moved
575 from mule-charset.c].
576 (decoding_table_remove_char): New inline function [moved from
578 (decoding_table_put_char): Likewise.
580 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
582 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
585 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
587 * mule-charset.c (decode_builtin_char): Support mother charsets.
589 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
591 * mule-charset.c (Q94x94x60): New variable.
592 (charset_code_point): Support conversion `94x94x60'.
593 (Fmake_charset): Likewise.
594 (syms_of_mule_charset): Add new symbol `94x94x60'.
596 * char-ucs.h (CONVERSION_94x94x60): New macro.
598 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
600 * mule-charset.c (charset_code_point): Unify code about
603 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
605 * mule-charset.c (charset_code_point): Merge code about builtin
606 characters into code about mother charsets; don't use
607 `range_charset_code_point'.
608 (range_charset_code_point): Deleted.
610 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
612 * mule-charset.c (Qcode_offset): New variable.
613 (Fmake_charset): Use `XUINT' to get value of `min-code' and
614 `max-code'; accept new property `code-offset'.
615 (syms_of_mule_charset): Add new symbol `code-offset'.
617 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
619 * mule-charset.c (range_charset_code_point): Fixed.
621 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
623 * mule-charset.c (decode_builtin_char): Change semantics of
624 code-offset of coded-charset.
625 (charset_code_point): Likewise.
626 (range_charset_code_point): Likewise.
627 (complex_vars_of_mule_charset): Modify for the change.
629 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
631 * mule-charset.c (Fencode_char): Reverse arguments.
633 * mule-charset.c (charset_code_point): Fixed.
635 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
637 * mule-charset.c (Vcharset_mojikyo): Deleted.
638 (Vcharset_mojikyo_2022_1): Deleted.
639 (Vcharset_mojikyo_pj_{1..21}): Deleted.
640 (Qmin_code): New variable in UTF-2000.
641 (Qmax_code): Likewise.
643 (Qconversion): Likewise.
646 (Qmojikyo_2022_1): Deleted.
647 (Qmojikyo_pj_{1..22}): Deleted.
648 (mark_charset): Mark `cs->mother'.
649 (charset_description): Add description for `mother'.
650 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
651 new arguments `mother' and `conversion'; use
652 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
653 (charset_code_point): Moved from char-ucs.h; support `mother'
655 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
656 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
657 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
658 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
659 allow 2 as the value of `graphic' in UTF-2000; add new properties
660 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
661 require `final' in UTF-2000; modify for `make_charset'.
662 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
663 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
664 (Fcharset_property): Support `mother', `min-code' and `max-code'.
665 (Fencode_char): New function.
666 (syms_of_mule_charset): Add new builtin function `encode-char' in
667 UTF-2000; add new symbols `min-code', `max-code', `mother',
668 `conversion' and `94x60'; delete symbols `mojikyo',
669 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
670 (complex_vars_of_mule_charset): Modify for `make_charset' change;
671 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
672 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
674 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
675 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
677 * char-ucs.h (Vcharset_mojikyo): Deleted.
678 (Vcharset_mojikyo_2022_1): Deleted.
679 (LEADING_BYTE_MOJIKYO): Deleted.
680 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
681 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
682 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
683 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
684 add new member `mother'; add new member `conversion'.
685 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
686 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
687 (CHARSET_MOTHER): New macro.
688 (CHARSET_CONVERSION): New macro.
689 (CONVERSION_IDENTICAL): New macro.
690 (CONVERSION_94x60): New macro.
691 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
692 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
693 (XCHARSET_MOTHER): New macro.
694 (XCHARSET_CONVERSION): New macro.
695 (MIN_CHAR_MOJIKYO): Deleted.
696 (MAX_CHAR_MOJIKYO): Deleted.
697 (DECODE_MOJIKYO_2022): Deleted.
698 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
699 (charset_code_point): Changed to non-inline function.
700 (encode_char_1): Use `charset_code_point'.
701 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
703 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
705 * lread.c (read_compiled_function): Fix prototype.
706 (read_vector): Likewise.
708 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
710 * lrecord.h (struct lrecord_header): Delete `older'.
711 (set_lheader_implementation): Delete code for `older'.
712 (set_lheader_older_implementation): Deleted.
713 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
714 (OLDER_RECORD_P): Deleted.
715 (OLDER_RECORD_HEADER_P): Deleted.
716 (alloc_older_lcrecord): Deleted.
717 (alloc_older_lcrecord_type): Deleted.
719 * alloc.c (all_older_lcrecords): Deleted.
720 (alloc_older_lcrecord): Deleted.
721 (disksave_object_finalization_1): Delete code for older objects.
722 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
723 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
725 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
727 * mule-charset.c (decoding_table_put_char): Use `make_vector'
728 instead of `make_older_vector'.
729 (put_char_ccs_code_point): Likewise.
730 (mark_charset): Mark `cs->decoding_table'.
731 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
733 * lisp.h (make_older_vector): Deleted.
734 (make_vector_newer): Deleted.
736 * config.h.in (HAVE_GGC): Deleted.
738 * alloc.c (make_older_vector): Deleted.
739 (make_vector_newer_1): Deleted.
740 (make_vector_newer): Deleted.
742 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
744 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
745 (Qideograph_daikanwa_2): New variable.
746 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
747 (complex_vars_of_mule_charset): Add new coded-charset
748 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
749 `LEADING_BYTE_DAIKANWA'.
751 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
752 (LEADING_BYTE_DAIKANWA_1): New macro.
753 (LEADING_BYTE_DAIKANWA_2): New macro.
754 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
756 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
758 * mule-charset.c (complex_vars_of_mule_charset): Change
759 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
760 the second revised version.
762 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
764 * mule-charset.c (Vcharset_ucs_smp): New variable.
765 (Vcharset_ucs_sip): New variable.
766 (Qucs_smp): New variable.
767 (Qucs_sip): New variable.
768 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
769 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
770 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
771 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
772 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
773 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
775 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
776 (LEADING_BYTE_UCS_SIP): New macro.
777 (MIN_CHAR_SMP): New macro.
778 (MAX_CHAR_SMP): New macro.
779 (MIN_CHAR_SIP): New macro.
780 (MAX_CHAR_SIP): New macro.
782 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
784 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
787 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
789 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
790 value; don't store value into `encoding_table' of `Lisp_Charset'.
791 (mark_charset): `encoding_table' was deleted.
792 (charset_description): Likewise.
793 (make_charset): Likewise.
794 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
795 `put_char_ccs_code_point'.
797 * chartab.h (Fput_char_attribute): New EXFUN.
799 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
800 is unified with normal symbol space.
801 (Fget_char_attribute): Likewise.
802 (Fput_char_attribute): Likewise; behavior of
803 `put_char_ccs_code_point' is changed.
805 * char-ucs.h: Include "elhash.h".
806 (Vchar_attribute_hash_table): New external variable.
807 (struct Lisp_Charset): Delete `encoding_table'.
808 (CHARSET_ENCODING_TABLE): New implementation; refer
809 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
812 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
814 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
817 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
819 * text-coding.c (char_encode_big5): Prefer charset-g1 than
822 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
824 * chartab.c (uint8_byte_table_description): New constant.
825 (uint8-byte-table): Use `uint8_byte_table_description'.
826 (uint16_byte_table_description): New constant.
827 (uint16-byte-table): Use `uint16_byte_table_description'.
829 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
831 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
832 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
834 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
836 * mule-charset.c (Vcharset_ucs_ks): New variable.
837 (Qucs_ks): New variable.
838 (syms_of_mule_charset): Add new symbol `ucs-ks'.
839 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
841 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
843 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
845 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
846 (Fdecode_char): Likewise.
848 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
850 (Fdefine_char): Modify for Fdecode_char.
851 (Ffind_char): Likewise.
853 * mule-charset.c (Fdecode_char): Add new optional argument
855 (Fdecode_builtin_char): Modify for `Fdecode_char'.
857 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
859 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
860 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
861 (allocate_coding_system): Initialize initial-charsets of
862 CODESYS_BIG5 in XEmacs UTF-2000.
863 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
864 CODESYS_BIG5 in XEmacs UTF-2000.
865 (decode_coding_big5): Use initial-charset-g0 and -g1 of
866 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
868 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
870 (Qideograph_hanziku_{1 .. 12}): Likewise.
871 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
873 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
874 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
875 `ideograph-hanziku-{1 .. 12}'.
877 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
878 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
879 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
880 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
881 (DECODE_DEFINED_CHAR): New inline function.
882 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
884 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
886 * mule-charset.c (Vcharset_china3_jef): Renamed from
887 `Vcharset_japanese_jef_china3'.
888 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
889 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
890 `{MIN|MAX}_CHAR_JEF_CHINA3'..
891 (syms_of_mule_charset): Rename `china3-jef' from
892 `japanese-jef-china3'.
893 (complex_vars_of_mule_charset): Likewise; rename
894 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
896 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
897 `LEADING_BYTE_JEF_CHINA3'.
898 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
899 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
901 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
903 * mule-charset.c (encode_builtin_char_1): Comment out special code
904 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
906 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
907 (MAX_CHAR_MOJIKYO_0): Comment out.
908 (MIN_CHAR_CBETA): Changed to 0x00E20000.
909 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
910 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
911 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
913 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
915 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
916 (Qideograph_cbeta): New variable.
917 (encode_builtin_char_1): Comment out special code for
918 coded-charset `mojikyo' and `japanese-jef-china3'.
919 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
920 (complex_vars_of_mule_charset): Add new coded-charset
923 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
924 (MIN_CHAR_CBETA): New macro.
925 (MAX_CHAR_CBETA): New macro.
927 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
929 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
930 (LEADING_BYTE_JEF_CHINA3): New macro.
931 (MIN_CHAR_JEF_CHINA3): New macro.
932 (MAX_CHAR_JEF_CHINA3): Likewise.
933 (DECODE_CHAR): Fixed.
935 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
937 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
938 (Qjapanese_jef_china3): New variable.
939 (encode_builtin_char_1): Support `japanese-jef-china3'.
940 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
941 (complex_vars_of_mule_charset): Add new coded-charset
942 `japanese-jef-china3'.
944 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
946 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
947 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
948 94^4, 96^3, 96^4, 128^n and 256^n set.
949 (put_char_table): Use `XCHARSET_CELL_RANGE'.
950 (map_char_table): Likewise.
952 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
954 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
957 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
959 * chartab.h (get_char_id_table): New inline function.
961 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
964 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
966 * chartab.h (decode_char_table_range): New prototype in XEmacs
968 (put_char_id_table): New inline function in XEmacs UTF-2000.
970 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
972 (decode_char_table_range): Delete static declaration in XEmacs
975 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
977 * chartab.c (put_char_id_table): Use `put_char_table'.
979 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
981 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
982 (map_over_uint16_byte_table): Likewise.
983 (map_over_byte_table): Likewise.
984 (map_char_table): Modify for `map_over_uint8_byte_table',
985 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
988 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
990 * chartab.c (struct map_char_table_for_charset_arg): New
992 (map_char_table_for_charset_fun): New function.
993 (map_char_table): Use `map_char_table' for encoding_table of
996 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
998 * chartab.c (map_char_table): Check a character is found in
999 range->charset instead of non default value is defined in
1000 char-table when range is CHARTAB_RANGE_ROW.
1002 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1004 * chartab.c (map_char_id_table): Deleted.
1005 (Fmap_char_attribute): Use `map_char_table' instead of
1006 `map_char_id_table'.
1008 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1010 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1012 (update_syntax_table): Deleted in XEmacs UTF-2000.
1014 * syntax.c (find_defun_start): Use `syntax_table' instead of
1015 `mirror_syntax_table' in XEmacs UTF-2000.
1016 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1018 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1020 (Fmatching_paren): Likewise.
1021 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1023 (find_start_of_comment): Likewise.
1024 (find_end_of_comment): Likewise.
1025 (Fforward_comment): Likewise.
1026 (scan_lists): Likewise.
1027 (char_quoted): Likewise.
1028 (Fbackward_prefix_chars): Likewise.
1029 (scan_sexps_forward): Likewise.
1030 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1031 (update_syntax_table): Likewise.
1033 * search.c (skip_chars): Use `syntax_table' instead of
1034 `mirror_syntax_table' in XEmacs UTF-2000.
1035 (wordify): Likewise.
1036 (Freplace_match): Likewise.
1038 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1039 `mirror_syntax_table' in XEmacs UTF-2000.
1040 (WORDCHAR_P_UNSAFE): Likewise.
1041 (re_match_2_internal): Likewise.
1043 * font-lock.c (find_context): Use `buf->syntax_table' instead of
1044 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1046 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1047 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1049 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1052 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1054 (print_char_table): Print `default_value' in XEmacs UTF-2000.
1055 (char_table_description): Delete `mirror_table' in XEmacs
1057 (fill_char_table): Don't call `update_syntax_table' in XEmacs
1059 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1060 (Fcopy_char_table): Likewise.
1061 (put_char_table): Don't call `update_syntax_table' in XEmacs
1064 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1065 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1066 (casify_region_internal): Likewise.
1068 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1070 * buffer.c (common_init_complex_vars_of_buffer): Don't use
1071 `mirror_syntax_table' in XEmacs UTF-2000.
1073 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1074 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1075 (Fexpand_abbrev): Likewise.
1077 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1079 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1081 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1083 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1084 (map_over_uint16_byte_table): Likewise.
1085 (map_over_byte_table): Likewise.
1086 (get_char_id_table): Refer `cit->default_value'.
1087 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1088 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1089 of character-id ranges.
1090 (mark_char_table): Mark `ct->default_value'.
1091 (char_table_description): Add `default_value'.
1092 (fill_char_table): Use `default_value'.
1093 (decode_char_table_range): Decode `nil' as
1094 `CHARTAB_RANGE_DEFAULT'.
1095 (get_char_id_table): Refer `cit->default_value'.
1096 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1097 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1098 temporary hack; check value of char-table is bound or not.
1099 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1101 * chartab.h (struct Lisp_Char_Table): Add new member
1102 `default_value' in XEmacs UTF-2000.
1103 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1104 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1107 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1109 * chartab.h (Lisp_Char_ID_Table): Deleted.
1111 * chartab.c (char_table_description): Fix typo.
1112 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1113 `Lisp_Char_ID_Table'.
1115 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1117 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1120 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1123 * chartab.h (XCHAR_ID_TABLE): Deleted.
1124 (XSETCHAR_ID_TABLE): Deleted.
1125 (CHAR_ID_TABLE_P): Deleted.
1127 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1129 (Fget_composite_char): Likewise.
1130 (put_char_table): Likewise.
1131 (add_char_attribute_alist_mapper): Fixed.
1132 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1134 (Fget_char_attribute): Likewise.
1135 (Fget_char_attribute): Likewise.
1136 (Fmap_char_attribute): Likewise.
1138 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1140 (encode_char_1): Likewise.
1142 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1144 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1147 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1148 instead of `XCHAR_ID_TABLE'.
1149 (remove_char_ccs): Likewise.
1151 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1153 (Fget_composite_char): Likewise.
1154 (Fchar_variants): Likewise.
1155 (put_char_table): Likewise.
1156 (add_char_attribute_alist_mapper): Likewise.
1157 (Fchar_attribute_alist): Likewise.
1158 (Fget_char_attribute): Likewise.
1159 (Fput_char_attribute): Likewise.
1160 (Fmap_char_attribute): Likewise.
1161 (Fmap_char_attribute): Likewise.
1163 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1165 (encode_char_1): Likewise.
1167 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1169 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1170 `Lisp_Char_ID_Table'.
1171 (mark_char_id_table): Deleted.
1172 (print_char_id_table): Likewise.
1173 (char_id_table_equal): Likewise.
1174 (char_id_table_hash): Likewise.
1175 (char_id_table_description): Likewise.
1176 (char_id_table): Likewise.
1177 (make_char_id_table): Use `Fmake_char_table' and
1179 (get_char_id_table): Use `Lisp_Char_Table' instead of
1180 `Lisp_Char_ID_Table'.
1181 (put_char_id_table): Likewise.
1182 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1184 (Fremove_char_attribute): Likewise.
1185 (syms_of_chartab): Don't define type `char-id-table'.
1187 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1188 (char_id_table): Likewise.
1189 (GC_CHAR_ID_TABLE_P): Likewise.
1190 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1191 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1192 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1193 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1194 (get_char_id_table): Use `Lisp_Char_Table' instead of
1195 `Lisp_Char_ID_Table'.
1196 (put_char_id_table_0): Likewise.
1197 (put_char_id_table): Likewise.
1199 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1201 * chartab.h: Lisp_Byte_Table related codes are moved from
1204 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1206 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1208 * chartab.h: Don't include "chartab.h".
1209 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1210 (Lisp_Char_ID_Table): Likewise.
1211 (char_id_table): Likewise.
1212 (XCHAR_ID_TABLE): Likewise.
1213 (XSETCHAR_ID_TABLE): Likewise.
1214 (CHAR_ID_TABLE_P): Likewise.
1215 (GC_CHAR_ID_TABLE_P): Likewise.
1216 (get_char_id_table): Likewise.
1218 * char-ucs.h: Include "chartab.h".
1219 (struct Lisp_Char_ID_Table): Moved to chartab.h.
1220 (Lisp_Char_ID_Table): Likewise.
1221 (char_id_table): Likewise.
1222 (XCHAR_ID_TABLE): Likewise.
1223 (XSETCHAR_ID_TABLE): Likewise.
1224 (CHAR_ID_TABLE_P): Likewise.
1225 (GC_CHAR_ID_TABLE_P): Likewise.
1226 (get_char_id_table): Likewise.
1228 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1230 * chartab.c (copy_uint8_byte_table): New function.
1231 (copy_uint16_byte_table): New function.
1232 (copy_byte_table): New function.
1233 (map_over_uint8_byte_table): Modify to avoid huge numbers of
1235 (map_over_uint16_byte_table): Likewise.
1236 (map_over_byte_table): Likewise.
1237 (get_byte_table): Move prototype to chartab.h.
1238 (put_byte_table): Likewise.
1239 (put_char_id_table_0): Moved to chartab.h.
1240 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1241 (char_table_entry_equal): Likewise.
1242 (char_table_entry_hash): Likewise.
1243 (char_table_entry_description): Likewise.
1244 (char_table_entry): Likewise.
1245 (make_char_table_entry): Likewise.
1246 (copy_char_table_entry): Likewise.
1247 (get_non_ascii_char_table_value): Likewise.
1248 (map_over_charset_ascii): Likewise.
1249 (map_over_charset_control_1): Likewise.
1250 (map_over_charset_row): Likewise.
1251 (map_over_other_charset): Likewise.
1252 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1253 (print_char_table): Likewise.
1254 (char_table_equal): Likewise.
1255 (char_table_hash): Likewise.
1256 (char_table_description): Likewise.
1257 (fill_char_table): Likewise.
1258 (Fcopy_char_table): Likewise.
1259 (get_char_table): Likewise.
1260 (Fget_range_char_table): Likewise.
1261 (put_char_table): Likewise.
1262 (map_char_table): Likewise.
1263 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1266 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1268 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1269 `Vauto_fill_chars' in XEmacs UTF-2000.
1271 * chartab.h (get_byte_table): New prototype [moved from
1273 (put_byte_table): Likewise [moved from chartab.c].
1274 (put_char_id_table_0): New inline function [moved from chartab.c].
1275 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1276 (Lisp_Char_Table_Entry): Likewise.
1277 (char_table_entry): Likewise.
1278 (XCHAR_TABLE_ENTRY): Likewise.
1279 (XSETCHAR_TABLE_ENTRY): Likewise.
1280 (CHAR_TABLE_ENTRYP): Likewise.
1281 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1282 (NUM_ASCII_CHARS): Likewise.
1283 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1284 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1286 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1288 * chartab.c (get_char_id_table): Change interface.
1289 (put_char_id_table_0): New function.
1290 (put_char_id_table): Change interface; new implementation.
1291 (Fget_composite_char): Modify for interface change of
1292 `get_char_id_table'.
1293 (Fchar_variants): Likewise.
1294 (add_char_attribute_alist_mapper): Likewise.
1295 (Fchar_attribute_alist): Likewise.
1296 (Fget_char_attribute): Likewise.
1297 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1298 as same as character as the first argument like `put-char-table';
1299 modify for interface change of `put_char_id_table'.
1300 (Fremove_char_attribute): Modify for interface change of
1301 `put_char_id_table'.
1303 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1305 * text-coding.c: Sync up with XEmacs 21.2.41.
1306 (COMPOSE_ADD_CHAR): Modify for interface change of
1307 `get_char_id_table'.
1309 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1310 change of `put_char_id_table'.
1311 (remove_char_ccs): Likewise.
1313 * chartab.h (put_char_id_table): Change interface.
1315 * char-ucs.h (get_char_id_table): Change interface.
1316 (charset_code_point): Modify for interface change of
1317 `get_char_id_table'.
1318 (encode_char_1): Likewise.
1320 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1322 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1324 (map_over_uint16_byte_table): Likewise.
1325 (map_over_byte_table): Likewise.
1326 (map_char_id_table): Add new argument `range' like
1328 (Fmap_char_attribute): Add new argument `range' like
1331 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1333 * chartab.c (map_over_uint8_byte_table): Change interface of
1334 mapping function to use struct chartab_range instead of Emchar.
1335 (map_over_uint16_byte_table): Likewise.
1336 (map_over_byte_table): Likewise.
1337 (map_char_id_table): Likewise.
1338 (struct slow_map_char_id_table_arg): Deleted.
1339 (slow_map_char_id_table_fun): Deleted.
1340 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1341 function `slow_map_char_table_fun' instead of struct
1342 `slow_map_char_id_table_arg' and function
1343 `slow_map_char_id_table_fun'.
1345 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1347 * mule-charset.c: Move char-it-table related codes to chartab.c.
1348 (Vutf_2000_version): Moved to chartab.c.
1349 (Fdefine_char): Likewise.
1350 (Ffind_char): Likewise.
1351 (syms_of_mule_charset): Move types `uint8-byte-table',
1352 `uint16-byte-table', `byte-table' and `char-id-table' to
1353 chartab.c; move functions `char_attribute_list,
1354 `find_char_attribute_table, `char_attribute_alist,
1355 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1356 `map_char_attribute, `define_char, `find_char, `char_variants and
1357 `get_composite_char to chartab.c; move symbols `=>ucs',
1358 `->decomposition', `compat', `isolated', `initial', `medial',
1359 `final', `vertical', `noBreak', `fraction', `super', `sub',
1360 `circle', `square', `wide', `narrow', `small' and `font' to
1362 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1363 setting codes for `Vcharacter_composition_table' and
1364 `Vcharacter_variant_table' to chartab.c.
1365 (complex_vars_of_mule_charset): Move setting code for
1366 `Vchar_attribute_hash_table' to chartab.c.
1368 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1369 (make_char_id_table): New prototype.
1370 (put_char_id_table): Likewise.
1371 (Fget_char_attribute): Likewise.
1373 * chartab.c: Move char-id-table related code from mule-charset.c.
1374 (Vutf_2000_version): Moved from mule-charset.c.
1376 * char-ucs.h (Qucs): New external variable.
1377 (put_char_ccs_code_point): New prototype.
1378 (remove_char_ccs): Likewise.
1380 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1382 * mule-charset.c (Vcharset_ucs_jis): New variable.
1383 (Qucs_jis): Likewise.
1384 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1385 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1387 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1389 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1391 * mule-charset.c (map_over_uint8_byte_table): New function.
1392 (map_over_uint16_byte_table): Likewise.
1393 (map_over_byte_table): Likewise.
1394 (map_char_id_table): Likewise.
1395 (slow_map_char_id_table_fun): Likewise.
1396 (Fmap_char_attribute): Likewise.
1397 (syms_of_mule_charset): Add new function `map-char-attribute'.
1399 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1401 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1402 (syms_of_mule_charset): Add new function `find-char'.
1404 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1406 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1408 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1409 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1411 (complex_vars_of_mule_charset): Add new coded-charset
1412 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1413 `ideograph-gt-pj-*'.
1415 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1417 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1419 * mule-charset.c (encode_builtin_char_1): Purge codes about
1420 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1421 {MIN|MAX}_CHAR_HEBREW.
1422 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1423 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1425 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1426 (MAX_CHAR_GREEK): Purged.
1427 (MIN_CHAR_CYRILLIC): Purged.
1428 (MAX_CHAR_CYRILLIC): Purged.
1429 (MIN_CHAR_HEBREW): Commented out.
1430 (MAX_CHAR_HEBREW): Likewise.
1432 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1434 * mule-charset.c (Qto_ucs): New variable.
1435 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1436 (Fdefine_char): Likewise.
1437 (syms_of_mule_charset): Add new symbol `=>ucs'.
1439 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1441 * mule-charset.c (Fdecode_char): Fixed.
1443 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1445 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1446 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1449 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1451 * mule-charset.c (Vcharset_ucs_big5): New variable.
1452 (Qucs_big5): Likewise.
1453 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1454 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1456 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1458 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1460 * mule-charset.c (decode_builtin_char): Check Big5 code range
1461 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1463 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1465 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1466 (Qchinese_gb12345): Likewise.
1467 (Fdecode_builtin_char): Fixed.
1468 (syms_of_mule_charset): Add `chinese-gb12345'.
1469 (complex_vars_of_mule_charset): Add coded-charset
1472 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1473 (LEADING_BYTE_CHINESE_GB12345): New macro.
1475 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1477 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1478 and `latin-viscii-upper' for `latin-viscii'.
1480 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1482 * mule-charset.c (Fdecode_builtin_char): Comment out
1483 regularization code for ISO-IR GR representation.
1485 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1487 * mule-charset.c (decode_builtin_char): New function; renamed from
1488 `make_builtin_char'; return -1 instead of signal.
1489 (Fdecode_builtin_char): Use `decode_builtin_char'.
1491 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1492 `make_builtin_char'.
1493 (DECODE_CHAR): Use `decode_builtin_char' instead of
1494 `make_builtin_char'; use mapping table of `chinese-big5' for
1495 `chinese-big5-{1,2}'.
1497 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1499 * text-coding.c (char_encode_big5): New function.
1500 (char_finish_big5): Likewise.
1501 (reset_encoding_stream): Use `char_encode_big5' and
1502 `char_finish_big5' for CODESYS_BIG5.
1503 (mule_encode): Don't use `encode_coding_big5'.
1504 (encode_coding_big5): Deleted.
1506 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1508 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1509 0x81- in XEmacs UTF-2000.
1510 (detect_coding_big5): Likewise.
1512 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1514 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1515 generate character-id if the CCS property does not have
1516 corresponding predefined character.
1517 (make_builtin_char): Return -1 if corresponding predefined
1518 character is not found.
1519 (Fdecode_char): Return nil if corresponding character is not
1521 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1522 don't map to builtin ucs space.
1524 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1526 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1527 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1529 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1531 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1532 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1533 (Qideograph_gt): Likewise.
1534 (Qideograph_gt_pj_{1..11}): Likewise.
1535 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1536 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1537 `ideograph-gt-pj-11'.
1538 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1539 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1540 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1542 * char-ucs.h (LEADING_BYTE_GT): New macro.
1543 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1544 (MIN_CHAR_GT): Likewise.
1545 (MAX_CHAR_GT): Likewise.
1547 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1549 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1550 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1552 * doprnt.c (unsigned_int_converters): Add `c'.
1553 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1555 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1556 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1558 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1559 (MAX_CHAR_MOJIKYO_0): New macro.
1560 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1562 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1564 * mule-charset.c (Fdefine_char): Delete cemented out code.
1565 (encode_builtin_char_1): Modify for new allocation of builtin
1568 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1570 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1572 * mule-charset.c (Vcharset_ucs_cns): New variable.
1573 (Qucs_cns): New variable.
1574 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1575 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1577 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1579 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1581 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1583 * search.c (search_buffer): Make `charset_base_code' as
1584 character-id >> 6 to eliminate the corresponding last byte in
1585 UTF-8 representation [I'm not sure it is right thing].
1586 (boyer_moore): Likewise.
1588 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1590 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1591 representation in MULE.
1593 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1595 * text-coding.c (Fmake_coding_system): Use
1596 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1597 `EXTERNAL_PROPERTY_LIST_LOOP'.
1599 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1601 * text-coding.c (decode_output_utf8_partial_char): New function.
1602 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1604 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606 * text-coding.c (decode_coding_utf8): Output original byte
1607 sequence if it is broken; change order of conditions.
1609 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1612 * mb-multibyte.h (BYTE_ASCII_P):
1613 Use bit ops for char-signedness safety.
1614 (BYTE_C0_P): Use bit ops for char-signedness safety.
1615 (BYTE_C1_P): Use bit ops for char-signedness safety.
1617 * character.h: (XCHAR_OR_CHAR_INT):
1618 Always use inline function.
1619 Remove redundant type checking assert() - XINT will abort quite
1622 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1624 * text-coding.c: (Fencode_shift_jis_char):
1625 (Fencode_big5_char):
1626 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1627 Replace 0 with '\0' when working with bytes.
1628 Replace initial "(" with "\(" in docstrings.
1630 (Fmake_coding_system):
1631 When type is ccl and value is vector, register it with a proper
1632 symbol. And checks whether the given ccl program is valid.
1633 (mule_decode): When calling ccl_driver, if src indicates
1634 NULL pointer, set an empty string instead.
1635 (mule_encode): Likewise.
1638 (detect_coding_sjis):
1639 (decode_coding_sjis):
1640 (detect_coding_big5):
1641 (decode_coding_big5):
1642 (detect_coding_ucs4):
1643 (decode_coding_ucs4):
1644 (detect_coding_utf8):
1645 (decode_coding_utf8):
1646 (detect_coding_iso2022):
1647 (decode_coding_iso2022):
1648 (decode_coding_no_conversion):
1650 Make all detecting and decoding functions take an Extbyte * arg.
1651 (text_encode_generic):
1652 (encode_coding_big5):
1653 (encode_coding_no_conversion):
1655 Make all encoding functions take a Bufbyte * arg.
1656 Use size_t instead of unsigned int for memory sizes.
1657 Only cast to unsigned char whenever dereferencing Extbyte *.
1659 (struct lrecord_description fcd_description_1): Use countof.
1660 (complex_vars_of_file_coding):
1661 Use countof instead of sizeof.
1662 Use CHECK_NATNUM instead of CHECK_INT.
1664 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1666 * mule-charset.c (Fget_char_attribute): Add new optional argument
1668 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1669 (remove_char_ccs): Likewise.
1671 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1673 * text-coding.c (char_encode_shift_jis): New implementation in
1675 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1678 * mule-charset.c (Vcharset_chinese_big5): New variable in
1680 (Qchinese_big5): New variable in UTF-2000.
1681 (BIG5_SAME_ROW): New macro in UTF-2000.
1682 (make_builtin_char): Use builtin characters of
1683 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1684 characters of `Vcharset_chinese_big5'.
1685 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1686 (complex_vars_of_mule_charset): Add new coded-charset
1687 `chinese-big5' in UTF-2000.
1689 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1690 (Vcharset_chinese_big5): New external variable declaration.
1691 (Vcharset_japanese_jisx0208_1990): Likewise.
1693 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1695 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1697 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1699 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1701 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1702 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1703 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1706 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1708 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1710 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1712 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1715 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1717 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1718 for `CHARSET_BY_ATTRIBUTES'.
1719 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1720 `CHARSET_BY_ATTRIBUTES'.
1722 * text-coding.c (struct decoding_stream): Rename member `CH' to
1724 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1725 (decode_coding_sjis): Likewise.
1726 (decode_coding_big5): Likewise.
1727 (decode_coding_ucs4): Likewise.
1728 (decode_coding_utf8): Likewise.
1729 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1730 `CHARSET_BY_ATTRIBUTES'.
1731 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1732 `str->counter'; decode 3, 4 bytes sets.
1733 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1735 (decode_coding_no_conversion): Use `str->cpos' instead of
1738 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1739 (Qmojikyo_2022_1): New variable.
1740 (make_charset): Don't use `CHARSET_TYPE_*'.
1741 (range_charset_code_point): Support coded-charset
1743 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1744 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1745 `CHARSET_BY_ATTRIBUTES'.
1746 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1747 `CHARSET_BY_ATTRIBUTES'.
1748 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1749 (complex_vars_of_mule_charset): Add new coded-charset
1752 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1753 interface; changed to inline function.
1755 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1756 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1757 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1758 (CHARSET_TYPE_94): Deleted.
1759 (CHARSET_TYPE_94X94): Deleted.
1760 (CHARSET_TYPE_96): Deleted.
1761 (CHARSET_TYPE_96X96): Deleted.
1762 (CHARSET_TYPE_128): Deleted.
1763 (CHARSET_TYPE_128X128): Deleted.
1764 (CHARSET_TYPE_256): Deleted.
1765 (CHARSET_TYPE_256X256): Deleted.
1766 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1768 (DECODE_MOJIKYO_2022): New inline function.
1769 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1770 `Vcharset_mojikyo_2022_1'.
1772 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1774 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1776 (put_byte_table): Likewise.
1777 (char_id_table_equal): Use `get_byte_table' [new implementation].
1779 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1781 * mule-charset.c: Include <limits.h> in UTF-2000.
1782 (BT_UINT8_MIN): New macro in UTF-2000.
1783 (BT_UINT8_MAX): New macro in UTF-2000.
1784 (BT_UINT8_t): New macro in UTF-2000.
1785 (BT_UINT8_nil): New macro in UTF-2000.
1786 (BT_UINT8_unbound): New macro in UTF-2000.
1787 (INT_UINT8_P): New inline function in UTF-2000.
1788 (UINT8_VALUE_P): New inline function in UTF-2000.
1789 (UINT8_ENCODE): New inline function in UTF-2000.
1790 (UINT8_DECODE): New inline function in UTF-2000.
1791 (mark_uint8_byte_table): New function in UTF-2000.
1792 (print_uint8_byte_table): New function in UTF-2000.
1793 (uint8_byte_table_equal): New function in UTF-2000.
1794 (uint8_byte_table_hash): New function in UTF-2000.
1795 (make_uint8_byte_table): New function in UTF-2000.
1796 (uint8_byte_table_same_value_p): New function in UTF-2000.
1797 (BT_UINT16_MIN): New macro in UTF-2000.
1798 (BT_UINT16_MAX): New macro in UTF-2000.
1799 (BT_UINT16_t): New macro in UTF-2000.
1800 (BT_UINT16_nil): New macro in UTF-2000.
1801 (BT_UINT16_unbound): New macro in UTF-2000.
1802 (INT_UINT16_P): New inline function in UTF-2000.
1803 (UINT16_VALUE_P): New inline function in UTF-2000.
1804 (UINT16_ENCODE): New inline function in UTF-2000.
1805 (UINT16_DECODE): New inline function in UTF-2000.
1806 (UINT8_TO_UINT16): New inline function in UTF-2000.
1807 (mark_uint16_byte_table): New function in UTF-2000.
1808 (print_uint16_byte_table): New function in UTF-2000.
1809 (uint16_byte_table_equal): New function in UTF-2000.
1810 (uint16_byte_table_hash): New function in UTF-2000.
1811 (make_uint16_byte_table): New function in UTF-2000.
1812 (uint16_byte_table_same_value_p): New function in UTF-2000.
1813 (print_byte_table): New function in UTF-2000.
1814 (byte-table): Use `print_byte_table' as printer.
1815 (make_byte_table): Delete second argument `older'.
1816 (byte_table_same_value_p): New function in UTF-2000.
1817 (copy_byte_table): Deleted.
1818 (get_byte_table): New function in UTF-2000.
1819 (put_byte_table): New function in UTF-2000.
1820 (print_char_id_table): New function in UTF-2000.
1821 (char-id-table): Use `print_char_id_table' as printer.
1822 (make_char_id_table): Delete second argument `older'.
1823 (get_char_id_table): Use `get_byte_table [new implementation].
1824 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1826 (Ffind_char_attribute_table): New function in UTF-2000.
1827 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1828 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1829 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1830 (syms_of_mule_charset): Add new function
1831 `find-char-attribute-table' in UTF-2000.
1833 * lrecord.h (enum lrecord_type): Add
1834 `lrecord_type_uint16_byte_table' and
1835 `lrecord_type_uint8_byte_table'.
1837 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1838 (Lisp_Uint8_Byte_Table): New type.
1839 (XUINT8_BYTE_TABLE): New macro.
1840 (XSETUINT8_BYTE_TABLE): New macro.
1841 (UINT8_BYTE_TABLE_P): New macro.
1842 (GC_UINT8_BYTE_TABLE_P): New macro.
1843 (struct Lisp_Uint16_Byte_Table): New structure.
1844 (Lisp_Uint16_Byte_Table): New type.
1845 (XUINT16_BYTE_TABLE): New macro.
1846 (XSETUINT16_BYTE_TABLE): New macro.
1847 (UINT16_BYTE_TABLE_P): New macro.
1848 (GC_UINT16_BYTE_TABLE_P): New macro.
1850 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1852 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1853 (Vcharacter_ideographic_strokes_table): Deleted.
1854 (Vcharacter_total_strokes_table): Deleted.
1855 (Vcharacter_morohashi_daikanwa_table): Deleted.
1856 (Vcharacter_decomposition_table): Deleted.
1857 (Qname): Deleted because it is duplicated.
1858 (Qideographic_radical): Deleted.
1859 (Qideographic_strokes): Deleted.
1860 (Qtotal_strokes): Deleted.
1861 (Qmorohashi_daikanwa): Deleted.
1862 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1863 `ideographic-radical', `ideographic-strokes', `total-strokes',
1864 `morohashi-daikanwa' and `->decomposition'.
1865 (Fget_char_attribute): Likewise.
1866 (Fput_char_attribute): Likewise; use `make-vector' instead of
1867 `make_older_vector' for `->decomposition' value.
1868 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1869 `ideograph-daikanwa'.
1870 (syms_of_mule_charset): Delete builtin symbols `name',
1871 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1872 `morohashi-daikanwa'.
1873 (vars_of_mule_charset): Don't setup
1874 `Vcharacter_ideographic_radical_table',
1875 `Vcharacter_ideographic_strokes_table',
1876 `Vcharacter_total_strokes_table',
1877 `Vcharacter_morohashi_daikanwa_table' and
1878 `Vcharacter_decomposition_table'.
1880 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1882 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1883 `make_older_vector', `make_vector_newer_1' and
1884 `make_vector_newer'.
1886 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1887 `make_older_vector' and `make_vector_newer'.
1889 * config.h.in (HAVE_GGC): New macro.
1891 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1893 * mule-charset.c (struct char_attribute_list_closure): New
1894 structure in UTF-2000.
1895 (add_char_attribute_to_list_mapper): New function in UTF-2000.
1896 (Fchar_attribute_list): Likewise.
1897 (Fset_charset_mapping_table): Use `make_vector_newer'.
1898 (Fdecode_builtin_char): New function in UTF-2000.
1899 (syms_of_mule_charset): Add new function `char-attribute-list' and
1900 `decode-builtin-char' in UTF-2000.
1902 * lisp.h (make_vector_newer): New prototype.
1904 * alloc.c (make_vector_newer_1): New function.
1905 (make_vector_newer): New function.
1907 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1909 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1912 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1914 * mule-charset.c (Vchar_attribute_hash_table): New variable.
1915 (Vcharacter_attribute_table): Deleted.
1916 (Vcharacter_name_table): Deleted.
1917 (put_char_attribute): Deleted.
1918 (remove_char_attribute): Deleted.
1919 (struct char_attribute_alist_closure): New structure.
1920 (add_char_attribute_alist_mapper): New function.
1921 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1922 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1923 (Fget_char_attribute): Likewise.
1924 (Fput_char_attribute): Likewise.
1925 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1926 of `remove_char_attribute'.
1927 (Fdefine_char): Return character.
1928 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1929 and `Vcharacter_name_table'.
1930 (complex_vars_of_mule_charset): Likewise
1931 `Vchar_attribute_hash_table'.
1933 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1935 * character.h (CHARC_CHARSET): New macro.
1936 (CHARC_CHARSET_ID): New macro.
1937 (CHARC_CODE_POINT): New macro.
1938 (CHARC_COLUMNS): New macro.
1939 (CHARC_TO_CHAR): New inline function.
1940 (CHARC_EQ): New inline function.
1941 (CHARC_ASCII_EQ): New inline function.
1942 (CHARC_IS_SPACE): New inline function.
1943 (ASCII_TO_CHARC): New inline function.
1945 * char-ucs.h (encode_char_2): Deleted.
1946 (ENCODE_CHAR): Use `encode_char_1' again.
1947 (breakup_char_1): Likewise.
1948 (CHAR_TO_CHARC): New inline function.
1950 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1952 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1954 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1955 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1956 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1957 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1958 (create_string_text_block): Use `CHARC_ASCII_EQ' and
1960 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1962 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1964 (x_output_display_block): Use `CHARC_CHARSET' and
1967 * redisplay-tty.c (tty_output_display_block): Use
1969 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1971 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1973 * insdel.c (find_charsets_in_charc_string): Use
1975 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1976 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1977 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1978 (convert_charc_string_into_malloced_string): Likewise.
1980 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1982 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1983 instead of <Emchar_dynarr *> for buf; use
1984 `convert_bufbyte_string_into_charc_dynarr' instead of
1985 `convert_bufbyte_string_into_emchar_dynarr'; use
1986 `find_charsets_in_charc_string' instead of
1987 `find_charsets_in_emchar_string'.
1990 - Include "character.h".
1991 (struct rune): New member `cglyph'; delete member `chr'.
1993 * redisplay.c (redisplay_text_width_charc_string): New function;
1994 delete `redisplay_text_width_emchar_string'.
1995 (rtw_charc_dynarr): New variable; renamed from
1996 `rtw_emchar_dynarr'.
1997 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1998 `rtw_emchar_dynarr'; use
1999 `convert_bufbyte_string_into_charc_dynarr' instead of
2000 `convert_bufbyte_string_into_emchar_dynarr'; use
2001 `redisplay_text_width_charc_string' instead of
2002 `redisplay_text_width_emchar_string'.
2003 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2004 instead of `rtw_emchar_dynarr'; use
2005 `convert_bufbyte_string_into_charc_dynarr' instead of
2006 `convert_bufbyte_string_into_emchar_dynarr'.
2007 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2008 `redisplay_text_width_charc_string' instead of
2009 `redisplay_text_width_emchar_string'.
2010 (create_text_block): Modify for <struct rune> change.
2011 (generate_formatted_string_db): Likewise.
2012 (create_string_text_block): Likewise.
2013 (pixel_to_glyph_translation): Likewise.
2015 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2016 instead of <const Emchar *>.
2017 (x_text_width): Likewise.
2018 (x_output_display_block): Use <Charc_dynarr *> instead
2019 <Emchar_dynarr *>; modify for <structure rune> change.
2020 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2023 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2024 <const Emchar *>; use `charc_string_displayed_columns' instead of
2025 `emchar_string_displayed_columns'.
2026 (tty_output_display_block): Use <Charc_dynarr *> instead of
2027 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2028 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2029 (tty_output_charc_dynarr_dynarr): New variable; renamed from
2030 `tty_output_emchar_dynarr_dynarr'.
2031 (tty_output_charc_dynarr): New function; delete
2032 `tty_output_charc_dynarr'.
2034 * redisplay-output.c (compare_runes): Modify for `struct rune'.
2035 (redisplay_output_layout): Use <Charc_dynarr *> instead of
2036 <Emchar_dynarr *> for buf; use
2037 `convert_bufbyte_string_into_charc_dynarr' instead of
2038 `convert_bufbyte_string_into_emchar_dynarr'.
2040 * frame.c (title_string_charc_dynarr): New variable; renamed from
2041 `title_string_emchar_dynarr'.
2042 (generate_title_string): Use `title_string_charc_dynarr' instead
2043 of `title_string_emchar_dynarr'; use
2044 `convert_charc_string_into_malloced_string' instead of
2045 `convert_emchar_string_into_malloced_string'.
2046 (init_frame): Use `title_string_charc_dynarr' instead of
2047 `title_string_emchar_dynarr'.
2050 - Include "character.h".
2051 (struct console_methods): Use <const Charc *> instead of <const
2052 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2053 <Emchar_dynarr *> in output_string_method.
2055 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2058 * console-stream.c (stream_text_width): Use <const Charc *>
2059 instead of <const Emchar *>.
2061 * character.h (Charc_dynarr): New type.
2063 * char-ucs.h (structure Charc): New structure; define new type
2066 * char-lb.h (DECODE_CHAR): New inline function.
2067 (encode_char_1): New inline function.
2068 (ENCODE_CHAR): New macro.
2069 (structure Charc): New structure; define new type `Charc'.
2071 * char-1byte.h (Vcharset_control_1): New macro.
2072 (Vcharset_latin_iso8859_1): New macro.
2073 (DECODE_CHAR): New inline function.
2074 (encode_char_1): New inline function.
2075 (ENCODE_CHAR): New macro.
2076 (structure Charc): New structure; define new type `Charc'.
2078 * insdel.c (find_charsets_in_charc_string): New function; delete
2079 `find_charsets_in_emchar_string'.
2080 (charc_string_displayed_columns): New function; delete
2081 `emchar_string_displayed_columns'.
2082 (convert_bufbyte_string_into_charc_dynarr): New function; delete
2083 `convert_bufbyte_string_into_emchar_dynarr'.
2084 (convert_charc_string_into_bufbyte_dynarr): New function; delete
2085 `convert_charc_string_into_bufbyte_dynarr'.
2086 (convert_charc_string_into_malloced_string): New function; delete
2087 `convert_charc_string_into_malloced_string'.
2089 * buffer.h (find_charsets_in_charc_string): New prototype; delete
2090 `find_charsets_in_emchar_string'.
2091 (charc_string_displayed_columns): New prototype; delete
2092 `emchar_string_displayed_columns'.
2093 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2094 `convert_charc_string_into_bufbyte_dynarr'.
2095 (convert_charc_string_into_malloced_string): New prototype; delete
2096 `convert_charc_string_into_malloced_string'.
2098 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2100 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2102 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2104 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2106 * char-ucs.h: Use <short> for <Charset_ID>.
2108 * mule-charset.h, char-1byte.h: Use <unsigned char> for
2111 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2113 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2116 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2120 (Qmorohashi_daikanwa): New variable.
2121 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2122 for `morohashi-daikanwa' attribute.
2123 (Fget_char_attribute): Likewise.
2124 (Fput_char_attribute): Likewise.
2125 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2126 has the same value of `ideograph-daikanwa'.
2127 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2128 (vars_of_mule_charset): Setup
2129 `Vcharacter_morohashi_daikanwa_table'.
2131 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2133 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2135 (add_charset_to_list_mapper): Add `key' instead of
2136 `XCHARSET_NAME (value)' to return aliases.
2138 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2140 * mule-charset.c (Vcharacter_ideographic_radical_table): New
2142 (Vcharacter_ideographic_strokes_table): New variable.
2143 (Qideographic_radical): New variable.
2144 (Qideographic_strokes): New variable.
2145 (Fchar_attribute_alist): Use
2146 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2147 attribute; use `Vcharacter_ideographic_strokes_table' for
2148 `ideographic-strokes' attribute.
2149 (Fget_char_attribute): Likewise.
2150 (Fput_char_attribute): Likewise.
2151 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2152 `ideographic-strokes'.
2153 (vars_of_mule_charset): Setup
2154 `Vcharacter_ideographic_radical_table' and
2155 `Vcharacter_ideographic_strokes_table'.
2157 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2159 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2160 (Qtotal_strokes): New variable.
2161 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2162 `total-strokes' attribute.
2163 (Fget_char_attribute): Likewise.
2164 (Fput_char_attribute): Likewise.
2165 (syms_of_mule_charset): Add new symbol `total-strokes'.
2166 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2168 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2170 * mule-charset.c (Vcharacter_decomposition_table): New variable.
2171 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2173 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2174 `->decomposition' attribute.
2175 (Fput_char_attribute): Likewise.
2176 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2178 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2180 * mule-charset.c (decoding_table_check_elements): New function.
2181 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2183 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2185 * mule-charset.c (Fset_charset_mapping_table): Use
2186 `put_char_ccs_code_point'.
2188 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2190 * mule-charset.c (decoding_table_put_char): New inline function.
2191 (put_char_ccs_code_point): Use `decoding_table_put_char'.
2193 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2195 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2196 (XCHARSET_BYTE_SIZE): New macro.
2197 (decoding_table_remove_char): New inline function.
2198 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2199 `decoding_table_remove_char'.
2200 (remove_char_ccs): Use `decoding_table_remove_char'.
2201 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2203 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2205 * mule-charset.c (Vcharacter_name_table): New variable.
2206 (Qname): New variable.
2207 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2209 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2210 `Vcharacter_name_table' for `name' attribute.
2211 (Fremove_char_attribute): Use function `remove_char_ccs'.
2212 (put_char_ccs_code_point): New function.
2213 (remove_char_ccs): New function.
2214 (syms_of_mule_charset): Add new symbol `name'.
2215 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2217 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2219 * mule-charset.c (make_byte_table): Add new argument `older'.
2220 (make_char_id_table): Likewise.
2221 (copy_char_id_table): Comment out because it is not used.
2222 (put_char_id_table): Modify for `make_byte_table'.
2223 (Fput_char_attribute): Make encoding_table as older object;
2224 inherit older bit of `Vcharacter_composition_table'.
2225 (mark_charset): Don't mark `cs->encoding_table'.
2226 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2227 normal object; make `Vcharacter_composition_table' as an older
2228 object; delete staticpro for `Vcharacter_composition_table'; make
2229 `Vcharacter_variant_table' as a normal object.
2231 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2232 (mark_object): Don't check older object in UTF-2000.
2234 * lrecord.h (struct lrecord_header): Add new member `older' in
2236 (set_lheader_implementation): Setup `SLI_header->older' in
2238 (set_lheader_older_implementation): New macro in UTF-2000.
2239 (OLDER_RECORD_P): New macro in UTF-2000.
2240 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2241 (alloc_older_lcrecord): New prototype in UTF-2000.
2242 (alloc_older_lcrecord_type): New macro in UTF-2000.
2244 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2246 * mule-charset.c (byte_table_description): Use
2247 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2248 (char_id_table_description): Delete bogus `, 1'.
2249 (Fget_char_attribute): Refer encoding_table of each coded-charset
2250 to get value of coded-charset attribute of a character.
2251 (Fput_char_attribute): Use `make_older_vector' instead of
2252 `make_vector'; use encoding_table of each coded-charset to store
2253 value of coded-charset attribute of a character.
2254 (Fremove_char_attribute): Use encoding_table of each coded-charset
2255 to store value of coded-charset attribute of a character.
2256 (mark_charset): Mark `cs->encoding_table'; don't mark
2257 `cs->decoding_table'.
2258 (charset_description): Add description of new member
2260 (make_charset): Initialize `encoding_table'.
2262 * char-ucs.h (struct Lisp_Charset): Add new member
2264 (CHARSET_ENCODING_TABLE): New macro.
2265 (XCHARSET_ENCODING_TABLE): New macro.
2266 (charset_code_point): New implementation.
2267 (encode_char_1): Likewise.
2269 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2270 (disksave_object_finalization_1): Call finalizers of
2271 `all_older_lcrecords' in UTF-2000.
2272 (make_older_vector): New function in UTF-2000.
2273 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2276 * lisp.h (make_older_vector): New prototype in UTF-2000.
2278 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2280 * lrecord.h (enum lrecord_type): Rename
2281 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2283 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2284 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2285 `get_char_code_table'.
2287 * mule-charset.c (mark_char_id_table): Renamed from
2288 `mark_char_code_table'.
2289 (char_id_table_equal): Renamed from `char_code_table_equal'.
2290 (char_id_table_hash): Renamed from `char_code_table_hash'.
2291 (make_char_id_table): Renamed from `make_char_code_table'.
2292 (copy_char_id_table): Renamed from `copy_char_code_table'.
2293 (get_char_id_table): Renamed from `get_char_code_table'.
2294 (put_char_id_table): Renamed from `put_char_code_table'.
2295 (to_char_id): Renamed from `to_char_code'.
2297 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2298 `Lisp_Char_Code_Table'.
2299 (char_id_table): Renamed from `char_code_table'.
2300 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2301 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2302 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2303 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2304 (get_char_id_table): Renamed from `get_char_code_table'.
2306 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2308 * lrecord.h (enum lrecord_type): Rename
2309 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2311 * mule-charset.c (mark_byte_table): Renamed from
2312 `mark_char_byte_table'.
2313 (byte_table_equal): Renamed from `char_byte_table_equal'.
2314 (byte_table_hash): Renamed from `byte_table_hash'.
2315 (make_byte_table): Renamed from `make_byte_table'.
2316 (copy_byte_table): Renamed from `copy_char_byte_table'.
2318 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2319 `Lisp_Char_Byte_Table'.
2320 (byte_table): Renamed from `char_byte_table'.
2321 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2322 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2323 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2324 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2326 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2328 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2329 (dfc_convert_to_internal_format): Likewise.
2331 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2332 * text-coding.c (Fcoding_system_alias_p): New function.
2333 * text-coding.c (Fcoding_system_aliasee): New function.
2334 * text-coding.c (append_suffix_to_symbol): New function.
2335 * text-coding.c (dangling_coding_system_alias_p): New function.
2336 * text-coding.c (Ffind_coding_system):
2337 * text-coding.c (Fcopy_coding_system):
2338 * text-coding.c (encode_coding_no_conversion):
2339 * text-coding.c (syms_of_file_coding):
2340 * text-coding.c (vars_of_file_coding):
2341 Rewrite coding system alias code.
2342 Allow nested aliases, like symbolic links.
2343 Allow redefinition of coding system aliases.
2344 Prevent existence of dangling coding system aliases.
2345 Eliminate convert_to_external_format.
2346 Eliminate convert_to_internal_format.
2348 * text-coding.c: Change enum eol_type to eol_type_t.
2350 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2352 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2353 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2355 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2356 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2358 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2360 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2361 `ideograph-daikanwa'.
2363 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2364 (Vcharset_ucs_bmp): Likewise.
2365 (Vcharset_mojikyo): Add new extern variable definition.
2366 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2367 (Vcharset_latin_iso8859_3): Likewise.
2368 (Vcharset_latin_iso8859_4): Likewise.
2369 (Vcharset_latin_iso8859_9): Likewise.
2370 (Vcharset_latin_viscii_lower): Likewise.
2371 (Vcharset_latin_viscii_upper): Likewise.
2372 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2373 `mojikyo' code-point is used to decode.
2374 (encode_char_2): New function [to convert `mojikyo' code-point to
2375 Mojikyo font encoding].
2376 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2377 (breakup_char_1): Likewise.
2378 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2380 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2382 * text-coding.c (Fmake_coding_system): Add document about
2383 `disable-composition' property.
2385 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2387 * text-coding.c (Qdisable_composition): New variable; delete
2389 (Fmake_coding_system): Add new property `disable-composite';
2390 delete property `composite'.
2391 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2392 instead of `!CODING_SYSTEM_COMPOSITE'.
2393 (syms_of_file_coding): Add new symbol `disable-composition';
2394 delete symbol `composite'.
2396 * file-coding.h (struct Lisp_Coding_System): Add
2397 `disable_composition'; delete `enable_composition'.
2398 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2399 `CODING_SYSTEM_COMPOSITE'.
2400 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2401 `XCODING_SYSTEM_COMPOSITE'.
2403 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2405 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2408 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2410 * text-coding.c (Qcomposite): New variable.
2411 (Fmake_coding_system): Add new property `composite'.
2412 (struct decoding_stream): Add `combined_char_count',
2413 `combined_chars' and `combining_table' in UTF-2000.
2414 (COMPOSE_FLUSH_CHARS): New macro.
2415 (COMPOSE_ADD_CHAR): New macro.
2416 (reset_decoding_stream): Reset `str->combined_char_count' and
2417 `str->combining_table' in UTF-2000.
2418 (decode_coding_iso2022): Modify for character-decomposition.
2419 (syms_of_file_coding): Add new symbol `composite'.
2421 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2423 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2424 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2425 of `Vcharacter_composition_table' if `->decomposition' property
2427 (Qlatin_tcvn5712): New variable.
2428 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2429 (complex_vars_of_mule_charset): Add new coded-charset
2432 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2434 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2436 * file-coding.h (struct Lisp_Coding_System): Add
2437 `enable_composition'.
2438 (CODING_SYSTEM_COMPOSITE): New macro.
2439 (XCODING_SYSTEM_COMPOSITE): New macro.
2441 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2443 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2445 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2447 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2448 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2450 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2452 * mule-charset.c (Vcharset_mojikyo): New variable.
2453 (Fdefine_char): Don't use coded-charset which does not have
2454 non-builtin character range to allocate character-id.
2455 (Qmojikyo): New variable.
2456 (syms_of_mule_charset): Add new symbol `mojikyo'.
2457 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2459 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2460 (LEADING_BYTE_MOJIKYO): New macro.
2461 (MIN_CHAR_MOJIKYO): New macro.
2462 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2463 (MAX_CHAR_MOJIKYO): New macro.
2465 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2467 * mule-charset.c (remove_char_attribute): Fixed.
2469 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2471 * mule-charset.c (remove_char_attribute): New function.
2472 (Fremove_char_attribute): New function.
2473 (encode_builtin_char_1): Comment out builtin-support for
2474 greek-iso8859-7 and cyrillic-iso8859-5.
2475 (Fdecode_char): Check `code' is an integer.
2476 (syms_of_mule_charset): Add `remove-char-attribute'.
2477 (MIN_CHAR_GREEK): Deleted.
2478 (MAX_CHAR_GREEK): Likewise.
2479 (MIN_CHAR_CYRILLIC): Likewise.
2480 (MAX_CHAR_CYRILLIC): Likewise.
2481 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2482 MAX_CHAR_GREEK for `greek-iso8859-7'.
2484 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2485 (MAX_CHAR_GREEK): Likewise.
2486 (MIN_CHAR_CYRILLIC): Likewise.
2487 (MAX_CHAR_CYRILLIC): Likewise.
2489 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2491 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2492 format is used without `ucs' property.
2493 (Fdecode_char): Fix problem with GR representation.
2494 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2495 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2497 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2499 * mule-charset.c (make_builtin_char): New function.
2500 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2501 (Fset_charset_mapping_table): Modify for new representation of
2503 (Fdecode_char): New function.
2504 (syms_of_mule_charset): Add new builtin function `decode-char' in
2507 * char-ucs.h (make_builtin_char): New prototype.
2508 (DECODE_CHAR): New inline function.
2509 (MAKE_CHAR): Use `DECODE_CHAR'.
2511 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2513 * text-coding.c (parse_charset_conversion_specs): Use
2514 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2516 (iso2022_designate): Likewise.
2518 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2519 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2521 * mule-charset.c (Vcharset_ucs): New variable.
2522 (print_charset): Change design; use `CHARSET_CHARS' and
2523 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2524 (make_charset): Change signature to specify `chars' and
2525 `dimension' instead of `type'.
2526 (range_charset_code_point): Modify for 256^n-set.
2527 (encode_builtin_char_1): Encode as `ucs' in default.
2528 (Fmake_charset): Modify for `make_charset'.
2529 (Fmake_reverse_direction_charset): Likewise.
2530 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2532 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2535 * char-ucs.h (Vcharset_ucs): New variable.
2536 (LEADING_BYTE_UCS): New macro.
2537 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2538 and `chars' to `unsigned short' from `unsigned int'.
2539 (CHARSET_TYPE): Deleted.
2540 (XCHARSET_TYPE): Deleted.
2542 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2544 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2546 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2547 (ENCODE_CHAR): New macro.
2549 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2551 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2552 to 0.14 (Kawachi-Katakami).
2554 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2556 * text-coding.c (char_encode_shift_jis): Modify for
2557 `charset_code_point'.
2558 (char_encode_iso2022): Likewise.
2560 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2561 (integer) instead of list of <Lisp_Object>s (integers) as the
2562 format of code-point of a coded-charset.
2563 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2564 (encode_builtin_char_1): New function; delete
2565 `split_builtin_char'.
2566 (charset_code_point): Return <int> instead of <Lisp_Object>.
2567 (Fsplit_char): Don't use `SPLIT_CHAR'.
2569 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2570 prototype for `split_builtin_char'.
2571 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2572 (charset_code_point): Likewise.
2573 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2574 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2576 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2578 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2579 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2581 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2583 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2585 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2586 (MAX_CHAR_OBS_94x94): Deleted.
2588 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2590 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2592 * char-ucs.h (MAX_CHAR_BMP): New macro.
2594 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2596 * text-coding.c: Sync with r21-2-24.
2598 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2600 * file-coding.c: Modify for UTF-2000.
2602 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2604 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2607 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2609 * mule-charset.c (split_builtin_char): Delete builtin support for
2610 `katakana-jisx0201'.
2611 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2612 BMP area in builtin representation.
2614 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2615 `Vcharset_katakana_jisx0201'.
2617 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2619 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2620 (Qisolated): New variable.
2621 (Qinitial): New variable.
2622 (Qmedial): New variable.
2623 (Qfinal): New variable.
2624 (Qvertical): New variable.
2625 (Qsmall): New variable.
2626 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2627 `Qvertical' and `Qsmall'.
2628 (Qmojikyo_pj_[1 .. 21]): New variable.
2629 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2630 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2631 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2634 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2636 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2637 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2638 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2640 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2642 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2643 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2645 (Qjapanese_jisx0208_1990): New variable.
2646 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2647 (complex_vars_of_mule_charset): Add new coded-charset
2648 `japanese-jisx0208-1990'.
2650 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2651 (MIN_CHAR_JIS_X0208_1990): New macro.
2652 (MAX_CHAR_JIS_X0208_1990): New macro.
2654 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2656 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2657 coded-charset is not found.
2659 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2661 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2662 (Fdefine_char): Use `Fmake_char'.
2664 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2666 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2667 (Vcharset_hiragana_jisx0208): Deleted.
2668 (Vcharset_katakana_jisx0208): Deleted.
2669 (Qideograph_daikanwa): New variable.
2670 (Qhiragana_jisx0208): Deleted.
2671 (Qkatakana_jisx0208): Deleted.
2672 (split_builtin_char): Split `ideograph-daikanwa'.
2673 (Fsplit_char): New implementation for UTF-2000.
2674 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2675 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2676 (complex_vars_of_mule_charset): Add new coded-charset
2677 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2678 `katakana-jisx0208'.
2680 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2681 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2682 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2683 (MIN_CHAR_DAIKANWA): New macro.
2684 (MAX_CHAR_DAIKANWA): New macro.
2686 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2688 * data.c (Fstring_to_number): Don't recognize floating point if
2691 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2693 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2695 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2697 * mule-charset.c (Qsquare): New variable.
2698 (to_char_code): Add `Qsquare'.
2699 (syms_of_mule_charset): Add new symbol `square'.
2701 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2703 * mule-charset.c (Qcircle): New variable.
2704 (to_char_code): Add `Qcircle'.
2705 (syms_of_mule_charset): Add new symbol `circle'.
2707 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2709 * mule-charset.c (Qfont): New variable.
2710 (to_char_code): Add `Qfont'.
2711 (syms_of_mule_charset): Add new symbol `font'.
2713 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2715 * mule-charset.c (Qsub): New variable.
2716 (to_char_code): Add `Qsub'.
2717 (syms_of_mule_charset): Add new symbol `sub'.
2719 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2721 * mule-charset.c (Fput_char_attribute): Convert each element of
2722 VALUE to GL position if ATTRIBUTE is a GR-set,
2724 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2726 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2727 coded-charset is a GR-set.
2729 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2731 * mule-charset.c (Fput_char_attribute): Check each element of
2732 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2734 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2736 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2738 (Qethiopic_ucs): New variable in UTF-2000.
2739 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2740 (complex_vars_of_mule_charset): Add new coded-charset
2741 `ethiopic-ucs' in UTF-2000.
2743 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2744 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2746 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2748 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2750 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2752 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2755 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2757 * mule-charset.c (Vcharacter_variant_table): New variable.
2758 (Q_ucs): New variable.
2759 (Fchar_variants): New function.
2760 (Fput_char_attribute): Register `->ucs' value to
2761 `Vcharacter_variant_table'.
2762 (syms_of_mule_charset): Add new function `char-variants' and new
2764 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2766 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2768 * mule-charset.c (get_char_code_table): Allow negative character
2770 (put_char_code_table): Likewise.
2771 (Vcharacter_composition_table): New variable.
2772 (Q_decomposition): New variable.
2773 (Qwide): New variable.
2774 (Qnarrow): New variable.
2775 (Qcompat): New variable.
2776 (QnoBreak): New variable.
2777 (Qsuper): New variable.
2778 (Qfraction): New variable.
2779 (to_char_code): New function.
2780 (Fget_composite_char): New function.
2781 (Fput_char_attribute): Register `->decomposition' value to
2782 `Vcharacter_composition_table'.
2783 (syms_of_mule_charset): Add new function `get-composite-char', new
2784 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2785 `super' and `fraction'.
2786 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2788 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2790 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2791 character; copy the return value.
2793 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2795 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2797 * mule-charset.c (range_charset_code_point): Must use make_int.
2798 (split_builtin_char): New function.
2800 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2802 * mule-charset.c (char_byte_table): Change name from
2803 "char-code-table" to "char-byte-table".
2804 (mark_char_code_table): New function.
2805 (char_code_table_equal): New function.
2806 (char_code_table_hash): New function.
2807 (char_code_table_description): New constant.
2808 (char_code_table): New type.
2809 (make_char_code_table): New function.
2810 (copy_char_code_table): New function.
2811 (get_char_code_table): Modify for `char_code_table' type.
2812 (put_char_code_table): Likewise.
2813 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2816 * char-ucs.h (char_code_table): New type.
2817 (XCHAR_CODE_TABLE): New macro.
2818 (XSETCHAR_CODE_TABLE): New macro.
2819 (CHAR_CODE_TABLE_P): New macro.
2820 (GC_CHAR_CODE_TABLE_P): New macro.
2821 (struct Lisp_Char_Code_Table): New structure.
2823 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2825 * mule-charset.c (Fmake_charset): Setup byte_offset for
2828 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2830 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2833 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2835 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2838 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2840 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2841 charset, it is regarded as a charset.
2842 (put_char_attribute): New function in UTF-2000.
2843 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2844 charset, mapping-table of the charset is modified.
2845 (Fdefine_char): New function in UTF-2000.
2846 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2847 `Fput_char_attribute'.
2848 (syms_of_mule_charset): Add new function `define-char' and new
2849 symbol `ucs' in UTF-2000.
2850 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2852 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2854 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2855 non-UTF-2000 configuration.
2857 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2859 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2860 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2862 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2864 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2865 (Fset_charset_mapping_table): Likewise.
2867 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2868 (CHARSET_ENCODING_TABLE): Delete.
2869 (XCHARSET_ENCODING_TABLE): Delete.
2870 (charset_code_point): New interface.
2872 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2874 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2875 instead of `charset_get_byte1' and `charset_get_byte2'.
2877 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2878 (charset_get_byte2): Deleted.
2880 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2882 * char-ucs.h (SPLIT_CHAR): New inline function.
2883 (breakup_char_1): Use `SPLIT_CHAR'.
2885 * mule-charset.c (range_charset_code_point): New function.
2886 (charset_code_point): New function.
2888 * char-ucs.h (range_charset_code_point): New interface.
2889 (breakup_char_1): Use `range_charset_code_point'.
2891 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2893 * mule-charset.c (Fmake_charset): Delete unused local variable
2896 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2897 (breakup_char_1): Find a charset and code-point in
2898 `Vcharacter_attribute_table'.
2900 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2902 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2905 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2907 * mule-charset.c (Vcharacter_attribute_table): New variable.
2908 (Fchar_attribute_alist): New function.
2909 (Fget_char_attribute): New function.
2910 (Fput_char_attribute): New function.
2911 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2913 (syms_of_mule_charset): Add new function `char-attribute-alist',
2914 `get-char-attribute' and `put-char-attribute'.
2915 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2917 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
2919 * mule-charset.c (Fmake_charset): Just use
2920 `get_unallocated_leading_byte'.
2922 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2923 sets; don't use final-byte based number for private sets.
2925 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2927 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2930 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2932 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2935 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2937 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2938 of `CHAR_LEADING_BYTE' in UTF-2000.
2940 * insdel.c (find_charsets_in_bufbyte_string): Use
2941 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2942 (find_charsets_in_emchar_string): Likewise.
2944 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2945 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2947 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2948 (CHAR_CHARSET_ID): New macro.
2950 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2952 * chartab.c (get_char_table): Don't use type `Charset_ID' for
2953 charset-id - MIN_LEADING_BYTE.
2954 (put_char_table): Likewise.
2956 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2958 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2959 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2960 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2961 (CHARSET_ID_OFFSET): New macro.
2962 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2963 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2964 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2965 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2967 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2969 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2970 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2971 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2972 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2973 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2975 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2977 * mule-charset.c (next_allocated_leading_byte): New variable in
2979 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2980 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2981 (get_unallocated_leading_byte): Simply use
2982 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2983 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2986 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2987 (MAX_LEADING_BYTE_PRIVATE): New macro.
2988 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2989 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2991 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2993 * mule-charset.c (Fmake_charset): Allocate final-byte based
2994 charset-id for 94-set, 96-set and 94x94-set.
2996 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2998 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3000 (Fmake_charset): Likewise.
3001 (complex_vars_of_mule_charset): Modify the font registry of
3002 `ucs-bmp' not to match `Ethiopic-Unicode'.
3004 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3006 * mule-charset.c (complex_vars_of_mule_charset): Add font
3007 registory of `ucs-bmp'.
3009 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3011 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3012 coded-charsets in `default-coded-charset-priority-list' when
3013 breaking up a character.
3015 * mule-charset.c (Vcharset_latin_viscii): New variable.
3016 (Qlatin_viscii): New variable.
3017 (make_charset): Don't use `decoding_table'.
3018 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3020 (Fset_charset_mapping_table): New implementation.
3021 (syms_of_mule_charset): Add new symbol `latin-viscii'.
3022 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3023 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3024 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3025 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3026 charset `latin_viscii'.
3028 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3029 (CHARSET_TYPE_94X94): Change to 1 from 2.
3030 (CHARSET_TYPE_96): Change to 2 from 1.
3031 (CHARSET_TYPE_128): New macro.
3032 (CHARSET_TYPE_128X128): Change to 5 from 4.
3033 (CHARSET_TYPE_256): New macro.
3034 (CHARSET_TYPE_256X256): Change to 7 from 5.
3035 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3037 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3039 * text-coding.c (char_encode_shift_jis): Refer
3040 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3041 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3043 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3044 (char_byte_table_equal): New function in UTF-2000.
3045 (char_byte_table_hash): New function in UTF-2000.
3046 (char_byte_table_description): New constant in UTF-2000.
3047 (char_byte_table): New type in UTF-2000.
3048 (make_char_byte_table): New function in UTF-2000.
3049 (copy_char_byte_table): New function in UTF-2000.
3050 (make_char_code_table): New macro in UTF-2000.
3051 (get_char_code_table): New function in UTF-2000.
3052 (put_char_code_table): New function in UTF-2000.
3053 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3054 (charset_description): Add setting in UTF-2000.
3055 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3056 `CHARSET_TO_BYTE1_TABLE(cs)'.
3057 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3058 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3059 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3060 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3061 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3062 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3063 `CHARSET_TO_BYTE2_TABLE(cs)'.
3065 * char-ucs.h (char_byte_table): New type.
3066 (XCHAR_BYTE_TABLE): New macro.
3067 (XSETCHAR_BYTE_TABLE): New macro.
3068 (CHAR_BYTE_TABLE_P): New macro.
3069 (GC_CHAR_BYTE_TABLE_P): New macro.
3070 (struct Lisp_Char_Byte_Table): New structure.
3071 (get_char_code_table): New interface.
3072 (Emchar_to_byte_table): Deleted.
3073 (get_byte_from_character_table): Deleted.
3074 (struct Lisp_Charset): Add `encoding_table'; delete
3075 `to_byte1_table' and `to_byte2_table'.
3076 (CHARSET_ENCODING_TABLE): New macro.
3077 (CHARSET_TO_BYTE1_TABLE): Deleted.
3078 (CHARSET_TO_BYTE2_TABLE): Deleted.
3079 (XCHARSET_ENCODING_TABLE): New macro.
3080 (XCHARSET_TO_BYTE1_TABLE): Deleted.
3081 (XCHARSET_TO_BYTE2_TABLE): Deleted.
3083 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3085 * mule-charset.c (syms_of_mule_charset): Delete charset alias
3086 `vietnamese-viscii-*'.
3088 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3090 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3091 (Qvietnamese_viscii_upper): New variable.
3092 (Fdefine_charset_alias): New function.
3093 (syms_of_mule_charset): Add new function `define-charset-alias'.
3094 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3095 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3098 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
3100 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3101 (MAX_CHAR_OBS_94x94): New macro.
3102 (breakup_char_1): Support obsolete XEmacs-UCS private code space
3105 * mule-charset.c (put_byte_from_character_table): Change unit size
3107 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3109 (Fmake_reverse_direction_charset): Modify dummy argument of
3110 `make_charset' for non-UTF-2000 environment.
3112 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3114 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3116 * mule-charset.c (destroy_byte_from_character_table): New macro.
3117 (latin_jisx0201_to_ucs): Deleted.
3118 (latin_iso8859_2_to_ucs): Deleted.
3119 (latin_iso8859_3_to_ucs): Deleted.
3120 (latin_iso8859_4_to_ucs): Deleted.
3121 (latin_iso8859_9_to_ucs): Deleted.
3122 (latin_viscii_lower_to_ucs): Deleted.
3123 (latin_viscii_upper_to_ucs): Deleted.
3124 (mark_charset): Mark `cs->decoding_table'.
3125 (Fcharset_mapping_table): Fix DOC-string.
3126 (Fset_charset_mapping_table): New function.
3127 (syms_of_mule_charset): Add nwe function
3128 `set-charset-mapping-table'.
3129 (complex_vars_of_mule_charset): Don't setup and use
3132 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
3134 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3137 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
3139 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3140 (Vcharset_katakana_jisx0208): New variable.
3141 (Qhiragana_jisx0208): New variable.
3142 (Qkatakana_jisx0208): New variable.
3143 (make_charset): Add new argument `byte_offset'.
3144 (charset_get_byte1): Modify for new coded-charset definition; use
3145 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3146 `XCHARSET_BYTE_OFFSET'.
3147 (Fmake_charset): Modify for `make_charset'.
3148 (Fmake_reverse_direction_charset): Likewise.
3149 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3150 `katakana-jisx0208'.
3151 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3152 `.' in font registry of charset `katakana-jisx0201',
3153 `latin-jisx0201', `vietnamese-viscii-lower' and
3154 `vietnamese-viscii-upper'; modify DOC-string of charset
3155 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3156 registry of charset `japanese-jisx0208' not to use font for JIS
3157 X0208:1990; add new charset `hiragana-jisx0208' and
3158 `katakana-jisx0208'.
3160 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3161 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3162 (struct Lisp_Charset): Add `byte_offset'.
3163 (CHARSET_BYTE_OFFSET): New macro.
3164 (XCHARSET_UCS_MIN): New macro.
3165 (XCHARSET_UCS_MAX): New macro.
3166 (XCHARSET_CODE_OFFSET): New macro.
3167 (XCHARSET_BYTE_OFFSET): New macro.
3168 (MIN_CHAR_HIRAGANA): New macro.
3169 (MAX_CHAR_HIRAGANA): New macro.
3170 (MIN_CHAR_KATAKANA): New macro.
3171 (MAX_CHAR_KATAKANA): New macro.
3172 (MAKE_CHAR): Modify for new coded-charset definition; use
3173 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3174 `XCHARSET_BYTE_OFFSET'.
3176 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3178 * mule-charset.c (CHAR96): Deleted.
3179 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3181 (latin_iso8859_2_to_ucs): Likewise.
3182 (latin_iso8859_3_to_ucs): Likewise.
3183 (latin_iso8859_4_to_ucs): Likewise.
3184 (latin_iso8859_9_to_ucs): Likewise.
3185 (latin_viscii_lower_to_ucs): Likewise.
3186 (latin_viscii_upper_to_ucs): Likewise.
3187 (latin_tcvn5712_to_ucs): Commented out.
3188 (make_charset): Change type of argument `decoding_table' from
3189 <Emchar*> to <Lisp_Object> [vector of characters].
3190 (Fmake_charset): Modify for `make_charset'.
3191 (Fmake_reverse_direction_charset): Likewise.
3192 (Fcharset_mapping_table): New function in UTF-2000.
3193 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3195 (complex_vars_of_mule_charset): Modify for type change of
3196 `*_to_ucs'; modify for `make_charset'.
3198 * char-ucs.h (struct Lisp_Charset): Change type of
3199 `decoding_table' from <Emchar*> to <Lisp_Object>.
3200 (MAKE_CHAR): Modify for new specification of `decoding_table'.
3202 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3204 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3205 error with non-UTF-2000-Mule.
3207 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
3209 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3211 (Vcharset_chinese_cns11643_4): Likewise.
3212 (Vcharset_chinese_cns11643_5): Likewise.
3213 (Vcharset_chinese_cns11643_6): Likewise.
3214 (Vcharset_chinese_cns11643_7): Likewise.
3215 (Qchinese_cns11643_3): Likewise.
3216 (Qchinese_cns11643_4): Likewise.
3217 (Qchinese_cns11643_5): Likewise.
3218 (Qchinese_cns11643_6): Likewise.
3219 (Qchinese_cns11643_7): Likewise.
3220 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3221 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3222 and `chinese-cns11643-7' to lisp/mule/chinese.el.
3223 (complex_vars_of_mule_charset): Likewise.
3225 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3227 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3229 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3230 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3232 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3234 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3236 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3237 (breakup_char_1): Likewise.
3239 * text-coding.c (char_encode_iso2022): Keep designated charsets if
3240 one of them includes the specified character.
3242 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3244 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3246 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3248 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3250 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3252 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3253 definition for non-UTF-2000 Mule.
3254 (latin_iso8859_3_to_ucs): Likewise.
3255 (latin_iso8859_4_to_ucs): Likewise.
3256 (latin_iso8859_9_to_ucs): Likewise.
3257 (latin_jisx0201_to_ucs): Likewise.
3258 (MIN_CHAR_THAI): Likewise.
3259 (MAX_CHAR_THAI): Likewise.
3260 (MIN_CHAR_GREEK): Likewise.
3261 (MAX_CHAR_GREEK): Likewise.
3262 (MIN_CHAR_HEBREW): Likewise.
3263 (MAX_CHAR_HEBREW): Likewise.
3264 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3265 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3266 (MIN_CHAR_CYRILLIC): Likewise.
3267 (MAX_CHAR_CYRILLIC): Likewise.
3269 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3271 * char-ucs.h (breakup_char_1): Use
3272 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3273 thai-tis620 and katakana-jisx0201 area.
3275 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3277 * char-ucs.h (breakup_char_1): Use
3278 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3281 * text-coding.c (reset_encoding_stream): Fixed.
3282 (char_encode_ucs4): Delete `& 255'.
3284 * char-ucs.h (breakup_char_1): Use
3285 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3287 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3289 * file-coding.c (Fmake_coding_system): Don't set up
3290 `codesys->fixed.size'.
3291 (encode_coding_no_conversion): Don't refer
3292 `str->codesys->fixed.size'.
3294 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3296 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3297 (latin_a_char_to_byte1): Deleted.
3298 (latin_a_char_to_byte2): Deleted.
3300 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3302 * mule-charset.c (make_charset): Add new argument `ucs_min',
3303 `ucs_max' and `code_offset'.
3304 (charset_get_byte1): New implementation [delete specific charset
3305 depended implementations].
3306 (Fmake_charset): Modify for `make_charset'.
3307 (Fmake_reverse_direction_charset): Likewise.
3308 (complex_vars_of_mule_charset): Likewise.
3310 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3312 (CHARSET_UCS_MIN): New macro.
3313 (CHARSET_UCS_MAX): New macro.
3314 (CHARSET_CODE_OFFSET): New macro.
3315 (MAKE_CHAR): Delete charset depended definitions [except
3318 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3320 * char-ucs.h (breakup_char_1): Use
3321 `Vdefault_coded_charset_priority_list' for C0-Controls,
3322 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3324 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3326 * char-ucs.h (charset_get_byte1): New function.
3327 (XCHARSET_GET_BYTE1): Deleted.
3328 (charset_get_byte2): New function.
3329 (XCHARSET_GET_BYTE2): Deleted.
3330 (Vdefault_coded_charset_priority_list): New external variable.
3331 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3332 `Vdefault_preferred_coded_charset_list'.
3334 * mule-charset.c (charset_get_byte1): New function.
3335 (charset_get_byte2): New function.
3336 (Vdefault_coded_charset_priority_list): New variable.
3337 (vars_of_mule_charset): Add new variable
3338 `default-coded-charset-priority-list'.
3340 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3342 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3343 (XCHARSET_GET_BYTE2): New inline function.
3344 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3345 `XCHARSET_GET_BYTE2'.
3347 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3349 * mule-charset.c (make_charset): Initialize
3350 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3351 NULL if table is not defined.
3353 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3355 * text-coding.c (char_encode_shift_jis): Use
3356 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3357 `ucs_to_latin_jisx0201'.
3359 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3360 (ucs_to_latin_iso8859_2): Deleted.
3361 (ucs_to_latin_iso8859_3): Deleted.
3362 (ucs_to_latin_iso8859_4): Deleted.
3363 (ucs_to_latin_iso8859_9): Deleted.
3364 (ucs_to_latin_viscii_lower): Deleted.
3365 (ucs_to_latin_viscii_upper): Deleted.
3366 (ucs_to_latin_tcvn5712): Deleted.
3367 (make_charset): Add new argument `decoding_table'; set up
3368 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3369 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3370 `decoding_table' is defined in UTF-2000.
3371 (Fmake_charset): Modify for `make_charset'.
3372 (Fmake_reverse_direction_charset): Likewise.
3373 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3374 and `GENERATE_96_SET'.
3376 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3377 (ucs_to_latin_jisx0201): Deleted.
3378 (latin_iso8859_2_to_ucs): Deleted.
3379 (ucs_to_latin_iso8859_2): Deleted.
3380 (latin_iso8859_3_to_ucs): Deleted.
3381 (ucs_to_latin_iso8859_3): Deleted.
3382 (latin_iso8859_4_to_ucs): Deleted.
3383 (ucs_to_latin_iso8859_4): Deleted.
3384 (latin_iso8859_9_to_ucs): Deleted.
3385 (ucs_to_latin_iso8859_9): Deleted.
3386 (latin_viscii_lower_to_ucs): Deleted.
3387 (ucs_to_latin_viscii_lower): Deleted.
3388 (latin_viscii_upper_to_ucs): Deleted.
3389 (ucs_to_latin_viscii_upper): Deleted.
3390 (struct Lisp_Charset): Renamed `encoding_table' to
3391 `to_byte1_table'; add `to_byte2_table'.
3392 (CHARSET_DECODING_TABLE): New macro.
3393 (CHARSET_TO_BYTE1_TABLE): New macro.
3394 (CHARSET_TO_BYTE2_TABLE): New macro.
3395 (XCHARSET_DECODING_TABLE): New macro.
3396 (XCHARSET_TO_BYTE1_TABLE): New macro.
3397 (XCHARSET_TO_BYTE2_TABLE): New macro.
3398 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3400 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3401 don't use `ucs_to_*' tables.
3403 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3405 * text-coding.c (Fmake_coding_system): Don't set up
3406 `codesys->fixed.size'.
3407 (encode_coding_no_conversion): Use `if' instead of `switch'.
3409 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3411 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3413 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3414 (Fmake_charset): Modify for `make_charset'.
3415 (Fmake_reverse_direction_charset): Likewise.
3416 (complex_vars_of_mule_charset): Likewise.
3418 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3420 * text-coding.c (char_encode_shift_jis): Use table
3421 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3423 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3425 * text-coding.c (text_encode_generic): Use `if' instead of
3427 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3430 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3432 * text-coding.c (encode_coding_sjis): Deleted.
3433 (char_encode_shift_jis): New function.
3434 (char_finish_shift_jis): New function.
3435 (reset_encoding_stream): Set up `encode_char' and `finish' for
3436 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3437 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3438 (char_encode_utf8): Treat `eol_type'.
3440 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3442 * file-coding.c (decode_coding_iso2022): Use
3443 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3445 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3447 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3450 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3452 * char-lb.h (CHAR_COLUMNS): New macro.
3454 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3456 * text-coding.c (char_encode_ucs4): New function.
3457 (char_finish_ucs4): New function.
3458 (encode_coding_ucs4): Deleted.
3459 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3460 (text_encode_generic): Delete local variable `charset' and `half'.
3461 (ucs_to_mule_table): Deleted.
3462 (mule_to_ucs_table): Deleted.
3463 (Fset_ucs_char): Deleted.
3464 (ucs_to_char): Deleted.
3465 (Fucs_char): Deleted.
3466 (Fset_char_ucs): Deleted.
3467 (Fchar_ucs): Deleted.
3468 (decode_ucs4): Deleted.
3469 (mule_char_to_ucs4): Deleted.
3470 (encode_ucs4): Deleted.
3471 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3472 (decode_coding_utf8): Likewise.
3473 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3474 (char_encode_iso2022): Fixed.
3475 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3476 `Fset_char_ucs' and `Fchar_ucs'.
3477 (complex_vars_of_file_coding): Don't initialize
3478 `ucs_to_mule_table'.
3480 * objects-tty.c (tty_initialize_font_instance): Don't use
3483 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3486 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3487 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3489 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3490 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3491 (emchar_string_displayed_columns): Likewise.
3493 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3494 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3495 (string_column_at_point): Likewise.
3496 (Fmove_to_column): Likewise.
3498 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3499 `encoding_table' and `decoding_table'.
3500 (CHARSET_REP_BYTES): Deleted.
3501 (XCHARSET_REP_BYTES): Deleted.
3502 (XCHARSET_COLUMNS): Deleted.
3503 (CHAR_COLUMNS): New macro.
3504 (lookup_composite_char): Deleted unconditionally.
3505 (composite_char_string): Likewise.
3507 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3509 * char-ucs.h (Emchar_to_byte_table): New type.
3510 (get_byte_from_character_table): New function interface.
3511 (Vcharset_latin_jisx0201): New variable.
3512 (latin_jisx0201_to_ucs): New variable.
3513 (ucs_to_latin_jisx0201): New variable.
3514 (Vcharset_latin_iso8859_2): New variable.
3515 (latin_iso8859_2_to_ucs): New variable.
3516 (ucs_to_latin_iso8859_2): New variable.
3517 (Vcharset_latin_iso8859_3): New variable.
3518 (latin_iso8859_3_to_ucs): New variable.
3519 (ucs_to_latin_iso8859_3): New variable.
3520 (Vcharset_latin_iso8859_4): New variable.
3521 (latin_iso8859_4_to_ucs): New variable.
3522 (ucs_to_latin_iso8859_4): New variable.
3523 (Vcharset_latin_iso8859_9): New variable.
3524 (latin_iso8859_9_to_ucs): New variable.
3525 (ucs_to_latin_iso8859_9): New variable.
3526 (Vcharset_latin_viscii_lower): New variable.
3527 (latin_viscii_lower_to_ucs): New variable.
3528 (ucs_to_latin_viscii_lower): New variable.
3529 (Vcharset_latin_viscii_upper): New variable.
3530 (latin_viscii_upper_to_ucs): New variable.
3531 (ucs_to_latin_viscii_upper): New variable.
3532 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3533 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3534 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3535 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3536 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3537 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3538 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3539 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3540 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3541 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3543 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3544 (Vcharset_latin_viscii_upper): New variable.
3545 (make_byte_from_character_table): New function.
3546 (put_byte_from_character_table): New function.
3547 (get_byte_from_character_table): New function.
3548 (CHAR96): New macro.
3549 (ucs_to_latin_jisx0201): New variable.
3550 (latin_jisx0201_to_ucs): New variable.
3551 (ucs_to_latin_iso8859_2): New variable.
3552 (latin_iso8859_2_to_ucs): New variable.
3553 (ucs_to_latin_iso8859_3): New variable.
3554 (latin_iso8859_3_to_ucs): New variable.
3555 (ucs_to_latin_iso8859_4): New variable.
3556 (latin_iso8859_4_to_ucs): New variable.
3557 (ucs_to_latin_iso8859_9): New variable.
3558 (latin_iso8859_9_to_ucs): New variable.
3559 (ucs_to_latin_viscii_lower): New variable.
3560 (latin_viscii_lower_to_ucs): New variable.
3561 (ucs_to_latin_viscii_upper): New variable.
3562 (latin_viscii_upper_to_ucs): New variable.
3563 (ucs_to_latin_tcvn5712): New variable.
3564 (latin_tcvn5712_to_ucs): New variable.
3565 (Qlatin_viscii_lower): New variable.
3566 (Qlatin_viscii_upper): New variable.
3567 (syms_of_mule_charset): Set up new symbol
3568 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3569 (complex_vars_of_mule_charset): Set up new charset
3570 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3571 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3572 `ucs_to_<CHARSET>' tables.
3574 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3576 * text-coding.c: New file.
3578 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3580 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3582 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3583 (MAKE_CHAR): Modify for `ucs-bmp'.
3584 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3585 non-MULE characters of BMP.
3587 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3589 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3592 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3595 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3596 - Include character.h for `CHAR_ASCII_P'.
3598 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3600 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3601 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3603 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3604 (BYTE_C0_P): Likewise.
3605 (BYTE_C1_P): Likewise.
3606 (Lstream_get_emchar_1): Likewise.
3607 (Lstream_fput_emchar): Likewise.
3608 (Lstream_funget_emchar): Likewise.
3609 (copy_internal_to_external): Likewise.
3610 (copy_external_to_internal): Likewise.
3612 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3613 (BYTE_C0_P): Likewise.
3614 (BYTE_C1_P): Likewise.
3615 (Lstream_get_emchar_1): Likewise.
3616 (Lstream_fput_emchar): Likewise.
3617 (Lstream_funget_emchar): Likewise.
3618 (copy_internal_to_external): Likewise.
3619 (copy_external_to_internal): Likewise.
3621 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3622 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3624 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3625 (BYTE_ASCII_P): Moved to mb-1byte.h.
3627 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3629 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3631 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3632 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3633 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3634 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3635 (VALIDATE_CHARPTR_FORWARD): Likewise.
3636 (simple_charptr_emchar): Moved to mb-multibyte.h.
3637 (simple_set_charptr_emchar): Likewise.
3638 (simple_charptr_copy_char): Likewise.
3639 (non_ascii_charptr_emchar): Likewise.
3640 (non_ascii_set_charptr_emchar): Likewise.
3641 (non_ascii_charptr_copy_char): Likewise.
3642 (charptr_emchar): Moved to mb-*byte.h.
3643 (set_charptr_emchar): Likewise.
3644 (charptr_copy_char): Likewise.
3646 * mb-1byte.h, mb-multibyte.h: New files.
3648 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3650 * mb-utf-8.h (MULTIBYTE): New macro.
3651 (MAX_EMCHAR_LEN): Moved from buffer.h.
3652 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3654 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3656 * mb-lb.h, multibyte.h: New files.
3658 * char-1byte.h (Charset_ID): Moved from buffer.h.
3659 (MIN_LEADING_BYTE): Likewise.
3660 (LEADING_BYTE_ASCII): Likewise.
3661 (NUM_LEADING_BYTES): Likewise.
3662 (CHARSETP): Likewise.
3663 (CHARSET_BY_LEADING_BYTE): Likewise.
3664 (XCHARSET_LEADING_BYTE): Likewise.
3665 (XCHARSET_GRAPHIC): Likewise.
3666 (XCHARSET_COLUMNS): Likewise.
3667 (XCHARSET_DIMENSION): Likewise.
3668 (CHAR_CHARSET): Likewise.
3669 (CHAR_LEADING_BYTE): Likewise.
3670 (BREAKUP_CHAR): Likewise.
3671 (Vcharset_ascii): Likewise.
3673 * buffer.h: Include multibyte.h unconditionally.
3674 (VALID_CHARPTR_P): Moved to multibyte.h.
3675 (ASSERT_VALID_CHARPTR): Likewise.
3676 (REAL_INC_CHARPTR): Likewise.
3677 (REAL_INC_CHARBYTIND): Likewise.
3678 (REAL_DEC_CHARPTR): Likewise.
3679 (INC_CHARPTR): Likewise.
3680 (INC_CHARBYTIND): Likewise.
3681 (DEC_CHARPTR): Likewise.
3682 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3683 (VALIDATE_CHARPTR_FORWARD): Likewise.
3684 (charptr_n_addr): Likewise.
3685 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3686 (simple_charptr_emchar): Moved to multibyte.h.
3687 (simple_set_charptr_emchar): Likewise.
3688 (simple_charptr_copy_char): Likewise.
3689 (non_ascii_charptr_emchar): Likewise.
3690 (non_ascii_set_charptr_emchar): Likewise.
3691 (non_ascii_charptr_copy_char): Likewise.
3692 (charptr_emchar): Likewise.
3693 (set_charptr_emchar): Likewise.
3694 (charptr_copy_char): Likewise.
3695 (charptr_emchar_n): Likewise.
3696 (Charset_ID): Moved to char-1byte.h.
3697 (Vcharset_ascii): Likewise.
3698 (CHAR_CHARSET): Likewise.
3699 (CHAR_LEADING_BYTE): Likewise.
3700 (LEADING_BYTE_ASCII): Likewise.
3701 (NUM_LEADING_BYTES): Likewise.
3702 (MIN_LEADING_BYTE): Likewise.
3703 (CHARSETP): Likewise.
3704 (CHARSET_BY_LEADING_BYTE): Likewise.
3705 (XCHARSET_LEADING_BYTE): Likewise.
3706 (XCHARSET_GRAPHIC): Likewise.
3707 (XCHARSET_COLUMNS): Likewise.
3708 (XCHARSET_DIMENSION): Likewise.
3709 (BREAKUP_CHAR): Likewise.
3711 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3713 * character.h: Add document about interface for characters.
3715 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3716 (MAKE_CHAR): Delete comment about
3717 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3718 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3719 (BREAKUP_CHAR): Modify name of arguments.
3720 (CHAR_CHARSET): Modify name of argument.
3722 * buffer.h: Delete document about Emchar accessors.
3724 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3726 * character.h (CHAR_INTP): Moved from buffer.h
3727 (CHAR_OR_CHAR_INTP): Likewise.
3728 (XCHAR_OR_CHAR_INT): Likewise.
3729 (CHECK_CHAR_COERCE_INT): Likewise.
3731 * buffer.h (CHAR_INTP): Moved to character.h
3732 (CHAR_OR_CHAR_INTP): Likewise.
3733 (XCHAR_OR_CHAR_INT): Likewise.
3734 (CHECK_CHAR_COERCE_INT): Likewise.
3736 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3739 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3740 - Include char-1byte.h, char-lb.h or char-ucs.h.
3742 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3744 * buffer.h: Include character unconditionally.
3745 (valid_char_p): Moved to char-*.h.
3746 (non_ascii_valid_char_p): Moved to char-lb.h.
3748 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3750 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3752 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3753 in UTF-2000 because it is not ported yet and not to use
3754 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3755 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3756 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3758 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3759 (CHAR_ASCII_P): Moved from character.h.
3761 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3762 (CHAR_ASCII_P): Likewise.
3763 (CHAR_FIELD1_MASK): Deleted.
3764 (CHAR_FIELD2_MASK): Deleted.
3765 (CHAR_FIELD3_MASK): Deleted.
3766 (MAX_CHAR_BASIC_LATIN): New macro.
3767 (CHAR_FIELD1): Deleted.
3768 (CHAR_FIELD2_INTERNAL): Deleted.
3769 (CHAR_FIELD3_INTERNAL): Deleted.
3770 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3771 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3772 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3773 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3774 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3775 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3776 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3777 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3778 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3779 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3780 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3781 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3782 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3783 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3784 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3785 (MIN_CHAR_COMPOSITION): Deleted.
3786 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3787 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3789 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
3791 * buffer.h: Include mb-utf-8.h in UTF-2000.
3793 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3795 * mb-utf-8.h: New file.
3797 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
3799 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3802 * mule-charset.h, buffer.h (Charset_ID): New type.
3804 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3806 * mule-canna.c (c2mu): Use `MAKE_CHAR',
3807 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3808 instead of `MULE_CHAR_PRIVATE_OFFSET',
3809 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3810 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3811 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3813 * character.h (Vcharset_japanese_jisx0212): New variable
3816 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3818 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3819 (charset_by_attributes): Delete array about direction.
3820 (latin_a_char_to_charset): New variable in UTF-2000.
3821 (latin_a_char_to_byte1): New variable in UTF-2000.
3822 (latin_a_char_to_byte2): New variable in UTF-2000.
3823 (Qucs_bmp): New variable.
3824 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3826 (next_allocated_2_byte_leading_byte): Likewise.
3827 (non_ascii_set_charptr_emchar): Likewise.
3828 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3829 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3830 `charset_by_attributes'.
3831 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3832 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3833 and `CHARSET_BY_LEADING_BYTE'.
3834 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3835 `utf-2000-version' to `vars_of_mule_charset'.
3836 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3837 define `leading-code-private-11' in UTF-2000; move setting of
3838 `utf-2000-version' from `syms_of_mule_charset'.
3839 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3842 * character.h (Charset_ID): New type.
3843 (LEADING_BYTE_UCS_BMP): New macro.
3844 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3845 (CHARSET_ID_OFFSET_94): New macro.
3846 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3847 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3848 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3850 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3851 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3852 (CHARSET_ID_OFFSET_96): New macro.
3853 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3854 CHARSET_ID_OFFSET_96 and final-byte.
3855 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3856 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3857 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3858 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3859 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3860 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3861 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3862 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3863 (LEADING_BYTE_THAI_TIS620): Likewise.
3864 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3865 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3866 (CHARSET_ID_OFFSET_94x94): New macro.
3867 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3868 CHARSET_ID_OFFSET_94x94 and final-byte.
3869 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3870 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3871 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3872 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3873 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3874 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3875 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3876 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3877 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3878 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3879 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3880 (CHARSET_TYPE_128X128): New macro.
3881 (CHARSET_TYPE_256X256): New macro.
3882 (XCHARSET_PRIVATE_P): Delete unconditionally.
3883 (charset_by_attributes): Delete array about direction.
3884 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3885 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3886 (MIN_CHAR_94): New macro.
3887 (MAX_CHAR_94): New macro.
3888 (MIN_CHAR_96): New macro.
3889 (MAX_CHAR_96): New macro.
3890 (MIN_CHAR_94x94): New macro.
3891 (MAX_CHAR_94x94): New macro.
3892 (MIN_CHAR_96x96): New macro.
3893 (MAX_CHAR_96x96): New macro.
3894 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3895 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3896 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3898 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3899 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3900 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3901 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3902 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3903 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3904 `XCHARSET_LEADING_BYTE' to make code-point.
3905 (latin_a_char_to_charset): New variable.
3906 (latin_a_char_to_byte1): New variable.
3907 (latin_a_char_to_byte2): New variable.
3908 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3909 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3910 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3912 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3913 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3914 (find_charsets_in_emchar_string): Likewise.
3915 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3917 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3919 (decode_coding_iso2022): Likewise.
3921 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3924 * redisplay.c (redisplay_text_width_emchar_string): Use
3925 `Charset_ID' instead of `unsigned char'.
3926 (redisplay_frame_text_width_string): Likewise.
3928 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3931 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3932 instead of `unsigned char'.
3933 (face_cachel_charset_font_metric_info): Likewise.
3935 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3936 (get_non_ascii_char_table_value): Likewise.
3937 (get_char_table): Likewise.
3938 (put_char_table): Likewise.
3939 (map_over_other_charset): Likewise.
3940 (map_char_table): Likewise.
3942 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3943 instead of `unsigned char'.
3945 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
3947 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3948 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3950 * mule-charset.c (leading_code_private_11): Don't define in
3953 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3954 in UTF-2000 because it is not ported yet and not to use
3955 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3957 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
3959 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3961 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3963 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3966 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3967 of unsigned char to store leading-byte.
3969 * chartab.c (get_non_ascii_char_table_value): Don't use
3970 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3972 * file-coding.c (encode_coding_big5): Delete bogus implementation
3975 * character.h (LEADING_BYTE_*): Delete definition for
3977 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3978 (LEADING_BYTE_PREFIX_P): Deleted.
3979 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3980 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3981 (BUFBYTE_LEADING_BYTE_P): Deleted.
3982 (CHARSET_PRIVATE_P): Deleted unconditionally.
3983 (rep_bytes_by_first_byte): Deleted unconditionally.
3984 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3985 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3986 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3987 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3988 (CHAR_FIELD2): Deleted.
3989 (CHAR_FIELD3): Deleted.
3990 (MAKE_CHAR): Delete definition for non-UTF-2000.
3991 (BREAKUP_CHAR_1_UNSAFE): Deleted.
3992 (breakup_char_1): New implementation.
3993 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3994 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3996 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3998 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4001 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4003 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4004 (CHARSET_PRIVATE_P): Likewise.
4005 (XCHARSET_PRIVATE_P): Likewise.
4006 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4008 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4010 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4012 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4014 * character.h (LEADING_BYTE_*): Changed in UTF2000.
4015 (NUM_LEADING_BYTES): Changed from 128 to 256.
4016 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4017 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4019 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4021 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4023 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4024 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4025 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4026 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4027 (Qchinese_cns11643_3): New variable in UTF2000.
4028 (Qchinese_cns11643_4): New variable in UTF2000.
4029 (Qchinese_cns11643_5): New variable in UTF2000.
4030 (Qchinese_cns11643_6): New variable in UTF2000.
4031 (Qchinese_cns11643_7): New variable in UTF2000.
4032 (syms_of_mule_charset): Define `chinese-cns11643-3',
4033 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4034 and `chinese-cns11643-7' in UTF2000.
4035 (vars_of_mule_charset): Initialize
4036 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4038 (complex_vars_of_mule_charset): Setup charset
4039 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4040 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4042 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4044 * mule-charset.c: Move setting for `leading-code-private-11' from
4045 `syms_of_mule_charset' to `vars_of_mule_charset'.
4047 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4049 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4050 and `NUM_LEADING_BYTES' in assert.
4052 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4054 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4056 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4057 `NUM_LEADING_BYTES' instead of 128.
4059 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
4061 * mule-charset.h (charset_by_leading_byte): Use
4062 `NUM_LEADING_BYTES' instead of 128.
4063 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4065 * mule-charset.c (charset_by_leading_byte): Use
4066 `NUM_LEADING_BYTES' instead of 128.
4067 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4069 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4072 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4074 * mule-charset.c (syms_of_mule_charset): Update to
4077 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4079 * file-coding.c (encode_coding_sjis): New implementation for
4080 UTF2000. (decode_coding_sjis): Ditto.
4082 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4084 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4085 Don't define in UTF2000.
4087 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4090 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4091 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4094 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4096 * config.h.in (CHAR_IS_UCS4): New macro.
4098 * mule-charset.c (rep_bytes_by_first_byte): Modify for
4099 conventional MULE representation.
4100 (syms_of_mule_charset): Update to 0.3 (Imamiya).
4102 * mule-charset.h: Reverted to original.
4104 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4105 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4106 "mule-charset.h" if CHAR_IS_UCS4 is defined.
4108 * character.h: New file.
4110 * file-coding.c (Fmake_coding_system): Set 1 to
4111 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4113 (encode_coding_no_conversion): New implementation for UTF2000.
4115 * file-coding.h (struct Lisp_Coding_System): Add new member
4118 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
4120 * file-coding.c (decode_coding_iso2022): Code-point arguments of
4121 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4122 (encode_coding_iso2022): New implementation for UTF2000.
4124 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4126 * mule-canna.c (c2mu): New implementation for UTF2000.
4129 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4131 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4133 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4135 * file-coding.c (reset_encoding_stream): Set 0 to
4136 `str->iso2022.current_char_boundary' in UTF2000.
4137 (encode_utf8): Don't define in UTF2000.
4138 (encode_coding_utf8): New implementation for UTF-8 representation
4140 (complex_vars_of_file_coding): Define coding-system `utf-8'.
4142 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4144 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4146 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4148 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4150 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4152 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4153 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4154 as UTF-8 in UTF2000.
4155 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4156 (non_ascii_valid_char_p): Don't define in UTF2000.
4157 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4158 (Lstream_get_emchar_1): Likewise.
4159 (utf-2000-version): New variable in UTF2000.
4161 * lread.c (read_escape): Add new reader `u'.
4163 * insdel.c (three_to_one_table): Don't define in UTF2000.
4164 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4165 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4167 (bytind_to_bufpos_func): Likewise.
4168 (buffer_mule_signal_inserted_region): Likewise.
4169 (vars_of_insdel): Don't initialize `three_to_one_table'.
4170 (init_buffer_text): Use `buf->text->mule_size' instead of
4171 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4174 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4175 UTF-8 representation in UTF2000.
4176 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4177 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4178 (decode_coding_iso2022): Don't define local variable `lb' in
4179 UTF2000; don't use LEADING_BYTE in UTF2000; use
4180 `DECODE_ADD_UCS_CHAR' in UTF2000.
4181 (convert_to_external_format): Decode as UTF-8 in UTF2000.
4183 * config.h.in (UTF2000): New macro.
4185 * buffer.h (struct buffer_text): Add new member `mule_size' and
4186 don't add `mule_shifter' and `mule_three_p' in UTF2000.
4187 (valid_char_p): Return always 1 in UTF2000.
4188 (MAX_EMCHAR_LEN): 6 in UTF2000.
4189 (three_to_one_table): Don't define in UTF2000.
4190 (real_bufpos_to_bytind): Modify for UTF-8 representation in
4192 (real_bytind_to_bufpos): Likewise.
4194 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4196 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4198 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4199 representation change.
4200 (Vutf_2000_version): New variable.
4201 (leading_code_private_11): New variable.
4202 (syms_of_mule_charset): Add new variables `utf-2000-version' and
4203 `leading-code-private-11'.
4205 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4206 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4207 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4208 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4209 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4210 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4211 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4212 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4213 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4214 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4215 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4216 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4217 (MIN_CHAR_GREEK): New macro.
4218 (MAX_CHAR_GREEK): New macro.
4219 (MIN_CHAR_CYRILLIC): New macro.
4220 (MAX_CHAR_CYRILLIC): New macro.
4221 (MIN_CHAR_HEBREW): New macro.
4222 (MAX_CHAR_HEBREW): New macro.
4223 (MIN_CHAR_THAI): New macro.
4224 (MAX_CHAR_THAI): New macro.
4225 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4226 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4227 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4228 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4229 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4230 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4231 (CHAR_FIELD2): New inline function.
4232 (CHAR_FIELD3): New inline function.
4233 (MULE_CHAR_PRIVATE_OFFSET): New macro.
4234 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4235 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4236 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4237 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4238 (MIN_CHAR_COMPOSITION): Likewise.
4239 (CHAR_LEADING_BYTE): Modified for character representation change.
4240 (MAKE_CHAR): Likewise.
4242 * lisp.h (Vcharset_latin_iso8859_1): New variable.
4243 (Vcharset_greek_iso8859_7): Likewise.
4244 (Vcharset_cyrillic_iso8859_5): Likewise.
4245 (Vcharset_hebrew_iso8859_8): Likewise.
4246 (Vcharset_thai_tis620): Likewise.
4247 (Vcharset_katakana_jisx0201): Likewise.
4249 2001-02-08 Martin Buchholz <martin@xemacs.org>
4251 * XEmacs 21.2.44 "Thalia" is released.
4253 2001-02-06 Martin Buchholz <martin@xemacs.org>
4255 Fixes crashes in kill-emacs on some systems.
4256 * process-unix.c (unix_kill_child_process):
4257 It's OK for kill() to fail with ESRCH.
4259 2001-02-07 Martin Buchholz <martin@xemacs.org>
4261 Contortions to make .gdbinit tricks work on most systems.
4262 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4263 * alloc.c (dbg_valmask): Make non-const.
4264 * alloc.c (dbg_typemask): Make non-const.
4265 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4266 * alloc.c (dbg_valbits): Make non-const.
4267 * alloc.c (dbg_gctypebits): Make non-const.
4268 * .gdbinit (decode_object): Make it work with AIX cc.
4270 2001-02-06 Martin Buchholz <martin@xemacs.org>
4272 * elhash.c (make_general_lisp_hash_table):
4273 Use simpler and more efficient calloc to clear entries.
4275 2001-02-07 Martin Buchholz <martin@xemacs.org>
4277 * window.c (window_scroll): Work around an AIX C compiler bug.
4278 Fixes 'scroll-up' does nothing problem with xlC.
4280 2001-02-05 Martin Buchholz <martin@xemacs.org>
4282 * .gdbinit: Remove obsolete comment.
4284 2001-01-31 Mike Alexander <mta@arbortext.com>
4286 * select.c (Fown_selection_internal): Set owned_p for device
4289 2001-02-01 Martin Buchholz <martin@xemacs.org>
4292 "not" cannot be used as a macro name as it is an operator in C++
4293 * config.h.in: Stop #defining `not'.
4294 * chartab.c (check_category_char): not ==> not_p
4295 * chartab.h: Likewise.
4296 * regex.c (re_match_2_internal): Likewise.
4298 2001-02-02 Martin Buchholz <martin@xemacs.org>
4300 * lisp-disunion.h: Fix up comments.
4302 2001-01-31 Martin Buchholz <martin@xemacs.org>
4304 * keymap.c (define_key_check_and_coerce_keysym):
4306 Support mouse-6 and mouse-7 bindings in the obvious way.
4308 2001-02-01 Martin Buchholz <martin@xemacs.org>
4310 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4312 2001-01-30 Martin Buchholz <martin@xemacs.org>
4314 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4315 Previous patch missed DEFVAR_INT_MAGIC.
4316 Make sure future DEFVAR_foo use correct types.
4317 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4318 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4319 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4320 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4321 * (DEFVAR_INT): Likewise.
4322 * redisplay.c (vertical_clip): Should be of type Fixnum.
4323 * redisplay.c (horizontal_clip): Likewise.
4324 * lisp.h (dump_add_opaque_int): New.
4325 (dump_add_opaque_fixnum): New.
4327 2001-01-29 Andy Piper <andy@xemacs.org>
4329 * glyphs-widget.c (check_valid_int_or_function): allow symbols
4330 since they can be eval'ed
4332 2001-01-29 Martin Buchholz <martin@xemacs.org>
4334 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4335 Oops, XEmacs redefines `class'. Use `typename' instead.
4337 2001-01-28 Martin Buchholz <martin@xemacs.org>
4339 * dumper.c: Fix C++ compile errors.
4341 2001-01-29 Martin Buchholz <martin@xemacs.org>
4343 * tparam.c: Use correct prototypes.
4345 2001-01-28 Martin Buchholz <martin@xemacs.org>
4347 * sysproc.h: #include util.h for NetBSD's openpty.
4349 2001-01-27 Martin Buchholz <martin@xemacs.org>
4351 More 64-bit correctness.
4352 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4353 Use a typedef `fixnum' for the type used for DEFVAR_INT.
4355 This finally finishes the 64-bit SGI port.
4356 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4357 * symbols.c: Fix up comments and type casts.
4358 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4359 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4360 * symeval.h (Fixnum): New type.
4361 * symeval.h (symbol_value_type): Fix up comment.
4377 * mule-canna.c: A million DEFVAR_INTs here...
4378 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4391 s/int/Fixnum/g in DEFVAR_INT declarations.
4393 2001-01-26 Martin Buchholz <martin@xemacs.org>
4395 Port pdump to SGI alignment-sensitive environment.
4396 Lisp Object sizeof methods now return aligned sizes. Rely on that.
4397 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4399 Define and use aligned reading and writing macros.
4400 Use buffered stdio instead of posix i/o for faster dumping.
4401 Eliminate kludgy 256 byte space for header.
4402 Read and write from dump file using structs for alignment safety.
4403 * dumper.c (pdump_align_stream): New.
4404 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4405 * dumper.c (PDUMP_READ_ALIGNED): New.
4406 * dumper.c (PDUMP_WRITE_ALIGNED): New.
4407 * dumper.c (pdump_static_Lisp_Object): New struct.
4408 * dumper.c (pdump_static_pointer): New struct.
4409 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4410 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4411 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4412 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4414 * dumper.c (pdump_backtrace):
4415 * dumper.c (pdump_get_indirect_count):
4416 * dumper.c (pdump_register_object):
4417 * dumper.c (pdump_register_struct):
4418 * dumper.c (pdump_reloc_one):
4419 * dumper.c (pdump_scan_by_alignment):
4420 * dumper.c (pdump_dump_from_root_struct_ptrs):
4421 * dumper.c (pdump_dump_opaques):
4422 * dumper.c (pdump_dump_rtables):
4423 * dumper.c (pdump_dump_from_root_objects):
4425 * dumper.c (pdump_load_finish):
4426 Use aligned reading and writing.
4428 * dumper.c (pdump_free): Make static.
4429 * dumper.c (pdump_hFile): Likewise.
4430 * dumper.c (pdump_hMap): Likewise.
4432 2001-01-26 Martin Buchholz <martin@xemacs.org>
4434 * XEmacs 21.2.43 "Terspichore" is released.
4436 2001-01-25 Martin Buchholz <martin@xemacs.org>
4438 Type fiddling for window_config.saved_windows_count
4439 * window.c (struct window_config):
4440 Make saved_windows_count member unsigned.
4441 * window.c (sizeof_window_config_for_n_windows):
4442 Make parameter unsigned.
4443 * window.c (mark_window_config):
4444 * window.c (window_config_equal):
4445 * window.c (free_window_configuration):
4446 * window.c (Fset_window_configuration):
4447 * window.c (count_windows):
4448 * window.c (Fcurrent_window_configuration):
4449 * window.c (reinit_vars_of_window):
4450 Update all callers and users.
4452 2001-01-25 Martin Buchholz <martin@xemacs.org>
4454 Alignment correctness for flexible arrays.
4455 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4456 Make alignment-correct. Add interesting comments.
4457 * alloc.c (size_vector):
4458 * alloc.c (make_vector_internal):
4459 * alloc.c (make_bit_vector_internal):
4460 * alloc.c (sweep_bit_vectors_1):
4461 * fns.c (size_bit_vector):
4462 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4463 * window.c (sizeof_window_config_for_n_windows):
4464 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4466 2001-01-24 Martin Buchholz <martin@xemacs.org>
4468 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4470 2001-01-23 Andy Piper <andy@xemacs.org>
4472 * select.c (Fown_selection_internal): pass owned_p
4474 * select-msw.c (mswindows_own_selection): New Signature.
4476 * console.h (struct console_methods): add owned_p to
4479 * select-x.c (x_own_selection): pass owned_p
4480 (hack_motif_clipboard_selection): use owned_p
4481 (vars_of_select_x): new variable -
4482 x_selection_strict_motif_ownership.
4484 2001-01-23 Martin Buchholz <martin@xemacs.org>
4486 * specifier.h (specifier_data_offset): Remove pointless parens.
4487 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4489 2001-01-24 Martin Buchholz <martin@xemacs.org>
4491 Make Lisp_Object sizeof methods be alignment-correct.
4492 pdump must restore objects to the same alignment as the C compiler
4493 assumes. It really matters on SGIs.
4494 * lstream.c (aligned_sizeof_lstream): New.
4495 (sizeof_lstream): Use aligned_sizeof_lstream.
4496 (Lstream_new): Likewise.
4497 * opaque.c (aligned_sizeof_opaque): New.
4498 (sizeof_opaque): Use aligned_sizeof_opaque.
4499 (make_opaque): Likewise.
4500 * specifier.c (aligned_sizeof_specifier): New.
4501 (sizeof_specifier): Use aligned_sizeof_specifier.
4502 (make_specifier_internal): Likewise.
4504 2001-01-23 Martin Buchholz <martin@xemacs.org>
4506 * lstream.h (struct lstream): Use max_align_t for trailing data.
4507 * specifier.h (struct Lisp_Specifier): Likewise.
4509 2001-01-22 Martin Buchholz <martin@xemacs.org>
4511 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4512 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4513 (CCL_SUSPEND): Likewise.
4514 (CCL_INVALID_CMD): Likewise.
4515 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4516 (ccl_driver): Likewise.
4517 (CCL_WRITE_CHAR): Macro hygiene.
4518 (CCL_WRITE_STRING): Macro hygiene.
4520 2001-01-22 Martin Buchholz <martin@xemacs.org>
4522 Port "portable" dumper to SunOS 4 and HP-UX.
4523 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4524 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4525 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4527 2001-01-22 Martin Buchholz <martin@xemacs.org>
4529 * lisp.h (ALIGNOF): A better definition for C++.
4531 2001-01-20 Martin Buchholz <martin@xemacs.org>
4534 Fix printf warnings: int format, long int arg.
4535 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4536 (PUSH_FAILURE_POINT): Use correct printf formats.
4537 (POP_FAILURE_POINT): Use correct printf formats.
4538 Use do {...} while (0)
4540 2001-01-20 Martin Buchholz <martin@xemacs.org>
4542 * XEmacs 21.2.42 "Poseidon" is released.
4544 2001-01-20 Martin Buchholz <martin@xemacs.org>
4546 * console-x.h: typo fix du jour. Remove #if 0'ed code.
4548 2001-01-19 Martin Buchholz <martin@xemacs.org>
4550 De-kludgify FIXED_TYPE free list frobbing.
4551 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4552 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4553 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4554 * alloc.c (Lisp_Free): New pseudo lisp object definition.
4555 * alloc.c (LRECORD_FREE_P): New.
4556 * alloc.c (MARK_LRECORD_AS_FREE): New.
4557 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4558 * alloc.c (STRUCT_FREE_P): Deleted.
4559 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4560 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4561 * alloc.c (STRING_CHARS_FREE_P): New.
4562 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4563 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4564 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4565 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4566 * alloc.c (resize_string): Use new definitions.
4567 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4568 * alloc.c (verify_string_chars_integrity): Use new definitions.
4569 * alloc.c (compact_string_chars): Use new definitions.
4570 * alloc.c: Update monster comments.
4571 * lrecord.h (lrecord_type): Add some new lrecord types for
4574 2001-01-18 Martin Buchholz <martin@xemacs.org>
4576 Improve alignment hackery.
4577 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4578 (max_align_t): Moved from opaque.h - general purpose.
4579 (ALIGN_PTR): Use size_t, not long.
4580 * opaque.h (max_align_t): Move to lisp.h.
4582 2001-01-18 Norbert Koch <nk@LF.net>
4584 * gui.h: Fix and add prototypes to fix build problems.
4586 2001-01-18 Martin Buchholz <martin@xemacs.org>
4588 temacs is going away, so `dump-temacs' is now a bad name.
4589 * .dbxrc (dump-temacs): Rename to `dmp'.
4590 * .gdbinit (dump-temacs): Rename to `dmp'.
4592 2001-01-17 Andy Piper <andy@xemacs.org>
4594 * glyphs.c (print_image_instance): comment to make martin happy.
4596 * glyphs-x.c (x_redisplay_widget): update faces after a frame
4599 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4601 (mswindows_tab_control_redisplay): warning suppression.
4603 * glyphs-widget.c (widget_update): re-write to cope with updated
4605 (widget_instantiate): use new gui_item functions.
4606 (tab_control_update): deleted.
4607 (progress_gauge_update): deleted.
4608 (image_instantiator_progress_guage): take out update reference.
4609 (image_instantiator_tree_view): ditto.
4610 (image_instantiator_tab_control): ditto.
4612 * gui.c (widget_gui_parse_item_keywords): new function. Do things
4614 (gui_item_add_keyval_pair): re-write to cope with descriptors and
4615 return whether anything was changed.
4616 (update_gui_item_keywords): as it sounds.
4618 * gui.h: declare widget_gui_parse_item_keywords.
4620 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4621 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4623 2001-01-17 Martin Buchholz <martin@xemacs.org>
4625 * XEmacs 21.2.41 "Polyhymnia" is released.
4627 2001-01-16 Didier Verna <didier@xemacs.org>
4629 * glyphs.c (image_instantiate): don't use fallbacks when
4630 instantiating a face's background pixmap by inheritance.
4632 2001-01-14 Mike Sperber <mike@xemacs.org>
4634 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4635 Conditionalize accordingly.
4637 2001-01-16 Martin Buchholz <martin@xemacs.org>
4639 * dumper.c (pdump_file_get): Fix a compiler warning.
4641 2001-01-15 Martin Buchholz <martin@xemacs.org>
4643 Make Purify happy when pdumping.
4644 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4645 iniitalizing all bits of new lisp object memory.
4646 * symbols.c (Fmake_local_variable): Likewise.
4647 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4648 * symbols.c (Fdefvaralias): Likewise.
4649 * mule-charset.c (vars_of_mule_charset): Likewise.
4651 2001-01-15 Martin Buchholz <martin@xemacs.org>
4652 Add the `-nd' flag when running pre-dump operations under the debugger.
4653 * .dbxrc (run-temacs): Add `-nd'.
4654 * .dbxrc (update-elc): Likewise.
4655 * .dbxrc (dump-temacs): Likewise.
4656 * .gdbinit (run-temacs): Likewise.
4657 * .gdbinit (check-temacs): Likewise.
4658 * .gdbinit (update-elc): Likewise.
4659 * .gdbinit (dump-temacs): Likewise.
4661 2001-01-14 Martin Buchholz <martin@xemacs.org>
4663 Allow building 64-bit executables on AIX with GNU malloc, e.g.
4664 export OBJECT_MODE=64
4665 configure --pdump --use-union-type=no
4666 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4667 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4669 * miscplay.c (sndcnv8U_2mono):
4670 Avoid two uses of `++' in the same expression.
4671 Suppresses a GCC warning.
4673 2001-01-13 Martin Buchholz <martin@xemacs.org>
4675 Make sure future compilers don't miscompile alloc.c.
4677 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4678 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4680 2001-01-12 Martin Buchholz <martin@xemacs.org>
4682 * dumper.c: A little post-pdump-rename comment fixup.
4684 2001-01-09 Jerry James <james@eecs.ku.edu>
4686 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4688 2001-01-13 Martin Buchholz <martin@xemacs.org>
4690 * *.[ch]: Globally rename symbols using the following `pdump-rename'
4694 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4697 replace_symbol pdump_wire_lists pdump_weak_object_chains
4698 replace_symbol pdump_wire_list dump_add_weak_object_chain
4700 replace_symbol pdump_wires pdump_root_objects
4701 replace_symbol pdump_wire dump_add_root_object
4703 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4704 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4706 replace_symbol dumpstructinfos pdump_root_struct_ptrs
4707 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4708 replace_symbol dumpstructinfo pdump_root_struct_ptr
4709 replace_symbol dumpstruct dump_add_root_struct_ptr
4711 replace_symbol dumpopaque dump_add_opaque
4712 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4713 replace_symbol dumpopaqueinfos pdump_opaques
4714 replace_symbol dumpopaqueinfo pdump_opaque
4716 replace_symbol nb_structdump nb_root_struct_ptrs
4717 replace_symbol nb_opaquedump nb_opaques
4719 replace_symbol align_table pdump_align_table
4720 replace_symbol dump_header pdump_header
4722 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4723 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4726 2001-01-12 Martin Buchholz <martin@xemacs.org>
4728 * s/aix4.h: Keep the C for AIX compiler from overaggressively
4729 optimizing bytecount_to_charcount().
4731 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4734 (HAVE_DLFCN_H): Removed.
4735 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4737 2001-01-06 Martin Buchholz <martin@xemacs.org>
4739 Portable dumper maintainability improvements.
4740 * alloc.c (staticpro):
4741 * alloc.c (staticpro_nodump):
4742 * alloc.c (garbage_collect_1):
4743 * alloc.c (reinit_alloc_once_early):
4744 * alloc.c (init_alloc_once_early):
4745 * alloc.c: Move dumper functions to alloc.c.
4746 * dumper.c (pdump_backtrace):
4747 * dumper.c (pdump_dump_structs):
4748 * dumper.c (pdump_dump_opaques):
4749 * dumper.c (pdump_dump_rtables):
4750 * dumper.c (pdump_dump_wired):
4752 * dumper.c (pdump_load_check):
4753 * dumper.c (pdump_load_finish):
4754 * dumper.c (pdump_file_unmap):
4755 * dumper.c (pdump_file_get):
4756 * dumper.c (pdump_resource_free):
4757 * dumper.c (pdump_resource_get):
4758 * dumper.c (pdump_file_free):
4759 * dumper.c (pdump_file_try):
4760 * dumper.c (pdump_load):
4761 Remove fixed size limits on staticpro(), staticpro_nodump(),
4762 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4763 Remove custom code for dumping lrecord_implementations_table - use
4765 Remove (most of the) custom code for dumping staticpros - dump it
4766 like any other dynarr.
4768 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
4769 * dumper.c: Moved functions from alloc.c.
4770 * alloc.c (dumpstruct): Moved to dumper.c.
4771 * alloc.c (dumpopaque): Likewise.
4772 * alloc.c (pdump_wire): Likewise.
4773 * alloc.c (pdump_wire_list): Likewise.
4775 * lisp.h (Dynarr_sizeof): New.
4776 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
4777 * lisp.h (Dynarr_end): New. Very slightly C++oid.
4778 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
4780 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4781 * lisp.h (dumpopaque): ditto.
4782 * lisp.h (pdump_wire): ditto.
4783 * lisp.h (pdump_wire_list): ditto.
4785 2001-01-09 Martin Buchholz <martin@xemacs.org>
4787 * make-src-depend (PrintPatternDeps):
4788 Use `sort' to make output independent of perl version.
4790 2001-01-08 Martin Buchholz <martin@xemacs.org>
4793 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4794 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4796 2001-01-03 Didier Verna <didier@xemacs.org>
4798 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4799 that `focus_frame' is alive before thinking of calling
4800 `redisplay_redraw_cursor' on it.
4802 2001-01-08 Martin Buchholz <martin@xemacs.org>
4804 * XEmacs 21.2.40 is released.
4806 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4808 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4810 2001-01-06 Martin Buchholz <martin@xemacs.org>
4812 * alloc.c (dbg_valmask): Make const.
4813 * alloc.c (dbg_typemask): Make const.
4814 * alloc.c (dbg_USE_UNION_TYPE): Make const.
4815 * alloc.c (dbg_valbits): Make const.
4816 * alloc.c (dbg_gctypebits): Make const.
4818 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
4820 * redisplay-x.c (x_bevel_area):
4821 redisplay.h (struct rune):
4822 Typo fixes in comments.
4824 2001-01-05 Andy Piper <andy@xemacs.org>
4826 * glyphs-x.c (x_redisplay_widget): use size changed for offset
4829 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4831 2001-01-05 Martin Buchholz <martin@xemacs.org>
4833 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4835 * mule-ccl.c (stack_idx_of_map_multiple):
4836 Non const global data must not be initialized!
4837 Found by MIYASHITA Hisashi.
4839 2001-01-02 Andy Piper <andy@xemacs.org>
4841 * frame.c (change_frame_size): make sure frame size is always
4844 * glyphs.c (image_instance_layout): minor code reuse.
4846 * window.c (Fcurrent_window_configuration): revert previous
4849 2001-01-02 Martin Buchholz <martin@xemacs.org>
4852 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4854 2000-12-31 Andy Piper <andy@xemacs.org>
4856 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4857 when widget gets unmapped.
4859 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4860 function. Make sure widgets losing focus don't just drop it.
4861 (handle_focus_event_1): record the widget with focus.
4863 2000-12-31 Andy Piper <andy@xemacs.org>
4865 * window.c (allocate_window): use
4866 make_image_instance_cache_hash_table.
4867 (make_dummy_parent): ditto.
4868 (Fset_window_configuration): ditto.
4870 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
4872 * glyphs.c (process_image_string_instantiator): use
4874 (get_image_instantiator_governing_domain): ditto.
4875 (normalize_image_instantiator): ditto.
4876 (instantiate_image_instantiator): ditto.
4877 (make_image_instance_1): ditto.
4878 (image_instantiate): ditto. Key on glyph *and* instantiator type.
4879 (instantiator_eq_equal): new function for use with instance hash
4881 (instantiator_eq_hash): ditto.
4882 (make_image_instance_cache_hash_table): create a suitable hash
4883 table for storing image instances.
4885 * elhash.h (hash_table_weakness): new internal weakness type
4886 HASH_TABLE_KEY_CAR_VALUE_WEAK.
4887 declare new functions.
4889 * elhash.c (finish_marking_weak_hash_tables): introduce yet
4890 another weakness type for glyphs.
4891 (make_standard_lisp_hash_table): new function split out from
4892 make_general_lisp_hash_table.
4893 (make_lisp_hash_table): call make_standard_lisp_hash_table.
4894 (hash_table_instantiate): ditto.
4895 (Fmake_hash_table): ditto.
4897 2000-12-31 Martin Buchholz <martin@xemacs.org>
4899 * XEmacs 21.2.39 is released.
4901 2000-12-29 Andy Piper <andy@xemacs.org>
4903 * menubar.c (menubar_visible_p_changed): signal the frame changed.
4905 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4906 the frame has changed so that we pick up geometry changes such as
4909 2000-12-28 Andy Piper <andy@xemacs.org>
4911 * lastfile.c (my_ebss): make a char array so we can pad the
4912 bss. Fixes cygwin unexec.
4914 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4916 2000-12-26 Andy Piper <andy@xemacs.org>
4918 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4919 comments and try and be more precise about a non-/SIGIO world.
4920 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4923 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4924 we don't normalize to zero width or height.
4926 2000-12-24 Andy Piper <andy@xemacs.org>
4928 * Makefile.in.in (ldflags): add -mwindows when appropriate.
4930 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
4932 * s/sco5.h: SCO 5 has pty support.
4934 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
4936 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4937 input-method-xlib.c contains whole contents of input-method-xfs.c,
4938 so we can use input-method-xlib.c's code for USE_XFONTSET
4940 * input-method-xfs.c: removed.
4942 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
4944 * file-coding.h (enum coding_category_type): reorder enumerators to
4945 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
4946 (now one greater than largest real coding_category_type enumerator).
4947 * file-coding.c (coding_category_symbol, coding_category_by_priority,
4948 coding_category_system, fcd_descriptihon_1, decode_coding_category,
4949 Fcoding_category_list, Fset_coding_priority_list,
4950 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4951 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4953 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4955 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4956 * redisplay-output.c (redisplay_output_window): Clear top of window
4957 when face is changed.
4958 * redisplay-x.c (x_redraw_exposed_window): Call
4959 redisplay_clear_top_of_window.
4960 * redisplay.h: Publish redisplay_clear_top_of_window.
4962 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4964 * buffer.c (Fkill_buffer): Map over all devices.
4965 * window.c (window_loop): Remove UNSHOW_BUFFER code.
4966 (list_windows): New function.
4967 (list_all_windows): Ditto.
4968 (Freplace_buffer_in_windows): Use them.
4970 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4972 * database.c (berkdb_subtype): Recognize new subtype `queue'.
4973 (Fopen_database): Use `db_create' instead of `db_open'.
4974 (syms_of_database): Initialize Qqueue.
4976 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4978 * buffer.c (common_init_complex_vars_of_buffer): Initialize
4979 buffer_local_face_property.
4980 * buffer.h (struct buffer): New member buffer_local_face_property.
4981 * window.c (Fset_window_buffer): Mark window's face as changed
4982 when buffer has buffer local face.
4983 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4984 * objects.c (color_after_change): Set buffer_local_face_property
4985 when locale of face specifier is buffer.
4986 * objects.c (font_after_change): Ditto.
4987 * objects.c (face_boolean_after_change): Ditto.
4988 * glyphs.c (image_after_change): Ditto.
4990 2000-12-09 Dan Holmsand <dan@eyebee.com>
4992 * nt.c (mswindows_fstat): Report file permissions, volume serial
4993 number, etc. Code adapted from FSF Emacs 20.7.
4995 2000-12-09 Dan Holmsand <dan@eyebee.com>
4997 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4998 of stat when we don't have symbolic links, to make sure
4999 mswindows_stat is called on mswindows.
5001 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
5003 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
5005 2000-12-12 Martin Buchholz <martin@xemacs.org>
5007 * doprnt.c (emacs_doprnt_1): More printing fixes.
5008 Make printing of numbers compatible with libc and FSF Emacs.
5009 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
5010 Use the system printf to do most of the hard work of formatting,
5011 instead of doprnt_1().
5012 Calculate memory to allocate for format string.
5013 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
5014 (doprnt_1): Cleaner code and documentation.
5016 2000-12-01 Jerry James <james@eecs.ukans.edu>
5018 * Makefile.in.in: Use the loop variable to install headers.
5020 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
5022 * window.c (Fsplit_window): Don't invalidate face cache.
5024 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
5026 * minibuf.c (Fall_completions): Undo the previous change
5027 which removed checking elements start with space.
5029 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
5031 * mule-canna.c: Didier suppression.
5033 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
5035 * mule-canna.c: rename static unsigned char buf[] to key_buffer
5036 (warning suppression). Add English comment translations.
5038 2000-12-05 Martin Buchholz <martin@xemacs.org>
5040 * unexelfsgi.c (unexec): Better test for mmap failure.
5042 2000-12-05 Martin Buchholz <martin@xemacs.org>
5044 * XEmacs 21.2.38 is released.
5046 2000-12-05 Martin Buchholz <martin@xemacs.org>
5048 * redisplay.c (bar-cursor): Make a user variable.
5050 * symsinit.h: Add init_postgresql_from_environment.
5052 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
5054 * regex.c: Convert to clean C.
5056 2000-12-05 Dan Holmsand <dan@eyebee.com>
5059 Don't #include sysfile.h. Revert to duplicating PATH_MAX
5061 (sys_readlink): renamed to system_readlink to avoid conflict with
5062 the other sys_readlink.
5064 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
5066 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
5068 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
5070 * postgresql.c (init_postgresql_from_environment): new function.
5071 (vars_of_postgresql): Move code initializing Lisp variables out and
5072 into init_postgresql_from_environment.
5073 emacs.c (main_1): Call init_postgresql_from_environment if and only
5074 if running a dumped XEmacs.
5076 2000-08-31 Dan Holmsand <dan@eyebee.com>
5078 * buffer.c: Make find-file-compare-truenames default to true on
5081 * realpath.c (win32_abs_start):
5083 (win32_readlink): New functions.
5084 (xrealpath): Return really real filenames on windows.
5086 * fileio.c (Ffile_truename): Make file-truename work on windows.
5088 2000-11-29 Didier Verna <didier@xemacs.org>
5090 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
5091 * faces.c (update_face_cachel_data): use it.
5092 * faces.c (add_face_cachel): use it. Complete background pixmap
5093 frobbing in face cache if `update_face_cachel_data' has not done so.
5095 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
5097 * search.c (string_match_1): Don't set last_thing_searched
5100 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
5102 * buffer.c: Include casetab.h
5103 (common_init_complex_vars_of_buffer): Use new case-table object.
5104 * buffer.h: Include casetab.h
5105 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5106 (DOWNCASE_TABLE_OF): Ditto.
5107 * bufslots.h: Remove char-tables and add case-table.
5108 * casetab.c: Include casetab.h
5109 (CASE_TABLE_P): Removed.
5110 (mark_case_table): New function.
5111 (allocate_case_table): New function.
5112 (Fcase_table_p): Use new case-table.
5113 (case_table_char): New function.
5114 (Fget_case_table): Ditto.
5115 (Fput_case_table): Ditto.
5116 (Fput_case_table_pair): Ditto.
5117 (Fcopy_case_table): Ditto.
5118 (Fcurrent_case_table): Return case-table.
5119 (Fstandard_case_table): Return case-table.
5120 (Fset_case_table): Fix doc-string.
5121 (set_case_table): Use case-table
5122 (syms_of_casetab): DEFSUBR new functions.
5123 (complex_vars_of_casetab): Set up standard case-table.
5124 * casetab.h: New file.
5125 * editfns.c: Include casetab.h
5126 (Fcompare_buffer_substrings): Use case-table.
5127 * inline.c: Include casetab.h
5128 * lisp.h: Remove bogus extern.
5129 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5130 * search.c: Include casetab.h
5131 (TRANSLATE_ASCII): Removed.
5132 (TRANSLATE): Unconditionally translate character.
5133 (looking_at_1): Use case-table.
5134 (string_match_1): Ditto.
5135 (fast_string_match): Ditto.
5136 (search_command): Ditto.
5137 (search_buffer): Separate boyer_moore. Check whether
5138 boyer_moore is possible.
5139 (simple_search): New function.
5140 (boyer_moore): Separated from search_buffer. Translate char.
5142 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
5144 * regex.c (RE_TR_ASCII): Removed.
5145 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5146 (PATFETCH): Call PATFETCH_RAW.
5147 (PATFETCH_RAW): Fetch Emchar.
5148 (PATUNFETCH): Decrement charptr.
5149 (GET_BUFFER_SPACE): Rename b to buf_end.
5151 (BUF_PUSH_2): Ditto.
5152 (BUF_PUSH_3): Ditto.
5153 (EXTEND_BUFFER): Ditto.
5154 (SET_LIST_BIT): Ditto.
5155 (regex_compile): Ditto. Translate non ASCII char.
5156 (compile_range): Ditto.
5157 (re_search_2): Ditto.
5158 (re_match_2_internal): Compare Emchar.
5159 (bcmp_translate): Ditto.
5161 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
5163 * lisp.h (basic char/int typedefs): comment improvement.
5165 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
5167 * emacs.c (main_1): unconditional pdump unstomping; don't save and
5168 unstomp inhibit_site_lisp. Improve comments.
5170 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
5172 * mule-charset.c (Fcharset_property): improve type checking, comments.
5174 2000-11-28 Andy Piper <andy@xemacs.org>
5176 * redisplay-output.c (redisplay_output_subwindow): make sure we do
5177 clipped display for windows in the gutter also.
5178 (redisplay_display_boxes_in_window_p): change semantics of return
5179 codes to be more intuitive.
5181 * gutter.h: declare display_boxes_in_gutter_p.
5183 * gutter.c (display_boxes_in_gutter_p): new function for
5186 2000-11-22 Andy Piper <andy@xemacs.org>
5188 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5191 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
5193 * callproc.c (Fold_call_process_internal):
5194 * gpm.c (Freceive_gpm_event):
5195 (tty_get_foreign_selection): Might be just warning supression.
5196 * fileio.c (Fwrite_region_internal):
5197 (Fset_visited_file_modtime):
5198 * keymap.c (event_matches_key_specifier_p):
5199 Initialize GCPROed variable.
5201 * menubar-x.c (command_builder_find_menu_accelerator):
5202 Initialize before use.
5204 2000-11-23 Andy Piper <andy@xemacs.org>
5206 * unexcw.c (unexec): make the resulting executable executable.
5208 2000-11-21 Martin Buchholz <martin@xemacs.org>
5210 * doc.c (get_doc_string):
5211 Use size_t, not int, for result of XSTRING_LENGTH.
5213 * cmds.c (Fdelete_char):
5214 * cmds.c (Fpoint_at_eol):
5215 * cmds.c (Fself_insert_command):
5216 Use EMACS_INT, not int, for result of XINT.
5217 Someday, someone will want to insert more than 2**31 identical characters.
5219 * cmds.c (Fdelete_char):
5220 * cmds.c (Fdelete_backward_char):
5221 * syntax.c (Fforward_word):
5222 * syntax.c (Fforward_comment):
5223 Make COUNT argument optional, for consistency with forward-char et al.
5225 2000-11-22 Martin Buchholz <martin@xemacs.org>
5228 * print.c (long_to_string):
5229 Return a useful value: the pointer at end of data written.
5232 Use `static const char * const' for constant strings.
5233 (union printf_arg): Delete `i', `ui' members.
5236 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5237 Do all printf-ing via the `l' specifier.
5238 Use EMACS_INT instead of int.
5241 2000-11-20 Didier Verna <didier@xemacs.org>
5243 * faces.c (update_face_cachel_data): don't frob the background
5244 pixmap when the window is being created. The face is needed but
5247 2000-11-20 Andy Piper <andy@xemacs.org>
5249 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5250 messing with a debug environment.
5252 2000-11-20 Martin Buchholz <martin@xemacs.org>
5254 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5256 2000-11-20 Martin Buchholz <martin@xemacs.org>
5258 * casetab.c (Fcase_table_p): Fix compile error and crash.
5260 2000-11-18 Philip Aston <philipa@mail.com>
5262 * s/cygwin32.h: Cygwin has SVR4-like pty support.
5264 2000-11-18 Martin Buchholz <martin@xemacs.org>
5266 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
5267 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5269 2000-11-17 Martin Buchholz <martin@xemacs.org>
5271 * config.h.in: Define HAVE_ELF_H if elf.h exists.
5272 * unexelf.c: Use HAVE_ELF_H.
5273 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5274 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5275 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5276 Greg Harrington <greg_harrington@hotmail.com> provided a machine
5278 So this is an unexelfsgi.c from a different line of development.
5280 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5282 * regex.c (RE_TR_ASCII): New function.
5283 (RE_TRANSLATE): Call it.
5285 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5287 * buffer.h (TRT_TABLE_OF): Remove assert.
5288 (IN_TRT_TABLE_DOMAIN): Removed.
5290 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
5292 * free-hook.c (log_gcpro):
5293 (show_gcprohist): Add support for GCPRO5.
5295 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
5297 * emacs.c (main_1): Improve -sd error message when --pdump=no.
5299 2000-11-16 Olivier Galibert <galibert@xemacs.org>
5301 * symeval.h: Declare flush_all_buffer_local_cache.
5303 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5304 (flush_buffer_local_cache): Added.
5305 (flush_all_buffer_local_cache): Added.
5307 * lrecord.h: Remove unused XD_LO_RESET_NIL.
5309 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5310 (pdump_dump_data): Ditto.
5311 (pdump_reloc_one): Ditto.
5312 (pdump): Remove unused pdump_qnil. Flush buffer local caches
5316 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5318 * buffer.c: Remove if 0'ed entry.
5319 * buffer.h: Rewrite TRT to use char-table.
5320 * bufslots.h: Remove mirror tables.
5321 * casetab.c: Remove mirror tables.
5322 (CASE_TABLE_P): New macro.
5323 (Fcase_table_p): Element of a case table is string or char-table.
5324 (make_mirror_trt_table): Removed.
5325 (set_case_table): Setup char-table from strings for backward
5327 * dired.c (Fdirectory_files):
5328 * dired-msw.c: (mswindows_get_files):
5329 * lisp.h: Change prototype of re_pattern_buffer.
5330 * regex.c: (RE_TRANSLATE): New macro.
5331 (TRANSLATE_P): Ditto.
5332 Change translate to type RE_TRANSLATE_TYPE.
5333 * regex.h: Define RE_TRANSLATE_TYPE
5334 * search.c (TRANSLATE): New macro.
5335 (TRANSLATE_ASCII): New macro.
5336 Translate table is changed to Lisp_Object.
5337 (signal_failure): Inhibit return.
5339 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5346 Do UNGCPRO before return.
5348 2000-11-14 Martin Buchholz <martin@xemacs.org>
5350 * XEmacs 21.2.37 is released.
5352 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
5354 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5355 Add comments about discarded return value.
5357 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5360 * event-stream.c: Fix comments. Remove some #if 0'ed part.
5362 2000-10-27 Andy Piper <andy@xemacs.org>
5364 * gutter.c (Fset_default_gutter_position): default left and right
5366 (calculate_gutter_size): calculate resonable heuristic for left
5367 and right gutter sizes.
5368 (specifier_vars_of_gutter): change left and right gutter sizes to
5370 (calculate_gutter_size_from_display_lines): new function.
5371 (output_gutter): check for resizing on left and right gutters.
5372 (clear_gutter): don't special case top and left gutters.
5373 (specifier_vars_of_gutter): use new signature for
5374 set_specifier_caching.
5376 * glyphs-x.c (x_redisplay_widget): spelling fix.
5377 * glyphs.c (specifier_vars_of_glyphs):
5378 * menubar.c (specifier_vars_of_menubar):
5379 * redisplay.c (specifier_vars_of_redisplay):
5380 * toolbar.c (specifier_vars_of_toolbar):
5381 * window.c (specifier_vars_of_window):
5382 * scrollbar.c (specifier_vars_of_scrollbar):
5383 (complex_vars_of_scrollbar): use new signature for
5384 set_specifier_caching.
5386 * specifier.c (set_specifier_caching): include recompute flag.
5387 (recompute_one_cached_specifier_in_window): always recompute if
5389 (recompute_one_cached_specifier_in_frame): ditto.
5391 * specifier.h (struct specifier_caching): add recompute flag.
5393 2000-10-24 Andy Piper <andy@xemacs.org>
5395 * unexcw.c (copy_executable_and_dump_data_section): add new
5396 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5399 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5401 * console-x.h (x_device): New member modifier_release_time.
5402 * event-Xt.c (x_handle_sticky_modifiers):
5403 Bound interval modifier keys are sticky.
5404 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5405 * events.h: extern it.
5407 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5409 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5411 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5413 * event-stream.c (execute_command_event): Preserve current_events
5414 and the like when event is misc-user-event.
5415 Inhibit quit during the call to maybe_echo_keys.
5417 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
5419 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5420 symlink when buffer is killed.
5421 (inhibit_clash_detection): New variable.
5423 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5425 * console.c (Fset_input_method): Trigger redisplay on tty.
5427 2000-11-07 Martin Buchholz <martin@xemacs.org>
5429 * process.c (Fprocess_status): Revert to previous behavior:
5430 (process-status "nosuchprocess") ==> nil
5432 2000-11-06 Martin Buchholz <martin@xemacs.org>
5434 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5435 Work around another GCC 2.95.2 optimizer bug.
5437 2000-11-02 Martin Buchholz <martin@xemacs.org>
5439 * process.c (Fget_process): Use LIST_LOOP_2.
5440 (kill_buffer_processes): Use LIST_LOOP_2.
5442 * minibuf.c (Fall_completions):
5443 Delete old non-functional code for FSF fourth argument.
5445 * frame.c (frame_matches_frame_spec):
5446 Renamed from `frame_matches_frametype'. Update all callers.
5447 (device_matches_device_spec):
5448 Renamed from 'device_matches_console_spec'. Update all callers.
5450 * doc.c (Fsubstitute_command_keys):
5451 Remove buffer overflow crash. Small code cleanups.
5453 * casetab.c (check_case_table): Simpler code.
5455 * window.c (Freplace_buffer_in_windows):
5456 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5457 (and similar implementation) as Fdelete_windows_on.
5460 * alloc.c (Fmake_list):
5461 * alloc.c (make_vector):
5462 * alloc.c (Fmake_vector):
5463 * alloc.c (make_bit_vector):
5464 * alloc.c (Fmake_bit_vector):
5465 * alloc.c (Fbit_vector):
5466 * alloc.c (Fmake_string):
5467 * alloc.c (Fpurecopy):
5468 * alloc.c (Fmemory_limit):
5470 * buffer.c (Fget_buffer):
5471 * buffer.c (Fkill_buffer):
5472 * buffer.c (complex_vars_of_buffer):
5473 * bytecode.c (Fcompiled_function_stack_depth):
5474 * callint.c (Fprefix_numeric_value):
5476 * event-stream.c (Fread_key_sequence):
5478 * casetab.c (Fcase_table_p):
5479 * casetab.c (check_case_table):
5480 * casetab.c (Fset_case_table):
5481 * casetab.c (Fset_standard_case_table):
5483 * chartab.c (Fchar_table_type):
5484 * chartab.c (Freset_char_table):
5485 * chartab.c (Fget_char_table):
5486 * chartab.c (Fget_range_char_table):
5487 * chartab.c (Fput_char_table):
5488 * chartab.c (Fmap_char_table):
5489 * chartab.c (Fcategory_table_p):
5490 * chartab.c (Fcheck_category_at):
5491 * chartab.c (Fchar_in_category_p):
5492 * chartab.c (Fcategory_table):
5493 * chartab.c (Fcopy_category_table):
5494 * chartab.c (Fset_category_table):
5495 * chartab.c (Fcategory_designator_p):
5496 * chartab.c (Fcategory_table_value_p):
5497 * cmds.c (Fdelete_char):
5498 * cmds.c (Fdelete_backward_char):
5499 * cmds.c (Fself_insert_command):
5500 * cmds.c (Fself_insert_internal):
5501 * console.c (Fvalid_console_type_p):
5502 * console.c (Fcdfw_console):
5503 * console.c (Fconsole_type):
5504 * console.c (Fconsole_name):
5505 * console.c (Fconsole_device_list):
5506 * console.c (Fconsole_on_window_system_p):
5510 * data.c (Fsubr_interactive):
5511 * data.c (Fchar_to_int):
5512 * data.c (Fint_to_char):
5515 * data.c (Fnumber_to_string):
5516 * data.c (Fstring_to_number):
5518 * database.c (mark_database):
5519 * database.c (finalize_database):
5520 * database.c (Fdatabase_live_p):
5521 * database.c (Fdatabasep):
5522 * device-x.c (Fx_get_resource):
5523 * device.c (Fdfw_device):
5525 * dired.c (Ffile_name_completion):
5526 * dired.c (Ffile_name_all_completions):
5527 * dired.c (Fuser_name_completion):
5528 * dired.c (Fuser_name_completion_1):
5529 * dired.c (Fuser_name_all_completions):
5530 * doc.c (Fdocumentation):
5531 * doc.c (Fdocumentation_property):
5532 * doc.c (Fsubstitute_command_keys):
5534 * editfns.c (Fchar_to_string):
5535 * editfns.c (Fstring_to_char):
5536 * editfns.c (Ftemp_directory):
5537 * editfns.c (Finsert_char):
5538 * editfns.c (Fbuffer_substring_no_properties):
5539 * editfns.c (Fnarrow_to_region):
5540 * editfns.c (Fchar_equal):
5541 * editfns.c (Fchar_Equal):
5542 * editfns.c (Ftranspose_regions):
5543 * emacs.c (Fdump_emacs):
5545 * eval.c (Fcommand_execute):
5546 * eval.c (Fautoload):
5547 * eval.c (Fbacktrace):
5548 * eval.c (Fbacktrace_frame):
5550 * events.c (Fcopy_event):
5551 * events.c (Fcharacter_to_event):
5552 * events.c (Fevent_button):
5553 * events.c (Fevent_process):
5555 * extents.c (Fnext_extent_change):
5556 * extents.c (Fextent_property):
5558 * faces.c (Fmake_face):
5560 * file-coding.c (Fencode_shift_jis_char):
5561 * file-coding.c (Fencode_big5_char):
5562 * fileio.c (Ffile_name_directory):
5563 * fileio.c (Ffile_name_nondirectory):
5564 * fileio.c (Ffile_name_as_directory):
5565 * fileio.c (Fdirectory_file_name):
5566 * fileio.c (Ffile_truename):
5567 * fileio.c (Fsubstitute_in_file_name):
5568 * fileio.c (Ffile_modes):
5569 * fileio.c (Fset_file_modes):
5570 * fileio.c (Fset_default_file_modes):
5571 * fileio.c (Fverify_visited_file_modtime):
5572 * floatfns.c (Facos):
5573 * floatfns.c (Fasin):
5574 * floatfns.c (Fatan):
5575 * floatfns.c (Fcos):
5576 * floatfns.c (Fsin):
5577 * floatfns.c (Ftan):
5578 * floatfns.c (Fbessel_j0):
5579 * floatfns.c (Fbessel_j1):
5580 * floatfns.c (Fbessel_jn):
5581 * floatfns.c (Fbessel_y0):
5582 * floatfns.c (Fbessel_y1):
5583 * floatfns.c (Fbessel_yn):
5584 * floatfns.c (Ferf):
5585 * floatfns.c (Ferfc):
5586 * floatfns.c (Flog_gamma):
5587 * floatfns.c (Fexp):
5588 * floatfns.c (Fexpt):
5589 * floatfns.c (Flog):
5590 * floatfns.c (Flog10):
5591 * floatfns.c (Fsqrt):
5592 * floatfns.c (Fcube_root):
5593 * floatfns.c (Facosh):
5594 * floatfns.c (Fasinh):
5595 * floatfns.c (Fatanh):
5596 * floatfns.c (Fcosh):
5597 * floatfns.c (Fsinh):
5598 * floatfns.c (Ftanh):
5599 * floatfns.c (Fabs):
5600 * floatfns.c (Ffloat):
5601 * floatfns.c (Flogb):
5602 * floatfns.c (Fceiling):
5603 * floatfns.c (Ffloor):
5604 * floatfns.c (Fround):
5605 * floatfns.c (Ftruncate):
5606 * floatfns.c (Ffceiling):
5607 * floatfns.c (Fffloor):
5608 * floatfns.c (Ffround):
5609 * floatfns.c (Fftruncate):
5610 * fns.c (Fstring_equal):
5611 * fns.c (Fstring_lessp):
5616 * fns.c (Fsubstring):
5618 * fns.c (Fold_assoc):
5619 * fns.c (assoc_no_quit):
5621 * fns.c (Fold_assq):
5622 * fns.c (assq_no_quit):
5624 * fns.c (Fold_rassoc):
5626 * fns.c (Fold_rassq):
5627 * fns.c (rassq_no_quit):
5628 * fns.c (Fremassoc):
5629 * fns.c (remassoc_no_quit):
5631 * fns.c (remassq_no_quit):
5632 * fns.c (Fremrassoc):
5633 * fns.c (Fremrassq):
5634 * fns.c (remrassq_no_quit):
5636 * fns.c (Fplist_get):
5637 * fns.c (Fplist_put):
5638 * fns.c (Fplist_remprop):
5639 * fns.c (Fplist_member):
5640 * fns.c (Flax_plist_get):
5641 * fns.c (Flax_plist_put):
5642 * fns.c (Flax_plist_remprop):
5643 * fns.c (Flax_plist_member):
5645 * fns.c (Fold_equal):
5647 * fns.c (Fbase64_encode_region):
5648 * fns.c (Fbase64_encode_string):
5649 * fns.c (Fbase64_decode_region):
5651 * frame.c (frame_matches_frame_spec):
5652 * frame.c (device_matches_device_spec):
5653 * frame.c (next_frame):
5654 * frame.c (previous_frame):
5655 * frame.c (Fnext_frame):
5656 * frame.c (Fprevious_frame):
5657 * frame.c (Fframe_property):
5658 * frame.c (Fset_frame_height):
5659 * frame.c (Fset_frame_size):
5663 * glyphs.c (decode_error_behavior_flag):
5664 * glyphs.c (Fmake_image_instance):
5665 * indent.c (Findent_to):
5666 * intl.c (Fignore_defer_gettext):
5667 * keymap.c (Fkeymapp):
5668 * keymap.c (Flookup_key):
5670 * lread.c (Fload_internal):
5671 * lread.c (Feval_buffer):
5672 * lread.c (Feval_region):
5673 * macros.c (Fexecute_kbd_macro):
5674 * marker.c (set_marker_internal):
5675 * marker.c (Fset_marker):
5676 * marker.c (set_marker_restricted):
5677 * marker.c (Fcopy_marker):
5678 * marker.c (noseeum_copy_marker):
5680 * menubar.c (Fpopup_menu):
5682 * mule-charset.c (Fcharset_name):
5683 * mule-charset.c (Fchar_charset):
5684 * mule-charset.c (Fchar_octet):
5685 * mule-charset.c (Fsplit_char):
5686 * mule-wnnfns.c (Fwnn_open):
5687 * mule-wnnfns.c (Fwnn_dict_comment):
5688 * mule-wnnfns.c (Fwnn_quit_henkan):
5689 * mule-wnnfns.c (Fwnn_word_toroku):
5690 * mule-wnnfns.c (Fwnn_word_sakujo):
5691 * mule-wnnfns.c (Fwnn_word_use):
5692 * mule-wnnfns.c (Fwnn_hindo_set):
5694 * objects.c (Fmake_color_instance):
5695 * objects.c (Fmake_font_instance):
5696 * print.c (Fwrite_char):
5698 * process.c (mark_process):
5699 * process.c (print_process):
5700 * process.c (get_process_from_usid):
5701 * process.c (Fprocessp):
5702 * process.c (Fprocess_live_p):
5703 * process.c (Fget_process):
5704 * process.c (Fget_buffer_process):
5705 * process.c (get_process):
5706 * process.c (Fprocess_id):
5707 * process.c (Fprocess_name):
5708 * process.c (Fprocess_command):
5709 * process.c (init_process_io_handles):
5710 * process.c (start_process_unwind):
5711 * process.c (Fstart_process_internal):
5712 * process.c (Fopen_multicast_group_internal):
5713 * process.c (Fset_process_window_size):
5714 * process.c (read_process_output):
5715 * process.c (send_process):
5716 * process.c (Fprocess_tty_name):
5717 * process.c (Fset_process_buffer):
5718 * process.c (Fprocess_buffer):
5719 * process.c (Fprocess_mark):
5720 * process.c (set_process_filter):
5721 * process.c (Fset_process_filter):
5722 * process.c (Fprocess_filter):
5723 * process.c (Fprocess_send_region):
5724 * process.c (Fprocess_send_string):
5725 * process.c (exec_sentinel):
5726 * process.c (Fset_process_sentinel):
5727 * process.c (Fprocess_sentinel):
5728 * process.c (status_notify):
5729 * process.c (Fprocess_status):
5730 * process.c (Fprocess_exit_status):
5731 * process.c (process_send_signal):
5732 * process.c (Fprocess_send_eof):
5733 * process.c (deactivate_process):
5734 * process.c (remove_process):
5735 * process.c (Fdelete_process):
5736 * process.c (kill_buffer_processes):
5737 * process.c (Fprocess_kill_without_query):
5738 * process.c (Fprocess_kill_without_query_p):
5740 * rangetab.c (Fget_range_table):
5741 * rangetab.c (Fput_range_table):
5742 * rangetab.c (Fremove_range_table):
5743 * rangetab.c (Fclear_range_table):
5745 * search.c (Fskip_chars_forward):
5746 * search.c (Fskip_chars_backward):
5747 * search.c (Fskip_syntax_forward):
5748 * search.c (Fskip_syntax_backward):
5749 * search.c (search_command):
5750 * search.c (Freplace_match):
5751 * search.c (Fregexp_quote):
5752 * select.c (Fown_selection_internal):
5753 * select.c (Fselection_owner_p):
5754 * select.c (Fselection_exists_p):
5755 * select.c (Fget_selection_internal):
5758 * symbols.c (Fintern):
5759 * symbols.c (Fintern_soft):
5760 * symbols.c (Funintern):
5761 * symbols.c (Fapropos_internal):
5762 * symbols.c (Fset_default):
5764 * syntax.c (Fsyntax_table_p):
5765 * syntax.c (Fcopy_syntax_table):
5766 * syntax.c (Fset_syntax_table):
5767 * syntax.c (Fchar_syntax):
5768 * syntax.c (syntax_match):
5769 * syntax.c (Fmatching_paren):
5770 * syntax.c (Fforward_word):
5771 * syntax.c (scan_lists):
5772 * syntax.c (Fscan_lists):
5773 * syntax.c (Fscan_sexps):
5774 * syntax.c (Fparse_partial_sexp):
5775 * toolbar.c (Fcheck_toolbar_button_syntax):
5778 * window.c (Fwindowp):
5779 * window.c (Fwindow_live_p):
5780 * window.c (Fwindow_point):
5781 * window.c (Fdelete_window):
5782 * window.c (Fnext_window):
5783 * window.c (Fprevious_window):
5784 * window.c (Fother_window):
5785 * window.c (window_loop):
5786 * window.c (Fget_lru_window):
5787 * window.c (Fsplit_window):
5788 * window.c (Fenlarge_window):
5789 * window.c (Fenlarge_window_pixels):
5790 * window.c (Fshrink_window):
5791 * window.c (Fshrink_window_pixels):
5792 * window.c (change_window_height):
5793 * window.c (Fwindow_configuration_p):
5794 * window.c (Fcurrent_window_configuration):
5796 * casefiddle.c (casify_object):
5797 * casefiddle.c (Fupcase):
5798 * casefiddle.c (Fdowncase):
5799 * casefiddle.c (Fcapitalize):
5800 * casefiddle.c (Fupcase_initials):
5801 * casefiddle.c (casify_region_internal):
5802 * casefiddle.c (casify_region):
5803 * casefiddle.c (Fupcase_region):
5804 * casefiddle.c (Fdowncase_region):
5805 * casefiddle.c (Fcapitalize_region):
5806 * casefiddle.c (Fupcase_initials_region):
5807 * casefiddle.c (Fupcase_word):
5808 * casefiddle.c (Fdowncase_word):
5809 * casefiddle.c (Fcapitalize_word):
5810 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
5811 Replace 0 with '\0' when working with bytes.
5812 Replace initial "(" with "\(" in docstrings.
5814 2000-11-01 Martin Buchholz <martin@xemacs.org>
5816 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5818 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5820 2000-10-31 Martin Buchholz <martin@xemacs.org>
5822 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
5824 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5826 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5829 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5831 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5832 (inhibit_auto_save_session): New variable.
5833 (vars_of_fileio): Declare and initialize them.
5834 * fileio.c (Fdo_auto_save): Don't create session file if
5835 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5837 2000-10-31 Martin Buchholz <martin@xemacs.org>
5839 * sgiplay.c (play_internal): C++ compilability.
5840 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5841 * callproc.c (Fold_call_process_internal):
5842 Remove unused vars `env', `first'.
5843 * scrollbar.c (update_scrollbar_instance):
5844 #### unused var `current_window'.
5845 * redisplay-tty.c: Put currently unused vars insert_mode_on,
5846 etc. within #ifdef NOT_YET.
5847 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5848 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5849 * specifier.c (specifier_instance):
5850 #### unused var `tag'.
5851 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5853 2000-10-27 Martin Buchholz <martin@xemacs.org>
5856 * fns.c (list_sort):
5857 * fns.c (Ffillarray):
5858 * fns.c (bytecode_nconc2):
5861 * fns.c (Fmapconcat):
5862 Be pedantically 64-bit correct. For the time when someone will
5863 want to have a list with length > 2**32.
5865 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5866 Work around MIPSpro compiler bug.
5868 * process-unix.c (unix_kill_child_process): Add snarky comment.
5869 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
5871 * config.h.in: Oops, _getpt ==> _getpty
5873 2000-10-26 Martin Buchholz <martin@xemacs.org>
5877 Use void*, not char*, as return type of alloca().
5879 * alloc.c (free_marker): Side effect inside assert expression!
5881 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
5883 * mule-charset.c (Fset_charset_ccl_program): To check
5884 if the given ccl program is valid, use setup_ccl_program()
5885 instead of CHECK_VECTOR().
5886 (Fmake_charset): Likewise.
5888 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
5890 * faces.c (get_extent_fragment_face_cache_index):
5891 Fix cachel.merged_faces memory leak.
5893 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
5895 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5896 Reset MSB of octets obtained by DECODE_SJIS
5897 because of the incompatibility with Emacs.
5898 (ccl_driver)<CCL_ENCODE_SJIS>:
5899 Set MSB of octets before passing them to
5900 ENCODE_SJIS because of the incompatibility
5903 2000-10-18 Daiki Ueno <ueno@unixuser.org>
5905 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5906 (DECLARE_LRECORD): Undo the last change.
5907 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5909 2000-10-17 Daiki Ueno <ueno@unixuser.org>
5911 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5912 the implementation to lrecord_implementations_table.
5914 2000-10-14 Daiki Ueno <ueno@unixuser.org>
5916 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5917 initial value of `lrecord_type_##c_name' and
5918 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5919 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5920 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5921 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5922 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5924 2000-10-17 Martin Buchholz <martin@xemacs.org>
5926 * miscplay.c (sndcnv8S_2mono):
5927 (sndcnv2monounsigned):
5928 (sndcnvULaw_2linear):
5930 Remove implementation-defined behavior.
5932 2000-10-12 Martin Buchholz <martin@xemacs.org>
5934 * input-method-xlib.c: Warning suppression.
5936 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
5938 * mule-ccl.c: Sync up with Emacs 21.0.90.
5939 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5941 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5943 (ccl_driver[WriteMultibyteChar2]): Bug fix.
5944 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5945 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5946 leading char belongs to official 2-dimensional charset.
5947 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5948 write the given character as is. Otherwise,
5949 if it is a multibyte char, convert it by
5950 non_ascii_set_charptr_emchar, then write it.
5951 (CCL_WRITE_STRING): Likewise.
5952 (ccl_get_compiled_code): New function.
5953 (setup_ccl_program): When ccl_prog is invalid,
5955 (Fregister_code_conversion_map): New function.
5956 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5958 * mule-ccl.h: Sync up with Emacs 21.0.90.
5959 (Fregister_ccl_program): export it.
5961 * redisplay-msw.c (separate_textual_runs):
5962 If ccl program is not valid, don't do ccl conversion.
5964 * redisplay-x.c (separate_textual_runs): Ditto.
5966 * file-coding.c (Fmake_coding_system):
5967 When type is ccl and value is vector, register it
5968 with a proper symbol. And checks whether the
5969 given ccl program is valid.
5970 (mule_decode): When calling ccl_driver, if src indicates
5971 NULL pointer, set an empty string instead.
5972 (mule_encode): Likewise.
5974 2000-10-11 Martin Buchholz <martin@xemacs.org>
5976 The following large batch of changes gets us back to a state of
5977 C++ compilability. Extbyte is now a char, which means that
5978 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5980 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5982 * sound.c (Fplay_sound): Type correctness.
5984 * select-x.c (hack_motif_clipboard_selection): Type correctness.
5985 (x_get_window_property): Type correctness.
5986 (receive_incremental_selection): unsigned char ==> Extbyte
5987 (selection_data_to_lisp_data): unsigned char ==> Extbyte
5988 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5989 (Fx_store_cutbuffer_internal): Type correctness.
5991 * process-unix.c (try_to_initialize_subtty): Type correctness.
5993 * objects-x.c (x_print_color_instance): Type correctness.
5994 (x_print_font_instance): Type correctness.
5995 (x_list_fonts): SExtbyte ==> Extbyte.
5996 (valid_x_font_name_p): SExtbyte ==> Extbyte.
5997 (x_find_charset_font): SExtbyte ==> Extbyte.
5998 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
5999 (truename_via_XListFonts): SExtbyte ==> Extbyte.
6000 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
6003 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
6004 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
6005 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
6006 (BYTE_C0_P): Use bit ops for char-signedness safety.
6007 (BYTE_C1_P): Use bit ops for char-signedness safety.
6008 (CHARSET_BY_LEADING_BYTE):
6009 (CHARSET_BY_ATTRIBUTES):
6010 Always use inline function.
6011 Use type_checking_assert.
6014 * mule-charset.c (non_ascii_charptr_copy_char):
6015 Modify to work with both ASCII and non-ASCII characters.
6016 Improve docs and variable names.
6017 Replace over-clever fall-through switch with a simple loop.
6018 (Lstream_get_emchar_1):
6019 Replace over-clever fall-through switch with a simple loop.
6021 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6022 Warning suppression.
6024 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
6025 the return value of Lstream_getc, which could be EOF as well.
6027 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
6029 * lisp.h: Make Extbyte a char, not unsigned char, so that external
6030 APIs can be used on Extbytes without casts. Risky!
6034 * input-method-xlib.c (XIM_init_device):
6035 Use Xlib.h instead of IntrinsicP.h.
6036 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
6037 which will break in X11R7.
6038 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
6039 to call XRegisterIMInstantiateCallback with correct types.
6041 * gui-x.c (button_item_to_widget_value): Type correctness.
6043 * glyphs.c (bitmap_to_lisp_data): Type correctness.
6045 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
6046 (xbm_instantiate_1): Type correctness.
6047 (BUILD_GLYPH_INST): Type correctness.
6049 * fileio.c (Fsubstitute_in_file_name): Type correctness.
6052 (decode_coding_sjis):
6053 (decode_coding_big5):
6054 (decode_coding_ucs4):
6055 (decode_coding_utf8):
6056 (decode_coding_iso2022):
6057 (decode_coding_no_conversion):
6058 Make all decoding functions take an Extbyte * arg.
6059 (encode_coding_sjis):
6060 (encode_coding_big5):
6061 (encode_coding_ucs4):
6062 (encode_coding_utf8):
6063 (encode_coding_iso2022):
6064 (encode_coding_no_conversion):
6065 Make all encoding functions take a Bufbyte * arg.
6066 Use size_t instead of unsigned int for memory sizes.
6067 Only cast to unsigned char whenever dereferencing Extbyte *.
6069 * doc.c (unparesseuxify_doc_string): Type correctness.
6071 * console-x.c (split_up_display_spec):
6072 Rewrite without using details of internal string representation.
6073 (x_semi_canonicalize_device_connection): Type correctness.
6076 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
6077 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
6078 (HAVE_XFREE386): Removed.
6080 * buffer.h (DEC_CHARPTR): `const' correctness.
6081 (bufbyte_strcmp): New.
6082 (bufbyte_memcmp): New.
6084 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
6086 * buffer.h (XCHAR_OR_CHAR_INT):
6087 Always use inline function.
6088 Remove redundant type checking assert() - XINT will abort quite nicely.
6090 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6092 * search.c (Freplace_match): Set newtext to an empty string.
6094 2000-10-10 Martin Buchholz <martin@xemacs.org>
6096 * s/decosf1-3.h: Remove #include of stropts.h
6097 * s/ptx.h: Remove #include of stropts.h
6098 * s/usg5-4.h: Remove #include of stropts.h
6101 Use stropts.h, not sys/stropts.h.
6102 Use strtio.h, not sys/strtio.h.
6104 2000-10-04 Martin Buchholz <martin@xemacs.org>
6106 * XEmacs 21.2.36 is released.
6108 2000-09-21 Andy Piper <andy@xemacs.org>
6110 * glyphs-x.c (x_redisplay_widget): make sure non-structural
6111 changes still involve copying the widget tree.
6112 (update_widget_face): make sure a change is register in the widget
6113 tree. Call update_tab_widget_face appropriately.
6114 (update_tab_widget_face): ditto.
6115 (x_tab_control_redisplay): make sure non-structural changes still
6116 involve copying the widget tree.
6118 2000-08-31 Daiki Ueno <ueno@unixuser.org>
6120 * lread.c (locate_file): Check the path element is non-nil.
6122 2000-10-02 Martin Buchholz <martin@xemacs.org>
6124 * lisp.h: Warning suppression for SCO compilers.
6126 * redisplay-tty.c (reset_tty_modes): Fix crash.
6127 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6129 2000-09-27 Martin Buchholz <martin@xemacs.org>
6131 Big signal/process handling overhaul. Bugs fixed:
6132 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6133 M-x comint-kill-subjob should work for both values nil and t of
6134 process-connection-type. It was broken on most platforms.
6135 Testing on Irix and Cygwin still needed. Other plaforms tested.
6136 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
6137 * process-unix.c: Signal/Process handling overhaul.
6138 (pty_name): make 64 bytes, as `expect' does, for paranoia.
6139 (allocate_pty): Use all available modern methods of allocating
6140 ptys, falling back to old style BSD allocation as a last resort.
6141 Use allegedly more secure Unix98 pty allocation by default.
6142 (allocate_pty_the_old_fashioned_way): New. the last resort.
6143 (unix_create_process): Push ptem, ldterm, ttcompat where
6144 available. Autoconfiscate.
6145 (try_to_initialize_subtty): New.
6146 (unix_kill_child_process): Proper signal handling for ptys on most
6147 platforms, using special knowledge of AIX, BSD, etc...
6148 (unix_create_process): Always disconnect_controlling_terminal() for
6149 subprocesses, whether using ptys or not.
6150 * process.h: Remove old getpt-dependent PTY code.
6151 * process.c (Fprocess_send_signal): New, obvious generic function.
6152 (decode_signal): New.
6153 (Finterrupt_process):
6157 (Fcontinue_process):
6158 (Fsignal_process): Use decode_signal.
6159 (process_send_signal):
6160 Many docstring corrections.
6161 Allow any signal to be sent to a process object.
6162 * config.h.in: Add symbols for big signal/process overhaul.
6163 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6164 * sysproc.h: Include process-related headers, where available:
6165 sys/stropts.h sys/strtio.h pty.h libutil.h
6173 Remove old S&M pty stuff.
6174 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6175 * systty.h: Simplify cpp hackery, improve comments.
6176 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6178 * editfns.c (Fformat_time_string):
6179 Be a little more paranoid with the return value of ctime.
6181 * fileio.c (check_executable):
6183 Use symbolic constants X_OK, W_OK.
6185 * console-x.c (split_up_display_spec): Fix a warning.
6187 2000-10-02 Martin Buchholz <martin@xemacs.org>
6189 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6190 * ntproc.c (sys_spawnve): make_string ==> build_string
6191 Small clarity improvements.
6193 2000-09-30 Martin Buchholz <martin@xemacs.org>
6195 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6197 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6199 * config.h.in (HAVE_STRCASECMP): Remove.
6201 2000-09-29 Martin Buchholz <martin@xemacs.org>
6203 * redisplay-output.c (redisplay_output_pixmap):
6204 Cleaner and possibly more 64-bit correct code.
6206 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
6208 * dumper.c (pdump_load_finish): move restoration of
6209 `noninteractive1' to emacs.c (main_1).
6210 * emacs.c (main_1): protect LISP-visible command-line flags
6213 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
6215 * Makefile.in.in (versionclean): Use EXE_TARGET and
6216 DUMP_TARGET instead of literal program names.
6218 2000-09-20 Martin Buchholz <martin@xemacs.org>
6220 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6222 2000-09-19 Martin Buchholz <martin@xemacs.org>
6224 * *: Spelling mega-patch
6226 2000-09-19 Martin Buchholz <martin@xemacs.org>
6228 * fns.c (bad_bad_turtle):
6229 Delete "Eek!" comment, since we fixed the bug to which it refers.
6231 2000-09-16 Martin Buchholz <martin@xemacs.org>
6233 * alloca.c: Replace REGISTER with register.
6235 2000-09-16 Daiki Ueno <ueno@unixuser.org>
6237 * file-coding.c (ucs_to_char): Use countof.
6239 2000-09-16 Martin Buchholz <martin@xemacs.org>
6241 * file-coding.c: (ucs_to_char):
6242 (complex_vars_of_file_coding):
6243 Use countof instead of sizeof.
6244 Use CHECK_NATNUM instead of CHECK_INT.
6246 * sysdep.c (strcasecmp): Remove.
6247 * device-x.c (ascii_strcasecmp): New.
6248 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6249 Avoid using non-standard non-portable strcasecmp.
6251 2000-09-16 Martin Buchholz <martin@xemacs.org>
6253 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6254 * font-lock.c: remove reference to emacsfns.h.
6255 * search.c: small doc improvement.
6256 * event-Xt.c: correct file names in comments.
6257 * console-x.h Correct file names in comments.
6258 * frame.c: Correct file names in comments.
6259 * event-stream.c: remove Energize from comments.
6261 2000-09-15 Martin Buchholz <martin@xemacs.org>
6263 * symeval.h (DEFERROR_STANDARD):
6266 (DEFSYMBOL_NO_DUMP):
6267 (DEFSYMBOL_MULTIWORD_PREDICATE):
6268 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6270 The construct &##name is not sensible C.
6271 Fixes compilation errors with Unixware native compiler.
6273 2000-09-14 Martin Buchholz <martin@xemacs.org>
6275 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6276 (next_frame_internal): Removed. We now just have next_frame.
6278 Write a simpler and cleaner one-pass algorithm.
6279 Remove called_from_delete_device arg and #ifdefed-out code.
6281 Renamed from prev_frame. Update callers.
6282 Cleaned up to have an analogous implementation to next_frame.
6283 (other_visible_frames_internal): Remove the
6284 called_from_delete_device bogus arg, and hence, remove this
6285 function. Just use other_visible_frames().
6287 * window.c (Fnext_window):
6289 Since next_frame() is guaranteed to return a frame, remove check
6290 for nil inserted in previous patch.
6293 Make code look more like Fnext_window.
6295 Respect the `console' arg when iterating through windows.
6296 Fixes bug: (get-buffer-window buffer t device) not respecting
6298 This function needs more work, as others have pointed out.
6300 * frame.h: Rename prev_frame to previous_frame.
6301 device_matches_console_spec no longer takes a `frame' arg.
6306 Use EMACS_BLOCK_SIGNAL instead of sigblock.
6307 From "Golubev I. N." <gin@mo.msk.ru>.
6309 * make-src-depend: Fix typo.
6311 2000-09-13 Martin Buchholz <martin@xemacs.org>
6313 * window.c (Fnext_window):
6314 next_frame() might return nil, not a frame.
6316 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6318 * frame.c (next_frame_internal):
6319 We've passed a frame if we've passed its device.
6321 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6322 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6324 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
6326 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6327 Allow option to suppress accelerators in menu/dialog items.
6328 (populate_or_checksum_helper): Pass dialog title through above.
6330 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
6332 * event-msw.c (mswindows_key_to_emacs_keysym):
6333 Add "pause" key, fix "menu" key.
6335 2000-09-09 Martin Buchholz <martin@xemacs.org>
6337 * eval.c (reinit_vars_of_eval):
6338 Increase max_lisp_eval_depth to 1000,
6339 required for thai-xtis.el to byte-compile under some circumstances.
6341 2000-09-04 Martin Buchholz <martin@xemacs.org>
6343 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6346 2000-09-01 Martin Buchholz <martin@xemacs.org>
6348 * make-src-depend: Make the generated Makefiles smaller.
6350 * s/hpux.h (SETUP_SLAVE_PTY):
6351 Provide a %d in the format string for the errno argument.
6353 * editfns.c (Ftemp_directory):
6355 Avoid buffer overrun on very long file name.
6357 * input-method-xlib.c (XIM_init_device):
6358 6th parameter of XRegisterIMInstantiateCallback has different
6359 pointer types on different OSes, so simply cast to (void *).
6361 * unexhp9k800.c: Warning fixes. Fiddly changes.
6363 * sysdll.c (dll_open):
6364 shl_load will hang hard if passed a NULL filename.
6365 Simply return NULL for compatibility with dlopen.
6366 * sysdll.c: Conform to XEmacs coding standards.
6368 * sysdep.c (get_pty_max_bytes):
6369 Support pty input lines longer than 512 bytes on HP-UX 10.20.
6371 2000-08-31 Martin Buchholz <martin@xemacs.org>
6373 * tooltalk.c: Add #include <syssignal.h>
6375 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
6377 * s/hpux.h: Don't use undefined function sigunblock().
6379 2000-08-31 Martin Buchholz <martin@xemacs.org>
6381 * config.h.in: Add HAVE_BALLOON_HELP.
6382 * emacs.c: Use HAVE_BALLOON_HELP.
6383 * Makefile.in.in (x_objs):
6384 Make Balloon Help conditional on finding shape.h.
6386 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
6388 * syntax.c (regex_emacs_buffer_p): New variable.
6389 * syntax.h (regex_emacs_buffer_p): extern.
6390 * search.c (looking_at_1):
6392 (fast_string_match):
6393 (search_buffer): Set regex_emacs_buffer_p.
6394 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6395 when before_dot, at_dot, after_dot.
6397 2000-08-23 Andy Piper <andy@xemacs.org>
6399 * gui-x.c (popup_selection_callback): Only set action_occurred
6400 when we really have an image instance.
6401 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6403 2000-08-23 Andy Piper <andy@xemacs.org>
6405 * gui-msw.c (mswindows_handle_gui_wm_command): set
6407 * gui-x.c (popup_selection_callback): ditto.
6409 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6410 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6411 (struct Lisp_Image_Instance): add action_occurred flag.
6413 * glyphs.c (redisplay_subwindow): use action_occurred flag.
6414 (image_instance_changed): ditto.
6415 (reset_frame_subwindow_instance_cache): only unmap windows - do
6416 not remove them from the cache also.
6418 * glyphs-widget.c (tab_control_update): better debug.
6419 (progress_gauge_update): ditto.
6420 (layout_update): ditto.
6421 (layout_instantiate): ditto.
6422 (tab_control_order_only_changed): cope with null pending items.
6424 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6425 debug. Force selection of an item when an action occurred. Cope
6426 with null pending_items.
6427 (mswindows_progress_gauge_redisplay): better debug.
6428 * glyphs-x.c (x_tab_control_redisplay): ditto.
6430 * redisplay.c (redisplay_frame): reset the frame cache if the
6433 * window.c (Fset_window_configuration): potentially re-enable
6435 (window_unmap_subwindows): need to finalize instances here since
6436 it is only used in mark_window_as_deleted.
6438 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
6440 * nas.c (SndOpenDataForReading):
6441 nas.c (WaveOpenDataForReading):
6442 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6443 Somehow escaped from the 2000-08-14 patch.
6445 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6447 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6448 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6450 2000-08-21 Andy Piper <andy@xemacs.org>
6452 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6453 window if it is not already displayed.
6455 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6456 it is not already displayed.
6458 * window.c (Fset_window_configuration): don't reset the frame
6461 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6462 instances from the frame cache if we are actually finalizing them.
6463 (reset_frame_subwindow_instance_cache): reset frame cache only
6464 after unmapping everything.
6465 (map_subwindow): set displayed flag after mapping.
6467 2000-08-21 Martin Buchholz <martin@xemacs.org>
6469 * data.c (indirect_function):
6470 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6472 * eval.c (function_argcount):
6473 Use original function when signaling errors.
6475 2000-08-18 Andy Piper <andy@xemacs.org>
6477 * frame.c (delete_frame_internal): use new
6478 free_frame_subwindow_instances name.
6480 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6481 (add_tab_item): make return type correct.
6482 (mswindows_tab_control_instantiate): assert index of tab.
6483 (mswindows_tab_control_redisplay): Re-code to use
6484 gui_item_equal_sans_selected and gui_item_list_find_selected.
6486 * glyphs-widget.c (tab_control_update): Correct comment.
6488 * window.c (window_unmap_subwindows): use new
6489 unmap_subwindow_instance_cache_mapper.
6490 (window_unmap_subwindows_cache_mapper): deleted.
6491 (Fset_window_configuration): comparisons should now be with
6492 EQ. Preserve the subwindow instance cache across configuration
6494 (allocate_window): ditto.
6495 (make_dummy_parent): ditto.
6497 * glyphs.c (free_frame_subwindow_instances): rename from
6498 free_frame_subwindow_instance_cache. finalize all instances rather
6499 than just those in the display cache.
6500 (finalize_all_subwindow_instances): walk windows unmapping and
6501 finalizing subwindows.
6502 (unmap_subwindow_instance_cache_mapper): moved from
6503 window.c. Allow finalization as well as unmapping.
6505 * gui.c (gui_item_list_find_selected): new function.
6507 * gui.h (gui_item_list_find_selected): declare.
6509 * glyphs-x.c (x_tab_control_redisplay): pick tab
6510 explicitly. Re-code to use gui_item_equal_sans_selected and
6511 gui_item_list_find_selected.
6513 * glyphs-x.h: add lwlib-utils.h
6515 * buffer.c (Frecord_buffer): undo previous change.
6517 2000-08-09 Vin Shelton <acs@xemacs.org>
6519 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6520 possible. Create temporary files more securely. The patch was
6521 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6522 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
6523 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6526 2000-08-07 Ben Wing <ben@xemacs.org>
6528 * getloadavg.c: remove duplicate (and windows-breaking)
6529 includes of fcntl.h and sys/file.h.
6531 * nt.c: remove duplicate getloadavg() definition.
6533 * sysdll.h (Qdll_filename_encoding): add missing stand-in
6536 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
6538 * eval.c (function_argcount): If function needs to be autoloaded
6539 actually use the loaded definition.
6542 2000-08-05 Ben Wing <ben@xemacs.org>
6544 * getloadavg.c: add prototype for getloadavg(). remove
6545 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6546 of the code). remove duplicate header includes.
6548 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6550 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6551 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6552 useful load average.
6554 * alloc.c (reinit_alloc_once_early): removed references to
6555 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6556 the lisp vars are the only things referencing the malloc_sbrk_*
6557 vars, and they were already if 0'd out. these vars only exist
6558 in the older malloc.c, which is basically unused, and they're
6559 only for informational purposes.
6561 * m\*.h: removed useless VIRT_ADDR_VARIES.
6563 * m\powerpc.h: removed stray NO_ARG_ARRAY.
6565 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
6567 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6568 color if the image is a mono pixmap.
6570 2000-07-30 Ben Wing <ben@xemacs.org>
6572 * Makefile.in.in (release):
6575 * buffer.c (directory_is_current_directory):
6576 * dired-msw.c (mswindows_get_files):
6578 * dired.c (Fdirectory_files):
6579 * dired.c (file_name_completion_stat):
6580 * dired.c (Ffile_attributes):
6581 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6582 preprocessor tricks, to avoid problems on some machines
6585 * callproc.c (egetenv): GC docs.
6588 * console-msw.h (struct mswindows_dialog_id):
6589 * lrecord.h (lrecord_type):
6590 New object for use with MSW dialogs.
6592 * console.h (struct console_methods):
6593 New enable/disable frame methods, for proper modal dialogs.
6595 * device-msw.c (msprinter_default_printer): Fix to follow
6596 proper Mule conventions.
6599 * device-msw.c (signal_open_printer_error):
6600 * device-msw.c (msprinter_init_device):
6601 * device-msw.c (ensure_not_printing):
6602 * device-msw.c (plist_get_margin):
6603 * device-msw.c (Fmsprinter_select_settings):
6604 * device-msw.c (finalize_devmode):
6605 * device-msw.c (Fmsprinter_settings_despecialize):
6606 * device-msw.c (signal_enum_priner_error):
6607 * extents.c (decode_extent):
6608 * extents.c (decode_map_extents_flags):
6609 * extents.c (decode_extent_at_flag):
6610 * extents.c (Fextent_at):
6611 * extents.c (Fextents_at):
6612 * extents.c (symbol_to_glyph_layout):
6613 [[[[2]]]] Use structured errors.
6616 * dialog-msw.c (mswindows_is_dialog_msg):
6617 * dialog-msw.c (mark_mswindows_dialog_id):
6618 * dialog-msw.c (dialog_proc):
6619 * dialog-msw.c (handle_question_dialog_box):
6620 * dialog-msw.c (syms_of_dialog_mswindows):
6621 Define new object to clean up marking; use it as a dialog identifier.
6622 Call new delete-dialog-box-hook.
6624 * dialog-x.c (dbox_selection_callback):
6625 * dialog-x.c (dbox_descriptor_to_widget_value):
6626 * dialog-x.c (x_make_dialog_box_internal):
6627 Call new delete-dialog-box-hook.
6631 * dialog.c (syms_of_dialog):
6632 * dialog.c (vars_of_dialog):
6633 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6636 * eval.c (signal_call_debugger):
6637 when noninteractive, output stack traces on the console instead
6638 of in a (never-seen) buffer.
6640 * eval.c (signal_type_error):
6641 * eval.c (invalid_argument_2):
6643 new funs for use w/structured errors.
6646 * event-Xt.c (x_to_emacs_keysym):
6647 * event-Xt.c (describe_event):
6648 * event-Xt.c (emacs_Xt_event_handler):
6649 * event-Xt.c (vars_of_event_Xt):
6651 * event-msw.c (mswindows_wnd_proc):
6652 * event-msw.c (vars_of_event_mswindows):
6653 rename {x,mswindows}-debug-events to debug-{}-events for
6654 consistency with other debug-foo variables.
6657 document next-event more clearly.
6659 * fileio.c (Ffile_name_directory):
6660 * fileio.c (Ffile_name_nondirectory):
6661 * fileio.c (Funhandled_file_name_directory):
6662 * fileio.c (file_name_as_directory):
6663 * fileio.c (Ffile_name_as_directory):
6664 * fileio.c (directory_file_name):
6665 * fileio.c (Fdirectory_file_name):
6666 * fileio.c (Fmake_temp_name):
6667 * fileio.c (Ffile_truename):
6668 * fileio.c (Fsubstitute_in_file_name):
6669 * fileio.c (expand_and_dir_to_file):
6670 * fileio.c (barf_or_query_if_file_exists):
6671 * fileio.c (check_executable):
6672 * fileio.c (Ffile_exists_p):
6673 * fileio.c (Ffile_writable_p):
6674 * fileio.c (Ffile_directory_p):
6675 * fileio.c (Ffile_regular_p):
6676 * fileio.c (Ffile_modes):
6677 * fileio.c (Ffile_newer_than_file_p):
6678 * fileio.c (Fverify_visited_file_modtime):
6679 * fileio.c (Fset_visited_file_modtime):
6680 * fileio.c (auto_save_1):
6685 * frame-msw.c (mswindows_init_frame_1):
6686 * frame-msw.c (mswindows_enable_frame):
6687 * frame-msw.c (error_frame_unsizable):
6688 * frame-msw.c (msprinter_init_frame_1):
6689 * frame-msw.c (msprinter_init_frame_3):
6690 * frame-msw.c (console_type_create_frame_mswindows):
6692 implement new enable/disable frame methods.
6695 * frame-x.c (x_enable_frame):
6696 * frame-x.c (console_type_create_frame_x):
6697 implement new enable/disable frame methods.
6700 * frame.c (Fdisable_frame):
6701 * frame.c (syms_of_frame):
6702 * frame.h (struct frame):
6703 implement new enable/disable frame methods/functions.
6708 * glyphs-msw.c (mswindows_widget_instantiate):
6709 comment that initial-focus should be implemented.
6712 * glyphs-widget.c (check_valid_instantiator):
6713 * glyphs-widget.c (check_valid_orientation):
6714 * glyphs-widget.c (check_valid_tab_orientation):
6715 * glyphs-widget.c (check_valid_justification):
6716 * glyphs-widget.c (check_valid_border):
6717 * glyphs-widget.c (check_valid_callback):
6718 * glyphs-widget.c (check_valid_int_or_function):
6719 * glyphs-widget.c (check_valid_string_or_vector):
6720 * glyphs-widget.c (check_valid_item_list_1):
6721 * glyphs-widget.c (widget_validate):
6722 * glyphs-widget.c (combo_box_validate):
6723 * glyphs-widget.c (widget_instantiate):
6724 * glyphs-widget.c (syms_of_glyphs_widget):
6725 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6726 * glyphs-widget.c (image_instantiator_combo_box):
6727 * glyphs-widget.c (image_instantiator_scrollbar):
6728 * glyphs-widget.c (image_instantiator_tab_control):
6729 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6731 support (unimplemented) keyword initial-focus.
6732 reindent long macros.
6734 * glyphs-x.c (x_redisplay_widget):
6735 * glyphs-x.c (x_button_instantiate):
6736 * glyphs-x.c (x_button_redisplay):
6737 * glyphs-x.c (x_progress_gauge_instantiate):
6738 * glyphs-x.c (x_edit_field_instantiate):
6739 * glyphs-x.c (x_combo_box_instantiate):
6740 * glyphs-x.c (x_tab_control_instantiate):
6741 * glyphs-x.c (x_label_instantiate):
6743 * gui-x.c (button_item_to_widget_value):
6744 * gui-x.c (gui_items_to_widget_values_1):
6745 * gui-x.c (gui_item_children_to_widget_values):
6746 * gui-x.c (gui_items_to_widget_values):
6748 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6749 add new flag to gui-parsing routines to indicate whether
6750 accelerator specs should be supported.
6752 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6754 * glyphs.h (struct Lisp_Image_Instance):
6755 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6756 add initial-focus flag.
6759 * gui.c (syms_of_gui):
6760 * gui.c (vars_of_gui):
6761 clean up menu-no-selection-hook.
6764 support delete-dialog-box-hook.
6766 * lread.c (Fload_internal):
6767 * lread.c (locate_file_in_directory_mapper):
6771 * lrecord.h (struct toolbar_button):
6772 * lrecord.h (syms_of_toolbar):
6773 document how to create a new object.
6775 * menubar-msw.c (mswindows_char_is_accelerator):
6776 may be called on frames w/o menus.
6778 * menubar.c (vars_of_menubar):
6779 clean up :filter docs.
6786 * process-nt.c (validate_signal_number):
6787 * process-nt.c (signal_cannot_launch):
6788 * process-nt.c (nt_create_process):
6789 * process-nt.c (nt_send_process):
6790 * process-nt.c (nt_kill_child_process):
6791 * process-nt.c (nt_open_network_stream):
6792 * process-nt.c (syms_of_process_nt):
6794 delete quote-handling. call new lisp code that does it better.
6796 * process-unix.c (connect_to_file_descriptor):
6797 * process-unix.c (allocate_pty):
6798 * process-unix.c (unix_send_process):
6799 * process-unix.c (unix_kill_child_process):
6800 * process-unix.c (unix_open_network_stream):
6801 * process-unix.c (unix_open_multicast_group):
6805 * process.c (Fstart_process_internal):
6806 (2). need to canonicalize process path even if absolute.
6808 * select-msw.c (symbol_to_ms_cf):
6809 * select-msw.c (ms_cf_to_symbol):
6810 * select-msw.c (cf_is_autofreed):
6811 * select-msw.c (mswindows_destroy_selection):
6813 * select.c (syms_of_select):
6815 support dibv5, fix bugs. (from Mike Alexander)
6817 * select.c (Fget_selection_internal):
6818 * select.c (select_convert_out):
6821 * sysdep.c (xemacs_stat):
6826 but keep original stat() here because we provide encapsulation
6830 * sysfile.h (fstat):
6831 remove stat garbage.
6835 don't include tchar.h. it's inappropriate because it makes
6836 compile-time distinctions when we want runtime distinctions.
6837 (we provide our own tchar replacements)
6840 use default object printer for toolbar-button.
6843 make sure we don't encapsulate.
6845 * window.c (vars_of_window):
6846 emphasize that temp-buffer-show-hook is obsolete.
6848 2000-08-05 Martin Buchholz <martin@xemacs.org>
6850 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6851 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6853 * events.c (Fevent_timestamp_lessp):
6854 Not 64-bit clean. Use EMACS_INT, not int.
6856 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
6858 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6859 unsigned int and changed the last enum to
6860 lrecord_type_last_built_in_type.
6861 (lrecord_implementations_table): changed prototype to know how
6862 long the array is supposed to be.
6863 (lrecord_type_count): new unsigned int to keep track of the
6864 current number of lisp lrecord types.
6865 (DEFINE_EXTERNAL_LRECORD):
6866 (DECLARE_EXTERNAL_LRECORD): Added these two for external
6867 dynamic-modules to declare new lisp types. They are the same
6868 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6869 int for each new type, and increment lrecord_type_count by 1.
6871 * alloc.c (lrecord_implementations_table): Changed to reference
6872 lrecord_type_last_built_in_type for the size of the array.
6873 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6875 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6877 * glyphs.h (check_valid_item_list): Renamed from
6878 check_valid_item_list_1.
6880 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6882 * select.c (Qselect_coerce): New.
6883 * select.c (Vselection_coercion_alist): New.
6884 * select.c (syms_of_select): Declare.
6885 * select.c (get-selection-internal): Use it.
6886 Use the new select-coerce functionality.
6888 * select.c (select_coerce): New.
6889 * select.h (select_coerce): Declare.
6890 New function to coerce one type of data into another.
6892 2000-08-03 Martin Buchholz <martin@xemacs.org>
6894 * callproc.c (Fcall_process_internal):
6895 (Fcall_process_internal):
6896 * process-unix.c (unix_create_process):
6897 Save and restore the value of errno, so that error messages are accurate.
6899 2000-08-01 Martin Buchholz <martin@xemacs.org>
6901 * elhash.c (print_hash_table):
6902 Fix printing of hash tables to also use `key-and-value' instead of `t'.
6903 Prettify docstrings and indentation.
6905 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
6907 * window.c (Fwindow_pixel_edges): Subtract frame border and
6910 2000-07-31 Andy Piper <andy@xemacs.org>
6912 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6913 will acknowledge the change.
6915 * glyphs.h: declare tab_control_order_only_changed.
6917 * glyphs-x.c (x_tab_control_redisplay): use
6918 tab_control_order_only_changed.
6920 * glyphs-widget.c (tab_control_order_only_changed): new function.
6922 * glyphs-msw.c (mswindows_tab_control_redisplay): use
6923 tab_control_order_only_changed.
6925 * gui.c (gui_item_equal_sans_selected): new function.
6926 (gui_item_equal): use it.
6928 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6929 :properties in favor of :items..
6931 * glyphs-widget.c (check_valid_item_list): rename from
6932 check_valid_item_list_1.
6933 (check_valid_item_list_1): renamed.
6934 (combo_box_validate): deprecate :properties in favor of :items.
6935 (widget_instantiate): ditto.
6936 (tab_control_update): ditto.
6937 (image_instantiator_combo_box): ditto.
6938 (image_instantiator_tree_view): ditto.
6939 (image_instantiator_tab_control): ditto.
6940 (layout_post_instantiate): remove dead code.
6942 * print.c (debug_print_no_newline): only write to debugger if in
6945 * elhash.c (Fmake_hash_table): update doc string.
6947 * event-msw.c (mswindows_wnd_proc): don't allow processing of
6948 messages whilst in GC. This at least stops XEmacs crashing but has
6949 the potential for wierd behaviour.
6951 2000-07-31 Martin Buchholz <martin@xemacs.org>
6954 Make existence of s&m files optional.
6956 * s/bsd386.h: Remove HAVE_GETLOADAVG.
6957 * s/freebsd.h: Remove HAVE_GETLOADAVG.
6958 * s/gnu.h: Remove HAVE_GETLOADAVG.
6959 * s/netbsd.h: Remove HAVE_GETLOADAVG.
6960 * s/sol2.h: Remove HAVE_GETLOADAVG.
6961 * lisp.h: Remove getloadavg() declaration.
6963 Include <sys/loadavg.h> if available.
6964 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6965 * config.h.in: Group together getloadavg()-related macros.
6966 Use only configure-time tests to detect getloadavg().
6968 2000-07-30 Martin Buchholz <martin@xemacs.org>
6970 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6972 2000-07-25 Andy Piper <andy@xemacs.org>
6974 * syswindows.h: add tchar.h for native builds.
6976 * frame.c (syms_of_frame): remove set-glyph-image.
6978 * general-slots.h: add Qset_glyph_image.
6980 * glyphs-widget.c (layout_update): add domain arg to
6982 (syms_of_glyphs_widget): remove set-glyph-image.
6984 2000-07-23 Ben Wing <ben@xemacs.org>
6986 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6989 2000-07-22 Andy Piper <andy@xemacs.org>
6991 * symsinit.h: add syms_of_win32().
6993 * gui-msw.c (syms_of_gui_mswindows): remove
6994 Fmswindows_shell_execute.
6995 (Fmswindows_shell_execute): moved to win32.c.
6997 * emacs.c (main_1): add syms_of_win32 ().
6999 * win32.c (init_potentially_nonexistent_functions): rewrite in
7000 compiler-friendly terms.
7001 (Fmswindows_shell_execute): move here from gui-msw.c.
7002 (syms_of_win32): new.
7004 * device-msw.c (Fmswindows_printer_list): clean up args to
7006 Don't include tchar under cygwin or mingw.
7007 (msprinter_default_printer): make cygwin-friendly.
7009 2000-07-21 Andy Piper <andy@xemacs.org>
7011 * glyphs-widget.c (image_instantiator_tree_view): use tab
7012 control's update function.
7013 (layout_property): new function. Retrieve items.
7015 * glyphs-msw.c (mswindows_tree_view_redisplay): new
7016 function. Re-populate the tree view from the pending items.
7018 * glyphs.c (instantiate_image_instantiator): Make sure the domain
7019 is designated the parent if the domain is an image instance. This
7020 is needed so that dirtiness can be cascade up the hierarchy and
7021 thus for layout children to be redisplayed correctly.
7022 (allocate_image_instance): rename glyph -> parent.
7024 * redisplay.h: change redisplay_output_layout signature.
7026 * redisplay-msw.c (mswindows_output_display_block): use domain
7029 * redisplay-x.c (x_output_display_block): use domain arg.
7031 2000-07-10 Andy Piper <andy@xemacs.org>
7033 * window.c (Fset_window_configuration): add comment.
7035 * redisplay-output.c (compare_runes):
7036 (redisplay_output_subwindow): redisplay rather than update subwindow.
7037 (redisplay_output_layout): ditto.
7039 * redisplay-msw.c (mswindows_frame_output_end):
7040 (mswindows_frame_output_end): make defer window pos optional.
7042 * lisp.h: add Flast.
7044 * glyphs.h (struct image_instantiator_methods): add dest_mask top
7045 normalize method. Change update method to be for changed
7046 instantiators. Add redisplay method. Change signature of layout
7048 (struct Lisp_Image_Instance): add instantiator.
7049 (IMAGE_INSTANCE_INSTANTIATOR): new.
7050 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
7051 (XIMAGE_INSTANCE_INSTANTIATOR): new.
7052 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
7055 (find_instantiator_differences): new function.
7056 (Fset_instantiator_property): new convenience function.
7057 (check_image_instance_structure): strictly check for vector
7059 (normalize_image_instantiator): make non-static.
7060 (instantiate_image_instantiator): pass on dest_mask and use new
7061 signatures for image_instance_layout and friends.
7062 (mark_image_instance): mark the instantiator. Mark the subwindow
7063 face not the widget face.
7064 (image_instance_equal): add instantiator.
7065 (image_instance_hash): ditto.
7066 (allocate_image_instance): ditto.
7067 (Fset_image_instance_property): removed.
7068 (Fimage_instance_file_name): ditto.
7069 (Fcolorize_image_instance): ditto.
7070 (image_instance_layout): add offsets to be set.
7071 (update_image_instance): new function. update an image instance
7072 from its changed instantiator.
7073 (inherit_normalize): add dest_mask.
7074 (xbm_normalize): ditto.
7075 (xface_normalize): ditto.
7076 (xpm_normalize): ditto.
7077 (text_update): set_property -> update.
7078 (image_instantiate): use the glyph identity as a hash key, not the
7080 (glyph_width): use new image_instance_layout signature.
7081 (glyph_ascent): ditto.
7082 (glyph_descent): ditto.
7083 (glyph_height): ditto.
7084 (glyph_query_geometry): ressurrect.
7085 (glyph_layout): ditto.
7086 (redisplay_subwindow): update -> redisplay.
7087 (syms_of_glyphs): add Fset_instantiator_property.
7088 (image_instantiator_format_create): set_property -> update.
7091 (autodetect_normalize): add dest_maks to signature.
7092 (x_redisplay_subwindow): update -> redisplay.
7093 (x_redisplay_widget): ditto.
7094 (x_button_redisplay): ditto.
7095 (x_progress_gauge_redisplay): ditto.
7096 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7098 (console_type_create_glyphs_x): update -> redisplay.
7099 (image_instantiator_format_create_glyphs_x): ditto.
7102 (check_valid_instantiator): disallow glyphs in the instantiator,
7103 they must now be vectors.
7104 (check_valid_instantiator_list): ditto.
7105 (glyph_instantiator_to_glyph): use internal symbol rather than
7107 (widget_update): renamed from widget_set_property. Call cascaded
7109 (redisplay_widget): renamed from update_widget.
7110 (widget_layout): image_instance_layout now takes position as well
7112 (widget_normalize): ditto.
7113 (widget_instantiate): ditto.
7114 (tab_control_query_geometry) ditto.:
7115 (tab_control_update): renamed from tab_control_set_property.
7116 (progress_gauge_update): set_property -> update.
7117 (layout_normalize): rewrite so that child instantiators are
7119 (layout_update): new function. Create glyphs from the normalized
7120 children and cope with any other layout keywords. We do not
7121 instantiate children here that will be take care of by
7122 redisplay_output_layout.
7123 (layout_instantiate): call layout_update and not much else.
7124 (layout_post_instantiate): not sure whether this is needed
7126 (layout_query_geometry): query glyph geometry rather than
7127 image_instance geometry.
7128 (layout_layout): set offsets from pass in parameters. Use glyph
7129 geometry and layout functions rather than image instance ones.
7130 (native_layout_layout): ditto.
7131 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7132 (image_instantiator_widget): set_property -> update.
7133 (image_instantiator_buttons): ditto.
7134 (image_instantiator_progress_guage): ditto.
7135 (image_instantiator_tab_control): ditto.
7136 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7137 (image_instantiator_layout): add update method.
7139 * glyphs-msw.c (bmp_normalize):
7140 (mswindows_resource_normalize): add dest_mask so that it can be
7141 proprogated by layout_normalize.
7142 (begin_defer_window_pos): make optional because it may not be the
7143 right thing to do and it introduces differences with X.
7144 (mswindows_unmap_subwindow): ditto.
7145 (mswindows_map_subwindow): ditto.
7146 (mswindows_redisplay_subwindow): renamed from
7147 mswindows_update_subwindow.
7148 (mswindows_redisplay_widget): ditto.
7149 (mswindows_button_redisplay): renamed from
7150 mswindows_button_update. Update is now what the instantiation
7151 function does for a changed instantiator.
7152 (mswindows_progress_gauge_instantiate): set the progress value
7153 here if appropriate.
7154 (mswindows_tab_control_redisplay): cope with re-ordering of the
7155 members of the tab widget by simply selecting the new top
7156 widget. This makes things appear ok if you click on a tab.
7157 (mswindows_combo_box_instantiate): image_instance_layout now takes
7158 position as well as size.
7159 (mswindows_progress_gauge_redisplay): renamed from
7160 mswindows_progress_gauge_update.
7161 (console_type_create_glyphs_mswindows): fix update -> redisplay.
7162 (image_instantiator_format_create_glyphs_mswindows): ditto.
7164 * glyphs-eimage.c (jpeg_normalize):
7167 (tiff_normalize): add dest_mask so that it can be proprogated by
7172 (hash_table_weakness_validate):
7173 (decode_hash_table_weakness):
7174 (Fhash_table_weakness):
7176 (syms_of_elhash): use Ben's naming scheme for hashtable types..
7178 * console.h (struct console_methods): move update_* to
7181 2000-07-20 Ben Wing <ben@xemacs.org>
7183 * *.[ch] (XSETOBJ): remove unused middle argument.
7184 lisp-disunion.h: correct wrap_object() to one argument.
7186 2000-07-15 Ben Wing <ben@xemacs.org>
7189 * s/cygwin32.h (CYGWIN_CONV_PATH):
7190 Add missing logb prototype for v1.1.
7191 Use post-b20 names and alias to pre-b20 names when pre-b20.
7193 * s/windowsnt.h: [5].
7195 2000-07-15 Ben Wing <ben@xemacs.org>
7197 * Makefile.in.in (x_objs):
7198 * Makefile.in.in (sheap_objs):
7199 * Makefile.in.in (objs):
7200 added win32.o, cosmetic cleanups.
7202 * alloc.c (Fmake_byte_code):
7203 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7204 etc. macros which declare their own args now.
7206 * alloc.c (syms_of_alloc):
7207 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7210 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7212 * buffer.c (Fget_file_buffer):
7213 Fixed GCPRO problem.
7215 * buffer.c (get_truename_buffer):
7216 Fixed comment about GC checking.
7218 * buffer.c (syms_of_buffer):
7219 Undeclared those dedicated frame funs.
7223 Define convenience macros for internal/external conversions.
7224 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7225 and Qenvironment_variable_encoding for cleaner code.
7228 Remove dedicated-frame; in lisp.
7230 * bytecode.c (funcall_compiled_function):
7233 * bytecode.c (syms_of_bytecode):
7237 * console-msw.c (mswindows_show_console): Rewrote.
7239 * console-msw.c (Fmswindows_debugging_output): New.
7240 Sends to OutputDebugString (special MSWin debugger interface).
7242 * console-msw.c (Fmswindows_message_box):
7243 Fixed stupid bugs so it works when called from kill-emacs.
7245 * console-msw.c (syms_of_console_mswindows):
7246 Declare Fmswindows_debugging_output.
7249 New MSWin prototypes.
7251 * console-msw.h (struct mswindows_frame):
7252 New entry last-click-mods for improved button-modifier support.
7254 * console-msw.h (FRAME_MSWINDOWS_POPUP):
7255 New struct entry `popup' with corresponding accessor.
7258 * console-x.c (split_up_display_spec):
7259 * console-x.c (get_display_arg_connection):
7260 * console-x.c (x_semi_canonicalize_console_connection):
7261 * console-x.c (x_canonicalize_device_connection):
7262 [[[6]]]: Change char to more specific type.
7263 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7265 * console-x.c (x_semi_canonicalize_console_connection):
7266 * console-x.c (x_canonicalize_device_connection):
7267 [[[9]]]: Fix up error signalling to use new structured error system.
7270 [[[4]]]: Define codesys aliases:
7271 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7272 Qx_color_name_encoding, Qx_display_name_encoding.
7274 * console.h (struct console_methods):
7275 New method make_dialog_box_internal supersedes older
7276 popup_dialog_box method.
7279 Define many new errors, part of new structured errors.
7281 * data.c (init_errors_once_early):
7282 * data.c (syms_of_data):
7285 * device-msw.c (mswindows_init_device):
7286 [[[5]]]: Cleanup to support NT 3.51.
7288 * device-msw.c (decode_devmode): Cleanup.
7290 * device-msw.c (mswindows_handle_print_setup_dialog_box):
7291 * device-msw.c (mswindows_handle_print_dialog_box):
7292 * device-msw.c (mswindows_handle_page_setup_dialog_box):
7293 * device-msw.c (syms_of_device_mswindows):
7294 Delete the dialog box primitives recently introduced by Kirill and
7295 instead interface to general dialog box interface.
7298 * device-x.c (compute_x_app_name):
7299 * device-x.c (x_init_device):
7300 * device-x.c (Fx_valid_keysym_name_p):
7301 * device-x.c (Fx_set_font_path):
7305 * device.h (wrap_device): New.
7306 First of its kind; meant to replace XSETDEVICE.
7308 * dialog-msw.c: Many file-dialog symbols.
7310 * dialog-msw.c (mswindows_register_popup_frame): New.
7311 * dialog-msw.c (mswindows_is_dialog_msg): New.
7312 For supporting kbd traversal in dialog boxes.
7314 * dialog-msw.c (dialog_proc):
7315 Support hitting ESC in dialogs.
7317 * dialog-msw.c (struct):
7318 Common dialog box errors.
7320 * dialog-msw.c (handle_file_dialog_box): New.
7321 Add file dialog code.
7323 * dialog-msw.c (handle_question_dialog_box):
7324 Redo existing code to support new question dialog syntax.
7326 * dialog-msw.c (console_type_create_dialog_mswindows):
7327 We support new dialog console method.
7329 * dialog-msw.c (syms_of_dialog_mswindows):
7330 * dialog-msw.c (vars_of_dialog_mswindows):
7331 New file dialog symbols, vars.
7334 * dialog-x.c (maybe_run_dbox_text_callback):
7335 * dialog-x.c (dbox_descriptor_to_widget_value):
7336 * dialog-x.c (x_make_dialog_box_internal):
7337 * dialog-x.c (console_type_create_dialog_x):
7338 Mule-ize entire file.
7339 Redo to support question dialog syntax.
7343 * dialog.c (Fmake_dialog_box_internal):
7344 * dialog.c (syms_of_dialog):
7345 Kill old popup-dialog-box, replace with new primitive.
7346 Just call device method or signal error.
7348 * eldap.c (Fldap_open):
7349 * eldap.c (Fldap_search_basic):
7350 * eldap.c (Fldap_add):
7351 * eldap.c (Fldap_modify):
7356 * emacs.c (make_arg_list_1):
7357 * emacs.c (make_arg_list):
7358 Mule-ize call to dll_init().
7362 * emacs.c (make_argc_argv):
7363 * emacs.c (free_argc_argv):
7364 * emacs.c (init_cmdargs):
7366 * emacs.c (Fkill_emacs):
7367 * emacs.c (Fdump_emacs):
7368 Update comments about what can be used in syms_* etc.
7369 Call init_win32() when necessary.
7370 Fix up MS Win dialog box in kill-buffer to actually work right.
7381 * eval.c (condition_case_3):
7383 * eval.c (function_argcount):
7384 * eval.c (funcall_lambda):
7387 * eval.c (type_error): New.
7388 * eval.c (maybe_type_error): New.
7389 * eval.c (continuable_type_error): New.
7390 * eval.c (maybe_continuable_type_error): New.
7391 * eval.c (type_error_with_frob): New.
7392 * eval.c (maybe_type_error_with_frob): New.
7393 * eval.c (continuable_type_error_with_frob): New.
7394 * eval.c (maybe_continuable_type_error_with_frob): New.
7395 New functions for use with structured errors.
7398 * event-Xt.c (x_event_to_emacs_event):
7399 Buttons are now modifiers too.
7401 * event-Xt.c (emacs_Xt_current_event_timestamp):
7402 Implement new event method.
7403 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7406 * event-msw.c (ntpipe_shove_writer): [5].
7407 * event-msw.c (mswindows_enqueue_mouse_button_event):
7408 * event-msw.c (mswindows_drain_windows_queue):
7409 * event-msw.c (mswindows_wnd_proc): [7].
7410 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7411 * event-msw.c (mswindows_modifier_state):
7412 Throughout: support new button modifiers.
7414 * event-msw.c (emacs_mswindows_current_event_timestamp):
7415 Implement new event method.
7416 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7419 * event-stream.c (event_stream_current_event_timestamp): New.
7420 * event-stream.c (maybe_kbd_translate): New functionality.
7421 * event-stream.c (vars_of_event_stream):
7422 Document new kbd-translate-table functionality.
7424 * event-stream.c (Fcurrent_event_timestamp): New.
7425 New primitive for use in fabricated events.
7426 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7428 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7431 * events.c (Fmake_event):
7432 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7436 * events.c (format_event_object): fix gcc warnings.
7438 * events.c (Fevent_timestamp): Document new primitives.
7440 * events.c (TIMESTAMP_HALFSPACE): New.
7442 * events.c (Fevent_timestamp_lessp): New. New primitive for
7443 comparing timestamps correctly (half-space algorithm).
7445 * events.c (Fevent_modifier_bits): Doc fix.
7447 * events.c (Fevent_modifiers): Major doc addition.
7448 * events.c (event_x_y_pixel_internal): Typo fix.
7449 * events.c (syms_of_events): Declare new primitives.
7452 Update long comment for button modifiers, timestamps.
7454 * events.h (struct event_stream):
7455 New current_event_timestamp method.
7458 * extents.c (extent_in_region_p):
7459 * extents.c (decode_extent):
7460 * extents.c (Fset_extent_parent):
7461 * extents.c (decode_map_extents_flags):
7465 * extents.c (struct extent_at_arg):
7466 * extents.c (decode_extent_at_flag):
7467 * extents.c (extent_at_mapper):
7468 * extents.c (extent_at_bytind):
7469 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7470 * extents.c (Fextents_at): New primitive. [9].
7471 * extents.c (symbol_to_glyph_layout): [9].
7472 Support new primitive `extents-at'.
7475 * extents.c (get_text_property_bytind):
7476 extent_at_bytind has another arg.
7479 * extents.c (syms_of_extents): New primitive.
7481 * file-coding.c (Fmake_coding_system): [1].
7482 * file-coding.c (subsidiary_coding_system): fix gcc warning
7483 * file-coding.c (syms_of_file_coding): [2].
7485 * fileio.c (Fexpand_file_name):
7486 * fileio.c (Fsysnetunam):
7487 * fileio.c (Ffile_exists_p):
7488 * fileio.c (Ffile_executable_p):
7489 * fileio.c (Fverify_visited_file_modtime):
7492 * fileio.c (syms_of_fileio): [2].
7494 * filelock.c (lock_file_1):
7495 * filelock.c (current_lock_owner):
7496 * filelock.c (lock_if_free):
7497 * filelock.c (lock_file):
7498 * filelock.c (unlock_file):
7501 * fns.c (concat): Fix gcc warning.
7504 * fns.c (Fold_member):
7506 * fns.c (Fold_memq):
7507 * fns.c (memq_no_quit):
7509 * fns.c (Fold_assoc):
7511 * fns.c (Fold_assq):
7512 * fns.c (assq_no_quit):
7514 * fns.c (Fold_rassoc):
7516 * fns.c (Fold_rassq):
7517 * fns.c (rassq_no_quit):
7519 * fns.c (Fold_delete):
7521 * fns.c (Fold_delq):
7522 * fns.c (delq_no_quit):
7523 * fns.c (Fremassoc):
7525 * fns.c (remassq_no_quit):
7526 * fns.c (Fremrassoc):
7527 * fns.c (Fremrassq):
7528 * fns.c (remrassq_no_quit):
7533 * frame-msw.c (mswindows_init_frame_1):
7534 * frame-msw.c (mswindows_delete_frame):
7535 Register popups with dialog code so keyboard traversing works.
7537 * frame-tty.c (tty_raise_frame_no_select): [1].
7540 * frame-x.c (x_set_frame_text_value):
7541 * frame-x.c (x_set_frame_properties):
7542 * frame-x.c (x_create_widgets):
7546 * frame.c (Fmouse_pixel_position): Minor doc fixes.
7548 * frame.h (wrap_frame): New.
7549 Macro like wrap_device.
7552 * general.c (SYMBOL):
7553 * general.c (syms_of_general):
7554 Major reorg. This is now just a wrapper and symbols themselves
7555 are listed in general-slots.h.
7557 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7558 * glyphs-msw.c (mswindows_resource_instantiate): [5].
7560 * glyphs-msw.c (mswindows_native_layout_instantiate):
7561 Add DS_CONTROL so keyboard traversal will work.
7564 * glyphs-widget.c (syms_of_glyphs_widget):
7565 Move some symbols to general-slots.h.
7568 * glyphs-x.c (xbm_instantiate_1):
7569 * glyphs-x.c (x_xbm_instantiate):
7570 * glyphs-x.c (x_xface_instantiate):
7571 * glyphs-x.c (autodetect_instantiate):
7572 * glyphs-x.c (cursor_font_instantiate):
7573 * glyphs-x.c (x_update_widget):
7574 * glyphs-x.c (x_widget_instantiate):
7575 * glyphs.c (bitmap_to_lisp_data):
7576 * glyphs.c (pixmap_to_lisp_data):
7579 * glyphs.c (syms_of_glyphs):
7583 * gui-x.c (print_widget_value):
7584 * gui-x.c (menu_separator_style_and_to_external):
7585 * gui-x.c (add_accel_and_to_external):
7586 * gui-x.c (button_item_to_widget_value):
7587 * gui-x.c (gui_items_to_widget_values_1):
7588 * gui-x.c (gui_items_to_widget_values):
7589 * gui-x.c (syms_of_gui_x):
7590 * gui-x.c (vars_of_gui_x):
7591 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
7595 Muleize, prototype changes matching gui-x.c.
7598 * gui.c (separator_string_p):
7599 * gui.c (gui_item_add_keyval_pair):
7600 * gui.c (make_gui_item_from_keywords_internal):
7601 * gui.c (signal_too_long_error):
7602 * gui.c (parse_gui_item_tree_item):
7603 * gui.c (syms_of_gui):
7604 * gui.c (vars_of_gui):
7606 menu-no-selection-hook moved here (used by MSWin).
7607 Move some symbols to general-slots.h.
7611 * insdel.c (get_buffer_pos_char):
7612 * insdel.c (get_buffer_range_char):
7615 * keymap.c (keymap_lookup_directly):
7616 * keymap.c (keymap_store):
7617 * keymap.c (ensure_meta_prefix_char_keymapp):
7618 * keymap.c (describe_map):
7620 Support new button modifiers.
7622 * lisp-disunion.h (wrap_object):
7623 * lisp-disunion.h (XSETOBJ):
7624 Rename make_obj to wrap_object.
7627 * lisp-union.h (make_int):
7628 * lisp-union.h (make_char):
7629 Support wrap_object.
7632 * lisp.h (LIST_LOOP):
7633 * lisp.h (EXTERNAL_LIST_LOOP):
7634 * lisp.h (LIST_LOOP_2):
7635 * lisp.h (EXTERNAL_LIST_LOOP_1):
7636 * lisp.h (EXTERNAL_LIST_LOOP_2):
7637 * lisp.h (EXTERNAL_LIST_LOOP_3):
7638 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7639 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7640 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7641 * lisp.h (EXTERNAL_ALIST_LOOP_5):
7642 * lisp.h (EXTERNAL_ALIST_LOOP_6):
7643 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7644 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7645 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7646 * lisp.h (struct Lisp_Symbol):
7647 * lisp.h (maybe_continuable_error_with_frob):
7648 Fix up section comments.
7649 Add new types for char to indicate usage.
7650 Delete symbols auto-generated from general-slots.h.
7651 Add prototypes for structured error functions.
7652 Add long comments describing looping macros and change interface
7653 so that lvalues are automatically declared.
7654 Add NO_DECLARE macro in case callers want to declare lvalues
7657 * lread.c (read_syntax_error):
7658 * lread.c (continuable_read_syntax_error):
7659 * lread.c (read_structure):
7660 * lread.c (sequence_reader):
7661 * lread.c (read_list_conser):
7662 * lread.c (read_compiled_function):
7663 Rename syntax_error and continuable_syntax_error to avoid clash
7664 with same-named structured error functions.
7666 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7667 * menubar-msw.c (populate_menu_add_item):
7668 * menubar-msw.c (populate_or_checksum_helper):
7673 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7674 Mule-ize whole file.
7676 * menubar.c (Fnormalize_menu_item_name): Add optimization.
7678 * mule-charset.c (Fmake_charset):
7679 * mule-wnnfns.c (Fwnn_set_param):
7682 * ntproc.c (create_child):
7683 * ntproc.c (Fwin32_set_current_locale):
7684 Add comments portending doom.
7687 * objects-msw.c (old_font_enum_callback_2):
7688 * objects-msw.c (font_enum_callback_1):
7689 * objects-msw.c (mswindows_enumerate_fonts):
7693 * objects-x.c (allocate_nearest_color):
7694 * objects-x.c (x_parse_nearest_color):
7695 * objects-x.c (x_initialize_color_instance):
7696 * objects-x.c (x_print_color_instance):
7697 * objects-x.c (x_finalize_color_instance):
7698 * objects-x.c (x_valid_color_name_p):
7699 * objects-x.c (x_initialize_font_instance):
7700 * objects-x.c (x_print_font_instance):
7701 * objects-x.c (valid_x_font_name_p):
7702 * objects-x.c (truename_via_FONT_prop):
7703 * objects-x.c (truename_via_random_props):
7704 * objects-x.c (truename_via_XListFonts):
7705 * objects-x.c (x_font_truename):
7706 * objects-x.c (x_font_instance_truename):
7707 * objects-x.c (x_font_instance_properties):
7708 * objects-x.c (x_list_fonts):
7709 * objects-x.c (x_find_charset_font):
7710 Mule-ize entire file.
7717 * print.c (std_handle_out_external):
7718 * print.c (debug_print_no_newline):
7719 * print.c (syms_of_print):
7720 Output to all debugger kinds in debug-print.
7721 Fix console-output code under MSWin to actually work.
7723 * process-nt.c (send_signal):
7724 * process-nt.c (nt_create_process):
7725 Use newer Unicode macros.
7727 * process-unix.c (unix_create_process):
7728 * process-unix.c (unix_canonicalize_host_name):
7729 * process-unix.c (unix_open_network_stream):
7735 * search.c (syms_of_search):
7738 * select-msw.c (mswindows_destroy_selection):
7741 * select-x.c (symbol_to_x_atom):
7744 * select.c (syms_of_select):
7747 * sound.c (Fplay_sound_file):
7751 * specifier.c (decode_specifier_type):
7752 * specifier.c (Fvalid_specifier_locale_type_p):
7753 * specifier.c (check_valid_locale_or_locale_type):
7754 * specifier.c (decode_locale):
7755 * specifier.c (decode_locale_type):
7756 * specifier.c (decode_locale_list):
7757 * specifier.c (check_valid_domain):
7758 * specifier.c (decode_specifier_tag_set):
7759 * specifier.c (Fcanonicalize_tag_set):
7760 * specifier.c (Fdefine_specifier_tag):
7761 * specifier.c (Fspecifier_tag_predicate):
7762 * specifier.c (check_valid_inst_list):
7763 * specifier.c (check_valid_spec_list):
7764 * specifier.c (decode_how_to_add_specification):
7765 * specifier.c (check_modifiable_specifier):
7766 * specifier.c (specifier_add_spec):
7767 * specifier.c (boolean_validate):
7768 * specifier.c (display_table_validate):
7771 * specifier.c (syms_of_specifier):
7772 Move some symbols to general-slots.h.
7776 * symbols.c (Fmapatoms):
7777 * symbols.c (Fapropos_internal):
7780 * symbols.c (set_default_buffer_slot_variable):
7781 * symbols.c (set_default_console_slot_variable):
7784 * symbols.c (defsymbol_massage_name_1):
7785 * symbols.c (defkeyword_massage_name):
7786 * symbols.c (deferror_1):
7787 * symbols.c (deferror):
7788 * symbols.c (deferror_massage_name_and_message):
7790 * symeval.h (DEFSYMBOL):
7791 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7793 * symbols.c (syms_of_symbols):
7797 * symsinit.h (init_win32): New.
7798 Also new is syms_of_dialog_mswindows.
7801 Add new Unicode macros, missing Cygwin wide-char functions,
7802 convenience conversion macros for Qmswindows_tstr, macros for
7803 encapsulating required MSWin <-> Cygwin filename conversions,
7804 prototype for dynamically-extracted (not in NT 3.51) functions.
7809 * tooltalk.c (Fadd_tooltalk_message_arg):
7810 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7811 * tooltalk.c (Fadd_tooltalk_pattern_arg):
7814 * tooltalk.c (syms_of_tooltalk):
7818 * unexnt.c (unexec):
7819 Fix up headers, declaration of unexec() to be more standard.
7821 2000-07-20 Martin Buchholz <martin@xemacs.org>
7823 * offix.h: Revert change to guard macros - they're used in offix.c!
7825 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7827 * lisp.h: Defsubred Fdelete.
7829 * console-msw.h: (msprinter_default_printer): Added.
7831 * console-msw.c (msprinter_canonicalize_console_connection):
7832 (msprinter_canonicalize_device_connection): Added.
7834 * device-msw.c (msprinter_default_printer):
7835 (Fmswingows_get_default_printer):
7836 (signal_enum_priner_error):
7837 (Fmswingows_printer_list): Added.
7839 2000-07-19 Martin Buchholz <martin@xemacs.org>
7841 * XEmacs 21.2.35 is released.
7843 2000-07-19 Martin Buchholz <martin@xemacs.org>
7845 * select-x.c (x_handle_selection_request):
7846 Text selected in xemacs and pasted into xterm failed to appear.
7847 Spelling fixes and cosmetic changes.
7849 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7851 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7852 XEmacs frame (fix for doubling chars in dialog boxes).
7854 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7856 * select.c (select_convert_in, select_convert_out):
7857 Don't call intern() every time.
7859 * select.c (Qselect_convert_in, Qselect_convert_out): New.
7860 * select.c (vars_of_select): Initialise them.
7862 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7864 * select.c (selection-coercible-types): New.
7866 * select.c (own-selection-internal):
7867 * select.c (get-selection-internal):
7868 MULE bug fix - these should default to COMPOUND_TEXT and not
7869 STRING for MULE. I think.
7871 * select.c (select_convert_out): Use selection-coercible-types
7872 to find types that we can attempt to perform coercions on.
7874 2000-07-18 Martin Buchholz <martin@xemacs.org>
7878 Add coding: cookie to identify encoding.
7880 * mule-canna.c (CANNA_mode_keys): make static.
7881 Use proper prototypes, even for functions of no arguments.
7882 Remove external prototype for Fding().
7884 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7886 * select.c (syms_of_select): Add missing DEFSUBR.
7888 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7890 * select.c (get_selection_internal, own_selection_internal):
7891 Make the type default to STRING, rather than placing a nil type
7892 into Vselection_alist.
7894 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7896 * gpmevent.c (tty_selection_exists_p):
7897 * gpmevent.c (tty_own_selection):
7898 Updated parameter lists.
7900 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7902 * select.h (selection-alist): Removed declaration.
7904 * select.h (get_local_selection):
7905 * select.c (get_local_selection):
7908 * select.h (convert_selection): Removed declaration.
7909 * select.c (convert_selection): Removed.
7910 This function belongs in Lisp.
7912 * select.h (select_convert_in): Declare.
7913 * select.h (select_convert_out): Declare.
7914 * select.c (select_convert_in): New.
7915 * select.c (select_convert_out): New.
7916 New conversion functions for other files to call.
7918 * select.h (select_notify_buffer_kill): Declare.
7919 * select.c (select_notify_buffer_kill): New.
7920 New functions that get called from kill-buffer.
7922 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7923 X-specific lisp code.
7925 * select.h: Declare some of the lisp-visible functions for
7928 * select.c (clean_local_selection_data): Removed. This was
7929 a disgusting function, and previously should have been in
7930 select-x.c in any case. The functionality is now provided
7931 in select-convert-from-integer (select.el).
7933 * select.c (available-selection-types): Fixed stupidity where
7934 INTEGER and ATOM got added twice. Also add STRING when we see an
7937 * select.c (get-selection-internal): Removed symbol stripping. No
7938 longer causes conversion when data comes from the internal cache.
7940 * select.c (syms_of_select): Added new functions.
7942 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7943 error checking - previously this called abort!
7945 * select-x.c (x_own_selection): Changed comment.
7947 * select-x.c (x_handle_selection_request): Use select_convert_out.
7948 Don't mess with selection-alist; it's an internal variable of select.c.
7950 * select-x.c (x_get_foreign_selection): Use select_convert_in.
7952 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7953 rather than messing with selection-alist.
7955 * select-msw.c (mswindows_get_foreign_selection):
7956 Use TO_INTERNAL_FORMAT rather than hacking.
7958 2000-07-14 Martin Buchholz <martin@xemacs.org>
7960 * process-unix.c (unix_open_multicast_group):
7961 (unix_open_multicast_group): Remove useless casts.
7963 2000-07-13 Martin Buchholz <martin@xemacs.org>
7965 * sound.c (Fplay_sound): Fix `unused variable' warning.
7967 * emacs.c (main): Use correct type for _environ on SCO5.
7969 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7971 * console.h (own_selection_method):
7972 * console.h (selection_exists_p_method):
7973 * console.h (available_selection_types_method): New.
7974 * console.h (register_selection_data_type_method): New.
7975 * console.h (selection_data_type_name): New.
7977 * console-msw.h (mswindows_destroy_selection): Declare it. New
7978 function & alist to track GlobalAlloc()'d handles that need
7979 releasing when the clipboard data gets replaced or emptied.
7981 * event-msw.c (mswindows_wnd_proc): Call it.
7983 * lisp.h, general.c (Qappend): New symbol representing a
7986 * select.c (own-selection-internal):
7987 * select.c (selection-exists-p):
7988 * select.c (available-selection-types): New.
7989 * select.c (register-selection-data-type): New.
7990 * select.c (selection-data-type-name): New. New functions to deal
7991 with device-specific selection data formats.
7992 * select.c (selection-converter-out-alist): Renamed.
7993 * select.c (selection-converter-in-alist): New.
7994 * select.c (selection-appender-alist): New. Added new alists.
7995 * select.c (syms_of_select, vars_of_select): Added new symbols &
7997 * select.c (get_local_selection): Split.
7998 * select.c: Removed spurious type checking - selections may now be
7999 of any type, not just strings.
8000 * select.c (own-selection-internal):
8002 * select.h, select.c (convert_selection): New. Created
8003 convert_selection() function based on get_local_selection().
8004 * select.h, select.c (QCF_*): New symbols representing mswindows
8006 * select.h, select.c (Qreplace_all, Qreplace_existing): New
8007 symbols representing `how-to-add' modes.
8009 * select-msw.c (x_sym_p): New.
8010 * select-msw.c (symbol_to_ms_cf): New.
8011 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
8012 symbols & clipboard formats. Can also handle string names.
8013 * select-msw.c (mswindows_own_selection):
8014 * select-msw.c (mswindows_selection_exists_p):
8015 Added `data-type' parameter. Use it.
8016 * select-msw.c (mswindows_available_selection_types): New.
8017 * select-msw.c (mswindows_register_selection_data_type): New.
8018 * select-msw.c (mswindows_selection_data_type_name): New.
8019 * select-msw.c (mswindows_own_selection):
8020 * select-msw.c (mswindows_get_foreign_selection):
8021 * select-msw.c (mswindows_selection_exists_p): Rewrote.
8022 * select-msw.c (console_create_select_mswindows): Added new methods.
8023 * select-msw.c (mswindows_destroy_selection): New.
8024 * select-msw.c (Vhandle_alist): New list.
8025 * select-msw.c (mswindows_own_selection):
8027 * select-x.c (x_own_selection):
8028 * select-x.c (x_selection_exists_p):
8029 * select-x.c: Added some comments about maybe using new
8031 * select-x.c (x_own_selection):
8033 * specifier.c: Remove definition of Qappend (now in general.c)
8034 * specifier.c (syms_of_specifier): Remove Qappend.
8036 2000-07-12 Martin Buchholz <martin@xemacs.org>
8038 * config.h.in: Add socklen_t.
8040 * s/decosf4-0.h: No special compiler flags needed or desired.
8041 In particular, undefine _BSD for DEC OSF 4.0.
8043 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8045 * redisplay-msw.c (msprinter_frame_output_end): Added.
8046 (console_type_create_redisplay_mswindows): Referred the above.
8048 * frame.c (setup_frame_without_minibuffer): Do not create a
8049 default minibuffer frame on a printer device.
8051 * frame-msw.c (apply_dc_geometry): Added.
8052 (msprinter_start_page):
8053 (msprinter_init_frame_3):
8054 (msprinter_eject_page): Use it.
8056 * console-msw.h (struct msprinter_frame): Added pix_left and top,
8057 and removed residual duplex and orientation properties.
8059 2000-07-11 Martin Buchholz <martin@xemacs.org>
8061 * eval.c (function_argcount): Work around a DEC CC compiler bug.
8063 * unexalpha.c: Remove system prototypes from C sources!
8065 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
8067 * eval.c: Remove references to M-x edit-options in DEFUNs for
8068 `defvar' and `defconst'.
8070 2000-07-09 Martin Buchholz <martin@xemacs.org>
8072 * config.h.in: Remove SMART_INCLUDE hackery.
8075 * config.h.in: Don't use SMART_INCLUDE.
8077 * postgresql.h: Include libpq-fe.h here. Fix typo.
8078 * inline.c: Simply #include "postgresql.h"
8080 - Don't use SMART_INCLUDE
8081 - Use simply "const".
8082 - Use standard doc string conventions.
8083 - Use correct type for result of PQstatus.
8085 2000-07-09 Martin Buchholz <martin@xemacs.org>
8087 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
8089 C++ compilation changes.
8090 * config.h.in (EXTERN_C): Define.
8091 * config.h.in (not): This is also a C++ keyword.
8092 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8093 * cm.c: Use EXTERN_C.
8094 * redisplay-tty.c: Use EXTERN_C.
8095 * sysdep.c: Use EXTERN_C. Remove Gould support.
8097 2000-07-09 Martin Buchholz <martin@xemacs.org>
8099 * general.c: Remove duplicate definition for Qfunction.
8101 2000-07-08 Ben Wing <ben@xemacs.org>
8103 * device-msw.c (msprinter_init_device):
8104 * device-msw.c (sync_printer_with_devmode):
8105 * device-msw.c (handle_devmode_changes):
8106 * device-msw.c (print_dialog_worker):
8107 * device-msw.c (Fmsprinter_apply_settings):
8108 * device-msw.c (hash_devmode):
8109 * device-msw.c (Fmsprinter_settings_despecialize):
8110 use Qmswindows_tstr, not Qctext.
8112 * vm-limit.c (check_memory_limits):
8113 avoid infinite loop printing warning messages.
8115 2000-07-05 Craig Lanning <lanning@scra.org>
8117 * Makefile.in.in: Add support for including the Windows resources
8118 when building with the cygwin and mingw targets.
8120 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8121 not set or not correct.
8122 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8123 (init_initial_directory): Don't try to use $PWD on the
8124 WIN32_NATIVE target.
8127 [[Add -mwindows to eliminate console window.]] not required --ben
8128 (HAVE_NATIVE_SOUND): removed; now handled by configure.
8129 (MAIL_USE_POP): removed; now handled by configure.
8131 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8132 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8133 (HAVE_NATIVE_SOUND): removed; now handled by configure.
8134 (MAIL_USE_POP): removed; now handled by configure.
8135 (ENCAPSULATE_STAT): from Dan Holmsand, added.
8136 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8137 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8139 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8140 up from <winsock.h> via systime.h.
8141 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8142 (getpagesize): from Dan Holmsand, added.
8143 Added #endif which was left dangling by Ben's mega patch; added
8144 comment to help prevent this in the future.
8146 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8148 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8150 * console-msw.h (struct mswindows_device): Removed unnecessary
8151 cached device geometry values.
8152 Added update_tick and an accessor macro.
8153 (Lisp_Devmode): Added lrecord declaration.
8154 (struct msprinter_device): Contain devmode as a Lisp object.
8155 Added mswindows_get_selected_frame_hwnd();
8157 * console.h (struct console_methods): Indentation nitpicking.
8159 * device-msw.c (mswindows_init_device): Do not initialize geometry
8160 cache. Initialize update tick.
8161 (mswindows_device_system_metrics): Ask the device for its geometry.
8162 (global_free_2_maybe):
8163 (devmode_to_hglobal):
8164 (handle_printer_changes):
8165 (ensure_not_printing):
8166 (print_dialog_worker):
8167 (Fmsprinter_print_setup_dialog):
8168 (Fmsprinter_print_dialog):
8171 (Fmsprinter_page_setup_dialog): Added functions.
8172 (sync_printer_with_devmode):
8173 (handle_devmode_changes):
8174 (Fmsprinter_get_settings):
8175 (Fmsprinter_select_settings):
8176 (Fmsprinter_apply_settings):
8178 (Fmsprinter_settings_copy):
8179 (Fmsprinter_settings_despecialize):
8183 (hash_devmode): Added functions
8184 (syms_of_device_mswindows): Init devmode lrecord class.
8186 * device.h: Added an exfun for find-device.
8188 * event-msw.c (mswindows_wnd_proc): Do not update the cached
8189 geometry; although, recreate the device compatible DC.
8191 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8192 (msprinter_init_frame_3):
8193 (msprinter_frame_property):
8194 (msprinter_internal_frame_property_p):
8195 (msprinter_frame_properties):
8196 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8197 print job properties (will move to device settings).
8199 * lisp.h: Added symbols.
8201 * general.c (syms_of_general): Declared them.
8203 * hash.c (string_hash): Added.
8205 * lrecord.h (lrecord_type): Added devmode lrecord type.
8207 2000-07-02 Mike Sperber <mike@xemacs.org>
8209 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8212 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
8214 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8217 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
8219 * data.c (Fstring_to_number): Don't recognize floating point if
8222 2000-06-22 Martin Buchholz <martin@xemacs.org>
8224 * glyphs-widget.c (tab_control_query_geometry):
8225 (widget_query_geometry):
8226 (button_query_geometry):
8227 * glyphs.c (text_query_geometry):
8228 Enforce type correctness.
8230 2000-06-18 Martin Buchholz <martin@xemacs.org>
8232 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8233 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8235 2000-06-17 Martin Buchholz <martin@xemacs.org>
8237 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8238 conflicts with gcc's fixincluded version of FOO.h.
8240 * glyphs.h (image_instance_geometry): Remove trailing `,'
8242 2000-06-08 Mike Alexander <mta@arbortext.com>
8244 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8245 (shove_thread): Don't write the same output twice
8246 (make_ntpipe_output_stream): Increase priority of shove thread
8247 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8249 (ntpipe_shove_closer): Don't delete the pipe until we're done with
8252 2000-06-12 Ben Wing <ben@xemacs.org>
8254 * s\mingw32.h (sigset):
8255 * s\windowsnt.h (sigset):
8256 rename msw_ to mswindows_ for consistency with general convention.
8258 2000-06-12 Ben Wing <ben@xemacs.org>
8261 * console-msw.c (mswindows_get_console_hwnd):
8262 * console-msw.c (mswindows_ensure_console_allocated):
8263 * console-msw.c (mswindows_hide_console):
8264 * console-msw.c (mswindows_show_console):
8265 * console-msw.c (mswindows_ensure_console_buffered):
8266 * console-msw.c (mswindows_output_console_string):
8267 * console-msw.c (mswindows_windows9x_p):
8269 * device-msw.c (mswindows_get_workspace_coords):
8270 * device-msw.c (mswindows_device_system_metrics):
8271 * dialog-msw.c (mswindows_popup_dialog_box):
8272 * event-msw.c (mswindows_wnd_proc):
8273 * frame-msw.c (mswindows_size_frame_internal):
8274 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8275 * menubar-msw.c (displayable_menu_item):
8276 * menubar-msw.c (mswindows_char_is_accelerator):
8278 * nt.c (mswindows_sigset):
8279 * nt.c (mswindows_sigrelse):
8280 * nt.c (mswindows_sigpause):
8281 * nt.c (mswindows_raise):
8282 * nt.c (timer_proc):
8284 * ntproc.c (find_child_console):
8285 * ntproc.c (sys_kill):
8287 * print.c (std_handle_out_external):
8288 * process-nt.c (find_child_console):
8289 * process-nt.c (send_signal_the_95_way):
8290 * process-nt.c (ensure_console_window_exists):
8291 * process-nt.c (nt_create_process):
8293 rename msw_ to mswindows_ for consistency with general convention.
8297 include nt.h, not syswindows.h.
8299 * nt.c (mswindows_fstat):
8300 * nt.c (mswindows_stat):
8301 prefix mswindows_ instead of attempting to directly override the
8302 library functions. fix declarations.
8305 include syswindows.h. move some sysdep.h stuff here.
8308 include syswindows.h, not <windows.h>.
8316 * sysdep.c (sys_fstat):
8317 * sysdep.c (sys_stat):
8318 call mswindows versions when appropriate.
8321 move mswin decls to nt.h.
8324 add long comment describing appropriate use of the various windows
8327 2000-06-11 Ben Wing <ben@xemacs.org>
8329 * device-x.c: Correct doc string for sixth arg of x-get-resource.
8331 2000-06-10 Ben Wing <ben@xemacs.org>
8333 * Makefile.in.in (release):
8334 Correction to make sure xemacs.exe always dumped when correct.
8338 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8340 * buffer.c (set_buffer_internal):
8341 [[[[2]]]]: Remove HAVE_FEP code.
8343 * buffer.c (init_initial_directory):
8347 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8351 * callproc.c (call_process_cleanup):
8352 * callproc.c (Fold_call_process_internal):
8353 * callproc.c (child_setup):
8354 * callproc.c (getenv_internal):
8355 * callproc.c (init_callproc):
8356 * callproc.c (vars_of_callproc):
8357 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8358 __CYGWIN32__ -> CYGWIN.
8359 DOS_NT -> WIN32_NATIVE.
8360 Remove MSDOS support/references, converting to WIN32_NATIVE
8362 __MINGW32__ -> MINGW.
8363 Fix windows.h includes.
8364 Remove bogus HAVE_NTGUI.
8370 mswindows_message_outputted added for use in allowing startup
8371 errors on the console to be seen.
8373 * console-msw.c (msw_ensure_console_allocated):
8374 * console-msw.c (msw_output_console_string):
8375 * console-msw.c (DHEADER):
8376 * console-msw.c (DOPAQUE_DATA):
8377 * console-msw.c (DEVENT):
8378 * console-msw.c (DCONS):
8379 * console-msw.c (DCONSCDR):
8380 * console-msw.c (DSTRING):
8381 * console-msw.c (DVECTOR):
8382 * console-msw.c (DSYMBOL):
8383 * console-msw.c (DSYMNAME):
8386 * console-stream.c (stream_init_console):
8387 Fix text/binary problems.
8390 * device-msw.c (mswindows_finish_init_device):
8391 * device-msw.c (mswindows_delete_device):
8394 * device.c (handle_asynch_device_change):
8398 * dgif_lib.c (DGifOpenFileName):
8399 * dgif_lib.c (DGifOpenFileHandle):
8400 * dgif_lib.c (DGifGetLine):
8401 * dgif_lib.c (DGifGetPixel):
8402 Added config.h/lisp.h, fix up includes.
8409 * dired.c (file_name_completion):
8410 * dired.c (Ffile_attributes):
8411 * dired.c (syms_of_dired):
8415 * dumper.c (pdump_file_unmap):
8416 * dumper.c (pdump_load):
8420 * editfns.c (Ftemp_directory):
8421 * editfns.c (user_login_name):
8422 * editfns.c (Fuser_real_login_name):
8423 * editfns.c (get_home_directory):
8426 * elhash.c (finish_marking_weak_hash_tables):
8427 [[[[5]]]]: Fix GCC warnings.
8430 * emacs.c (mswindows_handle_hardware_exceptions):
8431 * emacs.c (make_arg_list_1):
8433 * emacs.c (Fkill_emacs):
8434 * emacs.c (Fdump_emacs):
8436 Fix problems with nested crashes, add long comment.
8438 * event-Xt.c (init_event_Xt_late):
8442 * event-msw.c (mswindows_dde_callback):
8443 * event-msw.c (mswindows_handle_sticky_modifiers):
8444 * event-msw.c (mswindows_wnd_proc):
8448 * events.c (character_to_event):
8452 * fileio.c (Ffile_name_directory):
8453 * fileio.c (Ffile_name_nondirectory):
8454 * fileio.c (directory_file_name):
8455 * fileio.c (Fexpand_file_name):
8456 * fileio.c (Fsubstitute_in_file_name):
8457 * fileio.c (Ffile_name_absolute_p):
8458 * fileio.c (check_executable):
8459 * fileio.c (Ffile_readable_p):
8460 * fileio.c (Ffile_accessible_directory_p):
8461 * fileio.c (Ffile_modes):
8462 * fileio.c (Funix_sync):
8463 * fileio.c (vars_of_fileio):
8466 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8468 Expand getdefdir defn.
8469 Fix bogus rename() comment.
8471 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
8472 to use standard XEmacs include files, e.g. sysfile.h, rather
8473 than system-specific includes.
8479 * frame.c (vars_of_frame):
8483 * getloadavg.c (getloadavg):
8485 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
8486 (We don't use it elsewhere in the code; just add a comment.)
8493 * glyphs-msw.c (mswindows_resource_instantiate):
8496 * glyphs-x.c (x_native_layout_instantiate):
8499 * gui-msw.c (Fmswindows_shell_execute):
8508 * lread.c (locate_file_in_directory_mapper):
8515 * mem-limits.h (get_lim_data):
8527 * nt.c (rva_to_section):
8528 * nt.c (mswindows_executable_type):
8530 Fix closedir() defn.
8533 [[[[8]]]]: *_OK defs moved to sysfile.h.
8542 * print.c (std_handle_out_external):
8546 * process-nt.c (nt_create_process):
8548 try to fix process quoting somewhat.
8550 * process-unix.c (unix_create_process):
8554 * process.c (vars_of_process):
8561 * realpath.c (xrealpath):
8564 * redisplay-tty.c (init_tty_for_redisplay):
8574 * sheap.c (more_static_core):
8575 * sheap.c (report_sheap_usage):
8579 * signal.c (alarm_signal):
8586 * strftime.c (zone_name):
8589 * symsinit.h (init_sunpro):
8593 commctrl.h not in Cygwin b20.1.
8597 * sysdep.c (sys_subshell):
8598 * sysdep.c (init_baud_rate):
8599 * sysdep.c (emacs_get_tty):
8600 * sysdep.c (emacs_set_tty):
8601 * sysdep.c (tty_init_sys_modes_on_device):
8602 * sysdep.c (init_system_name):
8603 * sysdep.c (sys_open):
8604 * sysdep.c (interruptible_open):
8605 * sysdep.c (sys_fopen):
8606 * sysdep.c (sys_mkdir):
8607 * sysdep.c (sys_rename):
8608 * sysdep.c (get_process_times_1):
8615 * sysdir.h (DIRENTRY_NONEMPTY):
8618 * sysdll.c (dll_init):
8624 added text/binary defs.
8630 * sysproc.h (EDESTADDRREQ):
8631 * sysproc.h (poll_fds_for_input):
8648 Always define WIN32_LEAN_AND_MEAN.
8650 * unexcw.c (unexec):
8654 * unexec.c (copy_text_and_data):
8655 * unexec.c (adjust_lnnoptrs):
8659 * unexnt.c (_start):
8662 2000-06-07 Ben Wing <ben@xemacs.org>
8664 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
8665 was used only as a model. We've long since extracted any useful
8666 logic or code out of this. (I just did an exhaustive search.)
8668 * s\msdos.h: Removed.
8670 * s\windows95.h: Removed.
8672 2000-06-10 Ben Wing <ben@xemacs.org>
8676 Don't use extern with fun defs.
8680 Remove nt\inc include.
8681 Remove getdisk, getdefdir. (The former is unused, the latter
8682 expanded in fileio.h.)
8685 * s\windowsnt.h (WIN32_NATIVE):
8686 * s\windowsnt.h (HAVE_STRCASECMP):
8688 Add long comment about preprocessor changes.
8689 Remove getdisk, getdefdir. (The former is unused, the latter
8690 expanded in fileio.h.)
8692 2000-06-10 Ben Wing <ben@xemacs.org>
8701 Remove bogus/unused NO_SOCK_SIGIO.
8703 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
8705 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8708 2000-06-04 Mike Sperber <mike@xemacs.org>
8710 * casetab.c (set_case_table): For `set-standard-case-table',
8711 actually deposit the new case tables where the rest of XEmacs can
8714 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
8716 * data.c (Faset): Don't cast XCHAR() to unsigned char.
8718 2000-06-05 Ben Wing <ben@xemacs.org>
8720 * callproc.c (child_setup): Don't do close_load_descs() under
8721 MS Windows. Put in a comment explaining why.
8723 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
8725 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8726 Toolkit shell" which breaks `kill-compilation' on Windows NT
8727 native, retaining STDERR handling improvements.
8729 2000-06-01 Andreas Jaeger <aj@suse.de>
8731 * s/s390.h: Support for S390, based on a patch by Martin
8732 Schwidefsky <schwidefsky@de.ibm.com>.
8734 2000-05-30 Andy Piper <andy@xemacs.org>
8736 * window.c (allocate_window):
8737 (make_dummy_parent):
8738 (Fset_window_configuration): use new hashtable type.
8740 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8741 (struct image_instantiator_methods):
8742 (struct Lisp_Image_Instance): make instance geometry signed.
8744 * glyphs.c (instantiate_image_instantiator):
8745 (image_instance_query_geometry):
8746 (image_instance_layout):
8747 (image_instance_layout):
8748 (query_string_geometry):
8749 (text_query_geometry):
8750 (image_instantiate):
8751 (image_instantiate):
8752 (cache_subwindow_instance_in_frame_maybe):
8753 (subwindow_query_geometry): make instance geometry signed.
8755 * glyphs-widget.c (widget_query_geometry):
8757 (button_query_geometry):
8758 (tree_view_query_geometry):
8759 (tab_control_query_geometry):
8760 (layout_query_geometry):
8762 (native_layout_layout): make instance geometry signed.
8764 2000-05-29 Olivier Galibert <galibert@pobox.com>
8766 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8769 * general.c (syms_of_general): Add Qfull_assoc symbol.
8771 * data.c (finish_marking_weak_lists): Mark full-assoc lists
8773 (decode_weak_list_type): Decode full-assoc type.
8774 (encode_weak_list_type): Encode full-assoc type.
8775 (Fmake_weak_list): Update doc string.
8777 2000-05-30 Andy Piper <andy@xemacs.org>
8779 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8781 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8782 (decode_hash_table_weakness): ditto.
8783 (Fhash_table_weakness): ditto.
8784 (Fhash_table_type): ditto.
8785 (finish_marking_weak_hash_tables): ditto.
8786 (hash_table_weakness_validate): ditto.
8787 (syms_of_elhash): ditto.
8789 2000-05-28 Martin Buchholz <martin@xemacs.org>
8791 * XEmacs 21.2.34 is released.
8793 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8795 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8797 (updating_line_start_cache): Gone.
8798 (regenerate_window): Replace resetting of VERTICAL_CLIP by
8799 generic code to force a minimum of 1 line laid out in the
8802 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8804 * glyphs.c (instantiate_image_instantiator): Check for initialized
8805 height & width no longer special cases IMAGE_NOTHING.
8806 (nothing_instantiate): Set height and width of instance.
8808 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8810 * unexelf.c (unexec): Search for ".data" section.
8811 Initialize new_data2_offset from old_data_index.
8812 Remove redundant check for ElfW.
8814 2000-05-23 Andy Piper <andy@xemacs.org>
8816 * glyphs.c (get_image_instantiator_governing_domain): allow more
8817 specific domains as the governing domain rather than expecting an
8818 exact match. This fixes problems with layouts.
8820 2000-05-22 Andy Piper <andy@xemacs.org>
8822 * redisplay-output.c (compare_runes): check for non-images
8824 * glyphs.c (set_glyph_dirty_p): ditto.
8825 (update_glyph_cachel_data): ditto.
8827 * glyphs-widget.c (layout_post_instantiate): ditto.
8828 (layout_post_instantiate): ditto.
8830 * event-msw.c (mswindows_wnd_proc): warning removal.
8832 2000-05-12 Craig Lanning <CraigL@DyCon.com>
8834 * s\mingw32.h: Added #undef for CLASH_DETECTION.
8836 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8838 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8840 * nt.c (rva_to_section): mingw32 needs rva_to_section.
8841 (mswindows_executable_type): mingw32 now has enough headers for
8844 2000-05-20 Andy Piper <andy@xemacs.org>
8846 * console-msw.c (mswindows_output_last_error): ; -> ,
8848 2000-05-12 Andy Piper <andy@xemacs.org>
8850 * console-msw.c (FROB): compare ints with ints.
8852 2000-05-11 Andy Piper <andy@xemacs.org>
8854 * glyphs-x.c (x_finalize_image_instance): make minimal build
8857 2000-05-20 Ben Wing <ben@xemacs.org>
8860 * event-Xt.c (vars_of_event_Xt):
8861 move modifier-keys-are-sticky to event-stream.c.
8864 * event-msw.c (mswindows_enqueue_mouse_button_event):
8865 * event-msw.c (key_needs_default_processing_p):
8866 * event-msw.c (XEMSW_LCONTROL):
8867 * event-msw.c (mswindows_handle_sticky_modifiers):
8868 * event-msw.c (FROB):
8869 * event-msw.c (clear_sticky_modifiers):
8870 * event-msw.c (output_modifier_keyboard_state):
8871 * event-msw.c (output_alt_keyboard_state):
8872 * event-msw.c (mswindows_wnd_proc):
8873 * event-msw.c (mswindows_modifier_state):
8874 * event-msw.c (emacs_mswindows_handle_magic_event):
8875 implement sticky modifiers.
8878 * event-stream.c (vars_of_event_stream):
8879 move modifier-keys-are-sticky here.
8885 implement map-range-table.
8888 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
8890 * redisplay-tty.c (reset_tty_modes):
8891 (tty_redisplay_shutdown): Adjust argument type to
8892 tty_frame_output_end.
8894 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8896 * eval.c (Fbacktrace): Don't output a line with only right
8899 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
8901 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8902 (Fpq_reset_poll): Ditto.
8904 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
8906 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8908 2000-05-16 Ben Wing <ben@xemacs.org>
8911 * buffer.c (dfc_convert_to/from_internal_format):
8912 * buffer.c (reinit_vars_of_buffer):
8913 Fix conversion functions to allow reentrancy.
8916 * console-msw.c (mswindows_output_last_error):
8917 New fun, generally useful -- output a human-readable
8918 version of GetLastError() on the console.
8921 * console-msw.h (struct mswindows_frame):
8922 Changes for DeferWindowPos. Declare mswindows_output_last_error().
8924 * console-stream.c (stream_output_begin):
8925 * console-stream.c (stream_output_end):
8926 * console-stream.c (stream_output_vertical_divider):
8927 * console-stream.c (stream_clear_region):
8928 * console-stream.c (stream_flash):
8929 * console-stream.c (console_type_create_stream):
8930 Delete blank stream methods, not needed.
8932 * console.h (struct console_methods):
8933 Split begin/end methods into window and frame.
8936 * event-msw.c (mswindows_handle_paint):
8937 * event-msw.c (output_alt_keyboard_state):
8938 * event-msw.c (mswindows_wnd_proc):
8939 * event-msw.c (vars_of_event_mswindows):
8940 Comment about problems with ignored-expose.
8941 Define mswindows-debug-events; not really implemented.
8943 * frame-msw.c (mswindows_init_frame_1):
8947 * glyphs-msw.c (begin_defer_window_pos):
8948 * glyphs-msw.c (mswindows_unmap_subwindow):
8949 * glyphs-msw.c (mswindows_map_subwindow):
8950 * glyphs-msw.c (mswindows_resize_subwindow):
8951 Use DeferWindowPos to reduce flashing when mapping/unmapping.
8953 * glyphs.c (make_image_instance_1):
8956 * gutter.c (Fredisplay_gutter_area):
8957 Use new begin/end methods.
8959 * lisp.h (Dynarr_new2):
8963 * redisplay-msw.c (mswindows_frame_output_begin):
8964 * redisplay-msw.c (mswindows_frame_output_end):
8965 * redisplay-msw.c (console_type_create_redisplay_mswindows):
8966 New begin/end methods -- handle DeferWindowPos.
8968 * redisplay-output.c (redisplay_move_cursor):
8969 * redisplay-output.c (redraw_cursor_in_window):
8970 * redisplay-output.c (redisplay_update_line):
8971 * redisplay-output.c (redisplay_output_window):
8972 New begin/end methods.
8975 * redisplay-tty.c (tty_frame_output_begin):
8976 * redisplay-tty.c (tty_frame_output_end):
8977 * redisplay-tty.c (console_type_create_redisplay_tty):
8978 New begin/end methods.
8981 * redisplay-x.c (x_window_output_begin):
8982 * redisplay-x.c (x_window_output_end):
8983 * redisplay-x.c (console_type_create_redisplay_x):
8984 New begin/end methods.
8986 * redisplay.c (redisplay_frame):
8987 * redisplay.c (Fredisplay_echo_area):
8988 New begin/end methods.
8989 use MAYBE_DEVMETH for clear_frame; it may not exist.
8991 * window.h (WINDOW_XFRAME):
8992 WINDOW_XFOO macros -- get locale and decode struct pointer.
8995 2000-05-12 Ben Wing <ben@xemacs.org>
8998 * emacs.c (ensure_no_quitting_from_now_on):
8999 * emacs.c (fatal_error_signal):
9000 * emacs.c (mswindows_handle_hardware_exceptions):
9002 * emacs.c (Fkill_emacs):
9003 * emacs.c (shut_down_emacs):
9004 * emacs.c (assert_failed):
9005 various improvements in fatal error handling.
9008 move preparing_for_armageddon to emacs.c.
9011 declare fatal_error_in_progress.
9014 * print.c (std_handle_out_external):
9015 * print.c (std_handle_out_va):
9016 * print.c (stderr_out):
9017 * print.c (stdout_out):
9018 use console under mswin when no standard output.
9019 don't do code conversion during fatal error.
9021 * scrollbar.c (Fscrollbar_page_up):
9022 * scrollbar.c (Fscrollbar_page_down):
9023 fix missing else. reindent.
9025 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
9029 * glyphs.h (GLYPH_CACHEL_DESCENT):
9030 (GLYPH_CACHEL_DESCENT):
9031 (GLYPH_CACHEL_DESCENT):
9032 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
9033 used in case these are inline functions.
9034 Use more absurd values to error check.
9036 include window.h for error check functions.
9038 2000-05-11 Ben Wing <ben@xemacs.org>
9040 * cmdloop.c (Freally_early_error_handler):
9041 Display message box under windows; otherwise, message will disappear
9042 before it can be viewed.
9045 * console-msw.c (Fmswindows_message_box):
9046 * console-msw.c (FROB):
9047 * console-msw.c (syms_of_console_mswindows):
9048 Define new fun `mswindows-message-box'.
9049 #### I will merge this into `popup-dialog-box'; just give me
9053 * general.c (syms_of_general):
9054 Some new symbols used in `mswindows-message-box'.
9057 * glyphs.c (Fset_image_instance_property):
9058 put warning in this fun.
9061 * glyphs.h (GLYPH_CACHEL_WIDTH):
9062 * glyphs.h (GLYPH_CACHEL_ASCENT):
9063 * glyphs.h (GLYPH_CACHEL):
9064 * glyphs.h (GLYPH_CACHEL_GLYPH):
9065 define error-checking versions to try to catch a bug i've seen --
9066 redisplay gets in an infinite loop because the glyph width of the
9067 continuation glyph is 65535.
9070 Extern message-box stuff.
9072 * window.c (allocate_window):
9073 * window.c (make_dummy_parent):
9074 * window.c (Fset_window_configuration):
9075 Use EQUAL not EQ for subwindow caches to make them work a bit
9076 better. (Something is still very broken.)
9079 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
9081 * glyphs.c (image_instantiate): Suppress gcc warnings.
9082 (Fmake_image_instance): Fix doc string.
9083 * specifier.c (Fmake_specifier): Ditto.
9085 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
9087 * paths.h.in (PATH_LOCK): Removed.
9088 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
9089 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
9091 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
9093 * fns.c (Ffeaturep): Update e-mail address in doc-string.
9094 Document (featurep '(and xemacs 21.02)).
9096 2000-05-09 Ben Wing <ben@xemacs.org>
9098 * buffer.c (complex_vars_of_buffer):
9099 update modeline-format doc.
9102 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9105 timeline of all released versions of Emacs, for use in creating
9106 authorship comments and in synching up.
9108 * glyphs-widget.c (image_instantiator_buttons):
9109 * glyphs-widget.c (image_instantiator_edit_fields):
9110 * glyphs-widget.c (image_instantiator_combo_box):
9111 * glyphs-widget.c (image_instantiator_scrollbar):
9112 * glyphs-widget.c (image_instantiator_progress_guage):
9113 * glyphs-widget.c (image_instantiator_tree_view):
9114 * glyphs-widget.c (image_instantiator_tab_control):
9115 * glyphs-widget.c (image_instantiator_labels):
9116 * glyphs-widget.c (image_instantiator_layout):
9117 * glyphs-widget.c (image_instantiator_native_layout):
9118 rename decode_domain method to governing_domain.
9121 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9122 * glyphs.c (add_entry_to_device_ii_format_list):
9123 make sure we don't put an entry more than once into the list.
9124 * glyphs.c (check_instance_cache_mapper):
9125 *************************************************************
9126 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9128 *************************************************************
9129 * glyphs.c (get_image_instantiator_governing_domain):
9130 clean up, expand on new concept of governing domain.
9131 * glyphs.c (instantiate_image_instantiator):
9132 * glyphs.c (allocate_image_instance):
9133 use governing_domain instead of cache_domain in naming.
9134 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9135 * glyphs.c (make_image_instance_1):
9136 * glyphs.c (Fmake_image_instance):
9137 allow for any domain (not just device), and process the
9138 governing domain correctly. very big doc fix.
9139 * glyphs.c (Fimage_instance_domain):
9140 new primitive, to retrieve the governing domain of an image instance.
9141 * glyphs.c (image_instantiate):
9142 use new governing_domain stuff. this fixes a crash you could get
9143 by instantiating certain widget glyphs in frame locales. (should
9144 signal an error instead of crashing.)
9145 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9146 * glyphs.c (Fglyphp): clean up doc.
9147 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9148 * glyphs.c (syms_of_glyphs):
9149 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9150 * glyphs.c (image_instantiator_format_create): add some comments about
9152 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9153 for current-display-table. (Apparently Hrjove implemented in 1998 a
9154 design I wrote up in 1996, but didn't update the doc string.)
9156 * glyphs.h: clean up a doc string.
9157 * glyphs.h (governing_domain):
9158 * glyphs.h (struct image_instantiator_methods):
9159 changes for governing_domain stuff.
9162 * gutter.c (Fgutter_specifier_p):
9163 * gutter.c (Fgutter_size_specifier_p):
9164 * gutter.c (Fgutter_visible_specifier_p):
9166 * objects.c (Fcolor_specifier_p):
9167 * objects.c (Ffont_specifier_p):
9168 * objects.c (Fface_boolean_specifier_p):
9169 doc strings moved to make-*-specifier.
9171 * redisplay.c (add_disp_table_entry_runes_1):
9172 * redisplay.c (generate_fstring_runes):
9173 * redisplay.c (screen):
9174 add random comments and doc strings.
9177 * specifier.c (Fmake_specifier):
9178 major overhaul of this doc string.
9180 * specifier.c (Fvalid_specifier_domain_p):
9181 comment about the bogosity of image instances being domains.
9182 * specifier.c (decode_domain):
9183 now non-static, used in glyphs.c.
9184 * specifier.c (specifier_instance):
9185 comment about the bogosity of image instances being domains.
9186 * specifier.c (Fgeneric_specifier_p):
9187 move doc string to make-generic-specifier.
9188 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9192 * specifier.h (DOMAIN_FRAME):
9193 * specifier.h (DOMAIN_LIVE_P):
9194 * specifier.h (DOMAIN_XDEVICE):
9196 add comments about problems with these macros.
9197 prototype for decode_domain.
9200 * toolbar.c (Ftoolbar_specifier_p):
9201 move doc string to `make-toolbar-specifier'.
9203 * window.c (window_unmap_subwindows_cache_mapper):
9204 *************************************************************
9205 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9207 *************************************************************
9209 2000-05-09 Andy Piper <andy@xemacs.org>
9211 * glyphs.h: declare reset_frame_subwindow_instance_cache.
9213 * window.c (Fset_window_configuration): reset the frame subwindow
9214 cache and re-initialize the window subwindow caches.
9216 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9218 2000-05-09 Ben Wing <ben@xemacs.org>
9220 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9223 2000-04-26 Mike Woolley <mike@bulsara.com>
9225 * ntheap.c: Changed recreate_heap to limit the amount reserved
9226 for the heap to that which is actually available. Also now
9227 displays a message box (with some dignostics) in the event that
9228 it still can't start.
9230 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
9232 * callproc.c (Fold_call_process_internal): GCPRO path
9234 2000-05-08 Jan Vroonhof <jan@xemacs.org>
9236 Patch by Bill Perry.
9238 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9239 back data instead of #ifdef.
9240 (Fscrollbar_page_down): ditto.
9242 2000-05-07 Ben Wing <ben@xemacs.org>
9245 Kludge for defining Qmswindows_tstr.
9248 * nt.c (open_input_file):
9249 * nt.c (open_output_file):
9250 * nt.c (rva_to_section):
9251 * nt.c (mswindows_executable_type):
9252 Move all memory-mapped-file routines here (some were in unexnt.c,
9253 which is bad because they are used by process-nt.c, and unexnt
9254 won't be around when portable dumping). Synched the above routines
9258 Removed ifdef'd out bogus code.
9259 Fixed some prototypes.
9262 * nt.h (OFFSET_TO_RVA):
9263 * nt.h (RVA_TO_OFFSET):
9264 * nt.h (RVA_TO_PTR):
9265 Moved the memory-mapped-file structures, macros and prototypes
9266 here, to parallel nt.c. ntheap.h should really be removed
9267 entirely, and it's a non-portable-dumper specific file.
9269 * ntheap.h (round_to_next):
9270 Moved the memory-mapped-file structures, macros and prototypes
9273 * ntproc.c (compare_env):
9274 Moved rva_to_section and mswindows_executable_type to nt.c.
9275 Moved compare_env to process-nt.c.
9276 ntproc.c will die, one day.
9278 * ntproc.c (sys_spawnve):
9279 Account for win32_ -> mswindows_.
9282 * process-nt.c (struct nt_process_data):
9283 * process-nt.c (ensure_console_window_exists):
9284 * process-nt.c (compare_env):
9285 * process-nt.c (nt_create_process):
9286 * process-nt.c (nt_kill_process_by_pid):
9287 * process-nt.c (syms_of_process_nt):
9288 * process-nt.c (vars_of_process_nt):
9289 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9290 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9291 changes). Eliminate our old `nt-quote-process-args' mechanism.
9292 Synch up nt_create_process with FSF 20.6 sys_spawnve.
9293 Move compare_env here from ntproc.c.
9295 * process.c (Fprocess_send_region):
9296 Takes an optional fourth argument, BUFFER, which should fix some
9297 problems with call-process.
9300 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9303 Move ICC_BAR_CLASSES to syscommctrl.h.
9304 Add preliminary macros for MSWindows/Mule. More to come.
9307 * unexnt.c (unexec):
9308 open_output_file moved to nt.c.
9311 2000-05-05 Andy Piper <andy@xemacs.org>
9313 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9314 instance from the frame cache also since GC may catch up too late
9315 to make frame deletion sane.
9317 2000-05-04 Andy Piper <andy@xemacs.org>
9319 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9320 (x_finalize_image_instance): ungcpro on deletion.
9322 * glyphs.c (image_instantiator_format_create): give pointers a
9323 query geometry method so that the geometry is at least set.
9325 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9326 initialize layouts if using widgets.
9328 2000-05-03 Andy Piper <andy@xemacs.org>
9330 * nt.c: remove bogus reference to sysmmsystem.h
9332 * gui-x.c (popup_selection_callback): fix no selection abort.
9334 2000-05-02 Andy Piper <andy@xemacs.org>
9336 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9337 (mswindows_widget_instantiate): ditto.
9339 * glyphs-widget.c (initialize_widget_image_instance): initialize
9341 (widget_instantiate): cope with children and items in the same
9344 * glyphs.c (mark_image_instance): cope with children as a first
9346 (image_instance_equal): ditto.
9347 (image_instance_hash): ditto.
9348 (image_instance_changed): ditto.
9350 2000-04-30 Andy Piper <andy@xemacs.org>
9352 * glyphs.c (subwindow_query_geometry): new function. Return some
9354 (subwindow_instantiate): don't assign dimensions if none have been
9356 (image_instantiator_format_create): add subwindow_query_geometry.
9357 (print_image_instance): cope with layouts as widgets.
9359 2000-04-29 Andy Piper <andy@xemacs.org>
9361 * frame.c (delete_frame_internal): call
9362 free_frame_subwindow_instance_cache so that all subwindows are
9363 finalized before their parent.
9364 (mark_frame): remove subwindow_cachels.
9365 (Fmake_frame): remove subwindow_cachel manipulation.
9366 (allocate_frame_core): subwindow_instance_cache is a weak list.
9367 (delete_frame_internal): set subwindow_instance_cache to nil.
9369 * glyphs-msw.c (mswindows_finalize_image_instance): make double
9371 (mswindows_finalize_image_instance): use the device
9372 not the domain as the domain may have died already.
9374 * glyphs-x.c (x_finalize_image_instance): ditto.
9375 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9378 * redisplay-output.c (redisplay_unmap_subwindows): update for
9379 subwindow instance cache as a weak list.
9380 (redisplay_unmap_subwindows_maybe): ditto.
9381 (redisplay_unmap_subwindows_except_us): ditto.
9383 * glyphs.c (unmap_subwindow): error checking will check the domain
9384 so don't deal with it here. Don't use cachels anymore.
9385 (map_subwindow): ditto.
9386 (update_subwindow_cachel_data): remove old accessor names.
9387 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9388 (Fresize_subwindow): don't update cachel.
9389 (mark_subwindow_cachels):
9390 (update_subwindow_cachel_data):
9391 (add_subwindow_cachel):
9392 (get_subwindow_cachel_index):
9393 (update_subwindow_cachel):
9394 (reset_subwindow_cachels):
9395 (mark_subwindow_cachels_as_not_updated): deleted.
9396 (cache_subwindow_instance_in_frame_maybe): new function. Add a
9397 subwindow instance to the frame cache.
9398 (find_matching_subwindow): update for subwindow instance cache as
9400 (update_widget_instances): ditto.
9401 (image_instance_type_to_mask):inlined.
9402 (free_frame_subwindow_instance_cache): new function. finalize all
9403 subwindows that are instantiated.
9405 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9406 of cachel information.
9407 (IMAGE_INSTANCE_DISPLAY_X):
9408 (IMAGE_INSTANCE_DISPLAY_Y):
9409 (IMAGE_INSTANCE_DISPLAY_WIDTH):
9410 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9411 (XIMAGE_INSTANCE_DISPLAY_X):
9412 (XIMAGE_INSTANCE_DISPLAY_Y):
9413 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9414 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9415 remove subwindow_cachel structure and function references.
9416 (image_instance_type_to_mask): inline from glyphs.c
9418 * redisplay.c (redisplay_frame): remove subwindow_cachel
9421 * frame.h (struct frame): remove subwindow_cachels.
9422 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9424 * frameslots.h: add subwindow_instance_cache.
9426 * window.c (replace_window): check subwindow cache of replacement.
9427 (window_unmap_subwindows_cache_mapper):
9428 (window_unmap_subwindows): new functions. Unmap all subwindows
9429 cached on this window.
9430 (mark_window_as_deleted): unmap all subwindows.
9432 2000-04-27 Andy Piper <andy@xemacs.org>
9434 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9436 * glyphs-widget.c (widget_layout): return something.
9437 (layout_layout): return something. Fail if not initialized.
9438 (layout_query_geometry): ditto.
9439 (image_instantiator_native_layout): new function. Initialized the
9441 (widget_instantiate): don't do layout stuff here.
9443 * glyphs.c (instantiate_image_instantiator): reorded calling or
9444 instantiate and post_instantiate with layout in between.
9445 (image_instance_layout): be more selective about deciding whether
9446 the layout has been done or not.
9448 * glyphs.h (struct image_instantiator_methods): return a value
9451 2000-04-26 Andy Piper <andy@xemacs.org>
9453 * glyphs.c (allocate_image_instance): make initial width and
9454 height unspecified. Set initialized to 0.
9456 * syscommctrl.h new file. Encapsulates commctrl.h.
9458 * syswindows.h new file. Encapsulates windows.h.
9460 * ntplay.c: use new syswindows.h and syscommctrl.h header.
9462 * console-msw.h: ditto.
9464 * redisplay-tty.c (tty_output_display_block): remove layout references.
9466 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9467 window handle rather than just the frame.
9469 * glyphs.c (mark_image_instance): remove layout references.
9470 (print_image_instance): ditto.
9471 (image_instance_equal): ditto.
9472 (image_instance_hash): ditto.
9473 (decode_image_instance_type): ditto.
9474 (encode_image_instance_type): ditto.
9475 (image_instantiate): ditto.
9476 (allocate_glyph): ditto.
9477 (Fimage_instance_height): ditto.
9478 (Fimage_instance_width): ditto.
9479 (update_subwindow): ditto.
9481 * redisplay-x.c (x_output_display_block): recode for layouts as
9484 * redisplay-output.c (redisplay_output_layout): recode for layouts
9486 (compare_runes): remove layout references.
9488 * redisplay-msw.c (mswindows_output_display_block): recode for
9491 * glyphs-widget.c (image_instantiator_layout): remove
9492 layout_possible_dest_types.
9493 (layout_possible_dest_types): deleted.
9495 * glyphs.h (image_instance_type): remove layout references.
9496 (struct Lisp_Image_Instance): ditto. Add initialized flag.
9497 (IMAGE_INSTANCE_INITIALIZED): new accessor.
9498 (XIMAGE_INSTANCE_INITIALIZED): ditto.
9500 2000-04-25 Andy Piper <andy@xemacs.org>
9502 * glyphs-widget.c (image_instantiator_buttons):
9503 (image_instantiator_edit_fields):
9504 (image_instantiator_combo_box):
9505 (image_instantiator_scrollbar):
9506 (image_instantiator_progress_guage):
9507 (image_instantiator_tree_view):
9508 (image_instantiator_tab_control):
9509 (image_instantiator_labels):
9510 (image_instantiator_layout): call default post_instantiate method.
9511 (widget_post_instantiate): new function. Simply lays out the
9514 * glyphs.h (struct image_instantiator_methods): add
9515 post_instantiate method.
9517 * glyphs.c (instantiate_image_instantiator): add post_instantiate
9520 2000-04-23 Andy Piper <andy@xemacs.org>
9522 * glyphs.h (struct image_instantiator_methods): add
9523 decode_domain_method.
9524 (struct Lisp_Image_Instance): remove subwindow frame - it can be
9525 derived from the domain.
9526 (IMAGE_INSTANCE_FRAME): new accessor.
9527 (XIMAGE_INSTANCE_FRAME): ditto.
9529 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9530 instead of _SUBWINDOW_FRAME.
9531 (finalize_image_instance): ditto.
9532 (Fimage_instance_foreground): ditto.
9533 (Fimage_instance_background): ditto.
9534 (image_instantiate): ditto.
9535 (update_subwindow_cachel): ditto.
9536 (update_subwindow): ditto.
9537 (unmap_subwindow): ditto.
9538 (map_subwindow): ditto
9539 (subwindow_instantiate): ditto.
9540 * glyphs-msw.c (mswindows_update_widget): ditto.
9541 (mswindows_progress_gauge_instantiate): ditto.
9542 (mswindows_tab_control_update): ditto.
9543 * glyphs-x.c (x_update_widget): ditto.
9544 (x_widget_instantiate): ditto.
9545 (x_tab_control_instantiate): ditto.
9546 (x_tab_control_update): ditto.
9547 * event-msw.c (mswindows_wnd_proc): ditto
9549 * glyphs-widget.c (image_instantiator_layout): use
9550 subwindow_decode_domain.
9551 (image_instantiator_buttons): ditto.
9552 (image_instantiator_edit_fields): ditto.
9553 (image_instantiator_combo_box): ditto.
9554 (image_instantiator_scrollbar): ditto.
9555 (image_instantiator_progress_guage): ditto.
9556 (image_instantiator_tree_view): ditto.
9557 (image_instantiator_tab_control): ditto.
9558 (image_instantiator_labels): ditto.
9559 (image_instantiator_layout): ditto.
9561 * glyphs.c: add instance error checking to many functions.
9562 (instantiate_image_instantiator): decode device from cache_domain.
9563 (image_instantiate): partially rewrite by using
9564 decode_image_instantiator_domain to determine what domain the
9565 instance needs to be cached in.
9566 (decode_image_instantiator_domain): new function. Determine what
9567 domain the image needs to be cached in.
9568 (check_window_subwindow_cache): new error checking function.
9569 (check_instance_cache_mapper): ditto.
9570 (check_image_instance_structure): ditto.
9571 (subwindow_decode_domain): new function. Encodes a window as a
9572 subwindow's cache domain.
9573 (image_instantiator_format_create): use it for text and
9576 2000-04-21 Andy Piper <andy@xemacs.org>
9578 * glyphs.c (image_instance_device): new function.
9579 (image_instance_frame): new function.
9580 (image_instance_window): new function.
9581 (image_instance_live_p): new function.
9583 * window.c (mark_window_as_deleted): reset the subwindow_instance_
9586 * glyphs.h (struct Lisp_Image_Instance): device->domain.
9587 (IMAGE_INSTANCE_DOMAIN): new accessor.
9588 (XIMAGE_INSTANCE_DOMAIN): ditto.
9590 * glyphs-x.c (x_finalize_image_instance): device->domain.
9592 * glyphs-msw.c (init_image_instance_geometry): device->domain.
9593 (mswindows_finalize_image_instance): ditto.
9595 * glyphs-eimage.c (jpeg_instantiate): device->domain.
9596 (gif_instantiate): ditto.
9597 (png_instantiate): ditto.
9598 (tiff_instantiate): ditto.
9600 * glyphs.c (instantiate_image_instantiator): use domain rather
9602 (mark_image_instance): device -> domain.
9603 (print_image_instance): ditto.
9604 (finalize_image_instance): ditto.
9605 (image_instance_equal): ditto.
9606 (allocate_image_instance): ditto.
9607 (Fcolorize_image_instance): ditto.
9608 (query_string_geometry): ditto.
9609 (image_instantiate): ditto
9610 (query_string_font): ditto.
9611 (image_instantiate): ditto.
9612 (update_subwindow): ditto.
9613 (unmap_subwindow): ditto.
9614 (map_subwindow): ditto.
9615 (subwindow_instantiate): ditto.
9617 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9618 (DOMAIN_FRAME): ditto.
9619 (DOMAIN_WINDOW): ditto.
9620 (DOMAIN_LIVE_P): ditto.
9621 (XDOMAIN_DEVICE): ditto.
9622 (XDOMAIN_FRAME): ditto.
9623 (XDOMAIN_WINDOW): ditto.
9625 * specifier.c (Fvalid_specifier_domain_p): add image instances as
9626 a valid specifier domain.
9628 2000-04-19 Andy Piper <andy@xemacs.org>
9630 * glyphs-widget.c (syms_of_glyphs_widget): remove
9631 widget-callback-current-channel.
9632 (vars_of_glyphs_widget): ditto.
9635 * gui.c (get_gui_callback): revert to previous behaviour.
9637 2000-04-18 Andy Piper <andy@xemacs.org>
9639 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9640 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9641 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9643 * glyphs.c (image_instance_equal): add margin_width.
9644 (image_instance_hash): ditto.
9646 * glyphs-widget.c (widget_instantiate): deal with margin-width.
9647 (layout_query_geometry): ditto.
9648 (layout_layout): ditto.
9649 (syms_of_glyphs_widget): add margin-width.
9650 (image_instantiator_layout): allow margin-width.
9652 * glyphs.c (update_widget_instances): make a normal function.
9653 (syms_of_glyphs): remove Qupdate_widget_instances.
9656 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9657 so that we don't corrupt ideas about the last event or
9658 command. Remove widget-callback-current-channel fiddling.
9659 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9661 2000-05-01 Martin Buchholz <martin@xemacs.org>
9663 * XEmacs 21.2.33 is released.
9665 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
9667 * make-src-depend: Allow dots in header file name.
9669 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
9671 * mule-charset.h (struct charset_lookup): Add
9672 next_allocated_1_byte_leading_byte and
9673 next_allocated_2_byte_leading_byte.
9674 * mule-charset.c: Move above two variables so that those values
9677 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
9679 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9680 when string length is zero.
9681 (find_charsets_in_emchar_string): Ditto.
9683 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
9685 * lisp.h: extern Qdialog and Qmenubar.
9687 * gui-x.c: added events.h.
9688 also fixed typo which made the file uncompilable.
9690 * general.c: Added Qmenubar and Qdialog
9692 2000-04-28 Ben Wing <ben@xemacs.org>
9694 * frame-msw.c (mswindows_init_frame_1):
9695 * frame-msw.c (mswindows_mark_frame):
9696 * event-msw.c (mswindows_enqueue_dispatch_event):
9698 * console-msw.h (struct mswindows_frame):
9699 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9700 there are now three hash tables for callbacks.
9701 mswindows_enqueue_dispatch_event is no longer static.
9703 * dialog-x.c (maybe_run_dbox_text_callback):
9704 * dialog-x.c (dbox_descriptor_to_widget_value):
9705 switch to new cons3 form for callbacks.
9707 * glyphs-msw.c (mswindows_register_gui_item):
9708 * glyphs-msw.c (mswindows_widget_instantiate):
9709 * glyphs-msw.c (add_tree_item):
9710 * glyphs-msw.c (add_tab_item):
9711 new image instance parameter, so it can be passed to callback-ex.
9712 respect :callback-ex as well as :callback.
9714 * glyphs-widget.c (VALID_GUI_KEYWORDS):
9717 * glyphs.c (print_image_instance):
9718 prettify, e.g. now prints widget type.
9721 certain funs have new image instance parameter.
9724 * gui.c (get_gui_callback):
9725 * gui.c (gui_item_add_keyval_pair):
9726 * gui.c (gui_item_init):
9727 * gui.c (gui_add_item_keywords_to_plist):
9728 * gui.c (mark_gui_item):
9729 * gui.c (gui_item_hash):
9730 * gui.c (gui_item_equal):
9731 * gui.c (copy_gui_item):
9732 * gui.c (syms_of_gui):
9733 recognize callback-ex in a number of places.
9734 also, fix the annoying "can't get out of yes-no dialog" bug.
9737 * gui.h (struct Lisp_Gui_Item):
9738 recognize callback-ex in a number of places.
9740 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9741 new parameter in button_item_to_widget_value.
9743 * glyphs-x.c (x_update_widget):
9744 * glyphs-x.c (x_button_instantiate):
9745 * glyphs-x.c (x_button_update):
9746 * glyphs-x.c (x_progress_gauge_instantiate):
9747 * glyphs-x.c (x_edit_field_instantiate):
9748 * glyphs-x.c (x_combo_box_instantiate):
9749 * glyphs-x.c (x_tab_control_instantiate):
9750 * glyphs-x.c (x_label_instantiate):
9751 new image instance parameter in various places.
9754 * event-Xt.c (enqueue_Xt_dispatch_event):
9755 this fun gets exported.
9758 * gui-msw.c (mswindows_handle_gui_wm_command):
9759 handle both :callback and :callback-ex, and generate our own
9760 event because it's one of the callback-ex arguments.
9763 * gui-x.c (popup_selection_callback):
9764 handle both :callback and :callback-ex, and generate our own
9765 event because it's one of the callback-ex arguments.
9766 * gui-x.c (button_item_to_widget_value):
9767 * gui-x.c (gui_items_to_widget_values_1):
9768 * gui-x.c (gui_item_children_to_widget_values):
9769 * gui-x.c (gui_items_to_widget_values):
9770 new image instance parameter in various places.
9772 * fns.c (Freplace_list):
9773 fix small typo in doc string.
9776 declare enqueue_Xt_dispatch_event.
9778 2000-04-28 Ben Wing <ben@xemacs.org>
9781 * buffer.c (Frecord_buffer):
9782 * buffer.c (syms_of_buffer):
9783 delete record-buffer-hook.
9786 * fns.c (Freplace_list):
9787 * fns.c (syms_of_fns):
9788 new primitive replace-list.
9791 slot for old buffer-alist.
9797 * redisplay.c (redisplay_frame):
9798 * redisplay.c (syms_of_redisplay):
9799 * redisplay.c (vars_of_redisplay):
9800 new hook buffer-list-changed-hook.
9803 2000-04-27 Ben Wing <ben@xemacs.org>
9805 * extents.h: extern in_modeline_generation.
9807 * redisplay.c (generate_formatted_string_db): set
9808 in_modeline_generation.
9810 * extents.c (extent_changed_for_redisplay): don't mark redisplay
9811 flags if in modeline generation. otherwise frame-modified-tick
9812 is ticked far too often.
9813 Declare in_modeline_generation.
9815 2000-04-26 Ben Wing <ben@xemacs.org>
9817 * emacs.c (vars_of_emacs): document quick-build "error-checking"
9819 (vars_of_emacs): add quick-build as an error-checking option.
9820 A bit kludgy, but there doesn't seem much point in creating
9821 a real var for this.
9823 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9825 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
9827 * redisplay.h (struct display_line): Add a new variable,
9830 * redisplay.c (create_text_block): Set dl->line_continuation if
9832 (create_string_text_block): Ditto.
9833 (regenerate_window_incrementally): Use line_continuation instead
9834 of searching continuation glyph.
9835 (add_margin_runes): Call add_glyph_rune.
9836 (add_glyph_rune): Handle margin glyph.
9838 2000-04-20 Martin Buchholz <martin@xemacs.org>
9840 * filelock.c (fill_in_lock_file_name):
9842 Check for IS_ANY_SEP instead of '/'.
9844 Avoid generating gratuitous garbage. Call user_login_name() directly.
9845 Never check errno without first seeing that system call failed.
9846 (unlock_file): Add GCPRO.
9847 (Flock_buffer): Fix docstring.
9848 (Ffile_locked_p): Fix docstring. Add GCPRO.
9850 2000-04-19 Martin Buchholz <martin@xemacs.org>
9852 * sysdep.c (get_pty_max_bytes):
9853 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9854 strings longer than 252 bytes.
9856 * md5.c: Unconditionally include ANSI header <limits.h>
9858 * glyphs-x.c (convert_EImage_to_XImage):
9859 * lisp-union.h (union Lisp_Object):
9860 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9862 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9864 * filelock.c (current_lock_owner): Remove unused variable o, p.
9866 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
9868 * callint.c: Remove multiply defined symbol Qlet
9869 (syms_of_callint): ditto.
9871 2000-04-14 Andy Piper <andy@xemacs.org>
9873 * general.c (syms_of_general): add last-command, this-command, let
9876 * lisp.h: declare various symbols.
9878 * glyphs.h: declare Qwidget_callback_current_channel;
9880 * glyphs-widget.c (syms_of_glyphs_widget): add
9881 Qgui_callback_current_channel.
9882 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9884 * gui-msw.c (mswindows_handle_gui_wm_command): bind
9885 widget-callback-current-channel when invoking the interactive
9886 arg. Also bind last-command and next-command when invoking the
9888 * gui-x.c (popup_selection_callback): ditto.
9890 * gui.c (get_gui_callback): massage args so that we are always
9891 calling eval. This allows us to add our own variable bindings
9894 * glyphs-x.c (x_button_instantiate): use
9895 gui_items_to_widget_values since this is GC safe.
9896 (x_progress_gauge_instantiate): ditto.
9897 (x_edit_field_instantiate): ditto.
9898 (x_label_instantiate): ditto.
9900 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9901 (emacs_Xt_event_widget_focus_out): new function
9902 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9904 (emacs_Xt_event_add_widget_actions): new function. add focus
9905 functions as actions.
9906 (init_event_Xt_late): use it.
9908 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
9910 * event-stream.c (Fdispatch_event): Doc fix.
9912 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
9914 * postgresql.c: Remove all references to PQsetenv*.
9916 * postgresql.h: Remove references to PGsetenvHandler object.
9917 * lrecord.h (lrecord_type): Ditto.
9919 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9921 * glyphs-msw.h (struct mswindows_image_instance_data): Added
9922 real_heigh and real_width members, and accessor macros for these.
9924 * glyphs-msw.c (init_image_instance_geometry): New function.
9925 (init_image_instance_from_dibitmap): Use it.
9926 (mswindows_resource_instantiate): Use it.
9927 (init_image_instance_from_xbm_inline): Use it.
9928 (mswindows_initialize_image_instance_mask): Use real bitmap
9930 (mswindows_create_resized_bitmap): Ditto.
9931 (mswindows_create_resized_mask): Ditto.
9933 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9934 and bitmap to their surface size.
9936 2000-04-11 Jan Vroonhof <jan@xemacs.org>
9938 * process-unix.c (unix_send_process): Guard against process MIA
9939 after Faccept_process_output.
9941 2000-04-11 Ben Wing <ben@xemacs.org>
9943 * eval.c (unbind_to_hairy): fix brokenness introduced by
9944 nanosecond speed improvements.
9946 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
9948 * sunplay.c (init_device): To play sounds correctly, the device
9949 apparently needs to be initialized at least once by XEmacs. Make
9952 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
9954 * redisplay.c (add_margin_runes): Add text image glyph
9957 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9959 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9960 gcc is newer than 2.5.
9962 2000-04-06 Colin Rafferty <colin@xemacs.org>
9964 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9966 * fns.c (size_bit_vector):
9967 * alloc.c (size_vector):
9968 (make_vector_internal):
9969 (make_bit_vector_internal):
9970 (sweep_bit_vectors_1):
9971 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9973 2000-04-06 Andy Piper <andy@xemacs.org>
9975 * gmalloc.c (malloc): undo previous change.
9980 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
9982 * line-number.c (buffer_line_number): Revert to former version.
9984 2000-04-06 Andy Piper <andy@xemacs.org>
9986 * gmalloc.c (malloc): add error checking.
9991 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9992 button_item_to_widget_value arg.
9994 * glyphs-x.c (x_button_instantiate): add extra
9995 button_item_to_widget_value arg.
9996 (x_progress_gauge_instantiate): ditto.
9997 (x_edit_field_instantiate): ditto.
9998 (x_label_instantiate): ditto.
10000 * gui-x.c (gui_items_to_widget_values_1): add extra
10001 button_item_to_widget_value arg.
10002 (button_item_to_widget_value): add extra menu_item_p arg.
10004 * gui-x.h: change signature of button_item_to_widget_value.
10006 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
10007 button_item_to_widget_value arg.
10009 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
10011 * buffer.h (struct buffer): auto_save_modified should be long.
10013 2000-04-05 Andy Piper <andy@xemacs.org>
10015 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
10017 (button_query_geometry): give a little more room so that athena
10020 2000-04-05 Andy Piper <andy@xemacs.org>
10022 * faces.c (complex_vars_of_faces): The widget face should inherit
10023 the font of the gui-element face.
10025 2000-04-04 Andy Piper <andy@xemacs.org>
10027 * glyphs-x.c (x_button_update): new function. unconditionally
10028 update a button's state when the instance is dirty.
10029 (image_instantiator_format_create_glyphs_x): add x_button_update.
10030 (x_widget_instantiate): remove old resize cruft.
10032 2000-04-02 Andy Piper <andy@xemacs.org>
10034 * frame.c (change_frame_size_1): The introduction of gutters means
10035 that we need to allow 0 as a potential frame dimension.
10037 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
10039 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
10040 image glyph if allow_cursor.
10041 (add_hscroll_rune): Don't allow cursor to border glyph.
10042 (create_text_block): Ditto.
10044 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
10045 text not in buffer.
10046 (redisplay_output_layout): Call ensure_face_cachel_complete for
10050 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
10052 * redisplay.c (add_glyph_rune): Adding text image as text runes.
10054 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
10057 * redisplay-tty.c (tty_output_display_block): Delete the routine
10058 for text image glyph
10059 * redisplay-x.c (x_output_display_block): ditto
10060 * redisplay-msw.c (mswindows_output_display_block): ditto
10062 2000-02-02 Mike Alexander <mta@arbortext.com>
10064 Note: Some of these were committed by accident as part of other
10067 * regex.c (regex_compile): Avoid compiler warnings.
10069 * ntproc.c (sys_spawnve): Avoid compiler warnings.
10071 * nt.h: Declare term_ntproc correctly.
10073 * nt.c: Remove incorrect declaration of get_home_directory which
10074 is declared correctly in lisp.h.
10076 * keymap.c (get_keyelt): Avoid compiler warnings.
10077 (raw_lookup_key_mapper): Avoid compiler warnings.
10079 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
10081 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
10083 * filemode.c (mode_string): Avoid compiler warnings.
10085 * file-coding.c (Fcoding_system_aliasee): Add return statement to
10088 * events-mod.h: Undef some things that winuser.h defines differently.
10090 * data.c (Faset): Avoid compiler warnings.
10092 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10094 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10096 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10097 Fall through to simple beep on error.
10098 Replace "extern" by real header file.
10100 * linuxplay.c: Use nativesound.h
10101 (play_sound_data): Return error code. Be less verbose on error.
10103 * sunplay.c: Use nativesound.h
10104 (play_sound_data): Return error code. Be less verbose on error.
10106 * ntplay.c: Use nativesound.h
10107 (play_sound_data): Return fake error code
10109 * sgiplay.c: Use nativesound.h
10110 (play_sound_data): Return error code
10112 * hpplay.c: Use nativesound.h, partially implement
10113 new error code. Break compilation until finished.
10114 (play_sound_data): error code.
10116 * nativesound.h (play_sound_file):
10117 (play_sound_data): Prototype in new header.
10119 2000-03-31 Andy Piper <andy@xemacs.org>
10121 * glyphs-widget.c: (button_query_geometry): new function. Adjust
10122 for toggle and radio buttons.
10123 (image_instantiator_buttons): use it.
10125 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10127 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10128 (x_update_horizontal_scrollbar_callback): Return if no mirror was
10129 found. Scrollbar event probably belonged to some old config.
10131 2000-03-31 Andy Piper <andy@xemacs.org>
10133 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10135 (initialize_widget_image_instance): default layout to
10136 LAYOUT_HORIZONTAL rather than 0.
10137 (widget_instantiate): reverse the item list at the end rather than
10139 (layout_layout): re-code for the border text at the front of the
10140 item list rather than at the end.
10141 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10142 provided by the user.
10143 (widget_query_geometry): comment.
10145 2000-03-30 Andy Piper <andy@xemacs.org>
10147 * glyphs-widget.c (image_instantiator_layout): allow standard
10148 widget keywords in layouts.
10150 * gutter.c (output_gutter): cope with nil gutter contents.
10152 * frame.c (Fset_frame_properties): add gutter docs.
10154 2000-03-29 Andy Piper <andy@xemacs.org>
10156 * toolbar-msw.c (TBSTYLE_FLAT): add.
10157 (mswindows_output_toolbar): minor fiddling.
10159 2000-03-29 Andy Piper <andy@xemacs.org>
10161 * gutter.c (output_gutter): force gutter size recalculation if
10162 what we are trying to display won't fit.
10163 (update_gutter_geometry): new function. A per-gutter version of
10164 update_frame_gutter_geometry.
10165 (update_frame_gutter_geometry): use it.
10166 (redraw_exposed_gutter): add extra debugging output.
10168 2000-03-28 Mike Alexander <mta@arbortext.com>
10170 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10171 (pdump_file_unmap): Implement it on Windows
10172 (pdump_file_get): Save alocated handles for pdump_file_unmap
10174 2000-03-28 Andy Piper <andy@xemacs.org>
10176 * gui.c (get_gui_callback): treat Quit specially.
10178 2000-03-27 Andy Piper <andy@xemacs.org>
10180 * glyphs.c (image_instantiate): be careful to check in the same
10183 2000-03-27 Didier Verna <didier@xemacs.org>
10185 * config.h.in: define the proper SMART_INCLUDE macro.
10186 handle renaming of `foo_h_path' to `foo_h_file'.
10188 * database.c: ditto.
10192 * linuxplay.c: ditto.
10194 * terminfo.c: ditto.
10196 * tooltalk.h: ditto.
10198 2000-03-27 Andy Piper <andy@xemacs.org>
10200 * glyphs-msw.c (mswindows_update_widget): make sure the widget
10201 gets updated whenever the face might have changed.
10203 2000-03-26 Mike Alexander <mta@arbortext.com>
10205 * dumper.c (pdump_resource_free): Fix the comment.
10207 2000-03-21 Olivier Galibert <galibert@pobox.com>
10209 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10211 2000-03-22 Mike Alexander <mta@arbortext.com>
10213 * dumper.c: Include Windows headers on Windows
10214 (pdump_resource_free): Add a body to the function
10215 (pdump_load): exe_name -> exe_path and add some comments.
10217 2000-03-25 Mike Alexander <mta@arbortext.com>
10219 * gui.c (copy_gui_item_tree): Return a value in all cases
10221 2000-03-21 Didier Verna <didier@xemacs.org>
10223 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10225 (SMART_INCLUDE): new macro.
10226 (POSTGRES_INCLUDE): new macro to include postgresql headers from
10227 the proper location.
10229 * postgresql.c: use it.
10233 2000-03-24 Andy Piper <andy@xemacs.org>
10235 * gutter.c (redraw_exposed_gutters): must be "in display" when we
10238 2000-03-24 Andy Piper <andy@xemacs.org>
10240 * redisplay-output.c (compare_runes): use image_instance_changed
10241 to detect changes. Do not depend on glyphs_changed, only depend on
10243 (redisplay_output_layout): add debug messages.
10244 (compare_runes): ditto.
10246 * glyphs.h: declare new functions.
10247 (struct Lisp_Image_Instance): remove percent and associated
10250 * gui.h: declare new copying functions.
10252 * gui.c (copy_gui_item_tree): new function.
10253 (copy_gui_item): new function.
10254 (gui_item_id_hash): revert to standard hash.
10255 (gui_item_hash): ditto.
10256 (gui_item_hash_internal): deleted.
10257 (mark_gui_item): mark value.
10258 (gui_item_add_keyval_pair): add value.
10259 (gui_item_init): ditto.
10260 (gui_add_item_keywords_to_plist): ditto.
10261 (gui_item_equal): ditto.
10262 (syms_of_gui): add Q_value.
10264 * glyphs-x.c (x_progress_gauge_update): use pending items and
10265 value for setting the state.
10266 (x_update_widget): don't set items from pending here.
10268 * glyphs-widget.c (update_widget): update items here.
10269 (progress_gauge_set_property): use items for storing value. Put
10270 new value in pending items.
10272 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10273 items for new value. Convert percent -> value.
10274 (mswindows_tab_control_update): don't update items here.
10276 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10277 (update_subwindow): ditto.
10278 (image_instance_changed): new function. Compare hash values and
10279 past and present widget items.
10280 (image_instantiate): We more careful about where we instantiate
10282 (image_instantiate): add error checking.
10284 * gutter.c (syms_of_gutter): use -hook.
10286 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
10288 * console-tty.c (Fset_console_tty_input_coding_system): Use
10290 (Fset_console_tty_output_coding_system): Use Qterminal.
10291 (tty_init_console): Use Qkeyboard and Qterminal.
10293 2000-03-21 Ben Wing <ben@xemacs.org>
10295 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10296 From Mike Alexander <mta@arbortext.com>.
10298 2000-03-21 Ben Wing <ben@xemacs.org>
10300 * event-msw.c (mswindows_need_event): Horrible kludge to fix
10301 process brokenness. Proper implementation to come.
10303 Rename call-process-internal to old-call-process-internal.
10304 New impl. in process.el.
10306 2000-03-21 Martin Buchholz <martin@xemacs.org>
10308 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10310 2000-03-20 Andy Piper <andy@xemacs.org>
10312 * glyphs.c (full_list_hash): make hashes of the same elements in
10313 different orders return different values.
10315 2000-03-20 Martin Buchholz <martin@xemacs.org>
10317 * XEmacs 21.2.32 is released.
10319 2000-03-20 Martin Buchholz <martin@xemacs.org>
10321 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10322 (DFC_MALLOC_USE_CONVERTED_DATA):
10323 Add aliasing-safe casts to allow use with char* or unsigned char*
10326 * eldap.c (Fldap_open):
10327 (Fldap_search_basic):
10330 Make C++-compilable.
10331 Make sure GCPRO'ed variables are initialized.
10332 Use temp variables to avoid repeated calls to Flength.
10334 2000-03-16 Martin Buchholz <martin@xemacs.org>
10337 Make sure PATH_MAX is always defined.
10338 Include limits.h for PATH_MAX.
10339 Deprecate use of MAXPATHLEN.
10341 2000-03-10 Martin Buchholz <martin@xemacs.org>
10343 * emacs.c: Add reinit_vars_of_fileio.
10344 * symsinit.h: Add reinit_vars_of_fileio.
10345 * fileio.c (reinit_vars_of_fileio): New.
10346 * fileio.c (Fmake_temp_name):
10347 Initialize temp_name random number from microseconds to make
10348 collisions even less likely. Initialize always at process startup
10349 time. (make-temp-name) used to return the same file name twice in
10351 Random stylistic fiddling.
10354 2000-03-20 Andy Piper <andy@xemacs.org>
10356 * glyphs.c (image_instantiate): allow text glyphs to be
10357 instantiated in the minibuffer window.
10359 2000-03-19 Andy Piper <andy@xemacs.org>
10361 * glyphs.c (image_instance_hash): be careful about which items we
10364 * glyphs-widget.c (tab_control_set_property): record into pending
10365 items rather than the actual items.
10367 * glyphs-x.c (x_update_widget): use pending items to update with.
10369 * glyphs-msw.c (mswindows_tab_control_update): use pending items
10372 * glyphs.c (mark_image_instance): mark pending items.
10374 * window.c (Fset_window_configuration): record the buffer.
10375 (Fselect_window): totally revert previous change which breaks many
10378 2000-03-18 Andy Piper <andy@xemacs.org>
10380 * glyphs-msw.c (mswindows_tab_control_update): force selected
10383 * glyphs.c (image_instantiate): don't allow the minibuffer as a
10384 window domain cache, otherwise we get inconsistencies at
10385 startup. There is something fishy at startup which can lead to the
10386 minibuffer being the selected window when the gutter content is
10389 * gui.c (parse_gui_item_tree_list): add probably unnecessary
10391 (parse_gui_item_tree_children): ditto.
10392 (parse_gui_item_tree_item): ditto.
10394 * glyphs.c (Fupdate_widget_instances): return something.
10396 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
10398 * window.c (Fselect_window): Undo 2000-03-17 change.
10400 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
10402 * postgresql.c (Fpq_setenv): Remove this turkey when linking
10403 against v7.0 libraries. Insta-coredump city until the postgres
10406 2000-03-17 Andy Piper <andy@xemacs.org>
10408 * faces.c (complex_vars_of_faces): don't give the widget face an
10409 inherited background pixmap.
10411 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10414 * event-stream.c (Fdispatch_non_command_events): return something.
10416 * gutter.c (output_gutter): use widget face.
10417 (clear_gutter): ditto.
10419 * NEWS: adjust again.
10421 * window.c (Fselect_window): make sure this runs to completion to
10422 avoid oddities with Fset_window_configuration.
10423 (Fcurrent_window_configuration): in general do not save the
10424 minibuffer as the selected window.
10426 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10428 2000-03-16 Olivier Galibert <galibert@pobox.com>
10430 * emacs.c (Frunning_temacs_p): Revert previous patch.
10431 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10433 2000-03-16 Andy Piper <andy@xemacs.org>
10435 * glyphs-x.c (x_tab_control_update): if no widget values then
10438 * NEWS: update for new features.
10440 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10441 synthetic event to the native system.
10442 (reinit_vars_of_event_Xt): set force_event_pending to
10443 emacs_Xt_force_event_pending.
10445 * events.h (struct event_stream): add force_event_pending.
10447 * specifier.c (recompute_one_cached_specifier_in_window): add
10450 * redisplay.c (redisplay_frame): don't call
10451 update_frame_subwindows. Reset subwindow cachels when
10452 subwindows_changed, removing this was an optimization too far.
10454 * redisplay-output.c (compare_runes): reorganize so that we catch
10455 glyph changes when we want them. Set optimize_output when this
10456 would help layouts.
10457 (redisplay_output_layout): remove frame_really_changed, use
10458 optimize_output instead.
10460 * redisplay-msw.c (mswindows_output_display_block): reset
10461 optimize_output after outputting a glyph.
10462 * redisplay-x.c (x_output_display_block): ditto.
10463 * redisplay-tty.c (tty_output_display_block): ditto.
10465 * gutter.c: (specifier_vars_of_gutter): use new spec changed
10467 (gutter_specs_changed): do specific gutter positions.
10468 (top_gutter_specs_changed): new function. Only update the
10469 specified gutter specs.
10470 (bottom_gutter_specs_changed): ditto.
10471 (left_gutter_specs_changed): ditto.
10472 (right_gutter_specs_changed): ditto.
10474 * gui.c (gui_item_hash_internal): new function, does a real hash.
10475 (gui_item_id_hash): use it.
10476 (gui_item_hash): hash the eval'ed gui_item.
10478 * gui-x.c (popup_selection_callback): send an eval event to call
10479 Fupdate_widget_instances.
10481 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10482 to call Fupdate_widget_instances.
10484 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10485 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10487 * glyphs.c: (update_frame_subwindows): deleted.
10488 (Fupdate_widget_instances): new function for updating the dirty
10489 state of widgets that might have changed.
10490 (syms_of_glyphs): add Qupdate_widget_instances.
10491 (full_list_hash): hash a list completely.
10492 (image_instance_hash): use it for items and properties.
10494 * frame-msw.c (mswindows_size_frame_internal): remove unused
10497 * faces.h (struct face_cachel): fix comment.
10499 * event-stream.c (Fdispatch_non_command_events): new
10500 function. Process non-command events, forcing an event cycle
10502 (syms_of_event_stream): declare.
10503 (event_stream_force_event_pending): new function. Force an event
10504 on the native event queue so that an event cycle will occur next
10508 (struct ntpipe_shove_stream):
10509 (mswindows_enqueue_dispatch_event):
10510 (mswindows_dequeue_dispatch_event):
10511 (mswindows_cancel_dispatch_event):
10512 (mswindows_pump_outstanding_events):
10513 (mswindows_drain_windows_queue):
10514 (mswindows_handle_paint):
10515 (mswindows_wnd_proc):
10516 (mswindows_key_to_emacs_keysym):
10517 (get_process_input_waitable):
10518 (emacs_mswindows_delete_stream_pair): re-indent file.
10519 (mswindows_need_event): do not process further fds if the windows
10520 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10521 fixes the 100% cpu problem.
10522 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10524 2000-03-15 Olivier Galibert <galibert@pobox.com>
10530 * emacs.c: Moved dump file searching to dumper.c.
10531 (Frunning_temacs_p): Fixed.
10533 * alloc.c: Moved everything pdump-related to dumper.c. Removed
10534 last_lrecord_type_index_assigned.
10536 2000-02-20 Olivier Galibert <galibert@pobox.com>
10538 * symsinit.h: Added reinit parameter to init_console_stream
10541 * lisp.h: Added file parameter to pdump_load declaration.
10543 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10544 support. Added dump file searching.
10546 * config.h.in: Added EMACS_PROGNAME.
10548 * console-stream.c (init_console_stream): Fix reinitialisation
10549 when running from temacs.
10551 * alloc.c (pdump): Add id support.
10552 (pdump_load): Add file parameter and signature/id support.
10554 * Makefile.in.in: Add full pdump support.
10556 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
10558 * postgresql.c: Update documentation to reflect latest code
10560 (print_result): Show tuple counts in printed representation when
10562 (Fpq_put_nbytes): MULE-ize.
10563 (Fpq_get_line_async): Ditto.
10565 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10567 * postgresql.c (Fpq_lo_import): Fix return value.
10568 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10570 2000-03-13 Ben Wing <ben@xemacs.org>
10572 * alloc.c (pdump_load):
10573 Fix compile warning under mswin.
10575 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10577 * postgresql.c: Mule-ization, bug fixes.
10578 Use PG_CODING to encapsulate coding system name changes.
10579 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10580 (pg-coding-system): Create.
10582 (Fpq_conn_defaults): Mule-ize.
10583 (Fpq_connectdb): Mule-ize & bug fix.
10584 (Fpq_connect_start): Mule-ize.
10585 (Fpq_set_client_encoding): Mule-ize.
10586 (Fpq_finish): Document `DEAD' connection status.
10587 (Fpq_clear): Ditto.
10588 (Fpq_pgconn): Mule-ize.
10589 (Fpq_exec): Mule-ize & bug fix.
10590 (Fpq_send_query): Ditto.
10591 (Fpq_get_result): Ditto.
10592 (Fpq_res_status): Mule-ize.
10593 (Fpq_result_error_message): Mule-ize.
10594 (Fpq_ntuples): fix comments.
10595 (Fpq_fname): Mule-ize.
10596 (Fpq_fnumber): Mule-ize.
10597 (Fpq_ftype): fix comments.
10598 (Fpq_get_value): Mule-ize.
10599 (Fpq_cmd_status): Ditto.
10600 (Fpq_cmd_tuples): Ditto.
10601 (Fpq_oid_value): Ditto.
10602 (Fpq_notifies): Ditto.
10603 (Fpq_lo_import): Ditto.
10604 (Fpq_lo_export): Ditto.
10605 (Fpq_get_line): Ditto.
10606 (Fpq_put_line): Mule-ize and bug fix.
10607 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10609 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10611 * postgresql.c (vars_of_postgresql): Mule-ize.
10612 (Fpq_conn_defaults): Ditto.
10614 2000-03-12 Ben Wing <ben@xemacs.org>
10616 * alloc.c (Fmake_byte_code):
10617 * alloc.c (debug_string_purity_print):
10618 * alloc.c (pdump_backtrace):
10619 * alloc.c (pdump_get_indirect_count):
10620 * alloc.c (pdump_register_sub):
10621 * alloc.c (pdump_register_object):
10622 * alloc.c (pdump_register_struct):
10623 * alloc.c (pdump_dump_data):
10624 * alloc.c (pdump_reloc_one):
10628 * console-msw.c (GetConsoleHwnd):
10629 * console-msw.c (msw_hide_console):
10630 * console-msw.c (msw_show_console):
10631 * console-msw.c (msw_ensure_console_buffered):
10632 * console-msw.c (msw_output_console_string):
10633 * console-msw.c (console_type_create_mswindows):
10635 a) Added functions to manipulate the console window for use with
10638 b) Added support for writing text to the console, which is now
10639 used under Windows when xemacs is not being run non-interactively,
10640 to write text that would otherwise be destined for stdout because
10641 under these circumstances, text written to stdout tends to
10642 disappear and not be seen.
10646 * event-Xt.c (x_event_to_emacs_event):
10647 * event-Xt.c (describe_event_window):
10648 * events-mod.h (XEMACS_MOD_CONTROL):
10650 * events.c (Fmake_event):
10651 * events.c (character_to_event):
10652 * events.c (event_to_character):
10653 * events.c (format_event_object):
10654 * events.c (Fevent_modifiers):
10656 * events.h (struct key_data):
10657 * events.h (struct button_data):
10658 * events.h (struct misc_user_data):
10659 * frame-x.c (Fcde_start_drag_internal):
10660 * frame-x.c (Foffix_start_drag_internal):
10661 * gpmevent.c (Freceive_gpm_event):
10663 * keymap.c (bucky_sym_to_bucky_bit):
10664 * keymap.c (control_meta_superify):
10665 * keymap.c (make_key_description):
10666 * keymap.c (keymap_lookup_directly):
10667 * keymap.c (create_bucky_submap):
10668 * keymap.c (keymap_store):
10669 * keymap.c (define_key_check_and_coerce_keysym):
10670 * keymap.c (define_key_parser):
10671 * keymap.c (define_key_alternate_name):
10672 * keymap.c (Fdefine_key):
10673 * keymap.c (raw_lookup_key_mapper):
10674 * keymap.c (struct map_keymap_unsorted_closure):
10675 * keymap.c (map_keymap_unsorted_mapper):
10676 * keymap.c (map_keymap_sort_predicate):
10677 * keymap.c (map_keymap_sorted):
10678 * keymap.c (accessible_keymaps_mapper_1):
10679 * keymap.c (where_is_recursive_mapper):
10680 * keymap.c (describe_map_mapper):
10681 * keymap.c (describe_map_sort_predicate):
10682 * keymap.c (describe_map):
10683 * keymap.c (complex_vars_of_keymap):
10684 And a number of other files, the key modifier preprocessor
10685 constants that xemacs uses have names that conflict with constants
10686 defined under MS Windows for other purposes, so they were renamed
10687 to begin with the prefix XEMACS_. The variables that hold such
10688 modifiers were changed to consistently be of type int to fix
10689 various compile warnings.
10691 * console.c (complex_vars_of_console):
10694 * device-msw.c (mswindows_finish_init_device):
10695 * device-msw.c (msw_get_workspace_coords):
10696 * device-msw.c (mswindows_device_system_metrics):
10697 and various other files, added support for a new
10698 device property called offset-workspace which returns the position
10699 of the upper left corner of the workspace area and goes along with
10700 the existing size-workspace property.
10703 * dialog-msw.c (push_bufbyte_string_as_unicode):
10704 * dialog-msw.c (mswindows_popup_dialog_box):
10705 Added support for XEmacs-style accelerator specifications in
10706 button text. Note: I didn't add support for this under X Windows,
10707 and somebody needs to do this.
10710 * dialog.c (Fpopup_dialog_box):
10711 Documented the support for accelerators that was just mentioned.
10713 editfns.c (get_home_directory): Changed behavior under Windows
10714 when HOME not defined; former behavior was irretrievably broken.
10717 * emacs.c (main_1):
10719 * minibuf.c (clear_echo_area_internal):
10720 * minibuf.c (echo_area_append):
10722 * print.c (std_handle_out_external):
10723 * print.c (std_handle_out_va):
10725 * print.c (write_string_to_stdio_stream):
10726 * print.c (output_string):
10727 * print.c (debug_print):
10728 * print.c (debug_backtrace):
10729 * print.c (debug_short_backtrace):
10730 Cleaned up the code that prints text to stdout so that this can be
10731 changed to output into a console window instead under MS Windows,
10732 as described above.
10735 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10736 * eval.c (internal_catch):
10737 * eval.c (unwind_to_catch):
10738 * eval.c (throw_or_bomb_out):
10739 * eval.c (condition_case_1):
10740 * eval.c (signal_1):
10741 * eval.c (check_error_state_sanity):
10742 * eval.c (call_with_suspended_errors_1):
10743 * eval.c (call_with_suspended_errors):
10744 * eval.c (reinit_vars_of_eval):
10745 Added code to catch throw loops and check for a pesky bug that may
10749 * event-msw.c (key_needs_default_processing_p):
10750 * event-msw.c (mswindows_wnd_proc):
10751 * event-msw.c (mswindows_modifier_state):
10752 * event-msw.c (emacs_mswindows_quit_p):
10753 * event-msw.c (vars_of_event_mswindows):
10754 a) Added support for using the alt key to select menu items as is
10755 standard under MS Windows. This is controlled using the variable
10756 menu-accelerator-enabled, just like under X Windows. There is an
10757 option on the options menu to turn this support on. I really
10758 think that it should be on by default under Windows, but I'm not
10759 going to make this change yet.
10761 b) Added support for dynamic display size changes under Windows.
10764 * event-stream.c (maybe_echo_keys):
10765 * event-stream.c (Fnext_event):
10766 * event-stream.c (command_builder_find_leaf):
10767 * event-stream.c (lookup_command_event):
10768 * event-stream.c (execute_command_event):
10769 * event-stream.c (pre_command_hook):
10770 * event-stream.c (post_command_hook):
10771 * event-stream.c (syms_of_event_stream):
10772 * event-stream.c (vars_of_event_stream):
10773 * event-stream.c (complex_vars_of_event_stream):
10774 * events.h (struct command_builder):
10776 a) Tried to clean up a little bit the horribly written x-specific
10777 accelerator code that crept into this file. I moved this code
10778 into menubar-x.c where it belongs. I also needed to move the
10779 command builder structure into the file events.h because it is
10780 accessed directly by this accelerator code. What I didn't do, but
10781 which should be done at some point, is to properly abstract this
10782 code using device methods instead of the kludgy way that it
10783 currently hooks into the event code.
10785 b) Added the lisp variables this-command-properties and
10786 last-command- properties, which should be used to synchronize two
10787 adjacent commands in preference to playing games with the variable
10788 this-command, which is typically what happens.
10790 c) Added some slightly nasty code to hook into the lisp support
10791 for shifted- motion-key selection. This is actually necessary for
10792 somewhat complicated reasons, which are described in
10793 simple.el. (NB: I think the proper thing would be to have the code
10794 that calls the pre and post command hooks also call out to generic
10795 lisp functions in simple.el, where all built-in stuff could be
10796 added. I will think about this more.)
10798 * event-unixoid.c (poll_fds_for_input):
10799 * lread.c (readchar):
10800 * redisplay-tty.c (tty_clear_frame):
10801 * redisplay-x.c (x_get_gc):
10802 * signal.c (interrupt_signal):
10803 And a whole bunch of other files: fixed up places that printed
10804 directly to stderr to instead call the function stderr_out so that
10805 the changes I made under Windows work correctly.
10807 * filemode.c (mode_string):
10811 * frame-msw.c (mswindows_size_frame_internal):
10812 Fixed the computation of frame size and position to keep the frame
10813 within the workspace area, rather than within the physical
10814 dimensions of the screen, so that the frame doesn't overlap window
10815 manager decorations, such as the start menu and toolbar, typically
10816 at the bottom of the screen.
10818 * frame.c (vars_of_frame):
10819 Changed the default frame title format under MS Windows to consist
10820 of buffername-XEmacs, which is standard under MS Windows. I think
10821 it might be a good idea to change this everywhere because I think
10822 it is superior to the current frame title format, but this is the
10823 kind of change that is likely to cause some people to get annoyed,
10824 so I'm not making it.
10826 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10828 * gui-msw.c (mswindows_handle_gui_wm_command):
10829 Fixed compile warnings.
10832 * gui-x.c (strdup_and_add_accel):
10833 * gui-x.c (button_item_to_widget_value):
10835 Added code to automatically put an accelerator onto the beginning
10836 of menu items that don't have one as is now the standard, and is
10837 described more later. Also fixed things so that the menu item
10838 name can be an evaluated expression, again a new standard.
10841 * gui.c (gui_item_add_keyval_pair):
10842 * gui.c (make_gui_item_from_keywords_internal):
10843 * gui.c (gui_add_item_keywords_to_plist):
10844 * gui.c (gui_item_accelerator):
10845 * gui.c (gui_name_accelerator):
10846 * gui.c (gui_item_included_p):
10847 * gui.c (gui_item_display_flush_left):
10848 * gui.c (gui_item_display_flush_right):
10849 * gui.c (parse_gui_item_tree_item):
10850 * gui.c (parse_gui_item_tree_children):
10851 * gui.c (parse_gui_item_tree_list):
10852 Mule-ized. Cleanup. GCPRO addition.
10854 * line-number.c (buffer_line_number):
10856 * lisp.h (EMACS_INT_MAX):
10857 Added the manifest constant EMACS_INT_MIN corresponding to the
10858 existing constant EMACS_INT_MAX. This is partially to fix compile
10859 warnings under Windows, and partly for cleanliness.
10862 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10863 * menubar-msw.c (msw_translate_menu_or_dialog_item):
10864 * menubar-msw.c (displayable_menu_item):
10865 * menubar-msw.c (populate_menu_add_item):
10866 * menubar-msw.c (populate_or_checksum_helper):
10867 * menubar-msw.c (populate_menu):
10868 * menubar-msw.c (update_frame_menubar_maybe):
10869 * menubar-msw.c (prune_menubar):
10870 * menubar-msw.c (msw_char_is_accelerator):
10871 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10872 * menubar-msw.c (mswindows_handle_wm_command):
10873 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10874 * menubar-msw.c (mswindows_handle_wm_initmenu):
10875 * menubar-msw.c (mswindows_update_frame_menubars):
10876 * menubar-msw.c (mswindows_free_frame_menubars):
10877 * menubar-msw.c (mswindows_popup_menu):
10878 Fixed a bug in handling accelerators where an extra character
10879 would be displayed in the menu item. Also generalized the
10880 function displayable_menu_item because it is now used by the
10881 dialog box code as well. And finally, added code in the functions
10882 that create the menubar to extract a list of accelerators for the
10883 top level menubar, which is used in the event code to determine
10884 whether a particular alt-key combination should be used to invoke
10885 a menu item, or should be passed through to access the standard
10886 XEmacs keymap binding for this key combination.
10888 Much needed GCPROing.
10891 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10892 * menubar-x.c (menu_item_descriptor_to_widget_value):
10893 * menubar-x.c (restore_in_menu_callback):
10894 * menubar-x.c (x_popup_menu):
10895 * menubar-x.c (menu_move_up):
10896 * menubar-x.c (menu_move_down):
10897 * menubar-x.c (menu_move_left):
10898 * menubar-x.c (menu_move_right):
10899 * menubar-x.c (menu_select_item):
10900 * menubar-x.c (command_builder_operate_menu_accelerator):
10901 * menubar-x.c (menu_accelerator_junk_on_error):
10902 * menubar-x.c (command_builder_find_menu_accelerator):
10903 * menubar-x.c (Faccelerate_menu):
10905 Moved a whole bunch of code here that was previously in
10906 event-stream.c as described above. There is also code connected
10907 to the new standard of adding an accelerator to the beginning of
10908 menu items that don't have one as described above and below.
10911 * menubar.c (menu_parse_submenu_keywords):
10912 * menubar.c (Fmenu_find_real_submenu):
10913 * menubar.c (Fnormalize_menu_item_name):
10914 * menubar.c (syms_of_menubar):
10915 * menubar.c (vars_of_menubar):
10916 * menubar.c (complex_vars_of_menubar):
10918 a) Cleaned up a bunch of documentation and improved it.
10920 b) XEmacs now automatically adds an accelerator onto the beginning
10921 of any menu items that don't have one. I did this because there
10922 will inevitably be some menu items on the main menubar that don't
10923 have accelerators on them because the package that adds that
10924 particular menu item hasn't yet been fixed up to have accelerators
10925 in them and it looked rather strange to have some items with and
10926 some items without accelerators, especially since even in items
10927 without accelerators, you can, at least under windows, still
10928 access the item through an accelerator corresponding to the first
10929 character in the item's name. If people don't like this behavior,
10930 I can add a variable to turn it off optionally, but I'm not sure
10931 this is a good idea because we really do need to have accelerators
10932 on all of the menu items, and if a package doesn't like the
10933 accelerators being put on the first character, then it should put
10934 the accelerators where they belong.
10936 c) I made a behavior change, which is that the descriptor that
10937 specifies the text of the menu item, which formerly was just a
10938 string, can now also be an evaluated expression. This makes this
10939 descriptor parallel with all of the others, which could also be
10940 evaluated expressions. This also obviates the need for the
10941 keyword :label, which was previously listed in the documentation
10942 as unimplemented, and which was for the same purpose.
10947 * ntproc.c (new_child):
10948 * ntproc.c (sys_spawnve):
10949 * ntproc.c (find_child_console):
10950 * ntproc.c (sys_kill):
10951 Fixed compile warnings. By the way, this file should really go
10952 away entirely, and this will happen as soon as Kirill makes his
10953 final round of process cleanups, which affect the function
10957 * process-nt.c (struct nt_process_data):
10958 * process-nt.c (find_process_from_pid):
10959 * process-nt.c (send_signal_the_nt_way):
10960 * process-nt.c (enable_child_signals):
10961 * process-nt.c (find_child_console):
10962 * process-nt.c (send_signal_the_95_way):
10963 * process-nt.c (nt_finalize_process_data):
10964 * process-nt.c (ensure_console_window_exists):
10965 * process-nt.c (nt_create_process):
10966 * process-nt.c (nt_kill_child_process):
10967 * process-nt.c (nt_kill_process_by_pid):
10968 * process-nt.c (nt_open_network_stream):
10969 * process-nt.c (vars_of_process_nt):
10970 Copied over code from Emacs 20.5 to correctly send signals to sub-
10971 processes under Windows 95. Also added code to automatically
10972 create and hide console window when a sub-process is created under
10973 Windows 95, which obviates the need for the separate runemacs.exe
10974 executable, and finally implemented some variables that were
10975 implemented in Emacs 20.5, but previously not in XEmacs. These
10976 include mswindows- start-process-share-console and
10977 mswindows-start-process-inherit-error-mode. (Both of these only
10978 apply to Windows 95.)
10980 * regex.c (regex_compile): Fixed a compile warning.
10983 * select-msw.c (mswindows_own_selection):
10984 * select-msw.c (mswindows_get_foreign_selection):
10985 * select-msw.c (mswindows_disown_selection):
10986 * select-msw.c (console_type_create_select_mswindows):
10987 * select-msw.c (syms_of_select_mswindows):
10988 Cleaned up the file and implemented the device method
10989 selection_exists_p, which had accidentally been left out. Also
10990 removed four lisp functions that were remnants from before the
10991 time when the selection code was properly device abstracted.
10992 These functions are no longer needed because there are generic
10993 equivalents, and because they were added recently and don't exist
10994 in FSF Emacs, I don't think there's any problem with just deleting
10998 * sysdep.c (sys_subshell):
10999 Fixed a compile warning, although in this case there's probably
11000 something wrong with this code, and it ought to be looked into
11001 more thoroughly by somebody who understands it.
11004 * window.c (Fwindow_text_area_height):
11005 * window.c (Fwindow_width):
11006 * window.c (Fwindow_full_width):
11007 * window.c (Fwindow_pixel_width):
11008 * window.c (debug_print_window):
11009 * window.c (syms_of_window):
11010 Added functions window-text-area-height and window-full-width,
11011 which are functions for returning various width and height
11012 characteristics of a window. (One of these functions is necessary
11013 for making the file dialog box work correctly, and the other one
11014 was added for completeness.) Also added a table to the
11015 documentation for window-height which describes the entire scheme
11016 for accessing width and height characteristics of a window.
11018 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11020 * nt.c (fstat): Added a comment for another problem with
11021 non-encapsulated [f]stat(), reported by Adrian Aichner
11022 <aichner@ecf.teradyne.com>.
11024 2000-03-11 Andy Piper <andy@xemacs.org>
11026 * window.c (make_dummy_parent): initialize subwindow instance
11028 (Fset_window_configuration): zero extent_modiff.
11030 2000-03-10 Andy Piper <andy@xemacs.org>
11032 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
11033 more changes can be triggered.
11034 (Fredisplay_frame): ditto.
11035 (Fredraw_device): ditto.
11036 (Fredisplay_device): ditto.
11037 (redisplay_frame): make non-static.
11038 (redisplay_frame): call update_frame_gutter_geometry outside of
11041 * gutter.h: declare update_frame_gutter_geometry.
11043 * redisplay.h: declare redisplay_frame.
11045 * gutter.c (update_frame_gutter_geometry): move geometry changes
11046 in update_frame_gutters here. Geometry changes can only occur
11047 outside of redisplay.
11048 (update_frame_gutters): remove geometry change code.
11049 (Fredisplay_gutter_area): make sure that we are in display when we
11050 update and that we have flushed any size changes.
11052 2000-03-11 Andy Piper <andy@xemacs.org>
11054 * alloc.c (pdump_dump_data): remove i & count shadows.
11056 2000-02-27 Mike Alexander <mta@arbortext.com>
11058 * sysdep.h: Declare pdump_read_file
11060 * sysdep.c (pdump_read_file): New function
11062 * alloc.c (pdump_load): Call pdump_read_file to get the portable
11065 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
11067 * lrecord.h: add `lrecord_type_pgsetenv'.
11069 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
11071 * symsinit.h: declare (vars|syms)_of* functions.
11072 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
11074 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
11076 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
11078 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
11081 * emacs.c (main_1): Call postgres initialization code.
11083 * postgresql.h: New file. PostgreSQL RDBMS support.
11084 * postgresql.c: New file.
11086 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
11088 * redisplay-output.c (redisplay_output_display_block): Disable
11091 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11093 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11094 (Fcanna_henkan_next): Ditto.
11095 (Fcanna_bunsetu_henkou): Ditto.
11096 (Fcanna_henkan_kakutei): Ditto.
11097 (Fcanna_henkan_end): Ditto.
11098 (Fcanna_henkan_quit): Ditto.
11099 (Fcanna_henkan_next): Set retun value correctly.
11100 (c2mu): Use unsigned char instead of signed char.
11102 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11104 * emacs.c (main_1): Always call syms_of_gui.
11105 * inline.c: include gui.h
11107 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11109 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11110 converted to Lisp_Object.
11111 (Qtop_bottom): New variable.
11112 (syms_of_redisplay): Initialize it.
11113 * redisplay.h (Vvisible_bell): Ditto.
11114 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11115 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11116 only flash top and bottom.
11118 2000-03-08 Andy Piper <andy@xemacs.org>
11120 * buffer.c (Frename_buffer): record new buffer name the right way.
11122 2000-03-08 Andy Piper <andy@xemacs.org>
11124 * glyphs.c (update_subwindow): increase hash depth so that widget
11125 items get picked up properly.
11127 * redisplay-output.c (compare_runes): increase hash depth so that
11128 widget items get picked up properly.
11130 2000-03-08 Andy Piper <andy@xemacs.org>
11132 * gutter.c (output_gutter): add some debug.
11134 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11135 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11136 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11138 * redisplay-output.c (compare_runes): use display_hash to
11139 determine if glyphs really are not the same.
11141 * glyphs.c (update_subwindow): check display_hash to see if
11142 anything really needs to be updated. If not then do
11143 nothing. Record the display_hash after updating.
11144 (image_instance_equal): compare the image_instance face also.
11146 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
11148 * redisplay.h: Fix comment style.
11150 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
11152 * consle-msw.h (struct mswindows_frame):
11153 Added new member paint_pending to indicate whether a WM_PAINT
11154 magic event has been queued for this frame.
11156 * event-msw.c (mswindows_drain_windows_queue):
11157 Don't queue a WM_PAINT magic event if one is already queued.
11158 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11160 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11162 2000-03-07 Didier Verna <didier@xemacs.org>
11164 * dired.c: #include `regex.h' after `sysfile.h'.
11166 2000-03-06 Martin Buchholz <martin@xemacs.org>
11168 * sound.c (init_nas_sound): Fix compiler warning.
11170 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11172 (MARK_STRUCT_AS_FREE):
11173 (MARK_STRUCT_AS_NOT_FREE):
11174 Make `gcc -fstrict-aliasing' work properly.
11176 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
11178 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11179 (mswindows_delete_device): Call CoUnnitialize().
11181 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11183 2000-02-25 <CraigL@DyCon.com>
11185 * process-nt.c: MinGW now has <shellapi.h>, but still needs
11188 * sysdep.c: This extern declaration for environ prevents MinGW
11189 from finding the variable in CRTDLL.DLL.
11191 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11193 (SHGFI_EXETYPE): ..
11194 (WM_MOUSEWHEEL): ..
11195 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11197 (MMRESULT): Removed, now defined in cygwin's windows headers.
11199 (uid_t,gid_t,pid_t,ssize_t): ..
11200 (_timeb): Removed, MinGW defines both _timeb and timeb.
11201 (HAVE_H_ERRNO): Added.
11202 (HAVE_TZNAME): Added, configure is not detecting this.
11204 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
11206 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11207 * syntax.c (syntax_match): Use it.
11209 * cmds.c: Import auto-fill-chars from FSF Emacs.
11210 (Vauto_fill_chars): New variables.
11211 (internal_self_insert): Check Vauto_fill_chars.
11213 Declare auto-fill-chars as a Lisp variable and initialize it.
11215 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
11217 * fileio.c (Fmake_symbolic_link):
11219 Run handlers even if local machine doesn't have symlinks.
11221 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
11223 * event-msw.c (mswindows_drain_windows_queue):
11224 Don't generate paint magic events for non-XEmacs frames.
11226 2000-03-05 Andy Piper <andy@xemacs.org>
11228 * redisplay.c (redisplay_frame): generate_displayable_area and
11229 friends assumes that we are not in GC, we therefore have to make
11230 sure that this doesn't happen.
11232 * gutter.c (calculate_gutter_size): generate_displayable_area
11233 assumes that we are not in GC, we therefore have to make sure that
11234 this doesn't happen.
11236 2000-03-05 Martin Buchholz <martin@xemacs.org>
11238 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11240 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
11242 * redisplay.c (regenerate_window): Make sure we set a sane value
11243 for end_pos even if we jump out of the loop.
11244 (regenerate_window): Answer Ben's question :-).
11245 (start_end_of_last_line): Add may_error argument.
11246 (start_of_last_line):
11247 (end_of_last_line): Pass may_error = 0.
11248 (end_of_last_line_may_error): New function.
11249 (pixel_to_glyph_translation): Use it, so we don't crash in
11252 2000-03-04 Andy Piper <andy@xemacs.org>
11254 * window.h (struct window): add gutter_extent_modiff.
11256 * window.c (allocate_window): zero out gutter_extent_modiff.
11258 * redisplay.h: declare sync_display_line_structs.
11260 * redisplay.c (add_glyph_rune): add a better comment.
11262 * redisplay-output.c (sync_display_line_structs): made non-static.
11263 (compare_runes): remove unneccesary glyph cachel access.
11265 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11267 * gutter.c (output_gutter): don't output the gutter if extent
11268 changes only involve extents in buffers. use 4 sets of display
11270 (gutter_extent_signal_changed_region_maybe): new function. Mark
11271 extents in gutters as changed.
11272 (update_frame_gutters): use 4 sets of display lines.
11273 (reset_gutter_display_lines): ditto.
11274 (free_frame_gutters): ditto.
11275 (redraw_exposed_gutter): force output of gutters.
11277 * frame.h (struct frame): add 4 sets of gutter display lines.
11279 * extents.c: (extent_changed_for_redisplay): signal changes to
11280 extents in strings in the gutter as well as extents in buffers.
11282 2000-03-02 Andy Piper <andy@xemacs.org>
11284 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11286 * frame.c (Fmake_frame): make sure the gutters get initialized
11287 after the frame is visible.
11288 (set_frame_selected_window): re-arrange compilation macros a
11290 (change_frame_size_1): mark gutters changed.
11292 * device.c (Fset_device_class): mark gutters changed.
11294 2000-03-01 Andy Piper <andy@xemacs.org>
11296 * window.c (window_top_frame_gutter_height): deleted.
11297 (window_bottom_frame_gutter_height): ditto.
11298 (window_left_frame_gutter_height): ditto.
11299 (window_right_frame_gutter_height): ditto.
11300 (window_top_gutter_height): don't use them.
11301 (window_bottom_gutter_height): ditto.
11302 (window_left_gutter_width): ditto.
11303 (window_right_gutter_width): ditto.
11304 (Fsplit_window): ditto.
11305 (Fwindow_pixel_edges): don't use border dimensions here.
11307 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11308 (update_scrollbar_instance): ditto.
11310 * redisplay.c (generate_modeline): don't take gutters into account.
11311 (generate_modeline): ditto.
11312 (redisplay_frame): small gutter display optimization.
11314 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11316 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11317 gutters into account.
11319 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11320 for window position and type.
11322 * gutter.c (get_gutter_coords): fix for frame gutters.
11323 (update_frame_gutters): update frame geometry if the gutters have
11325 (init_frame_gutters): record current gutter geometries.
11327 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11329 (mswindows_widget_instantiate): ditto.
11331 * frame.h (struct frame): add current_gutter_bounds.
11333 * frame.c (change_frame_size_1): position window and minibuffer
11334 appropriately taking into account the frame gutters.
11336 * frame-x.c: (x_initialize_frame_size): take into account the
11339 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11341 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
11343 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11345 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11347 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11349 * file-coding.c (reset_decoding_stream): Clear previous
11350 detection state when autodetect.
11352 2000-02-29 Didier Verna <didier@xemacs.org>
11354 * extents.c (set_extent_glyph_1): don't require extents to be
11357 2000-02-27 Andy Piper <andy@xemacs.org>
11359 * gutter.c (Fset_default_gutter_position): don't default left and
11360 right gutter visibility to t.
11361 (Fset_default_gutter_position): run
11362 default-gutter-position-changed-hook.
11363 (syms_of_gutter): add default-gutter-position-changed-hook.
11365 2000-02-26 Andy Piper <andy@xemacs.org>
11367 * specifier.c (Fmake_specifier): add gutter references.
11369 * gutter.h (RAW_WINDOW_GUTTER): new macro.
11371 * lisp.h: declare Fvalid_plist_p.
11373 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11375 (default_gutter_visible_p_changed_in_window): invalidate gutter as
11376 well as its visibility so that it gets reconstructed.
11377 (construct_window_gutter_spec): new function. Construct a string
11378 to be displayed in the gutter from a plist of strings. Take care
11379 to only use elements that are declared as visible.
11380 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11382 (gutter_validate): allow plists of strings in the specifier.
11383 (gutter_specs_changed): construct the real_gutter from the gutter
11384 specs using construct_window_gutter_spec.
11385 (gutter_visible_validate): gutter-visible is a new specifier type.
11386 (Fgutter_visible_specifier_p): new function for the new specifier.
11387 (syms_of_gutter): declare gutter-visible and
11388 Fgutter_visible_specifier_p.
11389 (specifier_type_create_gutter): intitalize new gutter-visible
11391 (reinit_specifier_type_create_gutter): ditto.
11392 (specifier_vars_of_gutter): use new specifier type for gutter
11394 (init_frame_gutters): construct real_gutter correctly.
11395 (Fgutter_specifier_p): beef up documentation.
11396 (Fgutter_size_specifier_p): ditto.
11398 * winslots.h: add real_gutter slots.
11400 2000-02-25 Andy Piper <andy@xemacs.org>
11402 * device-msw.c: Be kind to older cygwin versions. From Raymond
11403 Toy <toy@rtp.ericsson.se>.
11405 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11406 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11408 2000-02-25 Martin Buchholz <martin@xemacs.org>
11410 * elhash.c (MARK_OBJ): Practice macro hygiene.
11412 2000-02-24 Martin Buchholz <martin@xemacs.org>
11414 * miscplay.c: s/__inline__/inline/g;
11415 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11416 (get_device_compdc): INLINE ==> static inline
11417 * *.[ch]: Change INLINE to INLINE_HEADER globally.
11418 find -name '*.h' | \
11419 xargs global-replace \
11420 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11422 2000-02-25 Andy Piper <andy@xemacs.org>
11424 * window.c (window_top_frame_gutter_height): new function.
11425 (window_top_window_gutter_height): ditto.
11426 (window_top_gutter_height): use them.
11427 (window_bottom_frame_gutter_height): new function.
11428 (window_bottom_window_gutter_height): ditto.
11429 (window_bottom_gutter_height): use them.
11430 (window_left_window_gutter_width): new function.
11431 (window_left_frame_gutter_width): ditto.
11432 (window_left_gutter_width): use them.
11433 (window_right_window_gutter_width): new function.
11434 (window_right_frame_gutter_width): ditto.
11435 (window_right_gutter_width): use them.
11436 (window_pixel_height): new function. calulate window pixel height
11437 with frame gutter involvement.
11438 (Fsplit_window): calculate new sizes taking frame gutters into
11440 (window_char_height_to_pixel_height): don't include frame gutters.
11441 (window_char_height): use window_pixel_height.
11442 (window_pixheight): rename from window_pixel_height.
11443 (change_window_height): use it.
11444 (window_pixel_height_to_char_height): don't include frame gutters.
11445 (window_char_width_to_pixel_width): ditto.
11447 2000-02-25 Andy Piper <andy@xemacs.org>
11449 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11452 2000-02-24 Martin Buchholz <martin@xemacs.org>
11454 * alloc.c (staticpro):
11455 (staticpro_nodump):
11460 (compact_string_chars):
11461 (pdump_dump_wired):
11462 Convert: if (foo) abort(); ==> assert (! foo);
11464 * eldap.c (Fldap_search_basic):
11468 Fix compiler warnings, and possible crashes if (random) return
11469 value were to be used.
11471 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11473 * device-msw.c: Workaround ResetDC failure.
11475 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11476 applying a devmode.
11478 * redisplay-msw.c (get_frame_dc): Added start_page_p.
11479 (mswindows_text_width): Do not start printer page.
11481 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11483 * glyphs-msw.c: Added image methods to msprinter console and
11484 msprinter-specific image instantiation.
11486 2000-02-20 Mike Alexander <mta@arbortext.com>
11488 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11489 to avoid crashes when selection-sets-clipboard is on
11490 (mswindows_own_selection): ditto
11492 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11495 * redisplay-msw.c (get_frame_dc):
11496 (get_frame_compdc):
11498 * device-msw.c (mswindows_init_device):
11499 (mswindows_delete_device):
11500 (msprinter_init_device):
11501 (msprinter_delete_device):
11502 * frame-msw.c (mswindows_init_frame_1):
11503 (mswindows_delete_frame):
11504 (msprinter_init_frame_3):
11505 (msprinter_delete_frame): Move compatible DC to device object from
11506 frame object, for both mswindows and msprinter. Only one at a time
11507 is needed, it is a real waste to have one per frame!
11509 2000-02-23 Andy Piper <andy@xemacs.org>
11511 * glyphs.c: add dynamic width and height elements.
11512 (image_instance_equal): ditto.
11514 * glyphs-widget.c (widget_query_geometry): calculate width and
11515 height dynamically if required.
11516 (initialize_widget_image_instance): initialize dynamic dimensions.
11517 (widget_instantiate): pick-up dynamic dimensions.
11519 * glyphs.h (struct Lisp_Image_Instance): add width and height for
11520 dynamic determination. Add appropriate macros.
11522 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11524 (WINDOW_GUTTER_SIZE): ditto.
11525 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11527 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11529 (get_frame_dc): ditto.
11531 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11534 2000-02-23 Martin Buchholz <martin@xemacs.org>
11536 * XEmacs 21.2.31 is released.
11538 2000-02-22 Ben Wing <ben@xemacs.org>
11540 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11542 2000-02-22 Andy Piper <andy@xemacs.org>
11544 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11546 2000-02-21 Mike Sperber <mike@xemacs.org>
11550 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11553 2000-02-21 Mike Sperber <mike@xemacs.org>
11555 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11557 2000-02-21 Martin Buchholz <martin@xemacs.org>
11559 * XEmacs 21.2.30 is released.
11561 2000-02-20 Martin Buchholz <martin@xemacs.org>
11563 Performance hacking.
11565 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11566 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11567 * emacs.c (main_1):
11569 * console.c (DEFVAR_CONSOLE_LOCAL_1):
11570 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11571 * symeval.h (DEFVAR_SYMVAL_FWD):
11572 * symbols.c (guts_of_unbound_marker):
11573 Make all c_readonly objects also lisp_readonly and marked for life.
11574 * lrecord.h (struct lrecord_implementation):
11575 Document flags better.
11576 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11577 * lrecord.h (DECLARE_LRECORD):
11578 * lrecord.h (XSETRECORD):
11579 * lrecord.h (RECORDP):
11580 * lrecord.h (RECORD_TYPEP):
11581 * lrecord.h (RECORD_MARKER): New.
11582 * lrecord.h (error_check_*):
11583 * lrecord.h (CONCHECK_NONRECORD):
11584 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11585 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11586 * lrecord.h (set_lheader_implementation):
11587 * lrecord.h (enum lrecord_type): New.
11588 * symeval.h (SYMBOL_VALUE_MAGIC_P):
11589 * alloc.c (disksave_object_finalization_1):
11590 * alloc.c (mark_object):
11591 * alloc.c (lrecord_type_index):
11592 * alloc.c (tick_lcrecord_stats):
11593 * alloc.c (Fgarbage_collect):
11594 * alloc.c (init_alloc_once_early):
11595 * alloc.c (pdump_load):
11596 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11597 * alloc.c (lrecord_type_index): Delete.
11598 Make lisp object type indexes be constant.
11599 Makes (byte-compile) 5% faster.
11600 Put all marker functions into their own array.
11601 Makes (garbage-collect) 5% faster.
11602 Optimize SYMBOL_VALUE_MAGIC_P.
11603 Makes (byte-compile) 2-3% faster.
11604 * config.h.in (gc_checking_assert): New.
11605 * alloc.c: Use gc_checking_assert().
11606 * .dbxrc: Make compatible with new object type implementation.
11607 * .gdbinit: Make compatible with new object type implementation.
11608 * alloc.c: Delete all symbols defined only for debugging, such as
11609 Lisp_Type_Vector and lrecord_charset.
11611 2000-02-21 Andy Piper <andy@xemacs.org>
11613 * gui-msw.c (Fmswindows_shell_execute): fix file location
11616 * buffer.c (Fkill_buffer): remove buffer from alist buffer
11617 unshowing so that set_window_buffer doesn't undo
11618 kill_buffer_hook's hard work.
11620 * glyphs-widget.c (tab_control_query_geometry): don't count the
11621 first item when calculating geometry.
11623 * glyphs.c (map_subwindow): remove redundant code.
11624 (update_frame_subwindows): be more circumspect about when to
11627 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11628 when items haven't changed. Update faces if faces have changed as
11629 well as just the widget face.
11630 (x_tab_control_update): Update faces if faces have changed as well
11631 as just the widget face.
11633 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11635 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11637 (build_syscolor_string): Use mswindows_color_to_string to try to
11639 (mswindows_device_system_metrics): Reverse the foreground and
11640 background colors so that they match the documentation.
11642 * objects-msw.c: (mswindows_X_color_map): tweak some values so
11643 they match the default Windows palette.
11644 (mswindows_color_to_string): New function.
11646 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11648 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11650 2000-02-18 Olivier Galibert <galibert@pobox.com>
11652 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11653 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11655 * symbols.c (init_symbols_once_early): Removed obsolete
11656 DATA_SEG_BITS related kludge.
11657 (defvar_magic): Ditto.
11659 * malloc.c: Removed obsolete DATA_SEG_BITS
11661 * mem-limits.h: Ditto.
11663 * Makefile.in.in: Removed obsolete HAVE_SHM
11666 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11668 * device-msw.c (mswindows_delete_device): Free DDE string
11671 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11673 * keymap.c (get_keyelt):
11674 * unexnt.c (unexec):
11675 * vm-limit.c (memory_warnings):
11676 * ntheap.c (recreate_heap):
11677 * ntheap.h (UNINIT_PTR):
11678 * select-msw.c (Fmswindows_get_clipboard):
11679 (Fmswindows_set_clipboard):
11680 * objects-msw.h (MSWINDOWS_BAD_HFONT):
11682 * menubar-msw.c (displayable_menu_item):
11684 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11685 * sysdep.c (sys_subshell):
11686 * process-nt.c (nt_create_process):
11687 * nt.c (normalize_filename):
11688 (dostounix_filename):
11689 (unixtodos_filename):
11690 * ntproc.c (win32_executable_type):
11691 * ntplay.c (play_sound_data_1):
11693 * editfns.c (get_home_directory):
11694 * event-msw.c (struct winsock_stream):
11695 (mswindows_dde_callback):
11696 * device-msw.c (msprinter_init_device):
11697 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11699 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11700 mswindows_clear_toolbar were swapped!
11702 * objects-msw.c:(colormap_t):
11704 * emacs.c (struct standard_args): Fixed const jumble.
11706 * glyphs-widget.c (update_widget): Fixed comparison notation.
11708 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11710 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11711 __declspec(noreturn) syntax.
11713 2000-02-19 Martin Buchholz <martin@xemacs.org>
11715 * eldap.c (Fldap_open):
11716 (Fldap_search_basic):
11719 Use new coding system conversion macros.
11721 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11723 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11725 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
11727 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11728 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11730 * eldap.c (Qadd, Qreplace): New constant symbols
11731 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11732 interruptions by XEmacs signals
11733 Remove unnecessary calls to slow_down_interrupts and
11734 speed_up_interrupts
11735 (Fldap_search_basic): Renamed from Fldap_search_internal
11736 Added new optional parameter VERBOSE that triggers the
11737 display of progress messages
11738 Remove unnecessary calls to slow_down_interrupts and
11739 speed_up_interrupts
11740 LDAP result code analysis rewritten
11741 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11742 (syms_of_eldap): Define the new symbols and functions
11745 2000-02-17 Martin Buchholz <martin@xemacs.org>
11747 * realpath.c: Determine PATH_MAX maximally portably.
11749 * insdel.c (bytecount_to_charcount): Optimize.
11750 The function used to be optimized for entirely ASCII sequences.
11751 Now it is optimized for successive characters from the same
11752 charset. This also wins big for _mostly_ ASCII sequences.
11754 * fileio.c (Ffile_truename): convert return from realpath() using
11755 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
11756 - Rewrite GCPROing slightly.
11758 * sysdep.c (sys_open): Do filename conversion, like all other
11759 sys_* functions. Fixes bug:
11760 (let ((file-name-coding-system 'iso-8859-2))
11761 (write-region x y latin2-name))
11762 ==> writes filename using internal encoding.
11764 2000-02-18 Martin Buchholz <martin@xemacs.org>
11766 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11767 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11768 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11769 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11770 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11771 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11772 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11773 (CONST_IF_NOT_DEBUG): Delete.
11774 * alloc.c (this_one_is_unmarkable): Delete.
11775 (mark_object): Don't check for this_one_is_unmarkable. Use the
11776 c_readonly flag instead.
11777 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11779 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
11781 * event-msw.c (mswindows_drain_windows_queue):
11782 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11783 away redundant repaint events.
11785 2000-02-17 Andy Piper <andy@xemacs.org>
11787 * redisplay.h: declare mark_redisplay_structs.
11789 * redisplay.c (redisplay_window):
11790 (redisplay_frame): don't check subwindows_state_changed.
11791 (mark_redisplay): mark gutters here.
11793 * glyphs.c: (instantiate_image_instantiator): always layout if we
11794 haven't done so already.
11795 (allocate_image_instance): don't mark as dirty.
11796 (update_subwindow): bind inhibit_quit.
11798 * gutter.c (mark_gutters): new function.
11800 * glyphs-x.c (x_update_widget): Always resize to get round a
11803 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11804 breaking absolutely everything.
11806 * gutter.h: declare mark_gutters.
11808 2000-02-16 Martin Buchholz <martin@xemacs.org>
11810 * XEmacs 21.2.29 is released.
11812 2000-02-15 Olivier Galibert <galibert@pobox.com>
11814 * fns.c (size_bit_vector): Fix computation of the size.
11816 2000-02-15 Martin Buchholz <martin@xemacs.org>
11818 * *.[ch]: Change CONST to const globally.
11819 find -name '*.[ch]' | \
11820 xargs global-replace \
11821 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11822 - Remove vestigial references to CONST_IS_LOSING
11824 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11826 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11827 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11828 events instead of dispatching them directly.
11829 (mswindows_handle_paint): New function to do repainting.
11830 (mswindows_wnd_proc):
11831 (emacs_mswindows_handle_magic_event): Call above function.
11833 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11835 * objects-msw.c (mswindows_create_font_variant): Return the new
11837 (initialize_font_instance): Get font metrics from the underlined
11838 variant of the font to cope with the case where the underlined
11839 font has a bigger descent.
11841 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11843 * gui.c (gui_item_accelerator): Return the first underlined
11844 character in item name.
11846 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11848 * lisp.h: Added Qprinter.
11850 * general.c (syms_of_general): Initialized it.
11852 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11854 (get_frame_compdc): Made inline.
11856 * console.h (struct console_methods): Added eject_page method.
11858 * frame.h: Added FRAME_DISPLAY_P and friends.
11859 Aligned backslahes in many macros in more readable fashion.
11860 Added page_number to struct frame, and an accessor macro
11863 * defice.h: Added DEVICE_DISPLAY_P and friends.
11865 * device.c (Fdevice_printer_p): Used these.
11867 * frame.c (allocate_frame_core): Initialize page number.
11868 (Fprint_job_page_number):
11869 (Fprint_job_eject_page): Implemented.
11871 * frame-msw.c (msprinter_eject_page): Added method.
11872 (msprinter_start_page): Added.
11874 * window.c (Fwindow_truncated_p): Fixed docstring.
11875 (Fwindow_last_line_visible_height): Implemented.
11877 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11879 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11881 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11883 * syntax.c (scan_words): Always advance at least one character.
11885 2000-02-13 Andy Piper <andy@xemacs.org>
11887 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11888 to make sure the glyph is in the cachels.
11890 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11891 global image instance flag.
11892 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11893 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11895 * glyphs.c (allocate_image_instance): set dirty bits correctly.
11896 (Fset_image_instance_property): mark layout as changed.
11897 (invalidate_glyph_geometry_maybe): mark layout as changed.
11898 (glyph_width): use new NEEDS_LAYOUT macro.
11899 (glyph_ascent): ditto.
11900 (glyph_descent): ditto.
11901 (glyph_height): ditto.
11902 (image_instance_layout): mark layout as clean after laying out.
11903 (update_subwindow): don't mark layout as clean here.
11905 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11906 should no longer be needed.
11908 * glyphs-x.c (x_update_widget): sanitize asserts.
11909 (x_finalize_image_instance): sanitize assignment to widgets.
11911 * glyphs-widget.c (widget_instantiate): don't need to clear the
11914 2000-02-13 Martin Buchholz <martin@xemacs.org>
11916 * sysdep.c (getcwd): Use standard prototype.
11917 * sysdep.h (getcwd): Use standard prototype.
11919 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11920 (sequence, start, end).
11921 Remove redundant type checking.
11922 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11923 view of `caller-protects') to avoid a crash where the real fix was
11926 2000-02-12 Martin Buchholz <martin@xemacs.org>
11928 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11930 * s/sol2.h: Remove feature macro initialization.
11932 * alloc.c (alloc_lcrecord): Add more type checking assertions.
11933 (vector_hash): New. Code from internal_hash.
11935 Fix up allocation subsystem comments.
11937 * config.h.in: Add __EXTENSIONS__ for Solaris.
11939 * systime.h (EMACS_GETTIMEOFDAY): New.
11940 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11941 Remove Solaris-specific code.
11942 Use void* for the (ignored) second arg for gettimeofday().
11944 * elhash.c (hash_table_hash): Implement it, finally.
11945 * elhash.c: Use hashcode_t.
11947 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11948 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11950 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11951 * fns.c (size_bit_vector):
11952 * alloc.c (size_vector):
11953 (make_vector_internal):
11954 (make_bit_vector_internal):
11955 (sweep_bit_vectors_1):
11956 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11958 2000-02-10 Martin Buchholz <martin@xemacs.org>
11960 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11961 Include strings.h to avoid warnings for bzero and strcasecmp.
11963 2000-02-10 Olivier Galibert <galibert@pobox.com>
11965 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11966 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11968 * fns.c (size_bit_vector): New. Declare bit vectors as a
11971 2000-02-10 Olivier Galibert <galibert@pobox.com>
11973 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11974 use a value field instead.
11975 (symbol_value_forward_forward): Use value field.
11976 (DEFVAR_SYMVAL_FWD): Use value field.
11977 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
11978 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11979 (DEFVAR_CONST_INT): Ditto.
11980 (DEFVAR_BOOL): Ditto.
11981 (DEFVAR_CONST_BOOL): Ditto.
11982 (DEFVAR_INT_MAGIC): Ditto.
11983 (DEFVAR_BOOL_MAGIC): Ditto.
11985 * symbols.c (guts_of_unbound_marker): Use value field.
11986 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11987 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11989 * lisp.h: Declare dumpopaque and noninteractive1.
11991 * alloc.c (dumpopaque): Added.
11992 (pdump_dump_opaquevec): Added.
11993 (pdump): Call pdump_dump_opaquevec to dump opaque data.
11994 (pdump_load): Reload opaque data. Sync noninteractive1 with
11997 2000-02-10 Andy Piper <andy@xemacs.org>
11999 * glyphs.c (image_instance_layout): if the size changes, mark it
12002 * redisplay-output.c (redisplay_output_layout): Update the
12004 (redisplay_output_subwindow): ditto.
12006 * glyphs.c (update_subwindow): make sure we reset flags for
12007 layouts as well as everything else.
12009 * glyphs-widget.c (layout_layout): don't need to set the instances
12012 2000-02-09 Martin Buchholz <martin@xemacs.org>
12014 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
12015 not HAVE_DLOPEN, which is a lower-level thing.
12017 * .cvsignore: Ignore gmon.out
12019 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
12021 * .cvsignore: Ignore portable dumper xemacs.dmp file
12023 2000-02-09 Andy Piper <andy@xemacs.org>
12025 * redisplay-output.c (redisplay_output_layout): be more clever
12026 about when we output based on the changed flags.
12028 * glyphs.h (struct image_instantiator_methods): add update_method.
12029 (struct Lisp_Image_Instance): add changed flags. Declare new
12030 macros for manipulating them.
12032 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
12033 (image_instance_parent_glyph): find an image_instance's parent
12034 glyph or image_instance.
12035 (image_instance_layout): mark the size as changed.
12036 (set_image_instance_dirty_p): new function. mark an image
12037 instance, plus all of its parents, as dirty.
12038 (Fset_image_instance_property): use it.
12039 (Fglyph_animated_timeout_handler): use it.
12040 (update_subwindow): call update_widget and device methods for
12041 update_subwindow. Mark all changed flags as clean.
12042 (Fresize_subwindow): mark size as changed.
12044 * glyphs-x.c (x_finalize_image_instance): try and detect gc
12046 (x_update_subwindow): only resize subwindows here.
12047 (x_update_widget): new function. Update all changed properties of
12049 (x_resize_subwindow): deleted.
12050 (x_widget_set_property): deleted.
12051 (x_progress_gauge_set_property): deleted.
12052 (x_progress_gauge_update): new function. Implement recorded
12054 (x_tab_control_update): ditto.
12055 (x_tab_control_set_property): deleted.
12056 (console_type_create_glyphs_x): declare new functions.
12057 (image_instantiator_format_create_glyphs_x): ditto.
12059 * glyphs-widget.c (widget_set_property): mark text changed.
12060 (update_widget): new function. Update properties of a widget.
12061 (widget_instantiate): for layouts make sure we set their
12062 children's parent correctly.
12063 (tab_control_set_property): new function. Record changes that will
12064 take place under redisplay's control.
12065 (progress_gauge_set_property): ditto.
12066 (image_instantiator_progress_guage): declare new functions.
12067 (image_instantiator_tab_control): ditto.
12069 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
12071 (mswindows_update_widget): new function. Update all properties on
12072 a widget that have changed.
12073 (mswindows_button_update): new function. Update a button's set
12075 (mswindows_tab_control_update): new function. Update the items in
12077 (mswindows_tab_control_set_property): deleted.
12078 (mswindows_progress_gauge_update): new function. Update the
12079 progress gauge's progress.
12080 (mswindows_widget_set_property): deleted. This is all done
12081 asynchronously now.
12082 (mswindows_progress_gauge_set_property): ditto.
12083 (console_type_create_glyphs_mswindows): declare new methods.
12084 (image_instantiator_format_create_glyphs_mswindows): ditto.
12086 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
12087 (msprinter_set_frame_properties): ditto.
12089 * console.h (struct console_methods): Add update_widget_method.
12091 2000-02-09 Andy Piper <andy@xemacs.org>
12093 * gui-msw.c (Fmswindows_shell_execute): Make
12094 mswindows-shell-execute industrial strength.
12096 2000-02-08 Martin Buchholz <martin@xemacs.org>
12098 * lrecord.h: Make macro argument `props' match member function `plist'.
12101 * fns.c (Fremprop):
12102 * fns.c (Fobject_plist):
12105 Object property list frobbing cleanup.
12106 - Allow any lisp object (compared with `eq'), not just symbols, as
12107 keys in object plists.
12108 - Move symbol plist frobbing into symbols.c, where it belongs.
12109 - Move string plist frobbing into alloc.c, where it belongs.
12110 - Everything's an lrecord now, so no need to test for symbolp, etc.
12111 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12113 * extents.c: Reorder code to remove declarations.
12115 * frame.h (store_in_alist): Remove useless declaration.
12117 2000-02-07 Martin Buchholz <martin@xemacs.org>
12119 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12120 * config.h.in: Add HAVE_XCONVERTCASE.
12122 2000-02-07 Andy Piper <andy@xemacs.org>
12124 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12125 it breaks many things.
12127 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
12129 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12130 actually can start a common comment type.
12131 * src/syntax.h (SYNTAX_END_P): ditto for end.
12133 2000-02-07 Martin Buchholz <martin@xemacs.org>
12135 * XEmacs 21.2.28 is released.
12137 2000-02-06 Martin Buchholz <martin@xemacs.org>
12139 * event-Xt.c (x_keysym_to_character): New.
12140 (maybe_define_x_key_as_self_inserting_character): New.
12141 (x_has_keysym): New.
12142 Auto-define all keys on the keyboard as self-insert-key.
12144 2000-02-02 Martin Buchholz <martin@xemacs.org>
12146 * menubar.c (vars_of_menubar): A small code simplification.
12148 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12151 * ExternalClient.c:
12152 * EmacsShell-sub.c:
12155 Use consistent style for specifying X resources.
12157 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12158 This makes (dontusethis-set-symbol-value-handler) actually usable.
12160 * lrecord.h (lrecord_decription_type):
12161 * alloc.c (pdump_register_sub):
12164 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12165 Comply with XEmacs coding style.
12166 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12167 args, and XD_LISP_OBJECT_ARRAY with 3 args.
12169 * keymap.c (Faccessible_keymaps):
12170 Make (accessible-keymaps map "\C-h") do the Right Thing.
12171 Make (accessible-keymaps map []) do the Right Thing.
12172 Make (accessible-keymaps map "") do the Right Thing.
12173 (check_keymap_definition_loop): New function.
12174 (keymap_store_internal): Keep luser from shooting self in foot,
12175 via (define-key ctl-x-4-map "p" global-map).
12176 Remove fullness slot from struct Lisp_Keymap, since hash tables
12178 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12180 2000-01-30 Martin Buchholz <martin@xemacs.org>
12182 * redisplay.c (init_redisplay): Fix small memory leak.
12184 * elhash.c (pdump_reorganize_hash_table):
12185 Rename from reorganize_hash_table. Change prototype.
12186 Reuse the original memory for hentries. Save 100k.
12187 * alloc.c (PDUMP_READ): new macro.
12188 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12189 * alloc.c: No need to #ifndef before #undef.
12191 * print.c: Allow debug_print() to print readably by modifying
12192 debug_print_readably. Use consistent variable names.
12194 * .dbxrc: Try to get things to work even if stopped in a function
12195 without source available by explicitly specifying source files.
12196 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12198 * unexnt.c (_start): Removed bogus code which caused loading heap
12199 from differrent executable file.
12200 Removed bogus assignment to _fmode, which caused inconsistencies.
12202 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12204 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12205 Have spawnve encapsulation regard DONT_ENCAPSULATE.
12206 Do not preliminary `#define signal sigset'.
12208 * systime.h: Do not prototype environ on windows nt and cygwin,
12209 this conflicts with system header.
12211 * syssignal.h: Use correct define for WINDOWSNT
12213 * sysdep.h: Do not prototype environ on windows nt, this conflicts
12214 with system header.
12216 * sysdep.c (near start of file): Fixed commentary and rearranged
12217 ifdefs in readable order.
12218 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12221 (end_of_data): Do not compile in if using PDUMP.
12223 * symsinit.h: Prototyped vars_of_nt().
12225 * ntproc.c (windows9x_p): Added, instead of os_subtype.
12226 (find_child_console): Use it.
12227 (sys_kill): Use it.
12229 * ntheap.h: Do not extern os_subtype.
12231 * ntheap.c (cache_system_info): Do not cache unneeded:
12232 nt_major_version, nt_minor_version and os_subtype.
12233 (recreate_heap): Do not compile in when PDUMPing.
12235 * nt.c (geteuid and friends): Use the new varibale
12236 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12237 (init_user_info): Removed the above mentioned hackery.
12238 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12239 stat has been fixed in the C runtime.
12240 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12242 * file-coding.c (struct file_coding_dump): Do not define
12243 ucs_to_mule_table in the struct if not MULE.
12244 (struct struct lrecord_description fcd_description_1): Do not dump
12247 * emacs.c (main_1): Call vars_of_nt().
12248 (right before Fdump_emacs_data): Don't need lastfile if using both
12249 portabe dumper and system malloc.
12251 * alloc.c (Fmemory_limit): Conditionalized out.
12252 (pdump): Use OPEN_BINARY for the portable dump file.
12253 (pdump_load): Ditto.
12255 2000-02-02 Mike Alexander <mta@arbortext.com>
12257 * nt.c (convert_time): Set tm_isdst before calling mktime and
12258 avoid calling it at all if the compiler supports 64 bit integers.
12259 Also initialize utc_base_ft before using it.
12261 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
12263 * frame.c (change_frame_size_1): Take f->internal_border_width
12264 into consideration when calculating the width of the frame.
12266 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12268 * window.c (frame_min_height):
12269 (frame_size_valid_p):
12270 (frame_pixsize_valid_p): Added.
12271 (check_frame_size): Generalized.
12273 * window.h: Prototyped the above.
12276 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12277 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12278 Deleted Vwin32_* and Vbinary_process_* unused variables.
12280 * device-msw.c (msprinter_init_device): Do not get printer font
12281 list; Added DEVMODE functions.
12283 * frame-msw.c: Added lots of printer code.
12285 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12288 * console-msw.h: Added more msprinter device private slots.
12290 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12292 * event-msw.c (key_needs_default_processing_p): Added.
12293 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12295 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12297 * glyphs.c (image_instance_layout): Mark image instance as clean
12299 (glyph_dirty_p): Removed redundant function.
12300 (invalidate_glyph_geometry_maybe): Added.
12301 (update_glyph_cachel_data): Call it.
12303 * glyphs.h: Prototyped it.
12305 * redisplay.c (add_glyph_rune): Call it.
12306 (redisplay_window): Reset glyphs cachels when frame faces have
12307 changed, thus forcing recomputation of built-in border glyphs.
12309 2000-01-30 Martin Buchholz <martin@xemacs.org>
12311 * Makefile.in.in: Make portable dumper and purify play well together.
12312 Add imperfect, but better than nothing, support for pdump.
12313 Remove xemacs.dmp when temacs is re-generated.
12314 Don't ignore errors when dumping xemacs.
12316 * symbols.c (maybe_call_magic_handler): Remove one magic number.
12318 2000-01-28 Andy Piper <andy@xemacs.org>
12320 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12321 (setup_normal_frame): ditto.
12322 (setup_frame_without_minibuffer): ditto.
12323 (setup_minibuffer_frame): ditto.
12324 (delete_frame_internal): ditto.
12325 (Fmake_frame_invisible): ditto.
12326 (Ficonify_frame): ditto.
12328 * window.h: change Fset_window_buffer signature.
12330 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12331 (Fset_window_buffer): allow recording of buffer if the window is
12332 the selected window.
12333 (window_loop): Use new Fset_window signature.
12335 2000-01-23 Daniel Pittman <daniel@danann.net>
12337 * config.h.in: Added template for `HAVE_ATHENA_3D'
12339 2000-01-29 Andy Piper <andy@xemacs.org>
12341 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12343 * gutter.c (output_gutter): Don't output if the window isn't live.
12345 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12347 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12348 of 01/12/00: Moved SetFocus back here where it belongs.
12350 2000-01-23 Andy Piper <andy@xemacs.org>
12352 * s/cygwin32.h: declare printer things.
12354 2000-01-26 Andy Piper <andy@xemacs.org>
12356 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12359 2000-01-24 Andy Piper <andy@xemacs.org>
12361 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12362 (mswindows_button_instantiate): Make sure glyph is a pixmap.
12364 * glyphs-widget.c (widget_instantiate): Avoid shadows.
12366 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12368 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12370 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12371 (mswindows_output_display_block): Avoid local shadows.
12373 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12374 (mswindows_enqueue_mouse_button_event): ditto.
12375 (mswindows_handle_gui_wm_command): remove declaration.
12377 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12380 * console-msw.h: Avoid shadows.
12381 (mswindows_get_toolbar_button_text):
12382 (emacs_mswindows_create_stream_pair):
12383 (emacs_mswindows_delete_stream_pair):
12384 (mswindows_handle_toolbar_wm_command): declare.
12386 * device-msw.c (build_syscolor_string): Avoid shadows.
12388 2000-01-23 Andy Piper <andy@xemacs.org>
12390 * glyphs-widget.c (widget_instantiate): reverse the items for
12391 layouts so that children are in the expected order.
12393 2000-01-28 Martin Buchholz <martin@xemacs.org>
12395 * ralloc.c: safe_bcopy ==> memmove
12396 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12397 * s/msdos.h: Remove BCOPY macros.
12398 * insdel.c (gap_right): Remove BCOPY conditional code.
12399 * insdel.c (gap_left): Remove BCOPY conditional code.
12400 XEmacs demands a working ANSI C compiler - hence memmove.
12402 * regex.c (regex_compile): Remove accidental use of trigraphs.
12404 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12406 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12409 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12411 * event-msw.c (mswindows_drain_windows_queue): Added the
12413 (mswindows_need_event): Commented the call to
12414 mswindows_drain_windows_queue().
12415 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12418 * console-msw.h: Moved a few function prototypes here from
12421 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12422 parameter from unsigned short to unsigned long.
12423 (Fmswindows_shell_execute): Added return value.
12425 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12427 * sysdep.c (init_system_name):
12428 process-unix.c (unix_canonicalized_host_name):
12429 Don't call freeaddrinfo() if getaddrinfo() fails.
12431 * process-unix.c (unix_open_unix_network_stream):
12432 Moved the code to get a port # into address loop.
12434 2000-01-27 Martin Buchholz <martin@xemacs.org>
12436 * buffer.c (reinit_vars_of_buffer):
12437 The right place to initialize conversion_in_dynarr and
12438 conversion_out_dynarr.
12440 * alloc.c (pdump): Use the real open() till sys_open() is functional.
12442 * process-unix.c (unix_canonicalize_host_name): Muleize.
12443 (unix_open_network_stream): Muleize.
12445 * buffer.h: Fix up prototypes for ralloc.c functions.
12447 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12448 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12449 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12450 instead of gethostbyname()
12451 * process-unix.c: In unix_canonicalize_host_name() and
12452 unix_open_network_stream(), add code to use getaddrinfo()
12453 instead of gethostbyname().
12455 2000-01-27 Daniel Pittman <daniel@danann.net>
12457 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12458 libs when built with flat Athena.
12460 2000-01-27 Martin Buchholz <martin@xemacs.org>
12462 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12463 Use coding standards for function prototypes.
12465 2000-01-25 Martin Buchholz <martin@xemacs.org>
12467 * dialog-msw.c (push_lisp_string_as_unicode):
12468 * doc.c (unparesseuxify_doc_string):
12469 * dired.c (Fuser_name_completion_1):
12470 * dired.c (Fuser_name_all_completions):
12471 * dired.c (free_user_cache):
12472 * dired.c (user_name_completion):
12473 * console-x.c (get_display_arg_connection):
12474 * minibuf.c (clear_echo_area_internal):
12475 * minibuf.c (echo_area_append):
12476 * eldap.c (Fldap_open):
12477 * eldap.c (Fldap_search_internal):
12478 * frame-x.c (x_set_frame_text_value):
12479 * frame-x.c (x_set_frame_properties):
12480 * frame-x.c (x_create_widgets):
12481 * redisplay-tty.c (term_get_fkeys_1):
12482 * objects-x.c (x_parse_nearest_color):
12483 * objects-x.c (x_valid_color_name_p):
12484 * objects-x.c (x_initialize_font_instance):
12485 * objects-x.c (x_list_fonts):
12486 * objects-x.c (x_find_charset_font):
12487 * tooltalk.c (Fadd_tooltalk_message_arg):
12488 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12489 * tooltalk.c (Fadd_tooltalk_pattern_arg):
12490 * process-unix.c (unix_create_process):
12491 * ntproc.c (sys_spawnve):
12492 * sound.c (Fplay_sound_file):
12493 * sound.c (Fplay_sound):
12494 * buffer.c (init_initial_directory):
12495 * buffer.c (init_buffer):
12496 * editfns.c (init_editfns):
12497 * editfns.c (Ftemp_directory):
12498 * editfns.c (Fuser_full_name):
12499 * editfns.c (uncache_home_directory):
12500 * editfns.c (get_home_directory):
12501 * editfns.c (Fuser_home_directory):
12502 * editfns.c (Fformat_time_string):
12503 * editfns.c (Fcurrent_time_string):
12504 * gui-x.c (button_item_to_widget_value):
12505 * database.c (Fopen_database):
12506 * event-Xt.c (x_to_emacs_keysym):
12507 * event-Xt.c (x_event_to_emacs_event):
12508 * event-Xt.c (describe_event_window):
12509 * event-msw.c (mswindows_wnd_proc):
12510 * glyphs-eimage.c (jpeg_instantiate):
12511 * glyphs-eimage.c (gif_instantiate):
12512 * glyphs-eimage.c (png_instantiate):
12513 * glyphs-eimage.c (tiff_instantiate):
12514 * glyphs-x.c (xbm_instantiate_1):
12515 * glyphs-x.c (x_xbm_instantiate):
12516 * glyphs-x.c (x_xface_instantiate):
12517 * glyphs-x.c (autodetect_instantiate):
12518 * glyphs-x.c (cursor_font_instantiate):
12519 * glyphs-x.c (x_widget_instantiate):
12520 * glyphs-x.c (x_widget_set_property):
12521 * glyphs-x.c (x_widget_property):
12522 * glyphs-x.c (BUILD_GLYPH_INST):
12523 * print.c (write_string_to_stdio_stream):
12524 * print.c (output_string):
12525 * print.c (Falternate_debugging_output):
12526 * print.c (Fexternal_debugging_output):
12527 * glyphs-msw.c (extract_xpm_color_names):
12528 * glyphs-msw.c (mswindows_xpm_instantiate):
12529 * glyphs-msw.c (bmp_instantiate):
12530 * glyphs-msw.c (resource_name_to_resource):
12531 * glyphs-msw.c (mswindows_resource_instantiate):
12532 * glyphs-msw.c (xbm_instantiate_1):
12533 * glyphs-msw.c (mswindows_xbm_instantiate):
12534 * glyphs-msw.c (mswindows_xface_instantiate):
12535 * glyphs-msw.c (mswindows_widget_instantiate):
12536 * glyphs-msw.c (add_tree_item):
12537 * glyphs-msw.c (add_tab_item):
12538 * glyphs-msw.c (mswindows_combo_box_instantiate):
12539 * glyphs-msw.c (mswindows_widget_property):
12540 * glyphs-msw.c (mswindows_combo_box_property):
12541 * glyphs-msw.c (mswindows_widget_set_property):
12542 * console.c (stuff_buffered_input):
12543 * objects-msw.c (mswindows_initialize_color_instance):
12544 * objects-msw.c (mswindows_valid_color_name_p):
12545 * objects-msw.c (mswindows_list_fonts):
12546 * objects-msw.c (mswindows_font_instance_truename):
12547 * bytecode.c (optimize_compiled_function):
12548 * select-x.c (symbol_to_x_atom):
12549 * select-x.c (x_atom_to_symbol):
12550 * select-x.c (hack_motif_clipboard_selection):
12551 * select-x.c (selection_data_to_lisp_data):
12552 * select-x.c (lisp_data_to_selection_data):
12553 * select-x.c (Fx_get_cutbuffer_internal):
12554 * select-x.c (Fx_store_cutbuffer_internal):
12555 * buffer.h (TO_EXTERNAL_FORMAT): New function.
12556 * buffer.h (TO_INTERNAL_FORMAT): New function.
12557 * emacs.c (make_arg_list_1):
12558 * emacs.c (make_argc_argv):
12559 * emacs.c (main_1):
12560 * emacs.c (Fdump_emacs):
12561 * emacs.c (split_string_by_emchar_1):
12566 * device-x.c (x_init_device):
12567 * device-x.c (Fx_valid_keysym_name_p):
12568 * device-x.c (Fx_get_font_path):
12569 * device-x.c (Fx_set_font_path):
12570 * glyphs.c (bitmap_to_lisp_data):
12571 * glyphs.c (pixmap_to_lisp_data):
12572 * alloc.c (make_ext_string): Use coding system arguments. Update
12574 * alloc.c (build_string):
12575 * callproc.c (child_setup):
12576 * callproc.c (init_callproc):
12577 * fileio.c (lisp_strerror):
12578 * fileio.c (directory_file_name):
12579 * fileio.c (Fexpand_file_name):
12580 * fileio.c (Ffile_truename):
12581 * fileio.c (Fsysnetunam):
12582 * fileio.c (Fdo_auto_save):
12583 * sysdep.c (sys_readdir):
12584 * tests.c: New file. Allow adding C tests.
12585 Replace GET_* macros with a more comprehensible and flexible
12586 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12588 Any coding system can be used to do format conversion.
12589 Eliminate enum external_data_format.
12590 Eliminate convert_to_external_format.
12591 Eliminate convert_to_internal_format.
12592 Make sure file-name, keyboard, terminal, and ctext are always
12593 defined as coding systems or aliases. Make
12594 file-name-coding-system, terminal-coding-system, and
12595 keyboard-coding-system magical variables that are equivalent to
12596 defining the corresponding coding system aliases.
12598 * file-coding.c (Fcoding_system_canonical_name_p): New function.
12599 * file-coding.c (Fcoding_system_alias_p): New function.
12600 * file-coding.c (Fcoding_system_aliasee): New function.
12601 * file-coding.c (append_suffix_to_symbol): New function.
12602 * file-coding.c (dangling_coding_system_alias_p): New function.
12603 * file-coding.c (Ffind_coding_system):
12604 * file-coding.c (Fcopy_coding_system):
12605 * file-coding.c (encode_coding_no_conversion):
12606 * file-coding.c (syms_of_file_coding):
12607 * file-coding.c (vars_of_file_coding):
12608 Rewrite coding system alias code.
12609 Allow nested aliases, like symbolic links.
12610 Allow redefinition of coding system aliases.
12611 Prevent existence of dangling coding system aliases.
12613 * dired.c (Fuser_name_completion_1):
12614 * dired.c (Fuser_name_all_completions):
12615 A crash would happen if user did QUIT in the middle of building
12616 user_name_cache. Remove redundant code in mainline and unwind_protect.
12619 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
12621 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12622 an unsigned char *. Update all callers.
12624 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12626 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12628 2000-01-25 Martin Buchholz <martin@xemacs.org>
12630 * elhash.c (hentry_description): Use more portable definition.
12631 (resize_hash_table): Initialize new hentries using
12632 xnew_array_and_zero, thereby simplifying the code.
12634 * mule-charset.c (make_charset): Make sure entire object is
12635 initialized, to avoid Purify warnings.
12637 * alloc.c (resize_string): Fix unlikely crash with big strings.
12639 2000-01-24 Martin Buchholz <martin@xemacs.org>
12641 * realpath.c (xrealpath):
12642 Don't call getwd().
12644 2000-01-25 Martin Buchholz <martin@xemacs.org>
12646 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12648 1999-12-28 Max Matveev <max@melbourne.sgi.com>
12650 * unexelfsgi.c (unexec): Change the way we decide which segment
12651 should be extended.
12653 Assumption that .bss section should be outside the PT_LOADable
12654 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12655 it's present) is inside the 'data' segment. This would fail the
12656 test which was used to find a segment to grow and cover new
12657 heap. Instead of this assumption, I created another one - on IRIX
12658 the segment to grow should start below .bss and it's address
12659 should extent above the end of .bss. Once this segment is
12660 identified, it's grown to accommodate the new heap and new
12661 zero-length .bss section is added at the end of .data2.
12663 2000-01-25 Martin Buchholz <martin@xemacs.org>
12665 * eval.c (Feval): Wrong number of arguments should use original
12666 function, not the indirect_function version of it.
12668 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12670 * glyphs-x.c (x_button_instantiate): Don't add image if
12671 it is not a pixmap.
12672 (x_locate_pixmap_file): Call Fexpand_file_name when file name
12675 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
12677 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12679 (DEFVAR_INT_MAGIC): Ditto.
12680 (DEFVAR_BOOL_MAGIC): Ditto.
12681 * glyphs.h: Reindent backslash.
12683 2000-01-24 Martin Buchholz <martin@xemacs.org>
12685 * glyphs-widget.c (layout_query_geometry):
12686 (layout_layout): Use correct types for gheight, gwidth.
12688 2000-01-24 Martin Buchholz <martin@xemacs.org>
12690 * EmacsManager.c (QueryGeometry): Purified.
12692 2000-01-23 Martin Buchholz <martin@xemacs.org>
12694 * alloc.c (make_float): Make sure entire object is initialized, to
12695 avoid Purify warnings.
12696 (pdump_register_sub): Remove useless assignment.
12697 (pdump): Use xmalloc, not malloc.
12698 (pdump_load): Use xmalloc, not malloc.
12700 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12707 * sysdep.c: Removed redundant #include <windows.h>
12709 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12711 * frame.c (delete_frame_internal): Do not delete device when its
12712 implementation so declares.
12713 (delete_frame_internal): Set device selected frame to nil when
12714 last frame goes away.
12716 * device-msw.c (msprinter_device_system_metrics): Implemented.
12717 (mswindows_device_system_metrics): Added 'device-dpi property.
12719 * device.c: (Fdevice_printer_p): Added.
12720 Added 'offset-workspace device metric.
12722 * console.h (device_metrics): Declared DM_offset_workspace.
12724 2000-01-23 Martin Buchholz <martin@xemacs.org>
12726 * fileio.c (Ffile_truename): Remove pointless and confusing
12727 initialization of elen.
12729 * glyphs-widget.c: Compiler warning fixes.
12731 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
12733 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12734 instead of a Lisp_Object as argument to make it consistent with
12735 the other LIVE_P macros.
12736 (CHECK_LIVE_PROCESS): New macro.
12738 * process.c: Declare Qprocess_live_p.
12739 (Fprocess_live_p): New function.
12740 (create_process): Use PROCESS_LIVE_P.
12741 (read_process_output): Ditto.
12742 (set_process_filter): Ditto.
12743 (Fdelete_process): Ditto.
12744 (kill_buffer_processes): Ditto
12745 (process_send_signal): Use CHECK_LIVE_PROCESS.
12746 (Fprocess_input_coding_system): Check whether process is still
12747 alive (fix PR#1061).
12748 (Fprocess_output_coding_system): Ditto.
12749 (Fprocess_coding_system): Ditto.
12750 (Fset_process_input_coding_system): Ditto.
12751 (Fset_process_output_coding_system): Ditto.
12753 2000-01-23 Andy Piper <andy@xemacs.org>
12755 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12758 * glyphs.c (mark_image_instance): take into account changed
12759 image_instance format.
12760 (image_instance_equal): ditto.
12761 (image_instance_hash): ditto.
12763 * glyphs-widget.c (widget_instantiate): Incorporate layout
12764 instantiation here. Delay layout of the layout until later.
12765 (layout_instantiate): deleted.
12766 (layout_query_geometry): new function. get the geometry of a
12768 (layout_layout): layout a layout dynamically.
12769 (image_instantiator_widget): New function - splitting up
12770 image_instantiator_format_create_glyphs_widget for netwinder
12772 (image_instantiator_buttons):
12773 (image_instantiator_edit_fields):
12774 (image_instantiator_combo_box):
12775 (image_instantiator_scrollbar):
12776 (image_instantiator_progress_guage):
12777 (image_instantiator_tree_view):
12778 (image_instantiator_tab_control):
12779 (image_instantiator_labels):
12780 (image_instantiator_layout): ditto.
12781 (image_instantiator_format_create_glyphs_widget): Call preceding
12784 2000-01-22 Martin Buchholz <martin@xemacs.org>
12786 * process.c (Fset_process_coding_system):
12787 * device-x.c (Fx_keysym_hash_table):
12790 * lstream.c (Lstream_write): Return documented value, not 0.
12792 * fileio.c (directory_file_name):
12793 (Fsubstitute_in_file_name):
12794 (Fsubstitute_insert_file_contents_internal):
12795 (Fwrite_region_internal):
12800 Remove vestigial APOLLO-conditional code.
12802 2000-01-21 Martin Buchholz <martin@xemacs.org>
12804 * getpagesize.h: Add guard macros.
12805 * libsst.h: Add guard macros.
12806 * libst.h: Add guard macros.
12807 * line-number.h: Add guard macros.
12808 * ndir.h: Add guard macros.
12809 * sysfloat.h: Add guard macros.
12810 * sysfile.h: Add guard macros.
12811 * sysproc.h: Add guard macros.
12812 * syswait.h: Add guard macros.
12813 * xintrinsic.h: Add guard macros.
12814 * xintrinsicp.h: Add guard macros.
12815 * xmmanager.h: Add guard macros.
12816 * xmmanagerp.h: Add guard macros.
12817 * xmprimitive.h: Add guard macros.
12818 * xmu.h: Add guard macros.
12819 * gpmevent.h: Add copyright statement. Add guard macros.
12820 * miscplay.h: Add guard macros.
12821 * *.h: Use consistent C-standards-approved guard macro names.
12823 * opaque.c (make_opaque): Switch parameter order.
12824 * opaque.h (make_opaque): Switch parameter order.
12825 Update all callers.
12826 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12828 * config.h.in (type_checking_assert): Added.
12829 (bufpos_checking_assert): Added.
12831 2000-01-21 Martin Buchholz <martin@xemacs.org>
12833 * alloc.c: Harmless pdump changes.
12835 - spell alignment correctly.
12836 * sysdep.c: Use countof()
12838 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12840 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12841 initially_selected_for_input() console method, default to 0.
12842 (semi_canonicalize_console_connection): Try to delegate to
12843 canonicalize_console_connection if no such console method.
12844 (canonicalize_console_connection): Vice versa.
12845 (print_console): Do not print nil connection.
12847 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12848 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12849 (XDEVIMPF_FRAMELESS_OK): Added.
12850 (CONSOLE_INHERITS_METHOD): Added.
12852 * console-msw.c (mswindows_canonicalize_console_connection):
12854 (mswindows_canonicalize_device_connection): Added.
12856 * console-msw.h (struct msprinter_device): Added this struct and
12858 (mswindows_device): Made fontlist a lisp object.
12860 * device.c (semi_canonicalize_device_connection): Try to delegate
12861 to canonicalize_device_connection if no such console method.
12862 (canonicalize_device_connection): Vice versa.
12863 (print_device): Do not print nil connection.
12865 * device-msw.c (mswindows_init_device): Call InitCommonControls
12867 (mswindows_delete_device): Removed fontlist deallocation.
12868 (mswindows_mark_device): Added.
12870 * events.c (event_equal): Added abort() at unreached code.
12871 (event_hash): Ditto.
12873 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12874 fallback tags of Windows devices.
12876 * general.c (syms_of_general): Initialized Qmsprinter.
12878 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12879 of fallback tags of Windows devices.
12881 * lisp.h: Declared Qmsprinter.
12883 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12885 (mswindows_list_fonts): Ditto.
12886 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12887 that it can be used by both mswindows and msprinter devices.
12888 (initialize_font_instance): Added.
12889 (mswindows_initialize_font_instance): Use it.
12890 (msprinter_initialize_font_instance): Added.
12892 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12893 and implementation flags check.
12894 (redisplay_without_hooks): Changed the call to the above.
12895 (Fredraw_device): Ditto.
12896 (Fredisplay_device): Ditto.
12898 * redisplay-msw.c (get_frame_dc): Implemented.
12899 (get_frame_compdc): Implemented.
12900 (many functions): Use the two functions above to get device
12901 contexts, ether for a window or a printer.
12903 2000-01-21 Olivier Galibert <galibert@pobox.com>
12905 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12906 initialization here.
12907 (init_symbols_once_early): Call it.
12908 * emacs.c (main_1): Call it.
12909 * symsinit.h: Declare it.
12911 2000-01-19 Olivier Galibert <galibert@pobox.com>
12913 * alloc.c: Use a lrecord_header * in the backtrace instead of a
12915 (pdump_backtrace): Ditto.
12916 (pdump_register_object): Ditto. Cleanup use of the pointers.
12917 (pdump_get_entry): Abort if trying to register a null pointer.
12918 (pdump_dump_data): Cleanup types when relocating.
12919 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12920 (pdump_dump_rtables): Remove bad casts.
12921 (pdump_load): Cleanup relocation w.r.t union type. Use a
12922 Lisp_Object instead of a EMACS_INT for the hashtable
12925 2000-01-20 Martin Buchholz <martin@xemacs.org>
12927 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12929 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12931 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12933 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12935 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12937 * faces.h (FACE_STRIKETHRU_P): Added.
12939 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12942 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12943 (mswindows_set_dc_font): New function, aware of font variants,
12944 separated from mswindows_update_dc.
12946 * objects-msw.h (struct mswindows_font_instance_data): Added
12949 * objects-msw.c (mswindows_finalize_font_instance): Delete all
12950 cached fonts and the data structure.
12951 (mswindows_initialize_font_instance): Added creation of font data
12953 (mswindows_print_font_instance): Print at least something.
12954 (mswindows_create_font_variant): Implemented.
12955 (mswindows_get_hfont): Implemented.
12957 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
12959 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12960 prototyping problem with msvc.
12962 * emacs.c (main_1): added syms_of_gui_mswindows() call
12964 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12965 syms_of_gui_mswindows() function
12967 * symsinit.h: added the prototype for syms_of_gui_mswindows()
12969 2000-01-18 Martin Buchholz <martin@xemacs.org>
12971 * XEmacs 21.2.27 is released.
12973 2000-01-18 Martin Buchholz <martin@xemacs.org>
12975 * glyphs-eimage.c (struct tiff_error_struct):
12977 (tiff_warning_func):
12978 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12983 * unexec.c: Remove vestigial Lucid C code.
12987 * libsst.c: Ansify.
12988 Remove declarations of errno and strerror().
12990 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
12992 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12994 2000-01-16 Martin Buchholz <martin@xemacs.org>
12996 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12999 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13004 Change enum eol_type to eol_type_t.
13006 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13008 * gui.c (get_gui_callback): Check cons before accessing car.
13010 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13012 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
13013 (XSETSPECIFIER_TYPE): Ditto.
13015 2000-01-17 Didier Verna <didier@xemacs.org>
13017 * redisplay.c (generate_fstring_runes): compute string size in
13018 characters, not bytes.
13020 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
13022 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
13024 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
13026 * print.c (print_error_message): Call print_prepare().
13028 2000-01-14 Martin Buchholz <martin@xemacs.org>
13030 * .dbxrc: Renamed from dbxrc.
13032 * events.c (event_to_character):
13033 Use `assert (foo)' instead of `if (!foo) abort()'
13035 * .gdbinit (xtype): Add documentation.
13036 * .gdbinit (check-temacs): New function.
13037 * .gdbinit (check-xemacs): New function.
13038 * dbxrc (check-xemacs): New function.
13039 * dbxrc (check-xemacs): New function.
13041 2000-01-14 Andy Piper <andy@xemacs.org>
13043 * glyphs-widget.c (widget_query_geometry): Make sure that we
13044 calculate default dimensions correctly.
13046 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13048 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
13050 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
13051 pdump_wire'd variable.
13053 * emacs.c: (main_1): Conditionalized calls to
13054 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
13056 2000-01-13 Martin Buchholz <martin@xemacs.org>
13058 * window.c (Fset_window_configuration):
13059 * sysdep.c (_start):
13060 * input-method-motif.c (res):
13061 * event-Xt.c (Xt_process_to_emacs_event):
13062 Simple compiler warning fixes.
13064 * bytecode.c (funcall_compiled_function): Use the original
13065 function symbol on the backtrace list in preference to the
13066 compiled_function object in error messages.
13068 2000-01-13 Andy Piper <andy@xemacs.org>
13070 * glyphs-x.c (update_widget_face): Make sure we update the widget
13071 background as well as foreground.
13073 2000-01-13 Andy Piper <andy@xemacs.org>
13075 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
13076 fields to subwindow.
13077 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
13078 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
13079 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13080 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13082 * glyphs-widget.c (check_valid_tab_orientation): new function.
13083 (initialize_widget_image_instance): zero orientation and
13085 (widget_instantiate): pick up orientation.
13086 (tab_control_query_geometry): return appropriate values for
13089 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
13090 appropriate creation flags for left, right and bottom tabs.
13092 * s/cygwin32.h: add tab definitions.
13094 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13096 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13097 frame upon hiding a subwindow.
13098 (mswindows_button_instantiate): Changed the push button style to
13100 (mswindows_button_instantiate): Removed button BS_NOTIFY
13102 (mswindows_button_instantiate): Removed redundant check for
13103 a disabled gui item.
13104 (mswindows_button_instantiate): Made use of WS_TABSTOP
13105 consistent: "operable" controls (edit, button, tree, scroll) have
13106 this style, "display-only" ones (static, progress gauge) do
13107 not. This style is currently ignored by XEmacs though. Also,
13108 removed the WS_EX_CONTROLPARENT style - it is not for children,
13109 it is for their parents!
13110 (mswindows_edit_field_instantiate): Ditto.
13111 (mswindows_progress_gauge_instantiate): Ditto.
13112 (mswindows_tree_view_instantiate): Ditto.
13113 (mswindows_tab_control_instantiate): Ditto.
13114 (mswindows_scrollbar_instantiate): Ditto.
13115 (mswindows_combo_box_instantiate): Ditto.
13116 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13117 style to the "clip" window.
13118 (mswindows_button_instantiate): Removed compilation warning by
13119 equally typing terms of the ?: operator.
13121 2000-01-12 Didier Verna <didier@xemacs.org>
13123 * redisplay.c (generate_fstring_runes): new parameter holding the
13124 last modeline-format extent.
13125 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13126 extent, fill the glyph block with it.
13127 (generate_fstring_runes): handle these parameters.
13128 (generate_formatted_string_db): ditto.
13130 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13131 glyphs'extents in the modeline.
13133 1999-01-11 Mike Woolley <mike@bulsara.com>
13135 * ntheap.c: Reduced the reserved heap space from 1Gb down to
13136 256Mb, as a workaround for the non-starting problem many people
13139 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13141 * console-tty.c (Fset_console_tty_output_coding_system):
13142 Force redrawing tty frame.
13144 2000-01-10 Didier Verna <didier@xemacs.org>
13146 * redisplay.c (generate_fstring_runes): fix size computation bug.
13148 2000-01-09 William M. Perry <wmperry@aventail.com>
13150 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13152 2000-01-09 Andy Piper <andy@xemacs.org>
13154 * glyphs-msw.c: index -> i to avoid shadows.
13155 (xbm_create_bitmap_from_data): make static.
13156 (check_valid_string_or_int): deleted.
13157 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13159 * glyphs-x.c (x_update_subwindow): remove unused args.
13161 * glyphs.c (glyph_image_instance): return the thing. Don't set the
13162 back pointer - this is done in allocate_image_instance.
13163 (query_string_font): return Qnil to make the compiler happy.
13164 (unmap_subwindow): set to ~0 to make the compiler happy.
13165 (glyph_query_geometry): comment out until used.
13166 (glyph_layout): ditto.
13168 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
13170 * insdel.c (signal_after_change): Remove extraneous unbind_to().