1 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
4 and `COMPOSE_ADD_CHAR'.
5 (decode_coding_iso2022): Use `decode_flush_er_chars'.
7 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
9 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
10 instead of `DECODE_ADD_UCS_CHAR'.
11 (COMPOSE_ADD_CHAR): Likewise.
13 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
15 * text-coding.c (decode_flush_er_chars): New inline function.
16 (decode_add_er_char): New function.
17 (decode_coding_utf8): Use `decode_flush_er_chars' and
20 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
22 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
23 done before `decode_output_utf8_partial_char'.
25 * mule-charset.c (complex_vars_of_mule_charset): Specify
26 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
27 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
29 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
31 * mule-charset.c (decode_defined_char): New function; search
33 (decode_builtin_char): Don't search mother if
34 XCHARSET_MAX_CODE(charset) == 0.
35 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
36 == 0 even if code >= XCHARSET_MAX_CODE(charset).
37 (Fdecode_char): Use `decode_defined_char' instead of
38 `DECODE_DEFINED_CHAR'.
39 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
40 mother of `Vcharset_ucs_jis'.
42 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
43 instead of `DECODE_DEFINED_CHAR'.
45 * char-ucs.h (decode_defined_char): Renamed from
46 `DECODE_DEFINED_CHAR'; changed to normal function.
47 (DECODE_CHAR): Use `decode_defined_char' instead of
48 `DECODE_DEFINED_CHAR'.
50 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
52 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
54 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
56 * text-coding.c (Vcoded_charset_entity_reference_alist): New
58 (Quse_entity_reference): New variable.
62 (coding_system_description): Add description for
64 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
65 (allocate_coding_system): Initialize `ccs_priority_list' in
67 (Fmake_coding_system): Add description about
68 'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
70 (Fcoding_system_property): Accept `disable-composition' and
71 `use-entity-reference' in UTF-2000.
72 (struct decoding_stream): Add new member `er_counter' and `er_buf'
74 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
75 (decode_coding_utf8): Decode entity-reference if
76 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
77 (char_encode_utf8): Encode non-Unicode characters as
78 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
80 (syms_of_file_coding): Add new symbols `use-entity-reference',
82 (vars_of_file_coding): Add new variable
83 `coded-charset-entity-reference-alist'.
84 (complex_vars_of_file_coding): Declare `disable-composition' and
85 `use-entity-reference' to be coding-system-properties in UTF-2000.
87 * file-coding.h (struct Lisp_Coding_System): Add new member
88 `use_entity_reference' and `ccs_priority_list'.
89 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
90 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
91 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
93 2002-07-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
95 * chartab.c (save_uint8_byte_table): Don't clear the table.
96 (save_uint16_byte_table): Likewise.
97 (save_byte_table): Likewise.
98 (Fmount_char_attribute_table): New function.
99 (syms_of_chartab): Add new builtin function
100 `mount-char-attribute-table'.
102 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
104 * mule-charset.c (Fsave_charset_mapping_table): Open database as
106 (load_char_decoding_entry_maybe): Open database as read-only mode.
108 * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
109 open database as "w+" mode.
110 (load_char_attribute_maybe): Open database as read-only mode.
111 (Fload_char_attribute_table): Likewise.
113 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
115 * chartab.c (mark_char_table): Don't refer `ct->db_file'.
116 (char_table_description): Delete member `db_file'.
117 (Fmake_char_table): Don't refer `ct->db_file'.
118 (Fcopy_char_table): Likewise.
119 (Fsave_char_attribute_table): Likewise.
120 (Fclose_char_attribute_table): Likewise.
121 (Freset_char_attribute_table): Likewise.
122 (load_char_attribute_maybe): Likewise.
123 (Fload_char_attribute_table): Likewise.
125 * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
127 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
129 * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
130 (Fsave_char_attribute_table): Don't check `ct->db_file' if
132 (load_char_attribute_maybe): Likewise.
133 (Fload_char_attribute_table): Likewise.
135 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
137 * chartab.c (Fclose_char_attribute_table): Set Qnil on
138 `ct->db_file' unconditionally.
140 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
142 * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
144 (char_table_description): Add description for `db_file' and `db'
146 (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
148 (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
149 (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
150 (Fclose_char_attribute_table): New function.
151 (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
152 (load_char_attribute_maybe): Change interface; use `cit->db_file'
154 (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
155 (syms_of_chartab): Add new builtin function
156 `Fclose_char_attribute_table'.
158 2002-06-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
160 * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
162 (load_char_attribute_maybe): Change interface.
163 (get_char_id_table): Modify for `load_char_attribute_maybe'.
165 2002-06-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
167 * database.h: Add an EXFUN for `Fdatabase_live_p'.
169 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
171 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
172 instead of `DECODE_CHAR' for mother; don't use special code for
173 chinese-big5 to use code space of chinese-big5-1 and
175 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
176 `MAX_CHAR_BIG5_CDP' for chinese-big5.
178 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
179 (MAX_CHAR_BIG5_CDP): Revival.
181 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
183 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
184 the XLFD registry-encoding name of `chinese-big5'.
186 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
188 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
189 (Qchinese_big5_cdp): Deleted.
190 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
191 (complex_vars_of_mule_charset): Delete coded-charset
194 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
195 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
196 `CHARSET_ID_OFFSET - n' for private CCS.
197 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
198 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
199 of `MIN_LEADING_BYTE'.
200 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
201 `(CHARSET_ID_OFFSET - 97)'.
202 (MIN_CHAR_BIG5_CDP): Deleted.
203 (MAX_CHAR_BIG5_CDP): Deleted.
205 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
207 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
209 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
211 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
212 (vars_of_mule): Add new variable `utf-2000-version' [moved from
215 * chartab.c (Vutf_2000_version): Moved to mule.c.
216 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
218 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
220 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
221 when HAVE_CHISE_CLIENT is not defined.
223 * mule.c (vars_of_mule): Provide feature `chise' when
224 HAVE_CHISE_CLIENT is defined.
226 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
228 * config.h.in (UTF2000): Add comment.
229 (HAVE_CHISE_CLIENT): New macro.
231 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
233 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
235 (Fput_char_attribute): Likewise.
236 (char_attribute_system_db_file): Encode file-name of attribute.
237 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
240 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
242 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
243 (Fsave_charset_mapping_table): Use
244 `char_attribute_system_db_file'.
245 (load_char_decoding_entry_maybe): Likewise.
247 * chartab.h (Qsystem_char_id): New external variable.
248 (char_attribute_system_db_file): New prototype.
250 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
251 (char_attribute_system_db_file): New function.
252 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
253 (Freset_char_attribute_table): Likewise.
254 (load_char_attribute_maybe): Likewise.
255 (Fload_char_attribute_table): Likewise.
256 (syms_of_chartab): Add new symbol `system-char-id'.
258 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
260 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
261 `XCHARSET_GRAPHIC(ccs)'.
263 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
265 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
267 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
269 * chartab.c (Q_ucs_variants): New variable.
270 (syms_of_chartab): Add new symbol `->ucs-variants'.
271 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
272 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
273 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
275 * mule-charset.c (load_char_decoding_entry_maybe): New function.
277 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
278 `HAVE_DATABASE' is defined.
279 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
280 `HAVE_DATABASE' is defined.
282 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
284 * chartab.c (Fsave_char_attribute_table): Don't clear internal
286 (Freset_char_attribute_table): New function.
287 (syms_of_chartab): Add new builtin function
288 `reset-char-attribute-table'.
290 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
292 * chartab.c (load_char_attribute_maybe): Don't make directories.
294 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
296 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
298 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
301 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
303 * mule-charset.c (Fsave_charset_mapping_table): Use
304 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
306 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
307 instead of `XCHARSET_CHARS'.
309 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
311 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
312 (XCHARSET_BYTE_SIZE): Likewise.
314 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
316 (XCHARSET_BYTE_SIZE): Likewise.
318 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
320 * chartab.c (Fput_char_attribute): Use exec-directory instead of
321 data-directory to store database.
322 (Fsave_char_attribute_table): Likewise.
323 (load_char_attribute_maybe): Likewise.
324 (Fload_char_attribute_table): Likewise.
326 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
328 * mule-charset.c (Fsave_charset_mapping_table): New function.
329 (syms_of_mule_charset): Add new builtin function
330 `save-charset-mapping-table'.
332 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
334 * char-ucs.h (decoding_table_check_elements): Delete prototype.
335 (get_ccs_octet_table): New inline function.
336 (put_ccs_octet_table): Likewise.
337 (decoding_table_put_char): Use `get_ccs_octet_table' and
338 `put_ccs_octet_table'.
339 (decoding_table_remove_char): Use `decoding_table_put_char'.
340 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
342 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
344 (make_charset): Use Qunbound instead Qnil as initial value of
347 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
349 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
350 element is Qunloaded.
351 (map_over_uint16_byte_table): Likewise.
352 (map_over_byte_table): Likewise.
353 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
354 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
355 database support, load encoding-table of the specified
356 coded-charset if it is not loaded yet.
357 (save_uint8_byte_table): New function of UTF-2000 with external
359 (save_uint16_byte_table): Likewise.
360 (save_byte_table): Likewise.
361 (Fput_char_attribute): Don't store value into external database
362 even if the external database feature is supported in UTF-2000;
363 set `attribute' as name of char-table if the external database
364 feature is supported.
365 (Fsave_char_attribute_table): New function in UTF-2000.
366 (syms_of_chartab): Add new builtin function
367 `save-char-attribute-table' in UTF-2000.
369 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
371 * chartab.c (char_attribute_table_to_put): New variable in
373 (Qput_char_table_map_function): Likewise.
374 (value_to_put): Likewise.
375 (Fput_char_table_map_function): New function in UTF-2000.
376 (put_char_table): Use `Fmap_char_attribute' for
377 CHARTAB_RANGE_CHARSET in UTF-2000.
378 (Fput_char_attribute): Store symbol instead of string in
379 `XCHAR_TABLE_NAME (table)'.
380 (load_char_attribute_maybe): Likewise.
381 (syms_of_chartab): Add new symbol/function
382 `put-char-table-map-function'.
384 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
386 * database.h: Add new EXFUN for `Fmap_database'.
388 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
389 (syms_of_database): Likewise.
391 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
393 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
394 (XCHAR_TABLE_UNLOADED): Likewise.
396 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
397 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
398 HAVE_DATABASE is defined.
399 (char_attribute_table_to_load): New variable of UTF-2000 with
400 external database support.
401 (Qload_char_attribute_table_map_function): Likewise.
402 (Fload_char_attribute_table_map_function): New function of
403 UTF-2000 with external database support.
404 (Fload_char_attribute_table): New function of UTF-2000.
405 (Fmap_char_attribute): Call Fload_char_attribute_table if
406 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
407 (syms_of_chartab): Add new symbol and function
408 `load-char-attribute-table-map-function' in UTF-2000 with external
409 database support; add new function `load-char-attribute-table' in
412 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
414 * chartab.h (load_char_attribute_maybe): New prototype for
415 UTF-2000 with DATABASE support.
416 (get_char_id_table): Use `load_char_attribute_maybe' if
417 HAVE_DATABASE is defined.
419 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
420 with DATABASE support.
422 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
424 * chartab.c (Fput_char_attribute): Use S-expression as key of
427 * chartab.h (get_char_id_table): Use S-expression as key of
430 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
432 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
433 if an element is not loaded, load the corresponding attributes
434 from an external database.
435 (map_over_uint16_byte_table): Likewise.
436 (map_over_byte_table): Likewise.
437 (map_char_table): Modify for `map_over_uint8_byte_table',
438 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
439 element is not loaded, load the corresponding attributes from an
441 (Fput_char_attribute): Change initial values to Qunloaded.
443 * chartab.h (get_char_id_table): If a character attribute is not
444 loaded and the attribute value is not found in an external
445 database, store Qunbound as the attribute value.
447 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
449 * chartab.c (BT_UINT8_unloaded): New macro.
450 (UINT8_VALUE_P): Accept Qunloaded.
451 (UINT8_ENCODE): Likewise.
452 (UINT8_DECODE): Likewise.
453 (BT_UINT16_unloaded): New macro.
454 (UINT16_VALUE_P): Accept Qunloaded.
455 (UINT16_ENCODE): Likewise.
456 (UINT16_DECODE): Likewise.
457 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
459 (mark_char_table): Mark `ct->name' in UTF-2000.
460 (char_table_description): Add `name' in UTF-2000.
461 (Fmake_char_table): Initialize `ct->name'.
462 (Fcopy_char_table): Copy `ct->name'.
463 (Fput_char_attribute): Store value into an external database if
464 HAVE_DATABASE is defined.
466 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
468 (CHAR_TABLE_NAME): New macro in UTF-2000.
469 (XCHAR_TABLE_NAME): New macro in UTF-2000.
470 (get_char_id_table): Try to read an external database if Qunloaded
471 is stored in a table.
473 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
476 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
478 * database.h: Add EXFUN definitions for Fopen_database,
479 Fput_database, Fget_database and Fclose_database.
481 * data.c (Qunloaded): New variable in UTF-2000.
483 * lisp.h (Qunloaded): New variable in UTF-2000.
485 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
487 * mule-charset.c (put_char_ccs_code_point): Modify for
488 `decoding_table_remove_char' and `decoding_table_put_char'.
489 (remove_char_ccs): Modify for `decoding_table_remove_char'.
491 * char-ucs.h (decoding_table_remove_char): Change arguments to
492 hide decoding_table vector.
493 (decoding_table_put_char): Likewise.
495 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
497 * mule-charset.c (decoding_table_remove_char): Moved to
499 (decoding_table_put_char): Likewise.
501 * char-ucs.h (decoding_table_check_elements): New prototype [moved
502 from mule-charset.c].
503 (decoding_table_remove_char): New inline function [moved from
505 (decoding_table_put_char): Likewise.
507 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
509 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
512 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
514 * mule-charset.c (decode_builtin_char): Support mother charsets.
516 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
518 * mule-charset.c (Q94x94x60): New variable.
519 (charset_code_point): Support conversion `94x94x60'.
520 (Fmake_charset): Likewise.
521 (syms_of_mule_charset): Add new symbol `94x94x60'.
523 * char-ucs.h (CONVERSION_94x94x60): New macro.
525 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
527 * mule-charset.c (charset_code_point): Unify code about
530 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
532 * mule-charset.c (charset_code_point): Merge code about builtin
533 characters into code about mother charsets; don't use
534 `range_charset_code_point'.
535 (range_charset_code_point): Deleted.
537 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
539 * mule-charset.c (Qcode_offset): New variable.
540 (Fmake_charset): Use `XUINT' to get value of `min-code' and
541 `max-code'; accept new property `code-offset'.
542 (syms_of_mule_charset): Add new symbol `code-offset'.
544 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
546 * mule-charset.c (range_charset_code_point): Fixed.
548 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
550 * mule-charset.c (decode_builtin_char): Change semantics of
551 code-offset of coded-charset.
552 (charset_code_point): Likewise.
553 (range_charset_code_point): Likewise.
554 (complex_vars_of_mule_charset): Modify for the change.
556 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
558 * mule-charset.c (Fencode_char): Reverse arguments.
560 * mule-charset.c (charset_code_point): Fixed.
562 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
564 * mule-charset.c (Vcharset_mojikyo): Deleted.
565 (Vcharset_mojikyo_2022_1): Deleted.
566 (Vcharset_mojikyo_pj_{1..21}): Deleted.
567 (Qmin_code): New variable in UTF-2000.
568 (Qmax_code): Likewise.
570 (Qconversion): Likewise.
573 (Qmojikyo_2022_1): Deleted.
574 (Qmojikyo_pj_{1..22}): Deleted.
575 (mark_charset): Mark `cs->mother'.
576 (charset_description): Add description for `mother'.
577 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
578 new arguments `mother' and `conversion'; use
579 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
580 (charset_code_point): Moved from char-ucs.h; support `mother'
582 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
583 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
584 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
585 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
586 allow 2 as the value of `graphic' in UTF-2000; add new properties
587 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
588 require `final' in UTF-2000; modify for `make_charset'.
589 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
590 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
591 (Fcharset_property): Support `mother', `min-code' and `max-code'.
592 (Fencode_char): New function.
593 (syms_of_mule_charset): Add new builtin function `encode-char' in
594 UTF-2000; add new symbols `min-code', `max-code', `mother',
595 `conversion' and `94x60'; delete symbols `mojikyo',
596 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
597 (complex_vars_of_mule_charset): Modify for `make_charset' change;
598 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
599 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
601 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
602 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
604 * char-ucs.h (Vcharset_mojikyo): Deleted.
605 (Vcharset_mojikyo_2022_1): Deleted.
606 (LEADING_BYTE_MOJIKYO): Deleted.
607 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
608 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
609 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
610 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
611 add new member `mother'; add new member `conversion'.
612 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
613 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
614 (CHARSET_MOTHER): New macro.
615 (CHARSET_CONVERSION): New macro.
616 (CONVERSION_IDENTICAL): New macro.
617 (CONVERSION_94x60): New macro.
618 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
619 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
620 (XCHARSET_MOTHER): New macro.
621 (XCHARSET_CONVERSION): New macro.
622 (MIN_CHAR_MOJIKYO): Deleted.
623 (MAX_CHAR_MOJIKYO): Deleted.
624 (DECODE_MOJIKYO_2022): Deleted.
625 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
626 (charset_code_point): Changed to non-inline function.
627 (encode_char_1): Use `charset_code_point'.
628 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
630 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
632 * lread.c (read_compiled_function): Fix prototype.
633 (read_vector): Likewise.
635 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
637 * lrecord.h (struct lrecord_header): Delete `older'.
638 (set_lheader_implementation): Delete code for `older'.
639 (set_lheader_older_implementation): Deleted.
640 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
641 (OLDER_RECORD_P): Deleted.
642 (OLDER_RECORD_HEADER_P): Deleted.
643 (alloc_older_lcrecord): Deleted.
644 (alloc_older_lcrecord_type): Deleted.
646 * alloc.c (all_older_lcrecords): Deleted.
647 (alloc_older_lcrecord): Deleted.
648 (disksave_object_finalization_1): Delete code for older objects.
649 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
650 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
652 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
654 * mule-charset.c (decoding_table_put_char): Use `make_vector'
655 instead of `make_older_vector'.
656 (put_char_ccs_code_point): Likewise.
657 (mark_charset): Mark `cs->decoding_table'.
658 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
660 * lisp.h (make_older_vector): Deleted.
661 (make_vector_newer): Deleted.
663 * config.h.in (HAVE_GGC): Deleted.
665 * alloc.c (make_older_vector): Deleted.
666 (make_vector_newer_1): Deleted.
667 (make_vector_newer): Deleted.
669 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
671 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
672 (Qideograph_daikanwa_2): New variable.
673 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
674 (complex_vars_of_mule_charset): Add new coded-charset
675 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
676 `LEADING_BYTE_DAIKANWA'.
678 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
679 (LEADING_BYTE_DAIKANWA_1): New macro.
680 (LEADING_BYTE_DAIKANWA_2): New macro.
681 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
683 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
685 * mule-charset.c (complex_vars_of_mule_charset): Change
686 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
687 the second revised version.
689 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
691 * mule-charset.c (Vcharset_ucs_smp): New variable.
692 (Vcharset_ucs_sip): New variable.
693 (Qucs_smp): New variable.
694 (Qucs_sip): New variable.
695 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
696 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
697 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
698 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
699 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
700 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
702 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
703 (LEADING_BYTE_UCS_SIP): New macro.
704 (MIN_CHAR_SMP): New macro.
705 (MAX_CHAR_SMP): New macro.
706 (MIN_CHAR_SIP): New macro.
707 (MAX_CHAR_SIP): New macro.
709 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
711 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
714 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
716 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
717 value; don't store value into `encoding_table' of `Lisp_Charset'.
718 (mark_charset): `encoding_table' was deleted.
719 (charset_description): Likewise.
720 (make_charset): Likewise.
721 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
722 `put_char_ccs_code_point'.
724 * chartab.h (Fput_char_attribute): New EXFUN.
726 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
727 is unified with normal symbol space.
728 (Fget_char_attribute): Likewise.
729 (Fput_char_attribute): Likewise; behavior of
730 `put_char_ccs_code_point' is changed.
732 * char-ucs.h: Include "elhash.h".
733 (Vchar_attribute_hash_table): New external variable.
734 (struct Lisp_Charset): Delete `encoding_table'.
735 (CHARSET_ENCODING_TABLE): New implementation; refer
736 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
739 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
741 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
744 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
746 * text-coding.c (char_encode_big5): Prefer charset-g1 than
749 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
751 * chartab.c (uint8_byte_table_description): New constant.
752 (uint8-byte-table): Use `uint8_byte_table_description'.
753 (uint16_byte_table_description): New constant.
754 (uint16-byte-table): Use `uint16_byte_table_description'.
756 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
758 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
759 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
761 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
763 * mule-charset.c (Vcharset_ucs_ks): New variable.
764 (Qucs_ks): New variable.
765 (syms_of_mule_charset): Add new symbol `ucs-ks'.
766 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
768 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
770 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
772 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
773 (Fdecode_char): Likewise.
775 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
777 (Fdefine_char): Modify for Fdecode_char.
778 (Ffind_char): Likewise.
780 * mule-charset.c (Fdecode_char): Add new optional argument
782 (Fdecode_builtin_char): Modify for `Fdecode_char'.
784 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
786 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
787 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
788 (allocate_coding_system): Initialize initial-charsets of
789 CODESYS_BIG5 in XEmacs UTF-2000.
790 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
791 CODESYS_BIG5 in XEmacs UTF-2000.
792 (decode_coding_big5): Use initial-charset-g0 and -g1 of
793 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
795 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
797 (Qideograph_hanziku_{1 .. 12}): Likewise.
798 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
800 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
801 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
802 `ideograph-hanziku-{1 .. 12}'.
804 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
805 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
806 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
807 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
808 (DECODE_DEFINED_CHAR): New inline function.
809 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
811 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
813 * mule-charset.c (Vcharset_china3_jef): Renamed from
814 `Vcharset_japanese_jef_china3'.
815 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
816 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
817 `{MIN|MAX}_CHAR_JEF_CHINA3'..
818 (syms_of_mule_charset): Rename `china3-jef' from
819 `japanese-jef-china3'.
820 (complex_vars_of_mule_charset): Likewise; rename
821 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
823 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
824 `LEADING_BYTE_JEF_CHINA3'.
825 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
826 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
828 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
830 * mule-charset.c (encode_builtin_char_1): Comment out special code
831 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
833 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
834 (MAX_CHAR_MOJIKYO_0): Comment out.
835 (MIN_CHAR_CBETA): Changed to 0x00E20000.
836 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
837 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
838 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
840 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
842 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
843 (Qideograph_cbeta): New variable.
844 (encode_builtin_char_1): Comment out special code for
845 coded-charset `mojikyo' and `japanese-jef-china3'.
846 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
847 (complex_vars_of_mule_charset): Add new coded-charset
850 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
851 (MIN_CHAR_CBETA): New macro.
852 (MAX_CHAR_CBETA): New macro.
854 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
856 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
857 (LEADING_BYTE_JEF_CHINA3): New macro.
858 (MIN_CHAR_JEF_CHINA3): New macro.
859 (MAX_CHAR_JEF_CHINA3): Likewise.
860 (DECODE_CHAR): Fixed.
862 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
864 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
865 (Qjapanese_jef_china3): New variable.
866 (encode_builtin_char_1): Support `japanese-jef-china3'.
867 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
868 (complex_vars_of_mule_charset): Add new coded-charset
869 `japanese-jef-china3'.
871 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
873 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
874 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
875 94^4, 96^3, 96^4, 128^n and 256^n set.
876 (put_char_table): Use `XCHARSET_CELL_RANGE'.
877 (map_char_table): Likewise.
879 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
881 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
884 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
886 * chartab.h (get_char_id_table): New inline function.
888 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
891 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
893 * chartab.h (decode_char_table_range): New prototype in XEmacs
895 (put_char_id_table): New inline function in XEmacs UTF-2000.
897 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
899 (decode_char_table_range): Delete static declaration in XEmacs
902 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
904 * chartab.c (put_char_id_table): Use `put_char_table'.
906 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
908 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
909 (map_over_uint16_byte_table): Likewise.
910 (map_over_byte_table): Likewise.
911 (map_char_table): Modify for `map_over_uint8_byte_table',
912 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
915 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
917 * chartab.c (struct map_char_table_for_charset_arg): New
919 (map_char_table_for_charset_fun): New function.
920 (map_char_table): Use `map_char_table' for encoding_table of
923 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
925 * chartab.c (map_char_table): Check a character is found in
926 range->charset instead of non default value is defined in
927 char-table when range is CHARTAB_RANGE_ROW.
929 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
931 * chartab.c (map_char_id_table): Deleted.
932 (Fmap_char_attribute): Use `map_char_table' instead of
935 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
937 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
939 (update_syntax_table): Deleted in XEmacs UTF-2000.
941 * syntax.c (find_defun_start): Use `syntax_table' instead of
942 `mirror_syntax_table' in XEmacs UTF-2000.
943 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
945 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
947 (Fmatching_paren): Likewise.
948 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
950 (find_start_of_comment): Likewise.
951 (find_end_of_comment): Likewise.
952 (Fforward_comment): Likewise.
953 (scan_lists): Likewise.
954 (char_quoted): Likewise.
955 (Fbackward_prefix_chars): Likewise.
956 (scan_sexps_forward): Likewise.
957 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
958 (update_syntax_table): Likewise.
960 * search.c (skip_chars): Use `syntax_table' instead of
961 `mirror_syntax_table' in XEmacs UTF-2000.
963 (Freplace_match): Likewise.
965 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
966 `mirror_syntax_table' in XEmacs UTF-2000.
967 (WORDCHAR_P_UNSAFE): Likewise.
968 (re_match_2_internal): Likewise.
970 * font-lock.c (find_context): Use `buf->syntax_table' instead of
971 `buf->mirror_syntax_table' in XEmacs UTF-2000.
973 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
974 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
976 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
979 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
981 (print_char_table): Print `default_value' in XEmacs UTF-2000.
982 (char_table_description): Delete `mirror_table' in XEmacs
984 (fill_char_table): Don't call `update_syntax_table' in XEmacs
986 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
987 (Fcopy_char_table): Likewise.
988 (put_char_table): Don't call `update_syntax_table' in XEmacs
991 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
992 `buf->mirror_syntax_table' in XEmacs UTF-2000.
993 (casify_region_internal): Likewise.
995 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
997 * buffer.c (common_init_complex_vars_of_buffer): Don't use
998 `mirror_syntax_table' in XEmacs UTF-2000.
1000 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1001 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1002 (Fexpand_abbrev): Likewise.
1004 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1006 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1008 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1010 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1011 (map_over_uint16_byte_table): Likewise.
1012 (map_over_byte_table): Likewise.
1013 (get_char_id_table): Refer `cit->default_value'.
1014 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1015 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1016 of character-id ranges.
1017 (mark_char_table): Mark `ct->default_value'.
1018 (char_table_description): Add `default_value'.
1019 (fill_char_table): Use `default_value'.
1020 (decode_char_table_range): Decode `nil' as
1021 `CHARTAB_RANGE_DEFAULT'.
1022 (get_char_id_table): Refer `cit->default_value'.
1023 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1024 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1025 temporary hack; check value of char-table is bound or not.
1026 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1028 * chartab.h (struct Lisp_Char_Table): Add new member
1029 `default_value' in XEmacs UTF-2000.
1030 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1031 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1034 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1036 * chartab.h (Lisp_Char_ID_Table): Deleted.
1038 * chartab.c (char_table_description): Fix typo.
1039 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1040 `Lisp_Char_ID_Table'.
1042 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1044 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1047 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1050 * chartab.h (XCHAR_ID_TABLE): Deleted.
1051 (XSETCHAR_ID_TABLE): Deleted.
1052 (CHAR_ID_TABLE_P): Deleted.
1054 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1056 (Fget_composite_char): Likewise.
1057 (put_char_table): Likewise.
1058 (add_char_attribute_alist_mapper): Fixed.
1059 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1061 (Fget_char_attribute): Likewise.
1062 (Fget_char_attribute): Likewise.
1063 (Fmap_char_attribute): Likewise.
1065 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1067 (encode_char_1): Likewise.
1069 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1071 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1074 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1075 instead of `XCHAR_ID_TABLE'.
1076 (remove_char_ccs): Likewise.
1078 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1080 (Fget_composite_char): Likewise.
1081 (Fchar_variants): Likewise.
1082 (put_char_table): Likewise.
1083 (add_char_attribute_alist_mapper): Likewise.
1084 (Fchar_attribute_alist): Likewise.
1085 (Fget_char_attribute): Likewise.
1086 (Fput_char_attribute): Likewise.
1087 (Fmap_char_attribute): Likewise.
1088 (Fmap_char_attribute): Likewise.
1090 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1092 (encode_char_1): Likewise.
1094 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1096 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1097 `Lisp_Char_ID_Table'.
1098 (mark_char_id_table): Deleted.
1099 (print_char_id_table): Likewise.
1100 (char_id_table_equal): Likewise.
1101 (char_id_table_hash): Likewise.
1102 (char_id_table_description): Likewise.
1103 (char_id_table): Likewise.
1104 (make_char_id_table): Use `Fmake_char_table' and
1106 (get_char_id_table): Use `Lisp_Char_Table' instead of
1107 `Lisp_Char_ID_Table'.
1108 (put_char_id_table): Likewise.
1109 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1111 (Fremove_char_attribute): Likewise.
1112 (syms_of_chartab): Don't define type `char-id-table'.
1114 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1115 (char_id_table): Likewise.
1116 (GC_CHAR_ID_TABLE_P): Likewise.
1117 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1118 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1119 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1120 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1121 (get_char_id_table): Use `Lisp_Char_Table' instead of
1122 `Lisp_Char_ID_Table'.
1123 (put_char_id_table_0): Likewise.
1124 (put_char_id_table): Likewise.
1126 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1128 * chartab.h: Lisp_Byte_Table related codes are moved from
1131 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1133 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1135 * chartab.h: Don't include "chartab.h".
1136 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1137 (Lisp_Char_ID_Table): Likewise.
1138 (char_id_table): Likewise.
1139 (XCHAR_ID_TABLE): Likewise.
1140 (XSETCHAR_ID_TABLE): Likewise.
1141 (CHAR_ID_TABLE_P): Likewise.
1142 (GC_CHAR_ID_TABLE_P): Likewise.
1143 (get_char_id_table): Likewise.
1145 * char-ucs.h: Include "chartab.h".
1146 (struct Lisp_Char_ID_Table): Moved to chartab.h.
1147 (Lisp_Char_ID_Table): Likewise.
1148 (char_id_table): Likewise.
1149 (XCHAR_ID_TABLE): Likewise.
1150 (XSETCHAR_ID_TABLE): Likewise.
1151 (CHAR_ID_TABLE_P): Likewise.
1152 (GC_CHAR_ID_TABLE_P): Likewise.
1153 (get_char_id_table): Likewise.
1155 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1157 * chartab.c (copy_uint8_byte_table): New function.
1158 (copy_uint16_byte_table): New function.
1159 (copy_byte_table): New function.
1160 (map_over_uint8_byte_table): Modify to avoid huge numbers of
1162 (map_over_uint16_byte_table): Likewise.
1163 (map_over_byte_table): Likewise.
1164 (get_byte_table): Move prototype to chartab.h.
1165 (put_byte_table): Likewise.
1166 (put_char_id_table_0): Moved to chartab.h.
1167 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1168 (char_table_entry_equal): Likewise.
1169 (char_table_entry_hash): Likewise.
1170 (char_table_entry_description): Likewise.
1171 (char_table_entry): Likewise.
1172 (make_char_table_entry): Likewise.
1173 (copy_char_table_entry): Likewise.
1174 (get_non_ascii_char_table_value): Likewise.
1175 (map_over_charset_ascii): Likewise.
1176 (map_over_charset_control_1): Likewise.
1177 (map_over_charset_row): Likewise.
1178 (map_over_other_charset): Likewise.
1179 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1180 (print_char_table): Likewise.
1181 (char_table_equal): Likewise.
1182 (char_table_hash): Likewise.
1183 (char_table_description): Likewise.
1184 (fill_char_table): Likewise.
1185 (Fcopy_char_table): Likewise.
1186 (get_char_table): Likewise.
1187 (Fget_range_char_table): Likewise.
1188 (put_char_table): Likewise.
1189 (map_char_table): Likewise.
1190 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1193 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1195 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1196 `Vauto_fill_chars' in XEmacs UTF-2000.
1198 * chartab.h (get_byte_table): New prototype [moved from
1200 (put_byte_table): Likewise [moved from chartab.c].
1201 (put_char_id_table_0): New inline function [moved from chartab.c].
1202 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1203 (Lisp_Char_Table_Entry): Likewise.
1204 (char_table_entry): Likewise.
1205 (XCHAR_TABLE_ENTRY): Likewise.
1206 (XSETCHAR_TABLE_ENTRY): Likewise.
1207 (CHAR_TABLE_ENTRYP): Likewise.
1208 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1209 (NUM_ASCII_CHARS): Likewise.
1210 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1211 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1213 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1215 * chartab.c (get_char_id_table): Change interface.
1216 (put_char_id_table_0): New function.
1217 (put_char_id_table): Change interface; new implementation.
1218 (Fget_composite_char): Modify for interface change of
1219 `get_char_id_table'.
1220 (Fchar_variants): Likewise.
1221 (add_char_attribute_alist_mapper): Likewise.
1222 (Fchar_attribute_alist): Likewise.
1223 (Fget_char_attribute): Likewise.
1224 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1225 as same as character as the first argument like `put-char-table';
1226 modify for interface change of `put_char_id_table'.
1227 (Fremove_char_attribute): Modify for interface change of
1228 `put_char_id_table'.
1230 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1232 * text-coding.c: Sync up with XEmacs 21.2.41.
1233 (COMPOSE_ADD_CHAR): Modify for interface change of
1234 `get_char_id_table'.
1236 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1237 change of `put_char_id_table'.
1238 (remove_char_ccs): Likewise.
1240 * chartab.h (put_char_id_table): Change interface.
1242 * char-ucs.h (get_char_id_table): Change interface.
1243 (charset_code_point): Modify for interface change of
1244 `get_char_id_table'.
1245 (encode_char_1): Likewise.
1247 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1249 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1251 (map_over_uint16_byte_table): Likewise.
1252 (map_over_byte_table): Likewise.
1253 (map_char_id_table): Add new argument `range' like
1255 (Fmap_char_attribute): Add new argument `range' like
1258 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1260 * chartab.c (map_over_uint8_byte_table): Change interface of
1261 mapping function to use struct chartab_range instead of Emchar.
1262 (map_over_uint16_byte_table): Likewise.
1263 (map_over_byte_table): Likewise.
1264 (map_char_id_table): Likewise.
1265 (struct slow_map_char_id_table_arg): Deleted.
1266 (slow_map_char_id_table_fun): Deleted.
1267 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1268 function `slow_map_char_table_fun' instead of struct
1269 `slow_map_char_id_table_arg' and function
1270 `slow_map_char_id_table_fun'.
1272 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1274 * mule-charset.c: Move char-it-table related codes to chartab.c.
1275 (Vutf_2000_version): Moved to chartab.c.
1276 (Fdefine_char): Likewise.
1277 (Ffind_char): Likewise.
1278 (syms_of_mule_charset): Move types `uint8-byte-table',
1279 `uint16-byte-table', `byte-table' and `char-id-table' to
1280 chartab.c; move functions `char_attribute_list,
1281 `find_char_attribute_table, `char_attribute_alist,
1282 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1283 `map_char_attribute, `define_char, `find_char, `char_variants and
1284 `get_composite_char to chartab.c; move symbols `=>ucs',
1285 `->decomposition', `compat', `isolated', `initial', `medial',
1286 `final', `vertical', `noBreak', `fraction', `super', `sub',
1287 `circle', `square', `wide', `narrow', `small' and `font' to
1289 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1290 setting codes for `Vcharacter_composition_table' and
1291 `Vcharacter_variant_table' to chartab.c.
1292 (complex_vars_of_mule_charset): Move setting code for
1293 `Vchar_attribute_hash_table' to chartab.c.
1295 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1296 (make_char_id_table): New prototype.
1297 (put_char_id_table): Likewise.
1298 (Fget_char_attribute): Likewise.
1300 * chartab.c: Move char-id-table related code from mule-charset.c.
1301 (Vutf_2000_version): Moved from mule-charset.c.
1303 * char-ucs.h (Qucs): New external variable.
1304 (put_char_ccs_code_point): New prototype.
1305 (remove_char_ccs): Likewise.
1307 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1309 * mule-charset.c (Vcharset_ucs_jis): New variable.
1310 (Qucs_jis): Likewise.
1311 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1312 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1314 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1316 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1318 * mule-charset.c (map_over_uint8_byte_table): New function.
1319 (map_over_uint16_byte_table): Likewise.
1320 (map_over_byte_table): Likewise.
1321 (map_char_id_table): Likewise.
1322 (slow_map_char_id_table_fun): Likewise.
1323 (Fmap_char_attribute): Likewise.
1324 (syms_of_mule_charset): Add new function `map-char-attribute'.
1326 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1328 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1329 (syms_of_mule_charset): Add new function `find-char'.
1331 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1333 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1335 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1336 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1338 (complex_vars_of_mule_charset): Add new coded-charset
1339 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1340 `ideograph-gt-pj-*'.
1342 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1344 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1346 * mule-charset.c (encode_builtin_char_1): Purge codes about
1347 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1348 {MIN|MAX}_CHAR_HEBREW.
1349 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1350 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1352 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1353 (MAX_CHAR_GREEK): Purged.
1354 (MIN_CHAR_CYRILLIC): Purged.
1355 (MAX_CHAR_CYRILLIC): Purged.
1356 (MIN_CHAR_HEBREW): Commented out.
1357 (MAX_CHAR_HEBREW): Likewise.
1359 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1361 * mule-charset.c (Qto_ucs): New variable.
1362 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1363 (Fdefine_char): Likewise.
1364 (syms_of_mule_charset): Add new symbol `=>ucs'.
1366 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1368 * mule-charset.c (Fdecode_char): Fixed.
1370 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1372 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1373 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1376 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1378 * mule-charset.c (Vcharset_ucs_big5): New variable.
1379 (Qucs_big5): Likewise.
1380 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1381 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1383 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1385 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1387 * mule-charset.c (decode_builtin_char): Check Big5 code range
1388 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1390 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1392 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1393 (Qchinese_gb12345): Likewise.
1394 (Fdecode_builtin_char): Fixed.
1395 (syms_of_mule_charset): Add `chinese-gb12345'.
1396 (complex_vars_of_mule_charset): Add coded-charset
1399 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1400 (LEADING_BYTE_CHINESE_GB12345): New macro.
1402 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1404 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1405 and `latin-viscii-upper' for `latin-viscii'.
1407 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1409 * mule-charset.c (Fdecode_builtin_char): Comment out
1410 regularization code for ISO-IR GR representation.
1412 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1414 * mule-charset.c (decode_builtin_char): New function; renamed from
1415 `make_builtin_char'; return -1 instead of signal.
1416 (Fdecode_builtin_char): Use `decode_builtin_char'.
1418 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1419 `make_builtin_char'.
1420 (DECODE_CHAR): Use `decode_builtin_char' instead of
1421 `make_builtin_char'; use mapping table of `chinese-big5' for
1422 `chinese-big5-{1,2}'.
1424 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1426 * text-coding.c (char_encode_big5): New function.
1427 (char_finish_big5): Likewise.
1428 (reset_encoding_stream): Use `char_encode_big5' and
1429 `char_finish_big5' for CODESYS_BIG5.
1430 (mule_encode): Don't use `encode_coding_big5'.
1431 (encode_coding_big5): Deleted.
1433 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1435 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1436 0x81- in XEmacs UTF-2000.
1437 (detect_coding_big5): Likewise.
1439 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1441 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1442 generate character-id if the CCS property does not have
1443 corresponding predefined character.
1444 (make_builtin_char): Return -1 if corresponding predefined
1445 character is not found.
1446 (Fdecode_char): Return nil if corresponding character is not
1448 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1449 don't map to builtin ucs space.
1451 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1453 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1454 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1456 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1458 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1459 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1460 (Qideograph_gt): Likewise.
1461 (Qideograph_gt_pj_{1..11}): Likewise.
1462 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1463 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1464 `ideograph-gt-pj-11'.
1465 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1466 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1467 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1469 * char-ucs.h (LEADING_BYTE_GT): New macro.
1470 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1471 (MIN_CHAR_GT): Likewise.
1472 (MAX_CHAR_GT): Likewise.
1474 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1476 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1477 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1479 * doprnt.c (unsigned_int_converters): Add `c'.
1480 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1482 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1483 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1485 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1486 (MAX_CHAR_MOJIKYO_0): New macro.
1487 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1489 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1491 * mule-charset.c (Fdefine_char): Delete cemented out code.
1492 (encode_builtin_char_1): Modify for new allocation of builtin
1495 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1497 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1499 * mule-charset.c (Vcharset_ucs_cns): New variable.
1500 (Qucs_cns): New variable.
1501 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1502 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1504 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1506 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1508 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1510 * search.c (search_buffer): Make `charset_base_code' as
1511 character-id >> 6 to eliminate the corresponding last byte in
1512 UTF-8 representation [I'm not sure it is right thing].
1513 (boyer_moore): Likewise.
1515 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1517 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1518 representation in MULE.
1520 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1522 * text-coding.c (Fmake_coding_system): Use
1523 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1524 `EXTERNAL_PROPERTY_LIST_LOOP'.
1526 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1528 * text-coding.c (decode_output_utf8_partial_char): New function.
1529 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1531 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1533 * text-coding.c (decode_coding_utf8): Output original byte
1534 sequence if it is broken; change order of conditions.
1536 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1539 * mb-multibyte.h (BYTE_ASCII_P):
1540 Use bit ops for char-signedness safety.
1541 (BYTE_C0_P): Use bit ops for char-signedness safety.
1542 (BYTE_C1_P): Use bit ops for char-signedness safety.
1544 * character.h: (XCHAR_OR_CHAR_INT):
1545 Always use inline function.
1546 Remove redundant type checking assert() - XINT will abort quite
1549 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1551 * text-coding.c: (Fencode_shift_jis_char):
1552 (Fencode_big5_char):
1553 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1554 Replace 0 with '\0' when working with bytes.
1555 Replace initial "(" with "\(" in docstrings.
1557 (Fmake_coding_system):
1558 When type is ccl and value is vector, register it with a proper
1559 symbol. And checks whether the given ccl program is valid.
1560 (mule_decode): When calling ccl_driver, if src indicates
1561 NULL pointer, set an empty string instead.
1562 (mule_encode): Likewise.
1565 (detect_coding_sjis):
1566 (decode_coding_sjis):
1567 (detect_coding_big5):
1568 (decode_coding_big5):
1569 (detect_coding_ucs4):
1570 (decode_coding_ucs4):
1571 (detect_coding_utf8):
1572 (decode_coding_utf8):
1573 (detect_coding_iso2022):
1574 (decode_coding_iso2022):
1575 (decode_coding_no_conversion):
1577 Make all detecting and decoding functions take an Extbyte * arg.
1578 (text_encode_generic):
1579 (encode_coding_big5):
1580 (encode_coding_no_conversion):
1582 Make all encoding functions take a Bufbyte * arg.
1583 Use size_t instead of unsigned int for memory sizes.
1584 Only cast to unsigned char whenever dereferencing Extbyte *.
1586 (struct lrecord_description fcd_description_1): Use countof.
1587 (complex_vars_of_file_coding):
1588 Use countof instead of sizeof.
1589 Use CHECK_NATNUM instead of CHECK_INT.
1591 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1593 * mule-charset.c (Fget_char_attribute): Add new optional argument
1595 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1596 (remove_char_ccs): Likewise.
1598 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1600 * text-coding.c (char_encode_shift_jis): New implementation in
1602 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1605 * mule-charset.c (Vcharset_chinese_big5): New variable in
1607 (Qchinese_big5): New variable in UTF-2000.
1608 (BIG5_SAME_ROW): New macro in UTF-2000.
1609 (make_builtin_char): Use builtin characters of
1610 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1611 characters of `Vcharset_chinese_big5'.
1612 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1613 (complex_vars_of_mule_charset): Add new coded-charset
1614 `chinese-big5' in UTF-2000.
1616 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1617 (Vcharset_chinese_big5): New external variable declaration.
1618 (Vcharset_japanese_jisx0208_1990): Likewise.
1620 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1622 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1624 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1626 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1628 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1629 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1630 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1633 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1635 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1637 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1639 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1642 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1644 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1645 for `CHARSET_BY_ATTRIBUTES'.
1646 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1647 `CHARSET_BY_ATTRIBUTES'.
1649 * text-coding.c (struct decoding_stream): Rename member `CH' to
1651 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1652 (decode_coding_sjis): Likewise.
1653 (decode_coding_big5): Likewise.
1654 (decode_coding_ucs4): Likewise.
1655 (decode_coding_utf8): Likewise.
1656 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1657 `CHARSET_BY_ATTRIBUTES'.
1658 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1659 `str->counter'; decode 3, 4 bytes sets.
1660 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1662 (decode_coding_no_conversion): Use `str->cpos' instead of
1665 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1666 (Qmojikyo_2022_1): New variable.
1667 (make_charset): Don't use `CHARSET_TYPE_*'.
1668 (range_charset_code_point): Support coded-charset
1670 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1671 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1672 `CHARSET_BY_ATTRIBUTES'.
1673 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1674 `CHARSET_BY_ATTRIBUTES'.
1675 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1676 (complex_vars_of_mule_charset): Add new coded-charset
1679 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1680 interface; changed to inline function.
1682 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1683 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1684 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1685 (CHARSET_TYPE_94): Deleted.
1686 (CHARSET_TYPE_94X94): Deleted.
1687 (CHARSET_TYPE_96): Deleted.
1688 (CHARSET_TYPE_96X96): Deleted.
1689 (CHARSET_TYPE_128): Deleted.
1690 (CHARSET_TYPE_128X128): Deleted.
1691 (CHARSET_TYPE_256): Deleted.
1692 (CHARSET_TYPE_256X256): Deleted.
1693 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1695 (DECODE_MOJIKYO_2022): New inline function.
1696 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1697 `Vcharset_mojikyo_2022_1'.
1699 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1701 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1703 (put_byte_table): Likewise.
1704 (char_id_table_equal): Use `get_byte_table' [new implementation].
1706 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1708 * mule-charset.c: Include <limits.h> in UTF-2000.
1709 (BT_UINT8_MIN): New macro in UTF-2000.
1710 (BT_UINT8_MAX): New macro in UTF-2000.
1711 (BT_UINT8_t): New macro in UTF-2000.
1712 (BT_UINT8_nil): New macro in UTF-2000.
1713 (BT_UINT8_unbound): New macro in UTF-2000.
1714 (INT_UINT8_P): New inline function in UTF-2000.
1715 (UINT8_VALUE_P): New inline function in UTF-2000.
1716 (UINT8_ENCODE): New inline function in UTF-2000.
1717 (UINT8_DECODE): New inline function in UTF-2000.
1718 (mark_uint8_byte_table): New function in UTF-2000.
1719 (print_uint8_byte_table): New function in UTF-2000.
1720 (uint8_byte_table_equal): New function in UTF-2000.
1721 (uint8_byte_table_hash): New function in UTF-2000.
1722 (make_uint8_byte_table): New function in UTF-2000.
1723 (uint8_byte_table_same_value_p): New function in UTF-2000.
1724 (BT_UINT16_MIN): New macro in UTF-2000.
1725 (BT_UINT16_MAX): New macro in UTF-2000.
1726 (BT_UINT16_t): New macro in UTF-2000.
1727 (BT_UINT16_nil): New macro in UTF-2000.
1728 (BT_UINT16_unbound): New macro in UTF-2000.
1729 (INT_UINT16_P): New inline function in UTF-2000.
1730 (UINT16_VALUE_P): New inline function in UTF-2000.
1731 (UINT16_ENCODE): New inline function in UTF-2000.
1732 (UINT16_DECODE): New inline function in UTF-2000.
1733 (UINT8_TO_UINT16): New inline function in UTF-2000.
1734 (mark_uint16_byte_table): New function in UTF-2000.
1735 (print_uint16_byte_table): New function in UTF-2000.
1736 (uint16_byte_table_equal): New function in UTF-2000.
1737 (uint16_byte_table_hash): New function in UTF-2000.
1738 (make_uint16_byte_table): New function in UTF-2000.
1739 (uint16_byte_table_same_value_p): New function in UTF-2000.
1740 (print_byte_table): New function in UTF-2000.
1741 (byte-table): Use `print_byte_table' as printer.
1742 (make_byte_table): Delete second argument `older'.
1743 (byte_table_same_value_p): New function in UTF-2000.
1744 (copy_byte_table): Deleted.
1745 (get_byte_table): New function in UTF-2000.
1746 (put_byte_table): New function in UTF-2000.
1747 (print_char_id_table): New function in UTF-2000.
1748 (char-id-table): Use `print_char_id_table' as printer.
1749 (make_char_id_table): Delete second argument `older'.
1750 (get_char_id_table): Use `get_byte_table [new implementation].
1751 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1753 (Ffind_char_attribute_table): New function in UTF-2000.
1754 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1755 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1756 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1757 (syms_of_mule_charset): Add new function
1758 `find-char-attribute-table' in UTF-2000.
1760 * lrecord.h (enum lrecord_type): Add
1761 `lrecord_type_uint16_byte_table' and
1762 `lrecord_type_uint8_byte_table'.
1764 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1765 (Lisp_Uint8_Byte_Table): New type.
1766 (XUINT8_BYTE_TABLE): New macro.
1767 (XSETUINT8_BYTE_TABLE): New macro.
1768 (UINT8_BYTE_TABLE_P): New macro.
1769 (GC_UINT8_BYTE_TABLE_P): New macro.
1770 (struct Lisp_Uint16_Byte_Table): New structure.
1771 (Lisp_Uint16_Byte_Table): New type.
1772 (XUINT16_BYTE_TABLE): New macro.
1773 (XSETUINT16_BYTE_TABLE): New macro.
1774 (UINT16_BYTE_TABLE_P): New macro.
1775 (GC_UINT16_BYTE_TABLE_P): New macro.
1777 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1779 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1780 (Vcharacter_ideographic_strokes_table): Deleted.
1781 (Vcharacter_total_strokes_table): Deleted.
1782 (Vcharacter_morohashi_daikanwa_table): Deleted.
1783 (Vcharacter_decomposition_table): Deleted.
1784 (Qname): Deleted because it is duplicated.
1785 (Qideographic_radical): Deleted.
1786 (Qideographic_strokes): Deleted.
1787 (Qtotal_strokes): Deleted.
1788 (Qmorohashi_daikanwa): Deleted.
1789 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1790 `ideographic-radical', `ideographic-strokes', `total-strokes',
1791 `morohashi-daikanwa' and `->decomposition'.
1792 (Fget_char_attribute): Likewise.
1793 (Fput_char_attribute): Likewise; use `make-vector' instead of
1794 `make_older_vector' for `->decomposition' value.
1795 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1796 `ideograph-daikanwa'.
1797 (syms_of_mule_charset): Delete builtin symbols `name',
1798 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1799 `morohashi-daikanwa'.
1800 (vars_of_mule_charset): Don't setup
1801 `Vcharacter_ideographic_radical_table',
1802 `Vcharacter_ideographic_strokes_table',
1803 `Vcharacter_total_strokes_table',
1804 `Vcharacter_morohashi_daikanwa_table' and
1805 `Vcharacter_decomposition_table'.
1807 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1809 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1810 `make_older_vector', `make_vector_newer_1' and
1811 `make_vector_newer'.
1813 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1814 `make_older_vector' and `make_vector_newer'.
1816 * config.h.in (HAVE_GGC): New macro.
1818 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1820 * mule-charset.c (struct char_attribute_list_closure): New
1821 structure in UTF-2000.
1822 (add_char_attribute_to_list_mapper): New function in UTF-2000.
1823 (Fchar_attribute_list): Likewise.
1824 (Fset_charset_mapping_table): Use `make_vector_newer'.
1825 (Fdecode_builtin_char): New function in UTF-2000.
1826 (syms_of_mule_charset): Add new function `char-attribute-list' and
1827 `decode-builtin-char' in UTF-2000.
1829 * lisp.h (make_vector_newer): New prototype.
1831 * alloc.c (make_vector_newer_1): New function.
1832 (make_vector_newer): New function.
1834 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1836 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1839 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1841 * mule-charset.c (Vchar_attribute_hash_table): New variable.
1842 (Vcharacter_attribute_table): Deleted.
1843 (Vcharacter_name_table): Deleted.
1844 (put_char_attribute): Deleted.
1845 (remove_char_attribute): Deleted.
1846 (struct char_attribute_alist_closure): New structure.
1847 (add_char_attribute_alist_mapper): New function.
1848 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1849 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1850 (Fget_char_attribute): Likewise.
1851 (Fput_char_attribute): Likewise.
1852 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1853 of `remove_char_attribute'.
1854 (Fdefine_char): Return character.
1855 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1856 and `Vcharacter_name_table'.
1857 (complex_vars_of_mule_charset): Likewise
1858 `Vchar_attribute_hash_table'.
1860 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1862 * character.h (CHARC_CHARSET): New macro.
1863 (CHARC_CHARSET_ID): New macro.
1864 (CHARC_CODE_POINT): New macro.
1865 (CHARC_COLUMNS): New macro.
1866 (CHARC_TO_CHAR): New inline function.
1867 (CHARC_EQ): New inline function.
1868 (CHARC_ASCII_EQ): New inline function.
1869 (CHARC_IS_SPACE): New inline function.
1870 (ASCII_TO_CHARC): New inline function.
1872 * char-ucs.h (encode_char_2): Deleted.
1873 (ENCODE_CHAR): Use `encode_char_1' again.
1874 (breakup_char_1): Likewise.
1875 (CHAR_TO_CHARC): New inline function.
1877 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1879 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1881 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1882 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1883 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1884 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1885 (create_string_text_block): Use `CHARC_ASCII_EQ' and
1887 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1889 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1891 (x_output_display_block): Use `CHARC_CHARSET' and
1894 * redisplay-tty.c (tty_output_display_block): Use
1896 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1898 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1900 * insdel.c (find_charsets_in_charc_string): Use
1902 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1903 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1904 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1905 (convert_charc_string_into_malloced_string): Likewise.
1907 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1909 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1910 instead of <Emchar_dynarr *> for buf; use
1911 `convert_bufbyte_string_into_charc_dynarr' instead of
1912 `convert_bufbyte_string_into_emchar_dynarr'; use
1913 `find_charsets_in_charc_string' instead of
1914 `find_charsets_in_emchar_string'.
1917 - Include "character.h".
1918 (struct rune): New member `cglyph'; delete member `chr'.
1920 * redisplay.c (redisplay_text_width_charc_string): New function;
1921 delete `redisplay_text_width_emchar_string'.
1922 (rtw_charc_dynarr): New variable; renamed from
1923 `rtw_emchar_dynarr'.
1924 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1925 `rtw_emchar_dynarr'; use
1926 `convert_bufbyte_string_into_charc_dynarr' instead of
1927 `convert_bufbyte_string_into_emchar_dynarr'; use
1928 `redisplay_text_width_charc_string' instead of
1929 `redisplay_text_width_emchar_string'.
1930 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1931 instead of `rtw_emchar_dynarr'; use
1932 `convert_bufbyte_string_into_charc_dynarr' instead of
1933 `convert_bufbyte_string_into_emchar_dynarr'.
1934 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1935 `redisplay_text_width_charc_string' instead of
1936 `redisplay_text_width_emchar_string'.
1937 (create_text_block): Modify for <struct rune> change.
1938 (generate_formatted_string_db): Likewise.
1939 (create_string_text_block): Likewise.
1940 (pixel_to_glyph_translation): Likewise.
1942 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1943 instead of <const Emchar *>.
1944 (x_text_width): Likewise.
1945 (x_output_display_block): Use <Charc_dynarr *> instead
1946 <Emchar_dynarr *>; modify for <structure rune> change.
1947 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1950 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1951 <const Emchar *>; use `charc_string_displayed_columns' instead of
1952 `emchar_string_displayed_columns'.
1953 (tty_output_display_block): Use <Charc_dynarr *> instead of
1954 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1955 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1956 (tty_output_charc_dynarr_dynarr): New variable; renamed from
1957 `tty_output_emchar_dynarr_dynarr'.
1958 (tty_output_charc_dynarr): New function; delete
1959 `tty_output_charc_dynarr'.
1961 * redisplay-output.c (compare_runes): Modify for `struct rune'.
1962 (redisplay_output_layout): Use <Charc_dynarr *> instead of
1963 <Emchar_dynarr *> for buf; use
1964 `convert_bufbyte_string_into_charc_dynarr' instead of
1965 `convert_bufbyte_string_into_emchar_dynarr'.
1967 * frame.c (title_string_charc_dynarr): New variable; renamed from
1968 `title_string_emchar_dynarr'.
1969 (generate_title_string): Use `title_string_charc_dynarr' instead
1970 of `title_string_emchar_dynarr'; use
1971 `convert_charc_string_into_malloced_string' instead of
1972 `convert_emchar_string_into_malloced_string'.
1973 (init_frame): Use `title_string_charc_dynarr' instead of
1974 `title_string_emchar_dynarr'.
1977 - Include "character.h".
1978 (struct console_methods): Use <const Charc *> instead of <const
1979 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1980 <Emchar_dynarr *> in output_string_method.
1982 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1985 * console-stream.c (stream_text_width): Use <const Charc *>
1986 instead of <const Emchar *>.
1988 * character.h (Charc_dynarr): New type.
1990 * char-ucs.h (structure Charc): New structure; define new type
1993 * char-lb.h (DECODE_CHAR): New inline function.
1994 (encode_char_1): New inline function.
1995 (ENCODE_CHAR): New macro.
1996 (structure Charc): New structure; define new type `Charc'.
1998 * char-1byte.h (Vcharset_control_1): New macro.
1999 (Vcharset_latin_iso8859_1): New macro.
2000 (DECODE_CHAR): New inline function.
2001 (encode_char_1): New inline function.
2002 (ENCODE_CHAR): New macro.
2003 (structure Charc): New structure; define new type `Charc'.
2005 * insdel.c (find_charsets_in_charc_string): New function; delete
2006 `find_charsets_in_emchar_string'.
2007 (charc_string_displayed_columns): New function; delete
2008 `emchar_string_displayed_columns'.
2009 (convert_bufbyte_string_into_charc_dynarr): New function; delete
2010 `convert_bufbyte_string_into_emchar_dynarr'.
2011 (convert_charc_string_into_bufbyte_dynarr): New function; delete
2012 `convert_charc_string_into_bufbyte_dynarr'.
2013 (convert_charc_string_into_malloced_string): New function; delete
2014 `convert_charc_string_into_malloced_string'.
2016 * buffer.h (find_charsets_in_charc_string): New prototype; delete
2017 `find_charsets_in_emchar_string'.
2018 (charc_string_displayed_columns): New prototype; delete
2019 `emchar_string_displayed_columns'.
2020 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2021 `convert_charc_string_into_bufbyte_dynarr'.
2022 (convert_charc_string_into_malloced_string): New prototype; delete
2023 `convert_charc_string_into_malloced_string'.
2025 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2027 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2029 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2031 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2033 * char-ucs.h: Use <short> for <Charset_ID>.
2035 * mule-charset.h, char-1byte.h: Use <unsigned char> for
2038 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2040 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2043 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2045 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2047 (Qmorohashi_daikanwa): New variable.
2048 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2049 for `morohashi-daikanwa' attribute.
2050 (Fget_char_attribute): Likewise.
2051 (Fput_char_attribute): Likewise.
2052 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2053 has the same value of `ideograph-daikanwa'.
2054 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2055 (vars_of_mule_charset): Setup
2056 `Vcharacter_morohashi_daikanwa_table'.
2058 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2060 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2062 (add_charset_to_list_mapper): Add `key' instead of
2063 `XCHARSET_NAME (value)' to return aliases.
2065 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2067 * mule-charset.c (Vcharacter_ideographic_radical_table): New
2069 (Vcharacter_ideographic_strokes_table): New variable.
2070 (Qideographic_radical): New variable.
2071 (Qideographic_strokes): New variable.
2072 (Fchar_attribute_alist): Use
2073 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2074 attribute; use `Vcharacter_ideographic_strokes_table' for
2075 `ideographic-strokes' attribute.
2076 (Fget_char_attribute): Likewise.
2077 (Fput_char_attribute): Likewise.
2078 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2079 `ideographic-strokes'.
2080 (vars_of_mule_charset): Setup
2081 `Vcharacter_ideographic_radical_table' and
2082 `Vcharacter_ideographic_strokes_table'.
2084 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2086 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2087 (Qtotal_strokes): New variable.
2088 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2089 `total-strokes' attribute.
2090 (Fget_char_attribute): Likewise.
2091 (Fput_char_attribute): Likewise.
2092 (syms_of_mule_charset): Add new symbol `total-strokes'.
2093 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2095 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2097 * mule-charset.c (Vcharacter_decomposition_table): New variable.
2098 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2100 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2101 `->decomposition' attribute.
2102 (Fput_char_attribute): Likewise.
2103 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2105 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2107 * mule-charset.c (decoding_table_check_elements): New function.
2108 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2110 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2112 * mule-charset.c (Fset_charset_mapping_table): Use
2113 `put_char_ccs_code_point'.
2115 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2117 * mule-charset.c (decoding_table_put_char): New inline function.
2118 (put_char_ccs_code_point): Use `decoding_table_put_char'.
2120 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2122 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2123 (XCHARSET_BYTE_SIZE): New macro.
2124 (decoding_table_remove_char): New inline function.
2125 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2126 `decoding_table_remove_char'.
2127 (remove_char_ccs): Use `decoding_table_remove_char'.
2128 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2130 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2132 * mule-charset.c (Vcharacter_name_table): New variable.
2133 (Qname): New variable.
2134 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2136 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2137 `Vcharacter_name_table' for `name' attribute.
2138 (Fremove_char_attribute): Use function `remove_char_ccs'.
2139 (put_char_ccs_code_point): New function.
2140 (remove_char_ccs): New function.
2141 (syms_of_mule_charset): Add new symbol `name'.
2142 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2144 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2146 * mule-charset.c (make_byte_table): Add new argument `older'.
2147 (make_char_id_table): Likewise.
2148 (copy_char_id_table): Comment out because it is not used.
2149 (put_char_id_table): Modify for `make_byte_table'.
2150 (Fput_char_attribute): Make encoding_table as older object;
2151 inherit older bit of `Vcharacter_composition_table'.
2152 (mark_charset): Don't mark `cs->encoding_table'.
2153 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2154 normal object; make `Vcharacter_composition_table' as an older
2155 object; delete staticpro for `Vcharacter_composition_table'; make
2156 `Vcharacter_variant_table' as a normal object.
2158 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2159 (mark_object): Don't check older object in UTF-2000.
2161 * lrecord.h (struct lrecord_header): Add new member `older' in
2163 (set_lheader_implementation): Setup `SLI_header->older' in
2165 (set_lheader_older_implementation): New macro in UTF-2000.
2166 (OLDER_RECORD_P): New macro in UTF-2000.
2167 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2168 (alloc_older_lcrecord): New prototype in UTF-2000.
2169 (alloc_older_lcrecord_type): New macro in UTF-2000.
2171 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2173 * mule-charset.c (byte_table_description): Use
2174 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2175 (char_id_table_description): Delete bogus `, 1'.
2176 (Fget_char_attribute): Refer encoding_table of each coded-charset
2177 to get value of coded-charset attribute of a character.
2178 (Fput_char_attribute): Use `make_older_vector' instead of
2179 `make_vector'; use encoding_table of each coded-charset to store
2180 value of coded-charset attribute of a character.
2181 (Fremove_char_attribute): Use encoding_table of each coded-charset
2182 to store value of coded-charset attribute of a character.
2183 (mark_charset): Mark `cs->encoding_table'; don't mark
2184 `cs->decoding_table'.
2185 (charset_description): Add description of new member
2187 (make_charset): Initialize `encoding_table'.
2189 * char-ucs.h (struct Lisp_Charset): Add new member
2191 (CHARSET_ENCODING_TABLE): New macro.
2192 (XCHARSET_ENCODING_TABLE): New macro.
2193 (charset_code_point): New implementation.
2194 (encode_char_1): Likewise.
2196 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2197 (disksave_object_finalization_1): Call finalizers of
2198 `all_older_lcrecords' in UTF-2000.
2199 (make_older_vector): New function in UTF-2000.
2200 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2203 * lisp.h (make_older_vector): New prototype in UTF-2000.
2205 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2207 * lrecord.h (enum lrecord_type): Rename
2208 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2210 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2211 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2212 `get_char_code_table'.
2214 * mule-charset.c (mark_char_id_table): Renamed from
2215 `mark_char_code_table'.
2216 (char_id_table_equal): Renamed from `char_code_table_equal'.
2217 (char_id_table_hash): Renamed from `char_code_table_hash'.
2218 (make_char_id_table): Renamed from `make_char_code_table'.
2219 (copy_char_id_table): Renamed from `copy_char_code_table'.
2220 (get_char_id_table): Renamed from `get_char_code_table'.
2221 (put_char_id_table): Renamed from `put_char_code_table'.
2222 (to_char_id): Renamed from `to_char_code'.
2224 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2225 `Lisp_Char_Code_Table'.
2226 (char_id_table): Renamed from `char_code_table'.
2227 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2228 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2229 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2230 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2231 (get_char_id_table): Renamed from `get_char_code_table'.
2233 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2235 * lrecord.h (enum lrecord_type): Rename
2236 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2238 * mule-charset.c (mark_byte_table): Renamed from
2239 `mark_char_byte_table'.
2240 (byte_table_equal): Renamed from `char_byte_table_equal'.
2241 (byte_table_hash): Renamed from `byte_table_hash'.
2242 (make_byte_table): Renamed from `make_byte_table'.
2243 (copy_byte_table): Renamed from `copy_char_byte_table'.
2245 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2246 `Lisp_Char_Byte_Table'.
2247 (byte_table): Renamed from `char_byte_table'.
2248 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2249 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2250 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2251 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2253 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2255 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2256 (dfc_convert_to_internal_format): Likewise.
2258 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2259 * text-coding.c (Fcoding_system_alias_p): New function.
2260 * text-coding.c (Fcoding_system_aliasee): New function.
2261 * text-coding.c (append_suffix_to_symbol): New function.
2262 * text-coding.c (dangling_coding_system_alias_p): New function.
2263 * text-coding.c (Ffind_coding_system):
2264 * text-coding.c (Fcopy_coding_system):
2265 * text-coding.c (encode_coding_no_conversion):
2266 * text-coding.c (syms_of_file_coding):
2267 * text-coding.c (vars_of_file_coding):
2268 Rewrite coding system alias code.
2269 Allow nested aliases, like symbolic links.
2270 Allow redefinition of coding system aliases.
2271 Prevent existence of dangling coding system aliases.
2272 Eliminate convert_to_external_format.
2273 Eliminate convert_to_internal_format.
2275 * text-coding.c: Change enum eol_type to eol_type_t.
2277 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2279 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2280 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2282 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2283 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2285 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2287 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2288 `ideograph-daikanwa'.
2290 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2291 (Vcharset_ucs_bmp): Likewise.
2292 (Vcharset_mojikyo): Add new extern variable definition.
2293 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2294 (Vcharset_latin_iso8859_3): Likewise.
2295 (Vcharset_latin_iso8859_4): Likewise.
2296 (Vcharset_latin_iso8859_9): Likewise.
2297 (Vcharset_latin_viscii_lower): Likewise.
2298 (Vcharset_latin_viscii_upper): Likewise.
2299 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2300 `mojikyo' code-point is used to decode.
2301 (encode_char_2): New function [to convert `mojikyo' code-point to
2302 Mojikyo font encoding].
2303 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2304 (breakup_char_1): Likewise.
2305 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2307 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2309 * text-coding.c (Fmake_coding_system): Add document about
2310 `disable-composition' property.
2312 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2314 * text-coding.c (Qdisable_composition): New variable; delete
2316 (Fmake_coding_system): Add new property `disable-composite';
2317 delete property `composite'.
2318 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2319 instead of `!CODING_SYSTEM_COMPOSITE'.
2320 (syms_of_file_coding): Add new symbol `disable-composition';
2321 delete symbol `composite'.
2323 * file-coding.h (struct Lisp_Coding_System): Add
2324 `disable_composition'; delete `enable_composition'.
2325 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2326 `CODING_SYSTEM_COMPOSITE'.
2327 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2328 `XCODING_SYSTEM_COMPOSITE'.
2330 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2332 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2335 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2337 * text-coding.c (Qcomposite): New variable.
2338 (Fmake_coding_system): Add new property `composite'.
2339 (struct decoding_stream): Add `combined_char_count',
2340 `combined_chars' and `combining_table' in UTF-2000.
2341 (COMPOSE_FLUSH_CHARS): New macro.
2342 (COMPOSE_ADD_CHAR): New macro.
2343 (reset_decoding_stream): Reset `str->combined_char_count' and
2344 `str->combining_table' in UTF-2000.
2345 (decode_coding_iso2022): Modify for character-decomposition.
2346 (syms_of_file_coding): Add new symbol `composite'.
2348 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2350 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2351 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2352 of `Vcharacter_composition_table' if `->decomposition' property
2354 (Qlatin_tcvn5712): New variable.
2355 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2356 (complex_vars_of_mule_charset): Add new coded-charset
2359 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2361 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2363 * file-coding.h (struct Lisp_Coding_System): Add
2364 `enable_composition'.
2365 (CODING_SYSTEM_COMPOSITE): New macro.
2366 (XCODING_SYSTEM_COMPOSITE): New macro.
2368 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2370 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2372 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2374 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2375 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2377 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2379 * mule-charset.c (Vcharset_mojikyo): New variable.
2380 (Fdefine_char): Don't use coded-charset which does not have
2381 non-builtin character range to allocate character-id.
2382 (Qmojikyo): New variable.
2383 (syms_of_mule_charset): Add new symbol `mojikyo'.
2384 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2386 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2387 (LEADING_BYTE_MOJIKYO): New macro.
2388 (MIN_CHAR_MOJIKYO): New macro.
2389 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2390 (MAX_CHAR_MOJIKYO): New macro.
2392 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2394 * mule-charset.c (remove_char_attribute): Fixed.
2396 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2398 * mule-charset.c (remove_char_attribute): New function.
2399 (Fremove_char_attribute): New function.
2400 (encode_builtin_char_1): Comment out builtin-support for
2401 greek-iso8859-7 and cyrillic-iso8859-5.
2402 (Fdecode_char): Check `code' is an integer.
2403 (syms_of_mule_charset): Add `remove-char-attribute'.
2404 (MIN_CHAR_GREEK): Deleted.
2405 (MAX_CHAR_GREEK): Likewise.
2406 (MIN_CHAR_CYRILLIC): Likewise.
2407 (MAX_CHAR_CYRILLIC): Likewise.
2408 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2409 MAX_CHAR_GREEK for `greek-iso8859-7'.
2411 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2412 (MAX_CHAR_GREEK): Likewise.
2413 (MIN_CHAR_CYRILLIC): Likewise.
2414 (MAX_CHAR_CYRILLIC): Likewise.
2416 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2418 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2419 format is used without `ucs' property.
2420 (Fdecode_char): Fix problem with GR representation.
2421 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2422 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2424 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2426 * mule-charset.c (make_builtin_char): New function.
2427 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2428 (Fset_charset_mapping_table): Modify for new representation of
2430 (Fdecode_char): New function.
2431 (syms_of_mule_charset): Add new builtin function `decode-char' in
2434 * char-ucs.h (make_builtin_char): New prototype.
2435 (DECODE_CHAR): New inline function.
2436 (MAKE_CHAR): Use `DECODE_CHAR'.
2438 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2440 * text-coding.c (parse_charset_conversion_specs): Use
2441 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2443 (iso2022_designate): Likewise.
2445 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2446 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2448 * mule-charset.c (Vcharset_ucs): New variable.
2449 (print_charset): Change design; use `CHARSET_CHARS' and
2450 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2451 (make_charset): Change signature to specify `chars' and
2452 `dimension' instead of `type'.
2453 (range_charset_code_point): Modify for 256^n-set.
2454 (encode_builtin_char_1): Encode as `ucs' in default.
2455 (Fmake_charset): Modify for `make_charset'.
2456 (Fmake_reverse_direction_charset): Likewise.
2457 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2459 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2462 * char-ucs.h (Vcharset_ucs): New variable.
2463 (LEADING_BYTE_UCS): New macro.
2464 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2465 and `chars' to `unsigned short' from `unsigned int'.
2466 (CHARSET_TYPE): Deleted.
2467 (XCHARSET_TYPE): Deleted.
2469 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2471 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2473 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2474 (ENCODE_CHAR): New macro.
2476 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2478 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2479 to 0.14 (Kawachi-Katakami).
2481 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2483 * text-coding.c (char_encode_shift_jis): Modify for
2484 `charset_code_point'.
2485 (char_encode_iso2022): Likewise.
2487 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2488 (integer) instead of list of <Lisp_Object>s (integers) as the
2489 format of code-point of a coded-charset.
2490 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2491 (encode_builtin_char_1): New function; delete
2492 `split_builtin_char'.
2493 (charset_code_point): Return <int> instead of <Lisp_Object>.
2494 (Fsplit_char): Don't use `SPLIT_CHAR'.
2496 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2497 prototype for `split_builtin_char'.
2498 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2499 (charset_code_point): Likewise.
2500 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2501 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2503 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2505 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2506 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2508 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2510 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2512 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2513 (MAX_CHAR_OBS_94x94): Deleted.
2515 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2517 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2519 * char-ucs.h (MAX_CHAR_BMP): New macro.
2521 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2523 * text-coding.c: Sync with r21-2-24.
2525 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2527 * file-coding.c: Modify for UTF-2000.
2529 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2531 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2534 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2536 * mule-charset.c (split_builtin_char): Delete builtin support for
2537 `katakana-jisx0201'.
2538 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2539 BMP area in builtin representation.
2541 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2542 `Vcharset_katakana_jisx0201'.
2544 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2546 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2547 (Qisolated): New variable.
2548 (Qinitial): New variable.
2549 (Qmedial): New variable.
2550 (Qfinal): New variable.
2551 (Qvertical): New variable.
2552 (Qsmall): New variable.
2553 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2554 `Qvertical' and `Qsmall'.
2555 (Qmojikyo_pj_[1 .. 21]): New variable.
2556 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2557 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2558 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2561 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2563 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2564 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2565 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2567 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2569 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2570 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2572 (Qjapanese_jisx0208_1990): New variable.
2573 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2574 (complex_vars_of_mule_charset): Add new coded-charset
2575 `japanese-jisx0208-1990'.
2577 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2578 (MIN_CHAR_JIS_X0208_1990): New macro.
2579 (MAX_CHAR_JIS_X0208_1990): New macro.
2581 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2583 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2584 coded-charset is not found.
2586 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2588 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2589 (Fdefine_char): Use `Fmake_char'.
2591 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2593 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2594 (Vcharset_hiragana_jisx0208): Deleted.
2595 (Vcharset_katakana_jisx0208): Deleted.
2596 (Qideograph_daikanwa): New variable.
2597 (Qhiragana_jisx0208): Deleted.
2598 (Qkatakana_jisx0208): Deleted.
2599 (split_builtin_char): Split `ideograph-daikanwa'.
2600 (Fsplit_char): New implementation for UTF-2000.
2601 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2602 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2603 (complex_vars_of_mule_charset): Add new coded-charset
2604 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2605 `katakana-jisx0208'.
2607 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2608 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2609 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2610 (MIN_CHAR_DAIKANWA): New macro.
2611 (MAX_CHAR_DAIKANWA): New macro.
2613 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2615 * data.c (Fstring_to_number): Don't recognize floating point if
2618 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2620 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2622 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2624 * mule-charset.c (Qsquare): New variable.
2625 (to_char_code): Add `Qsquare'.
2626 (syms_of_mule_charset): Add new symbol `square'.
2628 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2630 * mule-charset.c (Qcircle): New variable.
2631 (to_char_code): Add `Qcircle'.
2632 (syms_of_mule_charset): Add new symbol `circle'.
2634 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2636 * mule-charset.c (Qfont): New variable.
2637 (to_char_code): Add `Qfont'.
2638 (syms_of_mule_charset): Add new symbol `font'.
2640 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2642 * mule-charset.c (Qsub): New variable.
2643 (to_char_code): Add `Qsub'.
2644 (syms_of_mule_charset): Add new symbol `sub'.
2646 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2648 * mule-charset.c (Fput_char_attribute): Convert each element of
2649 VALUE to GL position if ATTRIBUTE is a GR-set,
2651 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2653 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2654 coded-charset is a GR-set.
2656 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2658 * mule-charset.c (Fput_char_attribute): Check each element of
2659 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2661 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2663 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2665 (Qethiopic_ucs): New variable in UTF-2000.
2666 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2667 (complex_vars_of_mule_charset): Add new coded-charset
2668 `ethiopic-ucs' in UTF-2000.
2670 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2671 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2673 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2675 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2677 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2679 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2682 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2684 * mule-charset.c (Vcharacter_variant_table): New variable.
2685 (Q_ucs): New variable.
2686 (Fchar_variants): New function.
2687 (Fput_char_attribute): Register `->ucs' value to
2688 `Vcharacter_variant_table'.
2689 (syms_of_mule_charset): Add new function `char-variants' and new
2691 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2693 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2695 * mule-charset.c (get_char_code_table): Allow negative character
2697 (put_char_code_table): Likewise.
2698 (Vcharacter_composition_table): New variable.
2699 (Q_decomposition): New variable.
2700 (Qwide): New variable.
2701 (Qnarrow): New variable.
2702 (Qcompat): New variable.
2703 (QnoBreak): New variable.
2704 (Qsuper): New variable.
2705 (Qfraction): New variable.
2706 (to_char_code): New function.
2707 (Fget_composite_char): New function.
2708 (Fput_char_attribute): Register `->decomposition' value to
2709 `Vcharacter_composition_table'.
2710 (syms_of_mule_charset): Add new function `get-composite-char', new
2711 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2712 `super' and `fraction'.
2713 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2715 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2717 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2718 character; copy the return value.
2720 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2722 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2724 * mule-charset.c (range_charset_code_point): Must use make_int.
2725 (split_builtin_char): New function.
2727 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2729 * mule-charset.c (char_byte_table): Change name from
2730 "char-code-table" to "char-byte-table".
2731 (mark_char_code_table): New function.
2732 (char_code_table_equal): New function.
2733 (char_code_table_hash): New function.
2734 (char_code_table_description): New constant.
2735 (char_code_table): New type.
2736 (make_char_code_table): New function.
2737 (copy_char_code_table): New function.
2738 (get_char_code_table): Modify for `char_code_table' type.
2739 (put_char_code_table): Likewise.
2740 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2743 * char-ucs.h (char_code_table): New type.
2744 (XCHAR_CODE_TABLE): New macro.
2745 (XSETCHAR_CODE_TABLE): New macro.
2746 (CHAR_CODE_TABLE_P): New macro.
2747 (GC_CHAR_CODE_TABLE_P): New macro.
2748 (struct Lisp_Char_Code_Table): New structure.
2750 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2752 * mule-charset.c (Fmake_charset): Setup byte_offset for
2755 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2757 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2760 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2762 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2765 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2767 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2768 charset, it is regarded as a charset.
2769 (put_char_attribute): New function in UTF-2000.
2770 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2771 charset, mapping-table of the charset is modified.
2772 (Fdefine_char): New function in UTF-2000.
2773 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2774 `Fput_char_attribute'.
2775 (syms_of_mule_charset): Add new function `define-char' and new
2776 symbol `ucs' in UTF-2000.
2777 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2779 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2781 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2782 non-UTF-2000 configuration.
2784 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2786 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2787 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2789 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2791 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2792 (Fset_charset_mapping_table): Likewise.
2794 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2795 (CHARSET_ENCODING_TABLE): Delete.
2796 (XCHARSET_ENCODING_TABLE): Delete.
2797 (charset_code_point): New interface.
2799 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2801 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2802 instead of `charset_get_byte1' and `charset_get_byte2'.
2804 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2805 (charset_get_byte2): Deleted.
2807 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2809 * char-ucs.h (SPLIT_CHAR): New inline function.
2810 (breakup_char_1): Use `SPLIT_CHAR'.
2812 * mule-charset.c (range_charset_code_point): New function.
2813 (charset_code_point): New function.
2815 * char-ucs.h (range_charset_code_point): New interface.
2816 (breakup_char_1): Use `range_charset_code_point'.
2818 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2820 * mule-charset.c (Fmake_charset): Delete unused local variable
2823 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2824 (breakup_char_1): Find a charset and code-point in
2825 `Vcharacter_attribute_table'.
2827 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2829 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2832 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2834 * mule-charset.c (Vcharacter_attribute_table): New variable.
2835 (Fchar_attribute_alist): New function.
2836 (Fget_char_attribute): New function.
2837 (Fput_char_attribute): New function.
2838 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2840 (syms_of_mule_charset): Add new function `char-attribute-alist',
2841 `get-char-attribute' and `put-char-attribute'.
2842 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2844 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
2846 * mule-charset.c (Fmake_charset): Just use
2847 `get_unallocated_leading_byte'.
2849 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2850 sets; don't use final-byte based number for private sets.
2852 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2854 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2857 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2859 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2862 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2864 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2865 of `CHAR_LEADING_BYTE' in UTF-2000.
2867 * insdel.c (find_charsets_in_bufbyte_string): Use
2868 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2869 (find_charsets_in_emchar_string): Likewise.
2871 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2872 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2874 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2875 (CHAR_CHARSET_ID): New macro.
2877 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2879 * chartab.c (get_char_table): Don't use type `Charset_ID' for
2880 charset-id - MIN_LEADING_BYTE.
2881 (put_char_table): Likewise.
2883 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2885 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2886 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2887 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2888 (CHARSET_ID_OFFSET): New macro.
2889 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2890 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2891 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2892 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2894 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2896 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2897 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2898 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2899 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2900 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2902 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2904 * mule-charset.c (next_allocated_leading_byte): New variable in
2906 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2907 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2908 (get_unallocated_leading_byte): Simply use
2909 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2910 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2913 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2914 (MAX_LEADING_BYTE_PRIVATE): New macro.
2915 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2916 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2918 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2920 * mule-charset.c (Fmake_charset): Allocate final-byte based
2921 charset-id for 94-set, 96-set and 94x94-set.
2923 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2925 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2927 (Fmake_charset): Likewise.
2928 (complex_vars_of_mule_charset): Modify the font registry of
2929 `ucs-bmp' not to match `Ethiopic-Unicode'.
2931 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2933 * mule-charset.c (complex_vars_of_mule_charset): Add font
2934 registory of `ucs-bmp'.
2936 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2938 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2939 coded-charsets in `default-coded-charset-priority-list' when
2940 breaking up a character.
2942 * mule-charset.c (Vcharset_latin_viscii): New variable.
2943 (Qlatin_viscii): New variable.
2944 (make_charset): Don't use `decoding_table'.
2945 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2947 (Fset_charset_mapping_table): New implementation.
2948 (syms_of_mule_charset): Add new symbol `latin-viscii'.
2949 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2950 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2951 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2952 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2953 charset `latin_viscii'.
2955 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2956 (CHARSET_TYPE_94X94): Change to 1 from 2.
2957 (CHARSET_TYPE_96): Change to 2 from 1.
2958 (CHARSET_TYPE_128): New macro.
2959 (CHARSET_TYPE_128X128): Change to 5 from 4.
2960 (CHARSET_TYPE_256): New macro.
2961 (CHARSET_TYPE_256X256): Change to 7 from 5.
2962 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2964 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2966 * text-coding.c (char_encode_shift_jis): Refer
2967 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2968 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2970 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2971 (char_byte_table_equal): New function in UTF-2000.
2972 (char_byte_table_hash): New function in UTF-2000.
2973 (char_byte_table_description): New constant in UTF-2000.
2974 (char_byte_table): New type in UTF-2000.
2975 (make_char_byte_table): New function in UTF-2000.
2976 (copy_char_byte_table): New function in UTF-2000.
2977 (make_char_code_table): New macro in UTF-2000.
2978 (get_char_code_table): New function in UTF-2000.
2979 (put_char_code_table): New function in UTF-2000.
2980 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2981 (charset_description): Add setting in UTF-2000.
2982 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2983 `CHARSET_TO_BYTE1_TABLE(cs)'.
2984 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2985 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2986 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2987 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2988 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2989 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2990 `CHARSET_TO_BYTE2_TABLE(cs)'.
2992 * char-ucs.h (char_byte_table): New type.
2993 (XCHAR_BYTE_TABLE): New macro.
2994 (XSETCHAR_BYTE_TABLE): New macro.
2995 (CHAR_BYTE_TABLE_P): New macro.
2996 (GC_CHAR_BYTE_TABLE_P): New macro.
2997 (struct Lisp_Char_Byte_Table): New structure.
2998 (get_char_code_table): New interface.
2999 (Emchar_to_byte_table): Deleted.
3000 (get_byte_from_character_table): Deleted.
3001 (struct Lisp_Charset): Add `encoding_table'; delete
3002 `to_byte1_table' and `to_byte2_table'.
3003 (CHARSET_ENCODING_TABLE): New macro.
3004 (CHARSET_TO_BYTE1_TABLE): Deleted.
3005 (CHARSET_TO_BYTE2_TABLE): Deleted.
3006 (XCHARSET_ENCODING_TABLE): New macro.
3007 (XCHARSET_TO_BYTE1_TABLE): Deleted.
3008 (XCHARSET_TO_BYTE2_TABLE): Deleted.
3010 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3012 * mule-charset.c (syms_of_mule_charset): Delete charset alias
3013 `vietnamese-viscii-*'.
3015 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3017 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3018 (Qvietnamese_viscii_upper): New variable.
3019 (Fdefine_charset_alias): New function.
3020 (syms_of_mule_charset): Add new function `define-charset-alias'.
3021 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3022 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3025 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
3027 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3028 (MAX_CHAR_OBS_94x94): New macro.
3029 (breakup_char_1): Support obsolete XEmacs-UCS private code space
3032 * mule-charset.c (put_byte_from_character_table): Change unit size
3034 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3036 (Fmake_reverse_direction_charset): Modify dummy argument of
3037 `make_charset' for non-UTF-2000 environment.
3039 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3041 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3043 * mule-charset.c (destroy_byte_from_character_table): New macro.
3044 (latin_jisx0201_to_ucs): Deleted.
3045 (latin_iso8859_2_to_ucs): Deleted.
3046 (latin_iso8859_3_to_ucs): Deleted.
3047 (latin_iso8859_4_to_ucs): Deleted.
3048 (latin_iso8859_9_to_ucs): Deleted.
3049 (latin_viscii_lower_to_ucs): Deleted.
3050 (latin_viscii_upper_to_ucs): Deleted.
3051 (mark_charset): Mark `cs->decoding_table'.
3052 (Fcharset_mapping_table): Fix DOC-string.
3053 (Fset_charset_mapping_table): New function.
3054 (syms_of_mule_charset): Add nwe function
3055 `set-charset-mapping-table'.
3056 (complex_vars_of_mule_charset): Don't setup and use
3059 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
3061 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3064 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
3066 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3067 (Vcharset_katakana_jisx0208): New variable.
3068 (Qhiragana_jisx0208): New variable.
3069 (Qkatakana_jisx0208): New variable.
3070 (make_charset): Add new argument `byte_offset'.
3071 (charset_get_byte1): Modify for new coded-charset definition; use
3072 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3073 `XCHARSET_BYTE_OFFSET'.
3074 (Fmake_charset): Modify for `make_charset'.
3075 (Fmake_reverse_direction_charset): Likewise.
3076 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3077 `katakana-jisx0208'.
3078 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3079 `.' in font registry of charset `katakana-jisx0201',
3080 `latin-jisx0201', `vietnamese-viscii-lower' and
3081 `vietnamese-viscii-upper'; modify DOC-string of charset
3082 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3083 registry of charset `japanese-jisx0208' not to use font for JIS
3084 X0208:1990; add new charset `hiragana-jisx0208' and
3085 `katakana-jisx0208'.
3087 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3088 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3089 (struct Lisp_Charset): Add `byte_offset'.
3090 (CHARSET_BYTE_OFFSET): New macro.
3091 (XCHARSET_UCS_MIN): New macro.
3092 (XCHARSET_UCS_MAX): New macro.
3093 (XCHARSET_CODE_OFFSET): New macro.
3094 (XCHARSET_BYTE_OFFSET): New macro.
3095 (MIN_CHAR_HIRAGANA): New macro.
3096 (MAX_CHAR_HIRAGANA): New macro.
3097 (MIN_CHAR_KATAKANA): New macro.
3098 (MAX_CHAR_KATAKANA): New macro.
3099 (MAKE_CHAR): Modify for new coded-charset definition; use
3100 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3101 `XCHARSET_BYTE_OFFSET'.
3103 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3105 * mule-charset.c (CHAR96): Deleted.
3106 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3108 (latin_iso8859_2_to_ucs): Likewise.
3109 (latin_iso8859_3_to_ucs): Likewise.
3110 (latin_iso8859_4_to_ucs): Likewise.
3111 (latin_iso8859_9_to_ucs): Likewise.
3112 (latin_viscii_lower_to_ucs): Likewise.
3113 (latin_viscii_upper_to_ucs): Likewise.
3114 (latin_tcvn5712_to_ucs): Commented out.
3115 (make_charset): Change type of argument `decoding_table' from
3116 <Emchar*> to <Lisp_Object> [vector of characters].
3117 (Fmake_charset): Modify for `make_charset'.
3118 (Fmake_reverse_direction_charset): Likewise.
3119 (Fcharset_mapping_table): New function in UTF-2000.
3120 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3122 (complex_vars_of_mule_charset): Modify for type change of
3123 `*_to_ucs'; modify for `make_charset'.
3125 * char-ucs.h (struct Lisp_Charset): Change type of
3126 `decoding_table' from <Emchar*> to <Lisp_Object>.
3127 (MAKE_CHAR): Modify for new specification of `decoding_table'.
3129 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3131 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3132 error with non-UTF-2000-Mule.
3134 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
3136 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3138 (Vcharset_chinese_cns11643_4): Likewise.
3139 (Vcharset_chinese_cns11643_5): Likewise.
3140 (Vcharset_chinese_cns11643_6): Likewise.
3141 (Vcharset_chinese_cns11643_7): Likewise.
3142 (Qchinese_cns11643_3): Likewise.
3143 (Qchinese_cns11643_4): Likewise.
3144 (Qchinese_cns11643_5): Likewise.
3145 (Qchinese_cns11643_6): Likewise.
3146 (Qchinese_cns11643_7): Likewise.
3147 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3148 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3149 and `chinese-cns11643-7' to lisp/mule/chinese.el.
3150 (complex_vars_of_mule_charset): Likewise.
3152 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3154 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3156 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3157 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3159 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3161 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3163 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3164 (breakup_char_1): Likewise.
3166 * text-coding.c (char_encode_iso2022): Keep designated charsets if
3167 one of them includes the specified character.
3169 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3171 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3173 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3175 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3177 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3179 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3180 definition for non-UTF-2000 Mule.
3181 (latin_iso8859_3_to_ucs): Likewise.
3182 (latin_iso8859_4_to_ucs): Likewise.
3183 (latin_iso8859_9_to_ucs): Likewise.
3184 (latin_jisx0201_to_ucs): Likewise.
3185 (MIN_CHAR_THAI): Likewise.
3186 (MAX_CHAR_THAI): Likewise.
3187 (MIN_CHAR_GREEK): Likewise.
3188 (MAX_CHAR_GREEK): Likewise.
3189 (MIN_CHAR_HEBREW): Likewise.
3190 (MAX_CHAR_HEBREW): Likewise.
3191 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3192 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3193 (MIN_CHAR_CYRILLIC): Likewise.
3194 (MAX_CHAR_CYRILLIC): Likewise.
3196 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3198 * char-ucs.h (breakup_char_1): Use
3199 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3200 thai-tis620 and katakana-jisx0201 area.
3202 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3204 * char-ucs.h (breakup_char_1): Use
3205 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3208 * text-coding.c (reset_encoding_stream): Fixed.
3209 (char_encode_ucs4): Delete `& 255'.
3211 * char-ucs.h (breakup_char_1): Use
3212 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3214 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3216 * file-coding.c (Fmake_coding_system): Don't set up
3217 `codesys->fixed.size'.
3218 (encode_coding_no_conversion): Don't refer
3219 `str->codesys->fixed.size'.
3221 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3223 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3224 (latin_a_char_to_byte1): Deleted.
3225 (latin_a_char_to_byte2): Deleted.
3227 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3229 * mule-charset.c (make_charset): Add new argument `ucs_min',
3230 `ucs_max' and `code_offset'.
3231 (charset_get_byte1): New implementation [delete specific charset
3232 depended implementations].
3233 (Fmake_charset): Modify for `make_charset'.
3234 (Fmake_reverse_direction_charset): Likewise.
3235 (complex_vars_of_mule_charset): Likewise.
3237 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3239 (CHARSET_UCS_MIN): New macro.
3240 (CHARSET_UCS_MAX): New macro.
3241 (CHARSET_CODE_OFFSET): New macro.
3242 (MAKE_CHAR): Delete charset depended definitions [except
3245 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3247 * char-ucs.h (breakup_char_1): Use
3248 `Vdefault_coded_charset_priority_list' for C0-Controls,
3249 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3251 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3253 * char-ucs.h (charset_get_byte1): New function.
3254 (XCHARSET_GET_BYTE1): Deleted.
3255 (charset_get_byte2): New function.
3256 (XCHARSET_GET_BYTE2): Deleted.
3257 (Vdefault_coded_charset_priority_list): New external variable.
3258 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3259 `Vdefault_preferred_coded_charset_list'.
3261 * mule-charset.c (charset_get_byte1): New function.
3262 (charset_get_byte2): New function.
3263 (Vdefault_coded_charset_priority_list): New variable.
3264 (vars_of_mule_charset): Add new variable
3265 `default-coded-charset-priority-list'.
3267 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3269 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3270 (XCHARSET_GET_BYTE2): New inline function.
3271 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3272 `XCHARSET_GET_BYTE2'.
3274 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3276 * mule-charset.c (make_charset): Initialize
3277 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3278 NULL if table is not defined.
3280 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3282 * text-coding.c (char_encode_shift_jis): Use
3283 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3284 `ucs_to_latin_jisx0201'.
3286 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3287 (ucs_to_latin_iso8859_2): Deleted.
3288 (ucs_to_latin_iso8859_3): Deleted.
3289 (ucs_to_latin_iso8859_4): Deleted.
3290 (ucs_to_latin_iso8859_9): Deleted.
3291 (ucs_to_latin_viscii_lower): Deleted.
3292 (ucs_to_latin_viscii_upper): Deleted.
3293 (ucs_to_latin_tcvn5712): Deleted.
3294 (make_charset): Add new argument `decoding_table'; set up
3295 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3296 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3297 `decoding_table' is defined in UTF-2000.
3298 (Fmake_charset): Modify for `make_charset'.
3299 (Fmake_reverse_direction_charset): Likewise.
3300 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3301 and `GENERATE_96_SET'.
3303 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3304 (ucs_to_latin_jisx0201): Deleted.
3305 (latin_iso8859_2_to_ucs): Deleted.
3306 (ucs_to_latin_iso8859_2): Deleted.
3307 (latin_iso8859_3_to_ucs): Deleted.
3308 (ucs_to_latin_iso8859_3): Deleted.
3309 (latin_iso8859_4_to_ucs): Deleted.
3310 (ucs_to_latin_iso8859_4): Deleted.
3311 (latin_iso8859_9_to_ucs): Deleted.
3312 (ucs_to_latin_iso8859_9): Deleted.
3313 (latin_viscii_lower_to_ucs): Deleted.
3314 (ucs_to_latin_viscii_lower): Deleted.
3315 (latin_viscii_upper_to_ucs): Deleted.
3316 (ucs_to_latin_viscii_upper): Deleted.
3317 (struct Lisp_Charset): Renamed `encoding_table' to
3318 `to_byte1_table'; add `to_byte2_table'.
3319 (CHARSET_DECODING_TABLE): New macro.
3320 (CHARSET_TO_BYTE1_TABLE): New macro.
3321 (CHARSET_TO_BYTE2_TABLE): New macro.
3322 (XCHARSET_DECODING_TABLE): New macro.
3323 (XCHARSET_TO_BYTE1_TABLE): New macro.
3324 (XCHARSET_TO_BYTE2_TABLE): New macro.
3325 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3327 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3328 don't use `ucs_to_*' tables.
3330 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3332 * text-coding.c (Fmake_coding_system): Don't set up
3333 `codesys->fixed.size'.
3334 (encode_coding_no_conversion): Use `if' instead of `switch'.
3336 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3338 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3340 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3341 (Fmake_charset): Modify for `make_charset'.
3342 (Fmake_reverse_direction_charset): Likewise.
3343 (complex_vars_of_mule_charset): Likewise.
3345 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3347 * text-coding.c (char_encode_shift_jis): Use table
3348 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3350 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3352 * text-coding.c (text_encode_generic): Use `if' instead of
3354 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3357 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3359 * text-coding.c (encode_coding_sjis): Deleted.
3360 (char_encode_shift_jis): New function.
3361 (char_finish_shift_jis): New function.
3362 (reset_encoding_stream): Set up `encode_char' and `finish' for
3363 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3364 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3365 (char_encode_utf8): Treat `eol_type'.
3367 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3369 * file-coding.c (decode_coding_iso2022): Use
3370 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3372 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3374 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3377 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3379 * char-lb.h (CHAR_COLUMNS): New macro.
3381 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3383 * text-coding.c (char_encode_ucs4): New function.
3384 (char_finish_ucs4): New function.
3385 (encode_coding_ucs4): Deleted.
3386 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3387 (text_encode_generic): Delete local variable `charset' and `half'.
3388 (ucs_to_mule_table): Deleted.
3389 (mule_to_ucs_table): Deleted.
3390 (Fset_ucs_char): Deleted.
3391 (ucs_to_char): Deleted.
3392 (Fucs_char): Deleted.
3393 (Fset_char_ucs): Deleted.
3394 (Fchar_ucs): Deleted.
3395 (decode_ucs4): Deleted.
3396 (mule_char_to_ucs4): Deleted.
3397 (encode_ucs4): Deleted.
3398 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3399 (decode_coding_utf8): Likewise.
3400 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3401 (char_encode_iso2022): Fixed.
3402 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3403 `Fset_char_ucs' and `Fchar_ucs'.
3404 (complex_vars_of_file_coding): Don't initialize
3405 `ucs_to_mule_table'.
3407 * objects-tty.c (tty_initialize_font_instance): Don't use
3410 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3413 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3414 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3416 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3417 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3418 (emchar_string_displayed_columns): Likewise.
3420 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3421 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3422 (string_column_at_point): Likewise.
3423 (Fmove_to_column): Likewise.
3425 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3426 `encoding_table' and `decoding_table'.
3427 (CHARSET_REP_BYTES): Deleted.
3428 (XCHARSET_REP_BYTES): Deleted.
3429 (XCHARSET_COLUMNS): Deleted.
3430 (CHAR_COLUMNS): New macro.
3431 (lookup_composite_char): Deleted unconditionally.
3432 (composite_char_string): Likewise.
3434 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3436 * char-ucs.h (Emchar_to_byte_table): New type.
3437 (get_byte_from_character_table): New function interface.
3438 (Vcharset_latin_jisx0201): New variable.
3439 (latin_jisx0201_to_ucs): New variable.
3440 (ucs_to_latin_jisx0201): New variable.
3441 (Vcharset_latin_iso8859_2): New variable.
3442 (latin_iso8859_2_to_ucs): New variable.
3443 (ucs_to_latin_iso8859_2): New variable.
3444 (Vcharset_latin_iso8859_3): New variable.
3445 (latin_iso8859_3_to_ucs): New variable.
3446 (ucs_to_latin_iso8859_3): New variable.
3447 (Vcharset_latin_iso8859_4): New variable.
3448 (latin_iso8859_4_to_ucs): New variable.
3449 (ucs_to_latin_iso8859_4): New variable.
3450 (Vcharset_latin_iso8859_9): New variable.
3451 (latin_iso8859_9_to_ucs): New variable.
3452 (ucs_to_latin_iso8859_9): New variable.
3453 (Vcharset_latin_viscii_lower): New variable.
3454 (latin_viscii_lower_to_ucs): New variable.
3455 (ucs_to_latin_viscii_lower): New variable.
3456 (Vcharset_latin_viscii_upper): New variable.
3457 (latin_viscii_upper_to_ucs): New variable.
3458 (ucs_to_latin_viscii_upper): New variable.
3459 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3460 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3461 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3462 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3463 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3464 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3465 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3466 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3467 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3468 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3470 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3471 (Vcharset_latin_viscii_upper): New variable.
3472 (make_byte_from_character_table): New function.
3473 (put_byte_from_character_table): New function.
3474 (get_byte_from_character_table): New function.
3475 (CHAR96): New macro.
3476 (ucs_to_latin_jisx0201): New variable.
3477 (latin_jisx0201_to_ucs): New variable.
3478 (ucs_to_latin_iso8859_2): New variable.
3479 (latin_iso8859_2_to_ucs): New variable.
3480 (ucs_to_latin_iso8859_3): New variable.
3481 (latin_iso8859_3_to_ucs): New variable.
3482 (ucs_to_latin_iso8859_4): New variable.
3483 (latin_iso8859_4_to_ucs): New variable.
3484 (ucs_to_latin_iso8859_9): New variable.
3485 (latin_iso8859_9_to_ucs): New variable.
3486 (ucs_to_latin_viscii_lower): New variable.
3487 (latin_viscii_lower_to_ucs): New variable.
3488 (ucs_to_latin_viscii_upper): New variable.
3489 (latin_viscii_upper_to_ucs): New variable.
3490 (ucs_to_latin_tcvn5712): New variable.
3491 (latin_tcvn5712_to_ucs): New variable.
3492 (Qlatin_viscii_lower): New variable.
3493 (Qlatin_viscii_upper): New variable.
3494 (syms_of_mule_charset): Set up new symbol
3495 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3496 (complex_vars_of_mule_charset): Set up new charset
3497 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3498 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3499 `ucs_to_<CHARSET>' tables.
3501 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3503 * text-coding.c: New file.
3505 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3507 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3509 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3510 (MAKE_CHAR): Modify for `ucs-bmp'.
3511 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3512 non-MULE characters of BMP.
3514 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3516 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3519 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3522 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3523 - Include character.h for `CHAR_ASCII_P'.
3525 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3527 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3528 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3530 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3531 (BYTE_C0_P): Likewise.
3532 (BYTE_C1_P): Likewise.
3533 (Lstream_get_emchar_1): Likewise.
3534 (Lstream_fput_emchar): Likewise.
3535 (Lstream_funget_emchar): Likewise.
3536 (copy_internal_to_external): Likewise.
3537 (copy_external_to_internal): Likewise.
3539 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3540 (BYTE_C0_P): Likewise.
3541 (BYTE_C1_P): Likewise.
3542 (Lstream_get_emchar_1): Likewise.
3543 (Lstream_fput_emchar): Likewise.
3544 (Lstream_funget_emchar): Likewise.
3545 (copy_internal_to_external): Likewise.
3546 (copy_external_to_internal): Likewise.
3548 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3549 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3551 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3552 (BYTE_ASCII_P): Moved to mb-1byte.h.
3554 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3556 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3558 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3559 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3560 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3561 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3562 (VALIDATE_CHARPTR_FORWARD): Likewise.
3563 (simple_charptr_emchar): Moved to mb-multibyte.h.
3564 (simple_set_charptr_emchar): Likewise.
3565 (simple_charptr_copy_char): Likewise.
3566 (non_ascii_charptr_emchar): Likewise.
3567 (non_ascii_set_charptr_emchar): Likewise.
3568 (non_ascii_charptr_copy_char): Likewise.
3569 (charptr_emchar): Moved to mb-*byte.h.
3570 (set_charptr_emchar): Likewise.
3571 (charptr_copy_char): Likewise.
3573 * mb-1byte.h, mb-multibyte.h: New files.
3575 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3577 * mb-utf-8.h (MULTIBYTE): New macro.
3578 (MAX_EMCHAR_LEN): Moved from buffer.h.
3579 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3581 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3583 * mb-lb.h, multibyte.h: New files.
3585 * char-1byte.h (Charset_ID): Moved from buffer.h.
3586 (MIN_LEADING_BYTE): Likewise.
3587 (LEADING_BYTE_ASCII): Likewise.
3588 (NUM_LEADING_BYTES): Likewise.
3589 (CHARSETP): Likewise.
3590 (CHARSET_BY_LEADING_BYTE): Likewise.
3591 (XCHARSET_LEADING_BYTE): Likewise.
3592 (XCHARSET_GRAPHIC): Likewise.
3593 (XCHARSET_COLUMNS): Likewise.
3594 (XCHARSET_DIMENSION): Likewise.
3595 (CHAR_CHARSET): Likewise.
3596 (CHAR_LEADING_BYTE): Likewise.
3597 (BREAKUP_CHAR): Likewise.
3598 (Vcharset_ascii): Likewise.
3600 * buffer.h: Include multibyte.h unconditionally.
3601 (VALID_CHARPTR_P): Moved to multibyte.h.
3602 (ASSERT_VALID_CHARPTR): Likewise.
3603 (REAL_INC_CHARPTR): Likewise.
3604 (REAL_INC_CHARBYTIND): Likewise.
3605 (REAL_DEC_CHARPTR): Likewise.
3606 (INC_CHARPTR): Likewise.
3607 (INC_CHARBYTIND): Likewise.
3608 (DEC_CHARPTR): Likewise.
3609 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3610 (VALIDATE_CHARPTR_FORWARD): Likewise.
3611 (charptr_n_addr): Likewise.
3612 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3613 (simple_charptr_emchar): Moved to multibyte.h.
3614 (simple_set_charptr_emchar): Likewise.
3615 (simple_charptr_copy_char): Likewise.
3616 (non_ascii_charptr_emchar): Likewise.
3617 (non_ascii_set_charptr_emchar): Likewise.
3618 (non_ascii_charptr_copy_char): Likewise.
3619 (charptr_emchar): Likewise.
3620 (set_charptr_emchar): Likewise.
3621 (charptr_copy_char): Likewise.
3622 (charptr_emchar_n): Likewise.
3623 (Charset_ID): Moved to char-1byte.h.
3624 (Vcharset_ascii): Likewise.
3625 (CHAR_CHARSET): Likewise.
3626 (CHAR_LEADING_BYTE): Likewise.
3627 (LEADING_BYTE_ASCII): Likewise.
3628 (NUM_LEADING_BYTES): Likewise.
3629 (MIN_LEADING_BYTE): Likewise.
3630 (CHARSETP): Likewise.
3631 (CHARSET_BY_LEADING_BYTE): Likewise.
3632 (XCHARSET_LEADING_BYTE): Likewise.
3633 (XCHARSET_GRAPHIC): Likewise.
3634 (XCHARSET_COLUMNS): Likewise.
3635 (XCHARSET_DIMENSION): Likewise.
3636 (BREAKUP_CHAR): Likewise.
3638 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3640 * character.h: Add document about interface for characters.
3642 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3643 (MAKE_CHAR): Delete comment about
3644 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3645 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3646 (BREAKUP_CHAR): Modify name of arguments.
3647 (CHAR_CHARSET): Modify name of argument.
3649 * buffer.h: Delete document about Emchar accessors.
3651 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3653 * character.h (CHAR_INTP): Moved from buffer.h
3654 (CHAR_OR_CHAR_INTP): Likewise.
3655 (XCHAR_OR_CHAR_INT): Likewise.
3656 (CHECK_CHAR_COERCE_INT): Likewise.
3658 * buffer.h (CHAR_INTP): Moved to character.h
3659 (CHAR_OR_CHAR_INTP): Likewise.
3660 (XCHAR_OR_CHAR_INT): Likewise.
3661 (CHECK_CHAR_COERCE_INT): Likewise.
3663 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3666 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3667 - Include char-1byte.h, char-lb.h or char-ucs.h.
3669 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3671 * buffer.h: Include character unconditionally.
3672 (valid_char_p): Moved to char-*.h.
3673 (non_ascii_valid_char_p): Moved to char-lb.h.
3675 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3677 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3679 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3680 in UTF-2000 because it is not ported yet and not to use
3681 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3682 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3683 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3685 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3686 (CHAR_ASCII_P): Moved from character.h.
3688 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3689 (CHAR_ASCII_P): Likewise.
3690 (CHAR_FIELD1_MASK): Deleted.
3691 (CHAR_FIELD2_MASK): Deleted.
3692 (CHAR_FIELD3_MASK): Deleted.
3693 (MAX_CHAR_BASIC_LATIN): New macro.
3694 (CHAR_FIELD1): Deleted.
3695 (CHAR_FIELD2_INTERNAL): Deleted.
3696 (CHAR_FIELD3_INTERNAL): Deleted.
3697 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3698 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3699 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3700 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3701 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3702 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3703 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3704 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3705 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3706 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3707 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3708 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3709 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3710 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3711 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3712 (MIN_CHAR_COMPOSITION): Deleted.
3713 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3714 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3716 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
3718 * buffer.h: Include mb-utf-8.h in UTF-2000.
3720 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3722 * mb-utf-8.h: New file.
3724 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
3726 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3729 * mule-charset.h, buffer.h (Charset_ID): New type.
3731 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3733 * mule-canna.c (c2mu): Use `MAKE_CHAR',
3734 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3735 instead of `MULE_CHAR_PRIVATE_OFFSET',
3736 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3737 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3738 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3740 * character.h (Vcharset_japanese_jisx0212): New variable
3743 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3745 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3746 (charset_by_attributes): Delete array about direction.
3747 (latin_a_char_to_charset): New variable in UTF-2000.
3748 (latin_a_char_to_byte1): New variable in UTF-2000.
3749 (latin_a_char_to_byte2): New variable in UTF-2000.
3750 (Qucs_bmp): New variable.
3751 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3753 (next_allocated_2_byte_leading_byte): Likewise.
3754 (non_ascii_set_charptr_emchar): Likewise.
3755 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3756 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3757 `charset_by_attributes'.
3758 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3759 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3760 and `CHARSET_BY_LEADING_BYTE'.
3761 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3762 `utf-2000-version' to `vars_of_mule_charset'.
3763 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3764 define `leading-code-private-11' in UTF-2000; move setting of
3765 `utf-2000-version' from `syms_of_mule_charset'.
3766 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3769 * character.h (Charset_ID): New type.
3770 (LEADING_BYTE_UCS_BMP): New macro.
3771 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3772 (CHARSET_ID_OFFSET_94): New macro.
3773 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3774 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3775 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3777 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3778 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3779 (CHARSET_ID_OFFSET_96): New macro.
3780 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3781 CHARSET_ID_OFFSET_96 and final-byte.
3782 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3783 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3784 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3785 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3786 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3787 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3788 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3789 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3790 (LEADING_BYTE_THAI_TIS620): Likewise.
3791 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3792 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3793 (CHARSET_ID_OFFSET_94x94): New macro.
3794 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3795 CHARSET_ID_OFFSET_94x94 and final-byte.
3796 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3797 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3798 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3799 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3800 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3801 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3802 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3803 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3804 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3805 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3806 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3807 (CHARSET_TYPE_128X128): New macro.
3808 (CHARSET_TYPE_256X256): New macro.
3809 (XCHARSET_PRIVATE_P): Delete unconditionally.
3810 (charset_by_attributes): Delete array about direction.
3811 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3812 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3813 (MIN_CHAR_94): New macro.
3814 (MAX_CHAR_94): New macro.
3815 (MIN_CHAR_96): New macro.
3816 (MAX_CHAR_96): New macro.
3817 (MIN_CHAR_94x94): New macro.
3818 (MAX_CHAR_94x94): New macro.
3819 (MIN_CHAR_96x96): New macro.
3820 (MAX_CHAR_96x96): New macro.
3821 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3822 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3823 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3825 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3826 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3827 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3828 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3829 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3830 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3831 `XCHARSET_LEADING_BYTE' to make code-point.
3832 (latin_a_char_to_charset): New variable.
3833 (latin_a_char_to_byte1): New variable.
3834 (latin_a_char_to_byte2): New variable.
3835 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3836 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3837 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3839 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3840 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3841 (find_charsets_in_emchar_string): Likewise.
3842 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3844 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3846 (decode_coding_iso2022): Likewise.
3848 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3851 * redisplay.c (redisplay_text_width_emchar_string): Use
3852 `Charset_ID' instead of `unsigned char'.
3853 (redisplay_frame_text_width_string): Likewise.
3855 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3858 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3859 instead of `unsigned char'.
3860 (face_cachel_charset_font_metric_info): Likewise.
3862 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3863 (get_non_ascii_char_table_value): Likewise.
3864 (get_char_table): Likewise.
3865 (put_char_table): Likewise.
3866 (map_over_other_charset): Likewise.
3867 (map_char_table): Likewise.
3869 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3870 instead of `unsigned char'.
3872 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
3874 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3875 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3877 * mule-charset.c (leading_code_private_11): Don't define in
3880 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3881 in UTF-2000 because it is not ported yet and not to use
3882 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3884 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
3886 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3888 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3890 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3893 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3894 of unsigned char to store leading-byte.
3896 * chartab.c (get_non_ascii_char_table_value): Don't use
3897 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3899 * file-coding.c (encode_coding_big5): Delete bogus implementation
3902 * character.h (LEADING_BYTE_*): Delete definition for
3904 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3905 (LEADING_BYTE_PREFIX_P): Deleted.
3906 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3907 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3908 (BUFBYTE_LEADING_BYTE_P): Deleted.
3909 (CHARSET_PRIVATE_P): Deleted unconditionally.
3910 (rep_bytes_by_first_byte): Deleted unconditionally.
3911 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3912 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3913 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3914 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3915 (CHAR_FIELD2): Deleted.
3916 (CHAR_FIELD3): Deleted.
3917 (MAKE_CHAR): Delete definition for non-UTF-2000.
3918 (BREAKUP_CHAR_1_UNSAFE): Deleted.
3919 (breakup_char_1): New implementation.
3920 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3921 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3923 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3925 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3928 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3930 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3931 (CHARSET_PRIVATE_P): Likewise.
3932 (XCHARSET_PRIVATE_P): Likewise.
3933 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3935 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3937 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3939 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3941 * character.h (LEADING_BYTE_*): Changed in UTF2000.
3942 (NUM_LEADING_BYTES): Changed from 128 to 256.
3943 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3944 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3946 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3948 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3950 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3951 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3952 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3953 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3954 (Qchinese_cns11643_3): New variable in UTF2000.
3955 (Qchinese_cns11643_4): New variable in UTF2000.
3956 (Qchinese_cns11643_5): New variable in UTF2000.
3957 (Qchinese_cns11643_6): New variable in UTF2000.
3958 (Qchinese_cns11643_7): New variable in UTF2000.
3959 (syms_of_mule_charset): Define `chinese-cns11643-3',
3960 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3961 and `chinese-cns11643-7' in UTF2000.
3962 (vars_of_mule_charset): Initialize
3963 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3965 (complex_vars_of_mule_charset): Setup charset
3966 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3967 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3969 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3971 * mule-charset.c: Move setting for `leading-code-private-11' from
3972 `syms_of_mule_charset' to `vars_of_mule_charset'.
3974 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3976 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3977 and `NUM_LEADING_BYTES' in assert.
3979 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3981 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3983 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3984 `NUM_LEADING_BYTES' instead of 128.
3986 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3988 * mule-charset.h (charset_by_leading_byte): Use
3989 `NUM_LEADING_BYTES' instead of 128.
3990 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3992 * mule-charset.c (charset_by_leading_byte): Use
3993 `NUM_LEADING_BYTES' instead of 128.
3994 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3996 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3999 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4001 * mule-charset.c (syms_of_mule_charset): Update to
4004 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4006 * file-coding.c (encode_coding_sjis): New implementation for
4007 UTF2000. (decode_coding_sjis): Ditto.
4009 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4011 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4012 Don't define in UTF2000.
4014 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4017 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4018 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4021 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4023 * config.h.in (CHAR_IS_UCS4): New macro.
4025 * mule-charset.c (rep_bytes_by_first_byte): Modify for
4026 conventional MULE representation.
4027 (syms_of_mule_charset): Update to 0.3 (Imamiya).
4029 * mule-charset.h: Reverted to original.
4031 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4032 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4033 "mule-charset.h" if CHAR_IS_UCS4 is defined.
4035 * character.h: New file.
4037 * file-coding.c (Fmake_coding_system): Set 1 to
4038 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4040 (encode_coding_no_conversion): New implementation for UTF2000.
4042 * file-coding.h (struct Lisp_Coding_System): Add new member
4045 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
4047 * file-coding.c (decode_coding_iso2022): Code-point arguments of
4048 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4049 (encode_coding_iso2022): New implementation for UTF2000.
4051 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4053 * mule-canna.c (c2mu): New implementation for UTF2000.
4056 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4058 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4060 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4062 * file-coding.c (reset_encoding_stream): Set 0 to
4063 `str->iso2022.current_char_boundary' in UTF2000.
4064 (encode_utf8): Don't define in UTF2000.
4065 (encode_coding_utf8): New implementation for UTF-8 representation
4067 (complex_vars_of_file_coding): Define coding-system `utf-8'.
4069 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4071 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4073 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4075 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4077 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4079 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4080 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4081 as UTF-8 in UTF2000.
4082 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4083 (non_ascii_valid_char_p): Don't define in UTF2000.
4084 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4085 (Lstream_get_emchar_1): Likewise.
4086 (utf-2000-version): New variable in UTF2000.
4088 * lread.c (read_escape): Add new reader `u'.
4090 * insdel.c (three_to_one_table): Don't define in UTF2000.
4091 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4092 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4094 (bytind_to_bufpos_func): Likewise.
4095 (buffer_mule_signal_inserted_region): Likewise.
4096 (vars_of_insdel): Don't initialize `three_to_one_table'.
4097 (init_buffer_text): Use `buf->text->mule_size' instead of
4098 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4101 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4102 UTF-8 representation in UTF2000.
4103 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4104 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4105 (decode_coding_iso2022): Don't define local variable `lb' in
4106 UTF2000; don't use LEADING_BYTE in UTF2000; use
4107 `DECODE_ADD_UCS_CHAR' in UTF2000.
4108 (convert_to_external_format): Decode as UTF-8 in UTF2000.
4110 * config.h.in (UTF2000): New macro.
4112 * buffer.h (struct buffer_text): Add new member `mule_size' and
4113 don't add `mule_shifter' and `mule_three_p' in UTF2000.
4114 (valid_char_p): Return always 1 in UTF2000.
4115 (MAX_EMCHAR_LEN): 6 in UTF2000.
4116 (three_to_one_table): Don't define in UTF2000.
4117 (real_bufpos_to_bytind): Modify for UTF-8 representation in
4119 (real_bytind_to_bufpos): Likewise.
4121 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4123 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4125 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4126 representation change.
4127 (Vutf_2000_version): New variable.
4128 (leading_code_private_11): New variable.
4129 (syms_of_mule_charset): Add new variables `utf-2000-version' and
4130 `leading-code-private-11'.
4132 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4133 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4134 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4135 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4136 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4137 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4138 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4139 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4140 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4141 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4142 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4143 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4144 (MIN_CHAR_GREEK): New macro.
4145 (MAX_CHAR_GREEK): New macro.
4146 (MIN_CHAR_CYRILLIC): New macro.
4147 (MAX_CHAR_CYRILLIC): New macro.
4148 (MIN_CHAR_HEBREW): New macro.
4149 (MAX_CHAR_HEBREW): New macro.
4150 (MIN_CHAR_THAI): New macro.
4151 (MAX_CHAR_THAI): New macro.
4152 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4153 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4154 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4155 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4156 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4157 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4158 (CHAR_FIELD2): New inline function.
4159 (CHAR_FIELD3): New inline function.
4160 (MULE_CHAR_PRIVATE_OFFSET): New macro.
4161 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4162 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4163 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4164 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4165 (MIN_CHAR_COMPOSITION): Likewise.
4166 (CHAR_LEADING_BYTE): Modified for character representation change.
4167 (MAKE_CHAR): Likewise.
4169 * lisp.h (Vcharset_latin_iso8859_1): New variable.
4170 (Vcharset_greek_iso8859_7): Likewise.
4171 (Vcharset_cyrillic_iso8859_5): Likewise.
4172 (Vcharset_hebrew_iso8859_8): Likewise.
4173 (Vcharset_thai_tis620): Likewise.
4174 (Vcharset_katakana_jisx0201): Likewise.
4176 2001-02-08 Martin Buchholz <martin@xemacs.org>
4178 * XEmacs 21.2.44 "Thalia" is released.
4180 2001-02-06 Martin Buchholz <martin@xemacs.org>
4182 Fixes crashes in kill-emacs on some systems.
4183 * process-unix.c (unix_kill_child_process):
4184 It's OK for kill() to fail with ESRCH.
4186 2001-02-07 Martin Buchholz <martin@xemacs.org>
4188 Contortions to make .gdbinit tricks work on most systems.
4189 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4190 * alloc.c (dbg_valmask): Make non-const.
4191 * alloc.c (dbg_typemask): Make non-const.
4192 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4193 * alloc.c (dbg_valbits): Make non-const.
4194 * alloc.c (dbg_gctypebits): Make non-const.
4195 * .gdbinit (decode_object): Make it work with AIX cc.
4197 2001-02-06 Martin Buchholz <martin@xemacs.org>
4199 * elhash.c (make_general_lisp_hash_table):
4200 Use simpler and more efficient calloc to clear entries.
4202 2001-02-07 Martin Buchholz <martin@xemacs.org>
4204 * window.c (window_scroll): Work around an AIX C compiler bug.
4205 Fixes 'scroll-up' does nothing problem with xlC.
4207 2001-02-05 Martin Buchholz <martin@xemacs.org>
4209 * .gdbinit: Remove obsolete comment.
4211 2001-01-31 Mike Alexander <mta@arbortext.com>
4213 * select.c (Fown_selection_internal): Set owned_p for device
4216 2001-02-01 Martin Buchholz <martin@xemacs.org>
4219 "not" cannot be used as a macro name as it is an operator in C++
4220 * config.h.in: Stop #defining `not'.
4221 * chartab.c (check_category_char): not ==> not_p
4222 * chartab.h: Likewise.
4223 * regex.c (re_match_2_internal): Likewise.
4225 2001-02-02 Martin Buchholz <martin@xemacs.org>
4227 * lisp-disunion.h: Fix up comments.
4229 2001-01-31 Martin Buchholz <martin@xemacs.org>
4231 * keymap.c (define_key_check_and_coerce_keysym):
4233 Support mouse-6 and mouse-7 bindings in the obvious way.
4235 2001-02-01 Martin Buchholz <martin@xemacs.org>
4237 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4239 2001-01-30 Martin Buchholz <martin@xemacs.org>
4241 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4242 Previous patch missed DEFVAR_INT_MAGIC.
4243 Make sure future DEFVAR_foo use correct types.
4244 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4245 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4246 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4247 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4248 * (DEFVAR_INT): Likewise.
4249 * redisplay.c (vertical_clip): Should be of type Fixnum.
4250 * redisplay.c (horizontal_clip): Likewise.
4251 * lisp.h (dump_add_opaque_int): New.
4252 (dump_add_opaque_fixnum): New.
4254 2001-01-29 Andy Piper <andy@xemacs.org>
4256 * glyphs-widget.c (check_valid_int_or_function): allow symbols
4257 since they can be eval'ed
4259 2001-01-29 Martin Buchholz <martin@xemacs.org>
4261 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4262 Oops, XEmacs redefines `class'. Use `typename' instead.
4264 2001-01-28 Martin Buchholz <martin@xemacs.org>
4266 * dumper.c: Fix C++ compile errors.
4268 2001-01-29 Martin Buchholz <martin@xemacs.org>
4270 * tparam.c: Use correct prototypes.
4272 2001-01-28 Martin Buchholz <martin@xemacs.org>
4274 * sysproc.h: #include util.h for NetBSD's openpty.
4276 2001-01-27 Martin Buchholz <martin@xemacs.org>
4278 More 64-bit correctness.
4279 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4280 Use a typedef `fixnum' for the type used for DEFVAR_INT.
4282 This finally finishes the 64-bit SGI port.
4283 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4284 * symbols.c: Fix up comments and type casts.
4285 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4286 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4287 * symeval.h (Fixnum): New type.
4288 * symeval.h (symbol_value_type): Fix up comment.
4304 * mule-canna.c: A million DEFVAR_INTs here...
4305 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4318 s/int/Fixnum/g in DEFVAR_INT declarations.
4320 2001-01-26 Martin Buchholz <martin@xemacs.org>
4322 Port pdump to SGI alignment-sensitive environment.
4323 Lisp Object sizeof methods now return aligned sizes. Rely on that.
4324 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4326 Define and use aligned reading and writing macros.
4327 Use buffered stdio instead of posix i/o for faster dumping.
4328 Eliminate kludgy 256 byte space for header.
4329 Read and write from dump file using structs for alignment safety.
4330 * dumper.c (pdump_align_stream): New.
4331 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4332 * dumper.c (PDUMP_READ_ALIGNED): New.
4333 * dumper.c (PDUMP_WRITE_ALIGNED): New.
4334 * dumper.c (pdump_static_Lisp_Object): New struct.
4335 * dumper.c (pdump_static_pointer): New struct.
4336 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4337 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4338 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4339 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4341 * dumper.c (pdump_backtrace):
4342 * dumper.c (pdump_get_indirect_count):
4343 * dumper.c (pdump_register_object):
4344 * dumper.c (pdump_register_struct):
4345 * dumper.c (pdump_reloc_one):
4346 * dumper.c (pdump_scan_by_alignment):
4347 * dumper.c (pdump_dump_from_root_struct_ptrs):
4348 * dumper.c (pdump_dump_opaques):
4349 * dumper.c (pdump_dump_rtables):
4350 * dumper.c (pdump_dump_from_root_objects):
4352 * dumper.c (pdump_load_finish):
4353 Use aligned reading and writing.
4355 * dumper.c (pdump_free): Make static.
4356 * dumper.c (pdump_hFile): Likewise.
4357 * dumper.c (pdump_hMap): Likewise.
4359 2001-01-26 Martin Buchholz <martin@xemacs.org>
4361 * XEmacs 21.2.43 "Terspichore" is released.
4363 2001-01-25 Martin Buchholz <martin@xemacs.org>
4365 Type fiddling for window_config.saved_windows_count
4366 * window.c (struct window_config):
4367 Make saved_windows_count member unsigned.
4368 * window.c (sizeof_window_config_for_n_windows):
4369 Make parameter unsigned.
4370 * window.c (mark_window_config):
4371 * window.c (window_config_equal):
4372 * window.c (free_window_configuration):
4373 * window.c (Fset_window_configuration):
4374 * window.c (count_windows):
4375 * window.c (Fcurrent_window_configuration):
4376 * window.c (reinit_vars_of_window):
4377 Update all callers and users.
4379 2001-01-25 Martin Buchholz <martin@xemacs.org>
4381 Alignment correctness for flexible arrays.
4382 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4383 Make alignment-correct. Add interesting comments.
4384 * alloc.c (size_vector):
4385 * alloc.c (make_vector_internal):
4386 * alloc.c (make_bit_vector_internal):
4387 * alloc.c (sweep_bit_vectors_1):
4388 * fns.c (size_bit_vector):
4389 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4390 * window.c (sizeof_window_config_for_n_windows):
4391 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4393 2001-01-24 Martin Buchholz <martin@xemacs.org>
4395 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4397 2001-01-23 Andy Piper <andy@xemacs.org>
4399 * select.c (Fown_selection_internal): pass owned_p
4401 * select-msw.c (mswindows_own_selection): New Signature.
4403 * console.h (struct console_methods): add owned_p to
4406 * select-x.c (x_own_selection): pass owned_p
4407 (hack_motif_clipboard_selection): use owned_p
4408 (vars_of_select_x): new variable -
4409 x_selection_strict_motif_ownership.
4411 2001-01-23 Martin Buchholz <martin@xemacs.org>
4413 * specifier.h (specifier_data_offset): Remove pointless parens.
4414 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4416 2001-01-24 Martin Buchholz <martin@xemacs.org>
4418 Make Lisp_Object sizeof methods be alignment-correct.
4419 pdump must restore objects to the same alignment as the C compiler
4420 assumes. It really matters on SGIs.
4421 * lstream.c (aligned_sizeof_lstream): New.
4422 (sizeof_lstream): Use aligned_sizeof_lstream.
4423 (Lstream_new): Likewise.
4424 * opaque.c (aligned_sizeof_opaque): New.
4425 (sizeof_opaque): Use aligned_sizeof_opaque.
4426 (make_opaque): Likewise.
4427 * specifier.c (aligned_sizeof_specifier): New.
4428 (sizeof_specifier): Use aligned_sizeof_specifier.
4429 (make_specifier_internal): Likewise.
4431 2001-01-23 Martin Buchholz <martin@xemacs.org>
4433 * lstream.h (struct lstream): Use max_align_t for trailing data.
4434 * specifier.h (struct Lisp_Specifier): Likewise.
4436 2001-01-22 Martin Buchholz <martin@xemacs.org>
4438 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4439 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4440 (CCL_SUSPEND): Likewise.
4441 (CCL_INVALID_CMD): Likewise.
4442 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4443 (ccl_driver): Likewise.
4444 (CCL_WRITE_CHAR): Macro hygiene.
4445 (CCL_WRITE_STRING): Macro hygiene.
4447 2001-01-22 Martin Buchholz <martin@xemacs.org>
4449 Port "portable" dumper to SunOS 4 and HP-UX.
4450 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4451 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4452 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4454 2001-01-22 Martin Buchholz <martin@xemacs.org>
4456 * lisp.h (ALIGNOF): A better definition for C++.
4458 2001-01-20 Martin Buchholz <martin@xemacs.org>
4461 Fix printf warnings: int format, long int arg.
4462 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4463 (PUSH_FAILURE_POINT): Use correct printf formats.
4464 (POP_FAILURE_POINT): Use correct printf formats.
4465 Use do {...} while (0)
4467 2001-01-20 Martin Buchholz <martin@xemacs.org>
4469 * XEmacs 21.2.42 "Poseidon" is released.
4471 2001-01-20 Martin Buchholz <martin@xemacs.org>
4473 * console-x.h: typo fix du jour. Remove #if 0'ed code.
4475 2001-01-19 Martin Buchholz <martin@xemacs.org>
4477 De-kludgify FIXED_TYPE free list frobbing.
4478 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4479 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4480 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4481 * alloc.c (Lisp_Free): New pseudo lisp object definition.
4482 * alloc.c (LRECORD_FREE_P): New.
4483 * alloc.c (MARK_LRECORD_AS_FREE): New.
4484 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4485 * alloc.c (STRUCT_FREE_P): Deleted.
4486 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4487 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4488 * alloc.c (STRING_CHARS_FREE_P): New.
4489 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4490 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4491 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4492 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4493 * alloc.c (resize_string): Use new definitions.
4494 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4495 * alloc.c (verify_string_chars_integrity): Use new definitions.
4496 * alloc.c (compact_string_chars): Use new definitions.
4497 * alloc.c: Update monster comments.
4498 * lrecord.h (lrecord_type): Add some new lrecord types for
4501 2001-01-18 Martin Buchholz <martin@xemacs.org>
4503 Improve alignment hackery.
4504 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4505 (max_align_t): Moved from opaque.h - general purpose.
4506 (ALIGN_PTR): Use size_t, not long.
4507 * opaque.h (max_align_t): Move to lisp.h.
4509 2001-01-18 Norbert Koch <nk@LF.net>
4511 * gui.h: Fix and add prototypes to fix build problems.
4513 2001-01-18 Martin Buchholz <martin@xemacs.org>
4515 temacs is going away, so `dump-temacs' is now a bad name.
4516 * .dbxrc (dump-temacs): Rename to `dmp'.
4517 * .gdbinit (dump-temacs): Rename to `dmp'.
4519 2001-01-17 Andy Piper <andy@xemacs.org>
4521 * glyphs.c (print_image_instance): comment to make martin happy.
4523 * glyphs-x.c (x_redisplay_widget): update faces after a frame
4526 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4528 (mswindows_tab_control_redisplay): warning suppression.
4530 * glyphs-widget.c (widget_update): re-write to cope with updated
4532 (widget_instantiate): use new gui_item functions.
4533 (tab_control_update): deleted.
4534 (progress_gauge_update): deleted.
4535 (image_instantiator_progress_guage): take out update reference.
4536 (image_instantiator_tree_view): ditto.
4537 (image_instantiator_tab_control): ditto.
4539 * gui.c (widget_gui_parse_item_keywords): new function. Do things
4541 (gui_item_add_keyval_pair): re-write to cope with descriptors and
4542 return whether anything was changed.
4543 (update_gui_item_keywords): as it sounds.
4545 * gui.h: declare widget_gui_parse_item_keywords.
4547 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4548 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4550 2001-01-17 Martin Buchholz <martin@xemacs.org>
4552 * XEmacs 21.2.41 "Polyhymnia" is released.
4554 2001-01-16 Didier Verna <didier@xemacs.org>
4556 * glyphs.c (image_instantiate): don't use fallbacks when
4557 instantiating a face's background pixmap by inheritance.
4559 2001-01-14 Mike Sperber <mike@xemacs.org>
4561 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4562 Conditionalize accordingly.
4564 2001-01-16 Martin Buchholz <martin@xemacs.org>
4566 * dumper.c (pdump_file_get): Fix a compiler warning.
4568 2001-01-15 Martin Buchholz <martin@xemacs.org>
4570 Make Purify happy when pdumping.
4571 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4572 iniitalizing all bits of new lisp object memory.
4573 * symbols.c (Fmake_local_variable): Likewise.
4574 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4575 * symbols.c (Fdefvaralias): Likewise.
4576 * mule-charset.c (vars_of_mule_charset): Likewise.
4578 2001-01-15 Martin Buchholz <martin@xemacs.org>
4579 Add the `-nd' flag when running pre-dump operations under the debugger.
4580 * .dbxrc (run-temacs): Add `-nd'.
4581 * .dbxrc (update-elc): Likewise.
4582 * .dbxrc (dump-temacs): Likewise.
4583 * .gdbinit (run-temacs): Likewise.
4584 * .gdbinit (check-temacs): Likewise.
4585 * .gdbinit (update-elc): Likewise.
4586 * .gdbinit (dump-temacs): Likewise.
4588 2001-01-14 Martin Buchholz <martin@xemacs.org>
4590 Allow building 64-bit executables on AIX with GNU malloc, e.g.
4591 export OBJECT_MODE=64
4592 configure --pdump --use-union-type=no
4593 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4594 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4596 * miscplay.c (sndcnv8U_2mono):
4597 Avoid two uses of `++' in the same expression.
4598 Suppresses a GCC warning.
4600 2001-01-13 Martin Buchholz <martin@xemacs.org>
4602 Make sure future compilers don't miscompile alloc.c.
4604 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4605 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4607 2001-01-12 Martin Buchholz <martin@xemacs.org>
4609 * dumper.c: A little post-pdump-rename comment fixup.
4611 2001-01-09 Jerry James <james@eecs.ku.edu>
4613 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4615 2001-01-13 Martin Buchholz <martin@xemacs.org>
4617 * *.[ch]: Globally rename symbols using the following `pdump-rename'
4621 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4624 replace_symbol pdump_wire_lists pdump_weak_object_chains
4625 replace_symbol pdump_wire_list dump_add_weak_object_chain
4627 replace_symbol pdump_wires pdump_root_objects
4628 replace_symbol pdump_wire dump_add_root_object
4630 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4631 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4633 replace_symbol dumpstructinfos pdump_root_struct_ptrs
4634 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4635 replace_symbol dumpstructinfo pdump_root_struct_ptr
4636 replace_symbol dumpstruct dump_add_root_struct_ptr
4638 replace_symbol dumpopaque dump_add_opaque
4639 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4640 replace_symbol dumpopaqueinfos pdump_opaques
4641 replace_symbol dumpopaqueinfo pdump_opaque
4643 replace_symbol nb_structdump nb_root_struct_ptrs
4644 replace_symbol nb_opaquedump nb_opaques
4646 replace_symbol align_table pdump_align_table
4647 replace_symbol dump_header pdump_header
4649 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4650 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4653 2001-01-12 Martin Buchholz <martin@xemacs.org>
4655 * s/aix4.h: Keep the C for AIX compiler from overaggressively
4656 optimizing bytecount_to_charcount().
4658 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4661 (HAVE_DLFCN_H): Removed.
4662 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4664 2001-01-06 Martin Buchholz <martin@xemacs.org>
4666 Portable dumper maintainability improvements.
4667 * alloc.c (staticpro):
4668 * alloc.c (staticpro_nodump):
4669 * alloc.c (garbage_collect_1):
4670 * alloc.c (reinit_alloc_once_early):
4671 * alloc.c (init_alloc_once_early):
4672 * alloc.c: Move dumper functions to alloc.c.
4673 * dumper.c (pdump_backtrace):
4674 * dumper.c (pdump_dump_structs):
4675 * dumper.c (pdump_dump_opaques):
4676 * dumper.c (pdump_dump_rtables):
4677 * dumper.c (pdump_dump_wired):
4679 * dumper.c (pdump_load_check):
4680 * dumper.c (pdump_load_finish):
4681 * dumper.c (pdump_file_unmap):
4682 * dumper.c (pdump_file_get):
4683 * dumper.c (pdump_resource_free):
4684 * dumper.c (pdump_resource_get):
4685 * dumper.c (pdump_file_free):
4686 * dumper.c (pdump_file_try):
4687 * dumper.c (pdump_load):
4688 Remove fixed size limits on staticpro(), staticpro_nodump(),
4689 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4690 Remove custom code for dumping lrecord_implementations_table - use
4692 Remove (most of the) custom code for dumping staticpros - dump it
4693 like any other dynarr.
4695 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
4696 * dumper.c: Moved functions from alloc.c.
4697 * alloc.c (dumpstruct): Moved to dumper.c.
4698 * alloc.c (dumpopaque): Likewise.
4699 * alloc.c (pdump_wire): Likewise.
4700 * alloc.c (pdump_wire_list): Likewise.
4702 * lisp.h (Dynarr_sizeof): New.
4703 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
4704 * lisp.h (Dynarr_end): New. Very slightly C++oid.
4705 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
4707 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4708 * lisp.h (dumpopaque): ditto.
4709 * lisp.h (pdump_wire): ditto.
4710 * lisp.h (pdump_wire_list): ditto.
4712 2001-01-09 Martin Buchholz <martin@xemacs.org>
4714 * make-src-depend (PrintPatternDeps):
4715 Use `sort' to make output independent of perl version.
4717 2001-01-08 Martin Buchholz <martin@xemacs.org>
4720 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4721 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4723 2001-01-03 Didier Verna <didier@xemacs.org>
4725 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4726 that `focus_frame' is alive before thinking of calling
4727 `redisplay_redraw_cursor' on it.
4729 2001-01-08 Martin Buchholz <martin@xemacs.org>
4731 * XEmacs 21.2.40 is released.
4733 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4735 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4737 2001-01-06 Martin Buchholz <martin@xemacs.org>
4739 * alloc.c (dbg_valmask): Make const.
4740 * alloc.c (dbg_typemask): Make const.
4741 * alloc.c (dbg_USE_UNION_TYPE): Make const.
4742 * alloc.c (dbg_valbits): Make const.
4743 * alloc.c (dbg_gctypebits): Make const.
4745 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
4747 * redisplay-x.c (x_bevel_area):
4748 redisplay.h (struct rune):
4749 Typo fixes in comments.
4751 2001-01-05 Andy Piper <andy@xemacs.org>
4753 * glyphs-x.c (x_redisplay_widget): use size changed for offset
4756 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4758 2001-01-05 Martin Buchholz <martin@xemacs.org>
4760 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4762 * mule-ccl.c (stack_idx_of_map_multiple):
4763 Non const global data must not be initialized!
4764 Found by MIYASHITA Hisashi.
4766 2001-01-02 Andy Piper <andy@xemacs.org>
4768 * frame.c (change_frame_size): make sure frame size is always
4771 * glyphs.c (image_instance_layout): minor code reuse.
4773 * window.c (Fcurrent_window_configuration): revert previous
4776 2001-01-02 Martin Buchholz <martin@xemacs.org>
4779 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4781 2000-12-31 Andy Piper <andy@xemacs.org>
4783 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4784 when widget gets unmapped.
4786 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4787 function. Make sure widgets losing focus don't just drop it.
4788 (handle_focus_event_1): record the widget with focus.
4790 2000-12-31 Andy Piper <andy@xemacs.org>
4792 * window.c (allocate_window): use
4793 make_image_instance_cache_hash_table.
4794 (make_dummy_parent): ditto.
4795 (Fset_window_configuration): ditto.
4797 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
4799 * glyphs.c (process_image_string_instantiator): use
4801 (get_image_instantiator_governing_domain): ditto.
4802 (normalize_image_instantiator): ditto.
4803 (instantiate_image_instantiator): ditto.
4804 (make_image_instance_1): ditto.
4805 (image_instantiate): ditto. Key on glyph *and* instantiator type.
4806 (instantiator_eq_equal): new function for use with instance hash
4808 (instantiator_eq_hash): ditto.
4809 (make_image_instance_cache_hash_table): create a suitable hash
4810 table for storing image instances.
4812 * elhash.h (hash_table_weakness): new internal weakness type
4813 HASH_TABLE_KEY_CAR_VALUE_WEAK.
4814 declare new functions.
4816 * elhash.c (finish_marking_weak_hash_tables): introduce yet
4817 another weakness type for glyphs.
4818 (make_standard_lisp_hash_table): new function split out from
4819 make_general_lisp_hash_table.
4820 (make_lisp_hash_table): call make_standard_lisp_hash_table.
4821 (hash_table_instantiate): ditto.
4822 (Fmake_hash_table): ditto.
4824 2000-12-31 Martin Buchholz <martin@xemacs.org>
4826 * XEmacs 21.2.39 is released.
4828 2000-12-29 Andy Piper <andy@xemacs.org>
4830 * menubar.c (menubar_visible_p_changed): signal the frame changed.
4832 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4833 the frame has changed so that we pick up geometry changes such as
4836 2000-12-28 Andy Piper <andy@xemacs.org>
4838 * lastfile.c (my_ebss): make a char array so we can pad the
4839 bss. Fixes cygwin unexec.
4841 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4843 2000-12-26 Andy Piper <andy@xemacs.org>
4845 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4846 comments and try and be more precise about a non-/SIGIO world.
4847 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4850 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4851 we don't normalize to zero width or height.
4853 2000-12-24 Andy Piper <andy@xemacs.org>
4855 * Makefile.in.in (ldflags): add -mwindows when appropriate.
4857 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
4859 * s/sco5.h: SCO 5 has pty support.
4861 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
4863 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4864 input-method-xlib.c contains whole contents of input-method-xfs.c,
4865 so we can use input-method-xlib.c's code for USE_XFONTSET
4867 * input-method-xfs.c: removed.
4869 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
4871 * file-coding.h (enum coding_category_type): reorder enumerators to
4872 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
4873 (now one greater than largest real coding_category_type enumerator).
4874 * file-coding.c (coding_category_symbol, coding_category_by_priority,
4875 coding_category_system, fcd_descriptihon_1, decode_coding_category,
4876 Fcoding_category_list, Fset_coding_priority_list,
4877 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4878 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4880 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4882 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4883 * redisplay-output.c (redisplay_output_window): Clear top of window
4884 when face is changed.
4885 * redisplay-x.c (x_redraw_exposed_window): Call
4886 redisplay_clear_top_of_window.
4887 * redisplay.h: Publish redisplay_clear_top_of_window.
4889 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4891 * buffer.c (Fkill_buffer): Map over all devices.
4892 * window.c (window_loop): Remove UNSHOW_BUFFER code.
4893 (list_windows): New function.
4894 (list_all_windows): Ditto.
4895 (Freplace_buffer_in_windows): Use them.
4897 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4899 * database.c (berkdb_subtype): Recognize new subtype `queue'.
4900 (Fopen_database): Use `db_create' instead of `db_open'.
4901 (syms_of_database): Initialize Qqueue.
4903 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4905 * buffer.c (common_init_complex_vars_of_buffer): Initialize
4906 buffer_local_face_property.
4907 * buffer.h (struct buffer): New member buffer_local_face_property.
4908 * window.c (Fset_window_buffer): Mark window's face as changed
4909 when buffer has buffer local face.
4910 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4911 * objects.c (color_after_change): Set buffer_local_face_property
4912 when locale of face specifier is buffer.
4913 * objects.c (font_after_change): Ditto.
4914 * objects.c (face_boolean_after_change): Ditto.
4915 * glyphs.c (image_after_change): Ditto.
4917 2000-12-09 Dan Holmsand <dan@eyebee.com>
4919 * nt.c (mswindows_fstat): Report file permissions, volume serial
4920 number, etc. Code adapted from FSF Emacs 20.7.
4922 2000-12-09 Dan Holmsand <dan@eyebee.com>
4924 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4925 of stat when we don't have symbolic links, to make sure
4926 mswindows_stat is called on mswindows.
4928 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
4930 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4932 2000-12-12 Martin Buchholz <martin@xemacs.org>
4934 * doprnt.c (emacs_doprnt_1): More printing fixes.
4935 Make printing of numbers compatible with libc and FSF Emacs.
4936 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4937 Use the system printf to do most of the hard work of formatting,
4938 instead of doprnt_1().
4939 Calculate memory to allocate for format string.
4940 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4941 (doprnt_1): Cleaner code and documentation.
4943 2000-12-01 Jerry James <james@eecs.ukans.edu>
4945 * Makefile.in.in: Use the loop variable to install headers.
4947 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4949 * window.c (Fsplit_window): Don't invalidate face cache.
4951 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4953 * minibuf.c (Fall_completions): Undo the previous change
4954 which removed checking elements start with space.
4956 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4958 * mule-canna.c: Didier suppression.
4960 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4962 * mule-canna.c: rename static unsigned char buf[] to key_buffer
4963 (warning suppression). Add English comment translations.
4965 2000-12-05 Martin Buchholz <martin@xemacs.org>
4967 * unexelfsgi.c (unexec): Better test for mmap failure.
4969 2000-12-05 Martin Buchholz <martin@xemacs.org>
4971 * XEmacs 21.2.38 is released.
4973 2000-12-05 Martin Buchholz <martin@xemacs.org>
4975 * redisplay.c (bar-cursor): Make a user variable.
4977 * symsinit.h: Add init_postgresql_from_environment.
4979 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4981 * regex.c: Convert to clean C.
4983 2000-12-05 Dan Holmsand <dan@eyebee.com>
4986 Don't #include sysfile.h. Revert to duplicating PATH_MAX
4988 (sys_readlink): renamed to system_readlink to avoid conflict with
4989 the other sys_readlink.
4991 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
4993 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4995 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
4997 * postgresql.c (init_postgresql_from_environment): new function.
4998 (vars_of_postgresql): Move code initializing Lisp variables out and
4999 into init_postgresql_from_environment.
5000 emacs.c (main_1): Call init_postgresql_from_environment if and only
5001 if running a dumped XEmacs.
5003 2000-08-31 Dan Holmsand <dan@eyebee.com>
5005 * buffer.c: Make find-file-compare-truenames default to true on
5008 * realpath.c (win32_abs_start):
5010 (win32_readlink): New functions.
5011 (xrealpath): Return really real filenames on windows.
5013 * fileio.c (Ffile_truename): Make file-truename work on windows.
5015 2000-11-29 Didier Verna <didier@xemacs.org>
5017 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
5018 * faces.c (update_face_cachel_data): use it.
5019 * faces.c (add_face_cachel): use it. Complete background pixmap
5020 frobbing in face cache if `update_face_cachel_data' has not done so.
5022 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
5024 * search.c (string_match_1): Don't set last_thing_searched
5027 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
5029 * buffer.c: Include casetab.h
5030 (common_init_complex_vars_of_buffer): Use new case-table object.
5031 * buffer.h: Include casetab.h
5032 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5033 (DOWNCASE_TABLE_OF): Ditto.
5034 * bufslots.h: Remove char-tables and add case-table.
5035 * casetab.c: Include casetab.h
5036 (CASE_TABLE_P): Removed.
5037 (mark_case_table): New function.
5038 (allocate_case_table): New function.
5039 (Fcase_table_p): Use new case-table.
5040 (case_table_char): New function.
5041 (Fget_case_table): Ditto.
5042 (Fput_case_table): Ditto.
5043 (Fput_case_table_pair): Ditto.
5044 (Fcopy_case_table): Ditto.
5045 (Fcurrent_case_table): Return case-table.
5046 (Fstandard_case_table): Return case-table.
5047 (Fset_case_table): Fix doc-string.
5048 (set_case_table): Use case-table
5049 (syms_of_casetab): DEFSUBR new functions.
5050 (complex_vars_of_casetab): Set up standard case-table.
5051 * casetab.h: New file.
5052 * editfns.c: Include casetab.h
5053 (Fcompare_buffer_substrings): Use case-table.
5054 * inline.c: Include casetab.h
5055 * lisp.h: Remove bogus extern.
5056 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5057 * search.c: Include casetab.h
5058 (TRANSLATE_ASCII): Removed.
5059 (TRANSLATE): Unconditionally translate character.
5060 (looking_at_1): Use case-table.
5061 (string_match_1): Ditto.
5062 (fast_string_match): Ditto.
5063 (search_command): Ditto.
5064 (search_buffer): Separate boyer_moore. Check whether
5065 boyer_moore is possible.
5066 (simple_search): New function.
5067 (boyer_moore): Separated from search_buffer. Translate char.
5069 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
5071 * regex.c (RE_TR_ASCII): Removed.
5072 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5073 (PATFETCH): Call PATFETCH_RAW.
5074 (PATFETCH_RAW): Fetch Emchar.
5075 (PATUNFETCH): Decrement charptr.
5076 (GET_BUFFER_SPACE): Rename b to buf_end.
5078 (BUF_PUSH_2): Ditto.
5079 (BUF_PUSH_3): Ditto.
5080 (EXTEND_BUFFER): Ditto.
5081 (SET_LIST_BIT): Ditto.
5082 (regex_compile): Ditto. Translate non ASCII char.
5083 (compile_range): Ditto.
5084 (re_search_2): Ditto.
5085 (re_match_2_internal): Compare Emchar.
5086 (bcmp_translate): Ditto.
5088 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
5090 * lisp.h (basic char/int typedefs): comment improvement.
5092 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
5094 * emacs.c (main_1): unconditional pdump unstomping; don't save and
5095 unstomp inhibit_site_lisp. Improve comments.
5097 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
5099 * mule-charset.c (Fcharset_property): improve type checking, comments.
5101 2000-11-28 Andy Piper <andy@xemacs.org>
5103 * redisplay-output.c (redisplay_output_subwindow): make sure we do
5104 clipped display for windows in the gutter also.
5105 (redisplay_display_boxes_in_window_p): change semantics of return
5106 codes to be more intuitive.
5108 * gutter.h: declare display_boxes_in_gutter_p.
5110 * gutter.c (display_boxes_in_gutter_p): new function for
5113 2000-11-22 Andy Piper <andy@xemacs.org>
5115 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5118 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
5120 * callproc.c (Fold_call_process_internal):
5121 * gpm.c (Freceive_gpm_event):
5122 (tty_get_foreign_selection): Might be just warning supression.
5123 * fileio.c (Fwrite_region_internal):
5124 (Fset_visited_file_modtime):
5125 * keymap.c (event_matches_key_specifier_p):
5126 Initialize GCPROed variable.
5128 * menubar-x.c (command_builder_find_menu_accelerator):
5129 Initialize before use.
5131 2000-11-23 Andy Piper <andy@xemacs.org>
5133 * unexcw.c (unexec): make the resulting executable executable.
5135 2000-11-21 Martin Buchholz <martin@xemacs.org>
5137 * doc.c (get_doc_string):
5138 Use size_t, not int, for result of XSTRING_LENGTH.
5140 * cmds.c (Fdelete_char):
5141 * cmds.c (Fpoint_at_eol):
5142 * cmds.c (Fself_insert_command):
5143 Use EMACS_INT, not int, for result of XINT.
5144 Someday, someone will want to insert more than 2**31 identical characters.
5146 * cmds.c (Fdelete_char):
5147 * cmds.c (Fdelete_backward_char):
5148 * syntax.c (Fforward_word):
5149 * syntax.c (Fforward_comment):
5150 Make COUNT argument optional, for consistency with forward-char et al.
5152 2000-11-22 Martin Buchholz <martin@xemacs.org>
5155 * print.c (long_to_string):
5156 Return a useful value: the pointer at end of data written.
5159 Use `static const char * const' for constant strings.
5160 (union printf_arg): Delete `i', `ui' members.
5163 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5164 Do all printf-ing via the `l' specifier.
5165 Use EMACS_INT instead of int.
5168 2000-11-20 Didier Verna <didier@xemacs.org>
5170 * faces.c (update_face_cachel_data): don't frob the background
5171 pixmap when the window is being created. The face is needed but
5174 2000-11-20 Andy Piper <andy@xemacs.org>
5176 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5177 messing with a debug environment.
5179 2000-11-20 Martin Buchholz <martin@xemacs.org>
5181 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5183 2000-11-20 Martin Buchholz <martin@xemacs.org>
5185 * casetab.c (Fcase_table_p): Fix compile error and crash.
5187 2000-11-18 Philip Aston <philipa@mail.com>
5189 * s/cygwin32.h: Cygwin has SVR4-like pty support.
5191 2000-11-18 Martin Buchholz <martin@xemacs.org>
5193 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
5194 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5196 2000-11-17 Martin Buchholz <martin@xemacs.org>
5198 * config.h.in: Define HAVE_ELF_H if elf.h exists.
5199 * unexelf.c: Use HAVE_ELF_H.
5200 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5201 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5202 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5203 Greg Harrington <greg_harrington@hotmail.com> provided a machine
5205 So this is an unexelfsgi.c from a different line of development.
5207 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5209 * regex.c (RE_TR_ASCII): New function.
5210 (RE_TRANSLATE): Call it.
5212 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5214 * buffer.h (TRT_TABLE_OF): Remove assert.
5215 (IN_TRT_TABLE_DOMAIN): Removed.
5217 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
5219 * free-hook.c (log_gcpro):
5220 (show_gcprohist): Add support for GCPRO5.
5222 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
5224 * emacs.c (main_1): Improve -sd error message when --pdump=no.
5226 2000-11-16 Olivier Galibert <galibert@xemacs.org>
5228 * symeval.h: Declare flush_all_buffer_local_cache.
5230 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5231 (flush_buffer_local_cache): Added.
5232 (flush_all_buffer_local_cache): Added.
5234 * lrecord.h: Remove unused XD_LO_RESET_NIL.
5236 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5237 (pdump_dump_data): Ditto.
5238 (pdump_reloc_one): Ditto.
5239 (pdump): Remove unused pdump_qnil. Flush buffer local caches
5243 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5245 * buffer.c: Remove if 0'ed entry.
5246 * buffer.h: Rewrite TRT to use char-table.
5247 * bufslots.h: Remove mirror tables.
5248 * casetab.c: Remove mirror tables.
5249 (CASE_TABLE_P): New macro.
5250 (Fcase_table_p): Element of a case table is string or char-table.
5251 (make_mirror_trt_table): Removed.
5252 (set_case_table): Setup char-table from strings for backward
5254 * dired.c (Fdirectory_files):
5255 * dired-msw.c: (mswindows_get_files):
5256 * lisp.h: Change prototype of re_pattern_buffer.
5257 * regex.c: (RE_TRANSLATE): New macro.
5258 (TRANSLATE_P): Ditto.
5259 Change translate to type RE_TRANSLATE_TYPE.
5260 * regex.h: Define RE_TRANSLATE_TYPE
5261 * search.c (TRANSLATE): New macro.
5262 (TRANSLATE_ASCII): New macro.
5263 Translate table is changed to Lisp_Object.
5264 (signal_failure): Inhibit return.
5266 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5273 Do UNGCPRO before return.
5275 2000-11-14 Martin Buchholz <martin@xemacs.org>
5277 * XEmacs 21.2.37 is released.
5279 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
5281 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5282 Add comments about discarded return value.
5284 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5287 * event-stream.c: Fix comments. Remove some #if 0'ed part.
5289 2000-10-27 Andy Piper <andy@xemacs.org>
5291 * gutter.c (Fset_default_gutter_position): default left and right
5293 (calculate_gutter_size): calculate resonable heuristic for left
5294 and right gutter sizes.
5295 (specifier_vars_of_gutter): change left and right gutter sizes to
5297 (calculate_gutter_size_from_display_lines): new function.
5298 (output_gutter): check for resizing on left and right gutters.
5299 (clear_gutter): don't special case top and left gutters.
5300 (specifier_vars_of_gutter): use new signature for
5301 set_specifier_caching.
5303 * glyphs-x.c (x_redisplay_widget): spelling fix.
5304 * glyphs.c (specifier_vars_of_glyphs):
5305 * menubar.c (specifier_vars_of_menubar):
5306 * redisplay.c (specifier_vars_of_redisplay):
5307 * toolbar.c (specifier_vars_of_toolbar):
5308 * window.c (specifier_vars_of_window):
5309 * scrollbar.c (specifier_vars_of_scrollbar):
5310 (complex_vars_of_scrollbar): use new signature for
5311 set_specifier_caching.
5313 * specifier.c (set_specifier_caching): include recompute flag.
5314 (recompute_one_cached_specifier_in_window): always recompute if
5316 (recompute_one_cached_specifier_in_frame): ditto.
5318 * specifier.h (struct specifier_caching): add recompute flag.
5320 2000-10-24 Andy Piper <andy@xemacs.org>
5322 * unexcw.c (copy_executable_and_dump_data_section): add new
5323 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5326 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5328 * console-x.h (x_device): New member modifier_release_time.
5329 * event-Xt.c (x_handle_sticky_modifiers):
5330 Bound interval modifier keys are sticky.
5331 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5332 * events.h: extern it.
5334 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5336 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5338 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5340 * event-stream.c (execute_command_event): Preserve current_events
5341 and the like when event is misc-user-event.
5342 Inhibit quit during the call to maybe_echo_keys.
5344 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
5346 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5347 symlink when buffer is killed.
5348 (inhibit_clash_detection): New variable.
5350 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5352 * console.c (Fset_input_method): Trigger redisplay on tty.
5354 2000-11-07 Martin Buchholz <martin@xemacs.org>
5356 * process.c (Fprocess_status): Revert to previous behavior:
5357 (process-status "nosuchprocess") ==> nil
5359 2000-11-06 Martin Buchholz <martin@xemacs.org>
5361 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5362 Work around another GCC 2.95.2 optimizer bug.
5364 2000-11-02 Martin Buchholz <martin@xemacs.org>
5366 * process.c (Fget_process): Use LIST_LOOP_2.
5367 (kill_buffer_processes): Use LIST_LOOP_2.
5369 * minibuf.c (Fall_completions):
5370 Delete old non-functional code for FSF fourth argument.
5372 * frame.c (frame_matches_frame_spec):
5373 Renamed from `frame_matches_frametype'. Update all callers.
5374 (device_matches_device_spec):
5375 Renamed from 'device_matches_console_spec'. Update all callers.
5377 * doc.c (Fsubstitute_command_keys):
5378 Remove buffer overflow crash. Small code cleanups.
5380 * casetab.c (check_case_table): Simpler code.
5382 * window.c (Freplace_buffer_in_windows):
5383 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5384 (and similar implementation) as Fdelete_windows_on.
5387 * alloc.c (Fmake_list):
5388 * alloc.c (make_vector):
5389 * alloc.c (Fmake_vector):
5390 * alloc.c (make_bit_vector):
5391 * alloc.c (Fmake_bit_vector):
5392 * alloc.c (Fbit_vector):
5393 * alloc.c (Fmake_string):
5394 * alloc.c (Fpurecopy):
5395 * alloc.c (Fmemory_limit):
5397 * buffer.c (Fget_buffer):
5398 * buffer.c (Fkill_buffer):
5399 * buffer.c (complex_vars_of_buffer):
5400 * bytecode.c (Fcompiled_function_stack_depth):
5401 * callint.c (Fprefix_numeric_value):
5403 * event-stream.c (Fread_key_sequence):
5405 * casetab.c (Fcase_table_p):
5406 * casetab.c (check_case_table):
5407 * casetab.c (Fset_case_table):
5408 * casetab.c (Fset_standard_case_table):
5410 * chartab.c (Fchar_table_type):
5411 * chartab.c (Freset_char_table):
5412 * chartab.c (Fget_char_table):
5413 * chartab.c (Fget_range_char_table):
5414 * chartab.c (Fput_char_table):
5415 * chartab.c (Fmap_char_table):
5416 * chartab.c (Fcategory_table_p):
5417 * chartab.c (Fcheck_category_at):
5418 * chartab.c (Fchar_in_category_p):
5419 * chartab.c (Fcategory_table):
5420 * chartab.c (Fcopy_category_table):
5421 * chartab.c (Fset_category_table):
5422 * chartab.c (Fcategory_designator_p):
5423 * chartab.c (Fcategory_table_value_p):
5424 * cmds.c (Fdelete_char):
5425 * cmds.c (Fdelete_backward_char):
5426 * cmds.c (Fself_insert_command):
5427 * cmds.c (Fself_insert_internal):
5428 * console.c (Fvalid_console_type_p):
5429 * console.c (Fcdfw_console):
5430 * console.c (Fconsole_type):
5431 * console.c (Fconsole_name):
5432 * console.c (Fconsole_device_list):
5433 * console.c (Fconsole_on_window_system_p):
5437 * data.c (Fsubr_interactive):
5438 * data.c (Fchar_to_int):
5439 * data.c (Fint_to_char):
5442 * data.c (Fnumber_to_string):
5443 * data.c (Fstring_to_number):
5445 * database.c (mark_database):
5446 * database.c (finalize_database):
5447 * database.c (Fdatabase_live_p):
5448 * database.c (Fdatabasep):
5449 * device-x.c (Fx_get_resource):
5450 * device.c (Fdfw_device):
5452 * dired.c (Ffile_name_completion):
5453 * dired.c (Ffile_name_all_completions):
5454 * dired.c (Fuser_name_completion):
5455 * dired.c (Fuser_name_completion_1):
5456 * dired.c (Fuser_name_all_completions):
5457 * doc.c (Fdocumentation):
5458 * doc.c (Fdocumentation_property):
5459 * doc.c (Fsubstitute_command_keys):
5461 * editfns.c (Fchar_to_string):
5462 * editfns.c (Fstring_to_char):
5463 * editfns.c (Ftemp_directory):
5464 * editfns.c (Finsert_char):
5465 * editfns.c (Fbuffer_substring_no_properties):
5466 * editfns.c (Fnarrow_to_region):
5467 * editfns.c (Fchar_equal):
5468 * editfns.c (Fchar_Equal):
5469 * editfns.c (Ftranspose_regions):
5470 * emacs.c (Fdump_emacs):
5472 * eval.c (Fcommand_execute):
5473 * eval.c (Fautoload):
5474 * eval.c (Fbacktrace):
5475 * eval.c (Fbacktrace_frame):
5477 * events.c (Fcopy_event):
5478 * events.c (Fcharacter_to_event):
5479 * events.c (Fevent_button):
5480 * events.c (Fevent_process):
5482 * extents.c (Fnext_extent_change):
5483 * extents.c (Fextent_property):
5485 * faces.c (Fmake_face):
5487 * file-coding.c (Fencode_shift_jis_char):
5488 * file-coding.c (Fencode_big5_char):
5489 * fileio.c (Ffile_name_directory):
5490 * fileio.c (Ffile_name_nondirectory):
5491 * fileio.c (Ffile_name_as_directory):
5492 * fileio.c (Fdirectory_file_name):
5493 * fileio.c (Ffile_truename):
5494 * fileio.c (Fsubstitute_in_file_name):
5495 * fileio.c (Ffile_modes):
5496 * fileio.c (Fset_file_modes):
5497 * fileio.c (Fset_default_file_modes):
5498 * fileio.c (Fverify_visited_file_modtime):
5499 * floatfns.c (Facos):
5500 * floatfns.c (Fasin):
5501 * floatfns.c (Fatan):
5502 * floatfns.c (Fcos):
5503 * floatfns.c (Fsin):
5504 * floatfns.c (Ftan):
5505 * floatfns.c (Fbessel_j0):
5506 * floatfns.c (Fbessel_j1):
5507 * floatfns.c (Fbessel_jn):
5508 * floatfns.c (Fbessel_y0):
5509 * floatfns.c (Fbessel_y1):
5510 * floatfns.c (Fbessel_yn):
5511 * floatfns.c (Ferf):
5512 * floatfns.c (Ferfc):
5513 * floatfns.c (Flog_gamma):
5514 * floatfns.c (Fexp):
5515 * floatfns.c (Fexpt):
5516 * floatfns.c (Flog):
5517 * floatfns.c (Flog10):
5518 * floatfns.c (Fsqrt):
5519 * floatfns.c (Fcube_root):
5520 * floatfns.c (Facosh):
5521 * floatfns.c (Fasinh):
5522 * floatfns.c (Fatanh):
5523 * floatfns.c (Fcosh):
5524 * floatfns.c (Fsinh):
5525 * floatfns.c (Ftanh):
5526 * floatfns.c (Fabs):
5527 * floatfns.c (Ffloat):
5528 * floatfns.c (Flogb):
5529 * floatfns.c (Fceiling):
5530 * floatfns.c (Ffloor):
5531 * floatfns.c (Fround):
5532 * floatfns.c (Ftruncate):
5533 * floatfns.c (Ffceiling):
5534 * floatfns.c (Fffloor):
5535 * floatfns.c (Ffround):
5536 * floatfns.c (Fftruncate):
5537 * fns.c (Fstring_equal):
5538 * fns.c (Fstring_lessp):
5543 * fns.c (Fsubstring):
5545 * fns.c (Fold_assoc):
5546 * fns.c (assoc_no_quit):
5548 * fns.c (Fold_assq):
5549 * fns.c (assq_no_quit):
5551 * fns.c (Fold_rassoc):
5553 * fns.c (Fold_rassq):
5554 * fns.c (rassq_no_quit):
5555 * fns.c (Fremassoc):
5556 * fns.c (remassoc_no_quit):
5558 * fns.c (remassq_no_quit):
5559 * fns.c (Fremrassoc):
5560 * fns.c (Fremrassq):
5561 * fns.c (remrassq_no_quit):
5563 * fns.c (Fplist_get):
5564 * fns.c (Fplist_put):
5565 * fns.c (Fplist_remprop):
5566 * fns.c (Fplist_member):
5567 * fns.c (Flax_plist_get):
5568 * fns.c (Flax_plist_put):
5569 * fns.c (Flax_plist_remprop):
5570 * fns.c (Flax_plist_member):
5572 * fns.c (Fold_equal):
5574 * fns.c (Fbase64_encode_region):
5575 * fns.c (Fbase64_encode_string):
5576 * fns.c (Fbase64_decode_region):
5578 * frame.c (frame_matches_frame_spec):
5579 * frame.c (device_matches_device_spec):
5580 * frame.c (next_frame):
5581 * frame.c (previous_frame):
5582 * frame.c (Fnext_frame):
5583 * frame.c (Fprevious_frame):
5584 * frame.c (Fframe_property):
5585 * frame.c (Fset_frame_height):
5586 * frame.c (Fset_frame_size):
5590 * glyphs.c (decode_error_behavior_flag):
5591 * glyphs.c (Fmake_image_instance):
5592 * indent.c (Findent_to):
5593 * intl.c (Fignore_defer_gettext):
5594 * keymap.c (Fkeymapp):
5595 * keymap.c (Flookup_key):
5597 * lread.c (Fload_internal):
5598 * lread.c (Feval_buffer):
5599 * lread.c (Feval_region):
5600 * macros.c (Fexecute_kbd_macro):
5601 * marker.c (set_marker_internal):
5602 * marker.c (Fset_marker):
5603 * marker.c (set_marker_restricted):
5604 * marker.c (Fcopy_marker):
5605 * marker.c (noseeum_copy_marker):
5607 * menubar.c (Fpopup_menu):
5609 * mule-charset.c (Fcharset_name):
5610 * mule-charset.c (Fchar_charset):
5611 * mule-charset.c (Fchar_octet):
5612 * mule-charset.c (Fsplit_char):
5613 * mule-wnnfns.c (Fwnn_open):
5614 * mule-wnnfns.c (Fwnn_dict_comment):
5615 * mule-wnnfns.c (Fwnn_quit_henkan):
5616 * mule-wnnfns.c (Fwnn_word_toroku):
5617 * mule-wnnfns.c (Fwnn_word_sakujo):
5618 * mule-wnnfns.c (Fwnn_word_use):
5619 * mule-wnnfns.c (Fwnn_hindo_set):
5621 * objects.c (Fmake_color_instance):
5622 * objects.c (Fmake_font_instance):
5623 * print.c (Fwrite_char):
5625 * process.c (mark_process):
5626 * process.c (print_process):
5627 * process.c (get_process_from_usid):
5628 * process.c (Fprocessp):
5629 * process.c (Fprocess_live_p):
5630 * process.c (Fget_process):
5631 * process.c (Fget_buffer_process):
5632 * process.c (get_process):
5633 * process.c (Fprocess_id):
5634 * process.c (Fprocess_name):
5635 * process.c (Fprocess_command):
5636 * process.c (init_process_io_handles):
5637 * process.c (start_process_unwind):
5638 * process.c (Fstart_process_internal):
5639 * process.c (Fopen_multicast_group_internal):
5640 * process.c (Fset_process_window_size):
5641 * process.c (read_process_output):
5642 * process.c (send_process):
5643 * process.c (Fprocess_tty_name):
5644 * process.c (Fset_process_buffer):
5645 * process.c (Fprocess_buffer):
5646 * process.c (Fprocess_mark):
5647 * process.c (set_process_filter):
5648 * process.c (Fset_process_filter):
5649 * process.c (Fprocess_filter):
5650 * process.c (Fprocess_send_region):
5651 * process.c (Fprocess_send_string):
5652 * process.c (exec_sentinel):
5653 * process.c (Fset_process_sentinel):
5654 * process.c (Fprocess_sentinel):
5655 * process.c (status_notify):
5656 * process.c (Fprocess_status):
5657 * process.c (Fprocess_exit_status):
5658 * process.c (process_send_signal):
5659 * process.c (Fprocess_send_eof):
5660 * process.c (deactivate_process):
5661 * process.c (remove_process):
5662 * process.c (Fdelete_process):
5663 * process.c (kill_buffer_processes):
5664 * process.c (Fprocess_kill_without_query):
5665 * process.c (Fprocess_kill_without_query_p):
5667 * rangetab.c (Fget_range_table):
5668 * rangetab.c (Fput_range_table):
5669 * rangetab.c (Fremove_range_table):
5670 * rangetab.c (Fclear_range_table):
5672 * search.c (Fskip_chars_forward):
5673 * search.c (Fskip_chars_backward):
5674 * search.c (Fskip_syntax_forward):
5675 * search.c (Fskip_syntax_backward):
5676 * search.c (search_command):
5677 * search.c (Freplace_match):
5678 * search.c (Fregexp_quote):
5679 * select.c (Fown_selection_internal):
5680 * select.c (Fselection_owner_p):
5681 * select.c (Fselection_exists_p):
5682 * select.c (Fget_selection_internal):
5685 * symbols.c (Fintern):
5686 * symbols.c (Fintern_soft):
5687 * symbols.c (Funintern):
5688 * symbols.c (Fapropos_internal):
5689 * symbols.c (Fset_default):
5691 * syntax.c (Fsyntax_table_p):
5692 * syntax.c (Fcopy_syntax_table):
5693 * syntax.c (Fset_syntax_table):
5694 * syntax.c (Fchar_syntax):
5695 * syntax.c (syntax_match):
5696 * syntax.c (Fmatching_paren):
5697 * syntax.c (Fforward_word):
5698 * syntax.c (scan_lists):
5699 * syntax.c (Fscan_lists):
5700 * syntax.c (Fscan_sexps):
5701 * syntax.c (Fparse_partial_sexp):
5702 * toolbar.c (Fcheck_toolbar_button_syntax):
5705 * window.c (Fwindowp):
5706 * window.c (Fwindow_live_p):
5707 * window.c (Fwindow_point):
5708 * window.c (Fdelete_window):
5709 * window.c (Fnext_window):
5710 * window.c (Fprevious_window):
5711 * window.c (Fother_window):
5712 * window.c (window_loop):
5713 * window.c (Fget_lru_window):
5714 * window.c (Fsplit_window):
5715 * window.c (Fenlarge_window):
5716 * window.c (Fenlarge_window_pixels):
5717 * window.c (Fshrink_window):
5718 * window.c (Fshrink_window_pixels):
5719 * window.c (change_window_height):
5720 * window.c (Fwindow_configuration_p):
5721 * window.c (Fcurrent_window_configuration):
5723 * casefiddle.c (casify_object):
5724 * casefiddle.c (Fupcase):
5725 * casefiddle.c (Fdowncase):
5726 * casefiddle.c (Fcapitalize):
5727 * casefiddle.c (Fupcase_initials):
5728 * casefiddle.c (casify_region_internal):
5729 * casefiddle.c (casify_region):
5730 * casefiddle.c (Fupcase_region):
5731 * casefiddle.c (Fdowncase_region):
5732 * casefiddle.c (Fcapitalize_region):
5733 * casefiddle.c (Fupcase_initials_region):
5734 * casefiddle.c (Fupcase_word):
5735 * casefiddle.c (Fdowncase_word):
5736 * casefiddle.c (Fcapitalize_word):
5737 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
5738 Replace 0 with '\0' when working with bytes.
5739 Replace initial "(" with "\(" in docstrings.
5741 2000-11-01 Martin Buchholz <martin@xemacs.org>
5743 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5745 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5747 2000-10-31 Martin Buchholz <martin@xemacs.org>
5749 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
5751 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5753 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5756 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5758 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5759 (inhibit_auto_save_session): New variable.
5760 (vars_of_fileio): Declare and initialize them.
5761 * fileio.c (Fdo_auto_save): Don't create session file if
5762 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5764 2000-10-31 Martin Buchholz <martin@xemacs.org>
5766 * sgiplay.c (play_internal): C++ compilability.
5767 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5768 * callproc.c (Fold_call_process_internal):
5769 Remove unused vars `env', `first'.
5770 * scrollbar.c (update_scrollbar_instance):
5771 #### unused var `current_window'.
5772 * redisplay-tty.c: Put currently unused vars insert_mode_on,
5773 etc. within #ifdef NOT_YET.
5774 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5775 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5776 * specifier.c (specifier_instance):
5777 #### unused var `tag'.
5778 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5780 2000-10-27 Martin Buchholz <martin@xemacs.org>
5783 * fns.c (list_sort):
5784 * fns.c (Ffillarray):
5785 * fns.c (bytecode_nconc2):
5788 * fns.c (Fmapconcat):
5789 Be pedantically 64-bit correct. For the time when someone will
5790 want to have a list with length > 2**32.
5792 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5793 Work around MIPSpro compiler bug.
5795 * process-unix.c (unix_kill_child_process): Add snarky comment.
5796 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
5798 * config.h.in: Oops, _getpt ==> _getpty
5800 2000-10-26 Martin Buchholz <martin@xemacs.org>
5804 Use void*, not char*, as return type of alloca().
5806 * alloc.c (free_marker): Side effect inside assert expression!
5808 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
5810 * mule-charset.c (Fset_charset_ccl_program): To check
5811 if the given ccl program is valid, use setup_ccl_program()
5812 instead of CHECK_VECTOR().
5813 (Fmake_charset): Likewise.
5815 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
5817 * faces.c (get_extent_fragment_face_cache_index):
5818 Fix cachel.merged_faces memory leak.
5820 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
5822 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5823 Reset MSB of octets obtained by DECODE_SJIS
5824 because of the incompatibility with Emacs.
5825 (ccl_driver)<CCL_ENCODE_SJIS>:
5826 Set MSB of octets before passing them to
5827 ENCODE_SJIS because of the incompatibility
5830 2000-10-18 Daiki Ueno <ueno@unixuser.org>
5832 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5833 (DECLARE_LRECORD): Undo the last change.
5834 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5836 2000-10-17 Daiki Ueno <ueno@unixuser.org>
5838 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5839 the implementation to lrecord_implementations_table.
5841 2000-10-14 Daiki Ueno <ueno@unixuser.org>
5843 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5844 initial value of `lrecord_type_##c_name' and
5845 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5846 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5847 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5848 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5849 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5851 2000-10-17 Martin Buchholz <martin@xemacs.org>
5853 * miscplay.c (sndcnv8S_2mono):
5854 (sndcnv2monounsigned):
5855 (sndcnvULaw_2linear):
5857 Remove implementation-defined behavior.
5859 2000-10-12 Martin Buchholz <martin@xemacs.org>
5861 * input-method-xlib.c: Warning suppression.
5863 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
5865 * mule-ccl.c: Sync up with Emacs 21.0.90.
5866 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5868 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5870 (ccl_driver[WriteMultibyteChar2]): Bug fix.
5871 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5872 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5873 leading char belongs to official 2-dimensional charset.
5874 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5875 write the given character as is. Otherwise,
5876 if it is a multibyte char, convert it by
5877 non_ascii_set_charptr_emchar, then write it.
5878 (CCL_WRITE_STRING): Likewise.
5879 (ccl_get_compiled_code): New function.
5880 (setup_ccl_program): When ccl_prog is invalid,
5882 (Fregister_code_conversion_map): New function.
5883 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5885 * mule-ccl.h: Sync up with Emacs 21.0.90.
5886 (Fregister_ccl_program): export it.
5888 * redisplay-msw.c (separate_textual_runs):
5889 If ccl program is not valid, don't do ccl conversion.
5891 * redisplay-x.c (separate_textual_runs): Ditto.
5893 * file-coding.c (Fmake_coding_system):
5894 When type is ccl and value is vector, register it
5895 with a proper symbol. And checks whether the
5896 given ccl program is valid.
5897 (mule_decode): When calling ccl_driver, if src indicates
5898 NULL pointer, set an empty string instead.
5899 (mule_encode): Likewise.
5901 2000-10-11 Martin Buchholz <martin@xemacs.org>
5903 The following large batch of changes gets us back to a state of
5904 C++ compilability. Extbyte is now a char, which means that
5905 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5907 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5909 * sound.c (Fplay_sound): Type correctness.
5911 * select-x.c (hack_motif_clipboard_selection): Type correctness.
5912 (x_get_window_property): Type correctness.
5913 (receive_incremental_selection): unsigned char ==> Extbyte
5914 (selection_data_to_lisp_data): unsigned char ==> Extbyte
5915 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5916 (Fx_store_cutbuffer_internal): Type correctness.
5918 * process-unix.c (try_to_initialize_subtty): Type correctness.
5920 * objects-x.c (x_print_color_instance): Type correctness.
5921 (x_print_font_instance): Type correctness.
5922 (x_list_fonts): SExtbyte ==> Extbyte.
5923 (valid_x_font_name_p): SExtbyte ==> Extbyte.
5924 (x_find_charset_font): SExtbyte ==> Extbyte.
5925 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
5926 (truename_via_XListFonts): SExtbyte ==> Extbyte.
5927 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5930 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5931 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5932 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5933 (BYTE_C0_P): Use bit ops for char-signedness safety.
5934 (BYTE_C1_P): Use bit ops for char-signedness safety.
5935 (CHARSET_BY_LEADING_BYTE):
5936 (CHARSET_BY_ATTRIBUTES):
5937 Always use inline function.
5938 Use type_checking_assert.
5941 * mule-charset.c (non_ascii_charptr_copy_char):
5942 Modify to work with both ASCII and non-ASCII characters.
5943 Improve docs and variable names.
5944 Replace over-clever fall-through switch with a simple loop.
5945 (Lstream_get_emchar_1):
5946 Replace over-clever fall-through switch with a simple loop.
5948 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5949 Warning suppression.
5951 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5952 the return value of Lstream_getc, which could be EOF as well.
5954 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5956 * lisp.h: Make Extbyte a char, not unsigned char, so that external
5957 APIs can be used on Extbytes without casts. Risky!
5961 * input-method-xlib.c (XIM_init_device):
5962 Use Xlib.h instead of IntrinsicP.h.
5963 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5964 which will break in X11R7.
5965 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5966 to call XRegisterIMInstantiateCallback with correct types.
5968 * gui-x.c (button_item_to_widget_value): Type correctness.
5970 * glyphs.c (bitmap_to_lisp_data): Type correctness.
5972 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5973 (xbm_instantiate_1): Type correctness.
5974 (BUILD_GLYPH_INST): Type correctness.
5976 * fileio.c (Fsubstitute_in_file_name): Type correctness.
5979 (decode_coding_sjis):
5980 (decode_coding_big5):
5981 (decode_coding_ucs4):
5982 (decode_coding_utf8):
5983 (decode_coding_iso2022):
5984 (decode_coding_no_conversion):
5985 Make all decoding functions take an Extbyte * arg.
5986 (encode_coding_sjis):
5987 (encode_coding_big5):
5988 (encode_coding_ucs4):
5989 (encode_coding_utf8):
5990 (encode_coding_iso2022):
5991 (encode_coding_no_conversion):
5992 Make all encoding functions take a Bufbyte * arg.
5993 Use size_t instead of unsigned int for memory sizes.
5994 Only cast to unsigned char whenever dereferencing Extbyte *.
5996 * doc.c (unparesseuxify_doc_string): Type correctness.
5998 * console-x.c (split_up_display_spec):
5999 Rewrite without using details of internal string representation.
6000 (x_semi_canonicalize_device_connection): Type correctness.
6003 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
6004 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
6005 (HAVE_XFREE386): Removed.
6007 * buffer.h (DEC_CHARPTR): `const' correctness.
6008 (bufbyte_strcmp): New.
6009 (bufbyte_memcmp): New.
6011 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
6013 * buffer.h (XCHAR_OR_CHAR_INT):
6014 Always use inline function.
6015 Remove redundant type checking assert() - XINT will abort quite nicely.
6017 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6019 * search.c (Freplace_match): Set newtext to an empty string.
6021 2000-10-10 Martin Buchholz <martin@xemacs.org>
6023 * s/decosf1-3.h: Remove #include of stropts.h
6024 * s/ptx.h: Remove #include of stropts.h
6025 * s/usg5-4.h: Remove #include of stropts.h
6028 Use stropts.h, not sys/stropts.h.
6029 Use strtio.h, not sys/strtio.h.
6031 2000-10-04 Martin Buchholz <martin@xemacs.org>
6033 * XEmacs 21.2.36 is released.
6035 2000-09-21 Andy Piper <andy@xemacs.org>
6037 * glyphs-x.c (x_redisplay_widget): make sure non-structural
6038 changes still involve copying the widget tree.
6039 (update_widget_face): make sure a change is register in the widget
6040 tree. Call update_tab_widget_face appropriately.
6041 (update_tab_widget_face): ditto.
6042 (x_tab_control_redisplay): make sure non-structural changes still
6043 involve copying the widget tree.
6045 2000-08-31 Daiki Ueno <ueno@unixuser.org>
6047 * lread.c (locate_file): Check the path element is non-nil.
6049 2000-10-02 Martin Buchholz <martin@xemacs.org>
6051 * lisp.h: Warning suppression for SCO compilers.
6053 * redisplay-tty.c (reset_tty_modes): Fix crash.
6054 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6056 2000-09-27 Martin Buchholz <martin@xemacs.org>
6058 Big signal/process handling overhaul. Bugs fixed:
6059 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6060 M-x comint-kill-subjob should work for both values nil and t of
6061 process-connection-type. It was broken on most platforms.
6062 Testing on Irix and Cygwin still needed. Other plaforms tested.
6063 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
6064 * process-unix.c: Signal/Process handling overhaul.
6065 (pty_name): make 64 bytes, as `expect' does, for paranoia.
6066 (allocate_pty): Use all available modern methods of allocating
6067 ptys, falling back to old style BSD allocation as a last resort.
6068 Use allegedly more secure Unix98 pty allocation by default.
6069 (allocate_pty_the_old_fashioned_way): New. the last resort.
6070 (unix_create_process): Push ptem, ldterm, ttcompat where
6071 available. Autoconfiscate.
6072 (try_to_initialize_subtty): New.
6073 (unix_kill_child_process): Proper signal handling for ptys on most
6074 platforms, using special knowledge of AIX, BSD, etc...
6075 (unix_create_process): Always disconnect_controlling_terminal() for
6076 subprocesses, whether using ptys or not.
6077 * process.h: Remove old getpt-dependent PTY code.
6078 * process.c (Fprocess_send_signal): New, obvious generic function.
6079 (decode_signal): New.
6080 (Finterrupt_process):
6084 (Fcontinue_process):
6085 (Fsignal_process): Use decode_signal.
6086 (process_send_signal):
6087 Many docstring corrections.
6088 Allow any signal to be sent to a process object.
6089 * config.h.in: Add symbols for big signal/process overhaul.
6090 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6091 * sysproc.h: Include process-related headers, where available:
6092 sys/stropts.h sys/strtio.h pty.h libutil.h
6100 Remove old S&M pty stuff.
6101 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6102 * systty.h: Simplify cpp hackery, improve comments.
6103 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6105 * editfns.c (Fformat_time_string):
6106 Be a little more paranoid with the return value of ctime.
6108 * fileio.c (check_executable):
6110 Use symbolic constants X_OK, W_OK.
6112 * console-x.c (split_up_display_spec): Fix a warning.
6114 2000-10-02 Martin Buchholz <martin@xemacs.org>
6116 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6117 * ntproc.c (sys_spawnve): make_string ==> build_string
6118 Small clarity improvements.
6120 2000-09-30 Martin Buchholz <martin@xemacs.org>
6122 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6124 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6126 * config.h.in (HAVE_STRCASECMP): Remove.
6128 2000-09-29 Martin Buchholz <martin@xemacs.org>
6130 * redisplay-output.c (redisplay_output_pixmap):
6131 Cleaner and possibly more 64-bit correct code.
6133 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
6135 * dumper.c (pdump_load_finish): move restoration of
6136 `noninteractive1' to emacs.c (main_1).
6137 * emacs.c (main_1): protect LISP-visible command-line flags
6140 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
6142 * Makefile.in.in (versionclean): Use EXE_TARGET and
6143 DUMP_TARGET instead of literal program names.
6145 2000-09-20 Martin Buchholz <martin@xemacs.org>
6147 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6149 2000-09-19 Martin Buchholz <martin@xemacs.org>
6151 * *: Spelling mega-patch
6153 2000-09-19 Martin Buchholz <martin@xemacs.org>
6155 * fns.c (bad_bad_turtle):
6156 Delete "Eek!" comment, since we fixed the bug to which it refers.
6158 2000-09-16 Martin Buchholz <martin@xemacs.org>
6160 * alloca.c: Replace REGISTER with register.
6162 2000-09-16 Daiki Ueno <ueno@unixuser.org>
6164 * file-coding.c (ucs_to_char): Use countof.
6166 2000-09-16 Martin Buchholz <martin@xemacs.org>
6168 * file-coding.c: (ucs_to_char):
6169 (complex_vars_of_file_coding):
6170 Use countof instead of sizeof.
6171 Use CHECK_NATNUM instead of CHECK_INT.
6173 * sysdep.c (strcasecmp): Remove.
6174 * device-x.c (ascii_strcasecmp): New.
6175 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6176 Avoid using non-standard non-portable strcasecmp.
6178 2000-09-16 Martin Buchholz <martin@xemacs.org>
6180 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6181 * font-lock.c: remove reference to emacsfns.h.
6182 * search.c: small doc improvement.
6183 * event-Xt.c: correct file names in comments.
6184 * console-x.h Correct file names in comments.
6185 * frame.c: Correct file names in comments.
6186 * event-stream.c: remove Energize from comments.
6188 2000-09-15 Martin Buchholz <martin@xemacs.org>
6190 * symeval.h (DEFERROR_STANDARD):
6193 (DEFSYMBOL_NO_DUMP):
6194 (DEFSYMBOL_MULTIWORD_PREDICATE):
6195 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6197 The construct &##name is not sensible C.
6198 Fixes compilation errors with Unixware native compiler.
6200 2000-09-14 Martin Buchholz <martin@xemacs.org>
6202 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6203 (next_frame_internal): Removed. We now just have next_frame.
6205 Write a simpler and cleaner one-pass algorithm.
6206 Remove called_from_delete_device arg and #ifdefed-out code.
6208 Renamed from prev_frame. Update callers.
6209 Cleaned up to have an analogous implementation to next_frame.
6210 (other_visible_frames_internal): Remove the
6211 called_from_delete_device bogus arg, and hence, remove this
6212 function. Just use other_visible_frames().
6214 * window.c (Fnext_window):
6216 Since next_frame() is guaranteed to return a frame, remove check
6217 for nil inserted in previous patch.
6220 Make code look more like Fnext_window.
6222 Respect the `console' arg when iterating through windows.
6223 Fixes bug: (get-buffer-window buffer t device) not respecting
6225 This function needs more work, as others have pointed out.
6227 * frame.h: Rename prev_frame to previous_frame.
6228 device_matches_console_spec no longer takes a `frame' arg.
6233 Use EMACS_BLOCK_SIGNAL instead of sigblock.
6234 From "Golubev I. N." <gin@mo.msk.ru>.
6236 * make-src-depend: Fix typo.
6238 2000-09-13 Martin Buchholz <martin@xemacs.org>
6240 * window.c (Fnext_window):
6241 next_frame() might return nil, not a frame.
6243 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6245 * frame.c (next_frame_internal):
6246 We've passed a frame if we've passed its device.
6248 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6249 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6251 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
6253 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6254 Allow option to suppress accelerators in menu/dialog items.
6255 (populate_or_checksum_helper): Pass dialog title through above.
6257 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
6259 * event-msw.c (mswindows_key_to_emacs_keysym):
6260 Add "pause" key, fix "menu" key.
6262 2000-09-09 Martin Buchholz <martin@xemacs.org>
6264 * eval.c (reinit_vars_of_eval):
6265 Increase max_lisp_eval_depth to 1000,
6266 required for thai-xtis.el to byte-compile under some circumstances.
6268 2000-09-04 Martin Buchholz <martin@xemacs.org>
6270 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6273 2000-09-01 Martin Buchholz <martin@xemacs.org>
6275 * make-src-depend: Make the generated Makefiles smaller.
6277 * s/hpux.h (SETUP_SLAVE_PTY):
6278 Provide a %d in the format string for the errno argument.
6280 * editfns.c (Ftemp_directory):
6282 Avoid buffer overrun on very long file name.
6284 * input-method-xlib.c (XIM_init_device):
6285 6th parameter of XRegisterIMInstantiateCallback has different
6286 pointer types on different OSes, so simply cast to (void *).
6288 * unexhp9k800.c: Warning fixes. Fiddly changes.
6290 * sysdll.c (dll_open):
6291 shl_load will hang hard if passed a NULL filename.
6292 Simply return NULL for compatibility with dlopen.
6293 * sysdll.c: Conform to XEmacs coding standards.
6295 * sysdep.c (get_pty_max_bytes):
6296 Support pty input lines longer than 512 bytes on HP-UX 10.20.
6298 2000-08-31 Martin Buchholz <martin@xemacs.org>
6300 * tooltalk.c: Add #include <syssignal.h>
6302 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
6304 * s/hpux.h: Don't use undefined function sigunblock().
6306 2000-08-31 Martin Buchholz <martin@xemacs.org>
6308 * config.h.in: Add HAVE_BALLOON_HELP.
6309 * emacs.c: Use HAVE_BALLOON_HELP.
6310 * Makefile.in.in (x_objs):
6311 Make Balloon Help conditional on finding shape.h.
6313 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
6315 * syntax.c (regex_emacs_buffer_p): New variable.
6316 * syntax.h (regex_emacs_buffer_p): extern.
6317 * search.c (looking_at_1):
6319 (fast_string_match):
6320 (search_buffer): Set regex_emacs_buffer_p.
6321 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6322 when before_dot, at_dot, after_dot.
6324 2000-08-23 Andy Piper <andy@xemacs.org>
6326 * gui-x.c (popup_selection_callback): Only set action_occurred
6327 when we really have an image instance.
6328 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6330 2000-08-23 Andy Piper <andy@xemacs.org>
6332 * gui-msw.c (mswindows_handle_gui_wm_command): set
6334 * gui-x.c (popup_selection_callback): ditto.
6336 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6337 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6338 (struct Lisp_Image_Instance): add action_occurred flag.
6340 * glyphs.c (redisplay_subwindow): use action_occurred flag.
6341 (image_instance_changed): ditto.
6342 (reset_frame_subwindow_instance_cache): only unmap windows - do
6343 not remove them from the cache also.
6345 * glyphs-widget.c (tab_control_update): better debug.
6346 (progress_gauge_update): ditto.
6347 (layout_update): ditto.
6348 (layout_instantiate): ditto.
6349 (tab_control_order_only_changed): cope with null pending items.
6351 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6352 debug. Force selection of an item when an action occurred. Cope
6353 with null pending_items.
6354 (mswindows_progress_gauge_redisplay): better debug.
6355 * glyphs-x.c (x_tab_control_redisplay): ditto.
6357 * redisplay.c (redisplay_frame): reset the frame cache if the
6360 * window.c (Fset_window_configuration): potentially re-enable
6362 (window_unmap_subwindows): need to finalize instances here since
6363 it is only used in mark_window_as_deleted.
6365 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
6367 * nas.c (SndOpenDataForReading):
6368 nas.c (WaveOpenDataForReading):
6369 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6370 Somehow escaped from the 2000-08-14 patch.
6372 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6374 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6375 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6377 2000-08-21 Andy Piper <andy@xemacs.org>
6379 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6380 window if it is not already displayed.
6382 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6383 it is not already displayed.
6385 * window.c (Fset_window_configuration): don't reset the frame
6388 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6389 instances from the frame cache if we are actually finalizing them.
6390 (reset_frame_subwindow_instance_cache): reset frame cache only
6391 after unmapping everything.
6392 (map_subwindow): set displayed flag after mapping.
6394 2000-08-21 Martin Buchholz <martin@xemacs.org>
6396 * data.c (indirect_function):
6397 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6399 * eval.c (function_argcount):
6400 Use original function when signaling errors.
6402 2000-08-18 Andy Piper <andy@xemacs.org>
6404 * frame.c (delete_frame_internal): use new
6405 free_frame_subwindow_instances name.
6407 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6408 (add_tab_item): make return type correct.
6409 (mswindows_tab_control_instantiate): assert index of tab.
6410 (mswindows_tab_control_redisplay): Re-code to use
6411 gui_item_equal_sans_selected and gui_item_list_find_selected.
6413 * glyphs-widget.c (tab_control_update): Correct comment.
6415 * window.c (window_unmap_subwindows): use new
6416 unmap_subwindow_instance_cache_mapper.
6417 (window_unmap_subwindows_cache_mapper): deleted.
6418 (Fset_window_configuration): comparisons should now be with
6419 EQ. Preserve the subwindow instance cache across configuration
6421 (allocate_window): ditto.
6422 (make_dummy_parent): ditto.
6424 * glyphs.c (free_frame_subwindow_instances): rename from
6425 free_frame_subwindow_instance_cache. finalize all instances rather
6426 than just those in the display cache.
6427 (finalize_all_subwindow_instances): walk windows unmapping and
6428 finalizing subwindows.
6429 (unmap_subwindow_instance_cache_mapper): moved from
6430 window.c. Allow finalization as well as unmapping.
6432 * gui.c (gui_item_list_find_selected): new function.
6434 * gui.h (gui_item_list_find_selected): declare.
6436 * glyphs-x.c (x_tab_control_redisplay): pick tab
6437 explicitly. Re-code to use gui_item_equal_sans_selected and
6438 gui_item_list_find_selected.
6440 * glyphs-x.h: add lwlib-utils.h
6442 * buffer.c (Frecord_buffer): undo previous change.
6444 2000-08-09 Vin Shelton <acs@xemacs.org>
6446 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6447 possible. Create temporary files more securely. The patch was
6448 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6449 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
6450 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6453 2000-08-07 Ben Wing <ben@xemacs.org>
6455 * getloadavg.c: remove duplicate (and windows-breaking)
6456 includes of fcntl.h and sys/file.h.
6458 * nt.c: remove duplicate getloadavg() definition.
6460 * sysdll.h (Qdll_filename_encoding): add missing stand-in
6463 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
6465 * eval.c (function_argcount): If function needs to be autoloaded
6466 actually use the loaded definition.
6469 2000-08-05 Ben Wing <ben@xemacs.org>
6471 * getloadavg.c: add prototype for getloadavg(). remove
6472 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6473 of the code). remove duplicate header includes.
6475 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6477 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6478 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6479 useful load average.
6481 * alloc.c (reinit_alloc_once_early): removed references to
6482 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6483 the lisp vars are the only things referencing the malloc_sbrk_*
6484 vars, and they were already if 0'd out. these vars only exist
6485 in the older malloc.c, which is basically unused, and they're
6486 only for informational purposes.
6488 * m\*.h: removed useless VIRT_ADDR_VARIES.
6490 * m\powerpc.h: removed stray NO_ARG_ARRAY.
6492 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
6494 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6495 color if the image is a mono pixmap.
6497 2000-07-30 Ben Wing <ben@xemacs.org>
6499 * Makefile.in.in (release):
6502 * buffer.c (directory_is_current_directory):
6503 * dired-msw.c (mswindows_get_files):
6505 * dired.c (Fdirectory_files):
6506 * dired.c (file_name_completion_stat):
6507 * dired.c (Ffile_attributes):
6508 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6509 preprocessor tricks, to avoid problems on some machines
6512 * callproc.c (egetenv): GC docs.
6515 * console-msw.h (struct mswindows_dialog_id):
6516 * lrecord.h (lrecord_type):
6517 New object for use with MSW dialogs.
6519 * console.h (struct console_methods):
6520 New enable/disable frame methods, for proper modal dialogs.
6522 * device-msw.c (msprinter_default_printer): Fix to follow
6523 proper Mule conventions.
6526 * device-msw.c (signal_open_printer_error):
6527 * device-msw.c (msprinter_init_device):
6528 * device-msw.c (ensure_not_printing):
6529 * device-msw.c (plist_get_margin):
6530 * device-msw.c (Fmsprinter_select_settings):
6531 * device-msw.c (finalize_devmode):
6532 * device-msw.c (Fmsprinter_settings_despecialize):
6533 * device-msw.c (signal_enum_priner_error):
6534 * extents.c (decode_extent):
6535 * extents.c (decode_map_extents_flags):
6536 * extents.c (decode_extent_at_flag):
6537 * extents.c (Fextent_at):
6538 * extents.c (Fextents_at):
6539 * extents.c (symbol_to_glyph_layout):
6540 [[[[2]]]] Use structured errors.
6543 * dialog-msw.c (mswindows_is_dialog_msg):
6544 * dialog-msw.c (mark_mswindows_dialog_id):
6545 * dialog-msw.c (dialog_proc):
6546 * dialog-msw.c (handle_question_dialog_box):
6547 * dialog-msw.c (syms_of_dialog_mswindows):
6548 Define new object to clean up marking; use it as a dialog identifier.
6549 Call new delete-dialog-box-hook.
6551 * dialog-x.c (dbox_selection_callback):
6552 * dialog-x.c (dbox_descriptor_to_widget_value):
6553 * dialog-x.c (x_make_dialog_box_internal):
6554 Call new delete-dialog-box-hook.
6558 * dialog.c (syms_of_dialog):
6559 * dialog.c (vars_of_dialog):
6560 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6563 * eval.c (signal_call_debugger):
6564 when noninteractive, output stack traces on the console instead
6565 of in a (never-seen) buffer.
6567 * eval.c (signal_type_error):
6568 * eval.c (invalid_argument_2):
6570 new funs for use w/structured errors.
6573 * event-Xt.c (x_to_emacs_keysym):
6574 * event-Xt.c (describe_event):
6575 * event-Xt.c (emacs_Xt_event_handler):
6576 * event-Xt.c (vars_of_event_Xt):
6578 * event-msw.c (mswindows_wnd_proc):
6579 * event-msw.c (vars_of_event_mswindows):
6580 rename {x,mswindows}-debug-events to debug-{}-events for
6581 consistency with other debug-foo variables.
6584 document next-event more clearly.
6586 * fileio.c (Ffile_name_directory):
6587 * fileio.c (Ffile_name_nondirectory):
6588 * fileio.c (Funhandled_file_name_directory):
6589 * fileio.c (file_name_as_directory):
6590 * fileio.c (Ffile_name_as_directory):
6591 * fileio.c (directory_file_name):
6592 * fileio.c (Fdirectory_file_name):
6593 * fileio.c (Fmake_temp_name):
6594 * fileio.c (Ffile_truename):
6595 * fileio.c (Fsubstitute_in_file_name):
6596 * fileio.c (expand_and_dir_to_file):
6597 * fileio.c (barf_or_query_if_file_exists):
6598 * fileio.c (check_executable):
6599 * fileio.c (Ffile_exists_p):
6600 * fileio.c (Ffile_writable_p):
6601 * fileio.c (Ffile_directory_p):
6602 * fileio.c (Ffile_regular_p):
6603 * fileio.c (Ffile_modes):
6604 * fileio.c (Ffile_newer_than_file_p):
6605 * fileio.c (Fverify_visited_file_modtime):
6606 * fileio.c (Fset_visited_file_modtime):
6607 * fileio.c (auto_save_1):
6612 * frame-msw.c (mswindows_init_frame_1):
6613 * frame-msw.c (mswindows_enable_frame):
6614 * frame-msw.c (error_frame_unsizable):
6615 * frame-msw.c (msprinter_init_frame_1):
6616 * frame-msw.c (msprinter_init_frame_3):
6617 * frame-msw.c (console_type_create_frame_mswindows):
6619 implement new enable/disable frame methods.
6622 * frame-x.c (x_enable_frame):
6623 * frame-x.c (console_type_create_frame_x):
6624 implement new enable/disable frame methods.
6627 * frame.c (Fdisable_frame):
6628 * frame.c (syms_of_frame):
6629 * frame.h (struct frame):
6630 implement new enable/disable frame methods/functions.
6635 * glyphs-msw.c (mswindows_widget_instantiate):
6636 comment that initial-focus should be implemented.
6639 * glyphs-widget.c (check_valid_instantiator):
6640 * glyphs-widget.c (check_valid_orientation):
6641 * glyphs-widget.c (check_valid_tab_orientation):
6642 * glyphs-widget.c (check_valid_justification):
6643 * glyphs-widget.c (check_valid_border):
6644 * glyphs-widget.c (check_valid_callback):
6645 * glyphs-widget.c (check_valid_int_or_function):
6646 * glyphs-widget.c (check_valid_string_or_vector):
6647 * glyphs-widget.c (check_valid_item_list_1):
6648 * glyphs-widget.c (widget_validate):
6649 * glyphs-widget.c (combo_box_validate):
6650 * glyphs-widget.c (widget_instantiate):
6651 * glyphs-widget.c (syms_of_glyphs_widget):
6652 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6653 * glyphs-widget.c (image_instantiator_combo_box):
6654 * glyphs-widget.c (image_instantiator_scrollbar):
6655 * glyphs-widget.c (image_instantiator_tab_control):
6656 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6658 support (unimplemented) keyword initial-focus.
6659 reindent long macros.
6661 * glyphs-x.c (x_redisplay_widget):
6662 * glyphs-x.c (x_button_instantiate):
6663 * glyphs-x.c (x_button_redisplay):
6664 * glyphs-x.c (x_progress_gauge_instantiate):
6665 * glyphs-x.c (x_edit_field_instantiate):
6666 * glyphs-x.c (x_combo_box_instantiate):
6667 * glyphs-x.c (x_tab_control_instantiate):
6668 * glyphs-x.c (x_label_instantiate):
6670 * gui-x.c (button_item_to_widget_value):
6671 * gui-x.c (gui_items_to_widget_values_1):
6672 * gui-x.c (gui_item_children_to_widget_values):
6673 * gui-x.c (gui_items_to_widget_values):
6675 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6676 add new flag to gui-parsing routines to indicate whether
6677 accelerator specs should be supported.
6679 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6681 * glyphs.h (struct Lisp_Image_Instance):
6682 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6683 add initial-focus flag.
6686 * gui.c (syms_of_gui):
6687 * gui.c (vars_of_gui):
6688 clean up menu-no-selection-hook.
6691 support delete-dialog-box-hook.
6693 * lread.c (Fload_internal):
6694 * lread.c (locate_file_in_directory_mapper):
6698 * lrecord.h (struct toolbar_button):
6699 * lrecord.h (syms_of_toolbar):
6700 document how to create a new object.
6702 * menubar-msw.c (mswindows_char_is_accelerator):
6703 may be called on frames w/o menus.
6705 * menubar.c (vars_of_menubar):
6706 clean up :filter docs.
6713 * process-nt.c (validate_signal_number):
6714 * process-nt.c (signal_cannot_launch):
6715 * process-nt.c (nt_create_process):
6716 * process-nt.c (nt_send_process):
6717 * process-nt.c (nt_kill_child_process):
6718 * process-nt.c (nt_open_network_stream):
6719 * process-nt.c (syms_of_process_nt):
6721 delete quote-handling. call new lisp code that does it better.
6723 * process-unix.c (connect_to_file_descriptor):
6724 * process-unix.c (allocate_pty):
6725 * process-unix.c (unix_send_process):
6726 * process-unix.c (unix_kill_child_process):
6727 * process-unix.c (unix_open_network_stream):
6728 * process-unix.c (unix_open_multicast_group):
6732 * process.c (Fstart_process_internal):
6733 (2). need to canonicalize process path even if absolute.
6735 * select-msw.c (symbol_to_ms_cf):
6736 * select-msw.c (ms_cf_to_symbol):
6737 * select-msw.c (cf_is_autofreed):
6738 * select-msw.c (mswindows_destroy_selection):
6740 * select.c (syms_of_select):
6742 support dibv5, fix bugs. (from Mike Alexander)
6744 * select.c (Fget_selection_internal):
6745 * select.c (select_convert_out):
6748 * sysdep.c (xemacs_stat):
6753 but keep original stat() here because we provide encapsulation
6757 * sysfile.h (fstat):
6758 remove stat garbage.
6762 don't include tchar.h. it's inappropriate because it makes
6763 compile-time distinctions when we want runtime distinctions.
6764 (we provide our own tchar replacements)
6767 use default object printer for toolbar-button.
6770 make sure we don't encapsulate.
6772 * window.c (vars_of_window):
6773 emphasize that temp-buffer-show-hook is obsolete.
6775 2000-08-05 Martin Buchholz <martin@xemacs.org>
6777 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6778 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6780 * events.c (Fevent_timestamp_lessp):
6781 Not 64-bit clean. Use EMACS_INT, not int.
6783 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
6785 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6786 unsigned int and changed the last enum to
6787 lrecord_type_last_built_in_type.
6788 (lrecord_implementations_table): changed prototype to know how
6789 long the array is supposed to be.
6790 (lrecord_type_count): new unsigned int to keep track of the
6791 current number of lisp lrecord types.
6792 (DEFINE_EXTERNAL_LRECORD):
6793 (DECLARE_EXTERNAL_LRECORD): Added these two for external
6794 dynamic-modules to declare new lisp types. They are the same
6795 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6796 int for each new type, and increment lrecord_type_count by 1.
6798 * alloc.c (lrecord_implementations_table): Changed to reference
6799 lrecord_type_last_built_in_type for the size of the array.
6800 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6802 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6804 * glyphs.h (check_valid_item_list): Renamed from
6805 check_valid_item_list_1.
6807 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6809 * select.c (Qselect_coerce): New.
6810 * select.c (Vselection_coercion_alist): New.
6811 * select.c (syms_of_select): Declare.
6812 * select.c (get-selection-internal): Use it.
6813 Use the new select-coerce functionality.
6815 * select.c (select_coerce): New.
6816 * select.h (select_coerce): Declare.
6817 New function to coerce one type of data into another.
6819 2000-08-03 Martin Buchholz <martin@xemacs.org>
6821 * callproc.c (Fcall_process_internal):
6822 (Fcall_process_internal):
6823 * process-unix.c (unix_create_process):
6824 Save and restore the value of errno, so that error messages are accurate.
6826 2000-08-01 Martin Buchholz <martin@xemacs.org>
6828 * elhash.c (print_hash_table):
6829 Fix printing of hash tables to also use `key-and-value' instead of `t'.
6830 Prettify docstrings and indentation.
6832 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
6834 * window.c (Fwindow_pixel_edges): Subtract frame border and
6837 2000-07-31 Andy Piper <andy@xemacs.org>
6839 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6840 will acknowledge the change.
6842 * glyphs.h: declare tab_control_order_only_changed.
6844 * glyphs-x.c (x_tab_control_redisplay): use
6845 tab_control_order_only_changed.
6847 * glyphs-widget.c (tab_control_order_only_changed): new function.
6849 * glyphs-msw.c (mswindows_tab_control_redisplay): use
6850 tab_control_order_only_changed.
6852 * gui.c (gui_item_equal_sans_selected): new function.
6853 (gui_item_equal): use it.
6855 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6856 :properties in favor of :items..
6858 * glyphs-widget.c (check_valid_item_list): rename from
6859 check_valid_item_list_1.
6860 (check_valid_item_list_1): renamed.
6861 (combo_box_validate): deprecate :properties in favor of :items.
6862 (widget_instantiate): ditto.
6863 (tab_control_update): ditto.
6864 (image_instantiator_combo_box): ditto.
6865 (image_instantiator_tree_view): ditto.
6866 (image_instantiator_tab_control): ditto.
6867 (layout_post_instantiate): remove dead code.
6869 * print.c (debug_print_no_newline): only write to debugger if in
6872 * elhash.c (Fmake_hash_table): update doc string.
6874 * event-msw.c (mswindows_wnd_proc): don't allow processing of
6875 messages whilst in GC. This at least stops XEmacs crashing but has
6876 the potential for wierd behaviour.
6878 2000-07-31 Martin Buchholz <martin@xemacs.org>
6881 Make existence of s&m files optional.
6883 * s/bsd386.h: Remove HAVE_GETLOADAVG.
6884 * s/freebsd.h: Remove HAVE_GETLOADAVG.
6885 * s/gnu.h: Remove HAVE_GETLOADAVG.
6886 * s/netbsd.h: Remove HAVE_GETLOADAVG.
6887 * s/sol2.h: Remove HAVE_GETLOADAVG.
6888 * lisp.h: Remove getloadavg() declaration.
6890 Include <sys/loadavg.h> if available.
6891 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6892 * config.h.in: Group together getloadavg()-related macros.
6893 Use only configure-time tests to detect getloadavg().
6895 2000-07-30 Martin Buchholz <martin@xemacs.org>
6897 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6899 2000-07-25 Andy Piper <andy@xemacs.org>
6901 * syswindows.h: add tchar.h for native builds.
6903 * frame.c (syms_of_frame): remove set-glyph-image.
6905 * general-slots.h: add Qset_glyph_image.
6907 * glyphs-widget.c (layout_update): add domain arg to
6909 (syms_of_glyphs_widget): remove set-glyph-image.
6911 2000-07-23 Ben Wing <ben@xemacs.org>
6913 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6916 2000-07-22 Andy Piper <andy@xemacs.org>
6918 * symsinit.h: add syms_of_win32().
6920 * gui-msw.c (syms_of_gui_mswindows): remove
6921 Fmswindows_shell_execute.
6922 (Fmswindows_shell_execute): moved to win32.c.
6924 * emacs.c (main_1): add syms_of_win32 ().
6926 * win32.c (init_potentially_nonexistent_functions): rewrite in
6927 compiler-friendly terms.
6928 (Fmswindows_shell_execute): move here from gui-msw.c.
6929 (syms_of_win32): new.
6931 * device-msw.c (Fmswindows_printer_list): clean up args to
6933 Don't include tchar under cygwin or mingw.
6934 (msprinter_default_printer): make cygwin-friendly.
6936 2000-07-21 Andy Piper <andy@xemacs.org>
6938 * glyphs-widget.c (image_instantiator_tree_view): use tab
6939 control's update function.
6940 (layout_property): new function. Retrieve items.
6942 * glyphs-msw.c (mswindows_tree_view_redisplay): new
6943 function. Re-populate the tree view from the pending items.
6945 * glyphs.c (instantiate_image_instantiator): Make sure the domain
6946 is designated the parent if the domain is an image instance. This
6947 is needed so that dirtiness can be cascade up the hierarchy and
6948 thus for layout children to be redisplayed correctly.
6949 (allocate_image_instance): rename glyph -> parent.
6951 * redisplay.h: change redisplay_output_layout signature.
6953 * redisplay-msw.c (mswindows_output_display_block): use domain
6956 * redisplay-x.c (x_output_display_block): use domain arg.
6958 2000-07-10 Andy Piper <andy@xemacs.org>
6960 * window.c (Fset_window_configuration): add comment.
6962 * redisplay-output.c (compare_runes):
6963 (redisplay_output_subwindow): redisplay rather than update subwindow.
6964 (redisplay_output_layout): ditto.
6966 * redisplay-msw.c (mswindows_frame_output_end):
6967 (mswindows_frame_output_end): make defer window pos optional.
6969 * lisp.h: add Flast.
6971 * glyphs.h (struct image_instantiator_methods): add dest_mask top
6972 normalize method. Change update method to be for changed
6973 instantiators. Add redisplay method. Change signature of layout
6975 (struct Lisp_Image_Instance): add instantiator.
6976 (IMAGE_INSTANCE_INSTANTIATOR): new.
6977 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6978 (XIMAGE_INSTANCE_INSTANTIATOR): new.
6979 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6982 (find_instantiator_differences): new function.
6983 (Fset_instantiator_property): new convenience function.
6984 (check_image_instance_structure): strictly check for vector
6986 (normalize_image_instantiator): make non-static.
6987 (instantiate_image_instantiator): pass on dest_mask and use new
6988 signatures for image_instance_layout and friends.
6989 (mark_image_instance): mark the instantiator. Mark the subwindow
6990 face not the widget face.
6991 (image_instance_equal): add instantiator.
6992 (image_instance_hash): ditto.
6993 (allocate_image_instance): ditto.
6994 (Fset_image_instance_property): removed.
6995 (Fimage_instance_file_name): ditto.
6996 (Fcolorize_image_instance): ditto.
6997 (image_instance_layout): add offsets to be set.
6998 (update_image_instance): new function. update an image instance
6999 from its changed instantiator.
7000 (inherit_normalize): add dest_mask.
7001 (xbm_normalize): ditto.
7002 (xface_normalize): ditto.
7003 (xpm_normalize): ditto.
7004 (text_update): set_property -> update.
7005 (image_instantiate): use the glyph identity as a hash key, not the
7007 (glyph_width): use new image_instance_layout signature.
7008 (glyph_ascent): ditto.
7009 (glyph_descent): ditto.
7010 (glyph_height): ditto.
7011 (glyph_query_geometry): ressurrect.
7012 (glyph_layout): ditto.
7013 (redisplay_subwindow): update -> redisplay.
7014 (syms_of_glyphs): add Fset_instantiator_property.
7015 (image_instantiator_format_create): set_property -> update.
7018 (autodetect_normalize): add dest_maks to signature.
7019 (x_redisplay_subwindow): update -> redisplay.
7020 (x_redisplay_widget): ditto.
7021 (x_button_redisplay): ditto.
7022 (x_progress_gauge_redisplay): ditto.
7023 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7025 (console_type_create_glyphs_x): update -> redisplay.
7026 (image_instantiator_format_create_glyphs_x): ditto.
7029 (check_valid_instantiator): disallow glyphs in the instantiator,
7030 they must now be vectors.
7031 (check_valid_instantiator_list): ditto.
7032 (glyph_instantiator_to_glyph): use internal symbol rather than
7034 (widget_update): renamed from widget_set_property. Call cascaded
7036 (redisplay_widget): renamed from update_widget.
7037 (widget_layout): image_instance_layout now takes position as well
7039 (widget_normalize): ditto.
7040 (widget_instantiate): ditto.
7041 (tab_control_query_geometry) ditto.:
7042 (tab_control_update): renamed from tab_control_set_property.
7043 (progress_gauge_update): set_property -> update.
7044 (layout_normalize): rewrite so that child instantiators are
7046 (layout_update): new function. Create glyphs from the normalized
7047 children and cope with any other layout keywords. We do not
7048 instantiate children here that will be take care of by
7049 redisplay_output_layout.
7050 (layout_instantiate): call layout_update and not much else.
7051 (layout_post_instantiate): not sure whether this is needed
7053 (layout_query_geometry): query glyph geometry rather than
7054 image_instance geometry.
7055 (layout_layout): set offsets from pass in parameters. Use glyph
7056 geometry and layout functions rather than image instance ones.
7057 (native_layout_layout): ditto.
7058 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7059 (image_instantiator_widget): set_property -> update.
7060 (image_instantiator_buttons): ditto.
7061 (image_instantiator_progress_guage): ditto.
7062 (image_instantiator_tab_control): ditto.
7063 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7064 (image_instantiator_layout): add update method.
7066 * glyphs-msw.c (bmp_normalize):
7067 (mswindows_resource_normalize): add dest_mask so that it can be
7068 proprogated by layout_normalize.
7069 (begin_defer_window_pos): make optional because it may not be the
7070 right thing to do and it introduces differences with X.
7071 (mswindows_unmap_subwindow): ditto.
7072 (mswindows_map_subwindow): ditto.
7073 (mswindows_redisplay_subwindow): renamed from
7074 mswindows_update_subwindow.
7075 (mswindows_redisplay_widget): ditto.
7076 (mswindows_button_redisplay): renamed from
7077 mswindows_button_update. Update is now what the instantiation
7078 function does for a changed instantiator.
7079 (mswindows_progress_gauge_instantiate): set the progress value
7080 here if appropriate.
7081 (mswindows_tab_control_redisplay): cope with re-ordering of the
7082 members of the tab widget by simply selecting the new top
7083 widget. This makes things appear ok if you click on a tab.
7084 (mswindows_combo_box_instantiate): image_instance_layout now takes
7085 position as well as size.
7086 (mswindows_progress_gauge_redisplay): renamed from
7087 mswindows_progress_gauge_update.
7088 (console_type_create_glyphs_mswindows): fix update -> redisplay.
7089 (image_instantiator_format_create_glyphs_mswindows): ditto.
7091 * glyphs-eimage.c (jpeg_normalize):
7094 (tiff_normalize): add dest_mask so that it can be proprogated by
7099 (hash_table_weakness_validate):
7100 (decode_hash_table_weakness):
7101 (Fhash_table_weakness):
7103 (syms_of_elhash): use Ben's naming scheme for hashtable types..
7105 * console.h (struct console_methods): move update_* to
7108 2000-07-20 Ben Wing <ben@xemacs.org>
7110 * *.[ch] (XSETOBJ): remove unused middle argument.
7111 lisp-disunion.h: correct wrap_object() to one argument.
7113 2000-07-15 Ben Wing <ben@xemacs.org>
7116 * s/cygwin32.h (CYGWIN_CONV_PATH):
7117 Add missing logb prototype for v1.1.
7118 Use post-b20 names and alias to pre-b20 names when pre-b20.
7120 * s/windowsnt.h: [5].
7122 2000-07-15 Ben Wing <ben@xemacs.org>
7124 * Makefile.in.in (x_objs):
7125 * Makefile.in.in (sheap_objs):
7126 * Makefile.in.in (objs):
7127 added win32.o, cosmetic cleanups.
7129 * alloc.c (Fmake_byte_code):
7130 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7131 etc. macros which declare their own args now.
7133 * alloc.c (syms_of_alloc):
7134 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7137 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7139 * buffer.c (Fget_file_buffer):
7140 Fixed GCPRO problem.
7142 * buffer.c (get_truename_buffer):
7143 Fixed comment about GC checking.
7145 * buffer.c (syms_of_buffer):
7146 Undeclared those dedicated frame funs.
7150 Define convenience macros for internal/external conversions.
7151 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7152 and Qenvironment_variable_encoding for cleaner code.
7155 Remove dedicated-frame; in lisp.
7157 * bytecode.c (funcall_compiled_function):
7160 * bytecode.c (syms_of_bytecode):
7164 * console-msw.c (mswindows_show_console): Rewrote.
7166 * console-msw.c (Fmswindows_debugging_output): New.
7167 Sends to OutputDebugString (special MSWin debugger interface).
7169 * console-msw.c (Fmswindows_message_box):
7170 Fixed stupid bugs so it works when called from kill-emacs.
7172 * console-msw.c (syms_of_console_mswindows):
7173 Declare Fmswindows_debugging_output.
7176 New MSWin prototypes.
7178 * console-msw.h (struct mswindows_frame):
7179 New entry last-click-mods for improved button-modifier support.
7181 * console-msw.h (FRAME_MSWINDOWS_POPUP):
7182 New struct entry `popup' with corresponding accessor.
7185 * console-x.c (split_up_display_spec):
7186 * console-x.c (get_display_arg_connection):
7187 * console-x.c (x_semi_canonicalize_console_connection):
7188 * console-x.c (x_canonicalize_device_connection):
7189 [[[6]]]: Change char to more specific type.
7190 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7192 * console-x.c (x_semi_canonicalize_console_connection):
7193 * console-x.c (x_canonicalize_device_connection):
7194 [[[9]]]: Fix up error signalling to use new structured error system.
7197 [[[4]]]: Define codesys aliases:
7198 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7199 Qx_color_name_encoding, Qx_display_name_encoding.
7201 * console.h (struct console_methods):
7202 New method make_dialog_box_internal supersedes older
7203 popup_dialog_box method.
7206 Define many new errors, part of new structured errors.
7208 * data.c (init_errors_once_early):
7209 * data.c (syms_of_data):
7212 * device-msw.c (mswindows_init_device):
7213 [[[5]]]: Cleanup to support NT 3.51.
7215 * device-msw.c (decode_devmode): Cleanup.
7217 * device-msw.c (mswindows_handle_print_setup_dialog_box):
7218 * device-msw.c (mswindows_handle_print_dialog_box):
7219 * device-msw.c (mswindows_handle_page_setup_dialog_box):
7220 * device-msw.c (syms_of_device_mswindows):
7221 Delete the dialog box primitives recently introduced by Kirill and
7222 instead interface to general dialog box interface.
7225 * device-x.c (compute_x_app_name):
7226 * device-x.c (x_init_device):
7227 * device-x.c (Fx_valid_keysym_name_p):
7228 * device-x.c (Fx_set_font_path):
7232 * device.h (wrap_device): New.
7233 First of its kind; meant to replace XSETDEVICE.
7235 * dialog-msw.c: Many file-dialog symbols.
7237 * dialog-msw.c (mswindows_register_popup_frame): New.
7238 * dialog-msw.c (mswindows_is_dialog_msg): New.
7239 For supporting kbd traversal in dialog boxes.
7241 * dialog-msw.c (dialog_proc):
7242 Support hitting ESC in dialogs.
7244 * dialog-msw.c (struct):
7245 Common dialog box errors.
7247 * dialog-msw.c (handle_file_dialog_box): New.
7248 Add file dialog code.
7250 * dialog-msw.c (handle_question_dialog_box):
7251 Redo existing code to support new question dialog syntax.
7253 * dialog-msw.c (console_type_create_dialog_mswindows):
7254 We support new dialog console method.
7256 * dialog-msw.c (syms_of_dialog_mswindows):
7257 * dialog-msw.c (vars_of_dialog_mswindows):
7258 New file dialog symbols, vars.
7261 * dialog-x.c (maybe_run_dbox_text_callback):
7262 * dialog-x.c (dbox_descriptor_to_widget_value):
7263 * dialog-x.c (x_make_dialog_box_internal):
7264 * dialog-x.c (console_type_create_dialog_x):
7265 Mule-ize entire file.
7266 Redo to support question dialog syntax.
7270 * dialog.c (Fmake_dialog_box_internal):
7271 * dialog.c (syms_of_dialog):
7272 Kill old popup-dialog-box, replace with new primitive.
7273 Just call device method or signal error.
7275 * eldap.c (Fldap_open):
7276 * eldap.c (Fldap_search_basic):
7277 * eldap.c (Fldap_add):
7278 * eldap.c (Fldap_modify):
7283 * emacs.c (make_arg_list_1):
7284 * emacs.c (make_arg_list):
7285 Mule-ize call to dll_init().
7289 * emacs.c (make_argc_argv):
7290 * emacs.c (free_argc_argv):
7291 * emacs.c (init_cmdargs):
7293 * emacs.c (Fkill_emacs):
7294 * emacs.c (Fdump_emacs):
7295 Update comments about what can be used in syms_* etc.
7296 Call init_win32() when necessary.
7297 Fix up MS Win dialog box in kill-buffer to actually work right.
7308 * eval.c (condition_case_3):
7310 * eval.c (function_argcount):
7311 * eval.c (funcall_lambda):
7314 * eval.c (type_error): New.
7315 * eval.c (maybe_type_error): New.
7316 * eval.c (continuable_type_error): New.
7317 * eval.c (maybe_continuable_type_error): New.
7318 * eval.c (type_error_with_frob): New.
7319 * eval.c (maybe_type_error_with_frob): New.
7320 * eval.c (continuable_type_error_with_frob): New.
7321 * eval.c (maybe_continuable_type_error_with_frob): New.
7322 New functions for use with structured errors.
7325 * event-Xt.c (x_event_to_emacs_event):
7326 Buttons are now modifiers too.
7328 * event-Xt.c (emacs_Xt_current_event_timestamp):
7329 Implement new event method.
7330 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7333 * event-msw.c (ntpipe_shove_writer): [5].
7334 * event-msw.c (mswindows_enqueue_mouse_button_event):
7335 * event-msw.c (mswindows_drain_windows_queue):
7336 * event-msw.c (mswindows_wnd_proc): [7].
7337 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7338 * event-msw.c (mswindows_modifier_state):
7339 Throughout: support new button modifiers.
7341 * event-msw.c (emacs_mswindows_current_event_timestamp):
7342 Implement new event method.
7343 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7346 * event-stream.c (event_stream_current_event_timestamp): New.
7347 * event-stream.c (maybe_kbd_translate): New functionality.
7348 * event-stream.c (vars_of_event_stream):
7349 Document new kbd-translate-table functionality.
7351 * event-stream.c (Fcurrent_event_timestamp): New.
7352 New primitive for use in fabricated events.
7353 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7355 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7358 * events.c (Fmake_event):
7359 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7363 * events.c (format_event_object): fix gcc warnings.
7365 * events.c (Fevent_timestamp): Document new primitives.
7367 * events.c (TIMESTAMP_HALFSPACE): New.
7369 * events.c (Fevent_timestamp_lessp): New. New primitive for
7370 comparing timestamps correctly (half-space algorithm).
7372 * events.c (Fevent_modifier_bits): Doc fix.
7374 * events.c (Fevent_modifiers): Major doc addition.
7375 * events.c (event_x_y_pixel_internal): Typo fix.
7376 * events.c (syms_of_events): Declare new primitives.
7379 Update long comment for button modifiers, timestamps.
7381 * events.h (struct event_stream):
7382 New current_event_timestamp method.
7385 * extents.c (extent_in_region_p):
7386 * extents.c (decode_extent):
7387 * extents.c (Fset_extent_parent):
7388 * extents.c (decode_map_extents_flags):
7392 * extents.c (struct extent_at_arg):
7393 * extents.c (decode_extent_at_flag):
7394 * extents.c (extent_at_mapper):
7395 * extents.c (extent_at_bytind):
7396 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7397 * extents.c (Fextents_at): New primitive. [9].
7398 * extents.c (symbol_to_glyph_layout): [9].
7399 Support new primitive `extents-at'.
7402 * extents.c (get_text_property_bytind):
7403 extent_at_bytind has another arg.
7406 * extents.c (syms_of_extents): New primitive.
7408 * file-coding.c (Fmake_coding_system): [1].
7409 * file-coding.c (subsidiary_coding_system): fix gcc warning
7410 * file-coding.c (syms_of_file_coding): [2].
7412 * fileio.c (Fexpand_file_name):
7413 * fileio.c (Fsysnetunam):
7414 * fileio.c (Ffile_exists_p):
7415 * fileio.c (Ffile_executable_p):
7416 * fileio.c (Fverify_visited_file_modtime):
7419 * fileio.c (syms_of_fileio): [2].
7421 * filelock.c (lock_file_1):
7422 * filelock.c (current_lock_owner):
7423 * filelock.c (lock_if_free):
7424 * filelock.c (lock_file):
7425 * filelock.c (unlock_file):
7428 * fns.c (concat): Fix gcc warning.
7431 * fns.c (Fold_member):
7433 * fns.c (Fold_memq):
7434 * fns.c (memq_no_quit):
7436 * fns.c (Fold_assoc):
7438 * fns.c (Fold_assq):
7439 * fns.c (assq_no_quit):
7441 * fns.c (Fold_rassoc):
7443 * fns.c (Fold_rassq):
7444 * fns.c (rassq_no_quit):
7446 * fns.c (Fold_delete):
7448 * fns.c (Fold_delq):
7449 * fns.c (delq_no_quit):
7450 * fns.c (Fremassoc):
7452 * fns.c (remassq_no_quit):
7453 * fns.c (Fremrassoc):
7454 * fns.c (Fremrassq):
7455 * fns.c (remrassq_no_quit):
7460 * frame-msw.c (mswindows_init_frame_1):
7461 * frame-msw.c (mswindows_delete_frame):
7462 Register popups with dialog code so keyboard traversing works.
7464 * frame-tty.c (tty_raise_frame_no_select): [1].
7467 * frame-x.c (x_set_frame_text_value):
7468 * frame-x.c (x_set_frame_properties):
7469 * frame-x.c (x_create_widgets):
7473 * frame.c (Fmouse_pixel_position): Minor doc fixes.
7475 * frame.h (wrap_frame): New.
7476 Macro like wrap_device.
7479 * general.c (SYMBOL):
7480 * general.c (syms_of_general):
7481 Major reorg. This is now just a wrapper and symbols themselves
7482 are listed in general-slots.h.
7484 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7485 * glyphs-msw.c (mswindows_resource_instantiate): [5].
7487 * glyphs-msw.c (mswindows_native_layout_instantiate):
7488 Add DS_CONTROL so keyboard traversal will work.
7491 * glyphs-widget.c (syms_of_glyphs_widget):
7492 Move some symbols to general-slots.h.
7495 * glyphs-x.c (xbm_instantiate_1):
7496 * glyphs-x.c (x_xbm_instantiate):
7497 * glyphs-x.c (x_xface_instantiate):
7498 * glyphs-x.c (autodetect_instantiate):
7499 * glyphs-x.c (cursor_font_instantiate):
7500 * glyphs-x.c (x_update_widget):
7501 * glyphs-x.c (x_widget_instantiate):
7502 * glyphs.c (bitmap_to_lisp_data):
7503 * glyphs.c (pixmap_to_lisp_data):
7506 * glyphs.c (syms_of_glyphs):
7510 * gui-x.c (print_widget_value):
7511 * gui-x.c (menu_separator_style_and_to_external):
7512 * gui-x.c (add_accel_and_to_external):
7513 * gui-x.c (button_item_to_widget_value):
7514 * gui-x.c (gui_items_to_widget_values_1):
7515 * gui-x.c (gui_items_to_widget_values):
7516 * gui-x.c (syms_of_gui_x):
7517 * gui-x.c (vars_of_gui_x):
7518 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
7522 Muleize, prototype changes matching gui-x.c.
7525 * gui.c (separator_string_p):
7526 * gui.c (gui_item_add_keyval_pair):
7527 * gui.c (make_gui_item_from_keywords_internal):
7528 * gui.c (signal_too_long_error):
7529 * gui.c (parse_gui_item_tree_item):
7530 * gui.c (syms_of_gui):
7531 * gui.c (vars_of_gui):
7533 menu-no-selection-hook moved here (used by MSWin).
7534 Move some symbols to general-slots.h.
7538 * insdel.c (get_buffer_pos_char):
7539 * insdel.c (get_buffer_range_char):
7542 * keymap.c (keymap_lookup_directly):
7543 * keymap.c (keymap_store):
7544 * keymap.c (ensure_meta_prefix_char_keymapp):
7545 * keymap.c (describe_map):
7547 Support new button modifiers.
7549 * lisp-disunion.h (wrap_object):
7550 * lisp-disunion.h (XSETOBJ):
7551 Rename make_obj to wrap_object.
7554 * lisp-union.h (make_int):
7555 * lisp-union.h (make_char):
7556 Support wrap_object.
7559 * lisp.h (LIST_LOOP):
7560 * lisp.h (EXTERNAL_LIST_LOOP):
7561 * lisp.h (LIST_LOOP_2):
7562 * lisp.h (EXTERNAL_LIST_LOOP_1):
7563 * lisp.h (EXTERNAL_LIST_LOOP_2):
7564 * lisp.h (EXTERNAL_LIST_LOOP_3):
7565 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7566 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7567 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7568 * lisp.h (EXTERNAL_ALIST_LOOP_5):
7569 * lisp.h (EXTERNAL_ALIST_LOOP_6):
7570 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7571 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7572 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7573 * lisp.h (struct Lisp_Symbol):
7574 * lisp.h (maybe_continuable_error_with_frob):
7575 Fix up section comments.
7576 Add new types for char to indicate usage.
7577 Delete symbols auto-generated from general-slots.h.
7578 Add prototypes for structured error functions.
7579 Add long comments describing looping macros and change interface
7580 so that lvalues are automatically declared.
7581 Add NO_DECLARE macro in case callers want to declare lvalues
7584 * lread.c (read_syntax_error):
7585 * lread.c (continuable_read_syntax_error):
7586 * lread.c (read_structure):
7587 * lread.c (sequence_reader):
7588 * lread.c (read_list_conser):
7589 * lread.c (read_compiled_function):
7590 Rename syntax_error and continuable_syntax_error to avoid clash
7591 with same-named structured error functions.
7593 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7594 * menubar-msw.c (populate_menu_add_item):
7595 * menubar-msw.c (populate_or_checksum_helper):
7600 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7601 Mule-ize whole file.
7603 * menubar.c (Fnormalize_menu_item_name): Add optimization.
7605 * mule-charset.c (Fmake_charset):
7606 * mule-wnnfns.c (Fwnn_set_param):
7609 * ntproc.c (create_child):
7610 * ntproc.c (Fwin32_set_current_locale):
7611 Add comments portending doom.
7614 * objects-msw.c (old_font_enum_callback_2):
7615 * objects-msw.c (font_enum_callback_1):
7616 * objects-msw.c (mswindows_enumerate_fonts):
7620 * objects-x.c (allocate_nearest_color):
7621 * objects-x.c (x_parse_nearest_color):
7622 * objects-x.c (x_initialize_color_instance):
7623 * objects-x.c (x_print_color_instance):
7624 * objects-x.c (x_finalize_color_instance):
7625 * objects-x.c (x_valid_color_name_p):
7626 * objects-x.c (x_initialize_font_instance):
7627 * objects-x.c (x_print_font_instance):
7628 * objects-x.c (valid_x_font_name_p):
7629 * objects-x.c (truename_via_FONT_prop):
7630 * objects-x.c (truename_via_random_props):
7631 * objects-x.c (truename_via_XListFonts):
7632 * objects-x.c (x_font_truename):
7633 * objects-x.c (x_font_instance_truename):
7634 * objects-x.c (x_font_instance_properties):
7635 * objects-x.c (x_list_fonts):
7636 * objects-x.c (x_find_charset_font):
7637 Mule-ize entire file.
7644 * print.c (std_handle_out_external):
7645 * print.c (debug_print_no_newline):
7646 * print.c (syms_of_print):
7647 Output to all debugger kinds in debug-print.
7648 Fix console-output code under MSWin to actually work.
7650 * process-nt.c (send_signal):
7651 * process-nt.c (nt_create_process):
7652 Use newer Unicode macros.
7654 * process-unix.c (unix_create_process):
7655 * process-unix.c (unix_canonicalize_host_name):
7656 * process-unix.c (unix_open_network_stream):
7662 * search.c (syms_of_search):
7665 * select-msw.c (mswindows_destroy_selection):
7668 * select-x.c (symbol_to_x_atom):
7671 * select.c (syms_of_select):
7674 * sound.c (Fplay_sound_file):
7678 * specifier.c (decode_specifier_type):
7679 * specifier.c (Fvalid_specifier_locale_type_p):
7680 * specifier.c (check_valid_locale_or_locale_type):
7681 * specifier.c (decode_locale):
7682 * specifier.c (decode_locale_type):
7683 * specifier.c (decode_locale_list):
7684 * specifier.c (check_valid_domain):
7685 * specifier.c (decode_specifier_tag_set):
7686 * specifier.c (Fcanonicalize_tag_set):
7687 * specifier.c (Fdefine_specifier_tag):
7688 * specifier.c (Fspecifier_tag_predicate):
7689 * specifier.c (check_valid_inst_list):
7690 * specifier.c (check_valid_spec_list):
7691 * specifier.c (decode_how_to_add_specification):
7692 * specifier.c (check_modifiable_specifier):
7693 * specifier.c (specifier_add_spec):
7694 * specifier.c (boolean_validate):
7695 * specifier.c (display_table_validate):
7698 * specifier.c (syms_of_specifier):
7699 Move some symbols to general-slots.h.
7703 * symbols.c (Fmapatoms):
7704 * symbols.c (Fapropos_internal):
7707 * symbols.c (set_default_buffer_slot_variable):
7708 * symbols.c (set_default_console_slot_variable):
7711 * symbols.c (defsymbol_massage_name_1):
7712 * symbols.c (defkeyword_massage_name):
7713 * symbols.c (deferror_1):
7714 * symbols.c (deferror):
7715 * symbols.c (deferror_massage_name_and_message):
7717 * symeval.h (DEFSYMBOL):
7718 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7720 * symbols.c (syms_of_symbols):
7724 * symsinit.h (init_win32): New.
7725 Also new is syms_of_dialog_mswindows.
7728 Add new Unicode macros, missing Cygwin wide-char functions,
7729 convenience conversion macros for Qmswindows_tstr, macros for
7730 encapsulating required MSWin <-> Cygwin filename conversions,
7731 prototype for dynamically-extracted (not in NT 3.51) functions.
7736 * tooltalk.c (Fadd_tooltalk_message_arg):
7737 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7738 * tooltalk.c (Fadd_tooltalk_pattern_arg):
7741 * tooltalk.c (syms_of_tooltalk):
7745 * unexnt.c (unexec):
7746 Fix up headers, declaration of unexec() to be more standard.
7748 2000-07-20 Martin Buchholz <martin@xemacs.org>
7750 * offix.h: Revert change to guard macros - they're used in offix.c!
7752 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7754 * lisp.h: Defsubred Fdelete.
7756 * console-msw.h: (msprinter_default_printer): Added.
7758 * console-msw.c (msprinter_canonicalize_console_connection):
7759 (msprinter_canonicalize_device_connection): Added.
7761 * device-msw.c (msprinter_default_printer):
7762 (Fmswingows_get_default_printer):
7763 (signal_enum_priner_error):
7764 (Fmswingows_printer_list): Added.
7766 2000-07-19 Martin Buchholz <martin@xemacs.org>
7768 * XEmacs 21.2.35 is released.
7770 2000-07-19 Martin Buchholz <martin@xemacs.org>
7772 * select-x.c (x_handle_selection_request):
7773 Text selected in xemacs and pasted into xterm failed to appear.
7774 Spelling fixes and cosmetic changes.
7776 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7778 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7779 XEmacs frame (fix for doubling chars in dialog boxes).
7781 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7783 * select.c (select_convert_in, select_convert_out):
7784 Don't call intern() every time.
7786 * select.c (Qselect_convert_in, Qselect_convert_out): New.
7787 * select.c (vars_of_select): Initialise them.
7789 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7791 * select.c (selection-coercible-types): New.
7793 * select.c (own-selection-internal):
7794 * select.c (get-selection-internal):
7795 MULE bug fix - these should default to COMPOUND_TEXT and not
7796 STRING for MULE. I think.
7798 * select.c (select_convert_out): Use selection-coercible-types
7799 to find types that we can attempt to perform coercions on.
7801 2000-07-18 Martin Buchholz <martin@xemacs.org>
7805 Add coding: cookie to identify encoding.
7807 * mule-canna.c (CANNA_mode_keys): make static.
7808 Use proper prototypes, even for functions of no arguments.
7809 Remove external prototype for Fding().
7811 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7813 * select.c (syms_of_select): Add missing DEFSUBR.
7815 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7817 * select.c (get_selection_internal, own_selection_internal):
7818 Make the type default to STRING, rather than placing a nil type
7819 into Vselection_alist.
7821 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7823 * gpmevent.c (tty_selection_exists_p):
7824 * gpmevent.c (tty_own_selection):
7825 Updated parameter lists.
7827 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7829 * select.h (selection-alist): Removed declaration.
7831 * select.h (get_local_selection):
7832 * select.c (get_local_selection):
7835 * select.h (convert_selection): Removed declaration.
7836 * select.c (convert_selection): Removed.
7837 This function belongs in Lisp.
7839 * select.h (select_convert_in): Declare.
7840 * select.h (select_convert_out): Declare.
7841 * select.c (select_convert_in): New.
7842 * select.c (select_convert_out): New.
7843 New conversion functions for other files to call.
7845 * select.h (select_notify_buffer_kill): Declare.
7846 * select.c (select_notify_buffer_kill): New.
7847 New functions that get called from kill-buffer.
7849 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7850 X-specific lisp code.
7852 * select.h: Declare some of the lisp-visible functions for
7855 * select.c (clean_local_selection_data): Removed. This was
7856 a disgusting function, and previously should have been in
7857 select-x.c in any case. The functionality is now provided
7858 in select-convert-from-integer (select.el).
7860 * select.c (available-selection-types): Fixed stupidity where
7861 INTEGER and ATOM got added twice. Also add STRING when we see an
7864 * select.c (get-selection-internal): Removed symbol stripping. No
7865 longer causes conversion when data comes from the internal cache.
7867 * select.c (syms_of_select): Added new functions.
7869 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7870 error checking - previously this called abort!
7872 * select-x.c (x_own_selection): Changed comment.
7874 * select-x.c (x_handle_selection_request): Use select_convert_out.
7875 Don't mess with selection-alist; it's an internal variable of select.c.
7877 * select-x.c (x_get_foreign_selection): Use select_convert_in.
7879 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7880 rather than messing with selection-alist.
7882 * select-msw.c (mswindows_get_foreign_selection):
7883 Use TO_INTERNAL_FORMAT rather than hacking.
7885 2000-07-14 Martin Buchholz <martin@xemacs.org>
7887 * process-unix.c (unix_open_multicast_group):
7888 (unix_open_multicast_group): Remove useless casts.
7890 2000-07-13 Martin Buchholz <martin@xemacs.org>
7892 * sound.c (Fplay_sound): Fix `unused variable' warning.
7894 * emacs.c (main): Use correct type for _environ on SCO5.
7896 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7898 * console.h (own_selection_method):
7899 * console.h (selection_exists_p_method):
7900 * console.h (available_selection_types_method): New.
7901 * console.h (register_selection_data_type_method): New.
7902 * console.h (selection_data_type_name): New.
7904 * console-msw.h (mswindows_destroy_selection): Declare it. New
7905 function & alist to track GlobalAlloc()'d handles that need
7906 releasing when the clipboard data gets replaced or emptied.
7908 * event-msw.c (mswindows_wnd_proc): Call it.
7910 * lisp.h, general.c (Qappend): New symbol representing a
7913 * select.c (own-selection-internal):
7914 * select.c (selection-exists-p):
7915 * select.c (available-selection-types): New.
7916 * select.c (register-selection-data-type): New.
7917 * select.c (selection-data-type-name): New. New functions to deal
7918 with device-specific selection data formats.
7919 * select.c (selection-converter-out-alist): Renamed.
7920 * select.c (selection-converter-in-alist): New.
7921 * select.c (selection-appender-alist): New. Added new alists.
7922 * select.c (syms_of_select, vars_of_select): Added new symbols &
7924 * select.c (get_local_selection): Split.
7925 * select.c: Removed spurious type checking - selections may now be
7926 of any type, not just strings.
7927 * select.c (own-selection-internal):
7929 * select.h, select.c (convert_selection): New. Created
7930 convert_selection() function based on get_local_selection().
7931 * select.h, select.c (QCF_*): New symbols representing mswindows
7933 * select.h, select.c (Qreplace_all, Qreplace_existing): New
7934 symbols representing `how-to-add' modes.
7936 * select-msw.c (x_sym_p): New.
7937 * select-msw.c (symbol_to_ms_cf): New.
7938 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7939 symbols & clipboard formats. Can also handle string names.
7940 * select-msw.c (mswindows_own_selection):
7941 * select-msw.c (mswindows_selection_exists_p):
7942 Added `data-type' parameter. Use it.
7943 * select-msw.c (mswindows_available_selection_types): New.
7944 * select-msw.c (mswindows_register_selection_data_type): New.
7945 * select-msw.c (mswindows_selection_data_type_name): New.
7946 * select-msw.c (mswindows_own_selection):
7947 * select-msw.c (mswindows_get_foreign_selection):
7948 * select-msw.c (mswindows_selection_exists_p): Rewrote.
7949 * select-msw.c (console_create_select_mswindows): Added new methods.
7950 * select-msw.c (mswindows_destroy_selection): New.
7951 * select-msw.c (Vhandle_alist): New list.
7952 * select-msw.c (mswindows_own_selection):
7954 * select-x.c (x_own_selection):
7955 * select-x.c (x_selection_exists_p):
7956 * select-x.c: Added some comments about maybe using new
7958 * select-x.c (x_own_selection):
7960 * specifier.c: Remove definition of Qappend (now in general.c)
7961 * specifier.c (syms_of_specifier): Remove Qappend.
7963 2000-07-12 Martin Buchholz <martin@xemacs.org>
7965 * config.h.in: Add socklen_t.
7967 * s/decosf4-0.h: No special compiler flags needed or desired.
7968 In particular, undefine _BSD for DEC OSF 4.0.
7970 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7972 * redisplay-msw.c (msprinter_frame_output_end): Added.
7973 (console_type_create_redisplay_mswindows): Referred the above.
7975 * frame.c (setup_frame_without_minibuffer): Do not create a
7976 default minibuffer frame on a printer device.
7978 * frame-msw.c (apply_dc_geometry): Added.
7979 (msprinter_start_page):
7980 (msprinter_init_frame_3):
7981 (msprinter_eject_page): Use it.
7983 * console-msw.h (struct msprinter_frame): Added pix_left and top,
7984 and removed residual duplex and orientation properties.
7986 2000-07-11 Martin Buchholz <martin@xemacs.org>
7988 * eval.c (function_argcount): Work around a DEC CC compiler bug.
7990 * unexalpha.c: Remove system prototypes from C sources!
7992 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
7994 * eval.c: Remove references to M-x edit-options in DEFUNs for
7995 `defvar' and `defconst'.
7997 2000-07-09 Martin Buchholz <martin@xemacs.org>
7999 * config.h.in: Remove SMART_INCLUDE hackery.
8002 * config.h.in: Don't use SMART_INCLUDE.
8004 * postgresql.h: Include libpq-fe.h here. Fix typo.
8005 * inline.c: Simply #include "postgresql.h"
8007 - Don't use SMART_INCLUDE
8008 - Use simply "const".
8009 - Use standard doc string conventions.
8010 - Use correct type for result of PQstatus.
8012 2000-07-09 Martin Buchholz <martin@xemacs.org>
8014 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
8016 C++ compilation changes.
8017 * config.h.in (EXTERN_C): Define.
8018 * config.h.in (not): This is also a C++ keyword.
8019 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8020 * cm.c: Use EXTERN_C.
8021 * redisplay-tty.c: Use EXTERN_C.
8022 * sysdep.c: Use EXTERN_C. Remove Gould support.
8024 2000-07-09 Martin Buchholz <martin@xemacs.org>
8026 * general.c: Remove duplicate definition for Qfunction.
8028 2000-07-08 Ben Wing <ben@xemacs.org>
8030 * device-msw.c (msprinter_init_device):
8031 * device-msw.c (sync_printer_with_devmode):
8032 * device-msw.c (handle_devmode_changes):
8033 * device-msw.c (print_dialog_worker):
8034 * device-msw.c (Fmsprinter_apply_settings):
8035 * device-msw.c (hash_devmode):
8036 * device-msw.c (Fmsprinter_settings_despecialize):
8037 use Qmswindows_tstr, not Qctext.
8039 * vm-limit.c (check_memory_limits):
8040 avoid infinite loop printing warning messages.
8042 2000-07-05 Craig Lanning <lanning@scra.org>
8044 * Makefile.in.in: Add support for including the Windows resources
8045 when building with the cygwin and mingw targets.
8047 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8048 not set or not correct.
8049 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8050 (init_initial_directory): Don't try to use $PWD on the
8051 WIN32_NATIVE target.
8054 [[Add -mwindows to eliminate console window.]] not required --ben
8055 (HAVE_NATIVE_SOUND): removed; now handled by configure.
8056 (MAIL_USE_POP): removed; now handled by configure.
8058 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8059 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8060 (HAVE_NATIVE_SOUND): removed; now handled by configure.
8061 (MAIL_USE_POP): removed; now handled by configure.
8062 (ENCAPSULATE_STAT): from Dan Holmsand, added.
8063 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8064 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8066 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8067 up from <winsock.h> via systime.h.
8068 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8069 (getpagesize): from Dan Holmsand, added.
8070 Added #endif which was left dangling by Ben's mega patch; added
8071 comment to help prevent this in the future.
8073 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8075 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8077 * console-msw.h (struct mswindows_device): Removed unnecessary
8078 cached device geometry values.
8079 Added update_tick and an accessor macro.
8080 (Lisp_Devmode): Added lrecord declaration.
8081 (struct msprinter_device): Contain devmode as a Lisp object.
8082 Added mswindows_get_selected_frame_hwnd();
8084 * console.h (struct console_methods): Indentation nitpicking.
8086 * device-msw.c (mswindows_init_device): Do not initialize geometry
8087 cache. Initialize update tick.
8088 (mswindows_device_system_metrics): Ask the device for its geometry.
8089 (global_free_2_maybe):
8090 (devmode_to_hglobal):
8091 (handle_printer_changes):
8092 (ensure_not_printing):
8093 (print_dialog_worker):
8094 (Fmsprinter_print_setup_dialog):
8095 (Fmsprinter_print_dialog):
8098 (Fmsprinter_page_setup_dialog): Added functions.
8099 (sync_printer_with_devmode):
8100 (handle_devmode_changes):
8101 (Fmsprinter_get_settings):
8102 (Fmsprinter_select_settings):
8103 (Fmsprinter_apply_settings):
8105 (Fmsprinter_settings_copy):
8106 (Fmsprinter_settings_despecialize):
8110 (hash_devmode): Added functions
8111 (syms_of_device_mswindows): Init devmode lrecord class.
8113 * device.h: Added an exfun for find-device.
8115 * event-msw.c (mswindows_wnd_proc): Do not update the cached
8116 geometry; although, recreate the device compatible DC.
8118 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8119 (msprinter_init_frame_3):
8120 (msprinter_frame_property):
8121 (msprinter_internal_frame_property_p):
8122 (msprinter_frame_properties):
8123 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8124 print job properties (will move to device settings).
8126 * lisp.h: Added symbols.
8128 * general.c (syms_of_general): Declared them.
8130 * hash.c (string_hash): Added.
8132 * lrecord.h (lrecord_type): Added devmode lrecord type.
8134 2000-07-02 Mike Sperber <mike@xemacs.org>
8136 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8139 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
8141 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8144 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
8146 * data.c (Fstring_to_number): Don't recognize floating point if
8149 2000-06-22 Martin Buchholz <martin@xemacs.org>
8151 * glyphs-widget.c (tab_control_query_geometry):
8152 (widget_query_geometry):
8153 (button_query_geometry):
8154 * glyphs.c (text_query_geometry):
8155 Enforce type correctness.
8157 2000-06-18 Martin Buchholz <martin@xemacs.org>
8159 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8160 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8162 2000-06-17 Martin Buchholz <martin@xemacs.org>
8164 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8165 conflicts with gcc's fixincluded version of FOO.h.
8167 * glyphs.h (image_instance_geometry): Remove trailing `,'
8169 2000-06-08 Mike Alexander <mta@arbortext.com>
8171 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8172 (shove_thread): Don't write the same output twice
8173 (make_ntpipe_output_stream): Increase priority of shove thread
8174 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8176 (ntpipe_shove_closer): Don't delete the pipe until we're done with
8179 2000-06-12 Ben Wing <ben@xemacs.org>
8181 * s\mingw32.h (sigset):
8182 * s\windowsnt.h (sigset):
8183 rename msw_ to mswindows_ for consistency with general convention.
8185 2000-06-12 Ben Wing <ben@xemacs.org>
8188 * console-msw.c (mswindows_get_console_hwnd):
8189 * console-msw.c (mswindows_ensure_console_allocated):
8190 * console-msw.c (mswindows_hide_console):
8191 * console-msw.c (mswindows_show_console):
8192 * console-msw.c (mswindows_ensure_console_buffered):
8193 * console-msw.c (mswindows_output_console_string):
8194 * console-msw.c (mswindows_windows9x_p):
8196 * device-msw.c (mswindows_get_workspace_coords):
8197 * device-msw.c (mswindows_device_system_metrics):
8198 * dialog-msw.c (mswindows_popup_dialog_box):
8199 * event-msw.c (mswindows_wnd_proc):
8200 * frame-msw.c (mswindows_size_frame_internal):
8201 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8202 * menubar-msw.c (displayable_menu_item):
8203 * menubar-msw.c (mswindows_char_is_accelerator):
8205 * nt.c (mswindows_sigset):
8206 * nt.c (mswindows_sigrelse):
8207 * nt.c (mswindows_sigpause):
8208 * nt.c (mswindows_raise):
8209 * nt.c (timer_proc):
8211 * ntproc.c (find_child_console):
8212 * ntproc.c (sys_kill):
8214 * print.c (std_handle_out_external):
8215 * process-nt.c (find_child_console):
8216 * process-nt.c (send_signal_the_95_way):
8217 * process-nt.c (ensure_console_window_exists):
8218 * process-nt.c (nt_create_process):
8220 rename msw_ to mswindows_ for consistency with general convention.
8224 include nt.h, not syswindows.h.
8226 * nt.c (mswindows_fstat):
8227 * nt.c (mswindows_stat):
8228 prefix mswindows_ instead of attempting to directly override the
8229 library functions. fix declarations.
8232 include syswindows.h. move some sysdep.h stuff here.
8235 include syswindows.h, not <windows.h>.
8243 * sysdep.c (sys_fstat):
8244 * sysdep.c (sys_stat):
8245 call mswindows versions when appropriate.
8248 move mswin decls to nt.h.
8251 add long comment describing appropriate use of the various windows
8254 2000-06-11 Ben Wing <ben@xemacs.org>
8256 * device-x.c: Correct doc string for sixth arg of x-get-resource.
8258 2000-06-10 Ben Wing <ben@xemacs.org>
8260 * Makefile.in.in (release):
8261 Correction to make sure xemacs.exe always dumped when correct.
8265 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8267 * buffer.c (set_buffer_internal):
8268 [[[[2]]]]: Remove HAVE_FEP code.
8270 * buffer.c (init_initial_directory):
8274 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8278 * callproc.c (call_process_cleanup):
8279 * callproc.c (Fold_call_process_internal):
8280 * callproc.c (child_setup):
8281 * callproc.c (getenv_internal):
8282 * callproc.c (init_callproc):
8283 * callproc.c (vars_of_callproc):
8284 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8285 __CYGWIN32__ -> CYGWIN.
8286 DOS_NT -> WIN32_NATIVE.
8287 Remove MSDOS support/references, converting to WIN32_NATIVE
8289 __MINGW32__ -> MINGW.
8290 Fix windows.h includes.
8291 Remove bogus HAVE_NTGUI.
8297 mswindows_message_outputted added for use in allowing startup
8298 errors on the console to be seen.
8300 * console-msw.c (msw_ensure_console_allocated):
8301 * console-msw.c (msw_output_console_string):
8302 * console-msw.c (DHEADER):
8303 * console-msw.c (DOPAQUE_DATA):
8304 * console-msw.c (DEVENT):
8305 * console-msw.c (DCONS):
8306 * console-msw.c (DCONSCDR):
8307 * console-msw.c (DSTRING):
8308 * console-msw.c (DVECTOR):
8309 * console-msw.c (DSYMBOL):
8310 * console-msw.c (DSYMNAME):
8313 * console-stream.c (stream_init_console):
8314 Fix text/binary problems.
8317 * device-msw.c (mswindows_finish_init_device):
8318 * device-msw.c (mswindows_delete_device):
8321 * device.c (handle_asynch_device_change):
8325 * dgif_lib.c (DGifOpenFileName):
8326 * dgif_lib.c (DGifOpenFileHandle):
8327 * dgif_lib.c (DGifGetLine):
8328 * dgif_lib.c (DGifGetPixel):
8329 Added config.h/lisp.h, fix up includes.
8336 * dired.c (file_name_completion):
8337 * dired.c (Ffile_attributes):
8338 * dired.c (syms_of_dired):
8342 * dumper.c (pdump_file_unmap):
8343 * dumper.c (pdump_load):
8347 * editfns.c (Ftemp_directory):
8348 * editfns.c (user_login_name):
8349 * editfns.c (Fuser_real_login_name):
8350 * editfns.c (get_home_directory):
8353 * elhash.c (finish_marking_weak_hash_tables):
8354 [[[[5]]]]: Fix GCC warnings.
8357 * emacs.c (mswindows_handle_hardware_exceptions):
8358 * emacs.c (make_arg_list_1):
8360 * emacs.c (Fkill_emacs):
8361 * emacs.c (Fdump_emacs):
8363 Fix problems with nested crashes, add long comment.
8365 * event-Xt.c (init_event_Xt_late):
8369 * event-msw.c (mswindows_dde_callback):
8370 * event-msw.c (mswindows_handle_sticky_modifiers):
8371 * event-msw.c (mswindows_wnd_proc):
8375 * events.c (character_to_event):
8379 * fileio.c (Ffile_name_directory):
8380 * fileio.c (Ffile_name_nondirectory):
8381 * fileio.c (directory_file_name):
8382 * fileio.c (Fexpand_file_name):
8383 * fileio.c (Fsubstitute_in_file_name):
8384 * fileio.c (Ffile_name_absolute_p):
8385 * fileio.c (check_executable):
8386 * fileio.c (Ffile_readable_p):
8387 * fileio.c (Ffile_accessible_directory_p):
8388 * fileio.c (Ffile_modes):
8389 * fileio.c (Funix_sync):
8390 * fileio.c (vars_of_fileio):
8393 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8395 Expand getdefdir defn.
8396 Fix bogus rename() comment.
8398 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
8399 to use standard XEmacs include files, e.g. sysfile.h, rather
8400 than system-specific includes.
8406 * frame.c (vars_of_frame):
8410 * getloadavg.c (getloadavg):
8412 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
8413 (We don't use it elsewhere in the code; just add a comment.)
8420 * glyphs-msw.c (mswindows_resource_instantiate):
8423 * glyphs-x.c (x_native_layout_instantiate):
8426 * gui-msw.c (Fmswindows_shell_execute):
8435 * lread.c (locate_file_in_directory_mapper):
8442 * mem-limits.h (get_lim_data):
8454 * nt.c (rva_to_section):
8455 * nt.c (mswindows_executable_type):
8457 Fix closedir() defn.
8460 [[[[8]]]]: *_OK defs moved to sysfile.h.
8469 * print.c (std_handle_out_external):
8473 * process-nt.c (nt_create_process):
8475 try to fix process quoting somewhat.
8477 * process-unix.c (unix_create_process):
8481 * process.c (vars_of_process):
8488 * realpath.c (xrealpath):
8491 * redisplay-tty.c (init_tty_for_redisplay):
8501 * sheap.c (more_static_core):
8502 * sheap.c (report_sheap_usage):
8506 * signal.c (alarm_signal):
8513 * strftime.c (zone_name):
8516 * symsinit.h (init_sunpro):
8520 commctrl.h not in Cygwin b20.1.
8524 * sysdep.c (sys_subshell):
8525 * sysdep.c (init_baud_rate):
8526 * sysdep.c (emacs_get_tty):
8527 * sysdep.c (emacs_set_tty):
8528 * sysdep.c (tty_init_sys_modes_on_device):
8529 * sysdep.c (init_system_name):
8530 * sysdep.c (sys_open):
8531 * sysdep.c (interruptible_open):
8532 * sysdep.c (sys_fopen):
8533 * sysdep.c (sys_mkdir):
8534 * sysdep.c (sys_rename):
8535 * sysdep.c (get_process_times_1):
8542 * sysdir.h (DIRENTRY_NONEMPTY):
8545 * sysdll.c (dll_init):
8551 added text/binary defs.
8557 * sysproc.h (EDESTADDRREQ):
8558 * sysproc.h (poll_fds_for_input):
8575 Always define WIN32_LEAN_AND_MEAN.
8577 * unexcw.c (unexec):
8581 * unexec.c (copy_text_and_data):
8582 * unexec.c (adjust_lnnoptrs):
8586 * unexnt.c (_start):
8589 2000-06-07 Ben Wing <ben@xemacs.org>
8591 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
8592 was used only as a model. We've long since extracted any useful
8593 logic or code out of this. (I just did an exhaustive search.)
8595 * s\msdos.h: Removed.
8597 * s\windows95.h: Removed.
8599 2000-06-10 Ben Wing <ben@xemacs.org>
8603 Don't use extern with fun defs.
8607 Remove nt\inc include.
8608 Remove getdisk, getdefdir. (The former is unused, the latter
8609 expanded in fileio.h.)
8612 * s\windowsnt.h (WIN32_NATIVE):
8613 * s\windowsnt.h (HAVE_STRCASECMP):
8615 Add long comment about preprocessor changes.
8616 Remove getdisk, getdefdir. (The former is unused, the latter
8617 expanded in fileio.h.)
8619 2000-06-10 Ben Wing <ben@xemacs.org>
8628 Remove bogus/unused NO_SOCK_SIGIO.
8630 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
8632 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8635 2000-06-04 Mike Sperber <mike@xemacs.org>
8637 * casetab.c (set_case_table): For `set-standard-case-table',
8638 actually deposit the new case tables where the rest of XEmacs can
8641 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
8643 * data.c (Faset): Don't cast XCHAR() to unsigned char.
8645 2000-06-05 Ben Wing <ben@xemacs.org>
8647 * callproc.c (child_setup): Don't do close_load_descs() under
8648 MS Windows. Put in a comment explaining why.
8650 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
8652 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8653 Toolkit shell" which breaks `kill-compilation' on Windows NT
8654 native, retaining STDERR handling improvements.
8656 2000-06-01 Andreas Jaeger <aj@suse.de>
8658 * s/s390.h: Support for S390, based on a patch by Martin
8659 Schwidefsky <schwidefsky@de.ibm.com>.
8661 2000-05-30 Andy Piper <andy@xemacs.org>
8663 * window.c (allocate_window):
8664 (make_dummy_parent):
8665 (Fset_window_configuration): use new hashtable type.
8667 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8668 (struct image_instantiator_methods):
8669 (struct Lisp_Image_Instance): make instance geometry signed.
8671 * glyphs.c (instantiate_image_instantiator):
8672 (image_instance_query_geometry):
8673 (image_instance_layout):
8674 (image_instance_layout):
8675 (query_string_geometry):
8676 (text_query_geometry):
8677 (image_instantiate):
8678 (image_instantiate):
8679 (cache_subwindow_instance_in_frame_maybe):
8680 (subwindow_query_geometry): make instance geometry signed.
8682 * glyphs-widget.c (widget_query_geometry):
8684 (button_query_geometry):
8685 (tree_view_query_geometry):
8686 (tab_control_query_geometry):
8687 (layout_query_geometry):
8689 (native_layout_layout): make instance geometry signed.
8691 2000-05-29 Olivier Galibert <galibert@pobox.com>
8693 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8696 * general.c (syms_of_general): Add Qfull_assoc symbol.
8698 * data.c (finish_marking_weak_lists): Mark full-assoc lists
8700 (decode_weak_list_type): Decode full-assoc type.
8701 (encode_weak_list_type): Encode full-assoc type.
8702 (Fmake_weak_list): Update doc string.
8704 2000-05-30 Andy Piper <andy@xemacs.org>
8706 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8708 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8709 (decode_hash_table_weakness): ditto.
8710 (Fhash_table_weakness): ditto.
8711 (Fhash_table_type): ditto.
8712 (finish_marking_weak_hash_tables): ditto.
8713 (hash_table_weakness_validate): ditto.
8714 (syms_of_elhash): ditto.
8716 2000-05-28 Martin Buchholz <martin@xemacs.org>
8718 * XEmacs 21.2.34 is released.
8720 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8722 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8724 (updating_line_start_cache): Gone.
8725 (regenerate_window): Replace resetting of VERTICAL_CLIP by
8726 generic code to force a minimum of 1 line laid out in the
8729 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8731 * glyphs.c (instantiate_image_instantiator): Check for initialized
8732 height & width no longer special cases IMAGE_NOTHING.
8733 (nothing_instantiate): Set height and width of instance.
8735 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8737 * unexelf.c (unexec): Search for ".data" section.
8738 Initialize new_data2_offset from old_data_index.
8739 Remove redundant check for ElfW.
8741 2000-05-23 Andy Piper <andy@xemacs.org>
8743 * glyphs.c (get_image_instantiator_governing_domain): allow more
8744 specific domains as the governing domain rather than expecting an
8745 exact match. This fixes problems with layouts.
8747 2000-05-22 Andy Piper <andy@xemacs.org>
8749 * redisplay-output.c (compare_runes): check for non-images
8751 * glyphs.c (set_glyph_dirty_p): ditto.
8752 (update_glyph_cachel_data): ditto.
8754 * glyphs-widget.c (layout_post_instantiate): ditto.
8755 (layout_post_instantiate): ditto.
8757 * event-msw.c (mswindows_wnd_proc): warning removal.
8759 2000-05-12 Craig Lanning <CraigL@DyCon.com>
8761 * s\mingw32.h: Added #undef for CLASH_DETECTION.
8763 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8765 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8767 * nt.c (rva_to_section): mingw32 needs rva_to_section.
8768 (mswindows_executable_type): mingw32 now has enough headers for
8771 2000-05-20 Andy Piper <andy@xemacs.org>
8773 * console-msw.c (mswindows_output_last_error): ; -> ,
8775 2000-05-12 Andy Piper <andy@xemacs.org>
8777 * console-msw.c (FROB): compare ints with ints.
8779 2000-05-11 Andy Piper <andy@xemacs.org>
8781 * glyphs-x.c (x_finalize_image_instance): make minimal build
8784 2000-05-20 Ben Wing <ben@xemacs.org>
8787 * event-Xt.c (vars_of_event_Xt):
8788 move modifier-keys-are-sticky to event-stream.c.
8791 * event-msw.c (mswindows_enqueue_mouse_button_event):
8792 * event-msw.c (key_needs_default_processing_p):
8793 * event-msw.c (XEMSW_LCONTROL):
8794 * event-msw.c (mswindows_handle_sticky_modifiers):
8795 * event-msw.c (FROB):
8796 * event-msw.c (clear_sticky_modifiers):
8797 * event-msw.c (output_modifier_keyboard_state):
8798 * event-msw.c (output_alt_keyboard_state):
8799 * event-msw.c (mswindows_wnd_proc):
8800 * event-msw.c (mswindows_modifier_state):
8801 * event-msw.c (emacs_mswindows_handle_magic_event):
8802 implement sticky modifiers.
8805 * event-stream.c (vars_of_event_stream):
8806 move modifier-keys-are-sticky here.
8812 implement map-range-table.
8815 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
8817 * redisplay-tty.c (reset_tty_modes):
8818 (tty_redisplay_shutdown): Adjust argument type to
8819 tty_frame_output_end.
8821 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8823 * eval.c (Fbacktrace): Don't output a line with only right
8826 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
8828 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8829 (Fpq_reset_poll): Ditto.
8831 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
8833 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8835 2000-05-16 Ben Wing <ben@xemacs.org>
8838 * buffer.c (dfc_convert_to/from_internal_format):
8839 * buffer.c (reinit_vars_of_buffer):
8840 Fix conversion functions to allow reentrancy.
8843 * console-msw.c (mswindows_output_last_error):
8844 New fun, generally useful -- output a human-readable
8845 version of GetLastError() on the console.
8848 * console-msw.h (struct mswindows_frame):
8849 Changes for DeferWindowPos. Declare mswindows_output_last_error().
8851 * console-stream.c (stream_output_begin):
8852 * console-stream.c (stream_output_end):
8853 * console-stream.c (stream_output_vertical_divider):
8854 * console-stream.c (stream_clear_region):
8855 * console-stream.c (stream_flash):
8856 * console-stream.c (console_type_create_stream):
8857 Delete blank stream methods, not needed.
8859 * console.h (struct console_methods):
8860 Split begin/end methods into window and frame.
8863 * event-msw.c (mswindows_handle_paint):
8864 * event-msw.c (output_alt_keyboard_state):
8865 * event-msw.c (mswindows_wnd_proc):
8866 * event-msw.c (vars_of_event_mswindows):
8867 Comment about problems with ignored-expose.
8868 Define mswindows-debug-events; not really implemented.
8870 * frame-msw.c (mswindows_init_frame_1):
8874 * glyphs-msw.c (begin_defer_window_pos):
8875 * glyphs-msw.c (mswindows_unmap_subwindow):
8876 * glyphs-msw.c (mswindows_map_subwindow):
8877 * glyphs-msw.c (mswindows_resize_subwindow):
8878 Use DeferWindowPos to reduce flashing when mapping/unmapping.
8880 * glyphs.c (make_image_instance_1):
8883 * gutter.c (Fredisplay_gutter_area):
8884 Use new begin/end methods.
8886 * lisp.h (Dynarr_new2):
8890 * redisplay-msw.c (mswindows_frame_output_begin):
8891 * redisplay-msw.c (mswindows_frame_output_end):
8892 * redisplay-msw.c (console_type_create_redisplay_mswindows):
8893 New begin/end methods -- handle DeferWindowPos.
8895 * redisplay-output.c (redisplay_move_cursor):
8896 * redisplay-output.c (redraw_cursor_in_window):
8897 * redisplay-output.c (redisplay_update_line):
8898 * redisplay-output.c (redisplay_output_window):
8899 New begin/end methods.
8902 * redisplay-tty.c (tty_frame_output_begin):
8903 * redisplay-tty.c (tty_frame_output_end):
8904 * redisplay-tty.c (console_type_create_redisplay_tty):
8905 New begin/end methods.
8908 * redisplay-x.c (x_window_output_begin):
8909 * redisplay-x.c (x_window_output_end):
8910 * redisplay-x.c (console_type_create_redisplay_x):
8911 New begin/end methods.
8913 * redisplay.c (redisplay_frame):
8914 * redisplay.c (Fredisplay_echo_area):
8915 New begin/end methods.
8916 use MAYBE_DEVMETH for clear_frame; it may not exist.
8918 * window.h (WINDOW_XFRAME):
8919 WINDOW_XFOO macros -- get locale and decode struct pointer.
8922 2000-05-12 Ben Wing <ben@xemacs.org>
8925 * emacs.c (ensure_no_quitting_from_now_on):
8926 * emacs.c (fatal_error_signal):
8927 * emacs.c (mswindows_handle_hardware_exceptions):
8929 * emacs.c (Fkill_emacs):
8930 * emacs.c (shut_down_emacs):
8931 * emacs.c (assert_failed):
8932 various improvements in fatal error handling.
8935 move preparing_for_armageddon to emacs.c.
8938 declare fatal_error_in_progress.
8941 * print.c (std_handle_out_external):
8942 * print.c (std_handle_out_va):
8943 * print.c (stderr_out):
8944 * print.c (stdout_out):
8945 use console under mswin when no standard output.
8946 don't do code conversion during fatal error.
8948 * scrollbar.c (Fscrollbar_page_up):
8949 * scrollbar.c (Fscrollbar_page_down):
8950 fix missing else. reindent.
8952 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
8956 * glyphs.h (GLYPH_CACHEL_DESCENT):
8957 (GLYPH_CACHEL_DESCENT):
8958 (GLYPH_CACHEL_DESCENT):
8959 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8960 used in case these are inline functions.
8961 Use more absurd values to error check.
8963 include window.h for error check functions.
8965 2000-05-11 Ben Wing <ben@xemacs.org>
8967 * cmdloop.c (Freally_early_error_handler):
8968 Display message box under windows; otherwise, message will disappear
8969 before it can be viewed.
8972 * console-msw.c (Fmswindows_message_box):
8973 * console-msw.c (FROB):
8974 * console-msw.c (syms_of_console_mswindows):
8975 Define new fun `mswindows-message-box'.
8976 #### I will merge this into `popup-dialog-box'; just give me
8980 * general.c (syms_of_general):
8981 Some new symbols used in `mswindows-message-box'.
8984 * glyphs.c (Fset_image_instance_property):
8985 put warning in this fun.
8988 * glyphs.h (GLYPH_CACHEL_WIDTH):
8989 * glyphs.h (GLYPH_CACHEL_ASCENT):
8990 * glyphs.h (GLYPH_CACHEL):
8991 * glyphs.h (GLYPH_CACHEL_GLYPH):
8992 define error-checking versions to try to catch a bug i've seen --
8993 redisplay gets in an infinite loop because the glyph width of the
8994 continuation glyph is 65535.
8997 Extern message-box stuff.
8999 * window.c (allocate_window):
9000 * window.c (make_dummy_parent):
9001 * window.c (Fset_window_configuration):
9002 Use EQUAL not EQ for subwindow caches to make them work a bit
9003 better. (Something is still very broken.)
9006 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
9008 * glyphs.c (image_instantiate): Suppress gcc warnings.
9009 (Fmake_image_instance): Fix doc string.
9010 * specifier.c (Fmake_specifier): Ditto.
9012 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
9014 * paths.h.in (PATH_LOCK): Removed.
9015 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
9016 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
9018 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
9020 * fns.c (Ffeaturep): Update e-mail address in doc-string.
9021 Document (featurep '(and xemacs 21.02)).
9023 2000-05-09 Ben Wing <ben@xemacs.org>
9025 * buffer.c (complex_vars_of_buffer):
9026 update modeline-format doc.
9029 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9032 timeline of all released versions of Emacs, for use in creating
9033 authorship comments and in synching up.
9035 * glyphs-widget.c (image_instantiator_buttons):
9036 * glyphs-widget.c (image_instantiator_edit_fields):
9037 * glyphs-widget.c (image_instantiator_combo_box):
9038 * glyphs-widget.c (image_instantiator_scrollbar):
9039 * glyphs-widget.c (image_instantiator_progress_guage):
9040 * glyphs-widget.c (image_instantiator_tree_view):
9041 * glyphs-widget.c (image_instantiator_tab_control):
9042 * glyphs-widget.c (image_instantiator_labels):
9043 * glyphs-widget.c (image_instantiator_layout):
9044 * glyphs-widget.c (image_instantiator_native_layout):
9045 rename decode_domain method to governing_domain.
9048 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9049 * glyphs.c (add_entry_to_device_ii_format_list):
9050 make sure we don't put an entry more than once into the list.
9051 * glyphs.c (check_instance_cache_mapper):
9052 *************************************************************
9053 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9055 *************************************************************
9056 * glyphs.c (get_image_instantiator_governing_domain):
9057 clean up, expand on new concept of governing domain.
9058 * glyphs.c (instantiate_image_instantiator):
9059 * glyphs.c (allocate_image_instance):
9060 use governing_domain instead of cache_domain in naming.
9061 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9062 * glyphs.c (make_image_instance_1):
9063 * glyphs.c (Fmake_image_instance):
9064 allow for any domain (not just device), and process the
9065 governing domain correctly. very big doc fix.
9066 * glyphs.c (Fimage_instance_domain):
9067 new primitive, to retrieve the governing domain of an image instance.
9068 * glyphs.c (image_instantiate):
9069 use new governing_domain stuff. this fixes a crash you could get
9070 by instantiating certain widget glyphs in frame locales. (should
9071 signal an error instead of crashing.)
9072 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9073 * glyphs.c (Fglyphp): clean up doc.
9074 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9075 * glyphs.c (syms_of_glyphs):
9076 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9077 * glyphs.c (image_instantiator_format_create): add some comments about
9079 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9080 for current-display-table. (Apparently Hrjove implemented in 1998 a
9081 design I wrote up in 1996, but didn't update the doc string.)
9083 * glyphs.h: clean up a doc string.
9084 * glyphs.h (governing_domain):
9085 * glyphs.h (struct image_instantiator_methods):
9086 changes for governing_domain stuff.
9089 * gutter.c (Fgutter_specifier_p):
9090 * gutter.c (Fgutter_size_specifier_p):
9091 * gutter.c (Fgutter_visible_specifier_p):
9093 * objects.c (Fcolor_specifier_p):
9094 * objects.c (Ffont_specifier_p):
9095 * objects.c (Fface_boolean_specifier_p):
9096 doc strings moved to make-*-specifier.
9098 * redisplay.c (add_disp_table_entry_runes_1):
9099 * redisplay.c (generate_fstring_runes):
9100 * redisplay.c (screen):
9101 add random comments and doc strings.
9104 * specifier.c (Fmake_specifier):
9105 major overhaul of this doc string.
9107 * specifier.c (Fvalid_specifier_domain_p):
9108 comment about the bogosity of image instances being domains.
9109 * specifier.c (decode_domain):
9110 now non-static, used in glyphs.c.
9111 * specifier.c (specifier_instance):
9112 comment about the bogosity of image instances being domains.
9113 * specifier.c (Fgeneric_specifier_p):
9114 move doc string to make-generic-specifier.
9115 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9119 * specifier.h (DOMAIN_FRAME):
9120 * specifier.h (DOMAIN_LIVE_P):
9121 * specifier.h (DOMAIN_XDEVICE):
9123 add comments about problems with these macros.
9124 prototype for decode_domain.
9127 * toolbar.c (Ftoolbar_specifier_p):
9128 move doc string to `make-toolbar-specifier'.
9130 * window.c (window_unmap_subwindows_cache_mapper):
9131 *************************************************************
9132 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9134 *************************************************************
9136 2000-05-09 Andy Piper <andy@xemacs.org>
9138 * glyphs.h: declare reset_frame_subwindow_instance_cache.
9140 * window.c (Fset_window_configuration): reset the frame subwindow
9141 cache and re-initialize the window subwindow caches.
9143 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9145 2000-05-09 Ben Wing <ben@xemacs.org>
9147 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9150 2000-04-26 Mike Woolley <mike@bulsara.com>
9152 * ntheap.c: Changed recreate_heap to limit the amount reserved
9153 for the heap to that which is actually available. Also now
9154 displays a message box (with some dignostics) in the event that
9155 it still can't start.
9157 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
9159 * callproc.c (Fold_call_process_internal): GCPRO path
9161 2000-05-08 Jan Vroonhof <jan@xemacs.org>
9163 Patch by Bill Perry.
9165 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9166 back data instead of #ifdef.
9167 (Fscrollbar_page_down): ditto.
9169 2000-05-07 Ben Wing <ben@xemacs.org>
9172 Kludge for defining Qmswindows_tstr.
9175 * nt.c (open_input_file):
9176 * nt.c (open_output_file):
9177 * nt.c (rva_to_section):
9178 * nt.c (mswindows_executable_type):
9179 Move all memory-mapped-file routines here (some were in unexnt.c,
9180 which is bad because they are used by process-nt.c, and unexnt
9181 won't be around when portable dumping). Synched the above routines
9185 Removed ifdef'd out bogus code.
9186 Fixed some prototypes.
9189 * nt.h (OFFSET_TO_RVA):
9190 * nt.h (RVA_TO_OFFSET):
9191 * nt.h (RVA_TO_PTR):
9192 Moved the memory-mapped-file structures, macros and prototypes
9193 here, to parallel nt.c. ntheap.h should really be removed
9194 entirely, and it's a non-portable-dumper specific file.
9196 * ntheap.h (round_to_next):
9197 Moved the memory-mapped-file structures, macros and prototypes
9200 * ntproc.c (compare_env):
9201 Moved rva_to_section and mswindows_executable_type to nt.c.
9202 Moved compare_env to process-nt.c.
9203 ntproc.c will die, one day.
9205 * ntproc.c (sys_spawnve):
9206 Account for win32_ -> mswindows_.
9209 * process-nt.c (struct nt_process_data):
9210 * process-nt.c (ensure_console_window_exists):
9211 * process-nt.c (compare_env):
9212 * process-nt.c (nt_create_process):
9213 * process-nt.c (nt_kill_process_by_pid):
9214 * process-nt.c (syms_of_process_nt):
9215 * process-nt.c (vars_of_process_nt):
9216 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9217 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9218 changes). Eliminate our old `nt-quote-process-args' mechanism.
9219 Synch up nt_create_process with FSF 20.6 sys_spawnve.
9220 Move compare_env here from ntproc.c.
9222 * process.c (Fprocess_send_region):
9223 Takes an optional fourth argument, BUFFER, which should fix some
9224 problems with call-process.
9227 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9230 Move ICC_BAR_CLASSES to syscommctrl.h.
9231 Add preliminary macros for MSWindows/Mule. More to come.
9234 * unexnt.c (unexec):
9235 open_output_file moved to nt.c.
9238 2000-05-05 Andy Piper <andy@xemacs.org>
9240 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9241 instance from the frame cache also since GC may catch up too late
9242 to make frame deletion sane.
9244 2000-05-04 Andy Piper <andy@xemacs.org>
9246 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9247 (x_finalize_image_instance): ungcpro on deletion.
9249 * glyphs.c (image_instantiator_format_create): give pointers a
9250 query geometry method so that the geometry is at least set.
9252 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9253 initialize layouts if using widgets.
9255 2000-05-03 Andy Piper <andy@xemacs.org>
9257 * nt.c: remove bogus reference to sysmmsystem.h
9259 * gui-x.c (popup_selection_callback): fix no selection abort.
9261 2000-05-02 Andy Piper <andy@xemacs.org>
9263 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9264 (mswindows_widget_instantiate): ditto.
9266 * glyphs-widget.c (initialize_widget_image_instance): initialize
9268 (widget_instantiate): cope with children and items in the same
9271 * glyphs.c (mark_image_instance): cope with children as a first
9273 (image_instance_equal): ditto.
9274 (image_instance_hash): ditto.
9275 (image_instance_changed): ditto.
9277 2000-04-30 Andy Piper <andy@xemacs.org>
9279 * glyphs.c (subwindow_query_geometry): new function. Return some
9281 (subwindow_instantiate): don't assign dimensions if none have been
9283 (image_instantiator_format_create): add subwindow_query_geometry.
9284 (print_image_instance): cope with layouts as widgets.
9286 2000-04-29 Andy Piper <andy@xemacs.org>
9288 * frame.c (delete_frame_internal): call
9289 free_frame_subwindow_instance_cache so that all subwindows are
9290 finalized before their parent.
9291 (mark_frame): remove subwindow_cachels.
9292 (Fmake_frame): remove subwindow_cachel manipulation.
9293 (allocate_frame_core): subwindow_instance_cache is a weak list.
9294 (delete_frame_internal): set subwindow_instance_cache to nil.
9296 * glyphs-msw.c (mswindows_finalize_image_instance): make double
9298 (mswindows_finalize_image_instance): use the device
9299 not the domain as the domain may have died already.
9301 * glyphs-x.c (x_finalize_image_instance): ditto.
9302 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9305 * redisplay-output.c (redisplay_unmap_subwindows): update for
9306 subwindow instance cache as a weak list.
9307 (redisplay_unmap_subwindows_maybe): ditto.
9308 (redisplay_unmap_subwindows_except_us): ditto.
9310 * glyphs.c (unmap_subwindow): error checking will check the domain
9311 so don't deal with it here. Don't use cachels anymore.
9312 (map_subwindow): ditto.
9313 (update_subwindow_cachel_data): remove old accessor names.
9314 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9315 (Fresize_subwindow): don't update cachel.
9316 (mark_subwindow_cachels):
9317 (update_subwindow_cachel_data):
9318 (add_subwindow_cachel):
9319 (get_subwindow_cachel_index):
9320 (update_subwindow_cachel):
9321 (reset_subwindow_cachels):
9322 (mark_subwindow_cachels_as_not_updated): deleted.
9323 (cache_subwindow_instance_in_frame_maybe): new function. Add a
9324 subwindow instance to the frame cache.
9325 (find_matching_subwindow): update for subwindow instance cache as
9327 (update_widget_instances): ditto.
9328 (image_instance_type_to_mask):inlined.
9329 (free_frame_subwindow_instance_cache): new function. finalize all
9330 subwindows that are instantiated.
9332 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9333 of cachel information.
9334 (IMAGE_INSTANCE_DISPLAY_X):
9335 (IMAGE_INSTANCE_DISPLAY_Y):
9336 (IMAGE_INSTANCE_DISPLAY_WIDTH):
9337 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9338 (XIMAGE_INSTANCE_DISPLAY_X):
9339 (XIMAGE_INSTANCE_DISPLAY_Y):
9340 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9341 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9342 remove subwindow_cachel structure and function references.
9343 (image_instance_type_to_mask): inline from glyphs.c
9345 * redisplay.c (redisplay_frame): remove subwindow_cachel
9348 * frame.h (struct frame): remove subwindow_cachels.
9349 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9351 * frameslots.h: add subwindow_instance_cache.
9353 * window.c (replace_window): check subwindow cache of replacement.
9354 (window_unmap_subwindows_cache_mapper):
9355 (window_unmap_subwindows): new functions. Unmap all subwindows
9356 cached on this window.
9357 (mark_window_as_deleted): unmap all subwindows.
9359 2000-04-27 Andy Piper <andy@xemacs.org>
9361 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9363 * glyphs-widget.c (widget_layout): return something.
9364 (layout_layout): return something. Fail if not initialized.
9365 (layout_query_geometry): ditto.
9366 (image_instantiator_native_layout): new function. Initialized the
9368 (widget_instantiate): don't do layout stuff here.
9370 * glyphs.c (instantiate_image_instantiator): reorded calling or
9371 instantiate and post_instantiate with layout in between.
9372 (image_instance_layout): be more selective about deciding whether
9373 the layout has been done or not.
9375 * glyphs.h (struct image_instantiator_methods): return a value
9378 2000-04-26 Andy Piper <andy@xemacs.org>
9380 * glyphs.c (allocate_image_instance): make initial width and
9381 height unspecified. Set initialized to 0.
9383 * syscommctrl.h new file. Encapsulates commctrl.h.
9385 * syswindows.h new file. Encapsulates windows.h.
9387 * ntplay.c: use new syswindows.h and syscommctrl.h header.
9389 * console-msw.h: ditto.
9391 * redisplay-tty.c (tty_output_display_block): remove layout references.
9393 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9394 window handle rather than just the frame.
9396 * glyphs.c (mark_image_instance): remove layout references.
9397 (print_image_instance): ditto.
9398 (image_instance_equal): ditto.
9399 (image_instance_hash): ditto.
9400 (decode_image_instance_type): ditto.
9401 (encode_image_instance_type): ditto.
9402 (image_instantiate): ditto.
9403 (allocate_glyph): ditto.
9404 (Fimage_instance_height): ditto.
9405 (Fimage_instance_width): ditto.
9406 (update_subwindow): ditto.
9408 * redisplay-x.c (x_output_display_block): recode for layouts as
9411 * redisplay-output.c (redisplay_output_layout): recode for layouts
9413 (compare_runes): remove layout references.
9415 * redisplay-msw.c (mswindows_output_display_block): recode for
9418 * glyphs-widget.c (image_instantiator_layout): remove
9419 layout_possible_dest_types.
9420 (layout_possible_dest_types): deleted.
9422 * glyphs.h (image_instance_type): remove layout references.
9423 (struct Lisp_Image_Instance): ditto. Add initialized flag.
9424 (IMAGE_INSTANCE_INITIALIZED): new accessor.
9425 (XIMAGE_INSTANCE_INITIALIZED): ditto.
9427 2000-04-25 Andy Piper <andy@xemacs.org>
9429 * glyphs-widget.c (image_instantiator_buttons):
9430 (image_instantiator_edit_fields):
9431 (image_instantiator_combo_box):
9432 (image_instantiator_scrollbar):
9433 (image_instantiator_progress_guage):
9434 (image_instantiator_tree_view):
9435 (image_instantiator_tab_control):
9436 (image_instantiator_labels):
9437 (image_instantiator_layout): call default post_instantiate method.
9438 (widget_post_instantiate): new function. Simply lays out the
9441 * glyphs.h (struct image_instantiator_methods): add
9442 post_instantiate method.
9444 * glyphs.c (instantiate_image_instantiator): add post_instantiate
9447 2000-04-23 Andy Piper <andy@xemacs.org>
9449 * glyphs.h (struct image_instantiator_methods): add
9450 decode_domain_method.
9451 (struct Lisp_Image_Instance): remove subwindow frame - it can be
9452 derived from the domain.
9453 (IMAGE_INSTANCE_FRAME): new accessor.
9454 (XIMAGE_INSTANCE_FRAME): ditto.
9456 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9457 instead of _SUBWINDOW_FRAME.
9458 (finalize_image_instance): ditto.
9459 (Fimage_instance_foreground): ditto.
9460 (Fimage_instance_background): ditto.
9461 (image_instantiate): ditto.
9462 (update_subwindow_cachel): ditto.
9463 (update_subwindow): ditto.
9464 (unmap_subwindow): ditto.
9465 (map_subwindow): ditto
9466 (subwindow_instantiate): ditto.
9467 * glyphs-msw.c (mswindows_update_widget): ditto.
9468 (mswindows_progress_gauge_instantiate): ditto.
9469 (mswindows_tab_control_update): ditto.
9470 * glyphs-x.c (x_update_widget): ditto.
9471 (x_widget_instantiate): ditto.
9472 (x_tab_control_instantiate): ditto.
9473 (x_tab_control_update): ditto.
9474 * event-msw.c (mswindows_wnd_proc): ditto
9476 * glyphs-widget.c (image_instantiator_layout): use
9477 subwindow_decode_domain.
9478 (image_instantiator_buttons): ditto.
9479 (image_instantiator_edit_fields): ditto.
9480 (image_instantiator_combo_box): ditto.
9481 (image_instantiator_scrollbar): ditto.
9482 (image_instantiator_progress_guage): ditto.
9483 (image_instantiator_tree_view): ditto.
9484 (image_instantiator_tab_control): ditto.
9485 (image_instantiator_labels): ditto.
9486 (image_instantiator_layout): ditto.
9488 * glyphs.c: add instance error checking to many functions.
9489 (instantiate_image_instantiator): decode device from cache_domain.
9490 (image_instantiate): partially rewrite by using
9491 decode_image_instantiator_domain to determine what domain the
9492 instance needs to be cached in.
9493 (decode_image_instantiator_domain): new function. Determine what
9494 domain the image needs to be cached in.
9495 (check_window_subwindow_cache): new error checking function.
9496 (check_instance_cache_mapper): ditto.
9497 (check_image_instance_structure): ditto.
9498 (subwindow_decode_domain): new function. Encodes a window as a
9499 subwindow's cache domain.
9500 (image_instantiator_format_create): use it for text and
9503 2000-04-21 Andy Piper <andy@xemacs.org>
9505 * glyphs.c (image_instance_device): new function.
9506 (image_instance_frame): new function.
9507 (image_instance_window): new function.
9508 (image_instance_live_p): new function.
9510 * window.c (mark_window_as_deleted): reset the subwindow_instance_
9513 * glyphs.h (struct Lisp_Image_Instance): device->domain.
9514 (IMAGE_INSTANCE_DOMAIN): new accessor.
9515 (XIMAGE_INSTANCE_DOMAIN): ditto.
9517 * glyphs-x.c (x_finalize_image_instance): device->domain.
9519 * glyphs-msw.c (init_image_instance_geometry): device->domain.
9520 (mswindows_finalize_image_instance): ditto.
9522 * glyphs-eimage.c (jpeg_instantiate): device->domain.
9523 (gif_instantiate): ditto.
9524 (png_instantiate): ditto.
9525 (tiff_instantiate): ditto.
9527 * glyphs.c (instantiate_image_instantiator): use domain rather
9529 (mark_image_instance): device -> domain.
9530 (print_image_instance): ditto.
9531 (finalize_image_instance): ditto.
9532 (image_instance_equal): ditto.
9533 (allocate_image_instance): ditto.
9534 (Fcolorize_image_instance): ditto.
9535 (query_string_geometry): ditto.
9536 (image_instantiate): ditto
9537 (query_string_font): ditto.
9538 (image_instantiate): ditto.
9539 (update_subwindow): ditto.
9540 (unmap_subwindow): ditto.
9541 (map_subwindow): ditto.
9542 (subwindow_instantiate): ditto.
9544 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9545 (DOMAIN_FRAME): ditto.
9546 (DOMAIN_WINDOW): ditto.
9547 (DOMAIN_LIVE_P): ditto.
9548 (XDOMAIN_DEVICE): ditto.
9549 (XDOMAIN_FRAME): ditto.
9550 (XDOMAIN_WINDOW): ditto.
9552 * specifier.c (Fvalid_specifier_domain_p): add image instances as
9553 a valid specifier domain.
9555 2000-04-19 Andy Piper <andy@xemacs.org>
9557 * glyphs-widget.c (syms_of_glyphs_widget): remove
9558 widget-callback-current-channel.
9559 (vars_of_glyphs_widget): ditto.
9562 * gui.c (get_gui_callback): revert to previous behaviour.
9564 2000-04-18 Andy Piper <andy@xemacs.org>
9566 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9567 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9568 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9570 * glyphs.c (image_instance_equal): add margin_width.
9571 (image_instance_hash): ditto.
9573 * glyphs-widget.c (widget_instantiate): deal with margin-width.
9574 (layout_query_geometry): ditto.
9575 (layout_layout): ditto.
9576 (syms_of_glyphs_widget): add margin-width.
9577 (image_instantiator_layout): allow margin-width.
9579 * glyphs.c (update_widget_instances): make a normal function.
9580 (syms_of_glyphs): remove Qupdate_widget_instances.
9583 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9584 so that we don't corrupt ideas about the last event or
9585 command. Remove widget-callback-current-channel fiddling.
9586 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9588 2000-05-01 Martin Buchholz <martin@xemacs.org>
9590 * XEmacs 21.2.33 is released.
9592 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
9594 * make-src-depend: Allow dots in header file name.
9596 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
9598 * mule-charset.h (struct charset_lookup): Add
9599 next_allocated_1_byte_leading_byte and
9600 next_allocated_2_byte_leading_byte.
9601 * mule-charset.c: Move above two variables so that those values
9604 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
9606 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9607 when string length is zero.
9608 (find_charsets_in_emchar_string): Ditto.
9610 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
9612 * lisp.h: extern Qdialog and Qmenubar.
9614 * gui-x.c: added events.h.
9615 also fixed typo which made the file uncompilable.
9617 * general.c: Added Qmenubar and Qdialog
9619 2000-04-28 Ben Wing <ben@xemacs.org>
9621 * frame-msw.c (mswindows_init_frame_1):
9622 * frame-msw.c (mswindows_mark_frame):
9623 * event-msw.c (mswindows_enqueue_dispatch_event):
9625 * console-msw.h (struct mswindows_frame):
9626 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9627 there are now three hash tables for callbacks.
9628 mswindows_enqueue_dispatch_event is no longer static.
9630 * dialog-x.c (maybe_run_dbox_text_callback):
9631 * dialog-x.c (dbox_descriptor_to_widget_value):
9632 switch to new cons3 form for callbacks.
9634 * glyphs-msw.c (mswindows_register_gui_item):
9635 * glyphs-msw.c (mswindows_widget_instantiate):
9636 * glyphs-msw.c (add_tree_item):
9637 * glyphs-msw.c (add_tab_item):
9638 new image instance parameter, so it can be passed to callback-ex.
9639 respect :callback-ex as well as :callback.
9641 * glyphs-widget.c (VALID_GUI_KEYWORDS):
9644 * glyphs.c (print_image_instance):
9645 prettify, e.g. now prints widget type.
9648 certain funs have new image instance parameter.
9651 * gui.c (get_gui_callback):
9652 * gui.c (gui_item_add_keyval_pair):
9653 * gui.c (gui_item_init):
9654 * gui.c (gui_add_item_keywords_to_plist):
9655 * gui.c (mark_gui_item):
9656 * gui.c (gui_item_hash):
9657 * gui.c (gui_item_equal):
9658 * gui.c (copy_gui_item):
9659 * gui.c (syms_of_gui):
9660 recognize callback-ex in a number of places.
9661 also, fix the annoying "can't get out of yes-no dialog" bug.
9664 * gui.h (struct Lisp_Gui_Item):
9665 recognize callback-ex in a number of places.
9667 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9668 new parameter in button_item_to_widget_value.
9670 * glyphs-x.c (x_update_widget):
9671 * glyphs-x.c (x_button_instantiate):
9672 * glyphs-x.c (x_button_update):
9673 * glyphs-x.c (x_progress_gauge_instantiate):
9674 * glyphs-x.c (x_edit_field_instantiate):
9675 * glyphs-x.c (x_combo_box_instantiate):
9676 * glyphs-x.c (x_tab_control_instantiate):
9677 * glyphs-x.c (x_label_instantiate):
9678 new image instance parameter in various places.
9681 * event-Xt.c (enqueue_Xt_dispatch_event):
9682 this fun gets exported.
9685 * gui-msw.c (mswindows_handle_gui_wm_command):
9686 handle both :callback and :callback-ex, and generate our own
9687 event because it's one of the callback-ex arguments.
9690 * gui-x.c (popup_selection_callback):
9691 handle both :callback and :callback-ex, and generate our own
9692 event because it's one of the callback-ex arguments.
9693 * gui-x.c (button_item_to_widget_value):
9694 * gui-x.c (gui_items_to_widget_values_1):
9695 * gui-x.c (gui_item_children_to_widget_values):
9696 * gui-x.c (gui_items_to_widget_values):
9697 new image instance parameter in various places.
9699 * fns.c (Freplace_list):
9700 fix small typo in doc string.
9703 declare enqueue_Xt_dispatch_event.
9705 2000-04-28 Ben Wing <ben@xemacs.org>
9708 * buffer.c (Frecord_buffer):
9709 * buffer.c (syms_of_buffer):
9710 delete record-buffer-hook.
9713 * fns.c (Freplace_list):
9714 * fns.c (syms_of_fns):
9715 new primitive replace-list.
9718 slot for old buffer-alist.
9724 * redisplay.c (redisplay_frame):
9725 * redisplay.c (syms_of_redisplay):
9726 * redisplay.c (vars_of_redisplay):
9727 new hook buffer-list-changed-hook.
9730 2000-04-27 Ben Wing <ben@xemacs.org>
9732 * extents.h: extern in_modeline_generation.
9734 * redisplay.c (generate_formatted_string_db): set
9735 in_modeline_generation.
9737 * extents.c (extent_changed_for_redisplay): don't mark redisplay
9738 flags if in modeline generation. otherwise frame-modified-tick
9739 is ticked far too often.
9740 Declare in_modeline_generation.
9742 2000-04-26 Ben Wing <ben@xemacs.org>
9744 * emacs.c (vars_of_emacs): document quick-build "error-checking"
9746 (vars_of_emacs): add quick-build as an error-checking option.
9747 A bit kludgy, but there doesn't seem much point in creating
9748 a real var for this.
9750 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9752 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
9754 * redisplay.h (struct display_line): Add a new variable,
9757 * redisplay.c (create_text_block): Set dl->line_continuation if
9759 (create_string_text_block): Ditto.
9760 (regenerate_window_incrementally): Use line_continuation instead
9761 of searching continuation glyph.
9762 (add_margin_runes): Call add_glyph_rune.
9763 (add_glyph_rune): Handle margin glyph.
9765 2000-04-20 Martin Buchholz <martin@xemacs.org>
9767 * filelock.c (fill_in_lock_file_name):
9769 Check for IS_ANY_SEP instead of '/'.
9771 Avoid generating gratuitous garbage. Call user_login_name() directly.
9772 Never check errno without first seeing that system call failed.
9773 (unlock_file): Add GCPRO.
9774 (Flock_buffer): Fix docstring.
9775 (Ffile_locked_p): Fix docstring. Add GCPRO.
9777 2000-04-19 Martin Buchholz <martin@xemacs.org>
9779 * sysdep.c (get_pty_max_bytes):
9780 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9781 strings longer than 252 bytes.
9783 * md5.c: Unconditionally include ANSI header <limits.h>
9785 * glyphs-x.c (convert_EImage_to_XImage):
9786 * lisp-union.h (union Lisp_Object):
9787 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9789 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9791 * filelock.c (current_lock_owner): Remove unused variable o, p.
9793 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
9795 * callint.c: Remove multiply defined symbol Qlet
9796 (syms_of_callint): ditto.
9798 2000-04-14 Andy Piper <andy@xemacs.org>
9800 * general.c (syms_of_general): add last-command, this-command, let
9803 * lisp.h: declare various symbols.
9805 * glyphs.h: declare Qwidget_callback_current_channel;
9807 * glyphs-widget.c (syms_of_glyphs_widget): add
9808 Qgui_callback_current_channel.
9809 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9811 * gui-msw.c (mswindows_handle_gui_wm_command): bind
9812 widget-callback-current-channel when invoking the interactive
9813 arg. Also bind last-command and next-command when invoking the
9815 * gui-x.c (popup_selection_callback): ditto.
9817 * gui.c (get_gui_callback): massage args so that we are always
9818 calling eval. This allows us to add our own variable bindings
9821 * glyphs-x.c (x_button_instantiate): use
9822 gui_items_to_widget_values since this is GC safe.
9823 (x_progress_gauge_instantiate): ditto.
9824 (x_edit_field_instantiate): ditto.
9825 (x_label_instantiate): ditto.
9827 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9828 (emacs_Xt_event_widget_focus_out): new function
9829 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9831 (emacs_Xt_event_add_widget_actions): new function. add focus
9832 functions as actions.
9833 (init_event_Xt_late): use it.
9835 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
9837 * event-stream.c (Fdispatch_event): Doc fix.
9839 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
9841 * postgresql.c: Remove all references to PQsetenv*.
9843 * postgresql.h: Remove references to PGsetenvHandler object.
9844 * lrecord.h (lrecord_type): Ditto.
9846 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9848 * glyphs-msw.h (struct mswindows_image_instance_data): Added
9849 real_heigh and real_width members, and accessor macros for these.
9851 * glyphs-msw.c (init_image_instance_geometry): New function.
9852 (init_image_instance_from_dibitmap): Use it.
9853 (mswindows_resource_instantiate): Use it.
9854 (init_image_instance_from_xbm_inline): Use it.
9855 (mswindows_initialize_image_instance_mask): Use real bitmap
9857 (mswindows_create_resized_bitmap): Ditto.
9858 (mswindows_create_resized_mask): Ditto.
9860 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9861 and bitmap to their surface size.
9863 2000-04-11 Jan Vroonhof <jan@xemacs.org>
9865 * process-unix.c (unix_send_process): Guard against process MIA
9866 after Faccept_process_output.
9868 2000-04-11 Ben Wing <ben@xemacs.org>
9870 * eval.c (unbind_to_hairy): fix brokenness introduced by
9871 nanosecond speed improvements.
9873 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
9875 * sunplay.c (init_device): To play sounds correctly, the device
9876 apparently needs to be initialized at least once by XEmacs. Make
9879 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
9881 * redisplay.c (add_margin_runes): Add text image glyph
9884 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9886 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9887 gcc is newer than 2.5.
9889 2000-04-06 Colin Rafferty <colin@xemacs.org>
9891 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9893 * fns.c (size_bit_vector):
9894 * alloc.c (size_vector):
9895 (make_vector_internal):
9896 (make_bit_vector_internal):
9897 (sweep_bit_vectors_1):
9898 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9900 2000-04-06 Andy Piper <andy@xemacs.org>
9902 * gmalloc.c (malloc): undo previous change.
9907 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
9909 * line-number.c (buffer_line_number): Revert to former version.
9911 2000-04-06 Andy Piper <andy@xemacs.org>
9913 * gmalloc.c (malloc): add error checking.
9918 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9919 button_item_to_widget_value arg.
9921 * glyphs-x.c (x_button_instantiate): add extra
9922 button_item_to_widget_value arg.
9923 (x_progress_gauge_instantiate): ditto.
9924 (x_edit_field_instantiate): ditto.
9925 (x_label_instantiate): ditto.
9927 * gui-x.c (gui_items_to_widget_values_1): add extra
9928 button_item_to_widget_value arg.
9929 (button_item_to_widget_value): add extra menu_item_p arg.
9931 * gui-x.h: change signature of button_item_to_widget_value.
9933 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9934 button_item_to_widget_value arg.
9936 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9938 * buffer.h (struct buffer): auto_save_modified should be long.
9940 2000-04-05 Andy Piper <andy@xemacs.org>
9942 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9944 (button_query_geometry): give a little more room so that athena
9947 2000-04-05 Andy Piper <andy@xemacs.org>
9949 * faces.c (complex_vars_of_faces): The widget face should inherit
9950 the font of the gui-element face.
9952 2000-04-04 Andy Piper <andy@xemacs.org>
9954 * glyphs-x.c (x_button_update): new function. unconditionally
9955 update a button's state when the instance is dirty.
9956 (image_instantiator_format_create_glyphs_x): add x_button_update.
9957 (x_widget_instantiate): remove old resize cruft.
9959 2000-04-02 Andy Piper <andy@xemacs.org>
9961 * frame.c (change_frame_size_1): The introduction of gutters means
9962 that we need to allow 0 as a potential frame dimension.
9964 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
9966 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9967 image glyph if allow_cursor.
9968 (add_hscroll_rune): Don't allow cursor to border glyph.
9969 (create_text_block): Ditto.
9971 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9973 (redisplay_output_layout): Call ensure_face_cachel_complete for
9977 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
9979 * redisplay.c (add_glyph_rune): Adding text image as text runes.
9981 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9984 * redisplay-tty.c (tty_output_display_block): Delete the routine
9985 for text image glyph
9986 * redisplay-x.c (x_output_display_block): ditto
9987 * redisplay-msw.c (mswindows_output_display_block): ditto
9989 2000-02-02 Mike Alexander <mta@arbortext.com>
9991 Note: Some of these were committed by accident as part of other
9994 * regex.c (regex_compile): Avoid compiler warnings.
9996 * ntproc.c (sys_spawnve): Avoid compiler warnings.
9998 * nt.h: Declare term_ntproc correctly.
10000 * nt.c: Remove incorrect declaration of get_home_directory which
10001 is declared correctly in lisp.h.
10003 * keymap.c (get_keyelt): Avoid compiler warnings.
10004 (raw_lookup_key_mapper): Avoid compiler warnings.
10006 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
10008 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
10010 * filemode.c (mode_string): Avoid compiler warnings.
10012 * file-coding.c (Fcoding_system_aliasee): Add return statement to
10015 * events-mod.h: Undef some things that winuser.h defines differently.
10017 * data.c (Faset): Avoid compiler warnings.
10019 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10021 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10023 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10024 Fall through to simple beep on error.
10025 Replace "extern" by real header file.
10027 * linuxplay.c: Use nativesound.h
10028 (play_sound_data): Return error code. Be less verbose on error.
10030 * sunplay.c: Use nativesound.h
10031 (play_sound_data): Return error code. Be less verbose on error.
10033 * ntplay.c: Use nativesound.h
10034 (play_sound_data): Return fake error code
10036 * sgiplay.c: Use nativesound.h
10037 (play_sound_data): Return error code
10039 * hpplay.c: Use nativesound.h, partially implement
10040 new error code. Break compilation until finished.
10041 (play_sound_data): error code.
10043 * nativesound.h (play_sound_file):
10044 (play_sound_data): Prototype in new header.
10046 2000-03-31 Andy Piper <andy@xemacs.org>
10048 * glyphs-widget.c: (button_query_geometry): new function. Adjust
10049 for toggle and radio buttons.
10050 (image_instantiator_buttons): use it.
10052 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10054 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10055 (x_update_horizontal_scrollbar_callback): Return if no mirror was
10056 found. Scrollbar event probably belonged to some old config.
10058 2000-03-31 Andy Piper <andy@xemacs.org>
10060 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10062 (initialize_widget_image_instance): default layout to
10063 LAYOUT_HORIZONTAL rather than 0.
10064 (widget_instantiate): reverse the item list at the end rather than
10066 (layout_layout): re-code for the border text at the front of the
10067 item list rather than at the end.
10068 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10069 provided by the user.
10070 (widget_query_geometry): comment.
10072 2000-03-30 Andy Piper <andy@xemacs.org>
10074 * glyphs-widget.c (image_instantiator_layout): allow standard
10075 widget keywords in layouts.
10077 * gutter.c (output_gutter): cope with nil gutter contents.
10079 * frame.c (Fset_frame_properties): add gutter docs.
10081 2000-03-29 Andy Piper <andy@xemacs.org>
10083 * toolbar-msw.c (TBSTYLE_FLAT): add.
10084 (mswindows_output_toolbar): minor fiddling.
10086 2000-03-29 Andy Piper <andy@xemacs.org>
10088 * gutter.c (output_gutter): force gutter size recalculation if
10089 what we are trying to display won't fit.
10090 (update_gutter_geometry): new function. A per-gutter version of
10091 update_frame_gutter_geometry.
10092 (update_frame_gutter_geometry): use it.
10093 (redraw_exposed_gutter): add extra debugging output.
10095 2000-03-28 Mike Alexander <mta@arbortext.com>
10097 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10098 (pdump_file_unmap): Implement it on Windows
10099 (pdump_file_get): Save alocated handles for pdump_file_unmap
10101 2000-03-28 Andy Piper <andy@xemacs.org>
10103 * gui.c (get_gui_callback): treat Quit specially.
10105 2000-03-27 Andy Piper <andy@xemacs.org>
10107 * glyphs.c (image_instantiate): be careful to check in the same
10110 2000-03-27 Didier Verna <didier@xemacs.org>
10112 * config.h.in: define the proper SMART_INCLUDE macro.
10113 handle renaming of `foo_h_path' to `foo_h_file'.
10115 * database.c: ditto.
10119 * linuxplay.c: ditto.
10121 * terminfo.c: ditto.
10123 * tooltalk.h: ditto.
10125 2000-03-27 Andy Piper <andy@xemacs.org>
10127 * glyphs-msw.c (mswindows_update_widget): make sure the widget
10128 gets updated whenever the face might have changed.
10130 2000-03-26 Mike Alexander <mta@arbortext.com>
10132 * dumper.c (pdump_resource_free): Fix the comment.
10134 2000-03-21 Olivier Galibert <galibert@pobox.com>
10136 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10138 2000-03-22 Mike Alexander <mta@arbortext.com>
10140 * dumper.c: Include Windows headers on Windows
10141 (pdump_resource_free): Add a body to the function
10142 (pdump_load): exe_name -> exe_path and add some comments.
10144 2000-03-25 Mike Alexander <mta@arbortext.com>
10146 * gui.c (copy_gui_item_tree): Return a value in all cases
10148 2000-03-21 Didier Verna <didier@xemacs.org>
10150 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10152 (SMART_INCLUDE): new macro.
10153 (POSTGRES_INCLUDE): new macro to include postgresql headers from
10154 the proper location.
10156 * postgresql.c: use it.
10160 2000-03-24 Andy Piper <andy@xemacs.org>
10162 * gutter.c (redraw_exposed_gutters): must be "in display" when we
10165 2000-03-24 Andy Piper <andy@xemacs.org>
10167 * redisplay-output.c (compare_runes): use image_instance_changed
10168 to detect changes. Do not depend on glyphs_changed, only depend on
10170 (redisplay_output_layout): add debug messages.
10171 (compare_runes): ditto.
10173 * glyphs.h: declare new functions.
10174 (struct Lisp_Image_Instance): remove percent and associated
10177 * gui.h: declare new copying functions.
10179 * gui.c (copy_gui_item_tree): new function.
10180 (copy_gui_item): new function.
10181 (gui_item_id_hash): revert to standard hash.
10182 (gui_item_hash): ditto.
10183 (gui_item_hash_internal): deleted.
10184 (mark_gui_item): mark value.
10185 (gui_item_add_keyval_pair): add value.
10186 (gui_item_init): ditto.
10187 (gui_add_item_keywords_to_plist): ditto.
10188 (gui_item_equal): ditto.
10189 (syms_of_gui): add Q_value.
10191 * glyphs-x.c (x_progress_gauge_update): use pending items and
10192 value for setting the state.
10193 (x_update_widget): don't set items from pending here.
10195 * glyphs-widget.c (update_widget): update items here.
10196 (progress_gauge_set_property): use items for storing value. Put
10197 new value in pending items.
10199 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10200 items for new value. Convert percent -> value.
10201 (mswindows_tab_control_update): don't update items here.
10203 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10204 (update_subwindow): ditto.
10205 (image_instance_changed): new function. Compare hash values and
10206 past and present widget items.
10207 (image_instantiate): We more careful about where we instantiate
10209 (image_instantiate): add error checking.
10211 * gutter.c (syms_of_gutter): use -hook.
10213 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
10215 * console-tty.c (Fset_console_tty_input_coding_system): Use
10217 (Fset_console_tty_output_coding_system): Use Qterminal.
10218 (tty_init_console): Use Qkeyboard and Qterminal.
10220 2000-03-21 Ben Wing <ben@xemacs.org>
10222 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10223 From Mike Alexander <mta@arbortext.com>.
10225 2000-03-21 Ben Wing <ben@xemacs.org>
10227 * event-msw.c (mswindows_need_event): Horrible kludge to fix
10228 process brokenness. Proper implementation to come.
10230 Rename call-process-internal to old-call-process-internal.
10231 New impl. in process.el.
10233 2000-03-21 Martin Buchholz <martin@xemacs.org>
10235 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10237 2000-03-20 Andy Piper <andy@xemacs.org>
10239 * glyphs.c (full_list_hash): make hashes of the same elements in
10240 different orders return different values.
10242 2000-03-20 Martin Buchholz <martin@xemacs.org>
10244 * XEmacs 21.2.32 is released.
10246 2000-03-20 Martin Buchholz <martin@xemacs.org>
10248 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10249 (DFC_MALLOC_USE_CONVERTED_DATA):
10250 Add aliasing-safe casts to allow use with char* or unsigned char*
10253 * eldap.c (Fldap_open):
10254 (Fldap_search_basic):
10257 Make C++-compilable.
10258 Make sure GCPRO'ed variables are initialized.
10259 Use temp variables to avoid repeated calls to Flength.
10261 2000-03-16 Martin Buchholz <martin@xemacs.org>
10264 Make sure PATH_MAX is always defined.
10265 Include limits.h for PATH_MAX.
10266 Deprecate use of MAXPATHLEN.
10268 2000-03-10 Martin Buchholz <martin@xemacs.org>
10270 * emacs.c: Add reinit_vars_of_fileio.
10271 * symsinit.h: Add reinit_vars_of_fileio.
10272 * fileio.c (reinit_vars_of_fileio): New.
10273 * fileio.c (Fmake_temp_name):
10274 Initialize temp_name random number from microseconds to make
10275 collisions even less likely. Initialize always at process startup
10276 time. (make-temp-name) used to return the same file name twice in
10278 Random stylistic fiddling.
10281 2000-03-20 Andy Piper <andy@xemacs.org>
10283 * glyphs.c (image_instantiate): allow text glyphs to be
10284 instantiated in the minibuffer window.
10286 2000-03-19 Andy Piper <andy@xemacs.org>
10288 * glyphs.c (image_instance_hash): be careful about which items we
10291 * glyphs-widget.c (tab_control_set_property): record into pending
10292 items rather than the actual items.
10294 * glyphs-x.c (x_update_widget): use pending items to update with.
10296 * glyphs-msw.c (mswindows_tab_control_update): use pending items
10299 * glyphs.c (mark_image_instance): mark pending items.
10301 * window.c (Fset_window_configuration): record the buffer.
10302 (Fselect_window): totally revert previous change which breaks many
10305 2000-03-18 Andy Piper <andy@xemacs.org>
10307 * glyphs-msw.c (mswindows_tab_control_update): force selected
10310 * glyphs.c (image_instantiate): don't allow the minibuffer as a
10311 window domain cache, otherwise we get inconsistencies at
10312 startup. There is something fishy at startup which can lead to the
10313 minibuffer being the selected window when the gutter content is
10316 * gui.c (parse_gui_item_tree_list): add probably unnecessary
10318 (parse_gui_item_tree_children): ditto.
10319 (parse_gui_item_tree_item): ditto.
10321 * glyphs.c (Fupdate_widget_instances): return something.
10323 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
10325 * window.c (Fselect_window): Undo 2000-03-17 change.
10327 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
10329 * postgresql.c (Fpq_setenv): Remove this turkey when linking
10330 against v7.0 libraries. Insta-coredump city until the postgres
10333 2000-03-17 Andy Piper <andy@xemacs.org>
10335 * faces.c (complex_vars_of_faces): don't give the widget face an
10336 inherited background pixmap.
10338 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10341 * event-stream.c (Fdispatch_non_command_events): return something.
10343 * gutter.c (output_gutter): use widget face.
10344 (clear_gutter): ditto.
10346 * NEWS: adjust again.
10348 * window.c (Fselect_window): make sure this runs to completion to
10349 avoid oddities with Fset_window_configuration.
10350 (Fcurrent_window_configuration): in general do not save the
10351 minibuffer as the selected window.
10353 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10355 2000-03-16 Olivier Galibert <galibert@pobox.com>
10357 * emacs.c (Frunning_temacs_p): Revert previous patch.
10358 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10360 2000-03-16 Andy Piper <andy@xemacs.org>
10362 * glyphs-x.c (x_tab_control_update): if no widget values then
10365 * NEWS: update for new features.
10367 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10368 synthetic event to the native system.
10369 (reinit_vars_of_event_Xt): set force_event_pending to
10370 emacs_Xt_force_event_pending.
10372 * events.h (struct event_stream): add force_event_pending.
10374 * specifier.c (recompute_one_cached_specifier_in_window): add
10377 * redisplay.c (redisplay_frame): don't call
10378 update_frame_subwindows. Reset subwindow cachels when
10379 subwindows_changed, removing this was an optimization too far.
10381 * redisplay-output.c (compare_runes): reorganize so that we catch
10382 glyph changes when we want them. Set optimize_output when this
10383 would help layouts.
10384 (redisplay_output_layout): remove frame_really_changed, use
10385 optimize_output instead.
10387 * redisplay-msw.c (mswindows_output_display_block): reset
10388 optimize_output after outputting a glyph.
10389 * redisplay-x.c (x_output_display_block): ditto.
10390 * redisplay-tty.c (tty_output_display_block): ditto.
10392 * gutter.c: (specifier_vars_of_gutter): use new spec changed
10394 (gutter_specs_changed): do specific gutter positions.
10395 (top_gutter_specs_changed): new function. Only update the
10396 specified gutter specs.
10397 (bottom_gutter_specs_changed): ditto.
10398 (left_gutter_specs_changed): ditto.
10399 (right_gutter_specs_changed): ditto.
10401 * gui.c (gui_item_hash_internal): new function, does a real hash.
10402 (gui_item_id_hash): use it.
10403 (gui_item_hash): hash the eval'ed gui_item.
10405 * gui-x.c (popup_selection_callback): send an eval event to call
10406 Fupdate_widget_instances.
10408 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10409 to call Fupdate_widget_instances.
10411 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10412 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10414 * glyphs.c: (update_frame_subwindows): deleted.
10415 (Fupdate_widget_instances): new function for updating the dirty
10416 state of widgets that might have changed.
10417 (syms_of_glyphs): add Qupdate_widget_instances.
10418 (full_list_hash): hash a list completely.
10419 (image_instance_hash): use it for items and properties.
10421 * frame-msw.c (mswindows_size_frame_internal): remove unused
10424 * faces.h (struct face_cachel): fix comment.
10426 * event-stream.c (Fdispatch_non_command_events): new
10427 function. Process non-command events, forcing an event cycle
10429 (syms_of_event_stream): declare.
10430 (event_stream_force_event_pending): new function. Force an event
10431 on the native event queue so that an event cycle will occur next
10435 (struct ntpipe_shove_stream):
10436 (mswindows_enqueue_dispatch_event):
10437 (mswindows_dequeue_dispatch_event):
10438 (mswindows_cancel_dispatch_event):
10439 (mswindows_pump_outstanding_events):
10440 (mswindows_drain_windows_queue):
10441 (mswindows_handle_paint):
10442 (mswindows_wnd_proc):
10443 (mswindows_key_to_emacs_keysym):
10444 (get_process_input_waitable):
10445 (emacs_mswindows_delete_stream_pair): re-indent file.
10446 (mswindows_need_event): do not process further fds if the windows
10447 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10448 fixes the 100% cpu problem.
10449 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10451 2000-03-15 Olivier Galibert <galibert@pobox.com>
10457 * emacs.c: Moved dump file searching to dumper.c.
10458 (Frunning_temacs_p): Fixed.
10460 * alloc.c: Moved everything pdump-related to dumper.c. Removed
10461 last_lrecord_type_index_assigned.
10463 2000-02-20 Olivier Galibert <galibert@pobox.com>
10465 * symsinit.h: Added reinit parameter to init_console_stream
10468 * lisp.h: Added file parameter to pdump_load declaration.
10470 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10471 support. Added dump file searching.
10473 * config.h.in: Added EMACS_PROGNAME.
10475 * console-stream.c (init_console_stream): Fix reinitialisation
10476 when running from temacs.
10478 * alloc.c (pdump): Add id support.
10479 (pdump_load): Add file parameter and signature/id support.
10481 * Makefile.in.in: Add full pdump support.
10483 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
10485 * postgresql.c: Update documentation to reflect latest code
10487 (print_result): Show tuple counts in printed representation when
10489 (Fpq_put_nbytes): MULE-ize.
10490 (Fpq_get_line_async): Ditto.
10492 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10494 * postgresql.c (Fpq_lo_import): Fix return value.
10495 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10497 2000-03-13 Ben Wing <ben@xemacs.org>
10499 * alloc.c (pdump_load):
10500 Fix compile warning under mswin.
10502 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10504 * postgresql.c: Mule-ization, bug fixes.
10505 Use PG_CODING to encapsulate coding system name changes.
10506 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10507 (pg-coding-system): Create.
10509 (Fpq_conn_defaults): Mule-ize.
10510 (Fpq_connectdb): Mule-ize & bug fix.
10511 (Fpq_connect_start): Mule-ize.
10512 (Fpq_set_client_encoding): Mule-ize.
10513 (Fpq_finish): Document `DEAD' connection status.
10514 (Fpq_clear): Ditto.
10515 (Fpq_pgconn): Mule-ize.
10516 (Fpq_exec): Mule-ize & bug fix.
10517 (Fpq_send_query): Ditto.
10518 (Fpq_get_result): Ditto.
10519 (Fpq_res_status): Mule-ize.
10520 (Fpq_result_error_message): Mule-ize.
10521 (Fpq_ntuples): fix comments.
10522 (Fpq_fname): Mule-ize.
10523 (Fpq_fnumber): Mule-ize.
10524 (Fpq_ftype): fix comments.
10525 (Fpq_get_value): Mule-ize.
10526 (Fpq_cmd_status): Ditto.
10527 (Fpq_cmd_tuples): Ditto.
10528 (Fpq_oid_value): Ditto.
10529 (Fpq_notifies): Ditto.
10530 (Fpq_lo_import): Ditto.
10531 (Fpq_lo_export): Ditto.
10532 (Fpq_get_line): Ditto.
10533 (Fpq_put_line): Mule-ize and bug fix.
10534 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10536 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10538 * postgresql.c (vars_of_postgresql): Mule-ize.
10539 (Fpq_conn_defaults): Ditto.
10541 2000-03-12 Ben Wing <ben@xemacs.org>
10543 * alloc.c (Fmake_byte_code):
10544 * alloc.c (debug_string_purity_print):
10545 * alloc.c (pdump_backtrace):
10546 * alloc.c (pdump_get_indirect_count):
10547 * alloc.c (pdump_register_sub):
10548 * alloc.c (pdump_register_object):
10549 * alloc.c (pdump_register_struct):
10550 * alloc.c (pdump_dump_data):
10551 * alloc.c (pdump_reloc_one):
10555 * console-msw.c (GetConsoleHwnd):
10556 * console-msw.c (msw_hide_console):
10557 * console-msw.c (msw_show_console):
10558 * console-msw.c (msw_ensure_console_buffered):
10559 * console-msw.c (msw_output_console_string):
10560 * console-msw.c (console_type_create_mswindows):
10562 a) Added functions to manipulate the console window for use with
10565 b) Added support for writing text to the console, which is now
10566 used under Windows when xemacs is not being run non-interactively,
10567 to write text that would otherwise be destined for stdout because
10568 under these circumstances, text written to stdout tends to
10569 disappear and not be seen.
10573 * event-Xt.c (x_event_to_emacs_event):
10574 * event-Xt.c (describe_event_window):
10575 * events-mod.h (XEMACS_MOD_CONTROL):
10577 * events.c (Fmake_event):
10578 * events.c (character_to_event):
10579 * events.c (event_to_character):
10580 * events.c (format_event_object):
10581 * events.c (Fevent_modifiers):
10583 * events.h (struct key_data):
10584 * events.h (struct button_data):
10585 * events.h (struct misc_user_data):
10586 * frame-x.c (Fcde_start_drag_internal):
10587 * frame-x.c (Foffix_start_drag_internal):
10588 * gpmevent.c (Freceive_gpm_event):
10590 * keymap.c (bucky_sym_to_bucky_bit):
10591 * keymap.c (control_meta_superify):
10592 * keymap.c (make_key_description):
10593 * keymap.c (keymap_lookup_directly):
10594 * keymap.c (create_bucky_submap):
10595 * keymap.c (keymap_store):
10596 * keymap.c (define_key_check_and_coerce_keysym):
10597 * keymap.c (define_key_parser):
10598 * keymap.c (define_key_alternate_name):
10599 * keymap.c (Fdefine_key):
10600 * keymap.c (raw_lookup_key_mapper):
10601 * keymap.c (struct map_keymap_unsorted_closure):
10602 * keymap.c (map_keymap_unsorted_mapper):
10603 * keymap.c (map_keymap_sort_predicate):
10604 * keymap.c (map_keymap_sorted):
10605 * keymap.c (accessible_keymaps_mapper_1):
10606 * keymap.c (where_is_recursive_mapper):
10607 * keymap.c (describe_map_mapper):
10608 * keymap.c (describe_map_sort_predicate):
10609 * keymap.c (describe_map):
10610 * keymap.c (complex_vars_of_keymap):
10611 And a number of other files, the key modifier preprocessor
10612 constants that xemacs uses have names that conflict with constants
10613 defined under MS Windows for other purposes, so they were renamed
10614 to begin with the prefix XEMACS_. The variables that hold such
10615 modifiers were changed to consistently be of type int to fix
10616 various compile warnings.
10618 * console.c (complex_vars_of_console):
10621 * device-msw.c (mswindows_finish_init_device):
10622 * device-msw.c (msw_get_workspace_coords):
10623 * device-msw.c (mswindows_device_system_metrics):
10624 and various other files, added support for a new
10625 device property called offset-workspace which returns the position
10626 of the upper left corner of the workspace area and goes along with
10627 the existing size-workspace property.
10630 * dialog-msw.c (push_bufbyte_string_as_unicode):
10631 * dialog-msw.c (mswindows_popup_dialog_box):
10632 Added support for XEmacs-style accelerator specifications in
10633 button text. Note: I didn't add support for this under X Windows,
10634 and somebody needs to do this.
10637 * dialog.c (Fpopup_dialog_box):
10638 Documented the support for accelerators that was just mentioned.
10640 editfns.c (get_home_directory): Changed behavior under Windows
10641 when HOME not defined; former behavior was irretrievably broken.
10644 * emacs.c (main_1):
10646 * minibuf.c (clear_echo_area_internal):
10647 * minibuf.c (echo_area_append):
10649 * print.c (std_handle_out_external):
10650 * print.c (std_handle_out_va):
10652 * print.c (write_string_to_stdio_stream):
10653 * print.c (output_string):
10654 * print.c (debug_print):
10655 * print.c (debug_backtrace):
10656 * print.c (debug_short_backtrace):
10657 Cleaned up the code that prints text to stdout so that this can be
10658 changed to output into a console window instead under MS Windows,
10659 as described above.
10662 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10663 * eval.c (internal_catch):
10664 * eval.c (unwind_to_catch):
10665 * eval.c (throw_or_bomb_out):
10666 * eval.c (condition_case_1):
10667 * eval.c (signal_1):
10668 * eval.c (check_error_state_sanity):
10669 * eval.c (call_with_suspended_errors_1):
10670 * eval.c (call_with_suspended_errors):
10671 * eval.c (reinit_vars_of_eval):
10672 Added code to catch throw loops and check for a pesky bug that may
10676 * event-msw.c (key_needs_default_processing_p):
10677 * event-msw.c (mswindows_wnd_proc):
10678 * event-msw.c (mswindows_modifier_state):
10679 * event-msw.c (emacs_mswindows_quit_p):
10680 * event-msw.c (vars_of_event_mswindows):
10681 a) Added support for using the alt key to select menu items as is
10682 standard under MS Windows. This is controlled using the variable
10683 menu-accelerator-enabled, just like under X Windows. There is an
10684 option on the options menu to turn this support on. I really
10685 think that it should be on by default under Windows, but I'm not
10686 going to make this change yet.
10688 b) Added support for dynamic display size changes under Windows.
10691 * event-stream.c (maybe_echo_keys):
10692 * event-stream.c (Fnext_event):
10693 * event-stream.c (command_builder_find_leaf):
10694 * event-stream.c (lookup_command_event):
10695 * event-stream.c (execute_command_event):
10696 * event-stream.c (pre_command_hook):
10697 * event-stream.c (post_command_hook):
10698 * event-stream.c (syms_of_event_stream):
10699 * event-stream.c (vars_of_event_stream):
10700 * event-stream.c (complex_vars_of_event_stream):
10701 * events.h (struct command_builder):
10703 a) Tried to clean up a little bit the horribly written x-specific
10704 accelerator code that crept into this file. I moved this code
10705 into menubar-x.c where it belongs. I also needed to move the
10706 command builder structure into the file events.h because it is
10707 accessed directly by this accelerator code. What I didn't do, but
10708 which should be done at some point, is to properly abstract this
10709 code using device methods instead of the kludgy way that it
10710 currently hooks into the event code.
10712 b) Added the lisp variables this-command-properties and
10713 last-command- properties, which should be used to synchronize two
10714 adjacent commands in preference to playing games with the variable
10715 this-command, which is typically what happens.
10717 c) Added some slightly nasty code to hook into the lisp support
10718 for shifted- motion-key selection. This is actually necessary for
10719 somewhat complicated reasons, which are described in
10720 simple.el. (NB: I think the proper thing would be to have the code
10721 that calls the pre and post command hooks also call out to generic
10722 lisp functions in simple.el, where all built-in stuff could be
10723 added. I will think about this more.)
10725 * event-unixoid.c (poll_fds_for_input):
10726 * lread.c (readchar):
10727 * redisplay-tty.c (tty_clear_frame):
10728 * redisplay-x.c (x_get_gc):
10729 * signal.c (interrupt_signal):
10730 And a whole bunch of other files: fixed up places that printed
10731 directly to stderr to instead call the function stderr_out so that
10732 the changes I made under Windows work correctly.
10734 * filemode.c (mode_string):
10738 * frame-msw.c (mswindows_size_frame_internal):
10739 Fixed the computation of frame size and position to keep the frame
10740 within the workspace area, rather than within the physical
10741 dimensions of the screen, so that the frame doesn't overlap window
10742 manager decorations, such as the start menu and toolbar, typically
10743 at the bottom of the screen.
10745 * frame.c (vars_of_frame):
10746 Changed the default frame title format under MS Windows to consist
10747 of buffername-XEmacs, which is standard under MS Windows. I think
10748 it might be a good idea to change this everywhere because I think
10749 it is superior to the current frame title format, but this is the
10750 kind of change that is likely to cause some people to get annoyed,
10751 so I'm not making it.
10753 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10755 * gui-msw.c (mswindows_handle_gui_wm_command):
10756 Fixed compile warnings.
10759 * gui-x.c (strdup_and_add_accel):
10760 * gui-x.c (button_item_to_widget_value):
10762 Added code to automatically put an accelerator onto the beginning
10763 of menu items that don't have one as is now the standard, and is
10764 described more later. Also fixed things so that the menu item
10765 name can be an evaluated expression, again a new standard.
10768 * gui.c (gui_item_add_keyval_pair):
10769 * gui.c (make_gui_item_from_keywords_internal):
10770 * gui.c (gui_add_item_keywords_to_plist):
10771 * gui.c (gui_item_accelerator):
10772 * gui.c (gui_name_accelerator):
10773 * gui.c (gui_item_included_p):
10774 * gui.c (gui_item_display_flush_left):
10775 * gui.c (gui_item_display_flush_right):
10776 * gui.c (parse_gui_item_tree_item):
10777 * gui.c (parse_gui_item_tree_children):
10778 * gui.c (parse_gui_item_tree_list):
10779 Mule-ized. Cleanup. GCPRO addition.
10781 * line-number.c (buffer_line_number):
10783 * lisp.h (EMACS_INT_MAX):
10784 Added the manifest constant EMACS_INT_MIN corresponding to the
10785 existing constant EMACS_INT_MAX. This is partially to fix compile
10786 warnings under Windows, and partly for cleanliness.
10789 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10790 * menubar-msw.c (msw_translate_menu_or_dialog_item):
10791 * menubar-msw.c (displayable_menu_item):
10792 * menubar-msw.c (populate_menu_add_item):
10793 * menubar-msw.c (populate_or_checksum_helper):
10794 * menubar-msw.c (populate_menu):
10795 * menubar-msw.c (update_frame_menubar_maybe):
10796 * menubar-msw.c (prune_menubar):
10797 * menubar-msw.c (msw_char_is_accelerator):
10798 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10799 * menubar-msw.c (mswindows_handle_wm_command):
10800 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10801 * menubar-msw.c (mswindows_handle_wm_initmenu):
10802 * menubar-msw.c (mswindows_update_frame_menubars):
10803 * menubar-msw.c (mswindows_free_frame_menubars):
10804 * menubar-msw.c (mswindows_popup_menu):
10805 Fixed a bug in handling accelerators where an extra character
10806 would be displayed in the menu item. Also generalized the
10807 function displayable_menu_item because it is now used by the
10808 dialog box code as well. And finally, added code in the functions
10809 that create the menubar to extract a list of accelerators for the
10810 top level menubar, which is used in the event code to determine
10811 whether a particular alt-key combination should be used to invoke
10812 a menu item, or should be passed through to access the standard
10813 XEmacs keymap binding for this key combination.
10815 Much needed GCPROing.
10818 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10819 * menubar-x.c (menu_item_descriptor_to_widget_value):
10820 * menubar-x.c (restore_in_menu_callback):
10821 * menubar-x.c (x_popup_menu):
10822 * menubar-x.c (menu_move_up):
10823 * menubar-x.c (menu_move_down):
10824 * menubar-x.c (menu_move_left):
10825 * menubar-x.c (menu_move_right):
10826 * menubar-x.c (menu_select_item):
10827 * menubar-x.c (command_builder_operate_menu_accelerator):
10828 * menubar-x.c (menu_accelerator_junk_on_error):
10829 * menubar-x.c (command_builder_find_menu_accelerator):
10830 * menubar-x.c (Faccelerate_menu):
10832 Moved a whole bunch of code here that was previously in
10833 event-stream.c as described above. There is also code connected
10834 to the new standard of adding an accelerator to the beginning of
10835 menu items that don't have one as described above and below.
10838 * menubar.c (menu_parse_submenu_keywords):
10839 * menubar.c (Fmenu_find_real_submenu):
10840 * menubar.c (Fnormalize_menu_item_name):
10841 * menubar.c (syms_of_menubar):
10842 * menubar.c (vars_of_menubar):
10843 * menubar.c (complex_vars_of_menubar):
10845 a) Cleaned up a bunch of documentation and improved it.
10847 b) XEmacs now automatically adds an accelerator onto the beginning
10848 of any menu items that don't have one. I did this because there
10849 will inevitably be some menu items on the main menubar that don't
10850 have accelerators on them because the package that adds that
10851 particular menu item hasn't yet been fixed up to have accelerators
10852 in them and it looked rather strange to have some items with and
10853 some items without accelerators, especially since even in items
10854 without accelerators, you can, at least under windows, still
10855 access the item through an accelerator corresponding to the first
10856 character in the item's name. If people don't like this behavior,
10857 I can add a variable to turn it off optionally, but I'm not sure
10858 this is a good idea because we really do need to have accelerators
10859 on all of the menu items, and if a package doesn't like the
10860 accelerators being put on the first character, then it should put
10861 the accelerators where they belong.
10863 c) I made a behavior change, which is that the descriptor that
10864 specifies the text of the menu item, which formerly was just a
10865 string, can now also be an evaluated expression. This makes this
10866 descriptor parallel with all of the others, which could also be
10867 evaluated expressions. This also obviates the need for the
10868 keyword :label, which was previously listed in the documentation
10869 as unimplemented, and which was for the same purpose.
10874 * ntproc.c (new_child):
10875 * ntproc.c (sys_spawnve):
10876 * ntproc.c (find_child_console):
10877 * ntproc.c (sys_kill):
10878 Fixed compile warnings. By the way, this file should really go
10879 away entirely, and this will happen as soon as Kirill makes his
10880 final round of process cleanups, which affect the function
10884 * process-nt.c (struct nt_process_data):
10885 * process-nt.c (find_process_from_pid):
10886 * process-nt.c (send_signal_the_nt_way):
10887 * process-nt.c (enable_child_signals):
10888 * process-nt.c (find_child_console):
10889 * process-nt.c (send_signal_the_95_way):
10890 * process-nt.c (nt_finalize_process_data):
10891 * process-nt.c (ensure_console_window_exists):
10892 * process-nt.c (nt_create_process):
10893 * process-nt.c (nt_kill_child_process):
10894 * process-nt.c (nt_kill_process_by_pid):
10895 * process-nt.c (nt_open_network_stream):
10896 * process-nt.c (vars_of_process_nt):
10897 Copied over code from Emacs 20.5 to correctly send signals to sub-
10898 processes under Windows 95. Also added code to automatically
10899 create and hide console window when a sub-process is created under
10900 Windows 95, which obviates the need for the separate runemacs.exe
10901 executable, and finally implemented some variables that were
10902 implemented in Emacs 20.5, but previously not in XEmacs. These
10903 include mswindows- start-process-share-console and
10904 mswindows-start-process-inherit-error-mode. (Both of these only
10905 apply to Windows 95.)
10907 * regex.c (regex_compile): Fixed a compile warning.
10910 * select-msw.c (mswindows_own_selection):
10911 * select-msw.c (mswindows_get_foreign_selection):
10912 * select-msw.c (mswindows_disown_selection):
10913 * select-msw.c (console_type_create_select_mswindows):
10914 * select-msw.c (syms_of_select_mswindows):
10915 Cleaned up the file and implemented the device method
10916 selection_exists_p, which had accidentally been left out. Also
10917 removed four lisp functions that were remnants from before the
10918 time when the selection code was properly device abstracted.
10919 These functions are no longer needed because there are generic
10920 equivalents, and because they were added recently and don't exist
10921 in FSF Emacs, I don't think there's any problem with just deleting
10925 * sysdep.c (sys_subshell):
10926 Fixed a compile warning, although in this case there's probably
10927 something wrong with this code, and it ought to be looked into
10928 more thoroughly by somebody who understands it.
10931 * window.c (Fwindow_text_area_height):
10932 * window.c (Fwindow_width):
10933 * window.c (Fwindow_full_width):
10934 * window.c (Fwindow_pixel_width):
10935 * window.c (debug_print_window):
10936 * window.c (syms_of_window):
10937 Added functions window-text-area-height and window-full-width,
10938 which are functions for returning various width and height
10939 characteristics of a window. (One of these functions is necessary
10940 for making the file dialog box work correctly, and the other one
10941 was added for completeness.) Also added a table to the
10942 documentation for window-height which describes the entire scheme
10943 for accessing width and height characteristics of a window.
10945 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10947 * nt.c (fstat): Added a comment for another problem with
10948 non-encapsulated [f]stat(), reported by Adrian Aichner
10949 <aichner@ecf.teradyne.com>.
10951 2000-03-11 Andy Piper <andy@xemacs.org>
10953 * window.c (make_dummy_parent): initialize subwindow instance
10955 (Fset_window_configuration): zero extent_modiff.
10957 2000-03-10 Andy Piper <andy@xemacs.org>
10959 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10960 more changes can be triggered.
10961 (Fredisplay_frame): ditto.
10962 (Fredraw_device): ditto.
10963 (Fredisplay_device): ditto.
10964 (redisplay_frame): make non-static.
10965 (redisplay_frame): call update_frame_gutter_geometry outside of
10968 * gutter.h: declare update_frame_gutter_geometry.
10970 * redisplay.h: declare redisplay_frame.
10972 * gutter.c (update_frame_gutter_geometry): move geometry changes
10973 in update_frame_gutters here. Geometry changes can only occur
10974 outside of redisplay.
10975 (update_frame_gutters): remove geometry change code.
10976 (Fredisplay_gutter_area): make sure that we are in display when we
10977 update and that we have flushed any size changes.
10979 2000-03-11 Andy Piper <andy@xemacs.org>
10981 * alloc.c (pdump_dump_data): remove i & count shadows.
10983 2000-02-27 Mike Alexander <mta@arbortext.com>
10985 * sysdep.h: Declare pdump_read_file
10987 * sysdep.c (pdump_read_file): New function
10989 * alloc.c (pdump_load): Call pdump_read_file to get the portable
10992 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10994 * lrecord.h: add `lrecord_type_pgsetenv'.
10996 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
10998 * symsinit.h: declare (vars|syms)_of* functions.
10999 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
11001 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
11003 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
11005 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
11008 * emacs.c (main_1): Call postgres initialization code.
11010 * postgresql.h: New file. PostgreSQL RDBMS support.
11011 * postgresql.c: New file.
11013 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
11015 * redisplay-output.c (redisplay_output_display_block): Disable
11018 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11020 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11021 (Fcanna_henkan_next): Ditto.
11022 (Fcanna_bunsetu_henkou): Ditto.
11023 (Fcanna_henkan_kakutei): Ditto.
11024 (Fcanna_henkan_end): Ditto.
11025 (Fcanna_henkan_quit): Ditto.
11026 (Fcanna_henkan_next): Set retun value correctly.
11027 (c2mu): Use unsigned char instead of signed char.
11029 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11031 * emacs.c (main_1): Always call syms_of_gui.
11032 * inline.c: include gui.h
11034 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11036 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11037 converted to Lisp_Object.
11038 (Qtop_bottom): New variable.
11039 (syms_of_redisplay): Initialize it.
11040 * redisplay.h (Vvisible_bell): Ditto.
11041 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11042 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11043 only flash top and bottom.
11045 2000-03-08 Andy Piper <andy@xemacs.org>
11047 * buffer.c (Frename_buffer): record new buffer name the right way.
11049 2000-03-08 Andy Piper <andy@xemacs.org>
11051 * glyphs.c (update_subwindow): increase hash depth so that widget
11052 items get picked up properly.
11054 * redisplay-output.c (compare_runes): increase hash depth so that
11055 widget items get picked up properly.
11057 2000-03-08 Andy Piper <andy@xemacs.org>
11059 * gutter.c (output_gutter): add some debug.
11061 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11062 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11063 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11065 * redisplay-output.c (compare_runes): use display_hash to
11066 determine if glyphs really are not the same.
11068 * glyphs.c (update_subwindow): check display_hash to see if
11069 anything really needs to be updated. If not then do
11070 nothing. Record the display_hash after updating.
11071 (image_instance_equal): compare the image_instance face also.
11073 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
11075 * redisplay.h: Fix comment style.
11077 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
11079 * consle-msw.h (struct mswindows_frame):
11080 Added new member paint_pending to indicate whether a WM_PAINT
11081 magic event has been queued for this frame.
11083 * event-msw.c (mswindows_drain_windows_queue):
11084 Don't queue a WM_PAINT magic event if one is already queued.
11085 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11087 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11089 2000-03-07 Didier Verna <didier@xemacs.org>
11091 * dired.c: #include `regex.h' after `sysfile.h'.
11093 2000-03-06 Martin Buchholz <martin@xemacs.org>
11095 * sound.c (init_nas_sound): Fix compiler warning.
11097 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11099 (MARK_STRUCT_AS_FREE):
11100 (MARK_STRUCT_AS_NOT_FREE):
11101 Make `gcc -fstrict-aliasing' work properly.
11103 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
11105 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11106 (mswindows_delete_device): Call CoUnnitialize().
11108 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11110 2000-02-25 <CraigL@DyCon.com>
11112 * process-nt.c: MinGW now has <shellapi.h>, but still needs
11115 * sysdep.c: This extern declaration for environ prevents MinGW
11116 from finding the variable in CRTDLL.DLL.
11118 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11120 (SHGFI_EXETYPE): ..
11121 (WM_MOUSEWHEEL): ..
11122 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11124 (MMRESULT): Removed, now defined in cygwin's windows headers.
11126 (uid_t,gid_t,pid_t,ssize_t): ..
11127 (_timeb): Removed, MinGW defines both _timeb and timeb.
11128 (HAVE_H_ERRNO): Added.
11129 (HAVE_TZNAME): Added, configure is not detecting this.
11131 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
11133 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11134 * syntax.c (syntax_match): Use it.
11136 * cmds.c: Import auto-fill-chars from FSF Emacs.
11137 (Vauto_fill_chars): New variables.
11138 (internal_self_insert): Check Vauto_fill_chars.
11140 Declare auto-fill-chars as a Lisp variable and initialize it.
11142 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
11144 * fileio.c (Fmake_symbolic_link):
11146 Run handlers even if local machine doesn't have symlinks.
11148 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
11150 * event-msw.c (mswindows_drain_windows_queue):
11151 Don't generate paint magic events for non-XEmacs frames.
11153 2000-03-05 Andy Piper <andy@xemacs.org>
11155 * redisplay.c (redisplay_frame): generate_displayable_area and
11156 friends assumes that we are not in GC, we therefore have to make
11157 sure that this doesn't happen.
11159 * gutter.c (calculate_gutter_size): generate_displayable_area
11160 assumes that we are not in GC, we therefore have to make sure that
11161 this doesn't happen.
11163 2000-03-05 Martin Buchholz <martin@xemacs.org>
11165 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11167 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
11169 * redisplay.c (regenerate_window): Make sure we set a sane value
11170 for end_pos even if we jump out of the loop.
11171 (regenerate_window): Answer Ben's question :-).
11172 (start_end_of_last_line): Add may_error argument.
11173 (start_of_last_line):
11174 (end_of_last_line): Pass may_error = 0.
11175 (end_of_last_line_may_error): New function.
11176 (pixel_to_glyph_translation): Use it, so we don't crash in
11179 2000-03-04 Andy Piper <andy@xemacs.org>
11181 * window.h (struct window): add gutter_extent_modiff.
11183 * window.c (allocate_window): zero out gutter_extent_modiff.
11185 * redisplay.h: declare sync_display_line_structs.
11187 * redisplay.c (add_glyph_rune): add a better comment.
11189 * redisplay-output.c (sync_display_line_structs): made non-static.
11190 (compare_runes): remove unneccesary glyph cachel access.
11192 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11194 * gutter.c (output_gutter): don't output the gutter if extent
11195 changes only involve extents in buffers. use 4 sets of display
11197 (gutter_extent_signal_changed_region_maybe): new function. Mark
11198 extents in gutters as changed.
11199 (update_frame_gutters): use 4 sets of display lines.
11200 (reset_gutter_display_lines): ditto.
11201 (free_frame_gutters): ditto.
11202 (redraw_exposed_gutter): force output of gutters.
11204 * frame.h (struct frame): add 4 sets of gutter display lines.
11206 * extents.c: (extent_changed_for_redisplay): signal changes to
11207 extents in strings in the gutter as well as extents in buffers.
11209 2000-03-02 Andy Piper <andy@xemacs.org>
11211 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11213 * frame.c (Fmake_frame): make sure the gutters get initialized
11214 after the frame is visible.
11215 (set_frame_selected_window): re-arrange compilation macros a
11217 (change_frame_size_1): mark gutters changed.
11219 * device.c (Fset_device_class): mark gutters changed.
11221 2000-03-01 Andy Piper <andy@xemacs.org>
11223 * window.c (window_top_frame_gutter_height): deleted.
11224 (window_bottom_frame_gutter_height): ditto.
11225 (window_left_frame_gutter_height): ditto.
11226 (window_right_frame_gutter_height): ditto.
11227 (window_top_gutter_height): don't use them.
11228 (window_bottom_gutter_height): ditto.
11229 (window_left_gutter_width): ditto.
11230 (window_right_gutter_width): ditto.
11231 (Fsplit_window): ditto.
11232 (Fwindow_pixel_edges): don't use border dimensions here.
11234 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11235 (update_scrollbar_instance): ditto.
11237 * redisplay.c (generate_modeline): don't take gutters into account.
11238 (generate_modeline): ditto.
11239 (redisplay_frame): small gutter display optimization.
11241 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11243 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11244 gutters into account.
11246 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11247 for window position and type.
11249 * gutter.c (get_gutter_coords): fix for frame gutters.
11250 (update_frame_gutters): update frame geometry if the gutters have
11252 (init_frame_gutters): record current gutter geometries.
11254 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11256 (mswindows_widget_instantiate): ditto.
11258 * frame.h (struct frame): add current_gutter_bounds.
11260 * frame.c (change_frame_size_1): position window and minibuffer
11261 appropriately taking into account the frame gutters.
11263 * frame-x.c: (x_initialize_frame_size): take into account the
11266 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11268 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
11270 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11272 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11274 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11276 * file-coding.c (reset_decoding_stream): Clear previous
11277 detection state when autodetect.
11279 2000-02-29 Didier Verna <didier@xemacs.org>
11281 * extents.c (set_extent_glyph_1): don't require extents to be
11284 2000-02-27 Andy Piper <andy@xemacs.org>
11286 * gutter.c (Fset_default_gutter_position): don't default left and
11287 right gutter visibility to t.
11288 (Fset_default_gutter_position): run
11289 default-gutter-position-changed-hook.
11290 (syms_of_gutter): add default-gutter-position-changed-hook.
11292 2000-02-26 Andy Piper <andy@xemacs.org>
11294 * specifier.c (Fmake_specifier): add gutter references.
11296 * gutter.h (RAW_WINDOW_GUTTER): new macro.
11298 * lisp.h: declare Fvalid_plist_p.
11300 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11302 (default_gutter_visible_p_changed_in_window): invalidate gutter as
11303 well as its visibility so that it gets reconstructed.
11304 (construct_window_gutter_spec): new function. Construct a string
11305 to be displayed in the gutter from a plist of strings. Take care
11306 to only use elements that are declared as visible.
11307 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11309 (gutter_validate): allow plists of strings in the specifier.
11310 (gutter_specs_changed): construct the real_gutter from the gutter
11311 specs using construct_window_gutter_spec.
11312 (gutter_visible_validate): gutter-visible is a new specifier type.
11313 (Fgutter_visible_specifier_p): new function for the new specifier.
11314 (syms_of_gutter): declare gutter-visible and
11315 Fgutter_visible_specifier_p.
11316 (specifier_type_create_gutter): intitalize new gutter-visible
11318 (reinit_specifier_type_create_gutter): ditto.
11319 (specifier_vars_of_gutter): use new specifier type for gutter
11321 (init_frame_gutters): construct real_gutter correctly.
11322 (Fgutter_specifier_p): beef up documentation.
11323 (Fgutter_size_specifier_p): ditto.
11325 * winslots.h: add real_gutter slots.
11327 2000-02-25 Andy Piper <andy@xemacs.org>
11329 * device-msw.c: Be kind to older cygwin versions. From Raymond
11330 Toy <toy@rtp.ericsson.se>.
11332 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11333 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11335 2000-02-25 Martin Buchholz <martin@xemacs.org>
11337 * elhash.c (MARK_OBJ): Practice macro hygiene.
11339 2000-02-24 Martin Buchholz <martin@xemacs.org>
11341 * miscplay.c: s/__inline__/inline/g;
11342 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11343 (get_device_compdc): INLINE ==> static inline
11344 * *.[ch]: Change INLINE to INLINE_HEADER globally.
11345 find -name '*.h' | \
11346 xargs global-replace \
11347 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11349 2000-02-25 Andy Piper <andy@xemacs.org>
11351 * window.c (window_top_frame_gutter_height): new function.
11352 (window_top_window_gutter_height): ditto.
11353 (window_top_gutter_height): use them.
11354 (window_bottom_frame_gutter_height): new function.
11355 (window_bottom_window_gutter_height): ditto.
11356 (window_bottom_gutter_height): use them.
11357 (window_left_window_gutter_width): new function.
11358 (window_left_frame_gutter_width): ditto.
11359 (window_left_gutter_width): use them.
11360 (window_right_window_gutter_width): new function.
11361 (window_right_frame_gutter_width): ditto.
11362 (window_right_gutter_width): use them.
11363 (window_pixel_height): new function. calulate window pixel height
11364 with frame gutter involvement.
11365 (Fsplit_window): calculate new sizes taking frame gutters into
11367 (window_char_height_to_pixel_height): don't include frame gutters.
11368 (window_char_height): use window_pixel_height.
11369 (window_pixheight): rename from window_pixel_height.
11370 (change_window_height): use it.
11371 (window_pixel_height_to_char_height): don't include frame gutters.
11372 (window_char_width_to_pixel_width): ditto.
11374 2000-02-25 Andy Piper <andy@xemacs.org>
11376 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11379 2000-02-24 Martin Buchholz <martin@xemacs.org>
11381 * alloc.c (staticpro):
11382 (staticpro_nodump):
11387 (compact_string_chars):
11388 (pdump_dump_wired):
11389 Convert: if (foo) abort(); ==> assert (! foo);
11391 * eldap.c (Fldap_search_basic):
11395 Fix compiler warnings, and possible crashes if (random) return
11396 value were to be used.
11398 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11400 * device-msw.c: Workaround ResetDC failure.
11402 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11403 applying a devmode.
11405 * redisplay-msw.c (get_frame_dc): Added start_page_p.
11406 (mswindows_text_width): Do not start printer page.
11408 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11410 * glyphs-msw.c: Added image methods to msprinter console and
11411 msprinter-specific image instantiation.
11413 2000-02-20 Mike Alexander <mta@arbortext.com>
11415 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11416 to avoid crashes when selection-sets-clipboard is on
11417 (mswindows_own_selection): ditto
11419 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11422 * redisplay-msw.c (get_frame_dc):
11423 (get_frame_compdc):
11425 * device-msw.c (mswindows_init_device):
11426 (mswindows_delete_device):
11427 (msprinter_init_device):
11428 (msprinter_delete_device):
11429 * frame-msw.c (mswindows_init_frame_1):
11430 (mswindows_delete_frame):
11431 (msprinter_init_frame_3):
11432 (msprinter_delete_frame): Move compatible DC to device object from
11433 frame object, for both mswindows and msprinter. Only one at a time
11434 is needed, it is a real waste to have one per frame!
11436 2000-02-23 Andy Piper <andy@xemacs.org>
11438 * glyphs.c: add dynamic width and height elements.
11439 (image_instance_equal): ditto.
11441 * glyphs-widget.c (widget_query_geometry): calculate width and
11442 height dynamically if required.
11443 (initialize_widget_image_instance): initialize dynamic dimensions.
11444 (widget_instantiate): pick-up dynamic dimensions.
11446 * glyphs.h (struct Lisp_Image_Instance): add width and height for
11447 dynamic determination. Add appropriate macros.
11449 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11451 (WINDOW_GUTTER_SIZE): ditto.
11452 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11454 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11456 (get_frame_dc): ditto.
11458 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11461 2000-02-23 Martin Buchholz <martin@xemacs.org>
11463 * XEmacs 21.2.31 is released.
11465 2000-02-22 Ben Wing <ben@xemacs.org>
11467 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11469 2000-02-22 Andy Piper <andy@xemacs.org>
11471 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11473 2000-02-21 Mike Sperber <mike@xemacs.org>
11477 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11480 2000-02-21 Mike Sperber <mike@xemacs.org>
11482 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11484 2000-02-21 Martin Buchholz <martin@xemacs.org>
11486 * XEmacs 21.2.30 is released.
11488 2000-02-20 Martin Buchholz <martin@xemacs.org>
11490 Performance hacking.
11492 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11493 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11494 * emacs.c (main_1):
11496 * console.c (DEFVAR_CONSOLE_LOCAL_1):
11497 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11498 * symeval.h (DEFVAR_SYMVAL_FWD):
11499 * symbols.c (guts_of_unbound_marker):
11500 Make all c_readonly objects also lisp_readonly and marked for life.
11501 * lrecord.h (struct lrecord_implementation):
11502 Document flags better.
11503 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11504 * lrecord.h (DECLARE_LRECORD):
11505 * lrecord.h (XSETRECORD):
11506 * lrecord.h (RECORDP):
11507 * lrecord.h (RECORD_TYPEP):
11508 * lrecord.h (RECORD_MARKER): New.
11509 * lrecord.h (error_check_*):
11510 * lrecord.h (CONCHECK_NONRECORD):
11511 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11512 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11513 * lrecord.h (set_lheader_implementation):
11514 * lrecord.h (enum lrecord_type): New.
11515 * symeval.h (SYMBOL_VALUE_MAGIC_P):
11516 * alloc.c (disksave_object_finalization_1):
11517 * alloc.c (mark_object):
11518 * alloc.c (lrecord_type_index):
11519 * alloc.c (tick_lcrecord_stats):
11520 * alloc.c (Fgarbage_collect):
11521 * alloc.c (init_alloc_once_early):
11522 * alloc.c (pdump_load):
11523 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11524 * alloc.c (lrecord_type_index): Delete.
11525 Make lisp object type indexes be constant.
11526 Makes (byte-compile) 5% faster.
11527 Put all marker functions into their own array.
11528 Makes (garbage-collect) 5% faster.
11529 Optimize SYMBOL_VALUE_MAGIC_P.
11530 Makes (byte-compile) 2-3% faster.
11531 * config.h.in (gc_checking_assert): New.
11532 * alloc.c: Use gc_checking_assert().
11533 * .dbxrc: Make compatible with new object type implementation.
11534 * .gdbinit: Make compatible with new object type implementation.
11535 * alloc.c: Delete all symbols defined only for debugging, such as
11536 Lisp_Type_Vector and lrecord_charset.
11538 2000-02-21 Andy Piper <andy@xemacs.org>
11540 * gui-msw.c (Fmswindows_shell_execute): fix file location
11543 * buffer.c (Fkill_buffer): remove buffer from alist buffer
11544 unshowing so that set_window_buffer doesn't undo
11545 kill_buffer_hook's hard work.
11547 * glyphs-widget.c (tab_control_query_geometry): don't count the
11548 first item when calculating geometry.
11550 * glyphs.c (map_subwindow): remove redundant code.
11551 (update_frame_subwindows): be more circumspect about when to
11554 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11555 when items haven't changed. Update faces if faces have changed as
11556 well as just the widget face.
11557 (x_tab_control_update): Update faces if faces have changed as well
11558 as just the widget face.
11560 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11562 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11564 (build_syscolor_string): Use mswindows_color_to_string to try to
11566 (mswindows_device_system_metrics): Reverse the foreground and
11567 background colors so that they match the documentation.
11569 * objects-msw.c: (mswindows_X_color_map): tweak some values so
11570 they match the default Windows palette.
11571 (mswindows_color_to_string): New function.
11573 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11575 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11577 2000-02-18 Olivier Galibert <galibert@pobox.com>
11579 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11580 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11582 * symbols.c (init_symbols_once_early): Removed obsolete
11583 DATA_SEG_BITS related kludge.
11584 (defvar_magic): Ditto.
11586 * malloc.c: Removed obsolete DATA_SEG_BITS
11588 * mem-limits.h: Ditto.
11590 * Makefile.in.in: Removed obsolete HAVE_SHM
11593 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11595 * device-msw.c (mswindows_delete_device): Free DDE string
11598 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11600 * keymap.c (get_keyelt):
11601 * unexnt.c (unexec):
11602 * vm-limit.c (memory_warnings):
11603 * ntheap.c (recreate_heap):
11604 * ntheap.h (UNINIT_PTR):
11605 * select-msw.c (Fmswindows_get_clipboard):
11606 (Fmswindows_set_clipboard):
11607 * objects-msw.h (MSWINDOWS_BAD_HFONT):
11609 * menubar-msw.c (displayable_menu_item):
11611 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11612 * sysdep.c (sys_subshell):
11613 * process-nt.c (nt_create_process):
11614 * nt.c (normalize_filename):
11615 (dostounix_filename):
11616 (unixtodos_filename):
11617 * ntproc.c (win32_executable_type):
11618 * ntplay.c (play_sound_data_1):
11620 * editfns.c (get_home_directory):
11621 * event-msw.c (struct winsock_stream):
11622 (mswindows_dde_callback):
11623 * device-msw.c (msprinter_init_device):
11624 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11626 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11627 mswindows_clear_toolbar were swapped!
11629 * objects-msw.c:(colormap_t):
11631 * emacs.c (struct standard_args): Fixed const jumble.
11633 * glyphs-widget.c (update_widget): Fixed comparison notation.
11635 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11637 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11638 __declspec(noreturn) syntax.
11640 2000-02-19 Martin Buchholz <martin@xemacs.org>
11642 * eldap.c (Fldap_open):
11643 (Fldap_search_basic):
11646 Use new coding system conversion macros.
11648 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11650 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11652 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
11654 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11655 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11657 * eldap.c (Qadd, Qreplace): New constant symbols
11658 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11659 interruptions by XEmacs signals
11660 Remove unnecessary calls to slow_down_interrupts and
11661 speed_up_interrupts
11662 (Fldap_search_basic): Renamed from Fldap_search_internal
11663 Added new optional parameter VERBOSE that triggers the
11664 display of progress messages
11665 Remove unnecessary calls to slow_down_interrupts and
11666 speed_up_interrupts
11667 LDAP result code analysis rewritten
11668 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11669 (syms_of_eldap): Define the new symbols and functions
11672 2000-02-17 Martin Buchholz <martin@xemacs.org>
11674 * realpath.c: Determine PATH_MAX maximally portably.
11676 * insdel.c (bytecount_to_charcount): Optimize.
11677 The function used to be optimized for entirely ASCII sequences.
11678 Now it is optimized for successive characters from the same
11679 charset. This also wins big for _mostly_ ASCII sequences.
11681 * fileio.c (Ffile_truename): convert return from realpath() using
11682 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
11683 - Rewrite GCPROing slightly.
11685 * sysdep.c (sys_open): Do filename conversion, like all other
11686 sys_* functions. Fixes bug:
11687 (let ((file-name-coding-system 'iso-8859-2))
11688 (write-region x y latin2-name))
11689 ==> writes filename using internal encoding.
11691 2000-02-18 Martin Buchholz <martin@xemacs.org>
11693 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11694 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11695 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11696 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11697 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11698 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11699 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11700 (CONST_IF_NOT_DEBUG): Delete.
11701 * alloc.c (this_one_is_unmarkable): Delete.
11702 (mark_object): Don't check for this_one_is_unmarkable. Use the
11703 c_readonly flag instead.
11704 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11706 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
11708 * event-msw.c (mswindows_drain_windows_queue):
11709 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11710 away redundant repaint events.
11712 2000-02-17 Andy Piper <andy@xemacs.org>
11714 * redisplay.h: declare mark_redisplay_structs.
11716 * redisplay.c (redisplay_window):
11717 (redisplay_frame): don't check subwindows_state_changed.
11718 (mark_redisplay): mark gutters here.
11720 * glyphs.c: (instantiate_image_instantiator): always layout if we
11721 haven't done so already.
11722 (allocate_image_instance): don't mark as dirty.
11723 (update_subwindow): bind inhibit_quit.
11725 * gutter.c (mark_gutters): new function.
11727 * glyphs-x.c (x_update_widget): Always resize to get round a
11730 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11731 breaking absolutely everything.
11733 * gutter.h: declare mark_gutters.
11735 2000-02-16 Martin Buchholz <martin@xemacs.org>
11737 * XEmacs 21.2.29 is released.
11739 2000-02-15 Olivier Galibert <galibert@pobox.com>
11741 * fns.c (size_bit_vector): Fix computation of the size.
11743 2000-02-15 Martin Buchholz <martin@xemacs.org>
11745 * *.[ch]: Change CONST to const globally.
11746 find -name '*.[ch]' | \
11747 xargs global-replace \
11748 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11749 - Remove vestigial references to CONST_IS_LOSING
11751 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11753 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11754 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11755 events instead of dispatching them directly.
11756 (mswindows_handle_paint): New function to do repainting.
11757 (mswindows_wnd_proc):
11758 (emacs_mswindows_handle_magic_event): Call above function.
11760 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11762 * objects-msw.c (mswindows_create_font_variant): Return the new
11764 (initialize_font_instance): Get font metrics from the underlined
11765 variant of the font to cope with the case where the underlined
11766 font has a bigger descent.
11768 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11770 * gui.c (gui_item_accelerator): Return the first underlined
11771 character in item name.
11773 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11775 * lisp.h: Added Qprinter.
11777 * general.c (syms_of_general): Initialized it.
11779 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11781 (get_frame_compdc): Made inline.
11783 * console.h (struct console_methods): Added eject_page method.
11785 * frame.h: Added FRAME_DISPLAY_P and friends.
11786 Aligned backslahes in many macros in more readable fashion.
11787 Added page_number to struct frame, and an accessor macro
11790 * defice.h: Added DEVICE_DISPLAY_P and friends.
11792 * device.c (Fdevice_printer_p): Used these.
11794 * frame.c (allocate_frame_core): Initialize page number.
11795 (Fprint_job_page_number):
11796 (Fprint_job_eject_page): Implemented.
11798 * frame-msw.c (msprinter_eject_page): Added method.
11799 (msprinter_start_page): Added.
11801 * window.c (Fwindow_truncated_p): Fixed docstring.
11802 (Fwindow_last_line_visible_height): Implemented.
11804 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11806 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11808 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11810 * syntax.c (scan_words): Always advance at least one character.
11812 2000-02-13 Andy Piper <andy@xemacs.org>
11814 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11815 to make sure the glyph is in the cachels.
11817 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11818 global image instance flag.
11819 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11820 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11822 * glyphs.c (allocate_image_instance): set dirty bits correctly.
11823 (Fset_image_instance_property): mark layout as changed.
11824 (invalidate_glyph_geometry_maybe): mark layout as changed.
11825 (glyph_width): use new NEEDS_LAYOUT macro.
11826 (glyph_ascent): ditto.
11827 (glyph_descent): ditto.
11828 (glyph_height): ditto.
11829 (image_instance_layout): mark layout as clean after laying out.
11830 (update_subwindow): don't mark layout as clean here.
11832 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11833 should no longer be needed.
11835 * glyphs-x.c (x_update_widget): sanitize asserts.
11836 (x_finalize_image_instance): sanitize assignment to widgets.
11838 * glyphs-widget.c (widget_instantiate): don't need to clear the
11841 2000-02-13 Martin Buchholz <martin@xemacs.org>
11843 * sysdep.c (getcwd): Use standard prototype.
11844 * sysdep.h (getcwd): Use standard prototype.
11846 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11847 (sequence, start, end).
11848 Remove redundant type checking.
11849 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11850 view of `caller-protects') to avoid a crash where the real fix was
11853 2000-02-12 Martin Buchholz <martin@xemacs.org>
11855 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11857 * s/sol2.h: Remove feature macro initialization.
11859 * alloc.c (alloc_lcrecord): Add more type checking assertions.
11860 (vector_hash): New. Code from internal_hash.
11862 Fix up allocation subsystem comments.
11864 * config.h.in: Add __EXTENSIONS__ for Solaris.
11866 * systime.h (EMACS_GETTIMEOFDAY): New.
11867 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11868 Remove Solaris-specific code.
11869 Use void* for the (ignored) second arg for gettimeofday().
11871 * elhash.c (hash_table_hash): Implement it, finally.
11872 * elhash.c: Use hashcode_t.
11874 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11875 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11877 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11878 * fns.c (size_bit_vector):
11879 * alloc.c (size_vector):
11880 (make_vector_internal):
11881 (make_bit_vector_internal):
11882 (sweep_bit_vectors_1):
11883 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11885 2000-02-10 Martin Buchholz <martin@xemacs.org>
11887 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11888 Include strings.h to avoid warnings for bzero and strcasecmp.
11890 2000-02-10 Olivier Galibert <galibert@pobox.com>
11892 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11893 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11895 * fns.c (size_bit_vector): New. Declare bit vectors as a
11898 2000-02-10 Olivier Galibert <galibert@pobox.com>
11900 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11901 use a value field instead.
11902 (symbol_value_forward_forward): Use value field.
11903 (DEFVAR_SYMVAL_FWD): Use value field.
11904 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
11905 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11906 (DEFVAR_CONST_INT): Ditto.
11907 (DEFVAR_BOOL): Ditto.
11908 (DEFVAR_CONST_BOOL): Ditto.
11909 (DEFVAR_INT_MAGIC): Ditto.
11910 (DEFVAR_BOOL_MAGIC): Ditto.
11912 * symbols.c (guts_of_unbound_marker): Use value field.
11913 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11914 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11916 * lisp.h: Declare dumpopaque and noninteractive1.
11918 * alloc.c (dumpopaque): Added.
11919 (pdump_dump_opaquevec): Added.
11920 (pdump): Call pdump_dump_opaquevec to dump opaque data.
11921 (pdump_load): Reload opaque data. Sync noninteractive1 with
11924 2000-02-10 Andy Piper <andy@xemacs.org>
11926 * glyphs.c (image_instance_layout): if the size changes, mark it
11929 * redisplay-output.c (redisplay_output_layout): Update the
11931 (redisplay_output_subwindow): ditto.
11933 * glyphs.c (update_subwindow): make sure we reset flags for
11934 layouts as well as everything else.
11936 * glyphs-widget.c (layout_layout): don't need to set the instances
11939 2000-02-09 Martin Buchholz <martin@xemacs.org>
11941 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
11942 not HAVE_DLOPEN, which is a lower-level thing.
11944 * .cvsignore: Ignore gmon.out
11946 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
11948 * .cvsignore: Ignore portable dumper xemacs.dmp file
11950 2000-02-09 Andy Piper <andy@xemacs.org>
11952 * redisplay-output.c (redisplay_output_layout): be more clever
11953 about when we output based on the changed flags.
11955 * glyphs.h (struct image_instantiator_methods): add update_method.
11956 (struct Lisp_Image_Instance): add changed flags. Declare new
11957 macros for manipulating them.
11959 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11960 (image_instance_parent_glyph): find an image_instance's parent
11961 glyph or image_instance.
11962 (image_instance_layout): mark the size as changed.
11963 (set_image_instance_dirty_p): new function. mark an image
11964 instance, plus all of its parents, as dirty.
11965 (Fset_image_instance_property): use it.
11966 (Fglyph_animated_timeout_handler): use it.
11967 (update_subwindow): call update_widget and device methods for
11968 update_subwindow. Mark all changed flags as clean.
11969 (Fresize_subwindow): mark size as changed.
11971 * glyphs-x.c (x_finalize_image_instance): try and detect gc
11973 (x_update_subwindow): only resize subwindows here.
11974 (x_update_widget): new function. Update all changed properties of
11976 (x_resize_subwindow): deleted.
11977 (x_widget_set_property): deleted.
11978 (x_progress_gauge_set_property): deleted.
11979 (x_progress_gauge_update): new function. Implement recorded
11981 (x_tab_control_update): ditto.
11982 (x_tab_control_set_property): deleted.
11983 (console_type_create_glyphs_x): declare new functions.
11984 (image_instantiator_format_create_glyphs_x): ditto.
11986 * glyphs-widget.c (widget_set_property): mark text changed.
11987 (update_widget): new function. Update properties of a widget.
11988 (widget_instantiate): for layouts make sure we set their
11989 children's parent correctly.
11990 (tab_control_set_property): new function. Record changes that will
11991 take place under redisplay's control.
11992 (progress_gauge_set_property): ditto.
11993 (image_instantiator_progress_guage): declare new functions.
11994 (image_instantiator_tab_control): ditto.
11996 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11998 (mswindows_update_widget): new function. Update all properties on
11999 a widget that have changed.
12000 (mswindows_button_update): new function. Update a button's set
12002 (mswindows_tab_control_update): new function. Update the items in
12004 (mswindows_tab_control_set_property): deleted.
12005 (mswindows_progress_gauge_update): new function. Update the
12006 progress gauge's progress.
12007 (mswindows_widget_set_property): deleted. This is all done
12008 asynchronously now.
12009 (mswindows_progress_gauge_set_property): ditto.
12010 (console_type_create_glyphs_mswindows): declare new methods.
12011 (image_instantiator_format_create_glyphs_mswindows): ditto.
12013 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
12014 (msprinter_set_frame_properties): ditto.
12016 * console.h (struct console_methods): Add update_widget_method.
12018 2000-02-09 Andy Piper <andy@xemacs.org>
12020 * gui-msw.c (Fmswindows_shell_execute): Make
12021 mswindows-shell-execute industrial strength.
12023 2000-02-08 Martin Buchholz <martin@xemacs.org>
12025 * lrecord.h: Make macro argument `props' match member function `plist'.
12028 * fns.c (Fremprop):
12029 * fns.c (Fobject_plist):
12032 Object property list frobbing cleanup.
12033 - Allow any lisp object (compared with `eq'), not just symbols, as
12034 keys in object plists.
12035 - Move symbol plist frobbing into symbols.c, where it belongs.
12036 - Move string plist frobbing into alloc.c, where it belongs.
12037 - Everything's an lrecord now, so no need to test for symbolp, etc.
12038 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12040 * extents.c: Reorder code to remove declarations.
12042 * frame.h (store_in_alist): Remove useless declaration.
12044 2000-02-07 Martin Buchholz <martin@xemacs.org>
12046 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12047 * config.h.in: Add HAVE_XCONVERTCASE.
12049 2000-02-07 Andy Piper <andy@xemacs.org>
12051 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12052 it breaks many things.
12054 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
12056 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12057 actually can start a common comment type.
12058 * src/syntax.h (SYNTAX_END_P): ditto for end.
12060 2000-02-07 Martin Buchholz <martin@xemacs.org>
12062 * XEmacs 21.2.28 is released.
12064 2000-02-06 Martin Buchholz <martin@xemacs.org>
12066 * event-Xt.c (x_keysym_to_character): New.
12067 (maybe_define_x_key_as_self_inserting_character): New.
12068 (x_has_keysym): New.
12069 Auto-define all keys on the keyboard as self-insert-key.
12071 2000-02-02 Martin Buchholz <martin@xemacs.org>
12073 * menubar.c (vars_of_menubar): A small code simplification.
12075 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12078 * ExternalClient.c:
12079 * EmacsShell-sub.c:
12082 Use consistent style for specifying X resources.
12084 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12085 This makes (dontusethis-set-symbol-value-handler) actually usable.
12087 * lrecord.h (lrecord_decription_type):
12088 * alloc.c (pdump_register_sub):
12091 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12092 Comply with XEmacs coding style.
12093 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12094 args, and XD_LISP_OBJECT_ARRAY with 3 args.
12096 * keymap.c (Faccessible_keymaps):
12097 Make (accessible-keymaps map "\C-h") do the Right Thing.
12098 Make (accessible-keymaps map []) do the Right Thing.
12099 Make (accessible-keymaps map "") do the Right Thing.
12100 (check_keymap_definition_loop): New function.
12101 (keymap_store_internal): Keep luser from shooting self in foot,
12102 via (define-key ctl-x-4-map "p" global-map).
12103 Remove fullness slot from struct Lisp_Keymap, since hash tables
12105 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12107 2000-01-30 Martin Buchholz <martin@xemacs.org>
12109 * redisplay.c (init_redisplay): Fix small memory leak.
12111 * elhash.c (pdump_reorganize_hash_table):
12112 Rename from reorganize_hash_table. Change prototype.
12113 Reuse the original memory for hentries. Save 100k.
12114 * alloc.c (PDUMP_READ): new macro.
12115 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12116 * alloc.c: No need to #ifndef before #undef.
12118 * print.c: Allow debug_print() to print readably by modifying
12119 debug_print_readably. Use consistent variable names.
12121 * .dbxrc: Try to get things to work even if stopped in a function
12122 without source available by explicitly specifying source files.
12123 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12125 * unexnt.c (_start): Removed bogus code which caused loading heap
12126 from differrent executable file.
12127 Removed bogus assignment to _fmode, which caused inconsistencies.
12129 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12131 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12132 Have spawnve encapsulation regard DONT_ENCAPSULATE.
12133 Do not preliminary `#define signal sigset'.
12135 * systime.h: Do not prototype environ on windows nt and cygwin,
12136 this conflicts with system header.
12138 * syssignal.h: Use correct define for WINDOWSNT
12140 * sysdep.h: Do not prototype environ on windows nt, this conflicts
12141 with system header.
12143 * sysdep.c (near start of file): Fixed commentary and rearranged
12144 ifdefs in readable order.
12145 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12148 (end_of_data): Do not compile in if using PDUMP.
12150 * symsinit.h: Prototyped vars_of_nt().
12152 * ntproc.c (windows9x_p): Added, instead of os_subtype.
12153 (find_child_console): Use it.
12154 (sys_kill): Use it.
12156 * ntheap.h: Do not extern os_subtype.
12158 * ntheap.c (cache_system_info): Do not cache unneeded:
12159 nt_major_version, nt_minor_version and os_subtype.
12160 (recreate_heap): Do not compile in when PDUMPing.
12162 * nt.c (geteuid and friends): Use the new varibale
12163 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12164 (init_user_info): Removed the above mentioned hackery.
12165 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12166 stat has been fixed in the C runtime.
12167 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12169 * file-coding.c (struct file_coding_dump): Do not define
12170 ucs_to_mule_table in the struct if not MULE.
12171 (struct struct lrecord_description fcd_description_1): Do not dump
12174 * emacs.c (main_1): Call vars_of_nt().
12175 (right before Fdump_emacs_data): Don't need lastfile if using both
12176 portabe dumper and system malloc.
12178 * alloc.c (Fmemory_limit): Conditionalized out.
12179 (pdump): Use OPEN_BINARY for the portable dump file.
12180 (pdump_load): Ditto.
12182 2000-02-02 Mike Alexander <mta@arbortext.com>
12184 * nt.c (convert_time): Set tm_isdst before calling mktime and
12185 avoid calling it at all if the compiler supports 64 bit integers.
12186 Also initialize utc_base_ft before using it.
12188 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
12190 * frame.c (change_frame_size_1): Take f->internal_border_width
12191 into consideration when calculating the width of the frame.
12193 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12195 * window.c (frame_min_height):
12196 (frame_size_valid_p):
12197 (frame_pixsize_valid_p): Added.
12198 (check_frame_size): Generalized.
12200 * window.h: Prototyped the above.
12203 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12204 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12205 Deleted Vwin32_* and Vbinary_process_* unused variables.
12207 * device-msw.c (msprinter_init_device): Do not get printer font
12208 list; Added DEVMODE functions.
12210 * frame-msw.c: Added lots of printer code.
12212 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12215 * console-msw.h: Added more msprinter device private slots.
12217 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12219 * event-msw.c (key_needs_default_processing_p): Added.
12220 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12222 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12224 * glyphs.c (image_instance_layout): Mark image instance as clean
12226 (glyph_dirty_p): Removed redundant function.
12227 (invalidate_glyph_geometry_maybe): Added.
12228 (update_glyph_cachel_data): Call it.
12230 * glyphs.h: Prototyped it.
12232 * redisplay.c (add_glyph_rune): Call it.
12233 (redisplay_window): Reset glyphs cachels when frame faces have
12234 changed, thus forcing recomputation of built-in border glyphs.
12236 2000-01-30 Martin Buchholz <martin@xemacs.org>
12238 * Makefile.in.in: Make portable dumper and purify play well together.
12239 Add imperfect, but better than nothing, support for pdump.
12240 Remove xemacs.dmp when temacs is re-generated.
12241 Don't ignore errors when dumping xemacs.
12243 * symbols.c (maybe_call_magic_handler): Remove one magic number.
12245 2000-01-28 Andy Piper <andy@xemacs.org>
12247 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12248 (setup_normal_frame): ditto.
12249 (setup_frame_without_minibuffer): ditto.
12250 (setup_minibuffer_frame): ditto.
12251 (delete_frame_internal): ditto.
12252 (Fmake_frame_invisible): ditto.
12253 (Ficonify_frame): ditto.
12255 * window.h: change Fset_window_buffer signature.
12257 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12258 (Fset_window_buffer): allow recording of buffer if the window is
12259 the selected window.
12260 (window_loop): Use new Fset_window signature.
12262 2000-01-23 Daniel Pittman <daniel@danann.net>
12264 * config.h.in: Added template for `HAVE_ATHENA_3D'
12266 2000-01-29 Andy Piper <andy@xemacs.org>
12268 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12270 * gutter.c (output_gutter): Don't output if the window isn't live.
12272 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12274 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12275 of 01/12/00: Moved SetFocus back here where it belongs.
12277 2000-01-23 Andy Piper <andy@xemacs.org>
12279 * s/cygwin32.h: declare printer things.
12281 2000-01-26 Andy Piper <andy@xemacs.org>
12283 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12286 2000-01-24 Andy Piper <andy@xemacs.org>
12288 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12289 (mswindows_button_instantiate): Make sure glyph is a pixmap.
12291 * glyphs-widget.c (widget_instantiate): Avoid shadows.
12293 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12295 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12297 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12298 (mswindows_output_display_block): Avoid local shadows.
12300 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12301 (mswindows_enqueue_mouse_button_event): ditto.
12302 (mswindows_handle_gui_wm_command): remove declaration.
12304 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12307 * console-msw.h: Avoid shadows.
12308 (mswindows_get_toolbar_button_text):
12309 (emacs_mswindows_create_stream_pair):
12310 (emacs_mswindows_delete_stream_pair):
12311 (mswindows_handle_toolbar_wm_command): declare.
12313 * device-msw.c (build_syscolor_string): Avoid shadows.
12315 2000-01-23 Andy Piper <andy@xemacs.org>
12317 * glyphs-widget.c (widget_instantiate): reverse the items for
12318 layouts so that children are in the expected order.
12320 2000-01-28 Martin Buchholz <martin@xemacs.org>
12322 * ralloc.c: safe_bcopy ==> memmove
12323 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12324 * s/msdos.h: Remove BCOPY macros.
12325 * insdel.c (gap_right): Remove BCOPY conditional code.
12326 * insdel.c (gap_left): Remove BCOPY conditional code.
12327 XEmacs demands a working ANSI C compiler - hence memmove.
12329 * regex.c (regex_compile): Remove accidental use of trigraphs.
12331 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12333 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12336 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12338 * event-msw.c (mswindows_drain_windows_queue): Added the
12340 (mswindows_need_event): Commented the call to
12341 mswindows_drain_windows_queue().
12342 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12345 * console-msw.h: Moved a few function prototypes here from
12348 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12349 parameter from unsigned short to unsigned long.
12350 (Fmswindows_shell_execute): Added return value.
12352 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12354 * sysdep.c (init_system_name):
12355 process-unix.c (unix_canonicalized_host_name):
12356 Don't call freeaddrinfo() if getaddrinfo() fails.
12358 * process-unix.c (unix_open_unix_network_stream):
12359 Moved the code to get a port # into address loop.
12361 2000-01-27 Martin Buchholz <martin@xemacs.org>
12363 * buffer.c (reinit_vars_of_buffer):
12364 The right place to initialize conversion_in_dynarr and
12365 conversion_out_dynarr.
12367 * alloc.c (pdump): Use the real open() till sys_open() is functional.
12369 * process-unix.c (unix_canonicalize_host_name): Muleize.
12370 (unix_open_network_stream): Muleize.
12372 * buffer.h: Fix up prototypes for ralloc.c functions.
12374 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12375 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12376 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12377 instead of gethostbyname()
12378 * process-unix.c: In unix_canonicalize_host_name() and
12379 unix_open_network_stream(), add code to use getaddrinfo()
12380 instead of gethostbyname().
12382 2000-01-27 Daniel Pittman <daniel@danann.net>
12384 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12385 libs when built with flat Athena.
12387 2000-01-27 Martin Buchholz <martin@xemacs.org>
12389 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12390 Use coding standards for function prototypes.
12392 2000-01-25 Martin Buchholz <martin@xemacs.org>
12394 * dialog-msw.c (push_lisp_string_as_unicode):
12395 * doc.c (unparesseuxify_doc_string):
12396 * dired.c (Fuser_name_completion_1):
12397 * dired.c (Fuser_name_all_completions):
12398 * dired.c (free_user_cache):
12399 * dired.c (user_name_completion):
12400 * console-x.c (get_display_arg_connection):
12401 * minibuf.c (clear_echo_area_internal):
12402 * minibuf.c (echo_area_append):
12403 * eldap.c (Fldap_open):
12404 * eldap.c (Fldap_search_internal):
12405 * frame-x.c (x_set_frame_text_value):
12406 * frame-x.c (x_set_frame_properties):
12407 * frame-x.c (x_create_widgets):
12408 * redisplay-tty.c (term_get_fkeys_1):
12409 * objects-x.c (x_parse_nearest_color):
12410 * objects-x.c (x_valid_color_name_p):
12411 * objects-x.c (x_initialize_font_instance):
12412 * objects-x.c (x_list_fonts):
12413 * objects-x.c (x_find_charset_font):
12414 * tooltalk.c (Fadd_tooltalk_message_arg):
12415 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12416 * tooltalk.c (Fadd_tooltalk_pattern_arg):
12417 * process-unix.c (unix_create_process):
12418 * ntproc.c (sys_spawnve):
12419 * sound.c (Fplay_sound_file):
12420 * sound.c (Fplay_sound):
12421 * buffer.c (init_initial_directory):
12422 * buffer.c (init_buffer):
12423 * editfns.c (init_editfns):
12424 * editfns.c (Ftemp_directory):
12425 * editfns.c (Fuser_full_name):
12426 * editfns.c (uncache_home_directory):
12427 * editfns.c (get_home_directory):
12428 * editfns.c (Fuser_home_directory):
12429 * editfns.c (Fformat_time_string):
12430 * editfns.c (Fcurrent_time_string):
12431 * gui-x.c (button_item_to_widget_value):
12432 * database.c (Fopen_database):
12433 * event-Xt.c (x_to_emacs_keysym):
12434 * event-Xt.c (x_event_to_emacs_event):
12435 * event-Xt.c (describe_event_window):
12436 * event-msw.c (mswindows_wnd_proc):
12437 * glyphs-eimage.c (jpeg_instantiate):
12438 * glyphs-eimage.c (gif_instantiate):
12439 * glyphs-eimage.c (png_instantiate):
12440 * glyphs-eimage.c (tiff_instantiate):
12441 * glyphs-x.c (xbm_instantiate_1):
12442 * glyphs-x.c (x_xbm_instantiate):
12443 * glyphs-x.c (x_xface_instantiate):
12444 * glyphs-x.c (autodetect_instantiate):
12445 * glyphs-x.c (cursor_font_instantiate):
12446 * glyphs-x.c (x_widget_instantiate):
12447 * glyphs-x.c (x_widget_set_property):
12448 * glyphs-x.c (x_widget_property):
12449 * glyphs-x.c (BUILD_GLYPH_INST):
12450 * print.c (write_string_to_stdio_stream):
12451 * print.c (output_string):
12452 * print.c (Falternate_debugging_output):
12453 * print.c (Fexternal_debugging_output):
12454 * glyphs-msw.c (extract_xpm_color_names):
12455 * glyphs-msw.c (mswindows_xpm_instantiate):
12456 * glyphs-msw.c (bmp_instantiate):
12457 * glyphs-msw.c (resource_name_to_resource):
12458 * glyphs-msw.c (mswindows_resource_instantiate):
12459 * glyphs-msw.c (xbm_instantiate_1):
12460 * glyphs-msw.c (mswindows_xbm_instantiate):
12461 * glyphs-msw.c (mswindows_xface_instantiate):
12462 * glyphs-msw.c (mswindows_widget_instantiate):
12463 * glyphs-msw.c (add_tree_item):
12464 * glyphs-msw.c (add_tab_item):
12465 * glyphs-msw.c (mswindows_combo_box_instantiate):
12466 * glyphs-msw.c (mswindows_widget_property):
12467 * glyphs-msw.c (mswindows_combo_box_property):
12468 * glyphs-msw.c (mswindows_widget_set_property):
12469 * console.c (stuff_buffered_input):
12470 * objects-msw.c (mswindows_initialize_color_instance):
12471 * objects-msw.c (mswindows_valid_color_name_p):
12472 * objects-msw.c (mswindows_list_fonts):
12473 * objects-msw.c (mswindows_font_instance_truename):
12474 * bytecode.c (optimize_compiled_function):
12475 * select-x.c (symbol_to_x_atom):
12476 * select-x.c (x_atom_to_symbol):
12477 * select-x.c (hack_motif_clipboard_selection):
12478 * select-x.c (selection_data_to_lisp_data):
12479 * select-x.c (lisp_data_to_selection_data):
12480 * select-x.c (Fx_get_cutbuffer_internal):
12481 * select-x.c (Fx_store_cutbuffer_internal):
12482 * buffer.h (TO_EXTERNAL_FORMAT): New function.
12483 * buffer.h (TO_INTERNAL_FORMAT): New function.
12484 * emacs.c (make_arg_list_1):
12485 * emacs.c (make_argc_argv):
12486 * emacs.c (main_1):
12487 * emacs.c (Fdump_emacs):
12488 * emacs.c (split_string_by_emchar_1):
12493 * device-x.c (x_init_device):
12494 * device-x.c (Fx_valid_keysym_name_p):
12495 * device-x.c (Fx_get_font_path):
12496 * device-x.c (Fx_set_font_path):
12497 * glyphs.c (bitmap_to_lisp_data):
12498 * glyphs.c (pixmap_to_lisp_data):
12499 * alloc.c (make_ext_string): Use coding system arguments. Update
12501 * alloc.c (build_string):
12502 * callproc.c (child_setup):
12503 * callproc.c (init_callproc):
12504 * fileio.c (lisp_strerror):
12505 * fileio.c (directory_file_name):
12506 * fileio.c (Fexpand_file_name):
12507 * fileio.c (Ffile_truename):
12508 * fileio.c (Fsysnetunam):
12509 * fileio.c (Fdo_auto_save):
12510 * sysdep.c (sys_readdir):
12511 * tests.c: New file. Allow adding C tests.
12512 Replace GET_* macros with a more comprehensible and flexible
12513 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12515 Any coding system can be used to do format conversion.
12516 Eliminate enum external_data_format.
12517 Eliminate convert_to_external_format.
12518 Eliminate convert_to_internal_format.
12519 Make sure file-name, keyboard, terminal, and ctext are always
12520 defined as coding systems or aliases. Make
12521 file-name-coding-system, terminal-coding-system, and
12522 keyboard-coding-system magical variables that are equivalent to
12523 defining the corresponding coding system aliases.
12525 * file-coding.c (Fcoding_system_canonical_name_p): New function.
12526 * file-coding.c (Fcoding_system_alias_p): New function.
12527 * file-coding.c (Fcoding_system_aliasee): New function.
12528 * file-coding.c (append_suffix_to_symbol): New function.
12529 * file-coding.c (dangling_coding_system_alias_p): New function.
12530 * file-coding.c (Ffind_coding_system):
12531 * file-coding.c (Fcopy_coding_system):
12532 * file-coding.c (encode_coding_no_conversion):
12533 * file-coding.c (syms_of_file_coding):
12534 * file-coding.c (vars_of_file_coding):
12535 Rewrite coding system alias code.
12536 Allow nested aliases, like symbolic links.
12537 Allow redefinition of coding system aliases.
12538 Prevent existence of dangling coding system aliases.
12540 * dired.c (Fuser_name_completion_1):
12541 * dired.c (Fuser_name_all_completions):
12542 A crash would happen if user did QUIT in the middle of building
12543 user_name_cache. Remove redundant code in mainline and unwind_protect.
12546 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
12548 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12549 an unsigned char *. Update all callers.
12551 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12553 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12555 2000-01-25 Martin Buchholz <martin@xemacs.org>
12557 * elhash.c (hentry_description): Use more portable definition.
12558 (resize_hash_table): Initialize new hentries using
12559 xnew_array_and_zero, thereby simplifying the code.
12561 * mule-charset.c (make_charset): Make sure entire object is
12562 initialized, to avoid Purify warnings.
12564 * alloc.c (resize_string): Fix unlikely crash with big strings.
12566 2000-01-24 Martin Buchholz <martin@xemacs.org>
12568 * realpath.c (xrealpath):
12569 Don't call getwd().
12571 2000-01-25 Martin Buchholz <martin@xemacs.org>
12573 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12575 1999-12-28 Max Matveev <max@melbourne.sgi.com>
12577 * unexelfsgi.c (unexec): Change the way we decide which segment
12578 should be extended.
12580 Assumption that .bss section should be outside the PT_LOADable
12581 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12582 it's present) is inside the 'data' segment. This would fail the
12583 test which was used to find a segment to grow and cover new
12584 heap. Instead of this assumption, I created another one - on IRIX
12585 the segment to grow should start below .bss and it's address
12586 should extent above the end of .bss. Once this segment is
12587 identified, it's grown to accommodate the new heap and new
12588 zero-length .bss section is added at the end of .data2.
12590 2000-01-25 Martin Buchholz <martin@xemacs.org>
12592 * eval.c (Feval): Wrong number of arguments should use original
12593 function, not the indirect_function version of it.
12595 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12597 * glyphs-x.c (x_button_instantiate): Don't add image if
12598 it is not a pixmap.
12599 (x_locate_pixmap_file): Call Fexpand_file_name when file name
12602 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
12604 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12606 (DEFVAR_INT_MAGIC): Ditto.
12607 (DEFVAR_BOOL_MAGIC): Ditto.
12608 * glyphs.h: Reindent backslash.
12610 2000-01-24 Martin Buchholz <martin@xemacs.org>
12612 * glyphs-widget.c (layout_query_geometry):
12613 (layout_layout): Use correct types for gheight, gwidth.
12615 2000-01-24 Martin Buchholz <martin@xemacs.org>
12617 * EmacsManager.c (QueryGeometry): Purified.
12619 2000-01-23 Martin Buchholz <martin@xemacs.org>
12621 * alloc.c (make_float): Make sure entire object is initialized, to
12622 avoid Purify warnings.
12623 (pdump_register_sub): Remove useless assignment.
12624 (pdump): Use xmalloc, not malloc.
12625 (pdump_load): Use xmalloc, not malloc.
12627 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12634 * sysdep.c: Removed redundant #include <windows.h>
12636 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12638 * frame.c (delete_frame_internal): Do not delete device when its
12639 implementation so declares.
12640 (delete_frame_internal): Set device selected frame to nil when
12641 last frame goes away.
12643 * device-msw.c (msprinter_device_system_metrics): Implemented.
12644 (mswindows_device_system_metrics): Added 'device-dpi property.
12646 * device.c: (Fdevice_printer_p): Added.
12647 Added 'offset-workspace device metric.
12649 * console.h (device_metrics): Declared DM_offset_workspace.
12651 2000-01-23 Martin Buchholz <martin@xemacs.org>
12653 * fileio.c (Ffile_truename): Remove pointless and confusing
12654 initialization of elen.
12656 * glyphs-widget.c: Compiler warning fixes.
12658 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
12660 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12661 instead of a Lisp_Object as argument to make it consistent with
12662 the other LIVE_P macros.
12663 (CHECK_LIVE_PROCESS): New macro.
12665 * process.c: Declare Qprocess_live_p.
12666 (Fprocess_live_p): New function.
12667 (create_process): Use PROCESS_LIVE_P.
12668 (read_process_output): Ditto.
12669 (set_process_filter): Ditto.
12670 (Fdelete_process): Ditto.
12671 (kill_buffer_processes): Ditto
12672 (process_send_signal): Use CHECK_LIVE_PROCESS.
12673 (Fprocess_input_coding_system): Check whether process is still
12674 alive (fix PR#1061).
12675 (Fprocess_output_coding_system): Ditto.
12676 (Fprocess_coding_system): Ditto.
12677 (Fset_process_input_coding_system): Ditto.
12678 (Fset_process_output_coding_system): Ditto.
12680 2000-01-23 Andy Piper <andy@xemacs.org>
12682 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12685 * glyphs.c (mark_image_instance): take into account changed
12686 image_instance format.
12687 (image_instance_equal): ditto.
12688 (image_instance_hash): ditto.
12690 * glyphs-widget.c (widget_instantiate): Incorporate layout
12691 instantiation here. Delay layout of the layout until later.
12692 (layout_instantiate): deleted.
12693 (layout_query_geometry): new function. get the geometry of a
12695 (layout_layout): layout a layout dynamically.
12696 (image_instantiator_widget): New function - splitting up
12697 image_instantiator_format_create_glyphs_widget for netwinder
12699 (image_instantiator_buttons):
12700 (image_instantiator_edit_fields):
12701 (image_instantiator_combo_box):
12702 (image_instantiator_scrollbar):
12703 (image_instantiator_progress_guage):
12704 (image_instantiator_tree_view):
12705 (image_instantiator_tab_control):
12706 (image_instantiator_labels):
12707 (image_instantiator_layout): ditto.
12708 (image_instantiator_format_create_glyphs_widget): Call preceding
12711 2000-01-22 Martin Buchholz <martin@xemacs.org>
12713 * process.c (Fset_process_coding_system):
12714 * device-x.c (Fx_keysym_hash_table):
12717 * lstream.c (Lstream_write): Return documented value, not 0.
12719 * fileio.c (directory_file_name):
12720 (Fsubstitute_in_file_name):
12721 (Fsubstitute_insert_file_contents_internal):
12722 (Fwrite_region_internal):
12727 Remove vestigial APOLLO-conditional code.
12729 2000-01-21 Martin Buchholz <martin@xemacs.org>
12731 * getpagesize.h: Add guard macros.
12732 * libsst.h: Add guard macros.
12733 * libst.h: Add guard macros.
12734 * line-number.h: Add guard macros.
12735 * ndir.h: Add guard macros.
12736 * sysfloat.h: Add guard macros.
12737 * sysfile.h: Add guard macros.
12738 * sysproc.h: Add guard macros.
12739 * syswait.h: Add guard macros.
12740 * xintrinsic.h: Add guard macros.
12741 * xintrinsicp.h: Add guard macros.
12742 * xmmanager.h: Add guard macros.
12743 * xmmanagerp.h: Add guard macros.
12744 * xmprimitive.h: Add guard macros.
12745 * xmu.h: Add guard macros.
12746 * gpmevent.h: Add copyright statement. Add guard macros.
12747 * miscplay.h: Add guard macros.
12748 * *.h: Use consistent C-standards-approved guard macro names.
12750 * opaque.c (make_opaque): Switch parameter order.
12751 * opaque.h (make_opaque): Switch parameter order.
12752 Update all callers.
12753 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12755 * config.h.in (type_checking_assert): Added.
12756 (bufpos_checking_assert): Added.
12758 2000-01-21 Martin Buchholz <martin@xemacs.org>
12760 * alloc.c: Harmless pdump changes.
12762 - spell alignment correctly.
12763 * sysdep.c: Use countof()
12765 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12767 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12768 initially_selected_for_input() console method, default to 0.
12769 (semi_canonicalize_console_connection): Try to delegate to
12770 canonicalize_console_connection if no such console method.
12771 (canonicalize_console_connection): Vice versa.
12772 (print_console): Do not print nil connection.
12774 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12775 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12776 (XDEVIMPF_FRAMELESS_OK): Added.
12777 (CONSOLE_INHERITS_METHOD): Added.
12779 * console-msw.c (mswindows_canonicalize_console_connection):
12781 (mswindows_canonicalize_device_connection): Added.
12783 * console-msw.h (struct msprinter_device): Added this struct and
12785 (mswindows_device): Made fontlist a lisp object.
12787 * device.c (semi_canonicalize_device_connection): Try to delegate
12788 to canonicalize_device_connection if no such console method.
12789 (canonicalize_device_connection): Vice versa.
12790 (print_device): Do not print nil connection.
12792 * device-msw.c (mswindows_init_device): Call InitCommonControls
12794 (mswindows_delete_device): Removed fontlist deallocation.
12795 (mswindows_mark_device): Added.
12797 * events.c (event_equal): Added abort() at unreached code.
12798 (event_hash): Ditto.
12800 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12801 fallback tags of Windows devices.
12803 * general.c (syms_of_general): Initialized Qmsprinter.
12805 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12806 of fallback tags of Windows devices.
12808 * lisp.h: Declared Qmsprinter.
12810 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12812 (mswindows_list_fonts): Ditto.
12813 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12814 that it can be used by both mswindows and msprinter devices.
12815 (initialize_font_instance): Added.
12816 (mswindows_initialize_font_instance): Use it.
12817 (msprinter_initialize_font_instance): Added.
12819 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12820 and implementation flags check.
12821 (redisplay_without_hooks): Changed the call to the above.
12822 (Fredraw_device): Ditto.
12823 (Fredisplay_device): Ditto.
12825 * redisplay-msw.c (get_frame_dc): Implemented.
12826 (get_frame_compdc): Implemented.
12827 (many functions): Use the two functions above to get device
12828 contexts, ether for a window or a printer.
12830 2000-01-21 Olivier Galibert <galibert@pobox.com>
12832 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12833 initialization here.
12834 (init_symbols_once_early): Call it.
12835 * emacs.c (main_1): Call it.
12836 * symsinit.h: Declare it.
12838 2000-01-19 Olivier Galibert <galibert@pobox.com>
12840 * alloc.c: Use a lrecord_header * in the backtrace instead of a
12842 (pdump_backtrace): Ditto.
12843 (pdump_register_object): Ditto. Cleanup use of the pointers.
12844 (pdump_get_entry): Abort if trying to register a null pointer.
12845 (pdump_dump_data): Cleanup types when relocating.
12846 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12847 (pdump_dump_rtables): Remove bad casts.
12848 (pdump_load): Cleanup relocation w.r.t union type. Use a
12849 Lisp_Object instead of a EMACS_INT for the hashtable
12852 2000-01-20 Martin Buchholz <martin@xemacs.org>
12854 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12856 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12858 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12860 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12862 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12864 * faces.h (FACE_STRIKETHRU_P): Added.
12866 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12869 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12870 (mswindows_set_dc_font): New function, aware of font variants,
12871 separated from mswindows_update_dc.
12873 * objects-msw.h (struct mswindows_font_instance_data): Added
12876 * objects-msw.c (mswindows_finalize_font_instance): Delete all
12877 cached fonts and the data structure.
12878 (mswindows_initialize_font_instance): Added creation of font data
12880 (mswindows_print_font_instance): Print at least something.
12881 (mswindows_create_font_variant): Implemented.
12882 (mswindows_get_hfont): Implemented.
12884 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
12886 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12887 prototyping problem with msvc.
12889 * emacs.c (main_1): added syms_of_gui_mswindows() call
12891 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12892 syms_of_gui_mswindows() function
12894 * symsinit.h: added the prototype for syms_of_gui_mswindows()
12896 2000-01-18 Martin Buchholz <martin@xemacs.org>
12898 * XEmacs 21.2.27 is released.
12900 2000-01-18 Martin Buchholz <martin@xemacs.org>
12902 * glyphs-eimage.c (struct tiff_error_struct):
12904 (tiff_warning_func):
12905 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12910 * unexec.c: Remove vestigial Lucid C code.
12914 * libsst.c: Ansify.
12915 Remove declarations of errno and strerror().
12917 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
12919 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12921 2000-01-16 Martin Buchholz <martin@xemacs.org>
12923 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12926 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12931 Change enum eol_type to eol_type_t.
12933 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12935 * gui.c (get_gui_callback): Check cons before accessing car.
12937 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12939 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12940 (XSETSPECIFIER_TYPE): Ditto.
12942 2000-01-17 Didier Verna <didier@xemacs.org>
12944 * redisplay.c (generate_fstring_runes): compute string size in
12945 characters, not bytes.
12947 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12949 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12951 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
12953 * print.c (print_error_message): Call print_prepare().
12955 2000-01-14 Martin Buchholz <martin@xemacs.org>
12957 * .dbxrc: Renamed from dbxrc.
12959 * events.c (event_to_character):
12960 Use `assert (foo)' instead of `if (!foo) abort()'
12962 * .gdbinit (xtype): Add documentation.
12963 * .gdbinit (check-temacs): New function.
12964 * .gdbinit (check-xemacs): New function.
12965 * dbxrc (check-xemacs): New function.
12966 * dbxrc (check-xemacs): New function.
12968 2000-01-14 Andy Piper <andy@xemacs.org>
12970 * glyphs-widget.c (widget_query_geometry): Make sure that we
12971 calculate default dimensions correctly.
12973 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12975 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12977 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12978 pdump_wire'd variable.
12980 * emacs.c: (main_1): Conditionalized calls to
12981 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12983 2000-01-13 Martin Buchholz <martin@xemacs.org>
12985 * window.c (Fset_window_configuration):
12986 * sysdep.c (_start):
12987 * input-method-motif.c (res):
12988 * event-Xt.c (Xt_process_to_emacs_event):
12989 Simple compiler warning fixes.
12991 * bytecode.c (funcall_compiled_function): Use the original
12992 function symbol on the backtrace list in preference to the
12993 compiled_function object in error messages.
12995 2000-01-13 Andy Piper <andy@xemacs.org>
12997 * glyphs-x.c (update_widget_face): Make sure we update the widget
12998 background as well as foreground.
13000 2000-01-13 Andy Piper <andy@xemacs.org>
13002 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
13003 fields to subwindow.
13004 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
13005 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
13006 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13007 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13009 * glyphs-widget.c (check_valid_tab_orientation): new function.
13010 (initialize_widget_image_instance): zero orientation and
13012 (widget_instantiate): pick up orientation.
13013 (tab_control_query_geometry): return appropriate values for
13016 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
13017 appropriate creation flags for left, right and bottom tabs.
13019 * s/cygwin32.h: add tab definitions.
13021 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13023 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13024 frame upon hiding a subwindow.
13025 (mswindows_button_instantiate): Changed the push button style to
13027 (mswindows_button_instantiate): Removed button BS_NOTIFY
13029 (mswindows_button_instantiate): Removed redundant check for
13030 a disabled gui item.
13031 (mswindows_button_instantiate): Made use of WS_TABSTOP
13032 consistent: "operable" controls (edit, button, tree, scroll) have
13033 this style, "display-only" ones (static, progress gauge) do
13034 not. This style is currently ignored by XEmacs though. Also,
13035 removed the WS_EX_CONTROLPARENT style - it is not for children,
13036 it is for their parents!
13037 (mswindows_edit_field_instantiate): Ditto.
13038 (mswindows_progress_gauge_instantiate): Ditto.
13039 (mswindows_tree_view_instantiate): Ditto.
13040 (mswindows_tab_control_instantiate): Ditto.
13041 (mswindows_scrollbar_instantiate): Ditto.
13042 (mswindows_combo_box_instantiate): Ditto.
13043 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13044 style to the "clip" window.
13045 (mswindows_button_instantiate): Removed compilation warning by
13046 equally typing terms of the ?: operator.
13048 2000-01-12 Didier Verna <didier@xemacs.org>
13050 * redisplay.c (generate_fstring_runes): new parameter holding the
13051 last modeline-format extent.
13052 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13053 extent, fill the glyph block with it.
13054 (generate_fstring_runes): handle these parameters.
13055 (generate_formatted_string_db): ditto.
13057 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13058 glyphs'extents in the modeline.
13060 1999-01-11 Mike Woolley <mike@bulsara.com>
13062 * ntheap.c: Reduced the reserved heap space from 1Gb down to
13063 256Mb, as a workaround for the non-starting problem many people
13066 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13068 * console-tty.c (Fset_console_tty_output_coding_system):
13069 Force redrawing tty frame.
13071 2000-01-10 Didier Verna <didier@xemacs.org>
13073 * redisplay.c (generate_fstring_runes): fix size computation bug.
13075 2000-01-09 William M. Perry <wmperry@aventail.com>
13077 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13079 2000-01-09 Andy Piper <andy@xemacs.org>
13081 * glyphs-msw.c: index -> i to avoid shadows.
13082 (xbm_create_bitmap_from_data): make static.
13083 (check_valid_string_or_int): deleted.
13084 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13086 * glyphs-x.c (x_update_subwindow): remove unused args.
13088 * glyphs.c (glyph_image_instance): return the thing. Don't set the
13089 back pointer - this is done in allocate_image_instance.
13090 (query_string_font): return Qnil to make the compiler happy.
13091 (unmap_subwindow): set to ~0 to make the compiler happy.
13092 (glyph_query_geometry): comment out until used.
13093 (glyph_layout): ditto.
13095 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
13097 * insdel.c (signal_after_change): Remove extraneous unbind_to().