1 2002-07-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * chartab.c (save_uint8_byte_table): Don't clear the table.
4 (save_uint16_byte_table): Likewise.
5 (save_byte_table): Likewise.
6 (Fmount_char_attribute_table): New function.
7 (syms_of_chartab): Add new builtin function
8 `mount-char-attribute-table'.
10 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
12 * mule-charset.c (Fsave_charset_mapping_table): Open database as
14 (load_char_decoding_entry_maybe): Open database as read-only mode.
16 * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
17 open database as "w+" mode.
18 (load_char_attribute_maybe): Open database as read-only mode.
19 (Fload_char_attribute_table): Likewise.
21 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
23 * chartab.c (mark_char_table): Don't refer `ct->db_file'.
24 (char_table_description): Delete member `db_file'.
25 (Fmake_char_table): Don't refer `ct->db_file'.
26 (Fcopy_char_table): Likewise.
27 (Fsave_char_attribute_table): Likewise.
28 (Fclose_char_attribute_table): Likewise.
29 (Freset_char_attribute_table): Likewise.
30 (load_char_attribute_maybe): Likewise.
31 (Fload_char_attribute_table): Likewise.
33 * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
35 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
37 * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
38 (Fsave_char_attribute_table): Don't check `ct->db_file' if
40 (load_char_attribute_maybe): Likewise.
41 (Fload_char_attribute_table): Likewise.
43 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
45 * chartab.c (Fclose_char_attribute_table): Set Qnil on
46 `ct->db_file' unconditionally.
48 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
50 * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
52 (char_table_description): Add description for `db_file' and `db'
54 (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
56 (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
57 (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
58 (Fclose_char_attribute_table): New function.
59 (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
60 (load_char_attribute_maybe): Change interface; use `cit->db_file'
62 (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
63 (syms_of_chartab): Add new builtin function
64 `Fclose_char_attribute_table'.
66 2002-06-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
68 * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
70 (load_char_attribute_maybe): Change interface.
71 (get_char_id_table): Modify for `load_char_attribute_maybe'.
73 2002-06-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
75 * database.h: Add an EXFUN for `Fdatabase_live_p'.
77 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
79 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
80 instead of `DECODE_CHAR' for mother; don't use special code for
81 chinese-big5 to use code space of chinese-big5-1 and
83 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
84 `MAX_CHAR_BIG5_CDP' for chinese-big5.
86 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
87 (MAX_CHAR_BIG5_CDP): Revival.
89 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
91 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
92 the XLFD registry-encoding name of `chinese-big5'.
94 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
96 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
97 (Qchinese_big5_cdp): Deleted.
98 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
99 (complex_vars_of_mule_charset): Delete coded-charset
102 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
103 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
104 `CHARSET_ID_OFFSET - n' for private CCS.
105 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
106 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
107 of `MIN_LEADING_BYTE'.
108 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
109 `(CHARSET_ID_OFFSET - 97)'.
110 (MIN_CHAR_BIG5_CDP): Deleted.
111 (MAX_CHAR_BIG5_CDP): Deleted.
113 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
115 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
117 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
119 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
120 (vars_of_mule): Add new variable `utf-2000-version' [moved from
123 * chartab.c (Vutf_2000_version): Moved to mule.c.
124 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
126 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
128 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
129 when HAVE_CHISE_CLIENT is not defined.
131 * mule.c (vars_of_mule): Provide feature `chise' when
132 HAVE_CHISE_CLIENT is defined.
134 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
136 * config.h.in (UTF2000): Add comment.
137 (HAVE_CHISE_CLIENT): New macro.
139 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
141 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
143 (Fput_char_attribute): Likewise.
144 (char_attribute_system_db_file): Encode file-name of attribute.
145 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
148 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
150 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
151 (Fsave_charset_mapping_table): Use
152 `char_attribute_system_db_file'.
153 (load_char_decoding_entry_maybe): Likewise.
155 * chartab.h (Qsystem_char_id): New external variable.
156 (char_attribute_system_db_file): New prototype.
158 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
159 (char_attribute_system_db_file): New function.
160 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
161 (Freset_char_attribute_table): Likewise.
162 (load_char_attribute_maybe): Likewise.
163 (Fload_char_attribute_table): Likewise.
164 (syms_of_chartab): Add new symbol `system-char-id'.
166 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
168 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
169 `XCHARSET_GRAPHIC(ccs)'.
171 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
173 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
175 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
177 * chartab.c (Q_ucs_variants): New variable.
178 (syms_of_chartab): Add new symbol `->ucs-variants'.
179 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
180 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
181 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
183 * mule-charset.c (load_char_decoding_entry_maybe): New function.
185 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
186 `HAVE_DATABASE' is defined.
187 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
188 `HAVE_DATABASE' is defined.
190 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
192 * chartab.c (Fsave_char_attribute_table): Don't clear internal
194 (Freset_char_attribute_table): New function.
195 (syms_of_chartab): Add new builtin function
196 `reset-char-attribute-table'.
198 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
200 * chartab.c (load_char_attribute_maybe): Don't make directories.
202 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
204 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
206 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
209 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
211 * mule-charset.c (Fsave_charset_mapping_table): Use
212 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
214 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
215 instead of `XCHARSET_CHARS'.
217 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
219 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
220 (XCHARSET_BYTE_SIZE): Likewise.
222 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
224 (XCHARSET_BYTE_SIZE): Likewise.
226 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
228 * chartab.c (Fput_char_attribute): Use exec-directory instead of
229 data-directory to store database.
230 (Fsave_char_attribute_table): Likewise.
231 (load_char_attribute_maybe): Likewise.
232 (Fload_char_attribute_table): Likewise.
234 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
236 * mule-charset.c (Fsave_charset_mapping_table): New function.
237 (syms_of_mule_charset): Add new builtin function
238 `save-charset-mapping-table'.
240 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
242 * char-ucs.h (decoding_table_check_elements): Delete prototype.
243 (get_ccs_octet_table): New inline function.
244 (put_ccs_octet_table): Likewise.
245 (decoding_table_put_char): Use `get_ccs_octet_table' and
246 `put_ccs_octet_table'.
247 (decoding_table_remove_char): Use `decoding_table_put_char'.
248 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
250 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
252 (make_charset): Use Qunbound instead Qnil as initial value of
255 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
257 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
258 element is Qunloaded.
259 (map_over_uint16_byte_table): Likewise.
260 (map_over_byte_table): Likewise.
261 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
262 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
263 database support, load encoding-table of the specified
264 coded-charset if it is not loaded yet.
265 (save_uint8_byte_table): New function of UTF-2000 with external
267 (save_uint16_byte_table): Likewise.
268 (save_byte_table): Likewise.
269 (Fput_char_attribute): Don't store value into external database
270 even if the external database feature is supported in UTF-2000;
271 set `attribute' as name of char-table if the external database
272 feature is supported.
273 (Fsave_char_attribute_table): New function in UTF-2000.
274 (syms_of_chartab): Add new builtin function
275 `save-char-attribute-table' in UTF-2000.
277 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
279 * chartab.c (char_attribute_table_to_put): New variable in
281 (Qput_char_table_map_function): Likewise.
282 (value_to_put): Likewise.
283 (Fput_char_table_map_function): New function in UTF-2000.
284 (put_char_table): Use `Fmap_char_attribute' for
285 CHARTAB_RANGE_CHARSET in UTF-2000.
286 (Fput_char_attribute): Store symbol instead of string in
287 `XCHAR_TABLE_NAME (table)'.
288 (load_char_attribute_maybe): Likewise.
289 (syms_of_chartab): Add new symbol/function
290 `put-char-table-map-function'.
292 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
294 * database.h: Add new EXFUN for `Fmap_database'.
296 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
297 (syms_of_database): Likewise.
299 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
301 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
302 (XCHAR_TABLE_UNLOADED): Likewise.
304 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
305 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
306 HAVE_DATABASE is defined.
307 (char_attribute_table_to_load): New variable of UTF-2000 with
308 external database support.
309 (Qload_char_attribute_table_map_function): Likewise.
310 (Fload_char_attribute_table_map_function): New function of
311 UTF-2000 with external database support.
312 (Fload_char_attribute_table): New function of UTF-2000.
313 (Fmap_char_attribute): Call Fload_char_attribute_table if
314 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
315 (syms_of_chartab): Add new symbol and function
316 `load-char-attribute-table-map-function' in UTF-2000 with external
317 database support; add new function `load-char-attribute-table' in
320 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
322 * chartab.h (load_char_attribute_maybe): New prototype for
323 UTF-2000 with DATABASE support.
324 (get_char_id_table): Use `load_char_attribute_maybe' if
325 HAVE_DATABASE is defined.
327 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
328 with DATABASE support.
330 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
332 * chartab.c (Fput_char_attribute): Use S-expression as key of
335 * chartab.h (get_char_id_table): Use S-expression as key of
338 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
340 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
341 if an element is not loaded, load the corresponding attributes
342 from an external database.
343 (map_over_uint16_byte_table): Likewise.
344 (map_over_byte_table): Likewise.
345 (map_char_table): Modify for `map_over_uint8_byte_table',
346 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
347 element is not loaded, load the corresponding attributes from an
349 (Fput_char_attribute): Change initial values to Qunloaded.
351 * chartab.h (get_char_id_table): If a character attribute is not
352 loaded and the attribute value is not found in an external
353 database, store Qunbound as the attribute value.
355 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
357 * chartab.c (BT_UINT8_unloaded): New macro.
358 (UINT8_VALUE_P): Accept Qunloaded.
359 (UINT8_ENCODE): Likewise.
360 (UINT8_DECODE): Likewise.
361 (BT_UINT16_unloaded): New macro.
362 (UINT16_VALUE_P): Accept Qunloaded.
363 (UINT16_ENCODE): Likewise.
364 (UINT16_DECODE): Likewise.
365 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
367 (mark_char_table): Mark `ct->name' in UTF-2000.
368 (char_table_description): Add `name' in UTF-2000.
369 (Fmake_char_table): Initialize `ct->name'.
370 (Fcopy_char_table): Copy `ct->name'.
371 (Fput_char_attribute): Store value into an external database if
372 HAVE_DATABASE is defined.
374 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
376 (CHAR_TABLE_NAME): New macro in UTF-2000.
377 (XCHAR_TABLE_NAME): New macro in UTF-2000.
378 (get_char_id_table): Try to read an external database if Qunloaded
379 is stored in a table.
381 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
384 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
386 * database.h: Add EXFUN definitions for Fopen_database,
387 Fput_database, Fget_database and Fclose_database.
389 * data.c (Qunloaded): New variable in UTF-2000.
391 * lisp.h (Qunloaded): New variable in UTF-2000.
393 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
395 * mule-charset.c (put_char_ccs_code_point): Modify for
396 `decoding_table_remove_char' and `decoding_table_put_char'.
397 (remove_char_ccs): Modify for `decoding_table_remove_char'.
399 * char-ucs.h (decoding_table_remove_char): Change arguments to
400 hide decoding_table vector.
401 (decoding_table_put_char): Likewise.
403 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
405 * mule-charset.c (decoding_table_remove_char): Moved to
407 (decoding_table_put_char): Likewise.
409 * char-ucs.h (decoding_table_check_elements): New prototype [moved
410 from mule-charset.c].
411 (decoding_table_remove_char): New inline function [moved from
413 (decoding_table_put_char): Likewise.
415 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
417 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
420 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
422 * mule-charset.c (decode_builtin_char): Support mother charsets.
424 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
426 * mule-charset.c (Q94x94x60): New variable.
427 (charset_code_point): Support conversion `94x94x60'.
428 (Fmake_charset): Likewise.
429 (syms_of_mule_charset): Add new symbol `94x94x60'.
431 * char-ucs.h (CONVERSION_94x94x60): New macro.
433 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
435 * mule-charset.c (charset_code_point): Unify code about
438 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
440 * mule-charset.c (charset_code_point): Merge code about builtin
441 characters into code about mother charsets; don't use
442 `range_charset_code_point'.
443 (range_charset_code_point): Deleted.
445 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
447 * mule-charset.c (Qcode_offset): New variable.
448 (Fmake_charset): Use `XUINT' to get value of `min-code' and
449 `max-code'; accept new property `code-offset'.
450 (syms_of_mule_charset): Add new symbol `code-offset'.
452 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
454 * mule-charset.c (range_charset_code_point): Fixed.
456 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
458 * mule-charset.c (decode_builtin_char): Change semantics of
459 code-offset of coded-charset.
460 (charset_code_point): Likewise.
461 (range_charset_code_point): Likewise.
462 (complex_vars_of_mule_charset): Modify for the change.
464 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
466 * mule-charset.c (Fencode_char): Reverse arguments.
468 * mule-charset.c (charset_code_point): Fixed.
470 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
472 * mule-charset.c (Vcharset_mojikyo): Deleted.
473 (Vcharset_mojikyo_2022_1): Deleted.
474 (Vcharset_mojikyo_pj_{1..21}): Deleted.
475 (Qmin_code): New variable in UTF-2000.
476 (Qmax_code): Likewise.
478 (Qconversion): Likewise.
481 (Qmojikyo_2022_1): Deleted.
482 (Qmojikyo_pj_{1..22}): Deleted.
483 (mark_charset): Mark `cs->mother'.
484 (charset_description): Add description for `mother'.
485 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
486 new arguments `mother' and `conversion'; use
487 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
488 (charset_code_point): Moved from char-ucs.h; support `mother'
490 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
491 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
492 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
493 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
494 allow 2 as the value of `graphic' in UTF-2000; add new properties
495 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
496 require `final' in UTF-2000; modify for `make_charset'.
497 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
498 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
499 (Fcharset_property): Support `mother', `min-code' and `max-code'.
500 (Fencode_char): New function.
501 (syms_of_mule_charset): Add new builtin function `encode-char' in
502 UTF-2000; add new symbols `min-code', `max-code', `mother',
503 `conversion' and `94x60'; delete symbols `mojikyo',
504 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
505 (complex_vars_of_mule_charset): Modify for `make_charset' change;
506 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
507 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
509 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
510 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
512 * char-ucs.h (Vcharset_mojikyo): Deleted.
513 (Vcharset_mojikyo_2022_1): Deleted.
514 (LEADING_BYTE_MOJIKYO): Deleted.
515 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
516 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
517 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
518 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
519 add new member `mother'; add new member `conversion'.
520 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
521 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
522 (CHARSET_MOTHER): New macro.
523 (CHARSET_CONVERSION): New macro.
524 (CONVERSION_IDENTICAL): New macro.
525 (CONVERSION_94x60): New macro.
526 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
527 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
528 (XCHARSET_MOTHER): New macro.
529 (XCHARSET_CONVERSION): New macro.
530 (MIN_CHAR_MOJIKYO): Deleted.
531 (MAX_CHAR_MOJIKYO): Deleted.
532 (DECODE_MOJIKYO_2022): Deleted.
533 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
534 (charset_code_point): Changed to non-inline function.
535 (encode_char_1): Use `charset_code_point'.
536 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
538 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
540 * lread.c (read_compiled_function): Fix prototype.
541 (read_vector): Likewise.
543 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
545 * lrecord.h (struct lrecord_header): Delete `older'.
546 (set_lheader_implementation): Delete code for `older'.
547 (set_lheader_older_implementation): Deleted.
548 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
549 (OLDER_RECORD_P): Deleted.
550 (OLDER_RECORD_HEADER_P): Deleted.
551 (alloc_older_lcrecord): Deleted.
552 (alloc_older_lcrecord_type): Deleted.
554 * alloc.c (all_older_lcrecords): Deleted.
555 (alloc_older_lcrecord): Deleted.
556 (disksave_object_finalization_1): Delete code for older objects.
557 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
558 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
560 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
562 * mule-charset.c (decoding_table_put_char): Use `make_vector'
563 instead of `make_older_vector'.
564 (put_char_ccs_code_point): Likewise.
565 (mark_charset): Mark `cs->decoding_table'.
566 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
568 * lisp.h (make_older_vector): Deleted.
569 (make_vector_newer): Deleted.
571 * config.h.in (HAVE_GGC): Deleted.
573 * alloc.c (make_older_vector): Deleted.
574 (make_vector_newer_1): Deleted.
575 (make_vector_newer): Deleted.
577 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
579 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
580 (Qideograph_daikanwa_2): New variable.
581 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
582 (complex_vars_of_mule_charset): Add new coded-charset
583 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
584 `LEADING_BYTE_DAIKANWA'.
586 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
587 (LEADING_BYTE_DAIKANWA_1): New macro.
588 (LEADING_BYTE_DAIKANWA_2): New macro.
589 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
591 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
593 * mule-charset.c (complex_vars_of_mule_charset): Change
594 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
595 the second revised version.
597 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
599 * mule-charset.c (Vcharset_ucs_smp): New variable.
600 (Vcharset_ucs_sip): New variable.
601 (Qucs_smp): New variable.
602 (Qucs_sip): New variable.
603 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
604 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
605 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
606 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
607 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
608 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
610 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
611 (LEADING_BYTE_UCS_SIP): New macro.
612 (MIN_CHAR_SMP): New macro.
613 (MAX_CHAR_SMP): New macro.
614 (MIN_CHAR_SIP): New macro.
615 (MAX_CHAR_SIP): New macro.
617 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
619 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
622 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
624 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
625 value; don't store value into `encoding_table' of `Lisp_Charset'.
626 (mark_charset): `encoding_table' was deleted.
627 (charset_description): Likewise.
628 (make_charset): Likewise.
629 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
630 `put_char_ccs_code_point'.
632 * chartab.h (Fput_char_attribute): New EXFUN.
634 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
635 is unified with normal symbol space.
636 (Fget_char_attribute): Likewise.
637 (Fput_char_attribute): Likewise; behavior of
638 `put_char_ccs_code_point' is changed.
640 * char-ucs.h: Include "elhash.h".
641 (Vchar_attribute_hash_table): New external variable.
642 (struct Lisp_Charset): Delete `encoding_table'.
643 (CHARSET_ENCODING_TABLE): New implementation; refer
644 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
647 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
649 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
652 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
654 * text-coding.c (char_encode_big5): Prefer charset-g1 than
657 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
659 * chartab.c (uint8_byte_table_description): New constant.
660 (uint8-byte-table): Use `uint8_byte_table_description'.
661 (uint16_byte_table_description): New constant.
662 (uint16-byte-table): Use `uint16_byte_table_description'.
664 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
666 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
667 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
669 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
671 * mule-charset.c (Vcharset_ucs_ks): New variable.
672 (Qucs_ks): New variable.
673 (syms_of_mule_charset): Add new symbol `ucs-ks'.
674 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
676 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
678 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
680 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
681 (Fdecode_char): Likewise.
683 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
685 (Fdefine_char): Modify for Fdecode_char.
686 (Ffind_char): Likewise.
688 * mule-charset.c (Fdecode_char): Add new optional argument
690 (Fdecode_builtin_char): Modify for `Fdecode_char'.
692 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
694 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
695 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
696 (allocate_coding_system): Initialize initial-charsets of
697 CODESYS_BIG5 in XEmacs UTF-2000.
698 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
699 CODESYS_BIG5 in XEmacs UTF-2000.
700 (decode_coding_big5): Use initial-charset-g0 and -g1 of
701 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
703 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
705 (Qideograph_hanziku_{1 .. 12}): Likewise.
706 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
708 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
709 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
710 `ideograph-hanziku-{1 .. 12}'.
712 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
713 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
714 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
715 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
716 (DECODE_DEFINED_CHAR): New inline function.
717 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
719 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
721 * mule-charset.c (Vcharset_china3_jef): Renamed from
722 `Vcharset_japanese_jef_china3'.
723 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
724 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
725 `{MIN|MAX}_CHAR_JEF_CHINA3'..
726 (syms_of_mule_charset): Rename `china3-jef' from
727 `japanese-jef-china3'.
728 (complex_vars_of_mule_charset): Likewise; rename
729 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
731 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
732 `LEADING_BYTE_JEF_CHINA3'.
733 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
734 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
736 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
738 * mule-charset.c (encode_builtin_char_1): Comment out special code
739 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
741 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
742 (MAX_CHAR_MOJIKYO_0): Comment out.
743 (MIN_CHAR_CBETA): Changed to 0x00E20000.
744 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
745 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
746 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
748 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
750 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
751 (Qideograph_cbeta): New variable.
752 (encode_builtin_char_1): Comment out special code for
753 coded-charset `mojikyo' and `japanese-jef-china3'.
754 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
755 (complex_vars_of_mule_charset): Add new coded-charset
758 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
759 (MIN_CHAR_CBETA): New macro.
760 (MAX_CHAR_CBETA): New macro.
762 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
764 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
765 (LEADING_BYTE_JEF_CHINA3): New macro.
766 (MIN_CHAR_JEF_CHINA3): New macro.
767 (MAX_CHAR_JEF_CHINA3): Likewise.
768 (DECODE_CHAR): Fixed.
770 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
772 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
773 (Qjapanese_jef_china3): New variable.
774 (encode_builtin_char_1): Support `japanese-jef-china3'.
775 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
776 (complex_vars_of_mule_charset): Add new coded-charset
777 `japanese-jef-china3'.
779 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
781 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
782 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
783 94^4, 96^3, 96^4, 128^n and 256^n set.
784 (put_char_table): Use `XCHARSET_CELL_RANGE'.
785 (map_char_table): Likewise.
787 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
789 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
792 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
794 * chartab.h (get_char_id_table): New inline function.
796 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
799 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
801 * chartab.h (decode_char_table_range): New prototype in XEmacs
803 (put_char_id_table): New inline function in XEmacs UTF-2000.
805 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
807 (decode_char_table_range): Delete static declaration in XEmacs
810 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
812 * chartab.c (put_char_id_table): Use `put_char_table'.
814 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
816 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
817 (map_over_uint16_byte_table): Likewise.
818 (map_over_byte_table): Likewise.
819 (map_char_table): Modify for `map_over_uint8_byte_table',
820 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
823 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
825 * chartab.c (struct map_char_table_for_charset_arg): New
827 (map_char_table_for_charset_fun): New function.
828 (map_char_table): Use `map_char_table' for encoding_table of
831 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
833 * chartab.c (map_char_table): Check a character is found in
834 range->charset instead of non default value is defined in
835 char-table when range is CHARTAB_RANGE_ROW.
837 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
839 * chartab.c (map_char_id_table): Deleted.
840 (Fmap_char_attribute): Use `map_char_table' instead of
843 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
845 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
847 (update_syntax_table): Deleted in XEmacs UTF-2000.
849 * syntax.c (find_defun_start): Use `syntax_table' instead of
850 `mirror_syntax_table' in XEmacs UTF-2000.
851 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
853 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
855 (Fmatching_paren): Likewise.
856 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
858 (find_start_of_comment): Likewise.
859 (find_end_of_comment): Likewise.
860 (Fforward_comment): Likewise.
861 (scan_lists): Likewise.
862 (char_quoted): Likewise.
863 (Fbackward_prefix_chars): Likewise.
864 (scan_sexps_forward): Likewise.
865 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
866 (update_syntax_table): Likewise.
868 * search.c (skip_chars): Use `syntax_table' instead of
869 `mirror_syntax_table' in XEmacs UTF-2000.
871 (Freplace_match): Likewise.
873 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
874 `mirror_syntax_table' in XEmacs UTF-2000.
875 (WORDCHAR_P_UNSAFE): Likewise.
876 (re_match_2_internal): Likewise.
878 * font-lock.c (find_context): Use `buf->syntax_table' instead of
879 `buf->mirror_syntax_table' in XEmacs UTF-2000.
881 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
882 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
884 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
887 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
889 (print_char_table): Print `default_value' in XEmacs UTF-2000.
890 (char_table_description): Delete `mirror_table' in XEmacs
892 (fill_char_table): Don't call `update_syntax_table' in XEmacs
894 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
895 (Fcopy_char_table): Likewise.
896 (put_char_table): Don't call `update_syntax_table' in XEmacs
899 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
900 `buf->mirror_syntax_table' in XEmacs UTF-2000.
901 (casify_region_internal): Likewise.
903 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
905 * buffer.c (common_init_complex_vars_of_buffer): Don't use
906 `mirror_syntax_table' in XEmacs UTF-2000.
908 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
909 `buf->mirror_syntax_table' in XEmacs UTF-2000.
910 (Fexpand_abbrev): Likewise.
912 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
914 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
916 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
918 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
919 (map_over_uint16_byte_table): Likewise.
920 (map_over_byte_table): Likewise.
921 (get_char_id_table): Refer `cit->default_value'.
922 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
923 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
924 of character-id ranges.
925 (mark_char_table): Mark `ct->default_value'.
926 (char_table_description): Add `default_value'.
927 (fill_char_table): Use `default_value'.
928 (decode_char_table_range): Decode `nil' as
929 `CHARTAB_RANGE_DEFAULT'.
930 (get_char_id_table): Refer `cit->default_value'.
931 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
932 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
933 temporary hack; check value of char-table is bound or not.
934 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
936 * chartab.h (struct Lisp_Char_Table): Add new member
937 `default_value' in XEmacs UTF-2000.
938 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
939 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
942 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
944 * chartab.h (Lisp_Char_ID_Table): Deleted.
946 * chartab.c (char_table_description): Fix typo.
947 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
948 `Lisp_Char_ID_Table'.
950 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
952 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
955 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
958 * chartab.h (XCHAR_ID_TABLE): Deleted.
959 (XSETCHAR_ID_TABLE): Deleted.
960 (CHAR_ID_TABLE_P): Deleted.
962 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
964 (Fget_composite_char): Likewise.
965 (put_char_table): Likewise.
966 (add_char_attribute_alist_mapper): Fixed.
967 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
969 (Fget_char_attribute): Likewise.
970 (Fget_char_attribute): Likewise.
971 (Fmap_char_attribute): Likewise.
973 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
975 (encode_char_1): Likewise.
977 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
979 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
982 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
983 instead of `XCHAR_ID_TABLE'.
984 (remove_char_ccs): Likewise.
986 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
988 (Fget_composite_char): Likewise.
989 (Fchar_variants): Likewise.
990 (put_char_table): Likewise.
991 (add_char_attribute_alist_mapper): Likewise.
992 (Fchar_attribute_alist): Likewise.
993 (Fget_char_attribute): Likewise.
994 (Fput_char_attribute): Likewise.
995 (Fmap_char_attribute): Likewise.
996 (Fmap_char_attribute): Likewise.
998 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1000 (encode_char_1): Likewise.
1002 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1004 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1005 `Lisp_Char_ID_Table'.
1006 (mark_char_id_table): Deleted.
1007 (print_char_id_table): Likewise.
1008 (char_id_table_equal): Likewise.
1009 (char_id_table_hash): Likewise.
1010 (char_id_table_description): Likewise.
1011 (char_id_table): Likewise.
1012 (make_char_id_table): Use `Fmake_char_table' and
1014 (get_char_id_table): Use `Lisp_Char_Table' instead of
1015 `Lisp_Char_ID_Table'.
1016 (put_char_id_table): Likewise.
1017 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1019 (Fremove_char_attribute): Likewise.
1020 (syms_of_chartab): Don't define type `char-id-table'.
1022 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1023 (char_id_table): Likewise.
1024 (GC_CHAR_ID_TABLE_P): Likewise.
1025 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1026 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1027 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1028 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1029 (get_char_id_table): Use `Lisp_Char_Table' instead of
1030 `Lisp_Char_ID_Table'.
1031 (put_char_id_table_0): Likewise.
1032 (put_char_id_table): Likewise.
1034 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1036 * chartab.h: Lisp_Byte_Table related codes are moved from
1039 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1041 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1043 * chartab.h: Don't include "chartab.h".
1044 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1045 (Lisp_Char_ID_Table): Likewise.
1046 (char_id_table): Likewise.
1047 (XCHAR_ID_TABLE): Likewise.
1048 (XSETCHAR_ID_TABLE): Likewise.
1049 (CHAR_ID_TABLE_P): Likewise.
1050 (GC_CHAR_ID_TABLE_P): Likewise.
1051 (get_char_id_table): Likewise.
1053 * char-ucs.h: Include "chartab.h".
1054 (struct Lisp_Char_ID_Table): Moved to chartab.h.
1055 (Lisp_Char_ID_Table): Likewise.
1056 (char_id_table): Likewise.
1057 (XCHAR_ID_TABLE): Likewise.
1058 (XSETCHAR_ID_TABLE): Likewise.
1059 (CHAR_ID_TABLE_P): Likewise.
1060 (GC_CHAR_ID_TABLE_P): Likewise.
1061 (get_char_id_table): Likewise.
1063 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1065 * chartab.c (copy_uint8_byte_table): New function.
1066 (copy_uint16_byte_table): New function.
1067 (copy_byte_table): New function.
1068 (map_over_uint8_byte_table): Modify to avoid huge numbers of
1070 (map_over_uint16_byte_table): Likewise.
1071 (map_over_byte_table): Likewise.
1072 (get_byte_table): Move prototype to chartab.h.
1073 (put_byte_table): Likewise.
1074 (put_char_id_table_0): Moved to chartab.h.
1075 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1076 (char_table_entry_equal): Likewise.
1077 (char_table_entry_hash): Likewise.
1078 (char_table_entry_description): Likewise.
1079 (char_table_entry): Likewise.
1080 (make_char_table_entry): Likewise.
1081 (copy_char_table_entry): Likewise.
1082 (get_non_ascii_char_table_value): Likewise.
1083 (map_over_charset_ascii): Likewise.
1084 (map_over_charset_control_1): Likewise.
1085 (map_over_charset_row): Likewise.
1086 (map_over_other_charset): Likewise.
1087 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1088 (print_char_table): Likewise.
1089 (char_table_equal): Likewise.
1090 (char_table_hash): Likewise.
1091 (char_table_description): Likewise.
1092 (fill_char_table): Likewise.
1093 (Fcopy_char_table): Likewise.
1094 (get_char_table): Likewise.
1095 (Fget_range_char_table): Likewise.
1096 (put_char_table): Likewise.
1097 (map_char_table): Likewise.
1098 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1101 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1103 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1104 `Vauto_fill_chars' in XEmacs UTF-2000.
1106 * chartab.h (get_byte_table): New prototype [moved from
1108 (put_byte_table): Likewise [moved from chartab.c].
1109 (put_char_id_table_0): New inline function [moved from chartab.c].
1110 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1111 (Lisp_Char_Table_Entry): Likewise.
1112 (char_table_entry): Likewise.
1113 (XCHAR_TABLE_ENTRY): Likewise.
1114 (XSETCHAR_TABLE_ENTRY): Likewise.
1115 (CHAR_TABLE_ENTRYP): Likewise.
1116 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1117 (NUM_ASCII_CHARS): Likewise.
1118 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1119 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1121 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1123 * chartab.c (get_char_id_table): Change interface.
1124 (put_char_id_table_0): New function.
1125 (put_char_id_table): Change interface; new implementation.
1126 (Fget_composite_char): Modify for interface change of
1127 `get_char_id_table'.
1128 (Fchar_variants): Likewise.
1129 (add_char_attribute_alist_mapper): Likewise.
1130 (Fchar_attribute_alist): Likewise.
1131 (Fget_char_attribute): Likewise.
1132 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1133 as same as character as the first argument like `put-char-table';
1134 modify for interface change of `put_char_id_table'.
1135 (Fremove_char_attribute): Modify for interface change of
1136 `put_char_id_table'.
1138 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1140 * text-coding.c: Sync up with XEmacs 21.2.41.
1141 (COMPOSE_ADD_CHAR): Modify for interface change of
1142 `get_char_id_table'.
1144 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1145 change of `put_char_id_table'.
1146 (remove_char_ccs): Likewise.
1148 * chartab.h (put_char_id_table): Change interface.
1150 * char-ucs.h (get_char_id_table): Change interface.
1151 (charset_code_point): Modify for interface change of
1152 `get_char_id_table'.
1153 (encode_char_1): Likewise.
1155 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1157 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1159 (map_over_uint16_byte_table): Likewise.
1160 (map_over_byte_table): Likewise.
1161 (map_char_id_table): Add new argument `range' like
1163 (Fmap_char_attribute): Add new argument `range' like
1166 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1168 * chartab.c (map_over_uint8_byte_table): Change interface of
1169 mapping function to use struct chartab_range instead of Emchar.
1170 (map_over_uint16_byte_table): Likewise.
1171 (map_over_byte_table): Likewise.
1172 (map_char_id_table): Likewise.
1173 (struct slow_map_char_id_table_arg): Deleted.
1174 (slow_map_char_id_table_fun): Deleted.
1175 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1176 function `slow_map_char_table_fun' instead of struct
1177 `slow_map_char_id_table_arg' and function
1178 `slow_map_char_id_table_fun'.
1180 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1182 * mule-charset.c: Move char-it-table related codes to chartab.c.
1183 (Vutf_2000_version): Moved to chartab.c.
1184 (Fdefine_char): Likewise.
1185 (Ffind_char): Likewise.
1186 (syms_of_mule_charset): Move types `uint8-byte-table',
1187 `uint16-byte-table', `byte-table' and `char-id-table' to
1188 chartab.c; move functions `char_attribute_list,
1189 `find_char_attribute_table, `char_attribute_alist,
1190 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1191 `map_char_attribute, `define_char, `find_char, `char_variants and
1192 `get_composite_char to chartab.c; move symbols `=>ucs',
1193 `->decomposition', `compat', `isolated', `initial', `medial',
1194 `final', `vertical', `noBreak', `fraction', `super', `sub',
1195 `circle', `square', `wide', `narrow', `small' and `font' to
1197 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1198 setting codes for `Vcharacter_composition_table' and
1199 `Vcharacter_variant_table' to chartab.c.
1200 (complex_vars_of_mule_charset): Move setting code for
1201 `Vchar_attribute_hash_table' to chartab.c.
1203 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1204 (make_char_id_table): New prototype.
1205 (put_char_id_table): Likewise.
1206 (Fget_char_attribute): Likewise.
1208 * chartab.c: Move char-id-table related code from mule-charset.c.
1209 (Vutf_2000_version): Moved from mule-charset.c.
1211 * char-ucs.h (Qucs): New external variable.
1212 (put_char_ccs_code_point): New prototype.
1213 (remove_char_ccs): Likewise.
1215 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1217 * mule-charset.c (Vcharset_ucs_jis): New variable.
1218 (Qucs_jis): Likewise.
1219 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1220 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1222 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1224 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1226 * mule-charset.c (map_over_uint8_byte_table): New function.
1227 (map_over_uint16_byte_table): Likewise.
1228 (map_over_byte_table): Likewise.
1229 (map_char_id_table): Likewise.
1230 (slow_map_char_id_table_fun): Likewise.
1231 (Fmap_char_attribute): Likewise.
1232 (syms_of_mule_charset): Add new function `map-char-attribute'.
1234 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1236 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1237 (syms_of_mule_charset): Add new function `find-char'.
1239 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1241 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1243 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1244 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1246 (complex_vars_of_mule_charset): Add new coded-charset
1247 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1248 `ideograph-gt-pj-*'.
1250 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1252 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1254 * mule-charset.c (encode_builtin_char_1): Purge codes about
1255 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1256 {MIN|MAX}_CHAR_HEBREW.
1257 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1258 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1260 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1261 (MAX_CHAR_GREEK): Purged.
1262 (MIN_CHAR_CYRILLIC): Purged.
1263 (MAX_CHAR_CYRILLIC): Purged.
1264 (MIN_CHAR_HEBREW): Commented out.
1265 (MAX_CHAR_HEBREW): Likewise.
1267 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1269 * mule-charset.c (Qto_ucs): New variable.
1270 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1271 (Fdefine_char): Likewise.
1272 (syms_of_mule_charset): Add new symbol `=>ucs'.
1274 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1276 * mule-charset.c (Fdecode_char): Fixed.
1278 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1280 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1281 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1284 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1286 * mule-charset.c (Vcharset_ucs_big5): New variable.
1287 (Qucs_big5): Likewise.
1288 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1289 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1291 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1293 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1295 * mule-charset.c (decode_builtin_char): Check Big5 code range
1296 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1298 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1300 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1301 (Qchinese_gb12345): Likewise.
1302 (Fdecode_builtin_char): Fixed.
1303 (syms_of_mule_charset): Add `chinese-gb12345'.
1304 (complex_vars_of_mule_charset): Add coded-charset
1307 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1308 (LEADING_BYTE_CHINESE_GB12345): New macro.
1310 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1312 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1313 and `latin-viscii-upper' for `latin-viscii'.
1315 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1317 * mule-charset.c (Fdecode_builtin_char): Comment out
1318 regularization code for ISO-IR GR representation.
1320 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1322 * mule-charset.c (decode_builtin_char): New function; renamed from
1323 `make_builtin_char'; return -1 instead of signal.
1324 (Fdecode_builtin_char): Use `decode_builtin_char'.
1326 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1327 `make_builtin_char'.
1328 (DECODE_CHAR): Use `decode_builtin_char' instead of
1329 `make_builtin_char'; use mapping table of `chinese-big5' for
1330 `chinese-big5-{1,2}'.
1332 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1334 * text-coding.c (char_encode_big5): New function.
1335 (char_finish_big5): Likewise.
1336 (reset_encoding_stream): Use `char_encode_big5' and
1337 `char_finish_big5' for CODESYS_BIG5.
1338 (mule_encode): Don't use `encode_coding_big5'.
1339 (encode_coding_big5): Deleted.
1341 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1343 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1344 0x81- in XEmacs UTF-2000.
1345 (detect_coding_big5): Likewise.
1347 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1349 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1350 generate character-id if the CCS property does not have
1351 corresponding predefined character.
1352 (make_builtin_char): Return -1 if corresponding predefined
1353 character is not found.
1354 (Fdecode_char): Return nil if corresponding character is not
1356 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1357 don't map to builtin ucs space.
1359 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1361 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1362 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1364 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1366 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1367 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1368 (Qideograph_gt): Likewise.
1369 (Qideograph_gt_pj_{1..11}): Likewise.
1370 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1371 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1372 `ideograph-gt-pj-11'.
1373 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1374 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1375 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1377 * char-ucs.h (LEADING_BYTE_GT): New macro.
1378 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1379 (MIN_CHAR_GT): Likewise.
1380 (MAX_CHAR_GT): Likewise.
1382 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1384 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1385 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1387 * doprnt.c (unsigned_int_converters): Add `c'.
1388 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1390 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1391 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1393 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1394 (MAX_CHAR_MOJIKYO_0): New macro.
1395 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1397 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1399 * mule-charset.c (Fdefine_char): Delete cemented out code.
1400 (encode_builtin_char_1): Modify for new allocation of builtin
1403 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1405 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1407 * mule-charset.c (Vcharset_ucs_cns): New variable.
1408 (Qucs_cns): New variable.
1409 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1410 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1412 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1414 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1416 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1418 * search.c (search_buffer): Make `charset_base_code' as
1419 character-id >> 6 to eliminate the corresponding last byte in
1420 UTF-8 representation [I'm not sure it is right thing].
1421 (boyer_moore): Likewise.
1423 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1425 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1426 representation in MULE.
1428 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1430 * text-coding.c (Fmake_coding_system): Use
1431 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1432 `EXTERNAL_PROPERTY_LIST_LOOP'.
1434 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1436 * text-coding.c (decode_output_utf8_partial_char): New function.
1437 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1439 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1441 * text-coding.c (decode_coding_utf8): Output original byte
1442 sequence if it is broken; change order of conditions.
1444 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1447 * mb-multibyte.h (BYTE_ASCII_P):
1448 Use bit ops for char-signedness safety.
1449 (BYTE_C0_P): Use bit ops for char-signedness safety.
1450 (BYTE_C1_P): Use bit ops for char-signedness safety.
1452 * character.h: (XCHAR_OR_CHAR_INT):
1453 Always use inline function.
1454 Remove redundant type checking assert() - XINT will abort quite
1457 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1459 * text-coding.c: (Fencode_shift_jis_char):
1460 (Fencode_big5_char):
1461 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1462 Replace 0 with '\0' when working with bytes.
1463 Replace initial "(" with "\(" in docstrings.
1465 (Fmake_coding_system):
1466 When type is ccl and value is vector, register it with a proper
1467 symbol. And checks whether the given ccl program is valid.
1468 (mule_decode): When calling ccl_driver, if src indicates
1469 NULL pointer, set an empty string instead.
1470 (mule_encode): Likewise.
1473 (detect_coding_sjis):
1474 (decode_coding_sjis):
1475 (detect_coding_big5):
1476 (decode_coding_big5):
1477 (detect_coding_ucs4):
1478 (decode_coding_ucs4):
1479 (detect_coding_utf8):
1480 (decode_coding_utf8):
1481 (detect_coding_iso2022):
1482 (decode_coding_iso2022):
1483 (decode_coding_no_conversion):
1485 Make all detecting and decoding functions take an Extbyte * arg.
1486 (text_encode_generic):
1487 (encode_coding_big5):
1488 (encode_coding_no_conversion):
1490 Make all encoding functions take a Bufbyte * arg.
1491 Use size_t instead of unsigned int for memory sizes.
1492 Only cast to unsigned char whenever dereferencing Extbyte *.
1494 (struct lrecord_description fcd_description_1): Use countof.
1495 (complex_vars_of_file_coding):
1496 Use countof instead of sizeof.
1497 Use CHECK_NATNUM instead of CHECK_INT.
1499 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1501 * mule-charset.c (Fget_char_attribute): Add new optional argument
1503 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1504 (remove_char_ccs): Likewise.
1506 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1508 * text-coding.c (char_encode_shift_jis): New implementation in
1510 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1513 * mule-charset.c (Vcharset_chinese_big5): New variable in
1515 (Qchinese_big5): New variable in UTF-2000.
1516 (BIG5_SAME_ROW): New macro in UTF-2000.
1517 (make_builtin_char): Use builtin characters of
1518 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1519 characters of `Vcharset_chinese_big5'.
1520 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1521 (complex_vars_of_mule_charset): Add new coded-charset
1522 `chinese-big5' in UTF-2000.
1524 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1525 (Vcharset_chinese_big5): New external variable declaration.
1526 (Vcharset_japanese_jisx0208_1990): Likewise.
1528 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1530 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1532 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1534 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1536 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1537 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1538 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1541 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1543 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1545 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1547 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1550 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1552 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1553 for `CHARSET_BY_ATTRIBUTES'.
1554 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1555 `CHARSET_BY_ATTRIBUTES'.
1557 * text-coding.c (struct decoding_stream): Rename member `CH' to
1559 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1560 (decode_coding_sjis): Likewise.
1561 (decode_coding_big5): Likewise.
1562 (decode_coding_ucs4): Likewise.
1563 (decode_coding_utf8): Likewise.
1564 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1565 `CHARSET_BY_ATTRIBUTES'.
1566 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1567 `str->counter'; decode 3, 4 bytes sets.
1568 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1570 (decode_coding_no_conversion): Use `str->cpos' instead of
1573 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1574 (Qmojikyo_2022_1): New variable.
1575 (make_charset): Don't use `CHARSET_TYPE_*'.
1576 (range_charset_code_point): Support coded-charset
1578 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1579 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1580 `CHARSET_BY_ATTRIBUTES'.
1581 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1582 `CHARSET_BY_ATTRIBUTES'.
1583 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1584 (complex_vars_of_mule_charset): Add new coded-charset
1587 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1588 interface; changed to inline function.
1590 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1591 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1592 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1593 (CHARSET_TYPE_94): Deleted.
1594 (CHARSET_TYPE_94X94): Deleted.
1595 (CHARSET_TYPE_96): Deleted.
1596 (CHARSET_TYPE_96X96): Deleted.
1597 (CHARSET_TYPE_128): Deleted.
1598 (CHARSET_TYPE_128X128): Deleted.
1599 (CHARSET_TYPE_256): Deleted.
1600 (CHARSET_TYPE_256X256): Deleted.
1601 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1603 (DECODE_MOJIKYO_2022): New inline function.
1604 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1605 `Vcharset_mojikyo_2022_1'.
1607 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1609 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1611 (put_byte_table): Likewise.
1612 (char_id_table_equal): Use `get_byte_table' [new implementation].
1614 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1616 * mule-charset.c: Include <limits.h> in UTF-2000.
1617 (BT_UINT8_MIN): New macro in UTF-2000.
1618 (BT_UINT8_MAX): New macro in UTF-2000.
1619 (BT_UINT8_t): New macro in UTF-2000.
1620 (BT_UINT8_nil): New macro in UTF-2000.
1621 (BT_UINT8_unbound): New macro in UTF-2000.
1622 (INT_UINT8_P): New inline function in UTF-2000.
1623 (UINT8_VALUE_P): New inline function in UTF-2000.
1624 (UINT8_ENCODE): New inline function in UTF-2000.
1625 (UINT8_DECODE): New inline function in UTF-2000.
1626 (mark_uint8_byte_table): New function in UTF-2000.
1627 (print_uint8_byte_table): New function in UTF-2000.
1628 (uint8_byte_table_equal): New function in UTF-2000.
1629 (uint8_byte_table_hash): New function in UTF-2000.
1630 (make_uint8_byte_table): New function in UTF-2000.
1631 (uint8_byte_table_same_value_p): New function in UTF-2000.
1632 (BT_UINT16_MIN): New macro in UTF-2000.
1633 (BT_UINT16_MAX): New macro in UTF-2000.
1634 (BT_UINT16_t): New macro in UTF-2000.
1635 (BT_UINT16_nil): New macro in UTF-2000.
1636 (BT_UINT16_unbound): New macro in UTF-2000.
1637 (INT_UINT16_P): New inline function in UTF-2000.
1638 (UINT16_VALUE_P): New inline function in UTF-2000.
1639 (UINT16_ENCODE): New inline function in UTF-2000.
1640 (UINT16_DECODE): New inline function in UTF-2000.
1641 (UINT8_TO_UINT16): New inline function in UTF-2000.
1642 (mark_uint16_byte_table): New function in UTF-2000.
1643 (print_uint16_byte_table): New function in UTF-2000.
1644 (uint16_byte_table_equal): New function in UTF-2000.
1645 (uint16_byte_table_hash): New function in UTF-2000.
1646 (make_uint16_byte_table): New function in UTF-2000.
1647 (uint16_byte_table_same_value_p): New function in UTF-2000.
1648 (print_byte_table): New function in UTF-2000.
1649 (byte-table): Use `print_byte_table' as printer.
1650 (make_byte_table): Delete second argument `older'.
1651 (byte_table_same_value_p): New function in UTF-2000.
1652 (copy_byte_table): Deleted.
1653 (get_byte_table): New function in UTF-2000.
1654 (put_byte_table): New function in UTF-2000.
1655 (print_char_id_table): New function in UTF-2000.
1656 (char-id-table): Use `print_char_id_table' as printer.
1657 (make_char_id_table): Delete second argument `older'.
1658 (get_char_id_table): Use `get_byte_table [new implementation].
1659 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1661 (Ffind_char_attribute_table): New function in UTF-2000.
1662 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1663 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1664 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1665 (syms_of_mule_charset): Add new function
1666 `find-char-attribute-table' in UTF-2000.
1668 * lrecord.h (enum lrecord_type): Add
1669 `lrecord_type_uint16_byte_table' and
1670 `lrecord_type_uint8_byte_table'.
1672 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1673 (Lisp_Uint8_Byte_Table): New type.
1674 (XUINT8_BYTE_TABLE): New macro.
1675 (XSETUINT8_BYTE_TABLE): New macro.
1676 (UINT8_BYTE_TABLE_P): New macro.
1677 (GC_UINT8_BYTE_TABLE_P): New macro.
1678 (struct Lisp_Uint16_Byte_Table): New structure.
1679 (Lisp_Uint16_Byte_Table): New type.
1680 (XUINT16_BYTE_TABLE): New macro.
1681 (XSETUINT16_BYTE_TABLE): New macro.
1682 (UINT16_BYTE_TABLE_P): New macro.
1683 (GC_UINT16_BYTE_TABLE_P): New macro.
1685 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1687 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1688 (Vcharacter_ideographic_strokes_table): Deleted.
1689 (Vcharacter_total_strokes_table): Deleted.
1690 (Vcharacter_morohashi_daikanwa_table): Deleted.
1691 (Vcharacter_decomposition_table): Deleted.
1692 (Qname): Deleted because it is duplicated.
1693 (Qideographic_radical): Deleted.
1694 (Qideographic_strokes): Deleted.
1695 (Qtotal_strokes): Deleted.
1696 (Qmorohashi_daikanwa): Deleted.
1697 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1698 `ideographic-radical', `ideographic-strokes', `total-strokes',
1699 `morohashi-daikanwa' and `->decomposition'.
1700 (Fget_char_attribute): Likewise.
1701 (Fput_char_attribute): Likewise; use `make-vector' instead of
1702 `make_older_vector' for `->decomposition' value.
1703 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1704 `ideograph-daikanwa'.
1705 (syms_of_mule_charset): Delete builtin symbols `name',
1706 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1707 `morohashi-daikanwa'.
1708 (vars_of_mule_charset): Don't setup
1709 `Vcharacter_ideographic_radical_table',
1710 `Vcharacter_ideographic_strokes_table',
1711 `Vcharacter_total_strokes_table',
1712 `Vcharacter_morohashi_daikanwa_table' and
1713 `Vcharacter_decomposition_table'.
1715 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1717 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1718 `make_older_vector', `make_vector_newer_1' and
1719 `make_vector_newer'.
1721 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1722 `make_older_vector' and `make_vector_newer'.
1724 * config.h.in (HAVE_GGC): New macro.
1726 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1728 * mule-charset.c (struct char_attribute_list_closure): New
1729 structure in UTF-2000.
1730 (add_char_attribute_to_list_mapper): New function in UTF-2000.
1731 (Fchar_attribute_list): Likewise.
1732 (Fset_charset_mapping_table): Use `make_vector_newer'.
1733 (Fdecode_builtin_char): New function in UTF-2000.
1734 (syms_of_mule_charset): Add new function `char-attribute-list' and
1735 `decode-builtin-char' in UTF-2000.
1737 * lisp.h (make_vector_newer): New prototype.
1739 * alloc.c (make_vector_newer_1): New function.
1740 (make_vector_newer): New function.
1742 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1744 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1747 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1749 * mule-charset.c (Vchar_attribute_hash_table): New variable.
1750 (Vcharacter_attribute_table): Deleted.
1751 (Vcharacter_name_table): Deleted.
1752 (put_char_attribute): Deleted.
1753 (remove_char_attribute): Deleted.
1754 (struct char_attribute_alist_closure): New structure.
1755 (add_char_attribute_alist_mapper): New function.
1756 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1757 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1758 (Fget_char_attribute): Likewise.
1759 (Fput_char_attribute): Likewise.
1760 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1761 of `remove_char_attribute'.
1762 (Fdefine_char): Return character.
1763 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1764 and `Vcharacter_name_table'.
1765 (complex_vars_of_mule_charset): Likewise
1766 `Vchar_attribute_hash_table'.
1768 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1770 * character.h (CHARC_CHARSET): New macro.
1771 (CHARC_CHARSET_ID): New macro.
1772 (CHARC_CODE_POINT): New macro.
1773 (CHARC_COLUMNS): New macro.
1774 (CHARC_TO_CHAR): New inline function.
1775 (CHARC_EQ): New inline function.
1776 (CHARC_ASCII_EQ): New inline function.
1777 (CHARC_IS_SPACE): New inline function.
1778 (ASCII_TO_CHARC): New inline function.
1780 * char-ucs.h (encode_char_2): Deleted.
1781 (ENCODE_CHAR): Use `encode_char_1' again.
1782 (breakup_char_1): Likewise.
1783 (CHAR_TO_CHARC): New inline function.
1785 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1787 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1789 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1790 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1791 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1792 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1793 (create_string_text_block): Use `CHARC_ASCII_EQ' and
1795 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1797 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1799 (x_output_display_block): Use `CHARC_CHARSET' and
1802 * redisplay-tty.c (tty_output_display_block): Use
1804 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1806 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1808 * insdel.c (find_charsets_in_charc_string): Use
1810 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1811 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1812 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1813 (convert_charc_string_into_malloced_string): Likewise.
1815 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1817 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1818 instead of <Emchar_dynarr *> for buf; use
1819 `convert_bufbyte_string_into_charc_dynarr' instead of
1820 `convert_bufbyte_string_into_emchar_dynarr'; use
1821 `find_charsets_in_charc_string' instead of
1822 `find_charsets_in_emchar_string'.
1825 - Include "character.h".
1826 (struct rune): New member `cglyph'; delete member `chr'.
1828 * redisplay.c (redisplay_text_width_charc_string): New function;
1829 delete `redisplay_text_width_emchar_string'.
1830 (rtw_charc_dynarr): New variable; renamed from
1831 `rtw_emchar_dynarr'.
1832 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1833 `rtw_emchar_dynarr'; use
1834 `convert_bufbyte_string_into_charc_dynarr' instead of
1835 `convert_bufbyte_string_into_emchar_dynarr'; use
1836 `redisplay_text_width_charc_string' instead of
1837 `redisplay_text_width_emchar_string'.
1838 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1839 instead of `rtw_emchar_dynarr'; use
1840 `convert_bufbyte_string_into_charc_dynarr' instead of
1841 `convert_bufbyte_string_into_emchar_dynarr'.
1842 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1843 `redisplay_text_width_charc_string' instead of
1844 `redisplay_text_width_emchar_string'.
1845 (create_text_block): Modify for <struct rune> change.
1846 (generate_formatted_string_db): Likewise.
1847 (create_string_text_block): Likewise.
1848 (pixel_to_glyph_translation): Likewise.
1850 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1851 instead of <const Emchar *>.
1852 (x_text_width): Likewise.
1853 (x_output_display_block): Use <Charc_dynarr *> instead
1854 <Emchar_dynarr *>; modify for <structure rune> change.
1855 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1858 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1859 <const Emchar *>; use `charc_string_displayed_columns' instead of
1860 `emchar_string_displayed_columns'.
1861 (tty_output_display_block): Use <Charc_dynarr *> instead of
1862 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1863 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1864 (tty_output_charc_dynarr_dynarr): New variable; renamed from
1865 `tty_output_emchar_dynarr_dynarr'.
1866 (tty_output_charc_dynarr): New function; delete
1867 `tty_output_charc_dynarr'.
1869 * redisplay-output.c (compare_runes): Modify for `struct rune'.
1870 (redisplay_output_layout): Use <Charc_dynarr *> instead of
1871 <Emchar_dynarr *> for buf; use
1872 `convert_bufbyte_string_into_charc_dynarr' instead of
1873 `convert_bufbyte_string_into_emchar_dynarr'.
1875 * frame.c (title_string_charc_dynarr): New variable; renamed from
1876 `title_string_emchar_dynarr'.
1877 (generate_title_string): Use `title_string_charc_dynarr' instead
1878 of `title_string_emchar_dynarr'; use
1879 `convert_charc_string_into_malloced_string' instead of
1880 `convert_emchar_string_into_malloced_string'.
1881 (init_frame): Use `title_string_charc_dynarr' instead of
1882 `title_string_emchar_dynarr'.
1885 - Include "character.h".
1886 (struct console_methods): Use <const Charc *> instead of <const
1887 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1888 <Emchar_dynarr *> in output_string_method.
1890 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1893 * console-stream.c (stream_text_width): Use <const Charc *>
1894 instead of <const Emchar *>.
1896 * character.h (Charc_dynarr): New type.
1898 * char-ucs.h (structure Charc): New structure; define new type
1901 * char-lb.h (DECODE_CHAR): New inline function.
1902 (encode_char_1): New inline function.
1903 (ENCODE_CHAR): New macro.
1904 (structure Charc): New structure; define new type `Charc'.
1906 * char-1byte.h (Vcharset_control_1): New macro.
1907 (Vcharset_latin_iso8859_1): New macro.
1908 (DECODE_CHAR): New inline function.
1909 (encode_char_1): New inline function.
1910 (ENCODE_CHAR): New macro.
1911 (structure Charc): New structure; define new type `Charc'.
1913 * insdel.c (find_charsets_in_charc_string): New function; delete
1914 `find_charsets_in_emchar_string'.
1915 (charc_string_displayed_columns): New function; delete
1916 `emchar_string_displayed_columns'.
1917 (convert_bufbyte_string_into_charc_dynarr): New function; delete
1918 `convert_bufbyte_string_into_emchar_dynarr'.
1919 (convert_charc_string_into_bufbyte_dynarr): New function; delete
1920 `convert_charc_string_into_bufbyte_dynarr'.
1921 (convert_charc_string_into_malloced_string): New function; delete
1922 `convert_charc_string_into_malloced_string'.
1924 * buffer.h (find_charsets_in_charc_string): New prototype; delete
1925 `find_charsets_in_emchar_string'.
1926 (charc_string_displayed_columns): New prototype; delete
1927 `emchar_string_displayed_columns'.
1928 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1929 `convert_charc_string_into_bufbyte_dynarr'.
1930 (convert_charc_string_into_malloced_string): New prototype; delete
1931 `convert_charc_string_into_malloced_string'.
1933 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1935 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1937 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1939 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1941 * char-ucs.h: Use <short> for <Charset_ID>.
1943 * mule-charset.h, char-1byte.h: Use <unsigned char> for
1946 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1948 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1951 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1953 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1955 (Qmorohashi_daikanwa): New variable.
1956 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1957 for `morohashi-daikanwa' attribute.
1958 (Fget_char_attribute): Likewise.
1959 (Fput_char_attribute): Likewise.
1960 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1961 has the same value of `ideograph-daikanwa'.
1962 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1963 (vars_of_mule_charset): Setup
1964 `Vcharacter_morohashi_daikanwa_table'.
1966 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1968 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1970 (add_charset_to_list_mapper): Add `key' instead of
1971 `XCHARSET_NAME (value)' to return aliases.
1973 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1975 * mule-charset.c (Vcharacter_ideographic_radical_table): New
1977 (Vcharacter_ideographic_strokes_table): New variable.
1978 (Qideographic_radical): New variable.
1979 (Qideographic_strokes): New variable.
1980 (Fchar_attribute_alist): Use
1981 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1982 attribute; use `Vcharacter_ideographic_strokes_table' for
1983 `ideographic-strokes' attribute.
1984 (Fget_char_attribute): Likewise.
1985 (Fput_char_attribute): Likewise.
1986 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1987 `ideographic-strokes'.
1988 (vars_of_mule_charset): Setup
1989 `Vcharacter_ideographic_radical_table' and
1990 `Vcharacter_ideographic_strokes_table'.
1992 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1994 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1995 (Qtotal_strokes): New variable.
1996 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1997 `total-strokes' attribute.
1998 (Fget_char_attribute): Likewise.
1999 (Fput_char_attribute): Likewise.
2000 (syms_of_mule_charset): Add new symbol `total-strokes'.
2001 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2003 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2005 * mule-charset.c (Vcharacter_decomposition_table): New variable.
2006 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2008 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2009 `->decomposition' attribute.
2010 (Fput_char_attribute): Likewise.
2011 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2013 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2015 * mule-charset.c (decoding_table_check_elements): New function.
2016 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2018 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2020 * mule-charset.c (Fset_charset_mapping_table): Use
2021 `put_char_ccs_code_point'.
2023 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2025 * mule-charset.c (decoding_table_put_char): New inline function.
2026 (put_char_ccs_code_point): Use `decoding_table_put_char'.
2028 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2030 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2031 (XCHARSET_BYTE_SIZE): New macro.
2032 (decoding_table_remove_char): New inline function.
2033 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2034 `decoding_table_remove_char'.
2035 (remove_char_ccs): Use `decoding_table_remove_char'.
2036 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2038 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2040 * mule-charset.c (Vcharacter_name_table): New variable.
2041 (Qname): New variable.
2042 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2044 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2045 `Vcharacter_name_table' for `name' attribute.
2046 (Fremove_char_attribute): Use function `remove_char_ccs'.
2047 (put_char_ccs_code_point): New function.
2048 (remove_char_ccs): New function.
2049 (syms_of_mule_charset): Add new symbol `name'.
2050 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2052 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2054 * mule-charset.c (make_byte_table): Add new argument `older'.
2055 (make_char_id_table): Likewise.
2056 (copy_char_id_table): Comment out because it is not used.
2057 (put_char_id_table): Modify for `make_byte_table'.
2058 (Fput_char_attribute): Make encoding_table as older object;
2059 inherit older bit of `Vcharacter_composition_table'.
2060 (mark_charset): Don't mark `cs->encoding_table'.
2061 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2062 normal object; make `Vcharacter_composition_table' as an older
2063 object; delete staticpro for `Vcharacter_composition_table'; make
2064 `Vcharacter_variant_table' as a normal object.
2066 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2067 (mark_object): Don't check older object in UTF-2000.
2069 * lrecord.h (struct lrecord_header): Add new member `older' in
2071 (set_lheader_implementation): Setup `SLI_header->older' in
2073 (set_lheader_older_implementation): New macro in UTF-2000.
2074 (OLDER_RECORD_P): New macro in UTF-2000.
2075 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2076 (alloc_older_lcrecord): New prototype in UTF-2000.
2077 (alloc_older_lcrecord_type): New macro in UTF-2000.
2079 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2081 * mule-charset.c (byte_table_description): Use
2082 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2083 (char_id_table_description): Delete bogus `, 1'.
2084 (Fget_char_attribute): Refer encoding_table of each coded-charset
2085 to get value of coded-charset attribute of a character.
2086 (Fput_char_attribute): Use `make_older_vector' instead of
2087 `make_vector'; use encoding_table of each coded-charset to store
2088 value of coded-charset attribute of a character.
2089 (Fremove_char_attribute): Use encoding_table of each coded-charset
2090 to store value of coded-charset attribute of a character.
2091 (mark_charset): Mark `cs->encoding_table'; don't mark
2092 `cs->decoding_table'.
2093 (charset_description): Add description of new member
2095 (make_charset): Initialize `encoding_table'.
2097 * char-ucs.h (struct Lisp_Charset): Add new member
2099 (CHARSET_ENCODING_TABLE): New macro.
2100 (XCHARSET_ENCODING_TABLE): New macro.
2101 (charset_code_point): New implementation.
2102 (encode_char_1): Likewise.
2104 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2105 (disksave_object_finalization_1): Call finalizers of
2106 `all_older_lcrecords' in UTF-2000.
2107 (make_older_vector): New function in UTF-2000.
2108 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2111 * lisp.h (make_older_vector): New prototype in UTF-2000.
2113 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2115 * lrecord.h (enum lrecord_type): Rename
2116 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2118 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2119 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2120 `get_char_code_table'.
2122 * mule-charset.c (mark_char_id_table): Renamed from
2123 `mark_char_code_table'.
2124 (char_id_table_equal): Renamed from `char_code_table_equal'.
2125 (char_id_table_hash): Renamed from `char_code_table_hash'.
2126 (make_char_id_table): Renamed from `make_char_code_table'.
2127 (copy_char_id_table): Renamed from `copy_char_code_table'.
2128 (get_char_id_table): Renamed from `get_char_code_table'.
2129 (put_char_id_table): Renamed from `put_char_code_table'.
2130 (to_char_id): Renamed from `to_char_code'.
2132 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2133 `Lisp_Char_Code_Table'.
2134 (char_id_table): Renamed from `char_code_table'.
2135 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2136 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2137 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2138 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2139 (get_char_id_table): Renamed from `get_char_code_table'.
2141 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2143 * lrecord.h (enum lrecord_type): Rename
2144 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2146 * mule-charset.c (mark_byte_table): Renamed from
2147 `mark_char_byte_table'.
2148 (byte_table_equal): Renamed from `char_byte_table_equal'.
2149 (byte_table_hash): Renamed from `byte_table_hash'.
2150 (make_byte_table): Renamed from `make_byte_table'.
2151 (copy_byte_table): Renamed from `copy_char_byte_table'.
2153 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2154 `Lisp_Char_Byte_Table'.
2155 (byte_table): Renamed from `char_byte_table'.
2156 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2157 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2158 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2159 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2161 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2163 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2164 (dfc_convert_to_internal_format): Likewise.
2166 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2167 * text-coding.c (Fcoding_system_alias_p): New function.
2168 * text-coding.c (Fcoding_system_aliasee): New function.
2169 * text-coding.c (append_suffix_to_symbol): New function.
2170 * text-coding.c (dangling_coding_system_alias_p): New function.
2171 * text-coding.c (Ffind_coding_system):
2172 * text-coding.c (Fcopy_coding_system):
2173 * text-coding.c (encode_coding_no_conversion):
2174 * text-coding.c (syms_of_file_coding):
2175 * text-coding.c (vars_of_file_coding):
2176 Rewrite coding system alias code.
2177 Allow nested aliases, like symbolic links.
2178 Allow redefinition of coding system aliases.
2179 Prevent existence of dangling coding system aliases.
2180 Eliminate convert_to_external_format.
2181 Eliminate convert_to_internal_format.
2183 * text-coding.c: Change enum eol_type to eol_type_t.
2185 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2187 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2188 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2190 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2191 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2193 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2195 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2196 `ideograph-daikanwa'.
2198 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2199 (Vcharset_ucs_bmp): Likewise.
2200 (Vcharset_mojikyo): Add new extern variable definition.
2201 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2202 (Vcharset_latin_iso8859_3): Likewise.
2203 (Vcharset_latin_iso8859_4): Likewise.
2204 (Vcharset_latin_iso8859_9): Likewise.
2205 (Vcharset_latin_viscii_lower): Likewise.
2206 (Vcharset_latin_viscii_upper): Likewise.
2207 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2208 `mojikyo' code-point is used to decode.
2209 (encode_char_2): New function [to convert `mojikyo' code-point to
2210 Mojikyo font encoding].
2211 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2212 (breakup_char_1): Likewise.
2213 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2215 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2217 * text-coding.c (Fmake_coding_system): Add document about
2218 `disable-composition' property.
2220 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2222 * text-coding.c (Qdisable_composition): New variable; delete
2224 (Fmake_coding_system): Add new property `disable-composite';
2225 delete property `composite'.
2226 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2227 instead of `!CODING_SYSTEM_COMPOSITE'.
2228 (syms_of_file_coding): Add new symbol `disable-composition';
2229 delete symbol `composite'.
2231 * file-coding.h (struct Lisp_Coding_System): Add
2232 `disable_composition'; delete `enable_composition'.
2233 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2234 `CODING_SYSTEM_COMPOSITE'.
2235 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2236 `XCODING_SYSTEM_COMPOSITE'.
2238 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2240 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2243 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2245 * text-coding.c (Qcomposite): New variable.
2246 (Fmake_coding_system): Add new property `composite'.
2247 (struct decoding_stream): Add `combined_char_count',
2248 `combined_chars' and `combining_table' in UTF-2000.
2249 (COMPOSE_FLUSH_CHARS): New macro.
2250 (COMPOSE_ADD_CHAR): New macro.
2251 (reset_decoding_stream): Reset `str->combined_char_count' and
2252 `str->combining_table' in UTF-2000.
2253 (decode_coding_iso2022): Modify for character-decomposition.
2254 (syms_of_file_coding): Add new symbol `composite'.
2256 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2258 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2259 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2260 of `Vcharacter_composition_table' if `->decomposition' property
2262 (Qlatin_tcvn5712): New variable.
2263 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2264 (complex_vars_of_mule_charset): Add new coded-charset
2267 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2269 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2271 * file-coding.h (struct Lisp_Coding_System): Add
2272 `enable_composition'.
2273 (CODING_SYSTEM_COMPOSITE): New macro.
2274 (XCODING_SYSTEM_COMPOSITE): New macro.
2276 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2278 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2280 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2282 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2283 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2285 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2287 * mule-charset.c (Vcharset_mojikyo): New variable.
2288 (Fdefine_char): Don't use coded-charset which does not have
2289 non-builtin character range to allocate character-id.
2290 (Qmojikyo): New variable.
2291 (syms_of_mule_charset): Add new symbol `mojikyo'.
2292 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2294 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2295 (LEADING_BYTE_MOJIKYO): New macro.
2296 (MIN_CHAR_MOJIKYO): New macro.
2297 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2298 (MAX_CHAR_MOJIKYO): New macro.
2300 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2302 * mule-charset.c (remove_char_attribute): Fixed.
2304 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2306 * mule-charset.c (remove_char_attribute): New function.
2307 (Fremove_char_attribute): New function.
2308 (encode_builtin_char_1): Comment out builtin-support for
2309 greek-iso8859-7 and cyrillic-iso8859-5.
2310 (Fdecode_char): Check `code' is an integer.
2311 (syms_of_mule_charset): Add `remove-char-attribute'.
2312 (MIN_CHAR_GREEK): Deleted.
2313 (MAX_CHAR_GREEK): Likewise.
2314 (MIN_CHAR_CYRILLIC): Likewise.
2315 (MAX_CHAR_CYRILLIC): Likewise.
2316 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2317 MAX_CHAR_GREEK for `greek-iso8859-7'.
2319 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2320 (MAX_CHAR_GREEK): Likewise.
2321 (MIN_CHAR_CYRILLIC): Likewise.
2322 (MAX_CHAR_CYRILLIC): Likewise.
2324 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2326 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2327 format is used without `ucs' property.
2328 (Fdecode_char): Fix problem with GR representation.
2329 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2330 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2332 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2334 * mule-charset.c (make_builtin_char): New function.
2335 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2336 (Fset_charset_mapping_table): Modify for new representation of
2338 (Fdecode_char): New function.
2339 (syms_of_mule_charset): Add new builtin function `decode-char' in
2342 * char-ucs.h (make_builtin_char): New prototype.
2343 (DECODE_CHAR): New inline function.
2344 (MAKE_CHAR): Use `DECODE_CHAR'.
2346 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2348 * text-coding.c (parse_charset_conversion_specs): Use
2349 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2351 (iso2022_designate): Likewise.
2353 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2354 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2356 * mule-charset.c (Vcharset_ucs): New variable.
2357 (print_charset): Change design; use `CHARSET_CHARS' and
2358 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2359 (make_charset): Change signature to specify `chars' and
2360 `dimension' instead of `type'.
2361 (range_charset_code_point): Modify for 256^n-set.
2362 (encode_builtin_char_1): Encode as `ucs' in default.
2363 (Fmake_charset): Modify for `make_charset'.
2364 (Fmake_reverse_direction_charset): Likewise.
2365 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2367 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2370 * char-ucs.h (Vcharset_ucs): New variable.
2371 (LEADING_BYTE_UCS): New macro.
2372 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2373 and `chars' to `unsigned short' from `unsigned int'.
2374 (CHARSET_TYPE): Deleted.
2375 (XCHARSET_TYPE): Deleted.
2377 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2379 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2381 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2382 (ENCODE_CHAR): New macro.
2384 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2386 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2387 to 0.14 (Kawachi-Katakami).
2389 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2391 * text-coding.c (char_encode_shift_jis): Modify for
2392 `charset_code_point'.
2393 (char_encode_iso2022): Likewise.
2395 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2396 (integer) instead of list of <Lisp_Object>s (integers) as the
2397 format of code-point of a coded-charset.
2398 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2399 (encode_builtin_char_1): New function; delete
2400 `split_builtin_char'.
2401 (charset_code_point): Return <int> instead of <Lisp_Object>.
2402 (Fsplit_char): Don't use `SPLIT_CHAR'.
2404 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2405 prototype for `split_builtin_char'.
2406 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2407 (charset_code_point): Likewise.
2408 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2409 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2411 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2413 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2414 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2416 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2418 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2420 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2421 (MAX_CHAR_OBS_94x94): Deleted.
2423 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2425 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2427 * char-ucs.h (MAX_CHAR_BMP): New macro.
2429 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2431 * text-coding.c: Sync with r21-2-24.
2433 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2435 * file-coding.c: Modify for UTF-2000.
2437 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2439 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2442 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2444 * mule-charset.c (split_builtin_char): Delete builtin support for
2445 `katakana-jisx0201'.
2446 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2447 BMP area in builtin representation.
2449 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2450 `Vcharset_katakana_jisx0201'.
2452 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2454 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2455 (Qisolated): New variable.
2456 (Qinitial): New variable.
2457 (Qmedial): New variable.
2458 (Qfinal): New variable.
2459 (Qvertical): New variable.
2460 (Qsmall): New variable.
2461 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2462 `Qvertical' and `Qsmall'.
2463 (Qmojikyo_pj_[1 .. 21]): New variable.
2464 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2465 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2466 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2469 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2471 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2472 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2473 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2475 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2477 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2478 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2480 (Qjapanese_jisx0208_1990): New variable.
2481 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2482 (complex_vars_of_mule_charset): Add new coded-charset
2483 `japanese-jisx0208-1990'.
2485 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2486 (MIN_CHAR_JIS_X0208_1990): New macro.
2487 (MAX_CHAR_JIS_X0208_1990): New macro.
2489 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2491 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2492 coded-charset is not found.
2494 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2496 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2497 (Fdefine_char): Use `Fmake_char'.
2499 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2501 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2502 (Vcharset_hiragana_jisx0208): Deleted.
2503 (Vcharset_katakana_jisx0208): Deleted.
2504 (Qideograph_daikanwa): New variable.
2505 (Qhiragana_jisx0208): Deleted.
2506 (Qkatakana_jisx0208): Deleted.
2507 (split_builtin_char): Split `ideograph-daikanwa'.
2508 (Fsplit_char): New implementation for UTF-2000.
2509 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2510 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2511 (complex_vars_of_mule_charset): Add new coded-charset
2512 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2513 `katakana-jisx0208'.
2515 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2516 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2517 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2518 (MIN_CHAR_DAIKANWA): New macro.
2519 (MAX_CHAR_DAIKANWA): New macro.
2521 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2523 * data.c (Fstring_to_number): Don't recognize floating point if
2526 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2528 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2530 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2532 * mule-charset.c (Qsquare): New variable.
2533 (to_char_code): Add `Qsquare'.
2534 (syms_of_mule_charset): Add new symbol `square'.
2536 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2538 * mule-charset.c (Qcircle): New variable.
2539 (to_char_code): Add `Qcircle'.
2540 (syms_of_mule_charset): Add new symbol `circle'.
2542 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2544 * mule-charset.c (Qfont): New variable.
2545 (to_char_code): Add `Qfont'.
2546 (syms_of_mule_charset): Add new symbol `font'.
2548 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2550 * mule-charset.c (Qsub): New variable.
2551 (to_char_code): Add `Qsub'.
2552 (syms_of_mule_charset): Add new symbol `sub'.
2554 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2556 * mule-charset.c (Fput_char_attribute): Convert each element of
2557 VALUE to GL position if ATTRIBUTE is a GR-set,
2559 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2561 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2562 coded-charset is a GR-set.
2564 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2566 * mule-charset.c (Fput_char_attribute): Check each element of
2567 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2569 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2571 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2573 (Qethiopic_ucs): New variable in UTF-2000.
2574 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2575 (complex_vars_of_mule_charset): Add new coded-charset
2576 `ethiopic-ucs' in UTF-2000.
2578 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2579 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2581 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2583 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2585 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2587 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2590 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2592 * mule-charset.c (Vcharacter_variant_table): New variable.
2593 (Q_ucs): New variable.
2594 (Fchar_variants): New function.
2595 (Fput_char_attribute): Register `->ucs' value to
2596 `Vcharacter_variant_table'.
2597 (syms_of_mule_charset): Add new function `char-variants' and new
2599 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2601 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2603 * mule-charset.c (get_char_code_table): Allow negative character
2605 (put_char_code_table): Likewise.
2606 (Vcharacter_composition_table): New variable.
2607 (Q_decomposition): New variable.
2608 (Qwide): New variable.
2609 (Qnarrow): New variable.
2610 (Qcompat): New variable.
2611 (QnoBreak): New variable.
2612 (Qsuper): New variable.
2613 (Qfraction): New variable.
2614 (to_char_code): New function.
2615 (Fget_composite_char): New function.
2616 (Fput_char_attribute): Register `->decomposition' value to
2617 `Vcharacter_composition_table'.
2618 (syms_of_mule_charset): Add new function `get-composite-char', new
2619 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2620 `super' and `fraction'.
2621 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2623 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2625 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2626 character; copy the return value.
2628 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2630 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2632 * mule-charset.c (range_charset_code_point): Must use make_int.
2633 (split_builtin_char): New function.
2635 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2637 * mule-charset.c (char_byte_table): Change name from
2638 "char-code-table" to "char-byte-table".
2639 (mark_char_code_table): New function.
2640 (char_code_table_equal): New function.
2641 (char_code_table_hash): New function.
2642 (char_code_table_description): New constant.
2643 (char_code_table): New type.
2644 (make_char_code_table): New function.
2645 (copy_char_code_table): New function.
2646 (get_char_code_table): Modify for `char_code_table' type.
2647 (put_char_code_table): Likewise.
2648 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2651 * char-ucs.h (char_code_table): New type.
2652 (XCHAR_CODE_TABLE): New macro.
2653 (XSETCHAR_CODE_TABLE): New macro.
2654 (CHAR_CODE_TABLE_P): New macro.
2655 (GC_CHAR_CODE_TABLE_P): New macro.
2656 (struct Lisp_Char_Code_Table): New structure.
2658 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2660 * mule-charset.c (Fmake_charset): Setup byte_offset for
2663 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2665 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2668 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2670 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2673 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2675 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2676 charset, it is regarded as a charset.
2677 (put_char_attribute): New function in UTF-2000.
2678 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2679 charset, mapping-table of the charset is modified.
2680 (Fdefine_char): New function in UTF-2000.
2681 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2682 `Fput_char_attribute'.
2683 (syms_of_mule_charset): Add new function `define-char' and new
2684 symbol `ucs' in UTF-2000.
2685 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2687 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2689 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2690 non-UTF-2000 configuration.
2692 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2694 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2695 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2697 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2699 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2700 (Fset_charset_mapping_table): Likewise.
2702 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2703 (CHARSET_ENCODING_TABLE): Delete.
2704 (XCHARSET_ENCODING_TABLE): Delete.
2705 (charset_code_point): New interface.
2707 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2709 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2710 instead of `charset_get_byte1' and `charset_get_byte2'.
2712 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2713 (charset_get_byte2): Deleted.
2715 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2717 * char-ucs.h (SPLIT_CHAR): New inline function.
2718 (breakup_char_1): Use `SPLIT_CHAR'.
2720 * mule-charset.c (range_charset_code_point): New function.
2721 (charset_code_point): New function.
2723 * char-ucs.h (range_charset_code_point): New interface.
2724 (breakup_char_1): Use `range_charset_code_point'.
2726 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2728 * mule-charset.c (Fmake_charset): Delete unused local variable
2731 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2732 (breakup_char_1): Find a charset and code-point in
2733 `Vcharacter_attribute_table'.
2735 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2737 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2740 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2742 * mule-charset.c (Vcharacter_attribute_table): New variable.
2743 (Fchar_attribute_alist): New function.
2744 (Fget_char_attribute): New function.
2745 (Fput_char_attribute): New function.
2746 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2748 (syms_of_mule_charset): Add new function `char-attribute-alist',
2749 `get-char-attribute' and `put-char-attribute'.
2750 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2752 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
2754 * mule-charset.c (Fmake_charset): Just use
2755 `get_unallocated_leading_byte'.
2757 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2758 sets; don't use final-byte based number for private sets.
2760 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2762 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2765 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2767 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2770 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2772 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2773 of `CHAR_LEADING_BYTE' in UTF-2000.
2775 * insdel.c (find_charsets_in_bufbyte_string): Use
2776 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2777 (find_charsets_in_emchar_string): Likewise.
2779 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2780 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2782 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2783 (CHAR_CHARSET_ID): New macro.
2785 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2787 * chartab.c (get_char_table): Don't use type `Charset_ID' for
2788 charset-id - MIN_LEADING_BYTE.
2789 (put_char_table): Likewise.
2791 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2793 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2794 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2795 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2796 (CHARSET_ID_OFFSET): New macro.
2797 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2798 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2799 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2800 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2802 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2804 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2805 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2806 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2807 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2808 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2810 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2812 * mule-charset.c (next_allocated_leading_byte): New variable in
2814 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2815 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2816 (get_unallocated_leading_byte): Simply use
2817 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2818 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2821 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2822 (MAX_LEADING_BYTE_PRIVATE): New macro.
2823 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2824 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2826 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2828 * mule-charset.c (Fmake_charset): Allocate final-byte based
2829 charset-id for 94-set, 96-set and 94x94-set.
2831 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2833 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2835 (Fmake_charset): Likewise.
2836 (complex_vars_of_mule_charset): Modify the font registry of
2837 `ucs-bmp' not to match `Ethiopic-Unicode'.
2839 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2841 * mule-charset.c (complex_vars_of_mule_charset): Add font
2842 registory of `ucs-bmp'.
2844 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2846 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2847 coded-charsets in `default-coded-charset-priority-list' when
2848 breaking up a character.
2850 * mule-charset.c (Vcharset_latin_viscii): New variable.
2851 (Qlatin_viscii): New variable.
2852 (make_charset): Don't use `decoding_table'.
2853 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2855 (Fset_charset_mapping_table): New implementation.
2856 (syms_of_mule_charset): Add new symbol `latin-viscii'.
2857 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2858 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2859 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2860 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2861 charset `latin_viscii'.
2863 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2864 (CHARSET_TYPE_94X94): Change to 1 from 2.
2865 (CHARSET_TYPE_96): Change to 2 from 1.
2866 (CHARSET_TYPE_128): New macro.
2867 (CHARSET_TYPE_128X128): Change to 5 from 4.
2868 (CHARSET_TYPE_256): New macro.
2869 (CHARSET_TYPE_256X256): Change to 7 from 5.
2870 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2872 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2874 * text-coding.c (char_encode_shift_jis): Refer
2875 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2876 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2878 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2879 (char_byte_table_equal): New function in UTF-2000.
2880 (char_byte_table_hash): New function in UTF-2000.
2881 (char_byte_table_description): New constant in UTF-2000.
2882 (char_byte_table): New type in UTF-2000.
2883 (make_char_byte_table): New function in UTF-2000.
2884 (copy_char_byte_table): New function in UTF-2000.
2885 (make_char_code_table): New macro in UTF-2000.
2886 (get_char_code_table): New function in UTF-2000.
2887 (put_char_code_table): New function in UTF-2000.
2888 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2889 (charset_description): Add setting in UTF-2000.
2890 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2891 `CHARSET_TO_BYTE1_TABLE(cs)'.
2892 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2893 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2894 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2895 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2896 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2897 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2898 `CHARSET_TO_BYTE2_TABLE(cs)'.
2900 * char-ucs.h (char_byte_table): New type.
2901 (XCHAR_BYTE_TABLE): New macro.
2902 (XSETCHAR_BYTE_TABLE): New macro.
2903 (CHAR_BYTE_TABLE_P): New macro.
2904 (GC_CHAR_BYTE_TABLE_P): New macro.
2905 (struct Lisp_Char_Byte_Table): New structure.
2906 (get_char_code_table): New interface.
2907 (Emchar_to_byte_table): Deleted.
2908 (get_byte_from_character_table): Deleted.
2909 (struct Lisp_Charset): Add `encoding_table'; delete
2910 `to_byte1_table' and `to_byte2_table'.
2911 (CHARSET_ENCODING_TABLE): New macro.
2912 (CHARSET_TO_BYTE1_TABLE): Deleted.
2913 (CHARSET_TO_BYTE2_TABLE): Deleted.
2914 (XCHARSET_ENCODING_TABLE): New macro.
2915 (XCHARSET_TO_BYTE1_TABLE): Deleted.
2916 (XCHARSET_TO_BYTE2_TABLE): Deleted.
2918 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2920 * mule-charset.c (syms_of_mule_charset): Delete charset alias
2921 `vietnamese-viscii-*'.
2923 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2925 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2926 (Qvietnamese_viscii_upper): New variable.
2927 (Fdefine_charset_alias): New function.
2928 (syms_of_mule_charset): Add new function `define-charset-alias'.
2929 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2930 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2933 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
2935 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2936 (MAX_CHAR_OBS_94x94): New macro.
2937 (breakup_char_1): Support obsolete XEmacs-UCS private code space
2940 * mule-charset.c (put_byte_from_character_table): Change unit size
2942 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2944 (Fmake_reverse_direction_charset): Modify dummy argument of
2945 `make_charset' for non-UTF-2000 environment.
2947 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
2949 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2951 * mule-charset.c (destroy_byte_from_character_table): New macro.
2952 (latin_jisx0201_to_ucs): Deleted.
2953 (latin_iso8859_2_to_ucs): Deleted.
2954 (latin_iso8859_3_to_ucs): Deleted.
2955 (latin_iso8859_4_to_ucs): Deleted.
2956 (latin_iso8859_9_to_ucs): Deleted.
2957 (latin_viscii_lower_to_ucs): Deleted.
2958 (latin_viscii_upper_to_ucs): Deleted.
2959 (mark_charset): Mark `cs->decoding_table'.
2960 (Fcharset_mapping_table): Fix DOC-string.
2961 (Fset_charset_mapping_table): New function.
2962 (syms_of_mule_charset): Add nwe function
2963 `set-charset-mapping-table'.
2964 (complex_vars_of_mule_charset): Don't setup and use
2967 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
2969 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2972 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
2974 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2975 (Vcharset_katakana_jisx0208): New variable.
2976 (Qhiragana_jisx0208): New variable.
2977 (Qkatakana_jisx0208): New variable.
2978 (make_charset): Add new argument `byte_offset'.
2979 (charset_get_byte1): Modify for new coded-charset definition; use
2980 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2981 `XCHARSET_BYTE_OFFSET'.
2982 (Fmake_charset): Modify for `make_charset'.
2983 (Fmake_reverse_direction_charset): Likewise.
2984 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2985 `katakana-jisx0208'.
2986 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2987 `.' in font registry of charset `katakana-jisx0201',
2988 `latin-jisx0201', `vietnamese-viscii-lower' and
2989 `vietnamese-viscii-upper'; modify DOC-string of charset
2990 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2991 registry of charset `japanese-jisx0208' not to use font for JIS
2992 X0208:1990; add new charset `hiragana-jisx0208' and
2993 `katakana-jisx0208'.
2995 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2996 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2997 (struct Lisp_Charset): Add `byte_offset'.
2998 (CHARSET_BYTE_OFFSET): New macro.
2999 (XCHARSET_UCS_MIN): New macro.
3000 (XCHARSET_UCS_MAX): New macro.
3001 (XCHARSET_CODE_OFFSET): New macro.
3002 (XCHARSET_BYTE_OFFSET): New macro.
3003 (MIN_CHAR_HIRAGANA): New macro.
3004 (MAX_CHAR_HIRAGANA): New macro.
3005 (MIN_CHAR_KATAKANA): New macro.
3006 (MAX_CHAR_KATAKANA): New macro.
3007 (MAKE_CHAR): Modify for new coded-charset definition; use
3008 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3009 `XCHARSET_BYTE_OFFSET'.
3011 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3013 * mule-charset.c (CHAR96): Deleted.
3014 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3016 (latin_iso8859_2_to_ucs): Likewise.
3017 (latin_iso8859_3_to_ucs): Likewise.
3018 (latin_iso8859_4_to_ucs): Likewise.
3019 (latin_iso8859_9_to_ucs): Likewise.
3020 (latin_viscii_lower_to_ucs): Likewise.
3021 (latin_viscii_upper_to_ucs): Likewise.
3022 (latin_tcvn5712_to_ucs): Commented out.
3023 (make_charset): Change type of argument `decoding_table' from
3024 <Emchar*> to <Lisp_Object> [vector of characters].
3025 (Fmake_charset): Modify for `make_charset'.
3026 (Fmake_reverse_direction_charset): Likewise.
3027 (Fcharset_mapping_table): New function in UTF-2000.
3028 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3030 (complex_vars_of_mule_charset): Modify for type change of
3031 `*_to_ucs'; modify for `make_charset'.
3033 * char-ucs.h (struct Lisp_Charset): Change type of
3034 `decoding_table' from <Emchar*> to <Lisp_Object>.
3035 (MAKE_CHAR): Modify for new specification of `decoding_table'.
3037 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3039 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3040 error with non-UTF-2000-Mule.
3042 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
3044 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3046 (Vcharset_chinese_cns11643_4): Likewise.
3047 (Vcharset_chinese_cns11643_5): Likewise.
3048 (Vcharset_chinese_cns11643_6): Likewise.
3049 (Vcharset_chinese_cns11643_7): Likewise.
3050 (Qchinese_cns11643_3): Likewise.
3051 (Qchinese_cns11643_4): Likewise.
3052 (Qchinese_cns11643_5): Likewise.
3053 (Qchinese_cns11643_6): Likewise.
3054 (Qchinese_cns11643_7): Likewise.
3055 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3056 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3057 and `chinese-cns11643-7' to lisp/mule/chinese.el.
3058 (complex_vars_of_mule_charset): Likewise.
3060 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3062 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3064 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3065 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3067 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3069 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3071 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3072 (breakup_char_1): Likewise.
3074 * text-coding.c (char_encode_iso2022): Keep designated charsets if
3075 one of them includes the specified character.
3077 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3079 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3081 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3083 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3085 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3087 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3088 definition for non-UTF-2000 Mule.
3089 (latin_iso8859_3_to_ucs): Likewise.
3090 (latin_iso8859_4_to_ucs): Likewise.
3091 (latin_iso8859_9_to_ucs): Likewise.
3092 (latin_jisx0201_to_ucs): Likewise.
3093 (MIN_CHAR_THAI): Likewise.
3094 (MAX_CHAR_THAI): Likewise.
3095 (MIN_CHAR_GREEK): Likewise.
3096 (MAX_CHAR_GREEK): Likewise.
3097 (MIN_CHAR_HEBREW): Likewise.
3098 (MAX_CHAR_HEBREW): Likewise.
3099 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3100 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3101 (MIN_CHAR_CYRILLIC): Likewise.
3102 (MAX_CHAR_CYRILLIC): Likewise.
3104 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3106 * char-ucs.h (breakup_char_1): Use
3107 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3108 thai-tis620 and katakana-jisx0201 area.
3110 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3112 * char-ucs.h (breakup_char_1): Use
3113 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3116 * text-coding.c (reset_encoding_stream): Fixed.
3117 (char_encode_ucs4): Delete `& 255'.
3119 * char-ucs.h (breakup_char_1): Use
3120 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3122 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3124 * file-coding.c (Fmake_coding_system): Don't set up
3125 `codesys->fixed.size'.
3126 (encode_coding_no_conversion): Don't refer
3127 `str->codesys->fixed.size'.
3129 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3131 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3132 (latin_a_char_to_byte1): Deleted.
3133 (latin_a_char_to_byte2): Deleted.
3135 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3137 * mule-charset.c (make_charset): Add new argument `ucs_min',
3138 `ucs_max' and `code_offset'.
3139 (charset_get_byte1): New implementation [delete specific charset
3140 depended implementations].
3141 (Fmake_charset): Modify for `make_charset'.
3142 (Fmake_reverse_direction_charset): Likewise.
3143 (complex_vars_of_mule_charset): Likewise.
3145 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3147 (CHARSET_UCS_MIN): New macro.
3148 (CHARSET_UCS_MAX): New macro.
3149 (CHARSET_CODE_OFFSET): New macro.
3150 (MAKE_CHAR): Delete charset depended definitions [except
3153 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3155 * char-ucs.h (breakup_char_1): Use
3156 `Vdefault_coded_charset_priority_list' for C0-Controls,
3157 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3159 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3161 * char-ucs.h (charset_get_byte1): New function.
3162 (XCHARSET_GET_BYTE1): Deleted.
3163 (charset_get_byte2): New function.
3164 (XCHARSET_GET_BYTE2): Deleted.
3165 (Vdefault_coded_charset_priority_list): New external variable.
3166 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3167 `Vdefault_preferred_coded_charset_list'.
3169 * mule-charset.c (charset_get_byte1): New function.
3170 (charset_get_byte2): New function.
3171 (Vdefault_coded_charset_priority_list): New variable.
3172 (vars_of_mule_charset): Add new variable
3173 `default-coded-charset-priority-list'.
3175 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3177 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3178 (XCHARSET_GET_BYTE2): New inline function.
3179 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3180 `XCHARSET_GET_BYTE2'.
3182 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3184 * mule-charset.c (make_charset): Initialize
3185 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3186 NULL if table is not defined.
3188 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3190 * text-coding.c (char_encode_shift_jis): Use
3191 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3192 `ucs_to_latin_jisx0201'.
3194 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3195 (ucs_to_latin_iso8859_2): Deleted.
3196 (ucs_to_latin_iso8859_3): Deleted.
3197 (ucs_to_latin_iso8859_4): Deleted.
3198 (ucs_to_latin_iso8859_9): Deleted.
3199 (ucs_to_latin_viscii_lower): Deleted.
3200 (ucs_to_latin_viscii_upper): Deleted.
3201 (ucs_to_latin_tcvn5712): Deleted.
3202 (make_charset): Add new argument `decoding_table'; set up
3203 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3204 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3205 `decoding_table' is defined in UTF-2000.
3206 (Fmake_charset): Modify for `make_charset'.
3207 (Fmake_reverse_direction_charset): Likewise.
3208 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3209 and `GENERATE_96_SET'.
3211 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3212 (ucs_to_latin_jisx0201): Deleted.
3213 (latin_iso8859_2_to_ucs): Deleted.
3214 (ucs_to_latin_iso8859_2): Deleted.
3215 (latin_iso8859_3_to_ucs): Deleted.
3216 (ucs_to_latin_iso8859_3): Deleted.
3217 (latin_iso8859_4_to_ucs): Deleted.
3218 (ucs_to_latin_iso8859_4): Deleted.
3219 (latin_iso8859_9_to_ucs): Deleted.
3220 (ucs_to_latin_iso8859_9): Deleted.
3221 (latin_viscii_lower_to_ucs): Deleted.
3222 (ucs_to_latin_viscii_lower): Deleted.
3223 (latin_viscii_upper_to_ucs): Deleted.
3224 (ucs_to_latin_viscii_upper): Deleted.
3225 (struct Lisp_Charset): Renamed `encoding_table' to
3226 `to_byte1_table'; add `to_byte2_table'.
3227 (CHARSET_DECODING_TABLE): New macro.
3228 (CHARSET_TO_BYTE1_TABLE): New macro.
3229 (CHARSET_TO_BYTE2_TABLE): New macro.
3230 (XCHARSET_DECODING_TABLE): New macro.
3231 (XCHARSET_TO_BYTE1_TABLE): New macro.
3232 (XCHARSET_TO_BYTE2_TABLE): New macro.
3233 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3235 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3236 don't use `ucs_to_*' tables.
3238 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3240 * text-coding.c (Fmake_coding_system): Don't set up
3241 `codesys->fixed.size'.
3242 (encode_coding_no_conversion): Use `if' instead of `switch'.
3244 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3246 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3248 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3249 (Fmake_charset): Modify for `make_charset'.
3250 (Fmake_reverse_direction_charset): Likewise.
3251 (complex_vars_of_mule_charset): Likewise.
3253 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3255 * text-coding.c (char_encode_shift_jis): Use table
3256 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3258 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3260 * text-coding.c (text_encode_generic): Use `if' instead of
3262 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3265 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3267 * text-coding.c (encode_coding_sjis): Deleted.
3268 (char_encode_shift_jis): New function.
3269 (char_finish_shift_jis): New function.
3270 (reset_encoding_stream): Set up `encode_char' and `finish' for
3271 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3272 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3273 (char_encode_utf8): Treat `eol_type'.
3275 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3277 * file-coding.c (decode_coding_iso2022): Use
3278 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3280 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3282 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3285 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3287 * char-lb.h (CHAR_COLUMNS): New macro.
3289 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3291 * text-coding.c (char_encode_ucs4): New function.
3292 (char_finish_ucs4): New function.
3293 (encode_coding_ucs4): Deleted.
3294 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3295 (text_encode_generic): Delete local variable `charset' and `half'.
3296 (ucs_to_mule_table): Deleted.
3297 (mule_to_ucs_table): Deleted.
3298 (Fset_ucs_char): Deleted.
3299 (ucs_to_char): Deleted.
3300 (Fucs_char): Deleted.
3301 (Fset_char_ucs): Deleted.
3302 (Fchar_ucs): Deleted.
3303 (decode_ucs4): Deleted.
3304 (mule_char_to_ucs4): Deleted.
3305 (encode_ucs4): Deleted.
3306 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3307 (decode_coding_utf8): Likewise.
3308 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3309 (char_encode_iso2022): Fixed.
3310 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3311 `Fset_char_ucs' and `Fchar_ucs'.
3312 (complex_vars_of_file_coding): Don't initialize
3313 `ucs_to_mule_table'.
3315 * objects-tty.c (tty_initialize_font_instance): Don't use
3318 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3321 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3322 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3324 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3325 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3326 (emchar_string_displayed_columns): Likewise.
3328 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3329 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3330 (string_column_at_point): Likewise.
3331 (Fmove_to_column): Likewise.
3333 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3334 `encoding_table' and `decoding_table'.
3335 (CHARSET_REP_BYTES): Deleted.
3336 (XCHARSET_REP_BYTES): Deleted.
3337 (XCHARSET_COLUMNS): Deleted.
3338 (CHAR_COLUMNS): New macro.
3339 (lookup_composite_char): Deleted unconditionally.
3340 (composite_char_string): Likewise.
3342 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3344 * char-ucs.h (Emchar_to_byte_table): New type.
3345 (get_byte_from_character_table): New function interface.
3346 (Vcharset_latin_jisx0201): New variable.
3347 (latin_jisx0201_to_ucs): New variable.
3348 (ucs_to_latin_jisx0201): New variable.
3349 (Vcharset_latin_iso8859_2): New variable.
3350 (latin_iso8859_2_to_ucs): New variable.
3351 (ucs_to_latin_iso8859_2): New variable.
3352 (Vcharset_latin_iso8859_3): New variable.
3353 (latin_iso8859_3_to_ucs): New variable.
3354 (ucs_to_latin_iso8859_3): New variable.
3355 (Vcharset_latin_iso8859_4): New variable.
3356 (latin_iso8859_4_to_ucs): New variable.
3357 (ucs_to_latin_iso8859_4): New variable.
3358 (Vcharset_latin_iso8859_9): New variable.
3359 (latin_iso8859_9_to_ucs): New variable.
3360 (ucs_to_latin_iso8859_9): New variable.
3361 (Vcharset_latin_viscii_lower): New variable.
3362 (latin_viscii_lower_to_ucs): New variable.
3363 (ucs_to_latin_viscii_lower): New variable.
3364 (Vcharset_latin_viscii_upper): New variable.
3365 (latin_viscii_upper_to_ucs): New variable.
3366 (ucs_to_latin_viscii_upper): New variable.
3367 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3368 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3369 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3370 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3371 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3372 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3373 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3374 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3375 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3376 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3378 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3379 (Vcharset_latin_viscii_upper): New variable.
3380 (make_byte_from_character_table): New function.
3381 (put_byte_from_character_table): New function.
3382 (get_byte_from_character_table): New function.
3383 (CHAR96): New macro.
3384 (ucs_to_latin_jisx0201): New variable.
3385 (latin_jisx0201_to_ucs): New variable.
3386 (ucs_to_latin_iso8859_2): New variable.
3387 (latin_iso8859_2_to_ucs): New variable.
3388 (ucs_to_latin_iso8859_3): New variable.
3389 (latin_iso8859_3_to_ucs): New variable.
3390 (ucs_to_latin_iso8859_4): New variable.
3391 (latin_iso8859_4_to_ucs): New variable.
3392 (ucs_to_latin_iso8859_9): New variable.
3393 (latin_iso8859_9_to_ucs): New variable.
3394 (ucs_to_latin_viscii_lower): New variable.
3395 (latin_viscii_lower_to_ucs): New variable.
3396 (ucs_to_latin_viscii_upper): New variable.
3397 (latin_viscii_upper_to_ucs): New variable.
3398 (ucs_to_latin_tcvn5712): New variable.
3399 (latin_tcvn5712_to_ucs): New variable.
3400 (Qlatin_viscii_lower): New variable.
3401 (Qlatin_viscii_upper): New variable.
3402 (syms_of_mule_charset): Set up new symbol
3403 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3404 (complex_vars_of_mule_charset): Set up new charset
3405 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3406 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3407 `ucs_to_<CHARSET>' tables.
3409 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3411 * text-coding.c: New file.
3413 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3415 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3417 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3418 (MAKE_CHAR): Modify for `ucs-bmp'.
3419 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3420 non-MULE characters of BMP.
3422 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3424 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3427 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3430 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3431 - Include character.h for `CHAR_ASCII_P'.
3433 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3435 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3436 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3438 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3439 (BYTE_C0_P): Likewise.
3440 (BYTE_C1_P): Likewise.
3441 (Lstream_get_emchar_1): Likewise.
3442 (Lstream_fput_emchar): Likewise.
3443 (Lstream_funget_emchar): Likewise.
3444 (copy_internal_to_external): Likewise.
3445 (copy_external_to_internal): Likewise.
3447 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3448 (BYTE_C0_P): Likewise.
3449 (BYTE_C1_P): Likewise.
3450 (Lstream_get_emchar_1): Likewise.
3451 (Lstream_fput_emchar): Likewise.
3452 (Lstream_funget_emchar): Likewise.
3453 (copy_internal_to_external): Likewise.
3454 (copy_external_to_internal): Likewise.
3456 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3457 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3459 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3460 (BYTE_ASCII_P): Moved to mb-1byte.h.
3462 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3464 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3466 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3467 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3468 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3469 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3470 (VALIDATE_CHARPTR_FORWARD): Likewise.
3471 (simple_charptr_emchar): Moved to mb-multibyte.h.
3472 (simple_set_charptr_emchar): Likewise.
3473 (simple_charptr_copy_char): Likewise.
3474 (non_ascii_charptr_emchar): Likewise.
3475 (non_ascii_set_charptr_emchar): Likewise.
3476 (non_ascii_charptr_copy_char): Likewise.
3477 (charptr_emchar): Moved to mb-*byte.h.
3478 (set_charptr_emchar): Likewise.
3479 (charptr_copy_char): Likewise.
3481 * mb-1byte.h, mb-multibyte.h: New files.
3483 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3485 * mb-utf-8.h (MULTIBYTE): New macro.
3486 (MAX_EMCHAR_LEN): Moved from buffer.h.
3487 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3489 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3491 * mb-lb.h, multibyte.h: New files.
3493 * char-1byte.h (Charset_ID): Moved from buffer.h.
3494 (MIN_LEADING_BYTE): Likewise.
3495 (LEADING_BYTE_ASCII): Likewise.
3496 (NUM_LEADING_BYTES): Likewise.
3497 (CHARSETP): Likewise.
3498 (CHARSET_BY_LEADING_BYTE): Likewise.
3499 (XCHARSET_LEADING_BYTE): Likewise.
3500 (XCHARSET_GRAPHIC): Likewise.
3501 (XCHARSET_COLUMNS): Likewise.
3502 (XCHARSET_DIMENSION): Likewise.
3503 (CHAR_CHARSET): Likewise.
3504 (CHAR_LEADING_BYTE): Likewise.
3505 (BREAKUP_CHAR): Likewise.
3506 (Vcharset_ascii): Likewise.
3508 * buffer.h: Include multibyte.h unconditionally.
3509 (VALID_CHARPTR_P): Moved to multibyte.h.
3510 (ASSERT_VALID_CHARPTR): Likewise.
3511 (REAL_INC_CHARPTR): Likewise.
3512 (REAL_INC_CHARBYTIND): Likewise.
3513 (REAL_DEC_CHARPTR): Likewise.
3514 (INC_CHARPTR): Likewise.
3515 (INC_CHARBYTIND): Likewise.
3516 (DEC_CHARPTR): Likewise.
3517 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3518 (VALIDATE_CHARPTR_FORWARD): Likewise.
3519 (charptr_n_addr): Likewise.
3520 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3521 (simple_charptr_emchar): Moved to multibyte.h.
3522 (simple_set_charptr_emchar): Likewise.
3523 (simple_charptr_copy_char): Likewise.
3524 (non_ascii_charptr_emchar): Likewise.
3525 (non_ascii_set_charptr_emchar): Likewise.
3526 (non_ascii_charptr_copy_char): Likewise.
3527 (charptr_emchar): Likewise.
3528 (set_charptr_emchar): Likewise.
3529 (charptr_copy_char): Likewise.
3530 (charptr_emchar_n): Likewise.
3531 (Charset_ID): Moved to char-1byte.h.
3532 (Vcharset_ascii): Likewise.
3533 (CHAR_CHARSET): Likewise.
3534 (CHAR_LEADING_BYTE): Likewise.
3535 (LEADING_BYTE_ASCII): Likewise.
3536 (NUM_LEADING_BYTES): Likewise.
3537 (MIN_LEADING_BYTE): Likewise.
3538 (CHARSETP): Likewise.
3539 (CHARSET_BY_LEADING_BYTE): Likewise.
3540 (XCHARSET_LEADING_BYTE): Likewise.
3541 (XCHARSET_GRAPHIC): Likewise.
3542 (XCHARSET_COLUMNS): Likewise.
3543 (XCHARSET_DIMENSION): Likewise.
3544 (BREAKUP_CHAR): Likewise.
3546 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3548 * character.h: Add document about interface for characters.
3550 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3551 (MAKE_CHAR): Delete comment about
3552 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3553 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3554 (BREAKUP_CHAR): Modify name of arguments.
3555 (CHAR_CHARSET): Modify name of argument.
3557 * buffer.h: Delete document about Emchar accessors.
3559 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3561 * character.h (CHAR_INTP): Moved from buffer.h
3562 (CHAR_OR_CHAR_INTP): Likewise.
3563 (XCHAR_OR_CHAR_INT): Likewise.
3564 (CHECK_CHAR_COERCE_INT): Likewise.
3566 * buffer.h (CHAR_INTP): Moved to character.h
3567 (CHAR_OR_CHAR_INTP): Likewise.
3568 (XCHAR_OR_CHAR_INT): Likewise.
3569 (CHECK_CHAR_COERCE_INT): Likewise.
3571 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3574 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3575 - Include char-1byte.h, char-lb.h or char-ucs.h.
3577 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3579 * buffer.h: Include character unconditionally.
3580 (valid_char_p): Moved to char-*.h.
3581 (non_ascii_valid_char_p): Moved to char-lb.h.
3583 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3585 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3587 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3588 in UTF-2000 because it is not ported yet and not to use
3589 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3590 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3591 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3593 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3594 (CHAR_ASCII_P): Moved from character.h.
3596 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3597 (CHAR_ASCII_P): Likewise.
3598 (CHAR_FIELD1_MASK): Deleted.
3599 (CHAR_FIELD2_MASK): Deleted.
3600 (CHAR_FIELD3_MASK): Deleted.
3601 (MAX_CHAR_BASIC_LATIN): New macro.
3602 (CHAR_FIELD1): Deleted.
3603 (CHAR_FIELD2_INTERNAL): Deleted.
3604 (CHAR_FIELD3_INTERNAL): Deleted.
3605 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3606 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3607 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3608 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3609 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3610 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3611 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3612 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3613 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3614 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3615 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3616 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3617 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3618 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3619 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3620 (MIN_CHAR_COMPOSITION): Deleted.
3621 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3622 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3624 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
3626 * buffer.h: Include mb-utf-8.h in UTF-2000.
3628 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3630 * mb-utf-8.h: New file.
3632 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
3634 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3637 * mule-charset.h, buffer.h (Charset_ID): New type.
3639 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3641 * mule-canna.c (c2mu): Use `MAKE_CHAR',
3642 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3643 instead of `MULE_CHAR_PRIVATE_OFFSET',
3644 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3645 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3646 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3648 * character.h (Vcharset_japanese_jisx0212): New variable
3651 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3653 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3654 (charset_by_attributes): Delete array about direction.
3655 (latin_a_char_to_charset): New variable in UTF-2000.
3656 (latin_a_char_to_byte1): New variable in UTF-2000.
3657 (latin_a_char_to_byte2): New variable in UTF-2000.
3658 (Qucs_bmp): New variable.
3659 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3661 (next_allocated_2_byte_leading_byte): Likewise.
3662 (non_ascii_set_charptr_emchar): Likewise.
3663 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3664 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3665 `charset_by_attributes'.
3666 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3667 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3668 and `CHARSET_BY_LEADING_BYTE'.
3669 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3670 `utf-2000-version' to `vars_of_mule_charset'.
3671 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3672 define `leading-code-private-11' in UTF-2000; move setting of
3673 `utf-2000-version' from `syms_of_mule_charset'.
3674 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3677 * character.h (Charset_ID): New type.
3678 (LEADING_BYTE_UCS_BMP): New macro.
3679 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3680 (CHARSET_ID_OFFSET_94): New macro.
3681 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3682 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3683 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3685 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3686 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3687 (CHARSET_ID_OFFSET_96): New macro.
3688 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3689 CHARSET_ID_OFFSET_96 and final-byte.
3690 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3691 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3692 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3693 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3694 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3695 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3696 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3697 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3698 (LEADING_BYTE_THAI_TIS620): Likewise.
3699 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3700 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3701 (CHARSET_ID_OFFSET_94x94): New macro.
3702 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3703 CHARSET_ID_OFFSET_94x94 and final-byte.
3704 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3705 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3706 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3707 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3708 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3709 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3710 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3711 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3712 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3713 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3714 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3715 (CHARSET_TYPE_128X128): New macro.
3716 (CHARSET_TYPE_256X256): New macro.
3717 (XCHARSET_PRIVATE_P): Delete unconditionally.
3718 (charset_by_attributes): Delete array about direction.
3719 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3720 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3721 (MIN_CHAR_94): New macro.
3722 (MAX_CHAR_94): New macro.
3723 (MIN_CHAR_96): New macro.
3724 (MAX_CHAR_96): New macro.
3725 (MIN_CHAR_94x94): New macro.
3726 (MAX_CHAR_94x94): New macro.
3727 (MIN_CHAR_96x96): New macro.
3728 (MAX_CHAR_96x96): New macro.
3729 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3730 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3731 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3733 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3734 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3735 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3736 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3737 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3738 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3739 `XCHARSET_LEADING_BYTE' to make code-point.
3740 (latin_a_char_to_charset): New variable.
3741 (latin_a_char_to_byte1): New variable.
3742 (latin_a_char_to_byte2): New variable.
3743 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3744 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3745 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3747 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3748 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3749 (find_charsets_in_emchar_string): Likewise.
3750 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3752 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3754 (decode_coding_iso2022): Likewise.
3756 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3759 * redisplay.c (redisplay_text_width_emchar_string): Use
3760 `Charset_ID' instead of `unsigned char'.
3761 (redisplay_frame_text_width_string): Likewise.
3763 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3766 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3767 instead of `unsigned char'.
3768 (face_cachel_charset_font_metric_info): Likewise.
3770 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3771 (get_non_ascii_char_table_value): Likewise.
3772 (get_char_table): Likewise.
3773 (put_char_table): Likewise.
3774 (map_over_other_charset): Likewise.
3775 (map_char_table): Likewise.
3777 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3778 instead of `unsigned char'.
3780 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
3782 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3783 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3785 * mule-charset.c (leading_code_private_11): Don't define in
3788 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3789 in UTF-2000 because it is not ported yet and not to use
3790 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3792 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
3794 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3796 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3798 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3801 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3802 of unsigned char to store leading-byte.
3804 * chartab.c (get_non_ascii_char_table_value): Don't use
3805 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3807 * file-coding.c (encode_coding_big5): Delete bogus implementation
3810 * character.h (LEADING_BYTE_*): Delete definition for
3812 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3813 (LEADING_BYTE_PREFIX_P): Deleted.
3814 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3815 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3816 (BUFBYTE_LEADING_BYTE_P): Deleted.
3817 (CHARSET_PRIVATE_P): Deleted unconditionally.
3818 (rep_bytes_by_first_byte): Deleted unconditionally.
3819 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3820 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3821 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3822 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3823 (CHAR_FIELD2): Deleted.
3824 (CHAR_FIELD3): Deleted.
3825 (MAKE_CHAR): Delete definition for non-UTF-2000.
3826 (BREAKUP_CHAR_1_UNSAFE): Deleted.
3827 (breakup_char_1): New implementation.
3828 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3829 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3831 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3833 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3836 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3838 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3839 (CHARSET_PRIVATE_P): Likewise.
3840 (XCHARSET_PRIVATE_P): Likewise.
3841 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3843 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3845 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3847 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3849 * character.h (LEADING_BYTE_*): Changed in UTF2000.
3850 (NUM_LEADING_BYTES): Changed from 128 to 256.
3851 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3852 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3854 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3856 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3858 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3859 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3860 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3861 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3862 (Qchinese_cns11643_3): New variable in UTF2000.
3863 (Qchinese_cns11643_4): New variable in UTF2000.
3864 (Qchinese_cns11643_5): New variable in UTF2000.
3865 (Qchinese_cns11643_6): New variable in UTF2000.
3866 (Qchinese_cns11643_7): New variable in UTF2000.
3867 (syms_of_mule_charset): Define `chinese-cns11643-3',
3868 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3869 and `chinese-cns11643-7' in UTF2000.
3870 (vars_of_mule_charset): Initialize
3871 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3873 (complex_vars_of_mule_charset): Setup charset
3874 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3875 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3877 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3879 * mule-charset.c: Move setting for `leading-code-private-11' from
3880 `syms_of_mule_charset' to `vars_of_mule_charset'.
3882 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3884 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3885 and `NUM_LEADING_BYTES' in assert.
3887 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3889 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3891 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3892 `NUM_LEADING_BYTES' instead of 128.
3894 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3896 * mule-charset.h (charset_by_leading_byte): Use
3897 `NUM_LEADING_BYTES' instead of 128.
3898 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3900 * mule-charset.c (charset_by_leading_byte): Use
3901 `NUM_LEADING_BYTES' instead of 128.
3902 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3904 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3907 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3909 * mule-charset.c (syms_of_mule_charset): Update to
3912 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3914 * file-coding.c (encode_coding_sjis): New implementation for
3915 UTF2000. (decode_coding_sjis): Ditto.
3917 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3919 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3920 Don't define in UTF2000.
3922 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3925 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3926 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3929 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3931 * config.h.in (CHAR_IS_UCS4): New macro.
3933 * mule-charset.c (rep_bytes_by_first_byte): Modify for
3934 conventional MULE representation.
3935 (syms_of_mule_charset): Update to 0.3 (Imamiya).
3937 * mule-charset.h: Reverted to original.
3939 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3940 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3941 "mule-charset.h" if CHAR_IS_UCS4 is defined.
3943 * character.h: New file.
3945 * file-coding.c (Fmake_coding_system): Set 1 to
3946 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3948 (encode_coding_no_conversion): New implementation for UTF2000.
3950 * file-coding.h (struct Lisp_Coding_System): Add new member
3953 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
3955 * file-coding.c (decode_coding_iso2022): Code-point arguments of
3956 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3957 (encode_coding_iso2022): New implementation for UTF2000.
3959 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3961 * mule-canna.c (c2mu): New implementation for UTF2000.
3964 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3966 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3968 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3970 * file-coding.c (reset_encoding_stream): Set 0 to
3971 `str->iso2022.current_char_boundary' in UTF2000.
3972 (encode_utf8): Don't define in UTF2000.
3973 (encode_coding_utf8): New implementation for UTF-8 representation
3975 (complex_vars_of_file_coding): Define coding-system `utf-8'.
3977 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3979 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3981 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3983 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3985 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3987 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3988 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3989 as UTF-8 in UTF2000.
3990 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3991 (non_ascii_valid_char_p): Don't define in UTF2000.
3992 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3993 (Lstream_get_emchar_1): Likewise.
3994 (utf-2000-version): New variable in UTF2000.
3996 * lread.c (read_escape): Add new reader `u'.
3998 * insdel.c (three_to_one_table): Don't define in UTF2000.
3999 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4000 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4002 (bytind_to_bufpos_func): Likewise.
4003 (buffer_mule_signal_inserted_region): Likewise.
4004 (vars_of_insdel): Don't initialize `three_to_one_table'.
4005 (init_buffer_text): Use `buf->text->mule_size' instead of
4006 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4009 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4010 UTF-8 representation in UTF2000.
4011 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4012 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4013 (decode_coding_iso2022): Don't define local variable `lb' in
4014 UTF2000; don't use LEADING_BYTE in UTF2000; use
4015 `DECODE_ADD_UCS_CHAR' in UTF2000.
4016 (convert_to_external_format): Decode as UTF-8 in UTF2000.
4018 * config.h.in (UTF2000): New macro.
4020 * buffer.h (struct buffer_text): Add new member `mule_size' and
4021 don't add `mule_shifter' and `mule_three_p' in UTF2000.
4022 (valid_char_p): Return always 1 in UTF2000.
4023 (MAX_EMCHAR_LEN): 6 in UTF2000.
4024 (three_to_one_table): Don't define in UTF2000.
4025 (real_bufpos_to_bytind): Modify for UTF-8 representation in
4027 (real_bytind_to_bufpos): Likewise.
4029 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4031 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4033 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4034 representation change.
4035 (Vutf_2000_version): New variable.
4036 (leading_code_private_11): New variable.
4037 (syms_of_mule_charset): Add new variables `utf-2000-version' and
4038 `leading-code-private-11'.
4040 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4041 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4042 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4043 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4044 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4045 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4046 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4047 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4048 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4049 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4050 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4051 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4052 (MIN_CHAR_GREEK): New macro.
4053 (MAX_CHAR_GREEK): New macro.
4054 (MIN_CHAR_CYRILLIC): New macro.
4055 (MAX_CHAR_CYRILLIC): New macro.
4056 (MIN_CHAR_HEBREW): New macro.
4057 (MAX_CHAR_HEBREW): New macro.
4058 (MIN_CHAR_THAI): New macro.
4059 (MAX_CHAR_THAI): New macro.
4060 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4061 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4062 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4063 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4064 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4065 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4066 (CHAR_FIELD2): New inline function.
4067 (CHAR_FIELD3): New inline function.
4068 (MULE_CHAR_PRIVATE_OFFSET): New macro.
4069 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4070 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4071 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4072 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4073 (MIN_CHAR_COMPOSITION): Likewise.
4074 (CHAR_LEADING_BYTE): Modified for character representation change.
4075 (MAKE_CHAR): Likewise.
4077 * lisp.h (Vcharset_latin_iso8859_1): New variable.
4078 (Vcharset_greek_iso8859_7): Likewise.
4079 (Vcharset_cyrillic_iso8859_5): Likewise.
4080 (Vcharset_hebrew_iso8859_8): Likewise.
4081 (Vcharset_thai_tis620): Likewise.
4082 (Vcharset_katakana_jisx0201): Likewise.
4084 2001-02-08 Martin Buchholz <martin@xemacs.org>
4086 * XEmacs 21.2.44 "Thalia" is released.
4088 2001-02-06 Martin Buchholz <martin@xemacs.org>
4090 Fixes crashes in kill-emacs on some systems.
4091 * process-unix.c (unix_kill_child_process):
4092 It's OK for kill() to fail with ESRCH.
4094 2001-02-07 Martin Buchholz <martin@xemacs.org>
4096 Contortions to make .gdbinit tricks work on most systems.
4097 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4098 * alloc.c (dbg_valmask): Make non-const.
4099 * alloc.c (dbg_typemask): Make non-const.
4100 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4101 * alloc.c (dbg_valbits): Make non-const.
4102 * alloc.c (dbg_gctypebits): Make non-const.
4103 * .gdbinit (decode_object): Make it work with AIX cc.
4105 2001-02-06 Martin Buchholz <martin@xemacs.org>
4107 * elhash.c (make_general_lisp_hash_table):
4108 Use simpler and more efficient calloc to clear entries.
4110 2001-02-07 Martin Buchholz <martin@xemacs.org>
4112 * window.c (window_scroll): Work around an AIX C compiler bug.
4113 Fixes 'scroll-up' does nothing problem with xlC.
4115 2001-02-05 Martin Buchholz <martin@xemacs.org>
4117 * .gdbinit: Remove obsolete comment.
4119 2001-01-31 Mike Alexander <mta@arbortext.com>
4121 * select.c (Fown_selection_internal): Set owned_p for device
4124 2001-02-01 Martin Buchholz <martin@xemacs.org>
4127 "not" cannot be used as a macro name as it is an operator in C++
4128 * config.h.in: Stop #defining `not'.
4129 * chartab.c (check_category_char): not ==> not_p
4130 * chartab.h: Likewise.
4131 * regex.c (re_match_2_internal): Likewise.
4133 2001-02-02 Martin Buchholz <martin@xemacs.org>
4135 * lisp-disunion.h: Fix up comments.
4137 2001-01-31 Martin Buchholz <martin@xemacs.org>
4139 * keymap.c (define_key_check_and_coerce_keysym):
4141 Support mouse-6 and mouse-7 bindings in the obvious way.
4143 2001-02-01 Martin Buchholz <martin@xemacs.org>
4145 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4147 2001-01-30 Martin Buchholz <martin@xemacs.org>
4149 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4150 Previous patch missed DEFVAR_INT_MAGIC.
4151 Make sure future DEFVAR_foo use correct types.
4152 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4153 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4154 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4155 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4156 * (DEFVAR_INT): Likewise.
4157 * redisplay.c (vertical_clip): Should be of type Fixnum.
4158 * redisplay.c (horizontal_clip): Likewise.
4159 * lisp.h (dump_add_opaque_int): New.
4160 (dump_add_opaque_fixnum): New.
4162 2001-01-29 Andy Piper <andy@xemacs.org>
4164 * glyphs-widget.c (check_valid_int_or_function): allow symbols
4165 since they can be eval'ed
4167 2001-01-29 Martin Buchholz <martin@xemacs.org>
4169 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4170 Oops, XEmacs redefines `class'. Use `typename' instead.
4172 2001-01-28 Martin Buchholz <martin@xemacs.org>
4174 * dumper.c: Fix C++ compile errors.
4176 2001-01-29 Martin Buchholz <martin@xemacs.org>
4178 * tparam.c: Use correct prototypes.
4180 2001-01-28 Martin Buchholz <martin@xemacs.org>
4182 * sysproc.h: #include util.h for NetBSD's openpty.
4184 2001-01-27 Martin Buchholz <martin@xemacs.org>
4186 More 64-bit correctness.
4187 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4188 Use a typedef `fixnum' for the type used for DEFVAR_INT.
4190 This finally finishes the 64-bit SGI port.
4191 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4192 * symbols.c: Fix up comments and type casts.
4193 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4194 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4195 * symeval.h (Fixnum): New type.
4196 * symeval.h (symbol_value_type): Fix up comment.
4212 * mule-canna.c: A million DEFVAR_INTs here...
4213 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4226 s/int/Fixnum/g in DEFVAR_INT declarations.
4228 2001-01-26 Martin Buchholz <martin@xemacs.org>
4230 Port pdump to SGI alignment-sensitive environment.
4231 Lisp Object sizeof methods now return aligned sizes. Rely on that.
4232 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4234 Define and use aligned reading and writing macros.
4235 Use buffered stdio instead of posix i/o for faster dumping.
4236 Eliminate kludgy 256 byte space for header.
4237 Read and write from dump file using structs for alignment safety.
4238 * dumper.c (pdump_align_stream): New.
4239 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4240 * dumper.c (PDUMP_READ_ALIGNED): New.
4241 * dumper.c (PDUMP_WRITE_ALIGNED): New.
4242 * dumper.c (pdump_static_Lisp_Object): New struct.
4243 * dumper.c (pdump_static_pointer): New struct.
4244 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4245 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4246 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4247 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4249 * dumper.c (pdump_backtrace):
4250 * dumper.c (pdump_get_indirect_count):
4251 * dumper.c (pdump_register_object):
4252 * dumper.c (pdump_register_struct):
4253 * dumper.c (pdump_reloc_one):
4254 * dumper.c (pdump_scan_by_alignment):
4255 * dumper.c (pdump_dump_from_root_struct_ptrs):
4256 * dumper.c (pdump_dump_opaques):
4257 * dumper.c (pdump_dump_rtables):
4258 * dumper.c (pdump_dump_from_root_objects):
4260 * dumper.c (pdump_load_finish):
4261 Use aligned reading and writing.
4263 * dumper.c (pdump_free): Make static.
4264 * dumper.c (pdump_hFile): Likewise.
4265 * dumper.c (pdump_hMap): Likewise.
4267 2001-01-26 Martin Buchholz <martin@xemacs.org>
4269 * XEmacs 21.2.43 "Terspichore" is released.
4271 2001-01-25 Martin Buchholz <martin@xemacs.org>
4273 Type fiddling for window_config.saved_windows_count
4274 * window.c (struct window_config):
4275 Make saved_windows_count member unsigned.
4276 * window.c (sizeof_window_config_for_n_windows):
4277 Make parameter unsigned.
4278 * window.c (mark_window_config):
4279 * window.c (window_config_equal):
4280 * window.c (free_window_configuration):
4281 * window.c (Fset_window_configuration):
4282 * window.c (count_windows):
4283 * window.c (Fcurrent_window_configuration):
4284 * window.c (reinit_vars_of_window):
4285 Update all callers and users.
4287 2001-01-25 Martin Buchholz <martin@xemacs.org>
4289 Alignment correctness for flexible arrays.
4290 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4291 Make alignment-correct. Add interesting comments.
4292 * alloc.c (size_vector):
4293 * alloc.c (make_vector_internal):
4294 * alloc.c (make_bit_vector_internal):
4295 * alloc.c (sweep_bit_vectors_1):
4296 * fns.c (size_bit_vector):
4297 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4298 * window.c (sizeof_window_config_for_n_windows):
4299 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4301 2001-01-24 Martin Buchholz <martin@xemacs.org>
4303 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4305 2001-01-23 Andy Piper <andy@xemacs.org>
4307 * select.c (Fown_selection_internal): pass owned_p
4309 * select-msw.c (mswindows_own_selection): New Signature.
4311 * console.h (struct console_methods): add owned_p to
4314 * select-x.c (x_own_selection): pass owned_p
4315 (hack_motif_clipboard_selection): use owned_p
4316 (vars_of_select_x): new variable -
4317 x_selection_strict_motif_ownership.
4319 2001-01-23 Martin Buchholz <martin@xemacs.org>
4321 * specifier.h (specifier_data_offset): Remove pointless parens.
4322 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4324 2001-01-24 Martin Buchholz <martin@xemacs.org>
4326 Make Lisp_Object sizeof methods be alignment-correct.
4327 pdump must restore objects to the same alignment as the C compiler
4328 assumes. It really matters on SGIs.
4329 * lstream.c (aligned_sizeof_lstream): New.
4330 (sizeof_lstream): Use aligned_sizeof_lstream.
4331 (Lstream_new): Likewise.
4332 * opaque.c (aligned_sizeof_opaque): New.
4333 (sizeof_opaque): Use aligned_sizeof_opaque.
4334 (make_opaque): Likewise.
4335 * specifier.c (aligned_sizeof_specifier): New.
4336 (sizeof_specifier): Use aligned_sizeof_specifier.
4337 (make_specifier_internal): Likewise.
4339 2001-01-23 Martin Buchholz <martin@xemacs.org>
4341 * lstream.h (struct lstream): Use max_align_t for trailing data.
4342 * specifier.h (struct Lisp_Specifier): Likewise.
4344 2001-01-22 Martin Buchholz <martin@xemacs.org>
4346 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4347 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4348 (CCL_SUSPEND): Likewise.
4349 (CCL_INVALID_CMD): Likewise.
4350 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4351 (ccl_driver): Likewise.
4352 (CCL_WRITE_CHAR): Macro hygiene.
4353 (CCL_WRITE_STRING): Macro hygiene.
4355 2001-01-22 Martin Buchholz <martin@xemacs.org>
4357 Port "portable" dumper to SunOS 4 and HP-UX.
4358 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4359 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4360 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4362 2001-01-22 Martin Buchholz <martin@xemacs.org>
4364 * lisp.h (ALIGNOF): A better definition for C++.
4366 2001-01-20 Martin Buchholz <martin@xemacs.org>
4369 Fix printf warnings: int format, long int arg.
4370 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4371 (PUSH_FAILURE_POINT): Use correct printf formats.
4372 (POP_FAILURE_POINT): Use correct printf formats.
4373 Use do {...} while (0)
4375 2001-01-20 Martin Buchholz <martin@xemacs.org>
4377 * XEmacs 21.2.42 "Poseidon" is released.
4379 2001-01-20 Martin Buchholz <martin@xemacs.org>
4381 * console-x.h: typo fix du jour. Remove #if 0'ed code.
4383 2001-01-19 Martin Buchholz <martin@xemacs.org>
4385 De-kludgify FIXED_TYPE free list frobbing.
4386 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4387 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4388 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4389 * alloc.c (Lisp_Free): New pseudo lisp object definition.
4390 * alloc.c (LRECORD_FREE_P): New.
4391 * alloc.c (MARK_LRECORD_AS_FREE): New.
4392 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4393 * alloc.c (STRUCT_FREE_P): Deleted.
4394 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4395 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4396 * alloc.c (STRING_CHARS_FREE_P): New.
4397 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4398 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4399 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4400 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4401 * alloc.c (resize_string): Use new definitions.
4402 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4403 * alloc.c (verify_string_chars_integrity): Use new definitions.
4404 * alloc.c (compact_string_chars): Use new definitions.
4405 * alloc.c: Update monster comments.
4406 * lrecord.h (lrecord_type): Add some new lrecord types for
4409 2001-01-18 Martin Buchholz <martin@xemacs.org>
4411 Improve alignment hackery.
4412 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4413 (max_align_t): Moved from opaque.h - general purpose.
4414 (ALIGN_PTR): Use size_t, not long.
4415 * opaque.h (max_align_t): Move to lisp.h.
4417 2001-01-18 Norbert Koch <nk@LF.net>
4419 * gui.h: Fix and add prototypes to fix build problems.
4421 2001-01-18 Martin Buchholz <martin@xemacs.org>
4423 temacs is going away, so `dump-temacs' is now a bad name.
4424 * .dbxrc (dump-temacs): Rename to `dmp'.
4425 * .gdbinit (dump-temacs): Rename to `dmp'.
4427 2001-01-17 Andy Piper <andy@xemacs.org>
4429 * glyphs.c (print_image_instance): comment to make martin happy.
4431 * glyphs-x.c (x_redisplay_widget): update faces after a frame
4434 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4436 (mswindows_tab_control_redisplay): warning suppression.
4438 * glyphs-widget.c (widget_update): re-write to cope with updated
4440 (widget_instantiate): use new gui_item functions.
4441 (tab_control_update): deleted.
4442 (progress_gauge_update): deleted.
4443 (image_instantiator_progress_guage): take out update reference.
4444 (image_instantiator_tree_view): ditto.
4445 (image_instantiator_tab_control): ditto.
4447 * gui.c (widget_gui_parse_item_keywords): new function. Do things
4449 (gui_item_add_keyval_pair): re-write to cope with descriptors and
4450 return whether anything was changed.
4451 (update_gui_item_keywords): as it sounds.
4453 * gui.h: declare widget_gui_parse_item_keywords.
4455 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4456 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4458 2001-01-17 Martin Buchholz <martin@xemacs.org>
4460 * XEmacs 21.2.41 "Polyhymnia" is released.
4462 2001-01-16 Didier Verna <didier@xemacs.org>
4464 * glyphs.c (image_instantiate): don't use fallbacks when
4465 instantiating a face's background pixmap by inheritance.
4467 2001-01-14 Mike Sperber <mike@xemacs.org>
4469 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4470 Conditionalize accordingly.
4472 2001-01-16 Martin Buchholz <martin@xemacs.org>
4474 * dumper.c (pdump_file_get): Fix a compiler warning.
4476 2001-01-15 Martin Buchholz <martin@xemacs.org>
4478 Make Purify happy when pdumping.
4479 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4480 iniitalizing all bits of new lisp object memory.
4481 * symbols.c (Fmake_local_variable): Likewise.
4482 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4483 * symbols.c (Fdefvaralias): Likewise.
4484 * mule-charset.c (vars_of_mule_charset): Likewise.
4486 2001-01-15 Martin Buchholz <martin@xemacs.org>
4487 Add the `-nd' flag when running pre-dump operations under the debugger.
4488 * .dbxrc (run-temacs): Add `-nd'.
4489 * .dbxrc (update-elc): Likewise.
4490 * .dbxrc (dump-temacs): Likewise.
4491 * .gdbinit (run-temacs): Likewise.
4492 * .gdbinit (check-temacs): Likewise.
4493 * .gdbinit (update-elc): Likewise.
4494 * .gdbinit (dump-temacs): Likewise.
4496 2001-01-14 Martin Buchholz <martin@xemacs.org>
4498 Allow building 64-bit executables on AIX with GNU malloc, e.g.
4499 export OBJECT_MODE=64
4500 configure --pdump --use-union-type=no
4501 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4502 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4504 * miscplay.c (sndcnv8U_2mono):
4505 Avoid two uses of `++' in the same expression.
4506 Suppresses a GCC warning.
4508 2001-01-13 Martin Buchholz <martin@xemacs.org>
4510 Make sure future compilers don't miscompile alloc.c.
4512 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4513 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4515 2001-01-12 Martin Buchholz <martin@xemacs.org>
4517 * dumper.c: A little post-pdump-rename comment fixup.
4519 2001-01-09 Jerry James <james@eecs.ku.edu>
4521 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4523 2001-01-13 Martin Buchholz <martin@xemacs.org>
4525 * *.[ch]: Globally rename symbols using the following `pdump-rename'
4529 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4532 replace_symbol pdump_wire_lists pdump_weak_object_chains
4533 replace_symbol pdump_wire_list dump_add_weak_object_chain
4535 replace_symbol pdump_wires pdump_root_objects
4536 replace_symbol pdump_wire dump_add_root_object
4538 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4539 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4541 replace_symbol dumpstructinfos pdump_root_struct_ptrs
4542 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4543 replace_symbol dumpstructinfo pdump_root_struct_ptr
4544 replace_symbol dumpstruct dump_add_root_struct_ptr
4546 replace_symbol dumpopaque dump_add_opaque
4547 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4548 replace_symbol dumpopaqueinfos pdump_opaques
4549 replace_symbol dumpopaqueinfo pdump_opaque
4551 replace_symbol nb_structdump nb_root_struct_ptrs
4552 replace_symbol nb_opaquedump nb_opaques
4554 replace_symbol align_table pdump_align_table
4555 replace_symbol dump_header pdump_header
4557 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4558 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4561 2001-01-12 Martin Buchholz <martin@xemacs.org>
4563 * s/aix4.h: Keep the C for AIX compiler from overaggressively
4564 optimizing bytecount_to_charcount().
4566 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4569 (HAVE_DLFCN_H): Removed.
4570 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4572 2001-01-06 Martin Buchholz <martin@xemacs.org>
4574 Portable dumper maintainability improvements.
4575 * alloc.c (staticpro):
4576 * alloc.c (staticpro_nodump):
4577 * alloc.c (garbage_collect_1):
4578 * alloc.c (reinit_alloc_once_early):
4579 * alloc.c (init_alloc_once_early):
4580 * alloc.c: Move dumper functions to alloc.c.
4581 * dumper.c (pdump_backtrace):
4582 * dumper.c (pdump_dump_structs):
4583 * dumper.c (pdump_dump_opaques):
4584 * dumper.c (pdump_dump_rtables):
4585 * dumper.c (pdump_dump_wired):
4587 * dumper.c (pdump_load_check):
4588 * dumper.c (pdump_load_finish):
4589 * dumper.c (pdump_file_unmap):
4590 * dumper.c (pdump_file_get):
4591 * dumper.c (pdump_resource_free):
4592 * dumper.c (pdump_resource_get):
4593 * dumper.c (pdump_file_free):
4594 * dumper.c (pdump_file_try):
4595 * dumper.c (pdump_load):
4596 Remove fixed size limits on staticpro(), staticpro_nodump(),
4597 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4598 Remove custom code for dumping lrecord_implementations_table - use
4600 Remove (most of the) custom code for dumping staticpros - dump it
4601 like any other dynarr.
4603 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
4604 * dumper.c: Moved functions from alloc.c.
4605 * alloc.c (dumpstruct): Moved to dumper.c.
4606 * alloc.c (dumpopaque): Likewise.
4607 * alloc.c (pdump_wire): Likewise.
4608 * alloc.c (pdump_wire_list): Likewise.
4610 * lisp.h (Dynarr_sizeof): New.
4611 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
4612 * lisp.h (Dynarr_end): New. Very slightly C++oid.
4613 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
4615 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4616 * lisp.h (dumpopaque): ditto.
4617 * lisp.h (pdump_wire): ditto.
4618 * lisp.h (pdump_wire_list): ditto.
4620 2001-01-09 Martin Buchholz <martin@xemacs.org>
4622 * make-src-depend (PrintPatternDeps):
4623 Use `sort' to make output independent of perl version.
4625 2001-01-08 Martin Buchholz <martin@xemacs.org>
4628 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4629 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4631 2001-01-03 Didier Verna <didier@xemacs.org>
4633 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4634 that `focus_frame' is alive before thinking of calling
4635 `redisplay_redraw_cursor' on it.
4637 2001-01-08 Martin Buchholz <martin@xemacs.org>
4639 * XEmacs 21.2.40 is released.
4641 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4643 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4645 2001-01-06 Martin Buchholz <martin@xemacs.org>
4647 * alloc.c (dbg_valmask): Make const.
4648 * alloc.c (dbg_typemask): Make const.
4649 * alloc.c (dbg_USE_UNION_TYPE): Make const.
4650 * alloc.c (dbg_valbits): Make const.
4651 * alloc.c (dbg_gctypebits): Make const.
4653 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
4655 * redisplay-x.c (x_bevel_area):
4656 redisplay.h (struct rune):
4657 Typo fixes in comments.
4659 2001-01-05 Andy Piper <andy@xemacs.org>
4661 * glyphs-x.c (x_redisplay_widget): use size changed for offset
4664 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4666 2001-01-05 Martin Buchholz <martin@xemacs.org>
4668 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4670 * mule-ccl.c (stack_idx_of_map_multiple):
4671 Non const global data must not be initialized!
4672 Found by MIYASHITA Hisashi.
4674 2001-01-02 Andy Piper <andy@xemacs.org>
4676 * frame.c (change_frame_size): make sure frame size is always
4679 * glyphs.c (image_instance_layout): minor code reuse.
4681 * window.c (Fcurrent_window_configuration): revert previous
4684 2001-01-02 Martin Buchholz <martin@xemacs.org>
4687 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4689 2000-12-31 Andy Piper <andy@xemacs.org>
4691 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4692 when widget gets unmapped.
4694 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4695 function. Make sure widgets losing focus don't just drop it.
4696 (handle_focus_event_1): record the widget with focus.
4698 2000-12-31 Andy Piper <andy@xemacs.org>
4700 * window.c (allocate_window): use
4701 make_image_instance_cache_hash_table.
4702 (make_dummy_parent): ditto.
4703 (Fset_window_configuration): ditto.
4705 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
4707 * glyphs.c (process_image_string_instantiator): use
4709 (get_image_instantiator_governing_domain): ditto.
4710 (normalize_image_instantiator): ditto.
4711 (instantiate_image_instantiator): ditto.
4712 (make_image_instance_1): ditto.
4713 (image_instantiate): ditto. Key on glyph *and* instantiator type.
4714 (instantiator_eq_equal): new function for use with instance hash
4716 (instantiator_eq_hash): ditto.
4717 (make_image_instance_cache_hash_table): create a suitable hash
4718 table for storing image instances.
4720 * elhash.h (hash_table_weakness): new internal weakness type
4721 HASH_TABLE_KEY_CAR_VALUE_WEAK.
4722 declare new functions.
4724 * elhash.c (finish_marking_weak_hash_tables): introduce yet
4725 another weakness type for glyphs.
4726 (make_standard_lisp_hash_table): new function split out from
4727 make_general_lisp_hash_table.
4728 (make_lisp_hash_table): call make_standard_lisp_hash_table.
4729 (hash_table_instantiate): ditto.
4730 (Fmake_hash_table): ditto.
4732 2000-12-31 Martin Buchholz <martin@xemacs.org>
4734 * XEmacs 21.2.39 is released.
4736 2000-12-29 Andy Piper <andy@xemacs.org>
4738 * menubar.c (menubar_visible_p_changed): signal the frame changed.
4740 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4741 the frame has changed so that we pick up geometry changes such as
4744 2000-12-28 Andy Piper <andy@xemacs.org>
4746 * lastfile.c (my_ebss): make a char array so we can pad the
4747 bss. Fixes cygwin unexec.
4749 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4751 2000-12-26 Andy Piper <andy@xemacs.org>
4753 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4754 comments and try and be more precise about a non-/SIGIO world.
4755 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4758 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4759 we don't normalize to zero width or height.
4761 2000-12-24 Andy Piper <andy@xemacs.org>
4763 * Makefile.in.in (ldflags): add -mwindows when appropriate.
4765 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
4767 * s/sco5.h: SCO 5 has pty support.
4769 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
4771 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4772 input-method-xlib.c contains whole contents of input-method-xfs.c,
4773 so we can use input-method-xlib.c's code for USE_XFONTSET
4775 * input-method-xfs.c: removed.
4777 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
4779 * file-coding.h (enum coding_category_type): reorder enumerators to
4780 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
4781 (now one greater than largest real coding_category_type enumerator).
4782 * file-coding.c (coding_category_symbol, coding_category_by_priority,
4783 coding_category_system, fcd_descriptihon_1, decode_coding_category,
4784 Fcoding_category_list, Fset_coding_priority_list,
4785 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4786 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4788 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4790 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4791 * redisplay-output.c (redisplay_output_window): Clear top of window
4792 when face is changed.
4793 * redisplay-x.c (x_redraw_exposed_window): Call
4794 redisplay_clear_top_of_window.
4795 * redisplay.h: Publish redisplay_clear_top_of_window.
4797 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4799 * buffer.c (Fkill_buffer): Map over all devices.
4800 * window.c (window_loop): Remove UNSHOW_BUFFER code.
4801 (list_windows): New function.
4802 (list_all_windows): Ditto.
4803 (Freplace_buffer_in_windows): Use them.
4805 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4807 * database.c (berkdb_subtype): Recognize new subtype `queue'.
4808 (Fopen_database): Use `db_create' instead of `db_open'.
4809 (syms_of_database): Initialize Qqueue.
4811 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4813 * buffer.c (common_init_complex_vars_of_buffer): Initialize
4814 buffer_local_face_property.
4815 * buffer.h (struct buffer): New member buffer_local_face_property.
4816 * window.c (Fset_window_buffer): Mark window's face as changed
4817 when buffer has buffer local face.
4818 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4819 * objects.c (color_after_change): Set buffer_local_face_property
4820 when locale of face specifier is buffer.
4821 * objects.c (font_after_change): Ditto.
4822 * objects.c (face_boolean_after_change): Ditto.
4823 * glyphs.c (image_after_change): Ditto.
4825 2000-12-09 Dan Holmsand <dan@eyebee.com>
4827 * nt.c (mswindows_fstat): Report file permissions, volume serial
4828 number, etc. Code adapted from FSF Emacs 20.7.
4830 2000-12-09 Dan Holmsand <dan@eyebee.com>
4832 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4833 of stat when we don't have symbolic links, to make sure
4834 mswindows_stat is called on mswindows.
4836 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
4838 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4840 2000-12-12 Martin Buchholz <martin@xemacs.org>
4842 * doprnt.c (emacs_doprnt_1): More printing fixes.
4843 Make printing of numbers compatible with libc and FSF Emacs.
4844 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4845 Use the system printf to do most of the hard work of formatting,
4846 instead of doprnt_1().
4847 Calculate memory to allocate for format string.
4848 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4849 (doprnt_1): Cleaner code and documentation.
4851 2000-12-01 Jerry James <james@eecs.ukans.edu>
4853 * Makefile.in.in: Use the loop variable to install headers.
4855 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4857 * window.c (Fsplit_window): Don't invalidate face cache.
4859 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4861 * minibuf.c (Fall_completions): Undo the previous change
4862 which removed checking elements start with space.
4864 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4866 * mule-canna.c: Didier suppression.
4868 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4870 * mule-canna.c: rename static unsigned char buf[] to key_buffer
4871 (warning suppression). Add English comment translations.
4873 2000-12-05 Martin Buchholz <martin@xemacs.org>
4875 * unexelfsgi.c (unexec): Better test for mmap failure.
4877 2000-12-05 Martin Buchholz <martin@xemacs.org>
4879 * XEmacs 21.2.38 is released.
4881 2000-12-05 Martin Buchholz <martin@xemacs.org>
4883 * redisplay.c (bar-cursor): Make a user variable.
4885 * symsinit.h: Add init_postgresql_from_environment.
4887 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4889 * regex.c: Convert to clean C.
4891 2000-12-05 Dan Holmsand <dan@eyebee.com>
4894 Don't #include sysfile.h. Revert to duplicating PATH_MAX
4896 (sys_readlink): renamed to system_readlink to avoid conflict with
4897 the other sys_readlink.
4899 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
4901 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4903 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
4905 * postgresql.c (init_postgresql_from_environment): new function.
4906 (vars_of_postgresql): Move code initializing Lisp variables out and
4907 into init_postgresql_from_environment.
4908 emacs.c (main_1): Call init_postgresql_from_environment if and only
4909 if running a dumped XEmacs.
4911 2000-08-31 Dan Holmsand <dan@eyebee.com>
4913 * buffer.c: Make find-file-compare-truenames default to true on
4916 * realpath.c (win32_abs_start):
4918 (win32_readlink): New functions.
4919 (xrealpath): Return really real filenames on windows.
4921 * fileio.c (Ffile_truename): Make file-truename work on windows.
4923 2000-11-29 Didier Verna <didier@xemacs.org>
4925 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4926 * faces.c (update_face_cachel_data): use it.
4927 * faces.c (add_face_cachel): use it. Complete background pixmap
4928 frobbing in face cache if `update_face_cachel_data' has not done so.
4930 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
4932 * search.c (string_match_1): Don't set last_thing_searched
4935 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
4937 * buffer.c: Include casetab.h
4938 (common_init_complex_vars_of_buffer): Use new case-table object.
4939 * buffer.h: Include casetab.h
4940 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4941 (DOWNCASE_TABLE_OF): Ditto.
4942 * bufslots.h: Remove char-tables and add case-table.
4943 * casetab.c: Include casetab.h
4944 (CASE_TABLE_P): Removed.
4945 (mark_case_table): New function.
4946 (allocate_case_table): New function.
4947 (Fcase_table_p): Use new case-table.
4948 (case_table_char): New function.
4949 (Fget_case_table): Ditto.
4950 (Fput_case_table): Ditto.
4951 (Fput_case_table_pair): Ditto.
4952 (Fcopy_case_table): Ditto.
4953 (Fcurrent_case_table): Return case-table.
4954 (Fstandard_case_table): Return case-table.
4955 (Fset_case_table): Fix doc-string.
4956 (set_case_table): Use case-table
4957 (syms_of_casetab): DEFSUBR new functions.
4958 (complex_vars_of_casetab): Set up standard case-table.
4959 * casetab.h: New file.
4960 * editfns.c: Include casetab.h
4961 (Fcompare_buffer_substrings): Use case-table.
4962 * inline.c: Include casetab.h
4963 * lisp.h: Remove bogus extern.
4964 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4965 * search.c: Include casetab.h
4966 (TRANSLATE_ASCII): Removed.
4967 (TRANSLATE): Unconditionally translate character.
4968 (looking_at_1): Use case-table.
4969 (string_match_1): Ditto.
4970 (fast_string_match): Ditto.
4971 (search_command): Ditto.
4972 (search_buffer): Separate boyer_moore. Check whether
4973 boyer_moore is possible.
4974 (simple_search): New function.
4975 (boyer_moore): Separated from search_buffer. Translate char.
4977 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
4979 * regex.c (RE_TR_ASCII): Removed.
4980 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4981 (PATFETCH): Call PATFETCH_RAW.
4982 (PATFETCH_RAW): Fetch Emchar.
4983 (PATUNFETCH): Decrement charptr.
4984 (GET_BUFFER_SPACE): Rename b to buf_end.
4986 (BUF_PUSH_2): Ditto.
4987 (BUF_PUSH_3): Ditto.
4988 (EXTEND_BUFFER): Ditto.
4989 (SET_LIST_BIT): Ditto.
4990 (regex_compile): Ditto. Translate non ASCII char.
4991 (compile_range): Ditto.
4992 (re_search_2): Ditto.
4993 (re_match_2_internal): Compare Emchar.
4994 (bcmp_translate): Ditto.
4996 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
4998 * lisp.h (basic char/int typedefs): comment improvement.
5000 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
5002 * emacs.c (main_1): unconditional pdump unstomping; don't save and
5003 unstomp inhibit_site_lisp. Improve comments.
5005 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
5007 * mule-charset.c (Fcharset_property): improve type checking, comments.
5009 2000-11-28 Andy Piper <andy@xemacs.org>
5011 * redisplay-output.c (redisplay_output_subwindow): make sure we do
5012 clipped display for windows in the gutter also.
5013 (redisplay_display_boxes_in_window_p): change semantics of return
5014 codes to be more intuitive.
5016 * gutter.h: declare display_boxes_in_gutter_p.
5018 * gutter.c (display_boxes_in_gutter_p): new function for
5021 2000-11-22 Andy Piper <andy@xemacs.org>
5023 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5026 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
5028 * callproc.c (Fold_call_process_internal):
5029 * gpm.c (Freceive_gpm_event):
5030 (tty_get_foreign_selection): Might be just warning supression.
5031 * fileio.c (Fwrite_region_internal):
5032 (Fset_visited_file_modtime):
5033 * keymap.c (event_matches_key_specifier_p):
5034 Initialize GCPROed variable.
5036 * menubar-x.c (command_builder_find_menu_accelerator):
5037 Initialize before use.
5039 2000-11-23 Andy Piper <andy@xemacs.org>
5041 * unexcw.c (unexec): make the resulting executable executable.
5043 2000-11-21 Martin Buchholz <martin@xemacs.org>
5045 * doc.c (get_doc_string):
5046 Use size_t, not int, for result of XSTRING_LENGTH.
5048 * cmds.c (Fdelete_char):
5049 * cmds.c (Fpoint_at_eol):
5050 * cmds.c (Fself_insert_command):
5051 Use EMACS_INT, not int, for result of XINT.
5052 Someday, someone will want to insert more than 2**31 identical characters.
5054 * cmds.c (Fdelete_char):
5055 * cmds.c (Fdelete_backward_char):
5056 * syntax.c (Fforward_word):
5057 * syntax.c (Fforward_comment):
5058 Make COUNT argument optional, for consistency with forward-char et al.
5060 2000-11-22 Martin Buchholz <martin@xemacs.org>
5063 * print.c (long_to_string):
5064 Return a useful value: the pointer at end of data written.
5067 Use `static const char * const' for constant strings.
5068 (union printf_arg): Delete `i', `ui' members.
5071 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5072 Do all printf-ing via the `l' specifier.
5073 Use EMACS_INT instead of int.
5076 2000-11-20 Didier Verna <didier@xemacs.org>
5078 * faces.c (update_face_cachel_data): don't frob the background
5079 pixmap when the window is being created. The face is needed but
5082 2000-11-20 Andy Piper <andy@xemacs.org>
5084 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5085 messing with a debug environment.
5087 2000-11-20 Martin Buchholz <martin@xemacs.org>
5089 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5091 2000-11-20 Martin Buchholz <martin@xemacs.org>
5093 * casetab.c (Fcase_table_p): Fix compile error and crash.
5095 2000-11-18 Philip Aston <philipa@mail.com>
5097 * s/cygwin32.h: Cygwin has SVR4-like pty support.
5099 2000-11-18 Martin Buchholz <martin@xemacs.org>
5101 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
5102 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5104 2000-11-17 Martin Buchholz <martin@xemacs.org>
5106 * config.h.in: Define HAVE_ELF_H if elf.h exists.
5107 * unexelf.c: Use HAVE_ELF_H.
5108 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5109 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5110 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5111 Greg Harrington <greg_harrington@hotmail.com> provided a machine
5113 So this is an unexelfsgi.c from a different line of development.
5115 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5117 * regex.c (RE_TR_ASCII): New function.
5118 (RE_TRANSLATE): Call it.
5120 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5122 * buffer.h (TRT_TABLE_OF): Remove assert.
5123 (IN_TRT_TABLE_DOMAIN): Removed.
5125 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
5127 * free-hook.c (log_gcpro):
5128 (show_gcprohist): Add support for GCPRO5.
5130 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
5132 * emacs.c (main_1): Improve -sd error message when --pdump=no.
5134 2000-11-16 Olivier Galibert <galibert@xemacs.org>
5136 * symeval.h: Declare flush_all_buffer_local_cache.
5138 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5139 (flush_buffer_local_cache): Added.
5140 (flush_all_buffer_local_cache): Added.
5142 * lrecord.h: Remove unused XD_LO_RESET_NIL.
5144 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5145 (pdump_dump_data): Ditto.
5146 (pdump_reloc_one): Ditto.
5147 (pdump): Remove unused pdump_qnil. Flush buffer local caches
5151 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5153 * buffer.c: Remove if 0'ed entry.
5154 * buffer.h: Rewrite TRT to use char-table.
5155 * bufslots.h: Remove mirror tables.
5156 * casetab.c: Remove mirror tables.
5157 (CASE_TABLE_P): New macro.
5158 (Fcase_table_p): Element of a case table is string or char-table.
5159 (make_mirror_trt_table): Removed.
5160 (set_case_table): Setup char-table from strings for backward
5162 * dired.c (Fdirectory_files):
5163 * dired-msw.c: (mswindows_get_files):
5164 * lisp.h: Change prototype of re_pattern_buffer.
5165 * regex.c: (RE_TRANSLATE): New macro.
5166 (TRANSLATE_P): Ditto.
5167 Change translate to type RE_TRANSLATE_TYPE.
5168 * regex.h: Define RE_TRANSLATE_TYPE
5169 * search.c (TRANSLATE): New macro.
5170 (TRANSLATE_ASCII): New macro.
5171 Translate table is changed to Lisp_Object.
5172 (signal_failure): Inhibit return.
5174 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5181 Do UNGCPRO before return.
5183 2000-11-14 Martin Buchholz <martin@xemacs.org>
5185 * XEmacs 21.2.37 is released.
5187 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
5189 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5190 Add comments about discarded return value.
5192 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5195 * event-stream.c: Fix comments. Remove some #if 0'ed part.
5197 2000-10-27 Andy Piper <andy@xemacs.org>
5199 * gutter.c (Fset_default_gutter_position): default left and right
5201 (calculate_gutter_size): calculate resonable heuristic for left
5202 and right gutter sizes.
5203 (specifier_vars_of_gutter): change left and right gutter sizes to
5205 (calculate_gutter_size_from_display_lines): new function.
5206 (output_gutter): check for resizing on left and right gutters.
5207 (clear_gutter): don't special case top and left gutters.
5208 (specifier_vars_of_gutter): use new signature for
5209 set_specifier_caching.
5211 * glyphs-x.c (x_redisplay_widget): spelling fix.
5212 * glyphs.c (specifier_vars_of_glyphs):
5213 * menubar.c (specifier_vars_of_menubar):
5214 * redisplay.c (specifier_vars_of_redisplay):
5215 * toolbar.c (specifier_vars_of_toolbar):
5216 * window.c (specifier_vars_of_window):
5217 * scrollbar.c (specifier_vars_of_scrollbar):
5218 (complex_vars_of_scrollbar): use new signature for
5219 set_specifier_caching.
5221 * specifier.c (set_specifier_caching): include recompute flag.
5222 (recompute_one_cached_specifier_in_window): always recompute if
5224 (recompute_one_cached_specifier_in_frame): ditto.
5226 * specifier.h (struct specifier_caching): add recompute flag.
5228 2000-10-24 Andy Piper <andy@xemacs.org>
5230 * unexcw.c (copy_executable_and_dump_data_section): add new
5231 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5234 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5236 * console-x.h (x_device): New member modifier_release_time.
5237 * event-Xt.c (x_handle_sticky_modifiers):
5238 Bound interval modifier keys are sticky.
5239 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5240 * events.h: extern it.
5242 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5244 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5246 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5248 * event-stream.c (execute_command_event): Preserve current_events
5249 and the like when event is misc-user-event.
5250 Inhibit quit during the call to maybe_echo_keys.
5252 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
5254 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5255 symlink when buffer is killed.
5256 (inhibit_clash_detection): New variable.
5258 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5260 * console.c (Fset_input_method): Trigger redisplay on tty.
5262 2000-11-07 Martin Buchholz <martin@xemacs.org>
5264 * process.c (Fprocess_status): Revert to previous behavior:
5265 (process-status "nosuchprocess") ==> nil
5267 2000-11-06 Martin Buchholz <martin@xemacs.org>
5269 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5270 Work around another GCC 2.95.2 optimizer bug.
5272 2000-11-02 Martin Buchholz <martin@xemacs.org>
5274 * process.c (Fget_process): Use LIST_LOOP_2.
5275 (kill_buffer_processes): Use LIST_LOOP_2.
5277 * minibuf.c (Fall_completions):
5278 Delete old non-functional code for FSF fourth argument.
5280 * frame.c (frame_matches_frame_spec):
5281 Renamed from `frame_matches_frametype'. Update all callers.
5282 (device_matches_device_spec):
5283 Renamed from 'device_matches_console_spec'. Update all callers.
5285 * doc.c (Fsubstitute_command_keys):
5286 Remove buffer overflow crash. Small code cleanups.
5288 * casetab.c (check_case_table): Simpler code.
5290 * window.c (Freplace_buffer_in_windows):
5291 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5292 (and similar implementation) as Fdelete_windows_on.
5295 * alloc.c (Fmake_list):
5296 * alloc.c (make_vector):
5297 * alloc.c (Fmake_vector):
5298 * alloc.c (make_bit_vector):
5299 * alloc.c (Fmake_bit_vector):
5300 * alloc.c (Fbit_vector):
5301 * alloc.c (Fmake_string):
5302 * alloc.c (Fpurecopy):
5303 * alloc.c (Fmemory_limit):
5305 * buffer.c (Fget_buffer):
5306 * buffer.c (Fkill_buffer):
5307 * buffer.c (complex_vars_of_buffer):
5308 * bytecode.c (Fcompiled_function_stack_depth):
5309 * callint.c (Fprefix_numeric_value):
5311 * event-stream.c (Fread_key_sequence):
5313 * casetab.c (Fcase_table_p):
5314 * casetab.c (check_case_table):
5315 * casetab.c (Fset_case_table):
5316 * casetab.c (Fset_standard_case_table):
5318 * chartab.c (Fchar_table_type):
5319 * chartab.c (Freset_char_table):
5320 * chartab.c (Fget_char_table):
5321 * chartab.c (Fget_range_char_table):
5322 * chartab.c (Fput_char_table):
5323 * chartab.c (Fmap_char_table):
5324 * chartab.c (Fcategory_table_p):
5325 * chartab.c (Fcheck_category_at):
5326 * chartab.c (Fchar_in_category_p):
5327 * chartab.c (Fcategory_table):
5328 * chartab.c (Fcopy_category_table):
5329 * chartab.c (Fset_category_table):
5330 * chartab.c (Fcategory_designator_p):
5331 * chartab.c (Fcategory_table_value_p):
5332 * cmds.c (Fdelete_char):
5333 * cmds.c (Fdelete_backward_char):
5334 * cmds.c (Fself_insert_command):
5335 * cmds.c (Fself_insert_internal):
5336 * console.c (Fvalid_console_type_p):
5337 * console.c (Fcdfw_console):
5338 * console.c (Fconsole_type):
5339 * console.c (Fconsole_name):
5340 * console.c (Fconsole_device_list):
5341 * console.c (Fconsole_on_window_system_p):
5345 * data.c (Fsubr_interactive):
5346 * data.c (Fchar_to_int):
5347 * data.c (Fint_to_char):
5350 * data.c (Fnumber_to_string):
5351 * data.c (Fstring_to_number):
5353 * database.c (mark_database):
5354 * database.c (finalize_database):
5355 * database.c (Fdatabase_live_p):
5356 * database.c (Fdatabasep):
5357 * device-x.c (Fx_get_resource):
5358 * device.c (Fdfw_device):
5360 * dired.c (Ffile_name_completion):
5361 * dired.c (Ffile_name_all_completions):
5362 * dired.c (Fuser_name_completion):
5363 * dired.c (Fuser_name_completion_1):
5364 * dired.c (Fuser_name_all_completions):
5365 * doc.c (Fdocumentation):
5366 * doc.c (Fdocumentation_property):
5367 * doc.c (Fsubstitute_command_keys):
5369 * editfns.c (Fchar_to_string):
5370 * editfns.c (Fstring_to_char):
5371 * editfns.c (Ftemp_directory):
5372 * editfns.c (Finsert_char):
5373 * editfns.c (Fbuffer_substring_no_properties):
5374 * editfns.c (Fnarrow_to_region):
5375 * editfns.c (Fchar_equal):
5376 * editfns.c (Fchar_Equal):
5377 * editfns.c (Ftranspose_regions):
5378 * emacs.c (Fdump_emacs):
5380 * eval.c (Fcommand_execute):
5381 * eval.c (Fautoload):
5382 * eval.c (Fbacktrace):
5383 * eval.c (Fbacktrace_frame):
5385 * events.c (Fcopy_event):
5386 * events.c (Fcharacter_to_event):
5387 * events.c (Fevent_button):
5388 * events.c (Fevent_process):
5390 * extents.c (Fnext_extent_change):
5391 * extents.c (Fextent_property):
5393 * faces.c (Fmake_face):
5395 * file-coding.c (Fencode_shift_jis_char):
5396 * file-coding.c (Fencode_big5_char):
5397 * fileio.c (Ffile_name_directory):
5398 * fileio.c (Ffile_name_nondirectory):
5399 * fileio.c (Ffile_name_as_directory):
5400 * fileio.c (Fdirectory_file_name):
5401 * fileio.c (Ffile_truename):
5402 * fileio.c (Fsubstitute_in_file_name):
5403 * fileio.c (Ffile_modes):
5404 * fileio.c (Fset_file_modes):
5405 * fileio.c (Fset_default_file_modes):
5406 * fileio.c (Fverify_visited_file_modtime):
5407 * floatfns.c (Facos):
5408 * floatfns.c (Fasin):
5409 * floatfns.c (Fatan):
5410 * floatfns.c (Fcos):
5411 * floatfns.c (Fsin):
5412 * floatfns.c (Ftan):
5413 * floatfns.c (Fbessel_j0):
5414 * floatfns.c (Fbessel_j1):
5415 * floatfns.c (Fbessel_jn):
5416 * floatfns.c (Fbessel_y0):
5417 * floatfns.c (Fbessel_y1):
5418 * floatfns.c (Fbessel_yn):
5419 * floatfns.c (Ferf):
5420 * floatfns.c (Ferfc):
5421 * floatfns.c (Flog_gamma):
5422 * floatfns.c (Fexp):
5423 * floatfns.c (Fexpt):
5424 * floatfns.c (Flog):
5425 * floatfns.c (Flog10):
5426 * floatfns.c (Fsqrt):
5427 * floatfns.c (Fcube_root):
5428 * floatfns.c (Facosh):
5429 * floatfns.c (Fasinh):
5430 * floatfns.c (Fatanh):
5431 * floatfns.c (Fcosh):
5432 * floatfns.c (Fsinh):
5433 * floatfns.c (Ftanh):
5434 * floatfns.c (Fabs):
5435 * floatfns.c (Ffloat):
5436 * floatfns.c (Flogb):
5437 * floatfns.c (Fceiling):
5438 * floatfns.c (Ffloor):
5439 * floatfns.c (Fround):
5440 * floatfns.c (Ftruncate):
5441 * floatfns.c (Ffceiling):
5442 * floatfns.c (Fffloor):
5443 * floatfns.c (Ffround):
5444 * floatfns.c (Fftruncate):
5445 * fns.c (Fstring_equal):
5446 * fns.c (Fstring_lessp):
5451 * fns.c (Fsubstring):
5453 * fns.c (Fold_assoc):
5454 * fns.c (assoc_no_quit):
5456 * fns.c (Fold_assq):
5457 * fns.c (assq_no_quit):
5459 * fns.c (Fold_rassoc):
5461 * fns.c (Fold_rassq):
5462 * fns.c (rassq_no_quit):
5463 * fns.c (Fremassoc):
5464 * fns.c (remassoc_no_quit):
5466 * fns.c (remassq_no_quit):
5467 * fns.c (Fremrassoc):
5468 * fns.c (Fremrassq):
5469 * fns.c (remrassq_no_quit):
5471 * fns.c (Fplist_get):
5472 * fns.c (Fplist_put):
5473 * fns.c (Fplist_remprop):
5474 * fns.c (Fplist_member):
5475 * fns.c (Flax_plist_get):
5476 * fns.c (Flax_plist_put):
5477 * fns.c (Flax_plist_remprop):
5478 * fns.c (Flax_plist_member):
5480 * fns.c (Fold_equal):
5482 * fns.c (Fbase64_encode_region):
5483 * fns.c (Fbase64_encode_string):
5484 * fns.c (Fbase64_decode_region):
5486 * frame.c (frame_matches_frame_spec):
5487 * frame.c (device_matches_device_spec):
5488 * frame.c (next_frame):
5489 * frame.c (previous_frame):
5490 * frame.c (Fnext_frame):
5491 * frame.c (Fprevious_frame):
5492 * frame.c (Fframe_property):
5493 * frame.c (Fset_frame_height):
5494 * frame.c (Fset_frame_size):
5498 * glyphs.c (decode_error_behavior_flag):
5499 * glyphs.c (Fmake_image_instance):
5500 * indent.c (Findent_to):
5501 * intl.c (Fignore_defer_gettext):
5502 * keymap.c (Fkeymapp):
5503 * keymap.c (Flookup_key):
5505 * lread.c (Fload_internal):
5506 * lread.c (Feval_buffer):
5507 * lread.c (Feval_region):
5508 * macros.c (Fexecute_kbd_macro):
5509 * marker.c (set_marker_internal):
5510 * marker.c (Fset_marker):
5511 * marker.c (set_marker_restricted):
5512 * marker.c (Fcopy_marker):
5513 * marker.c (noseeum_copy_marker):
5515 * menubar.c (Fpopup_menu):
5517 * mule-charset.c (Fcharset_name):
5518 * mule-charset.c (Fchar_charset):
5519 * mule-charset.c (Fchar_octet):
5520 * mule-charset.c (Fsplit_char):
5521 * mule-wnnfns.c (Fwnn_open):
5522 * mule-wnnfns.c (Fwnn_dict_comment):
5523 * mule-wnnfns.c (Fwnn_quit_henkan):
5524 * mule-wnnfns.c (Fwnn_word_toroku):
5525 * mule-wnnfns.c (Fwnn_word_sakujo):
5526 * mule-wnnfns.c (Fwnn_word_use):
5527 * mule-wnnfns.c (Fwnn_hindo_set):
5529 * objects.c (Fmake_color_instance):
5530 * objects.c (Fmake_font_instance):
5531 * print.c (Fwrite_char):
5533 * process.c (mark_process):
5534 * process.c (print_process):
5535 * process.c (get_process_from_usid):
5536 * process.c (Fprocessp):
5537 * process.c (Fprocess_live_p):
5538 * process.c (Fget_process):
5539 * process.c (Fget_buffer_process):
5540 * process.c (get_process):
5541 * process.c (Fprocess_id):
5542 * process.c (Fprocess_name):
5543 * process.c (Fprocess_command):
5544 * process.c (init_process_io_handles):
5545 * process.c (start_process_unwind):
5546 * process.c (Fstart_process_internal):
5547 * process.c (Fopen_multicast_group_internal):
5548 * process.c (Fset_process_window_size):
5549 * process.c (read_process_output):
5550 * process.c (send_process):
5551 * process.c (Fprocess_tty_name):
5552 * process.c (Fset_process_buffer):
5553 * process.c (Fprocess_buffer):
5554 * process.c (Fprocess_mark):
5555 * process.c (set_process_filter):
5556 * process.c (Fset_process_filter):
5557 * process.c (Fprocess_filter):
5558 * process.c (Fprocess_send_region):
5559 * process.c (Fprocess_send_string):
5560 * process.c (exec_sentinel):
5561 * process.c (Fset_process_sentinel):
5562 * process.c (Fprocess_sentinel):
5563 * process.c (status_notify):
5564 * process.c (Fprocess_status):
5565 * process.c (Fprocess_exit_status):
5566 * process.c (process_send_signal):
5567 * process.c (Fprocess_send_eof):
5568 * process.c (deactivate_process):
5569 * process.c (remove_process):
5570 * process.c (Fdelete_process):
5571 * process.c (kill_buffer_processes):
5572 * process.c (Fprocess_kill_without_query):
5573 * process.c (Fprocess_kill_without_query_p):
5575 * rangetab.c (Fget_range_table):
5576 * rangetab.c (Fput_range_table):
5577 * rangetab.c (Fremove_range_table):
5578 * rangetab.c (Fclear_range_table):
5580 * search.c (Fskip_chars_forward):
5581 * search.c (Fskip_chars_backward):
5582 * search.c (Fskip_syntax_forward):
5583 * search.c (Fskip_syntax_backward):
5584 * search.c (search_command):
5585 * search.c (Freplace_match):
5586 * search.c (Fregexp_quote):
5587 * select.c (Fown_selection_internal):
5588 * select.c (Fselection_owner_p):
5589 * select.c (Fselection_exists_p):
5590 * select.c (Fget_selection_internal):
5593 * symbols.c (Fintern):
5594 * symbols.c (Fintern_soft):
5595 * symbols.c (Funintern):
5596 * symbols.c (Fapropos_internal):
5597 * symbols.c (Fset_default):
5599 * syntax.c (Fsyntax_table_p):
5600 * syntax.c (Fcopy_syntax_table):
5601 * syntax.c (Fset_syntax_table):
5602 * syntax.c (Fchar_syntax):
5603 * syntax.c (syntax_match):
5604 * syntax.c (Fmatching_paren):
5605 * syntax.c (Fforward_word):
5606 * syntax.c (scan_lists):
5607 * syntax.c (Fscan_lists):
5608 * syntax.c (Fscan_sexps):
5609 * syntax.c (Fparse_partial_sexp):
5610 * toolbar.c (Fcheck_toolbar_button_syntax):
5613 * window.c (Fwindowp):
5614 * window.c (Fwindow_live_p):
5615 * window.c (Fwindow_point):
5616 * window.c (Fdelete_window):
5617 * window.c (Fnext_window):
5618 * window.c (Fprevious_window):
5619 * window.c (Fother_window):
5620 * window.c (window_loop):
5621 * window.c (Fget_lru_window):
5622 * window.c (Fsplit_window):
5623 * window.c (Fenlarge_window):
5624 * window.c (Fenlarge_window_pixels):
5625 * window.c (Fshrink_window):
5626 * window.c (Fshrink_window_pixels):
5627 * window.c (change_window_height):
5628 * window.c (Fwindow_configuration_p):
5629 * window.c (Fcurrent_window_configuration):
5631 * casefiddle.c (casify_object):
5632 * casefiddle.c (Fupcase):
5633 * casefiddle.c (Fdowncase):
5634 * casefiddle.c (Fcapitalize):
5635 * casefiddle.c (Fupcase_initials):
5636 * casefiddle.c (casify_region_internal):
5637 * casefiddle.c (casify_region):
5638 * casefiddle.c (Fupcase_region):
5639 * casefiddle.c (Fdowncase_region):
5640 * casefiddle.c (Fcapitalize_region):
5641 * casefiddle.c (Fupcase_initials_region):
5642 * casefiddle.c (Fupcase_word):
5643 * casefiddle.c (Fdowncase_word):
5644 * casefiddle.c (Fcapitalize_word):
5645 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
5646 Replace 0 with '\0' when working with bytes.
5647 Replace initial "(" with "\(" in docstrings.
5649 2000-11-01 Martin Buchholz <martin@xemacs.org>
5651 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5653 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5655 2000-10-31 Martin Buchholz <martin@xemacs.org>
5657 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
5659 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5661 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5664 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5666 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5667 (inhibit_auto_save_session): New variable.
5668 (vars_of_fileio): Declare and initialize them.
5669 * fileio.c (Fdo_auto_save): Don't create session file if
5670 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5672 2000-10-31 Martin Buchholz <martin@xemacs.org>
5674 * sgiplay.c (play_internal): C++ compilability.
5675 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5676 * callproc.c (Fold_call_process_internal):
5677 Remove unused vars `env', `first'.
5678 * scrollbar.c (update_scrollbar_instance):
5679 #### unused var `current_window'.
5680 * redisplay-tty.c: Put currently unused vars insert_mode_on,
5681 etc. within #ifdef NOT_YET.
5682 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5683 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5684 * specifier.c (specifier_instance):
5685 #### unused var `tag'.
5686 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5688 2000-10-27 Martin Buchholz <martin@xemacs.org>
5691 * fns.c (list_sort):
5692 * fns.c (Ffillarray):
5693 * fns.c (bytecode_nconc2):
5696 * fns.c (Fmapconcat):
5697 Be pedantically 64-bit correct. For the time when someone will
5698 want to have a list with length > 2**32.
5700 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5701 Work around MIPSpro compiler bug.
5703 * process-unix.c (unix_kill_child_process): Add snarky comment.
5704 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
5706 * config.h.in: Oops, _getpt ==> _getpty
5708 2000-10-26 Martin Buchholz <martin@xemacs.org>
5712 Use void*, not char*, as return type of alloca().
5714 * alloc.c (free_marker): Side effect inside assert expression!
5716 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
5718 * mule-charset.c (Fset_charset_ccl_program): To check
5719 if the given ccl program is valid, use setup_ccl_program()
5720 instead of CHECK_VECTOR().
5721 (Fmake_charset): Likewise.
5723 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
5725 * faces.c (get_extent_fragment_face_cache_index):
5726 Fix cachel.merged_faces memory leak.
5728 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
5730 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5731 Reset MSB of octets obtained by DECODE_SJIS
5732 because of the incompatibility with Emacs.
5733 (ccl_driver)<CCL_ENCODE_SJIS>:
5734 Set MSB of octets before passing them to
5735 ENCODE_SJIS because of the incompatibility
5738 2000-10-18 Daiki Ueno <ueno@unixuser.org>
5740 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5741 (DECLARE_LRECORD): Undo the last change.
5742 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5744 2000-10-17 Daiki Ueno <ueno@unixuser.org>
5746 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5747 the implementation to lrecord_implementations_table.
5749 2000-10-14 Daiki Ueno <ueno@unixuser.org>
5751 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5752 initial value of `lrecord_type_##c_name' and
5753 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5754 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5755 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5756 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5757 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5759 2000-10-17 Martin Buchholz <martin@xemacs.org>
5761 * miscplay.c (sndcnv8S_2mono):
5762 (sndcnv2monounsigned):
5763 (sndcnvULaw_2linear):
5765 Remove implementation-defined behavior.
5767 2000-10-12 Martin Buchholz <martin@xemacs.org>
5769 * input-method-xlib.c: Warning suppression.
5771 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
5773 * mule-ccl.c: Sync up with Emacs 21.0.90.
5774 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5776 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5778 (ccl_driver[WriteMultibyteChar2]): Bug fix.
5779 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5780 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5781 leading char belongs to official 2-dimensional charset.
5782 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5783 write the given character as is. Otherwise,
5784 if it is a multibyte char, convert it by
5785 non_ascii_set_charptr_emchar, then write it.
5786 (CCL_WRITE_STRING): Likewise.
5787 (ccl_get_compiled_code): New function.
5788 (setup_ccl_program): When ccl_prog is invalid,
5790 (Fregister_code_conversion_map): New function.
5791 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5793 * mule-ccl.h: Sync up with Emacs 21.0.90.
5794 (Fregister_ccl_program): export it.
5796 * redisplay-msw.c (separate_textual_runs):
5797 If ccl program is not valid, don't do ccl conversion.
5799 * redisplay-x.c (separate_textual_runs): Ditto.
5801 * file-coding.c (Fmake_coding_system):
5802 When type is ccl and value is vector, register it
5803 with a proper symbol. And checks whether the
5804 given ccl program is valid.
5805 (mule_decode): When calling ccl_driver, if src indicates
5806 NULL pointer, set an empty string instead.
5807 (mule_encode): Likewise.
5809 2000-10-11 Martin Buchholz <martin@xemacs.org>
5811 The following large batch of changes gets us back to a state of
5812 C++ compilability. Extbyte is now a char, which means that
5813 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5815 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5817 * sound.c (Fplay_sound): Type correctness.
5819 * select-x.c (hack_motif_clipboard_selection): Type correctness.
5820 (x_get_window_property): Type correctness.
5821 (receive_incremental_selection): unsigned char ==> Extbyte
5822 (selection_data_to_lisp_data): unsigned char ==> Extbyte
5823 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5824 (Fx_store_cutbuffer_internal): Type correctness.
5826 * process-unix.c (try_to_initialize_subtty): Type correctness.
5828 * objects-x.c (x_print_color_instance): Type correctness.
5829 (x_print_font_instance): Type correctness.
5830 (x_list_fonts): SExtbyte ==> Extbyte.
5831 (valid_x_font_name_p): SExtbyte ==> Extbyte.
5832 (x_find_charset_font): SExtbyte ==> Extbyte.
5833 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
5834 (truename_via_XListFonts): SExtbyte ==> Extbyte.
5835 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5838 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5839 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5840 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5841 (BYTE_C0_P): Use bit ops for char-signedness safety.
5842 (BYTE_C1_P): Use bit ops for char-signedness safety.
5843 (CHARSET_BY_LEADING_BYTE):
5844 (CHARSET_BY_ATTRIBUTES):
5845 Always use inline function.
5846 Use type_checking_assert.
5849 * mule-charset.c (non_ascii_charptr_copy_char):
5850 Modify to work with both ASCII and non-ASCII characters.
5851 Improve docs and variable names.
5852 Replace over-clever fall-through switch with a simple loop.
5853 (Lstream_get_emchar_1):
5854 Replace over-clever fall-through switch with a simple loop.
5856 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5857 Warning suppression.
5859 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5860 the return value of Lstream_getc, which could be EOF as well.
5862 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5864 * lisp.h: Make Extbyte a char, not unsigned char, so that external
5865 APIs can be used on Extbytes without casts. Risky!
5869 * input-method-xlib.c (XIM_init_device):
5870 Use Xlib.h instead of IntrinsicP.h.
5871 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5872 which will break in X11R7.
5873 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5874 to call XRegisterIMInstantiateCallback with correct types.
5876 * gui-x.c (button_item_to_widget_value): Type correctness.
5878 * glyphs.c (bitmap_to_lisp_data): Type correctness.
5880 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5881 (xbm_instantiate_1): Type correctness.
5882 (BUILD_GLYPH_INST): Type correctness.
5884 * fileio.c (Fsubstitute_in_file_name): Type correctness.
5887 (decode_coding_sjis):
5888 (decode_coding_big5):
5889 (decode_coding_ucs4):
5890 (decode_coding_utf8):
5891 (decode_coding_iso2022):
5892 (decode_coding_no_conversion):
5893 Make all decoding functions take an Extbyte * arg.
5894 (encode_coding_sjis):
5895 (encode_coding_big5):
5896 (encode_coding_ucs4):
5897 (encode_coding_utf8):
5898 (encode_coding_iso2022):
5899 (encode_coding_no_conversion):
5900 Make all encoding functions take a Bufbyte * arg.
5901 Use size_t instead of unsigned int for memory sizes.
5902 Only cast to unsigned char whenever dereferencing Extbyte *.
5904 * doc.c (unparesseuxify_doc_string): Type correctness.
5906 * console-x.c (split_up_display_spec):
5907 Rewrite without using details of internal string representation.
5908 (x_semi_canonicalize_device_connection): Type correctness.
5911 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5912 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5913 (HAVE_XFREE386): Removed.
5915 * buffer.h (DEC_CHARPTR): `const' correctness.
5916 (bufbyte_strcmp): New.
5917 (bufbyte_memcmp): New.
5919 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5921 * buffer.h (XCHAR_OR_CHAR_INT):
5922 Always use inline function.
5923 Remove redundant type checking assert() - XINT will abort quite nicely.
5925 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
5927 * search.c (Freplace_match): Set newtext to an empty string.
5929 2000-10-10 Martin Buchholz <martin@xemacs.org>
5931 * s/decosf1-3.h: Remove #include of stropts.h
5932 * s/ptx.h: Remove #include of stropts.h
5933 * s/usg5-4.h: Remove #include of stropts.h
5936 Use stropts.h, not sys/stropts.h.
5937 Use strtio.h, not sys/strtio.h.
5939 2000-10-04 Martin Buchholz <martin@xemacs.org>
5941 * XEmacs 21.2.36 is released.
5943 2000-09-21 Andy Piper <andy@xemacs.org>
5945 * glyphs-x.c (x_redisplay_widget): make sure non-structural
5946 changes still involve copying the widget tree.
5947 (update_widget_face): make sure a change is register in the widget
5948 tree. Call update_tab_widget_face appropriately.
5949 (update_tab_widget_face): ditto.
5950 (x_tab_control_redisplay): make sure non-structural changes still
5951 involve copying the widget tree.
5953 2000-08-31 Daiki Ueno <ueno@unixuser.org>
5955 * lread.c (locate_file): Check the path element is non-nil.
5957 2000-10-02 Martin Buchholz <martin@xemacs.org>
5959 * lisp.h: Warning suppression for SCO compilers.
5961 * redisplay-tty.c (reset_tty_modes): Fix crash.
5962 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5964 2000-09-27 Martin Buchholz <martin@xemacs.org>
5966 Big signal/process handling overhaul. Bugs fixed:
5967 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5968 M-x comint-kill-subjob should work for both values nil and t of
5969 process-connection-type. It was broken on most platforms.
5970 Testing on Irix and Cygwin still needed. Other plaforms tested.
5971 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
5972 * process-unix.c: Signal/Process handling overhaul.
5973 (pty_name): make 64 bytes, as `expect' does, for paranoia.
5974 (allocate_pty): Use all available modern methods of allocating
5975 ptys, falling back to old style BSD allocation as a last resort.
5976 Use allegedly more secure Unix98 pty allocation by default.
5977 (allocate_pty_the_old_fashioned_way): New. the last resort.
5978 (unix_create_process): Push ptem, ldterm, ttcompat where
5979 available. Autoconfiscate.
5980 (try_to_initialize_subtty): New.
5981 (unix_kill_child_process): Proper signal handling for ptys on most
5982 platforms, using special knowledge of AIX, BSD, etc...
5983 (unix_create_process): Always disconnect_controlling_terminal() for
5984 subprocesses, whether using ptys or not.
5985 * process.h: Remove old getpt-dependent PTY code.
5986 * process.c (Fprocess_send_signal): New, obvious generic function.
5987 (decode_signal): New.
5988 (Finterrupt_process):
5992 (Fcontinue_process):
5993 (Fsignal_process): Use decode_signal.
5994 (process_send_signal):
5995 Many docstring corrections.
5996 Allow any signal to be sent to a process object.
5997 * config.h.in: Add symbols for big signal/process overhaul.
5998 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5999 * sysproc.h: Include process-related headers, where available:
6000 sys/stropts.h sys/strtio.h pty.h libutil.h
6008 Remove old S&M pty stuff.
6009 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6010 * systty.h: Simplify cpp hackery, improve comments.
6011 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6013 * editfns.c (Fformat_time_string):
6014 Be a little more paranoid with the return value of ctime.
6016 * fileio.c (check_executable):
6018 Use symbolic constants X_OK, W_OK.
6020 * console-x.c (split_up_display_spec): Fix a warning.
6022 2000-10-02 Martin Buchholz <martin@xemacs.org>
6024 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6025 * ntproc.c (sys_spawnve): make_string ==> build_string
6026 Small clarity improvements.
6028 2000-09-30 Martin Buchholz <martin@xemacs.org>
6030 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6032 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6034 * config.h.in (HAVE_STRCASECMP): Remove.
6036 2000-09-29 Martin Buchholz <martin@xemacs.org>
6038 * redisplay-output.c (redisplay_output_pixmap):
6039 Cleaner and possibly more 64-bit correct code.
6041 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
6043 * dumper.c (pdump_load_finish): move restoration of
6044 `noninteractive1' to emacs.c (main_1).
6045 * emacs.c (main_1): protect LISP-visible command-line flags
6048 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
6050 * Makefile.in.in (versionclean): Use EXE_TARGET and
6051 DUMP_TARGET instead of literal program names.
6053 2000-09-20 Martin Buchholz <martin@xemacs.org>
6055 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6057 2000-09-19 Martin Buchholz <martin@xemacs.org>
6059 * *: Spelling mega-patch
6061 2000-09-19 Martin Buchholz <martin@xemacs.org>
6063 * fns.c (bad_bad_turtle):
6064 Delete "Eek!" comment, since we fixed the bug to which it refers.
6066 2000-09-16 Martin Buchholz <martin@xemacs.org>
6068 * alloca.c: Replace REGISTER with register.
6070 2000-09-16 Daiki Ueno <ueno@unixuser.org>
6072 * file-coding.c (ucs_to_char): Use countof.
6074 2000-09-16 Martin Buchholz <martin@xemacs.org>
6076 * file-coding.c: (ucs_to_char):
6077 (complex_vars_of_file_coding):
6078 Use countof instead of sizeof.
6079 Use CHECK_NATNUM instead of CHECK_INT.
6081 * sysdep.c (strcasecmp): Remove.
6082 * device-x.c (ascii_strcasecmp): New.
6083 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6084 Avoid using non-standard non-portable strcasecmp.
6086 2000-09-16 Martin Buchholz <martin@xemacs.org>
6088 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6089 * font-lock.c: remove reference to emacsfns.h.
6090 * search.c: small doc improvement.
6091 * event-Xt.c: correct file names in comments.
6092 * console-x.h Correct file names in comments.
6093 * frame.c: Correct file names in comments.
6094 * event-stream.c: remove Energize from comments.
6096 2000-09-15 Martin Buchholz <martin@xemacs.org>
6098 * symeval.h (DEFERROR_STANDARD):
6101 (DEFSYMBOL_NO_DUMP):
6102 (DEFSYMBOL_MULTIWORD_PREDICATE):
6103 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6105 The construct &##name is not sensible C.
6106 Fixes compilation errors with Unixware native compiler.
6108 2000-09-14 Martin Buchholz <martin@xemacs.org>
6110 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6111 (next_frame_internal): Removed. We now just have next_frame.
6113 Write a simpler and cleaner one-pass algorithm.
6114 Remove called_from_delete_device arg and #ifdefed-out code.
6116 Renamed from prev_frame. Update callers.
6117 Cleaned up to have an analogous implementation to next_frame.
6118 (other_visible_frames_internal): Remove the
6119 called_from_delete_device bogus arg, and hence, remove this
6120 function. Just use other_visible_frames().
6122 * window.c (Fnext_window):
6124 Since next_frame() is guaranteed to return a frame, remove check
6125 for nil inserted in previous patch.
6128 Make code look more like Fnext_window.
6130 Respect the `console' arg when iterating through windows.
6131 Fixes bug: (get-buffer-window buffer t device) not respecting
6133 This function needs more work, as others have pointed out.
6135 * frame.h: Rename prev_frame to previous_frame.
6136 device_matches_console_spec no longer takes a `frame' arg.
6141 Use EMACS_BLOCK_SIGNAL instead of sigblock.
6142 From "Golubev I. N." <gin@mo.msk.ru>.
6144 * make-src-depend: Fix typo.
6146 2000-09-13 Martin Buchholz <martin@xemacs.org>
6148 * window.c (Fnext_window):
6149 next_frame() might return nil, not a frame.
6151 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6153 * frame.c (next_frame_internal):
6154 We've passed a frame if we've passed its device.
6156 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6157 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6159 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
6161 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6162 Allow option to suppress accelerators in menu/dialog items.
6163 (populate_or_checksum_helper): Pass dialog title through above.
6165 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
6167 * event-msw.c (mswindows_key_to_emacs_keysym):
6168 Add "pause" key, fix "menu" key.
6170 2000-09-09 Martin Buchholz <martin@xemacs.org>
6172 * eval.c (reinit_vars_of_eval):
6173 Increase max_lisp_eval_depth to 1000,
6174 required for thai-xtis.el to byte-compile under some circumstances.
6176 2000-09-04 Martin Buchholz <martin@xemacs.org>
6178 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6181 2000-09-01 Martin Buchholz <martin@xemacs.org>
6183 * make-src-depend: Make the generated Makefiles smaller.
6185 * s/hpux.h (SETUP_SLAVE_PTY):
6186 Provide a %d in the format string for the errno argument.
6188 * editfns.c (Ftemp_directory):
6190 Avoid buffer overrun on very long file name.
6192 * input-method-xlib.c (XIM_init_device):
6193 6th parameter of XRegisterIMInstantiateCallback has different
6194 pointer types on different OSes, so simply cast to (void *).
6196 * unexhp9k800.c: Warning fixes. Fiddly changes.
6198 * sysdll.c (dll_open):
6199 shl_load will hang hard if passed a NULL filename.
6200 Simply return NULL for compatibility with dlopen.
6201 * sysdll.c: Conform to XEmacs coding standards.
6203 * sysdep.c (get_pty_max_bytes):
6204 Support pty input lines longer than 512 bytes on HP-UX 10.20.
6206 2000-08-31 Martin Buchholz <martin@xemacs.org>
6208 * tooltalk.c: Add #include <syssignal.h>
6210 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
6212 * s/hpux.h: Don't use undefined function sigunblock().
6214 2000-08-31 Martin Buchholz <martin@xemacs.org>
6216 * config.h.in: Add HAVE_BALLOON_HELP.
6217 * emacs.c: Use HAVE_BALLOON_HELP.
6218 * Makefile.in.in (x_objs):
6219 Make Balloon Help conditional on finding shape.h.
6221 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
6223 * syntax.c (regex_emacs_buffer_p): New variable.
6224 * syntax.h (regex_emacs_buffer_p): extern.
6225 * search.c (looking_at_1):
6227 (fast_string_match):
6228 (search_buffer): Set regex_emacs_buffer_p.
6229 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6230 when before_dot, at_dot, after_dot.
6232 2000-08-23 Andy Piper <andy@xemacs.org>
6234 * gui-x.c (popup_selection_callback): Only set action_occurred
6235 when we really have an image instance.
6236 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6238 2000-08-23 Andy Piper <andy@xemacs.org>
6240 * gui-msw.c (mswindows_handle_gui_wm_command): set
6242 * gui-x.c (popup_selection_callback): ditto.
6244 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6245 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6246 (struct Lisp_Image_Instance): add action_occurred flag.
6248 * glyphs.c (redisplay_subwindow): use action_occurred flag.
6249 (image_instance_changed): ditto.
6250 (reset_frame_subwindow_instance_cache): only unmap windows - do
6251 not remove them from the cache also.
6253 * glyphs-widget.c (tab_control_update): better debug.
6254 (progress_gauge_update): ditto.
6255 (layout_update): ditto.
6256 (layout_instantiate): ditto.
6257 (tab_control_order_only_changed): cope with null pending items.
6259 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6260 debug. Force selection of an item when an action occurred. Cope
6261 with null pending_items.
6262 (mswindows_progress_gauge_redisplay): better debug.
6263 * glyphs-x.c (x_tab_control_redisplay): ditto.
6265 * redisplay.c (redisplay_frame): reset the frame cache if the
6268 * window.c (Fset_window_configuration): potentially re-enable
6270 (window_unmap_subwindows): need to finalize instances here since
6271 it is only used in mark_window_as_deleted.
6273 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
6275 * nas.c (SndOpenDataForReading):
6276 nas.c (WaveOpenDataForReading):
6277 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6278 Somehow escaped from the 2000-08-14 patch.
6280 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6282 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6283 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6285 2000-08-21 Andy Piper <andy@xemacs.org>
6287 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6288 window if it is not already displayed.
6290 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6291 it is not already displayed.
6293 * window.c (Fset_window_configuration): don't reset the frame
6296 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6297 instances from the frame cache if we are actually finalizing them.
6298 (reset_frame_subwindow_instance_cache): reset frame cache only
6299 after unmapping everything.
6300 (map_subwindow): set displayed flag after mapping.
6302 2000-08-21 Martin Buchholz <martin@xemacs.org>
6304 * data.c (indirect_function):
6305 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6307 * eval.c (function_argcount):
6308 Use original function when signaling errors.
6310 2000-08-18 Andy Piper <andy@xemacs.org>
6312 * frame.c (delete_frame_internal): use new
6313 free_frame_subwindow_instances name.
6315 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6316 (add_tab_item): make return type correct.
6317 (mswindows_tab_control_instantiate): assert index of tab.
6318 (mswindows_tab_control_redisplay): Re-code to use
6319 gui_item_equal_sans_selected and gui_item_list_find_selected.
6321 * glyphs-widget.c (tab_control_update): Correct comment.
6323 * window.c (window_unmap_subwindows): use new
6324 unmap_subwindow_instance_cache_mapper.
6325 (window_unmap_subwindows_cache_mapper): deleted.
6326 (Fset_window_configuration): comparisons should now be with
6327 EQ. Preserve the subwindow instance cache across configuration
6329 (allocate_window): ditto.
6330 (make_dummy_parent): ditto.
6332 * glyphs.c (free_frame_subwindow_instances): rename from
6333 free_frame_subwindow_instance_cache. finalize all instances rather
6334 than just those in the display cache.
6335 (finalize_all_subwindow_instances): walk windows unmapping and
6336 finalizing subwindows.
6337 (unmap_subwindow_instance_cache_mapper): moved from
6338 window.c. Allow finalization as well as unmapping.
6340 * gui.c (gui_item_list_find_selected): new function.
6342 * gui.h (gui_item_list_find_selected): declare.
6344 * glyphs-x.c (x_tab_control_redisplay): pick tab
6345 explicitly. Re-code to use gui_item_equal_sans_selected and
6346 gui_item_list_find_selected.
6348 * glyphs-x.h: add lwlib-utils.h
6350 * buffer.c (Frecord_buffer): undo previous change.
6352 2000-08-09 Vin Shelton <acs@xemacs.org>
6354 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6355 possible. Create temporary files more securely. The patch was
6356 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6357 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
6358 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6361 2000-08-07 Ben Wing <ben@xemacs.org>
6363 * getloadavg.c: remove duplicate (and windows-breaking)
6364 includes of fcntl.h and sys/file.h.
6366 * nt.c: remove duplicate getloadavg() definition.
6368 * sysdll.h (Qdll_filename_encoding): add missing stand-in
6371 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
6373 * eval.c (function_argcount): If function needs to be autoloaded
6374 actually use the loaded definition.
6377 2000-08-05 Ben Wing <ben@xemacs.org>
6379 * getloadavg.c: add prototype for getloadavg(). remove
6380 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6381 of the code). remove duplicate header includes.
6383 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6385 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6386 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6387 useful load average.
6389 * alloc.c (reinit_alloc_once_early): removed references to
6390 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6391 the lisp vars are the only things referencing the malloc_sbrk_*
6392 vars, and they were already if 0'd out. these vars only exist
6393 in the older malloc.c, which is basically unused, and they're
6394 only for informational purposes.
6396 * m\*.h: removed useless VIRT_ADDR_VARIES.
6398 * m\powerpc.h: removed stray NO_ARG_ARRAY.
6400 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
6402 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6403 color if the image is a mono pixmap.
6405 2000-07-30 Ben Wing <ben@xemacs.org>
6407 * Makefile.in.in (release):
6410 * buffer.c (directory_is_current_directory):
6411 * dired-msw.c (mswindows_get_files):
6413 * dired.c (Fdirectory_files):
6414 * dired.c (file_name_completion_stat):
6415 * dired.c (Ffile_attributes):
6416 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6417 preprocessor tricks, to avoid problems on some machines
6420 * callproc.c (egetenv): GC docs.
6423 * console-msw.h (struct mswindows_dialog_id):
6424 * lrecord.h (lrecord_type):
6425 New object for use with MSW dialogs.
6427 * console.h (struct console_methods):
6428 New enable/disable frame methods, for proper modal dialogs.
6430 * device-msw.c (msprinter_default_printer): Fix to follow
6431 proper Mule conventions.
6434 * device-msw.c (signal_open_printer_error):
6435 * device-msw.c (msprinter_init_device):
6436 * device-msw.c (ensure_not_printing):
6437 * device-msw.c (plist_get_margin):
6438 * device-msw.c (Fmsprinter_select_settings):
6439 * device-msw.c (finalize_devmode):
6440 * device-msw.c (Fmsprinter_settings_despecialize):
6441 * device-msw.c (signal_enum_priner_error):
6442 * extents.c (decode_extent):
6443 * extents.c (decode_map_extents_flags):
6444 * extents.c (decode_extent_at_flag):
6445 * extents.c (Fextent_at):
6446 * extents.c (Fextents_at):
6447 * extents.c (symbol_to_glyph_layout):
6448 [[[[2]]]] Use structured errors.
6451 * dialog-msw.c (mswindows_is_dialog_msg):
6452 * dialog-msw.c (mark_mswindows_dialog_id):
6453 * dialog-msw.c (dialog_proc):
6454 * dialog-msw.c (handle_question_dialog_box):
6455 * dialog-msw.c (syms_of_dialog_mswindows):
6456 Define new object to clean up marking; use it as a dialog identifier.
6457 Call new delete-dialog-box-hook.
6459 * dialog-x.c (dbox_selection_callback):
6460 * dialog-x.c (dbox_descriptor_to_widget_value):
6461 * dialog-x.c (x_make_dialog_box_internal):
6462 Call new delete-dialog-box-hook.
6466 * dialog.c (syms_of_dialog):
6467 * dialog.c (vars_of_dialog):
6468 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6471 * eval.c (signal_call_debugger):
6472 when noninteractive, output stack traces on the console instead
6473 of in a (never-seen) buffer.
6475 * eval.c (signal_type_error):
6476 * eval.c (invalid_argument_2):
6478 new funs for use w/structured errors.
6481 * event-Xt.c (x_to_emacs_keysym):
6482 * event-Xt.c (describe_event):
6483 * event-Xt.c (emacs_Xt_event_handler):
6484 * event-Xt.c (vars_of_event_Xt):
6486 * event-msw.c (mswindows_wnd_proc):
6487 * event-msw.c (vars_of_event_mswindows):
6488 rename {x,mswindows}-debug-events to debug-{}-events for
6489 consistency with other debug-foo variables.
6492 document next-event more clearly.
6494 * fileio.c (Ffile_name_directory):
6495 * fileio.c (Ffile_name_nondirectory):
6496 * fileio.c (Funhandled_file_name_directory):
6497 * fileio.c (file_name_as_directory):
6498 * fileio.c (Ffile_name_as_directory):
6499 * fileio.c (directory_file_name):
6500 * fileio.c (Fdirectory_file_name):
6501 * fileio.c (Fmake_temp_name):
6502 * fileio.c (Ffile_truename):
6503 * fileio.c (Fsubstitute_in_file_name):
6504 * fileio.c (expand_and_dir_to_file):
6505 * fileio.c (barf_or_query_if_file_exists):
6506 * fileio.c (check_executable):
6507 * fileio.c (Ffile_exists_p):
6508 * fileio.c (Ffile_writable_p):
6509 * fileio.c (Ffile_directory_p):
6510 * fileio.c (Ffile_regular_p):
6511 * fileio.c (Ffile_modes):
6512 * fileio.c (Ffile_newer_than_file_p):
6513 * fileio.c (Fverify_visited_file_modtime):
6514 * fileio.c (Fset_visited_file_modtime):
6515 * fileio.c (auto_save_1):
6520 * frame-msw.c (mswindows_init_frame_1):
6521 * frame-msw.c (mswindows_enable_frame):
6522 * frame-msw.c (error_frame_unsizable):
6523 * frame-msw.c (msprinter_init_frame_1):
6524 * frame-msw.c (msprinter_init_frame_3):
6525 * frame-msw.c (console_type_create_frame_mswindows):
6527 implement new enable/disable frame methods.
6530 * frame-x.c (x_enable_frame):
6531 * frame-x.c (console_type_create_frame_x):
6532 implement new enable/disable frame methods.
6535 * frame.c (Fdisable_frame):
6536 * frame.c (syms_of_frame):
6537 * frame.h (struct frame):
6538 implement new enable/disable frame methods/functions.
6543 * glyphs-msw.c (mswindows_widget_instantiate):
6544 comment that initial-focus should be implemented.
6547 * glyphs-widget.c (check_valid_instantiator):
6548 * glyphs-widget.c (check_valid_orientation):
6549 * glyphs-widget.c (check_valid_tab_orientation):
6550 * glyphs-widget.c (check_valid_justification):
6551 * glyphs-widget.c (check_valid_border):
6552 * glyphs-widget.c (check_valid_callback):
6553 * glyphs-widget.c (check_valid_int_or_function):
6554 * glyphs-widget.c (check_valid_string_or_vector):
6555 * glyphs-widget.c (check_valid_item_list_1):
6556 * glyphs-widget.c (widget_validate):
6557 * glyphs-widget.c (combo_box_validate):
6558 * glyphs-widget.c (widget_instantiate):
6559 * glyphs-widget.c (syms_of_glyphs_widget):
6560 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6561 * glyphs-widget.c (image_instantiator_combo_box):
6562 * glyphs-widget.c (image_instantiator_scrollbar):
6563 * glyphs-widget.c (image_instantiator_tab_control):
6564 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6566 support (unimplemented) keyword initial-focus.
6567 reindent long macros.
6569 * glyphs-x.c (x_redisplay_widget):
6570 * glyphs-x.c (x_button_instantiate):
6571 * glyphs-x.c (x_button_redisplay):
6572 * glyphs-x.c (x_progress_gauge_instantiate):
6573 * glyphs-x.c (x_edit_field_instantiate):
6574 * glyphs-x.c (x_combo_box_instantiate):
6575 * glyphs-x.c (x_tab_control_instantiate):
6576 * glyphs-x.c (x_label_instantiate):
6578 * gui-x.c (button_item_to_widget_value):
6579 * gui-x.c (gui_items_to_widget_values_1):
6580 * gui-x.c (gui_item_children_to_widget_values):
6581 * gui-x.c (gui_items_to_widget_values):
6583 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6584 add new flag to gui-parsing routines to indicate whether
6585 accelerator specs should be supported.
6587 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6589 * glyphs.h (struct Lisp_Image_Instance):
6590 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6591 add initial-focus flag.
6594 * gui.c (syms_of_gui):
6595 * gui.c (vars_of_gui):
6596 clean up menu-no-selection-hook.
6599 support delete-dialog-box-hook.
6601 * lread.c (Fload_internal):
6602 * lread.c (locate_file_in_directory_mapper):
6606 * lrecord.h (struct toolbar_button):
6607 * lrecord.h (syms_of_toolbar):
6608 document how to create a new object.
6610 * menubar-msw.c (mswindows_char_is_accelerator):
6611 may be called on frames w/o menus.
6613 * menubar.c (vars_of_menubar):
6614 clean up :filter docs.
6621 * process-nt.c (validate_signal_number):
6622 * process-nt.c (signal_cannot_launch):
6623 * process-nt.c (nt_create_process):
6624 * process-nt.c (nt_send_process):
6625 * process-nt.c (nt_kill_child_process):
6626 * process-nt.c (nt_open_network_stream):
6627 * process-nt.c (syms_of_process_nt):
6629 delete quote-handling. call new lisp code that does it better.
6631 * process-unix.c (connect_to_file_descriptor):
6632 * process-unix.c (allocate_pty):
6633 * process-unix.c (unix_send_process):
6634 * process-unix.c (unix_kill_child_process):
6635 * process-unix.c (unix_open_network_stream):
6636 * process-unix.c (unix_open_multicast_group):
6640 * process.c (Fstart_process_internal):
6641 (2). need to canonicalize process path even if absolute.
6643 * select-msw.c (symbol_to_ms_cf):
6644 * select-msw.c (ms_cf_to_symbol):
6645 * select-msw.c (cf_is_autofreed):
6646 * select-msw.c (mswindows_destroy_selection):
6648 * select.c (syms_of_select):
6650 support dibv5, fix bugs. (from Mike Alexander)
6652 * select.c (Fget_selection_internal):
6653 * select.c (select_convert_out):
6656 * sysdep.c (xemacs_stat):
6661 but keep original stat() here because we provide encapsulation
6665 * sysfile.h (fstat):
6666 remove stat garbage.
6670 don't include tchar.h. it's inappropriate because it makes
6671 compile-time distinctions when we want runtime distinctions.
6672 (we provide our own tchar replacements)
6675 use default object printer for toolbar-button.
6678 make sure we don't encapsulate.
6680 * window.c (vars_of_window):
6681 emphasize that temp-buffer-show-hook is obsolete.
6683 2000-08-05 Martin Buchholz <martin@xemacs.org>
6685 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6686 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6688 * events.c (Fevent_timestamp_lessp):
6689 Not 64-bit clean. Use EMACS_INT, not int.
6691 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
6693 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6694 unsigned int and changed the last enum to
6695 lrecord_type_last_built_in_type.
6696 (lrecord_implementations_table): changed prototype to know how
6697 long the array is supposed to be.
6698 (lrecord_type_count): new unsigned int to keep track of the
6699 current number of lisp lrecord types.
6700 (DEFINE_EXTERNAL_LRECORD):
6701 (DECLARE_EXTERNAL_LRECORD): Added these two for external
6702 dynamic-modules to declare new lisp types. They are the same
6703 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6704 int for each new type, and increment lrecord_type_count by 1.
6706 * alloc.c (lrecord_implementations_table): Changed to reference
6707 lrecord_type_last_built_in_type for the size of the array.
6708 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6710 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6712 * glyphs.h (check_valid_item_list): Renamed from
6713 check_valid_item_list_1.
6715 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6717 * select.c (Qselect_coerce): New.
6718 * select.c (Vselection_coercion_alist): New.
6719 * select.c (syms_of_select): Declare.
6720 * select.c (get-selection-internal): Use it.
6721 Use the new select-coerce functionality.
6723 * select.c (select_coerce): New.
6724 * select.h (select_coerce): Declare.
6725 New function to coerce one type of data into another.
6727 2000-08-03 Martin Buchholz <martin@xemacs.org>
6729 * callproc.c (Fcall_process_internal):
6730 (Fcall_process_internal):
6731 * process-unix.c (unix_create_process):
6732 Save and restore the value of errno, so that error messages are accurate.
6734 2000-08-01 Martin Buchholz <martin@xemacs.org>
6736 * elhash.c (print_hash_table):
6737 Fix printing of hash tables to also use `key-and-value' instead of `t'.
6738 Prettify docstrings and indentation.
6740 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
6742 * window.c (Fwindow_pixel_edges): Subtract frame border and
6745 2000-07-31 Andy Piper <andy@xemacs.org>
6747 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6748 will acknowledge the change.
6750 * glyphs.h: declare tab_control_order_only_changed.
6752 * glyphs-x.c (x_tab_control_redisplay): use
6753 tab_control_order_only_changed.
6755 * glyphs-widget.c (tab_control_order_only_changed): new function.
6757 * glyphs-msw.c (mswindows_tab_control_redisplay): use
6758 tab_control_order_only_changed.
6760 * gui.c (gui_item_equal_sans_selected): new function.
6761 (gui_item_equal): use it.
6763 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6764 :properties in favor of :items..
6766 * glyphs-widget.c (check_valid_item_list): rename from
6767 check_valid_item_list_1.
6768 (check_valid_item_list_1): renamed.
6769 (combo_box_validate): deprecate :properties in favor of :items.
6770 (widget_instantiate): ditto.
6771 (tab_control_update): ditto.
6772 (image_instantiator_combo_box): ditto.
6773 (image_instantiator_tree_view): ditto.
6774 (image_instantiator_tab_control): ditto.
6775 (layout_post_instantiate): remove dead code.
6777 * print.c (debug_print_no_newline): only write to debugger if in
6780 * elhash.c (Fmake_hash_table): update doc string.
6782 * event-msw.c (mswindows_wnd_proc): don't allow processing of
6783 messages whilst in GC. This at least stops XEmacs crashing but has
6784 the potential for wierd behaviour.
6786 2000-07-31 Martin Buchholz <martin@xemacs.org>
6789 Make existence of s&m files optional.
6791 * s/bsd386.h: Remove HAVE_GETLOADAVG.
6792 * s/freebsd.h: Remove HAVE_GETLOADAVG.
6793 * s/gnu.h: Remove HAVE_GETLOADAVG.
6794 * s/netbsd.h: Remove HAVE_GETLOADAVG.
6795 * s/sol2.h: Remove HAVE_GETLOADAVG.
6796 * lisp.h: Remove getloadavg() declaration.
6798 Include <sys/loadavg.h> if available.
6799 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6800 * config.h.in: Group together getloadavg()-related macros.
6801 Use only configure-time tests to detect getloadavg().
6803 2000-07-30 Martin Buchholz <martin@xemacs.org>
6805 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6807 2000-07-25 Andy Piper <andy@xemacs.org>
6809 * syswindows.h: add tchar.h for native builds.
6811 * frame.c (syms_of_frame): remove set-glyph-image.
6813 * general-slots.h: add Qset_glyph_image.
6815 * glyphs-widget.c (layout_update): add domain arg to
6817 (syms_of_glyphs_widget): remove set-glyph-image.
6819 2000-07-23 Ben Wing <ben@xemacs.org>
6821 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6824 2000-07-22 Andy Piper <andy@xemacs.org>
6826 * symsinit.h: add syms_of_win32().
6828 * gui-msw.c (syms_of_gui_mswindows): remove
6829 Fmswindows_shell_execute.
6830 (Fmswindows_shell_execute): moved to win32.c.
6832 * emacs.c (main_1): add syms_of_win32 ().
6834 * win32.c (init_potentially_nonexistent_functions): rewrite in
6835 compiler-friendly terms.
6836 (Fmswindows_shell_execute): move here from gui-msw.c.
6837 (syms_of_win32): new.
6839 * device-msw.c (Fmswindows_printer_list): clean up args to
6841 Don't include tchar under cygwin or mingw.
6842 (msprinter_default_printer): make cygwin-friendly.
6844 2000-07-21 Andy Piper <andy@xemacs.org>
6846 * glyphs-widget.c (image_instantiator_tree_view): use tab
6847 control's update function.
6848 (layout_property): new function. Retrieve items.
6850 * glyphs-msw.c (mswindows_tree_view_redisplay): new
6851 function. Re-populate the tree view from the pending items.
6853 * glyphs.c (instantiate_image_instantiator): Make sure the domain
6854 is designated the parent if the domain is an image instance. This
6855 is needed so that dirtiness can be cascade up the hierarchy and
6856 thus for layout children to be redisplayed correctly.
6857 (allocate_image_instance): rename glyph -> parent.
6859 * redisplay.h: change redisplay_output_layout signature.
6861 * redisplay-msw.c (mswindows_output_display_block): use domain
6864 * redisplay-x.c (x_output_display_block): use domain arg.
6866 2000-07-10 Andy Piper <andy@xemacs.org>
6868 * window.c (Fset_window_configuration): add comment.
6870 * redisplay-output.c (compare_runes):
6871 (redisplay_output_subwindow): redisplay rather than update subwindow.
6872 (redisplay_output_layout): ditto.
6874 * redisplay-msw.c (mswindows_frame_output_end):
6875 (mswindows_frame_output_end): make defer window pos optional.
6877 * lisp.h: add Flast.
6879 * glyphs.h (struct image_instantiator_methods): add dest_mask top
6880 normalize method. Change update method to be for changed
6881 instantiators. Add redisplay method. Change signature of layout
6883 (struct Lisp_Image_Instance): add instantiator.
6884 (IMAGE_INSTANCE_INSTANTIATOR): new.
6885 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6886 (XIMAGE_INSTANCE_INSTANTIATOR): new.
6887 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6890 (find_instantiator_differences): new function.
6891 (Fset_instantiator_property): new convenience function.
6892 (check_image_instance_structure): strictly check for vector
6894 (normalize_image_instantiator): make non-static.
6895 (instantiate_image_instantiator): pass on dest_mask and use new
6896 signatures for image_instance_layout and friends.
6897 (mark_image_instance): mark the instantiator. Mark the subwindow
6898 face not the widget face.
6899 (image_instance_equal): add instantiator.
6900 (image_instance_hash): ditto.
6901 (allocate_image_instance): ditto.
6902 (Fset_image_instance_property): removed.
6903 (Fimage_instance_file_name): ditto.
6904 (Fcolorize_image_instance): ditto.
6905 (image_instance_layout): add offsets to be set.
6906 (update_image_instance): new function. update an image instance
6907 from its changed instantiator.
6908 (inherit_normalize): add dest_mask.
6909 (xbm_normalize): ditto.
6910 (xface_normalize): ditto.
6911 (xpm_normalize): ditto.
6912 (text_update): set_property -> update.
6913 (image_instantiate): use the glyph identity as a hash key, not the
6915 (glyph_width): use new image_instance_layout signature.
6916 (glyph_ascent): ditto.
6917 (glyph_descent): ditto.
6918 (glyph_height): ditto.
6919 (glyph_query_geometry): ressurrect.
6920 (glyph_layout): ditto.
6921 (redisplay_subwindow): update -> redisplay.
6922 (syms_of_glyphs): add Fset_instantiator_property.
6923 (image_instantiator_format_create): set_property -> update.
6926 (autodetect_normalize): add dest_maks to signature.
6927 (x_redisplay_subwindow): update -> redisplay.
6928 (x_redisplay_widget): ditto.
6929 (x_button_redisplay): ditto.
6930 (x_progress_gauge_redisplay): ditto.
6931 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6933 (console_type_create_glyphs_x): update -> redisplay.
6934 (image_instantiator_format_create_glyphs_x): ditto.
6937 (check_valid_instantiator): disallow glyphs in the instantiator,
6938 they must now be vectors.
6939 (check_valid_instantiator_list): ditto.
6940 (glyph_instantiator_to_glyph): use internal symbol rather than
6942 (widget_update): renamed from widget_set_property. Call cascaded
6944 (redisplay_widget): renamed from update_widget.
6945 (widget_layout): image_instance_layout now takes position as well
6947 (widget_normalize): ditto.
6948 (widget_instantiate): ditto.
6949 (tab_control_query_geometry) ditto.:
6950 (tab_control_update): renamed from tab_control_set_property.
6951 (progress_gauge_update): set_property -> update.
6952 (layout_normalize): rewrite so that child instantiators are
6954 (layout_update): new function. Create glyphs from the normalized
6955 children and cope with any other layout keywords. We do not
6956 instantiate children here that will be take care of by
6957 redisplay_output_layout.
6958 (layout_instantiate): call layout_update and not much else.
6959 (layout_post_instantiate): not sure whether this is needed
6961 (layout_query_geometry): query glyph geometry rather than
6962 image_instance geometry.
6963 (layout_layout): set offsets from pass in parameters. Use glyph
6964 geometry and layout functions rather than image instance ones.
6965 (native_layout_layout): ditto.
6966 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6967 (image_instantiator_widget): set_property -> update.
6968 (image_instantiator_buttons): ditto.
6969 (image_instantiator_progress_guage): ditto.
6970 (image_instantiator_tab_control): ditto.
6971 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6972 (image_instantiator_layout): add update method.
6974 * glyphs-msw.c (bmp_normalize):
6975 (mswindows_resource_normalize): add dest_mask so that it can be
6976 proprogated by layout_normalize.
6977 (begin_defer_window_pos): make optional because it may not be the
6978 right thing to do and it introduces differences with X.
6979 (mswindows_unmap_subwindow): ditto.
6980 (mswindows_map_subwindow): ditto.
6981 (mswindows_redisplay_subwindow): renamed from
6982 mswindows_update_subwindow.
6983 (mswindows_redisplay_widget): ditto.
6984 (mswindows_button_redisplay): renamed from
6985 mswindows_button_update. Update is now what the instantiation
6986 function does for a changed instantiator.
6987 (mswindows_progress_gauge_instantiate): set the progress value
6988 here if appropriate.
6989 (mswindows_tab_control_redisplay): cope with re-ordering of the
6990 members of the tab widget by simply selecting the new top
6991 widget. This makes things appear ok if you click on a tab.
6992 (mswindows_combo_box_instantiate): image_instance_layout now takes
6993 position as well as size.
6994 (mswindows_progress_gauge_redisplay): renamed from
6995 mswindows_progress_gauge_update.
6996 (console_type_create_glyphs_mswindows): fix update -> redisplay.
6997 (image_instantiator_format_create_glyphs_mswindows): ditto.
6999 * glyphs-eimage.c (jpeg_normalize):
7002 (tiff_normalize): add dest_mask so that it can be proprogated by
7007 (hash_table_weakness_validate):
7008 (decode_hash_table_weakness):
7009 (Fhash_table_weakness):
7011 (syms_of_elhash): use Ben's naming scheme for hashtable types..
7013 * console.h (struct console_methods): move update_* to
7016 2000-07-20 Ben Wing <ben@xemacs.org>
7018 * *.[ch] (XSETOBJ): remove unused middle argument.
7019 lisp-disunion.h: correct wrap_object() to one argument.
7021 2000-07-15 Ben Wing <ben@xemacs.org>
7024 * s/cygwin32.h (CYGWIN_CONV_PATH):
7025 Add missing logb prototype for v1.1.
7026 Use post-b20 names and alias to pre-b20 names when pre-b20.
7028 * s/windowsnt.h: [5].
7030 2000-07-15 Ben Wing <ben@xemacs.org>
7032 * Makefile.in.in (x_objs):
7033 * Makefile.in.in (sheap_objs):
7034 * Makefile.in.in (objs):
7035 added win32.o, cosmetic cleanups.
7037 * alloc.c (Fmake_byte_code):
7038 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7039 etc. macros which declare their own args now.
7041 * alloc.c (syms_of_alloc):
7042 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7045 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7047 * buffer.c (Fget_file_buffer):
7048 Fixed GCPRO problem.
7050 * buffer.c (get_truename_buffer):
7051 Fixed comment about GC checking.
7053 * buffer.c (syms_of_buffer):
7054 Undeclared those dedicated frame funs.
7058 Define convenience macros for internal/external conversions.
7059 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7060 and Qenvironment_variable_encoding for cleaner code.
7063 Remove dedicated-frame; in lisp.
7065 * bytecode.c (funcall_compiled_function):
7068 * bytecode.c (syms_of_bytecode):
7072 * console-msw.c (mswindows_show_console): Rewrote.
7074 * console-msw.c (Fmswindows_debugging_output): New.
7075 Sends to OutputDebugString (special MSWin debugger interface).
7077 * console-msw.c (Fmswindows_message_box):
7078 Fixed stupid bugs so it works when called from kill-emacs.
7080 * console-msw.c (syms_of_console_mswindows):
7081 Declare Fmswindows_debugging_output.
7084 New MSWin prototypes.
7086 * console-msw.h (struct mswindows_frame):
7087 New entry last-click-mods for improved button-modifier support.
7089 * console-msw.h (FRAME_MSWINDOWS_POPUP):
7090 New struct entry `popup' with corresponding accessor.
7093 * console-x.c (split_up_display_spec):
7094 * console-x.c (get_display_arg_connection):
7095 * console-x.c (x_semi_canonicalize_console_connection):
7096 * console-x.c (x_canonicalize_device_connection):
7097 [[[6]]]: Change char to more specific type.
7098 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7100 * console-x.c (x_semi_canonicalize_console_connection):
7101 * console-x.c (x_canonicalize_device_connection):
7102 [[[9]]]: Fix up error signalling to use new structured error system.
7105 [[[4]]]: Define codesys aliases:
7106 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7107 Qx_color_name_encoding, Qx_display_name_encoding.
7109 * console.h (struct console_methods):
7110 New method make_dialog_box_internal supersedes older
7111 popup_dialog_box method.
7114 Define many new errors, part of new structured errors.
7116 * data.c (init_errors_once_early):
7117 * data.c (syms_of_data):
7120 * device-msw.c (mswindows_init_device):
7121 [[[5]]]: Cleanup to support NT 3.51.
7123 * device-msw.c (decode_devmode): Cleanup.
7125 * device-msw.c (mswindows_handle_print_setup_dialog_box):
7126 * device-msw.c (mswindows_handle_print_dialog_box):
7127 * device-msw.c (mswindows_handle_page_setup_dialog_box):
7128 * device-msw.c (syms_of_device_mswindows):
7129 Delete the dialog box primitives recently introduced by Kirill and
7130 instead interface to general dialog box interface.
7133 * device-x.c (compute_x_app_name):
7134 * device-x.c (x_init_device):
7135 * device-x.c (Fx_valid_keysym_name_p):
7136 * device-x.c (Fx_set_font_path):
7140 * device.h (wrap_device): New.
7141 First of its kind; meant to replace XSETDEVICE.
7143 * dialog-msw.c: Many file-dialog symbols.
7145 * dialog-msw.c (mswindows_register_popup_frame): New.
7146 * dialog-msw.c (mswindows_is_dialog_msg): New.
7147 For supporting kbd traversal in dialog boxes.
7149 * dialog-msw.c (dialog_proc):
7150 Support hitting ESC in dialogs.
7152 * dialog-msw.c (struct):
7153 Common dialog box errors.
7155 * dialog-msw.c (handle_file_dialog_box): New.
7156 Add file dialog code.
7158 * dialog-msw.c (handle_question_dialog_box):
7159 Redo existing code to support new question dialog syntax.
7161 * dialog-msw.c (console_type_create_dialog_mswindows):
7162 We support new dialog console method.
7164 * dialog-msw.c (syms_of_dialog_mswindows):
7165 * dialog-msw.c (vars_of_dialog_mswindows):
7166 New file dialog symbols, vars.
7169 * dialog-x.c (maybe_run_dbox_text_callback):
7170 * dialog-x.c (dbox_descriptor_to_widget_value):
7171 * dialog-x.c (x_make_dialog_box_internal):
7172 * dialog-x.c (console_type_create_dialog_x):
7173 Mule-ize entire file.
7174 Redo to support question dialog syntax.
7178 * dialog.c (Fmake_dialog_box_internal):
7179 * dialog.c (syms_of_dialog):
7180 Kill old popup-dialog-box, replace with new primitive.
7181 Just call device method or signal error.
7183 * eldap.c (Fldap_open):
7184 * eldap.c (Fldap_search_basic):
7185 * eldap.c (Fldap_add):
7186 * eldap.c (Fldap_modify):
7191 * emacs.c (make_arg_list_1):
7192 * emacs.c (make_arg_list):
7193 Mule-ize call to dll_init().
7197 * emacs.c (make_argc_argv):
7198 * emacs.c (free_argc_argv):
7199 * emacs.c (init_cmdargs):
7201 * emacs.c (Fkill_emacs):
7202 * emacs.c (Fdump_emacs):
7203 Update comments about what can be used in syms_* etc.
7204 Call init_win32() when necessary.
7205 Fix up MS Win dialog box in kill-buffer to actually work right.
7216 * eval.c (condition_case_3):
7218 * eval.c (function_argcount):
7219 * eval.c (funcall_lambda):
7222 * eval.c (type_error): New.
7223 * eval.c (maybe_type_error): New.
7224 * eval.c (continuable_type_error): New.
7225 * eval.c (maybe_continuable_type_error): New.
7226 * eval.c (type_error_with_frob): New.
7227 * eval.c (maybe_type_error_with_frob): New.
7228 * eval.c (continuable_type_error_with_frob): New.
7229 * eval.c (maybe_continuable_type_error_with_frob): New.
7230 New functions for use with structured errors.
7233 * event-Xt.c (x_event_to_emacs_event):
7234 Buttons are now modifiers too.
7236 * event-Xt.c (emacs_Xt_current_event_timestamp):
7237 Implement new event method.
7238 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7241 * event-msw.c (ntpipe_shove_writer): [5].
7242 * event-msw.c (mswindows_enqueue_mouse_button_event):
7243 * event-msw.c (mswindows_drain_windows_queue):
7244 * event-msw.c (mswindows_wnd_proc): [7].
7245 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7246 * event-msw.c (mswindows_modifier_state):
7247 Throughout: support new button modifiers.
7249 * event-msw.c (emacs_mswindows_current_event_timestamp):
7250 Implement new event method.
7251 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7254 * event-stream.c (event_stream_current_event_timestamp): New.
7255 * event-stream.c (maybe_kbd_translate): New functionality.
7256 * event-stream.c (vars_of_event_stream):
7257 Document new kbd-translate-table functionality.
7259 * event-stream.c (Fcurrent_event_timestamp): New.
7260 New primitive for use in fabricated events.
7261 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7263 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7266 * events.c (Fmake_event):
7267 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7271 * events.c (format_event_object): fix gcc warnings.
7273 * events.c (Fevent_timestamp): Document new primitives.
7275 * events.c (TIMESTAMP_HALFSPACE): New.
7277 * events.c (Fevent_timestamp_lessp): New. New primitive for
7278 comparing timestamps correctly (half-space algorithm).
7280 * events.c (Fevent_modifier_bits): Doc fix.
7282 * events.c (Fevent_modifiers): Major doc addition.
7283 * events.c (event_x_y_pixel_internal): Typo fix.
7284 * events.c (syms_of_events): Declare new primitives.
7287 Update long comment for button modifiers, timestamps.
7289 * events.h (struct event_stream):
7290 New current_event_timestamp method.
7293 * extents.c (extent_in_region_p):
7294 * extents.c (decode_extent):
7295 * extents.c (Fset_extent_parent):
7296 * extents.c (decode_map_extents_flags):
7300 * extents.c (struct extent_at_arg):
7301 * extents.c (decode_extent_at_flag):
7302 * extents.c (extent_at_mapper):
7303 * extents.c (extent_at_bytind):
7304 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7305 * extents.c (Fextents_at): New primitive. [9].
7306 * extents.c (symbol_to_glyph_layout): [9].
7307 Support new primitive `extents-at'.
7310 * extents.c (get_text_property_bytind):
7311 extent_at_bytind has another arg.
7314 * extents.c (syms_of_extents): New primitive.
7316 * file-coding.c (Fmake_coding_system): [1].
7317 * file-coding.c (subsidiary_coding_system): fix gcc warning
7318 * file-coding.c (syms_of_file_coding): [2].
7320 * fileio.c (Fexpand_file_name):
7321 * fileio.c (Fsysnetunam):
7322 * fileio.c (Ffile_exists_p):
7323 * fileio.c (Ffile_executable_p):
7324 * fileio.c (Fverify_visited_file_modtime):
7327 * fileio.c (syms_of_fileio): [2].
7329 * filelock.c (lock_file_1):
7330 * filelock.c (current_lock_owner):
7331 * filelock.c (lock_if_free):
7332 * filelock.c (lock_file):
7333 * filelock.c (unlock_file):
7336 * fns.c (concat): Fix gcc warning.
7339 * fns.c (Fold_member):
7341 * fns.c (Fold_memq):
7342 * fns.c (memq_no_quit):
7344 * fns.c (Fold_assoc):
7346 * fns.c (Fold_assq):
7347 * fns.c (assq_no_quit):
7349 * fns.c (Fold_rassoc):
7351 * fns.c (Fold_rassq):
7352 * fns.c (rassq_no_quit):
7354 * fns.c (Fold_delete):
7356 * fns.c (Fold_delq):
7357 * fns.c (delq_no_quit):
7358 * fns.c (Fremassoc):
7360 * fns.c (remassq_no_quit):
7361 * fns.c (Fremrassoc):
7362 * fns.c (Fremrassq):
7363 * fns.c (remrassq_no_quit):
7368 * frame-msw.c (mswindows_init_frame_1):
7369 * frame-msw.c (mswindows_delete_frame):
7370 Register popups with dialog code so keyboard traversing works.
7372 * frame-tty.c (tty_raise_frame_no_select): [1].
7375 * frame-x.c (x_set_frame_text_value):
7376 * frame-x.c (x_set_frame_properties):
7377 * frame-x.c (x_create_widgets):
7381 * frame.c (Fmouse_pixel_position): Minor doc fixes.
7383 * frame.h (wrap_frame): New.
7384 Macro like wrap_device.
7387 * general.c (SYMBOL):
7388 * general.c (syms_of_general):
7389 Major reorg. This is now just a wrapper and symbols themselves
7390 are listed in general-slots.h.
7392 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7393 * glyphs-msw.c (mswindows_resource_instantiate): [5].
7395 * glyphs-msw.c (mswindows_native_layout_instantiate):
7396 Add DS_CONTROL so keyboard traversal will work.
7399 * glyphs-widget.c (syms_of_glyphs_widget):
7400 Move some symbols to general-slots.h.
7403 * glyphs-x.c (xbm_instantiate_1):
7404 * glyphs-x.c (x_xbm_instantiate):
7405 * glyphs-x.c (x_xface_instantiate):
7406 * glyphs-x.c (autodetect_instantiate):
7407 * glyphs-x.c (cursor_font_instantiate):
7408 * glyphs-x.c (x_update_widget):
7409 * glyphs-x.c (x_widget_instantiate):
7410 * glyphs.c (bitmap_to_lisp_data):
7411 * glyphs.c (pixmap_to_lisp_data):
7414 * glyphs.c (syms_of_glyphs):
7418 * gui-x.c (print_widget_value):
7419 * gui-x.c (menu_separator_style_and_to_external):
7420 * gui-x.c (add_accel_and_to_external):
7421 * gui-x.c (button_item_to_widget_value):
7422 * gui-x.c (gui_items_to_widget_values_1):
7423 * gui-x.c (gui_items_to_widget_values):
7424 * gui-x.c (syms_of_gui_x):
7425 * gui-x.c (vars_of_gui_x):
7426 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
7430 Muleize, prototype changes matching gui-x.c.
7433 * gui.c (separator_string_p):
7434 * gui.c (gui_item_add_keyval_pair):
7435 * gui.c (make_gui_item_from_keywords_internal):
7436 * gui.c (signal_too_long_error):
7437 * gui.c (parse_gui_item_tree_item):
7438 * gui.c (syms_of_gui):
7439 * gui.c (vars_of_gui):
7441 menu-no-selection-hook moved here (used by MSWin).
7442 Move some symbols to general-slots.h.
7446 * insdel.c (get_buffer_pos_char):
7447 * insdel.c (get_buffer_range_char):
7450 * keymap.c (keymap_lookup_directly):
7451 * keymap.c (keymap_store):
7452 * keymap.c (ensure_meta_prefix_char_keymapp):
7453 * keymap.c (describe_map):
7455 Support new button modifiers.
7457 * lisp-disunion.h (wrap_object):
7458 * lisp-disunion.h (XSETOBJ):
7459 Rename make_obj to wrap_object.
7462 * lisp-union.h (make_int):
7463 * lisp-union.h (make_char):
7464 Support wrap_object.
7467 * lisp.h (LIST_LOOP):
7468 * lisp.h (EXTERNAL_LIST_LOOP):
7469 * lisp.h (LIST_LOOP_2):
7470 * lisp.h (EXTERNAL_LIST_LOOP_1):
7471 * lisp.h (EXTERNAL_LIST_LOOP_2):
7472 * lisp.h (EXTERNAL_LIST_LOOP_3):
7473 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7474 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7475 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7476 * lisp.h (EXTERNAL_ALIST_LOOP_5):
7477 * lisp.h (EXTERNAL_ALIST_LOOP_6):
7478 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7479 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7480 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7481 * lisp.h (struct Lisp_Symbol):
7482 * lisp.h (maybe_continuable_error_with_frob):
7483 Fix up section comments.
7484 Add new types for char to indicate usage.
7485 Delete symbols auto-generated from general-slots.h.
7486 Add prototypes for structured error functions.
7487 Add long comments describing looping macros and change interface
7488 so that lvalues are automatically declared.
7489 Add NO_DECLARE macro in case callers want to declare lvalues
7492 * lread.c (read_syntax_error):
7493 * lread.c (continuable_read_syntax_error):
7494 * lread.c (read_structure):
7495 * lread.c (sequence_reader):
7496 * lread.c (read_list_conser):
7497 * lread.c (read_compiled_function):
7498 Rename syntax_error and continuable_syntax_error to avoid clash
7499 with same-named structured error functions.
7501 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7502 * menubar-msw.c (populate_menu_add_item):
7503 * menubar-msw.c (populate_or_checksum_helper):
7508 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7509 Mule-ize whole file.
7511 * menubar.c (Fnormalize_menu_item_name): Add optimization.
7513 * mule-charset.c (Fmake_charset):
7514 * mule-wnnfns.c (Fwnn_set_param):
7517 * ntproc.c (create_child):
7518 * ntproc.c (Fwin32_set_current_locale):
7519 Add comments portending doom.
7522 * objects-msw.c (old_font_enum_callback_2):
7523 * objects-msw.c (font_enum_callback_1):
7524 * objects-msw.c (mswindows_enumerate_fonts):
7528 * objects-x.c (allocate_nearest_color):
7529 * objects-x.c (x_parse_nearest_color):
7530 * objects-x.c (x_initialize_color_instance):
7531 * objects-x.c (x_print_color_instance):
7532 * objects-x.c (x_finalize_color_instance):
7533 * objects-x.c (x_valid_color_name_p):
7534 * objects-x.c (x_initialize_font_instance):
7535 * objects-x.c (x_print_font_instance):
7536 * objects-x.c (valid_x_font_name_p):
7537 * objects-x.c (truename_via_FONT_prop):
7538 * objects-x.c (truename_via_random_props):
7539 * objects-x.c (truename_via_XListFonts):
7540 * objects-x.c (x_font_truename):
7541 * objects-x.c (x_font_instance_truename):
7542 * objects-x.c (x_font_instance_properties):
7543 * objects-x.c (x_list_fonts):
7544 * objects-x.c (x_find_charset_font):
7545 Mule-ize entire file.
7552 * print.c (std_handle_out_external):
7553 * print.c (debug_print_no_newline):
7554 * print.c (syms_of_print):
7555 Output to all debugger kinds in debug-print.
7556 Fix console-output code under MSWin to actually work.
7558 * process-nt.c (send_signal):
7559 * process-nt.c (nt_create_process):
7560 Use newer Unicode macros.
7562 * process-unix.c (unix_create_process):
7563 * process-unix.c (unix_canonicalize_host_name):
7564 * process-unix.c (unix_open_network_stream):
7570 * search.c (syms_of_search):
7573 * select-msw.c (mswindows_destroy_selection):
7576 * select-x.c (symbol_to_x_atom):
7579 * select.c (syms_of_select):
7582 * sound.c (Fplay_sound_file):
7586 * specifier.c (decode_specifier_type):
7587 * specifier.c (Fvalid_specifier_locale_type_p):
7588 * specifier.c (check_valid_locale_or_locale_type):
7589 * specifier.c (decode_locale):
7590 * specifier.c (decode_locale_type):
7591 * specifier.c (decode_locale_list):
7592 * specifier.c (check_valid_domain):
7593 * specifier.c (decode_specifier_tag_set):
7594 * specifier.c (Fcanonicalize_tag_set):
7595 * specifier.c (Fdefine_specifier_tag):
7596 * specifier.c (Fspecifier_tag_predicate):
7597 * specifier.c (check_valid_inst_list):
7598 * specifier.c (check_valid_spec_list):
7599 * specifier.c (decode_how_to_add_specification):
7600 * specifier.c (check_modifiable_specifier):
7601 * specifier.c (specifier_add_spec):
7602 * specifier.c (boolean_validate):
7603 * specifier.c (display_table_validate):
7606 * specifier.c (syms_of_specifier):
7607 Move some symbols to general-slots.h.
7611 * symbols.c (Fmapatoms):
7612 * symbols.c (Fapropos_internal):
7615 * symbols.c (set_default_buffer_slot_variable):
7616 * symbols.c (set_default_console_slot_variable):
7619 * symbols.c (defsymbol_massage_name_1):
7620 * symbols.c (defkeyword_massage_name):
7621 * symbols.c (deferror_1):
7622 * symbols.c (deferror):
7623 * symbols.c (deferror_massage_name_and_message):
7625 * symeval.h (DEFSYMBOL):
7626 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7628 * symbols.c (syms_of_symbols):
7632 * symsinit.h (init_win32): New.
7633 Also new is syms_of_dialog_mswindows.
7636 Add new Unicode macros, missing Cygwin wide-char functions,
7637 convenience conversion macros for Qmswindows_tstr, macros for
7638 encapsulating required MSWin <-> Cygwin filename conversions,
7639 prototype for dynamically-extracted (not in NT 3.51) functions.
7644 * tooltalk.c (Fadd_tooltalk_message_arg):
7645 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7646 * tooltalk.c (Fadd_tooltalk_pattern_arg):
7649 * tooltalk.c (syms_of_tooltalk):
7653 * unexnt.c (unexec):
7654 Fix up headers, declaration of unexec() to be more standard.
7656 2000-07-20 Martin Buchholz <martin@xemacs.org>
7658 * offix.h: Revert change to guard macros - they're used in offix.c!
7660 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7662 * lisp.h: Defsubred Fdelete.
7664 * console-msw.h: (msprinter_default_printer): Added.
7666 * console-msw.c (msprinter_canonicalize_console_connection):
7667 (msprinter_canonicalize_device_connection): Added.
7669 * device-msw.c (msprinter_default_printer):
7670 (Fmswingows_get_default_printer):
7671 (signal_enum_priner_error):
7672 (Fmswingows_printer_list): Added.
7674 2000-07-19 Martin Buchholz <martin@xemacs.org>
7676 * XEmacs 21.2.35 is released.
7678 2000-07-19 Martin Buchholz <martin@xemacs.org>
7680 * select-x.c (x_handle_selection_request):
7681 Text selected in xemacs and pasted into xterm failed to appear.
7682 Spelling fixes and cosmetic changes.
7684 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7686 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7687 XEmacs frame (fix for doubling chars in dialog boxes).
7689 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7691 * select.c (select_convert_in, select_convert_out):
7692 Don't call intern() every time.
7694 * select.c (Qselect_convert_in, Qselect_convert_out): New.
7695 * select.c (vars_of_select): Initialise them.
7697 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7699 * select.c (selection-coercible-types): New.
7701 * select.c (own-selection-internal):
7702 * select.c (get-selection-internal):
7703 MULE bug fix - these should default to COMPOUND_TEXT and not
7704 STRING for MULE. I think.
7706 * select.c (select_convert_out): Use selection-coercible-types
7707 to find types that we can attempt to perform coercions on.
7709 2000-07-18 Martin Buchholz <martin@xemacs.org>
7713 Add coding: cookie to identify encoding.
7715 * mule-canna.c (CANNA_mode_keys): make static.
7716 Use proper prototypes, even for functions of no arguments.
7717 Remove external prototype for Fding().
7719 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7721 * select.c (syms_of_select): Add missing DEFSUBR.
7723 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7725 * select.c (get_selection_internal, own_selection_internal):
7726 Make the type default to STRING, rather than placing a nil type
7727 into Vselection_alist.
7729 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7731 * gpmevent.c (tty_selection_exists_p):
7732 * gpmevent.c (tty_own_selection):
7733 Updated parameter lists.
7735 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7737 * select.h (selection-alist): Removed declaration.
7739 * select.h (get_local_selection):
7740 * select.c (get_local_selection):
7743 * select.h (convert_selection): Removed declaration.
7744 * select.c (convert_selection): Removed.
7745 This function belongs in Lisp.
7747 * select.h (select_convert_in): Declare.
7748 * select.h (select_convert_out): Declare.
7749 * select.c (select_convert_in): New.
7750 * select.c (select_convert_out): New.
7751 New conversion functions for other files to call.
7753 * select.h (select_notify_buffer_kill): Declare.
7754 * select.c (select_notify_buffer_kill): New.
7755 New functions that get called from kill-buffer.
7757 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7758 X-specific lisp code.
7760 * select.h: Declare some of the lisp-visible functions for
7763 * select.c (clean_local_selection_data): Removed. This was
7764 a disgusting function, and previously should have been in
7765 select-x.c in any case. The functionality is now provided
7766 in select-convert-from-integer (select.el).
7768 * select.c (available-selection-types): Fixed stupidity where
7769 INTEGER and ATOM got added twice. Also add STRING when we see an
7772 * select.c (get-selection-internal): Removed symbol stripping. No
7773 longer causes conversion when data comes from the internal cache.
7775 * select.c (syms_of_select): Added new functions.
7777 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7778 error checking - previously this called abort!
7780 * select-x.c (x_own_selection): Changed comment.
7782 * select-x.c (x_handle_selection_request): Use select_convert_out.
7783 Don't mess with selection-alist; it's an internal variable of select.c.
7785 * select-x.c (x_get_foreign_selection): Use select_convert_in.
7787 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7788 rather than messing with selection-alist.
7790 * select-msw.c (mswindows_get_foreign_selection):
7791 Use TO_INTERNAL_FORMAT rather than hacking.
7793 2000-07-14 Martin Buchholz <martin@xemacs.org>
7795 * process-unix.c (unix_open_multicast_group):
7796 (unix_open_multicast_group): Remove useless casts.
7798 2000-07-13 Martin Buchholz <martin@xemacs.org>
7800 * sound.c (Fplay_sound): Fix `unused variable' warning.
7802 * emacs.c (main): Use correct type for _environ on SCO5.
7804 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7806 * console.h (own_selection_method):
7807 * console.h (selection_exists_p_method):
7808 * console.h (available_selection_types_method): New.
7809 * console.h (register_selection_data_type_method): New.
7810 * console.h (selection_data_type_name): New.
7812 * console-msw.h (mswindows_destroy_selection): Declare it. New
7813 function & alist to track GlobalAlloc()'d handles that need
7814 releasing when the clipboard data gets replaced or emptied.
7816 * event-msw.c (mswindows_wnd_proc): Call it.
7818 * lisp.h, general.c (Qappend): New symbol representing a
7821 * select.c (own-selection-internal):
7822 * select.c (selection-exists-p):
7823 * select.c (available-selection-types): New.
7824 * select.c (register-selection-data-type): New.
7825 * select.c (selection-data-type-name): New. New functions to deal
7826 with device-specific selection data formats.
7827 * select.c (selection-converter-out-alist): Renamed.
7828 * select.c (selection-converter-in-alist): New.
7829 * select.c (selection-appender-alist): New. Added new alists.
7830 * select.c (syms_of_select, vars_of_select): Added new symbols &
7832 * select.c (get_local_selection): Split.
7833 * select.c: Removed spurious type checking - selections may now be
7834 of any type, not just strings.
7835 * select.c (own-selection-internal):
7837 * select.h, select.c (convert_selection): New. Created
7838 convert_selection() function based on get_local_selection().
7839 * select.h, select.c (QCF_*): New symbols representing mswindows
7841 * select.h, select.c (Qreplace_all, Qreplace_existing): New
7842 symbols representing `how-to-add' modes.
7844 * select-msw.c (x_sym_p): New.
7845 * select-msw.c (symbol_to_ms_cf): New.
7846 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7847 symbols & clipboard formats. Can also handle string names.
7848 * select-msw.c (mswindows_own_selection):
7849 * select-msw.c (mswindows_selection_exists_p):
7850 Added `data-type' parameter. Use it.
7851 * select-msw.c (mswindows_available_selection_types): New.
7852 * select-msw.c (mswindows_register_selection_data_type): New.
7853 * select-msw.c (mswindows_selection_data_type_name): New.
7854 * select-msw.c (mswindows_own_selection):
7855 * select-msw.c (mswindows_get_foreign_selection):
7856 * select-msw.c (mswindows_selection_exists_p): Rewrote.
7857 * select-msw.c (console_create_select_mswindows): Added new methods.
7858 * select-msw.c (mswindows_destroy_selection): New.
7859 * select-msw.c (Vhandle_alist): New list.
7860 * select-msw.c (mswindows_own_selection):
7862 * select-x.c (x_own_selection):
7863 * select-x.c (x_selection_exists_p):
7864 * select-x.c: Added some comments about maybe using new
7866 * select-x.c (x_own_selection):
7868 * specifier.c: Remove definition of Qappend (now in general.c)
7869 * specifier.c (syms_of_specifier): Remove Qappend.
7871 2000-07-12 Martin Buchholz <martin@xemacs.org>
7873 * config.h.in: Add socklen_t.
7875 * s/decosf4-0.h: No special compiler flags needed or desired.
7876 In particular, undefine _BSD for DEC OSF 4.0.
7878 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7880 * redisplay-msw.c (msprinter_frame_output_end): Added.
7881 (console_type_create_redisplay_mswindows): Referred the above.
7883 * frame.c (setup_frame_without_minibuffer): Do not create a
7884 default minibuffer frame on a printer device.
7886 * frame-msw.c (apply_dc_geometry): Added.
7887 (msprinter_start_page):
7888 (msprinter_init_frame_3):
7889 (msprinter_eject_page): Use it.
7891 * console-msw.h (struct msprinter_frame): Added pix_left and top,
7892 and removed residual duplex and orientation properties.
7894 2000-07-11 Martin Buchholz <martin@xemacs.org>
7896 * eval.c (function_argcount): Work around a DEC CC compiler bug.
7898 * unexalpha.c: Remove system prototypes from C sources!
7900 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
7902 * eval.c: Remove references to M-x edit-options in DEFUNs for
7903 `defvar' and `defconst'.
7905 2000-07-09 Martin Buchholz <martin@xemacs.org>
7907 * config.h.in: Remove SMART_INCLUDE hackery.
7910 * config.h.in: Don't use SMART_INCLUDE.
7912 * postgresql.h: Include libpq-fe.h here. Fix typo.
7913 * inline.c: Simply #include "postgresql.h"
7915 - Don't use SMART_INCLUDE
7916 - Use simply "const".
7917 - Use standard doc string conventions.
7918 - Use correct type for result of PQstatus.
7920 2000-07-09 Martin Buchholz <martin@xemacs.org>
7922 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7924 C++ compilation changes.
7925 * config.h.in (EXTERN_C): Define.
7926 * config.h.in (not): This is also a C++ keyword.
7927 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7928 * cm.c: Use EXTERN_C.
7929 * redisplay-tty.c: Use EXTERN_C.
7930 * sysdep.c: Use EXTERN_C. Remove Gould support.
7932 2000-07-09 Martin Buchholz <martin@xemacs.org>
7934 * general.c: Remove duplicate definition for Qfunction.
7936 2000-07-08 Ben Wing <ben@xemacs.org>
7938 * device-msw.c (msprinter_init_device):
7939 * device-msw.c (sync_printer_with_devmode):
7940 * device-msw.c (handle_devmode_changes):
7941 * device-msw.c (print_dialog_worker):
7942 * device-msw.c (Fmsprinter_apply_settings):
7943 * device-msw.c (hash_devmode):
7944 * device-msw.c (Fmsprinter_settings_despecialize):
7945 use Qmswindows_tstr, not Qctext.
7947 * vm-limit.c (check_memory_limits):
7948 avoid infinite loop printing warning messages.
7950 2000-07-05 Craig Lanning <lanning@scra.org>
7952 * Makefile.in.in: Add support for including the Windows resources
7953 when building with the cygwin and mingw targets.
7955 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7956 not set or not correct.
7957 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7958 (init_initial_directory): Don't try to use $PWD on the
7959 WIN32_NATIVE target.
7962 [[Add -mwindows to eliminate console window.]] not required --ben
7963 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7964 (MAIL_USE_POP): removed; now handled by configure.
7966 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7967 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7968 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7969 (MAIL_USE_POP): removed; now handled by configure.
7970 (ENCAPSULATE_STAT): from Dan Holmsand, added.
7971 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7972 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7974 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7975 up from <winsock.h> via systime.h.
7976 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7977 (getpagesize): from Dan Holmsand, added.
7978 Added #endif which was left dangling by Ben's mega patch; added
7979 comment to help prevent this in the future.
7981 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7983 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7985 * console-msw.h (struct mswindows_device): Removed unnecessary
7986 cached device geometry values.
7987 Added update_tick and an accessor macro.
7988 (Lisp_Devmode): Added lrecord declaration.
7989 (struct msprinter_device): Contain devmode as a Lisp object.
7990 Added mswindows_get_selected_frame_hwnd();
7992 * console.h (struct console_methods): Indentation nitpicking.
7994 * device-msw.c (mswindows_init_device): Do not initialize geometry
7995 cache. Initialize update tick.
7996 (mswindows_device_system_metrics): Ask the device for its geometry.
7997 (global_free_2_maybe):
7998 (devmode_to_hglobal):
7999 (handle_printer_changes):
8000 (ensure_not_printing):
8001 (print_dialog_worker):
8002 (Fmsprinter_print_setup_dialog):
8003 (Fmsprinter_print_dialog):
8006 (Fmsprinter_page_setup_dialog): Added functions.
8007 (sync_printer_with_devmode):
8008 (handle_devmode_changes):
8009 (Fmsprinter_get_settings):
8010 (Fmsprinter_select_settings):
8011 (Fmsprinter_apply_settings):
8013 (Fmsprinter_settings_copy):
8014 (Fmsprinter_settings_despecialize):
8018 (hash_devmode): Added functions
8019 (syms_of_device_mswindows): Init devmode lrecord class.
8021 * device.h: Added an exfun for find-device.
8023 * event-msw.c (mswindows_wnd_proc): Do not update the cached
8024 geometry; although, recreate the device compatible DC.
8026 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8027 (msprinter_init_frame_3):
8028 (msprinter_frame_property):
8029 (msprinter_internal_frame_property_p):
8030 (msprinter_frame_properties):
8031 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8032 print job properties (will move to device settings).
8034 * lisp.h: Added symbols.
8036 * general.c (syms_of_general): Declared them.
8038 * hash.c (string_hash): Added.
8040 * lrecord.h (lrecord_type): Added devmode lrecord type.
8042 2000-07-02 Mike Sperber <mike@xemacs.org>
8044 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8047 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
8049 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8052 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
8054 * data.c (Fstring_to_number): Don't recognize floating point if
8057 2000-06-22 Martin Buchholz <martin@xemacs.org>
8059 * glyphs-widget.c (tab_control_query_geometry):
8060 (widget_query_geometry):
8061 (button_query_geometry):
8062 * glyphs.c (text_query_geometry):
8063 Enforce type correctness.
8065 2000-06-18 Martin Buchholz <martin@xemacs.org>
8067 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8068 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8070 2000-06-17 Martin Buchholz <martin@xemacs.org>
8072 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8073 conflicts with gcc's fixincluded version of FOO.h.
8075 * glyphs.h (image_instance_geometry): Remove trailing `,'
8077 2000-06-08 Mike Alexander <mta@arbortext.com>
8079 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8080 (shove_thread): Don't write the same output twice
8081 (make_ntpipe_output_stream): Increase priority of shove thread
8082 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8084 (ntpipe_shove_closer): Don't delete the pipe until we're done with
8087 2000-06-12 Ben Wing <ben@xemacs.org>
8089 * s\mingw32.h (sigset):
8090 * s\windowsnt.h (sigset):
8091 rename msw_ to mswindows_ for consistency with general convention.
8093 2000-06-12 Ben Wing <ben@xemacs.org>
8096 * console-msw.c (mswindows_get_console_hwnd):
8097 * console-msw.c (mswindows_ensure_console_allocated):
8098 * console-msw.c (mswindows_hide_console):
8099 * console-msw.c (mswindows_show_console):
8100 * console-msw.c (mswindows_ensure_console_buffered):
8101 * console-msw.c (mswindows_output_console_string):
8102 * console-msw.c (mswindows_windows9x_p):
8104 * device-msw.c (mswindows_get_workspace_coords):
8105 * device-msw.c (mswindows_device_system_metrics):
8106 * dialog-msw.c (mswindows_popup_dialog_box):
8107 * event-msw.c (mswindows_wnd_proc):
8108 * frame-msw.c (mswindows_size_frame_internal):
8109 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8110 * menubar-msw.c (displayable_menu_item):
8111 * menubar-msw.c (mswindows_char_is_accelerator):
8113 * nt.c (mswindows_sigset):
8114 * nt.c (mswindows_sigrelse):
8115 * nt.c (mswindows_sigpause):
8116 * nt.c (mswindows_raise):
8117 * nt.c (timer_proc):
8119 * ntproc.c (find_child_console):
8120 * ntproc.c (sys_kill):
8122 * print.c (std_handle_out_external):
8123 * process-nt.c (find_child_console):
8124 * process-nt.c (send_signal_the_95_way):
8125 * process-nt.c (ensure_console_window_exists):
8126 * process-nt.c (nt_create_process):
8128 rename msw_ to mswindows_ for consistency with general convention.
8132 include nt.h, not syswindows.h.
8134 * nt.c (mswindows_fstat):
8135 * nt.c (mswindows_stat):
8136 prefix mswindows_ instead of attempting to directly override the
8137 library functions. fix declarations.
8140 include syswindows.h. move some sysdep.h stuff here.
8143 include syswindows.h, not <windows.h>.
8151 * sysdep.c (sys_fstat):
8152 * sysdep.c (sys_stat):
8153 call mswindows versions when appropriate.
8156 move mswin decls to nt.h.
8159 add long comment describing appropriate use of the various windows
8162 2000-06-11 Ben Wing <ben@xemacs.org>
8164 * device-x.c: Correct doc string for sixth arg of x-get-resource.
8166 2000-06-10 Ben Wing <ben@xemacs.org>
8168 * Makefile.in.in (release):
8169 Correction to make sure xemacs.exe always dumped when correct.
8173 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8175 * buffer.c (set_buffer_internal):
8176 [[[[2]]]]: Remove HAVE_FEP code.
8178 * buffer.c (init_initial_directory):
8182 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8186 * callproc.c (call_process_cleanup):
8187 * callproc.c (Fold_call_process_internal):
8188 * callproc.c (child_setup):
8189 * callproc.c (getenv_internal):
8190 * callproc.c (init_callproc):
8191 * callproc.c (vars_of_callproc):
8192 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8193 __CYGWIN32__ -> CYGWIN.
8194 DOS_NT -> WIN32_NATIVE.
8195 Remove MSDOS support/references, converting to WIN32_NATIVE
8197 __MINGW32__ -> MINGW.
8198 Fix windows.h includes.
8199 Remove bogus HAVE_NTGUI.
8205 mswindows_message_outputted added for use in allowing startup
8206 errors on the console to be seen.
8208 * console-msw.c (msw_ensure_console_allocated):
8209 * console-msw.c (msw_output_console_string):
8210 * console-msw.c (DHEADER):
8211 * console-msw.c (DOPAQUE_DATA):
8212 * console-msw.c (DEVENT):
8213 * console-msw.c (DCONS):
8214 * console-msw.c (DCONSCDR):
8215 * console-msw.c (DSTRING):
8216 * console-msw.c (DVECTOR):
8217 * console-msw.c (DSYMBOL):
8218 * console-msw.c (DSYMNAME):
8221 * console-stream.c (stream_init_console):
8222 Fix text/binary problems.
8225 * device-msw.c (mswindows_finish_init_device):
8226 * device-msw.c (mswindows_delete_device):
8229 * device.c (handle_asynch_device_change):
8233 * dgif_lib.c (DGifOpenFileName):
8234 * dgif_lib.c (DGifOpenFileHandle):
8235 * dgif_lib.c (DGifGetLine):
8236 * dgif_lib.c (DGifGetPixel):
8237 Added config.h/lisp.h, fix up includes.
8244 * dired.c (file_name_completion):
8245 * dired.c (Ffile_attributes):
8246 * dired.c (syms_of_dired):
8250 * dumper.c (pdump_file_unmap):
8251 * dumper.c (pdump_load):
8255 * editfns.c (Ftemp_directory):
8256 * editfns.c (user_login_name):
8257 * editfns.c (Fuser_real_login_name):
8258 * editfns.c (get_home_directory):
8261 * elhash.c (finish_marking_weak_hash_tables):
8262 [[[[5]]]]: Fix GCC warnings.
8265 * emacs.c (mswindows_handle_hardware_exceptions):
8266 * emacs.c (make_arg_list_1):
8268 * emacs.c (Fkill_emacs):
8269 * emacs.c (Fdump_emacs):
8271 Fix problems with nested crashes, add long comment.
8273 * event-Xt.c (init_event_Xt_late):
8277 * event-msw.c (mswindows_dde_callback):
8278 * event-msw.c (mswindows_handle_sticky_modifiers):
8279 * event-msw.c (mswindows_wnd_proc):
8283 * events.c (character_to_event):
8287 * fileio.c (Ffile_name_directory):
8288 * fileio.c (Ffile_name_nondirectory):
8289 * fileio.c (directory_file_name):
8290 * fileio.c (Fexpand_file_name):
8291 * fileio.c (Fsubstitute_in_file_name):
8292 * fileio.c (Ffile_name_absolute_p):
8293 * fileio.c (check_executable):
8294 * fileio.c (Ffile_readable_p):
8295 * fileio.c (Ffile_accessible_directory_p):
8296 * fileio.c (Ffile_modes):
8297 * fileio.c (Funix_sync):
8298 * fileio.c (vars_of_fileio):
8301 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8303 Expand getdefdir defn.
8304 Fix bogus rename() comment.
8306 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
8307 to use standard XEmacs include files, e.g. sysfile.h, rather
8308 than system-specific includes.
8314 * frame.c (vars_of_frame):
8318 * getloadavg.c (getloadavg):
8320 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
8321 (We don't use it elsewhere in the code; just add a comment.)
8328 * glyphs-msw.c (mswindows_resource_instantiate):
8331 * glyphs-x.c (x_native_layout_instantiate):
8334 * gui-msw.c (Fmswindows_shell_execute):
8343 * lread.c (locate_file_in_directory_mapper):
8350 * mem-limits.h (get_lim_data):
8362 * nt.c (rva_to_section):
8363 * nt.c (mswindows_executable_type):
8365 Fix closedir() defn.
8368 [[[[8]]]]: *_OK defs moved to sysfile.h.
8377 * print.c (std_handle_out_external):
8381 * process-nt.c (nt_create_process):
8383 try to fix process quoting somewhat.
8385 * process-unix.c (unix_create_process):
8389 * process.c (vars_of_process):
8396 * realpath.c (xrealpath):
8399 * redisplay-tty.c (init_tty_for_redisplay):
8409 * sheap.c (more_static_core):
8410 * sheap.c (report_sheap_usage):
8414 * signal.c (alarm_signal):
8421 * strftime.c (zone_name):
8424 * symsinit.h (init_sunpro):
8428 commctrl.h not in Cygwin b20.1.
8432 * sysdep.c (sys_subshell):
8433 * sysdep.c (init_baud_rate):
8434 * sysdep.c (emacs_get_tty):
8435 * sysdep.c (emacs_set_tty):
8436 * sysdep.c (tty_init_sys_modes_on_device):
8437 * sysdep.c (init_system_name):
8438 * sysdep.c (sys_open):
8439 * sysdep.c (interruptible_open):
8440 * sysdep.c (sys_fopen):
8441 * sysdep.c (sys_mkdir):
8442 * sysdep.c (sys_rename):
8443 * sysdep.c (get_process_times_1):
8450 * sysdir.h (DIRENTRY_NONEMPTY):
8453 * sysdll.c (dll_init):
8459 added text/binary defs.
8465 * sysproc.h (EDESTADDRREQ):
8466 * sysproc.h (poll_fds_for_input):
8483 Always define WIN32_LEAN_AND_MEAN.
8485 * unexcw.c (unexec):
8489 * unexec.c (copy_text_and_data):
8490 * unexec.c (adjust_lnnoptrs):
8494 * unexnt.c (_start):
8497 2000-06-07 Ben Wing <ben@xemacs.org>
8499 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
8500 was used only as a model. We've long since extracted any useful
8501 logic or code out of this. (I just did an exhaustive search.)
8503 * s\msdos.h: Removed.
8505 * s\windows95.h: Removed.
8507 2000-06-10 Ben Wing <ben@xemacs.org>
8511 Don't use extern with fun defs.
8515 Remove nt\inc include.
8516 Remove getdisk, getdefdir. (The former is unused, the latter
8517 expanded in fileio.h.)
8520 * s\windowsnt.h (WIN32_NATIVE):
8521 * s\windowsnt.h (HAVE_STRCASECMP):
8523 Add long comment about preprocessor changes.
8524 Remove getdisk, getdefdir. (The former is unused, the latter
8525 expanded in fileio.h.)
8527 2000-06-10 Ben Wing <ben@xemacs.org>
8536 Remove bogus/unused NO_SOCK_SIGIO.
8538 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
8540 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8543 2000-06-04 Mike Sperber <mike@xemacs.org>
8545 * casetab.c (set_case_table): For `set-standard-case-table',
8546 actually deposit the new case tables where the rest of XEmacs can
8549 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
8551 * data.c (Faset): Don't cast XCHAR() to unsigned char.
8553 2000-06-05 Ben Wing <ben@xemacs.org>
8555 * callproc.c (child_setup): Don't do close_load_descs() under
8556 MS Windows. Put in a comment explaining why.
8558 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
8560 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8561 Toolkit shell" which breaks `kill-compilation' on Windows NT
8562 native, retaining STDERR handling improvements.
8564 2000-06-01 Andreas Jaeger <aj@suse.de>
8566 * s/s390.h: Support for S390, based on a patch by Martin
8567 Schwidefsky <schwidefsky@de.ibm.com>.
8569 2000-05-30 Andy Piper <andy@xemacs.org>
8571 * window.c (allocate_window):
8572 (make_dummy_parent):
8573 (Fset_window_configuration): use new hashtable type.
8575 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8576 (struct image_instantiator_methods):
8577 (struct Lisp_Image_Instance): make instance geometry signed.
8579 * glyphs.c (instantiate_image_instantiator):
8580 (image_instance_query_geometry):
8581 (image_instance_layout):
8582 (image_instance_layout):
8583 (query_string_geometry):
8584 (text_query_geometry):
8585 (image_instantiate):
8586 (image_instantiate):
8587 (cache_subwindow_instance_in_frame_maybe):
8588 (subwindow_query_geometry): make instance geometry signed.
8590 * glyphs-widget.c (widget_query_geometry):
8592 (button_query_geometry):
8593 (tree_view_query_geometry):
8594 (tab_control_query_geometry):
8595 (layout_query_geometry):
8597 (native_layout_layout): make instance geometry signed.
8599 2000-05-29 Olivier Galibert <galibert@pobox.com>
8601 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8604 * general.c (syms_of_general): Add Qfull_assoc symbol.
8606 * data.c (finish_marking_weak_lists): Mark full-assoc lists
8608 (decode_weak_list_type): Decode full-assoc type.
8609 (encode_weak_list_type): Encode full-assoc type.
8610 (Fmake_weak_list): Update doc string.
8612 2000-05-30 Andy Piper <andy@xemacs.org>
8614 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8616 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8617 (decode_hash_table_weakness): ditto.
8618 (Fhash_table_weakness): ditto.
8619 (Fhash_table_type): ditto.
8620 (finish_marking_weak_hash_tables): ditto.
8621 (hash_table_weakness_validate): ditto.
8622 (syms_of_elhash): ditto.
8624 2000-05-28 Martin Buchholz <martin@xemacs.org>
8626 * XEmacs 21.2.34 is released.
8628 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8630 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8632 (updating_line_start_cache): Gone.
8633 (regenerate_window): Replace resetting of VERTICAL_CLIP by
8634 generic code to force a minimum of 1 line laid out in the
8637 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8639 * glyphs.c (instantiate_image_instantiator): Check for initialized
8640 height & width no longer special cases IMAGE_NOTHING.
8641 (nothing_instantiate): Set height and width of instance.
8643 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8645 * unexelf.c (unexec): Search for ".data" section.
8646 Initialize new_data2_offset from old_data_index.
8647 Remove redundant check for ElfW.
8649 2000-05-23 Andy Piper <andy@xemacs.org>
8651 * glyphs.c (get_image_instantiator_governing_domain): allow more
8652 specific domains as the governing domain rather than expecting an
8653 exact match. This fixes problems with layouts.
8655 2000-05-22 Andy Piper <andy@xemacs.org>
8657 * redisplay-output.c (compare_runes): check for non-images
8659 * glyphs.c (set_glyph_dirty_p): ditto.
8660 (update_glyph_cachel_data): ditto.
8662 * glyphs-widget.c (layout_post_instantiate): ditto.
8663 (layout_post_instantiate): ditto.
8665 * event-msw.c (mswindows_wnd_proc): warning removal.
8667 2000-05-12 Craig Lanning <CraigL@DyCon.com>
8669 * s\mingw32.h: Added #undef for CLASH_DETECTION.
8671 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8673 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8675 * nt.c (rva_to_section): mingw32 needs rva_to_section.
8676 (mswindows_executable_type): mingw32 now has enough headers for
8679 2000-05-20 Andy Piper <andy@xemacs.org>
8681 * console-msw.c (mswindows_output_last_error): ; -> ,
8683 2000-05-12 Andy Piper <andy@xemacs.org>
8685 * console-msw.c (FROB): compare ints with ints.
8687 2000-05-11 Andy Piper <andy@xemacs.org>
8689 * glyphs-x.c (x_finalize_image_instance): make minimal build
8692 2000-05-20 Ben Wing <ben@xemacs.org>
8695 * event-Xt.c (vars_of_event_Xt):
8696 move modifier-keys-are-sticky to event-stream.c.
8699 * event-msw.c (mswindows_enqueue_mouse_button_event):
8700 * event-msw.c (key_needs_default_processing_p):
8701 * event-msw.c (XEMSW_LCONTROL):
8702 * event-msw.c (mswindows_handle_sticky_modifiers):
8703 * event-msw.c (FROB):
8704 * event-msw.c (clear_sticky_modifiers):
8705 * event-msw.c (output_modifier_keyboard_state):
8706 * event-msw.c (output_alt_keyboard_state):
8707 * event-msw.c (mswindows_wnd_proc):
8708 * event-msw.c (mswindows_modifier_state):
8709 * event-msw.c (emacs_mswindows_handle_magic_event):
8710 implement sticky modifiers.
8713 * event-stream.c (vars_of_event_stream):
8714 move modifier-keys-are-sticky here.
8720 implement map-range-table.
8723 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
8725 * redisplay-tty.c (reset_tty_modes):
8726 (tty_redisplay_shutdown): Adjust argument type to
8727 tty_frame_output_end.
8729 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8731 * eval.c (Fbacktrace): Don't output a line with only right
8734 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
8736 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8737 (Fpq_reset_poll): Ditto.
8739 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
8741 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8743 2000-05-16 Ben Wing <ben@xemacs.org>
8746 * buffer.c (dfc_convert_to/from_internal_format):
8747 * buffer.c (reinit_vars_of_buffer):
8748 Fix conversion functions to allow reentrancy.
8751 * console-msw.c (mswindows_output_last_error):
8752 New fun, generally useful -- output a human-readable
8753 version of GetLastError() on the console.
8756 * console-msw.h (struct mswindows_frame):
8757 Changes for DeferWindowPos. Declare mswindows_output_last_error().
8759 * console-stream.c (stream_output_begin):
8760 * console-stream.c (stream_output_end):
8761 * console-stream.c (stream_output_vertical_divider):
8762 * console-stream.c (stream_clear_region):
8763 * console-stream.c (stream_flash):
8764 * console-stream.c (console_type_create_stream):
8765 Delete blank stream methods, not needed.
8767 * console.h (struct console_methods):
8768 Split begin/end methods into window and frame.
8771 * event-msw.c (mswindows_handle_paint):
8772 * event-msw.c (output_alt_keyboard_state):
8773 * event-msw.c (mswindows_wnd_proc):
8774 * event-msw.c (vars_of_event_mswindows):
8775 Comment about problems with ignored-expose.
8776 Define mswindows-debug-events; not really implemented.
8778 * frame-msw.c (mswindows_init_frame_1):
8782 * glyphs-msw.c (begin_defer_window_pos):
8783 * glyphs-msw.c (mswindows_unmap_subwindow):
8784 * glyphs-msw.c (mswindows_map_subwindow):
8785 * glyphs-msw.c (mswindows_resize_subwindow):
8786 Use DeferWindowPos to reduce flashing when mapping/unmapping.
8788 * glyphs.c (make_image_instance_1):
8791 * gutter.c (Fredisplay_gutter_area):
8792 Use new begin/end methods.
8794 * lisp.h (Dynarr_new2):
8798 * redisplay-msw.c (mswindows_frame_output_begin):
8799 * redisplay-msw.c (mswindows_frame_output_end):
8800 * redisplay-msw.c (console_type_create_redisplay_mswindows):
8801 New begin/end methods -- handle DeferWindowPos.
8803 * redisplay-output.c (redisplay_move_cursor):
8804 * redisplay-output.c (redraw_cursor_in_window):
8805 * redisplay-output.c (redisplay_update_line):
8806 * redisplay-output.c (redisplay_output_window):
8807 New begin/end methods.
8810 * redisplay-tty.c (tty_frame_output_begin):
8811 * redisplay-tty.c (tty_frame_output_end):
8812 * redisplay-tty.c (console_type_create_redisplay_tty):
8813 New begin/end methods.
8816 * redisplay-x.c (x_window_output_begin):
8817 * redisplay-x.c (x_window_output_end):
8818 * redisplay-x.c (console_type_create_redisplay_x):
8819 New begin/end methods.
8821 * redisplay.c (redisplay_frame):
8822 * redisplay.c (Fredisplay_echo_area):
8823 New begin/end methods.
8824 use MAYBE_DEVMETH for clear_frame; it may not exist.
8826 * window.h (WINDOW_XFRAME):
8827 WINDOW_XFOO macros -- get locale and decode struct pointer.
8830 2000-05-12 Ben Wing <ben@xemacs.org>
8833 * emacs.c (ensure_no_quitting_from_now_on):
8834 * emacs.c (fatal_error_signal):
8835 * emacs.c (mswindows_handle_hardware_exceptions):
8837 * emacs.c (Fkill_emacs):
8838 * emacs.c (shut_down_emacs):
8839 * emacs.c (assert_failed):
8840 various improvements in fatal error handling.
8843 move preparing_for_armageddon to emacs.c.
8846 declare fatal_error_in_progress.
8849 * print.c (std_handle_out_external):
8850 * print.c (std_handle_out_va):
8851 * print.c (stderr_out):
8852 * print.c (stdout_out):
8853 use console under mswin when no standard output.
8854 don't do code conversion during fatal error.
8856 * scrollbar.c (Fscrollbar_page_up):
8857 * scrollbar.c (Fscrollbar_page_down):
8858 fix missing else. reindent.
8860 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
8864 * glyphs.h (GLYPH_CACHEL_DESCENT):
8865 (GLYPH_CACHEL_DESCENT):
8866 (GLYPH_CACHEL_DESCENT):
8867 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8868 used in case these are inline functions.
8869 Use more absurd values to error check.
8871 include window.h for error check functions.
8873 2000-05-11 Ben Wing <ben@xemacs.org>
8875 * cmdloop.c (Freally_early_error_handler):
8876 Display message box under windows; otherwise, message will disappear
8877 before it can be viewed.
8880 * console-msw.c (Fmswindows_message_box):
8881 * console-msw.c (FROB):
8882 * console-msw.c (syms_of_console_mswindows):
8883 Define new fun `mswindows-message-box'.
8884 #### I will merge this into `popup-dialog-box'; just give me
8888 * general.c (syms_of_general):
8889 Some new symbols used in `mswindows-message-box'.
8892 * glyphs.c (Fset_image_instance_property):
8893 put warning in this fun.
8896 * glyphs.h (GLYPH_CACHEL_WIDTH):
8897 * glyphs.h (GLYPH_CACHEL_ASCENT):
8898 * glyphs.h (GLYPH_CACHEL):
8899 * glyphs.h (GLYPH_CACHEL_GLYPH):
8900 define error-checking versions to try to catch a bug i've seen --
8901 redisplay gets in an infinite loop because the glyph width of the
8902 continuation glyph is 65535.
8905 Extern message-box stuff.
8907 * window.c (allocate_window):
8908 * window.c (make_dummy_parent):
8909 * window.c (Fset_window_configuration):
8910 Use EQUAL not EQ for subwindow caches to make them work a bit
8911 better. (Something is still very broken.)
8914 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8916 * glyphs.c (image_instantiate): Suppress gcc warnings.
8917 (Fmake_image_instance): Fix doc string.
8918 * specifier.c (Fmake_specifier): Ditto.
8920 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
8922 * paths.h.in (PATH_LOCK): Removed.
8923 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8924 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8926 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
8928 * fns.c (Ffeaturep): Update e-mail address in doc-string.
8929 Document (featurep '(and xemacs 21.02)).
8931 2000-05-09 Ben Wing <ben@xemacs.org>
8933 * buffer.c (complex_vars_of_buffer):
8934 update modeline-format doc.
8937 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8940 timeline of all released versions of Emacs, for use in creating
8941 authorship comments and in synching up.
8943 * glyphs-widget.c (image_instantiator_buttons):
8944 * glyphs-widget.c (image_instantiator_edit_fields):
8945 * glyphs-widget.c (image_instantiator_combo_box):
8946 * glyphs-widget.c (image_instantiator_scrollbar):
8947 * glyphs-widget.c (image_instantiator_progress_guage):
8948 * glyphs-widget.c (image_instantiator_tree_view):
8949 * glyphs-widget.c (image_instantiator_tab_control):
8950 * glyphs-widget.c (image_instantiator_labels):
8951 * glyphs-widget.c (image_instantiator_layout):
8952 * glyphs-widget.c (image_instantiator_native_layout):
8953 rename decode_domain method to governing_domain.
8956 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8957 * glyphs.c (add_entry_to_device_ii_format_list):
8958 make sure we don't put an entry more than once into the list.
8959 * glyphs.c (check_instance_cache_mapper):
8960 *************************************************************
8961 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8963 *************************************************************
8964 * glyphs.c (get_image_instantiator_governing_domain):
8965 clean up, expand on new concept of governing domain.
8966 * glyphs.c (instantiate_image_instantiator):
8967 * glyphs.c (allocate_image_instance):
8968 use governing_domain instead of cache_domain in naming.
8969 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8970 * glyphs.c (make_image_instance_1):
8971 * glyphs.c (Fmake_image_instance):
8972 allow for any domain (not just device), and process the
8973 governing domain correctly. very big doc fix.
8974 * glyphs.c (Fimage_instance_domain):
8975 new primitive, to retrieve the governing domain of an image instance.
8976 * glyphs.c (image_instantiate):
8977 use new governing_domain stuff. this fixes a crash you could get
8978 by instantiating certain widget glyphs in frame locales. (should
8979 signal an error instead of crashing.)
8980 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8981 * glyphs.c (Fglyphp): clean up doc.
8982 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8983 * glyphs.c (syms_of_glyphs):
8984 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8985 * glyphs.c (image_instantiator_format_create): add some comments about
8987 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8988 for current-display-table. (Apparently Hrjove implemented in 1998 a
8989 design I wrote up in 1996, but didn't update the doc string.)
8991 * glyphs.h: clean up a doc string.
8992 * glyphs.h (governing_domain):
8993 * glyphs.h (struct image_instantiator_methods):
8994 changes for governing_domain stuff.
8997 * gutter.c (Fgutter_specifier_p):
8998 * gutter.c (Fgutter_size_specifier_p):
8999 * gutter.c (Fgutter_visible_specifier_p):
9001 * objects.c (Fcolor_specifier_p):
9002 * objects.c (Ffont_specifier_p):
9003 * objects.c (Fface_boolean_specifier_p):
9004 doc strings moved to make-*-specifier.
9006 * redisplay.c (add_disp_table_entry_runes_1):
9007 * redisplay.c (generate_fstring_runes):
9008 * redisplay.c (screen):
9009 add random comments and doc strings.
9012 * specifier.c (Fmake_specifier):
9013 major overhaul of this doc string.
9015 * specifier.c (Fvalid_specifier_domain_p):
9016 comment about the bogosity of image instances being domains.
9017 * specifier.c (decode_domain):
9018 now non-static, used in glyphs.c.
9019 * specifier.c (specifier_instance):
9020 comment about the bogosity of image instances being domains.
9021 * specifier.c (Fgeneric_specifier_p):
9022 move doc string to make-generic-specifier.
9023 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9027 * specifier.h (DOMAIN_FRAME):
9028 * specifier.h (DOMAIN_LIVE_P):
9029 * specifier.h (DOMAIN_XDEVICE):
9031 add comments about problems with these macros.
9032 prototype for decode_domain.
9035 * toolbar.c (Ftoolbar_specifier_p):
9036 move doc string to `make-toolbar-specifier'.
9038 * window.c (window_unmap_subwindows_cache_mapper):
9039 *************************************************************
9040 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9042 *************************************************************
9044 2000-05-09 Andy Piper <andy@xemacs.org>
9046 * glyphs.h: declare reset_frame_subwindow_instance_cache.
9048 * window.c (Fset_window_configuration): reset the frame subwindow
9049 cache and re-initialize the window subwindow caches.
9051 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9053 2000-05-09 Ben Wing <ben@xemacs.org>
9055 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9058 2000-04-26 Mike Woolley <mike@bulsara.com>
9060 * ntheap.c: Changed recreate_heap to limit the amount reserved
9061 for the heap to that which is actually available. Also now
9062 displays a message box (with some dignostics) in the event that
9063 it still can't start.
9065 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
9067 * callproc.c (Fold_call_process_internal): GCPRO path
9069 2000-05-08 Jan Vroonhof <jan@xemacs.org>
9071 Patch by Bill Perry.
9073 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9074 back data instead of #ifdef.
9075 (Fscrollbar_page_down): ditto.
9077 2000-05-07 Ben Wing <ben@xemacs.org>
9080 Kludge for defining Qmswindows_tstr.
9083 * nt.c (open_input_file):
9084 * nt.c (open_output_file):
9085 * nt.c (rva_to_section):
9086 * nt.c (mswindows_executable_type):
9087 Move all memory-mapped-file routines here (some were in unexnt.c,
9088 which is bad because they are used by process-nt.c, and unexnt
9089 won't be around when portable dumping). Synched the above routines
9093 Removed ifdef'd out bogus code.
9094 Fixed some prototypes.
9097 * nt.h (OFFSET_TO_RVA):
9098 * nt.h (RVA_TO_OFFSET):
9099 * nt.h (RVA_TO_PTR):
9100 Moved the memory-mapped-file structures, macros and prototypes
9101 here, to parallel nt.c. ntheap.h should really be removed
9102 entirely, and it's a non-portable-dumper specific file.
9104 * ntheap.h (round_to_next):
9105 Moved the memory-mapped-file structures, macros and prototypes
9108 * ntproc.c (compare_env):
9109 Moved rva_to_section and mswindows_executable_type to nt.c.
9110 Moved compare_env to process-nt.c.
9111 ntproc.c will die, one day.
9113 * ntproc.c (sys_spawnve):
9114 Account for win32_ -> mswindows_.
9117 * process-nt.c (struct nt_process_data):
9118 * process-nt.c (ensure_console_window_exists):
9119 * process-nt.c (compare_env):
9120 * process-nt.c (nt_create_process):
9121 * process-nt.c (nt_kill_process_by_pid):
9122 * process-nt.c (syms_of_process_nt):
9123 * process-nt.c (vars_of_process_nt):
9124 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9125 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9126 changes). Eliminate our old `nt-quote-process-args' mechanism.
9127 Synch up nt_create_process with FSF 20.6 sys_spawnve.
9128 Move compare_env here from ntproc.c.
9130 * process.c (Fprocess_send_region):
9131 Takes an optional fourth argument, BUFFER, which should fix some
9132 problems with call-process.
9135 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9138 Move ICC_BAR_CLASSES to syscommctrl.h.
9139 Add preliminary macros for MSWindows/Mule. More to come.
9142 * unexnt.c (unexec):
9143 open_output_file moved to nt.c.
9146 2000-05-05 Andy Piper <andy@xemacs.org>
9148 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9149 instance from the frame cache also since GC may catch up too late
9150 to make frame deletion sane.
9152 2000-05-04 Andy Piper <andy@xemacs.org>
9154 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9155 (x_finalize_image_instance): ungcpro on deletion.
9157 * glyphs.c (image_instantiator_format_create): give pointers a
9158 query geometry method so that the geometry is at least set.
9160 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9161 initialize layouts if using widgets.
9163 2000-05-03 Andy Piper <andy@xemacs.org>
9165 * nt.c: remove bogus reference to sysmmsystem.h
9167 * gui-x.c (popup_selection_callback): fix no selection abort.
9169 2000-05-02 Andy Piper <andy@xemacs.org>
9171 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9172 (mswindows_widget_instantiate): ditto.
9174 * glyphs-widget.c (initialize_widget_image_instance): initialize
9176 (widget_instantiate): cope with children and items in the same
9179 * glyphs.c (mark_image_instance): cope with children as a first
9181 (image_instance_equal): ditto.
9182 (image_instance_hash): ditto.
9183 (image_instance_changed): ditto.
9185 2000-04-30 Andy Piper <andy@xemacs.org>
9187 * glyphs.c (subwindow_query_geometry): new function. Return some
9189 (subwindow_instantiate): don't assign dimensions if none have been
9191 (image_instantiator_format_create): add subwindow_query_geometry.
9192 (print_image_instance): cope with layouts as widgets.
9194 2000-04-29 Andy Piper <andy@xemacs.org>
9196 * frame.c (delete_frame_internal): call
9197 free_frame_subwindow_instance_cache so that all subwindows are
9198 finalized before their parent.
9199 (mark_frame): remove subwindow_cachels.
9200 (Fmake_frame): remove subwindow_cachel manipulation.
9201 (allocate_frame_core): subwindow_instance_cache is a weak list.
9202 (delete_frame_internal): set subwindow_instance_cache to nil.
9204 * glyphs-msw.c (mswindows_finalize_image_instance): make double
9206 (mswindows_finalize_image_instance): use the device
9207 not the domain as the domain may have died already.
9209 * glyphs-x.c (x_finalize_image_instance): ditto.
9210 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9213 * redisplay-output.c (redisplay_unmap_subwindows): update for
9214 subwindow instance cache as a weak list.
9215 (redisplay_unmap_subwindows_maybe): ditto.
9216 (redisplay_unmap_subwindows_except_us): ditto.
9218 * glyphs.c (unmap_subwindow): error checking will check the domain
9219 so don't deal with it here. Don't use cachels anymore.
9220 (map_subwindow): ditto.
9221 (update_subwindow_cachel_data): remove old accessor names.
9222 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9223 (Fresize_subwindow): don't update cachel.
9224 (mark_subwindow_cachels):
9225 (update_subwindow_cachel_data):
9226 (add_subwindow_cachel):
9227 (get_subwindow_cachel_index):
9228 (update_subwindow_cachel):
9229 (reset_subwindow_cachels):
9230 (mark_subwindow_cachels_as_not_updated): deleted.
9231 (cache_subwindow_instance_in_frame_maybe): new function. Add a
9232 subwindow instance to the frame cache.
9233 (find_matching_subwindow): update for subwindow instance cache as
9235 (update_widget_instances): ditto.
9236 (image_instance_type_to_mask):inlined.
9237 (free_frame_subwindow_instance_cache): new function. finalize all
9238 subwindows that are instantiated.
9240 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9241 of cachel information.
9242 (IMAGE_INSTANCE_DISPLAY_X):
9243 (IMAGE_INSTANCE_DISPLAY_Y):
9244 (IMAGE_INSTANCE_DISPLAY_WIDTH):
9245 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9246 (XIMAGE_INSTANCE_DISPLAY_X):
9247 (XIMAGE_INSTANCE_DISPLAY_Y):
9248 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9249 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9250 remove subwindow_cachel structure and function references.
9251 (image_instance_type_to_mask): inline from glyphs.c
9253 * redisplay.c (redisplay_frame): remove subwindow_cachel
9256 * frame.h (struct frame): remove subwindow_cachels.
9257 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9259 * frameslots.h: add subwindow_instance_cache.
9261 * window.c (replace_window): check subwindow cache of replacement.
9262 (window_unmap_subwindows_cache_mapper):
9263 (window_unmap_subwindows): new functions. Unmap all subwindows
9264 cached on this window.
9265 (mark_window_as_deleted): unmap all subwindows.
9267 2000-04-27 Andy Piper <andy@xemacs.org>
9269 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9271 * glyphs-widget.c (widget_layout): return something.
9272 (layout_layout): return something. Fail if not initialized.
9273 (layout_query_geometry): ditto.
9274 (image_instantiator_native_layout): new function. Initialized the
9276 (widget_instantiate): don't do layout stuff here.
9278 * glyphs.c (instantiate_image_instantiator): reorded calling or
9279 instantiate and post_instantiate with layout in between.
9280 (image_instance_layout): be more selective about deciding whether
9281 the layout has been done or not.
9283 * glyphs.h (struct image_instantiator_methods): return a value
9286 2000-04-26 Andy Piper <andy@xemacs.org>
9288 * glyphs.c (allocate_image_instance): make initial width and
9289 height unspecified. Set initialized to 0.
9291 * syscommctrl.h new file. Encapsulates commctrl.h.
9293 * syswindows.h new file. Encapsulates windows.h.
9295 * ntplay.c: use new syswindows.h and syscommctrl.h header.
9297 * console-msw.h: ditto.
9299 * redisplay-tty.c (tty_output_display_block): remove layout references.
9301 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9302 window handle rather than just the frame.
9304 * glyphs.c (mark_image_instance): remove layout references.
9305 (print_image_instance): ditto.
9306 (image_instance_equal): ditto.
9307 (image_instance_hash): ditto.
9308 (decode_image_instance_type): ditto.
9309 (encode_image_instance_type): ditto.
9310 (image_instantiate): ditto.
9311 (allocate_glyph): ditto.
9312 (Fimage_instance_height): ditto.
9313 (Fimage_instance_width): ditto.
9314 (update_subwindow): ditto.
9316 * redisplay-x.c (x_output_display_block): recode for layouts as
9319 * redisplay-output.c (redisplay_output_layout): recode for layouts
9321 (compare_runes): remove layout references.
9323 * redisplay-msw.c (mswindows_output_display_block): recode for
9326 * glyphs-widget.c (image_instantiator_layout): remove
9327 layout_possible_dest_types.
9328 (layout_possible_dest_types): deleted.
9330 * glyphs.h (image_instance_type): remove layout references.
9331 (struct Lisp_Image_Instance): ditto. Add initialized flag.
9332 (IMAGE_INSTANCE_INITIALIZED): new accessor.
9333 (XIMAGE_INSTANCE_INITIALIZED): ditto.
9335 2000-04-25 Andy Piper <andy@xemacs.org>
9337 * glyphs-widget.c (image_instantiator_buttons):
9338 (image_instantiator_edit_fields):
9339 (image_instantiator_combo_box):
9340 (image_instantiator_scrollbar):
9341 (image_instantiator_progress_guage):
9342 (image_instantiator_tree_view):
9343 (image_instantiator_tab_control):
9344 (image_instantiator_labels):
9345 (image_instantiator_layout): call default post_instantiate method.
9346 (widget_post_instantiate): new function. Simply lays out the
9349 * glyphs.h (struct image_instantiator_methods): add
9350 post_instantiate method.
9352 * glyphs.c (instantiate_image_instantiator): add post_instantiate
9355 2000-04-23 Andy Piper <andy@xemacs.org>
9357 * glyphs.h (struct image_instantiator_methods): add
9358 decode_domain_method.
9359 (struct Lisp_Image_Instance): remove subwindow frame - it can be
9360 derived from the domain.
9361 (IMAGE_INSTANCE_FRAME): new accessor.
9362 (XIMAGE_INSTANCE_FRAME): ditto.
9364 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9365 instead of _SUBWINDOW_FRAME.
9366 (finalize_image_instance): ditto.
9367 (Fimage_instance_foreground): ditto.
9368 (Fimage_instance_background): ditto.
9369 (image_instantiate): ditto.
9370 (update_subwindow_cachel): ditto.
9371 (update_subwindow): ditto.
9372 (unmap_subwindow): ditto.
9373 (map_subwindow): ditto
9374 (subwindow_instantiate): ditto.
9375 * glyphs-msw.c (mswindows_update_widget): ditto.
9376 (mswindows_progress_gauge_instantiate): ditto.
9377 (mswindows_tab_control_update): ditto.
9378 * glyphs-x.c (x_update_widget): ditto.
9379 (x_widget_instantiate): ditto.
9380 (x_tab_control_instantiate): ditto.
9381 (x_tab_control_update): ditto.
9382 * event-msw.c (mswindows_wnd_proc): ditto
9384 * glyphs-widget.c (image_instantiator_layout): use
9385 subwindow_decode_domain.
9386 (image_instantiator_buttons): ditto.
9387 (image_instantiator_edit_fields): ditto.
9388 (image_instantiator_combo_box): ditto.
9389 (image_instantiator_scrollbar): ditto.
9390 (image_instantiator_progress_guage): ditto.
9391 (image_instantiator_tree_view): ditto.
9392 (image_instantiator_tab_control): ditto.
9393 (image_instantiator_labels): ditto.
9394 (image_instantiator_layout): ditto.
9396 * glyphs.c: add instance error checking to many functions.
9397 (instantiate_image_instantiator): decode device from cache_domain.
9398 (image_instantiate): partially rewrite by using
9399 decode_image_instantiator_domain to determine what domain the
9400 instance needs to be cached in.
9401 (decode_image_instantiator_domain): new function. Determine what
9402 domain the image needs to be cached in.
9403 (check_window_subwindow_cache): new error checking function.
9404 (check_instance_cache_mapper): ditto.
9405 (check_image_instance_structure): ditto.
9406 (subwindow_decode_domain): new function. Encodes a window as a
9407 subwindow's cache domain.
9408 (image_instantiator_format_create): use it for text and
9411 2000-04-21 Andy Piper <andy@xemacs.org>
9413 * glyphs.c (image_instance_device): new function.
9414 (image_instance_frame): new function.
9415 (image_instance_window): new function.
9416 (image_instance_live_p): new function.
9418 * window.c (mark_window_as_deleted): reset the subwindow_instance_
9421 * glyphs.h (struct Lisp_Image_Instance): device->domain.
9422 (IMAGE_INSTANCE_DOMAIN): new accessor.
9423 (XIMAGE_INSTANCE_DOMAIN): ditto.
9425 * glyphs-x.c (x_finalize_image_instance): device->domain.
9427 * glyphs-msw.c (init_image_instance_geometry): device->domain.
9428 (mswindows_finalize_image_instance): ditto.
9430 * glyphs-eimage.c (jpeg_instantiate): device->domain.
9431 (gif_instantiate): ditto.
9432 (png_instantiate): ditto.
9433 (tiff_instantiate): ditto.
9435 * glyphs.c (instantiate_image_instantiator): use domain rather
9437 (mark_image_instance): device -> domain.
9438 (print_image_instance): ditto.
9439 (finalize_image_instance): ditto.
9440 (image_instance_equal): ditto.
9441 (allocate_image_instance): ditto.
9442 (Fcolorize_image_instance): ditto.
9443 (query_string_geometry): ditto.
9444 (image_instantiate): ditto
9445 (query_string_font): ditto.
9446 (image_instantiate): ditto.
9447 (update_subwindow): ditto.
9448 (unmap_subwindow): ditto.
9449 (map_subwindow): ditto.
9450 (subwindow_instantiate): ditto.
9452 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9453 (DOMAIN_FRAME): ditto.
9454 (DOMAIN_WINDOW): ditto.
9455 (DOMAIN_LIVE_P): ditto.
9456 (XDOMAIN_DEVICE): ditto.
9457 (XDOMAIN_FRAME): ditto.
9458 (XDOMAIN_WINDOW): ditto.
9460 * specifier.c (Fvalid_specifier_domain_p): add image instances as
9461 a valid specifier domain.
9463 2000-04-19 Andy Piper <andy@xemacs.org>
9465 * glyphs-widget.c (syms_of_glyphs_widget): remove
9466 widget-callback-current-channel.
9467 (vars_of_glyphs_widget): ditto.
9470 * gui.c (get_gui_callback): revert to previous behaviour.
9472 2000-04-18 Andy Piper <andy@xemacs.org>
9474 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9475 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9476 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9478 * glyphs.c (image_instance_equal): add margin_width.
9479 (image_instance_hash): ditto.
9481 * glyphs-widget.c (widget_instantiate): deal with margin-width.
9482 (layout_query_geometry): ditto.
9483 (layout_layout): ditto.
9484 (syms_of_glyphs_widget): add margin-width.
9485 (image_instantiator_layout): allow margin-width.
9487 * glyphs.c (update_widget_instances): make a normal function.
9488 (syms_of_glyphs): remove Qupdate_widget_instances.
9491 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9492 so that we don't corrupt ideas about the last event or
9493 command. Remove widget-callback-current-channel fiddling.
9494 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9496 2000-05-01 Martin Buchholz <martin@xemacs.org>
9498 * XEmacs 21.2.33 is released.
9500 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
9502 * make-src-depend: Allow dots in header file name.
9504 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
9506 * mule-charset.h (struct charset_lookup): Add
9507 next_allocated_1_byte_leading_byte and
9508 next_allocated_2_byte_leading_byte.
9509 * mule-charset.c: Move above two variables so that those values
9512 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
9514 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9515 when string length is zero.
9516 (find_charsets_in_emchar_string): Ditto.
9518 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
9520 * lisp.h: extern Qdialog and Qmenubar.
9522 * gui-x.c: added events.h.
9523 also fixed typo which made the file uncompilable.
9525 * general.c: Added Qmenubar and Qdialog
9527 2000-04-28 Ben Wing <ben@xemacs.org>
9529 * frame-msw.c (mswindows_init_frame_1):
9530 * frame-msw.c (mswindows_mark_frame):
9531 * event-msw.c (mswindows_enqueue_dispatch_event):
9533 * console-msw.h (struct mswindows_frame):
9534 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9535 there are now three hash tables for callbacks.
9536 mswindows_enqueue_dispatch_event is no longer static.
9538 * dialog-x.c (maybe_run_dbox_text_callback):
9539 * dialog-x.c (dbox_descriptor_to_widget_value):
9540 switch to new cons3 form for callbacks.
9542 * glyphs-msw.c (mswindows_register_gui_item):
9543 * glyphs-msw.c (mswindows_widget_instantiate):
9544 * glyphs-msw.c (add_tree_item):
9545 * glyphs-msw.c (add_tab_item):
9546 new image instance parameter, so it can be passed to callback-ex.
9547 respect :callback-ex as well as :callback.
9549 * glyphs-widget.c (VALID_GUI_KEYWORDS):
9552 * glyphs.c (print_image_instance):
9553 prettify, e.g. now prints widget type.
9556 certain funs have new image instance parameter.
9559 * gui.c (get_gui_callback):
9560 * gui.c (gui_item_add_keyval_pair):
9561 * gui.c (gui_item_init):
9562 * gui.c (gui_add_item_keywords_to_plist):
9563 * gui.c (mark_gui_item):
9564 * gui.c (gui_item_hash):
9565 * gui.c (gui_item_equal):
9566 * gui.c (copy_gui_item):
9567 * gui.c (syms_of_gui):
9568 recognize callback-ex in a number of places.
9569 also, fix the annoying "can't get out of yes-no dialog" bug.
9572 * gui.h (struct Lisp_Gui_Item):
9573 recognize callback-ex in a number of places.
9575 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9576 new parameter in button_item_to_widget_value.
9578 * glyphs-x.c (x_update_widget):
9579 * glyphs-x.c (x_button_instantiate):
9580 * glyphs-x.c (x_button_update):
9581 * glyphs-x.c (x_progress_gauge_instantiate):
9582 * glyphs-x.c (x_edit_field_instantiate):
9583 * glyphs-x.c (x_combo_box_instantiate):
9584 * glyphs-x.c (x_tab_control_instantiate):
9585 * glyphs-x.c (x_label_instantiate):
9586 new image instance parameter in various places.
9589 * event-Xt.c (enqueue_Xt_dispatch_event):
9590 this fun gets exported.
9593 * gui-msw.c (mswindows_handle_gui_wm_command):
9594 handle both :callback and :callback-ex, and generate our own
9595 event because it's one of the callback-ex arguments.
9598 * gui-x.c (popup_selection_callback):
9599 handle both :callback and :callback-ex, and generate our own
9600 event because it's one of the callback-ex arguments.
9601 * gui-x.c (button_item_to_widget_value):
9602 * gui-x.c (gui_items_to_widget_values_1):
9603 * gui-x.c (gui_item_children_to_widget_values):
9604 * gui-x.c (gui_items_to_widget_values):
9605 new image instance parameter in various places.
9607 * fns.c (Freplace_list):
9608 fix small typo in doc string.
9611 declare enqueue_Xt_dispatch_event.
9613 2000-04-28 Ben Wing <ben@xemacs.org>
9616 * buffer.c (Frecord_buffer):
9617 * buffer.c (syms_of_buffer):
9618 delete record-buffer-hook.
9621 * fns.c (Freplace_list):
9622 * fns.c (syms_of_fns):
9623 new primitive replace-list.
9626 slot for old buffer-alist.
9632 * redisplay.c (redisplay_frame):
9633 * redisplay.c (syms_of_redisplay):
9634 * redisplay.c (vars_of_redisplay):
9635 new hook buffer-list-changed-hook.
9638 2000-04-27 Ben Wing <ben@xemacs.org>
9640 * extents.h: extern in_modeline_generation.
9642 * redisplay.c (generate_formatted_string_db): set
9643 in_modeline_generation.
9645 * extents.c (extent_changed_for_redisplay): don't mark redisplay
9646 flags if in modeline generation. otherwise frame-modified-tick
9647 is ticked far too often.
9648 Declare in_modeline_generation.
9650 2000-04-26 Ben Wing <ben@xemacs.org>
9652 * emacs.c (vars_of_emacs): document quick-build "error-checking"
9654 (vars_of_emacs): add quick-build as an error-checking option.
9655 A bit kludgy, but there doesn't seem much point in creating
9656 a real var for this.
9658 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9660 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
9662 * redisplay.h (struct display_line): Add a new variable,
9665 * redisplay.c (create_text_block): Set dl->line_continuation if
9667 (create_string_text_block): Ditto.
9668 (regenerate_window_incrementally): Use line_continuation instead
9669 of searching continuation glyph.
9670 (add_margin_runes): Call add_glyph_rune.
9671 (add_glyph_rune): Handle margin glyph.
9673 2000-04-20 Martin Buchholz <martin@xemacs.org>
9675 * filelock.c (fill_in_lock_file_name):
9677 Check for IS_ANY_SEP instead of '/'.
9679 Avoid generating gratuitous garbage. Call user_login_name() directly.
9680 Never check errno without first seeing that system call failed.
9681 (unlock_file): Add GCPRO.
9682 (Flock_buffer): Fix docstring.
9683 (Ffile_locked_p): Fix docstring. Add GCPRO.
9685 2000-04-19 Martin Buchholz <martin@xemacs.org>
9687 * sysdep.c (get_pty_max_bytes):
9688 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9689 strings longer than 252 bytes.
9691 * md5.c: Unconditionally include ANSI header <limits.h>
9693 * glyphs-x.c (convert_EImage_to_XImage):
9694 * lisp-union.h (union Lisp_Object):
9695 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9697 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9699 * filelock.c (current_lock_owner): Remove unused variable o, p.
9701 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
9703 * callint.c: Remove multiply defined symbol Qlet
9704 (syms_of_callint): ditto.
9706 2000-04-14 Andy Piper <andy@xemacs.org>
9708 * general.c (syms_of_general): add last-command, this-command, let
9711 * lisp.h: declare various symbols.
9713 * glyphs.h: declare Qwidget_callback_current_channel;
9715 * glyphs-widget.c (syms_of_glyphs_widget): add
9716 Qgui_callback_current_channel.
9717 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9719 * gui-msw.c (mswindows_handle_gui_wm_command): bind
9720 widget-callback-current-channel when invoking the interactive
9721 arg. Also bind last-command and next-command when invoking the
9723 * gui-x.c (popup_selection_callback): ditto.
9725 * gui.c (get_gui_callback): massage args so that we are always
9726 calling eval. This allows us to add our own variable bindings
9729 * glyphs-x.c (x_button_instantiate): use
9730 gui_items_to_widget_values since this is GC safe.
9731 (x_progress_gauge_instantiate): ditto.
9732 (x_edit_field_instantiate): ditto.
9733 (x_label_instantiate): ditto.
9735 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9736 (emacs_Xt_event_widget_focus_out): new function
9737 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9739 (emacs_Xt_event_add_widget_actions): new function. add focus
9740 functions as actions.
9741 (init_event_Xt_late): use it.
9743 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
9745 * event-stream.c (Fdispatch_event): Doc fix.
9747 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
9749 * postgresql.c: Remove all references to PQsetenv*.
9751 * postgresql.h: Remove references to PGsetenvHandler object.
9752 * lrecord.h (lrecord_type): Ditto.
9754 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9756 * glyphs-msw.h (struct mswindows_image_instance_data): Added
9757 real_heigh and real_width members, and accessor macros for these.
9759 * glyphs-msw.c (init_image_instance_geometry): New function.
9760 (init_image_instance_from_dibitmap): Use it.
9761 (mswindows_resource_instantiate): Use it.
9762 (init_image_instance_from_xbm_inline): Use it.
9763 (mswindows_initialize_image_instance_mask): Use real bitmap
9765 (mswindows_create_resized_bitmap): Ditto.
9766 (mswindows_create_resized_mask): Ditto.
9768 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9769 and bitmap to their surface size.
9771 2000-04-11 Jan Vroonhof <jan@xemacs.org>
9773 * process-unix.c (unix_send_process): Guard against process MIA
9774 after Faccept_process_output.
9776 2000-04-11 Ben Wing <ben@xemacs.org>
9778 * eval.c (unbind_to_hairy): fix brokenness introduced by
9779 nanosecond speed improvements.
9781 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
9783 * sunplay.c (init_device): To play sounds correctly, the device
9784 apparently needs to be initialized at least once by XEmacs. Make
9787 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
9789 * redisplay.c (add_margin_runes): Add text image glyph
9792 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9794 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9795 gcc is newer than 2.5.
9797 2000-04-06 Colin Rafferty <colin@xemacs.org>
9799 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9801 * fns.c (size_bit_vector):
9802 * alloc.c (size_vector):
9803 (make_vector_internal):
9804 (make_bit_vector_internal):
9805 (sweep_bit_vectors_1):
9806 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9808 2000-04-06 Andy Piper <andy@xemacs.org>
9810 * gmalloc.c (malloc): undo previous change.
9815 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
9817 * line-number.c (buffer_line_number): Revert to former version.
9819 2000-04-06 Andy Piper <andy@xemacs.org>
9821 * gmalloc.c (malloc): add error checking.
9826 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9827 button_item_to_widget_value arg.
9829 * glyphs-x.c (x_button_instantiate): add extra
9830 button_item_to_widget_value arg.
9831 (x_progress_gauge_instantiate): ditto.
9832 (x_edit_field_instantiate): ditto.
9833 (x_label_instantiate): ditto.
9835 * gui-x.c (gui_items_to_widget_values_1): add extra
9836 button_item_to_widget_value arg.
9837 (button_item_to_widget_value): add extra menu_item_p arg.
9839 * gui-x.h: change signature of button_item_to_widget_value.
9841 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9842 button_item_to_widget_value arg.
9844 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9846 * buffer.h (struct buffer): auto_save_modified should be long.
9848 2000-04-05 Andy Piper <andy@xemacs.org>
9850 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9852 (button_query_geometry): give a little more room so that athena
9855 2000-04-05 Andy Piper <andy@xemacs.org>
9857 * faces.c (complex_vars_of_faces): The widget face should inherit
9858 the font of the gui-element face.
9860 2000-04-04 Andy Piper <andy@xemacs.org>
9862 * glyphs-x.c (x_button_update): new function. unconditionally
9863 update a button's state when the instance is dirty.
9864 (image_instantiator_format_create_glyphs_x): add x_button_update.
9865 (x_widget_instantiate): remove old resize cruft.
9867 2000-04-02 Andy Piper <andy@xemacs.org>
9869 * frame.c (change_frame_size_1): The introduction of gutters means
9870 that we need to allow 0 as a potential frame dimension.
9872 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
9874 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9875 image glyph if allow_cursor.
9876 (add_hscroll_rune): Don't allow cursor to border glyph.
9877 (create_text_block): Ditto.
9879 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9881 (redisplay_output_layout): Call ensure_face_cachel_complete for
9885 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
9887 * redisplay.c (add_glyph_rune): Adding text image as text runes.
9889 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9892 * redisplay-tty.c (tty_output_display_block): Delete the routine
9893 for text image glyph
9894 * redisplay-x.c (x_output_display_block): ditto
9895 * redisplay-msw.c (mswindows_output_display_block): ditto
9897 2000-02-02 Mike Alexander <mta@arbortext.com>
9899 Note: Some of these were committed by accident as part of other
9902 * regex.c (regex_compile): Avoid compiler warnings.
9904 * ntproc.c (sys_spawnve): Avoid compiler warnings.
9906 * nt.h: Declare term_ntproc correctly.
9908 * nt.c: Remove incorrect declaration of get_home_directory which
9909 is declared correctly in lisp.h.
9911 * keymap.c (get_keyelt): Avoid compiler warnings.
9912 (raw_lookup_key_mapper): Avoid compiler warnings.
9914 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9916 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9918 * filemode.c (mode_string): Avoid compiler warnings.
9920 * file-coding.c (Fcoding_system_aliasee): Add return statement to
9923 * events-mod.h: Undef some things that winuser.h defines differently.
9925 * data.c (Faset): Avoid compiler warnings.
9927 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9929 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9931 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9932 Fall through to simple beep on error.
9933 Replace "extern" by real header file.
9935 * linuxplay.c: Use nativesound.h
9936 (play_sound_data): Return error code. Be less verbose on error.
9938 * sunplay.c: Use nativesound.h
9939 (play_sound_data): Return error code. Be less verbose on error.
9941 * ntplay.c: Use nativesound.h
9942 (play_sound_data): Return fake error code
9944 * sgiplay.c: Use nativesound.h
9945 (play_sound_data): Return error code
9947 * hpplay.c: Use nativesound.h, partially implement
9948 new error code. Break compilation until finished.
9949 (play_sound_data): error code.
9951 * nativesound.h (play_sound_file):
9952 (play_sound_data): Prototype in new header.
9954 2000-03-31 Andy Piper <andy@xemacs.org>
9956 * glyphs-widget.c: (button_query_geometry): new function. Adjust
9957 for toggle and radio buttons.
9958 (image_instantiator_buttons): use it.
9960 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9962 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9963 (x_update_horizontal_scrollbar_callback): Return if no mirror was
9964 found. Scrollbar event probably belonged to some old config.
9966 2000-03-31 Andy Piper <andy@xemacs.org>
9968 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9970 (initialize_widget_image_instance): default layout to
9971 LAYOUT_HORIZONTAL rather than 0.
9972 (widget_instantiate): reverse the item list at the end rather than
9974 (layout_layout): re-code for the border text at the front of the
9975 item list rather than at the end.
9976 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9977 provided by the user.
9978 (widget_query_geometry): comment.
9980 2000-03-30 Andy Piper <andy@xemacs.org>
9982 * glyphs-widget.c (image_instantiator_layout): allow standard
9983 widget keywords in layouts.
9985 * gutter.c (output_gutter): cope with nil gutter contents.
9987 * frame.c (Fset_frame_properties): add gutter docs.
9989 2000-03-29 Andy Piper <andy@xemacs.org>
9991 * toolbar-msw.c (TBSTYLE_FLAT): add.
9992 (mswindows_output_toolbar): minor fiddling.
9994 2000-03-29 Andy Piper <andy@xemacs.org>
9996 * gutter.c (output_gutter): force gutter size recalculation if
9997 what we are trying to display won't fit.
9998 (update_gutter_geometry): new function. A per-gutter version of
9999 update_frame_gutter_geometry.
10000 (update_frame_gutter_geometry): use it.
10001 (redraw_exposed_gutter): add extra debugging output.
10003 2000-03-28 Mike Alexander <mta@arbortext.com>
10005 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10006 (pdump_file_unmap): Implement it on Windows
10007 (pdump_file_get): Save alocated handles for pdump_file_unmap
10009 2000-03-28 Andy Piper <andy@xemacs.org>
10011 * gui.c (get_gui_callback): treat Quit specially.
10013 2000-03-27 Andy Piper <andy@xemacs.org>
10015 * glyphs.c (image_instantiate): be careful to check in the same
10018 2000-03-27 Didier Verna <didier@xemacs.org>
10020 * config.h.in: define the proper SMART_INCLUDE macro.
10021 handle renaming of `foo_h_path' to `foo_h_file'.
10023 * database.c: ditto.
10027 * linuxplay.c: ditto.
10029 * terminfo.c: ditto.
10031 * tooltalk.h: ditto.
10033 2000-03-27 Andy Piper <andy@xemacs.org>
10035 * glyphs-msw.c (mswindows_update_widget): make sure the widget
10036 gets updated whenever the face might have changed.
10038 2000-03-26 Mike Alexander <mta@arbortext.com>
10040 * dumper.c (pdump_resource_free): Fix the comment.
10042 2000-03-21 Olivier Galibert <galibert@pobox.com>
10044 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10046 2000-03-22 Mike Alexander <mta@arbortext.com>
10048 * dumper.c: Include Windows headers on Windows
10049 (pdump_resource_free): Add a body to the function
10050 (pdump_load): exe_name -> exe_path and add some comments.
10052 2000-03-25 Mike Alexander <mta@arbortext.com>
10054 * gui.c (copy_gui_item_tree): Return a value in all cases
10056 2000-03-21 Didier Verna <didier@xemacs.org>
10058 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10060 (SMART_INCLUDE): new macro.
10061 (POSTGRES_INCLUDE): new macro to include postgresql headers from
10062 the proper location.
10064 * postgresql.c: use it.
10068 2000-03-24 Andy Piper <andy@xemacs.org>
10070 * gutter.c (redraw_exposed_gutters): must be "in display" when we
10073 2000-03-24 Andy Piper <andy@xemacs.org>
10075 * redisplay-output.c (compare_runes): use image_instance_changed
10076 to detect changes. Do not depend on glyphs_changed, only depend on
10078 (redisplay_output_layout): add debug messages.
10079 (compare_runes): ditto.
10081 * glyphs.h: declare new functions.
10082 (struct Lisp_Image_Instance): remove percent and associated
10085 * gui.h: declare new copying functions.
10087 * gui.c (copy_gui_item_tree): new function.
10088 (copy_gui_item): new function.
10089 (gui_item_id_hash): revert to standard hash.
10090 (gui_item_hash): ditto.
10091 (gui_item_hash_internal): deleted.
10092 (mark_gui_item): mark value.
10093 (gui_item_add_keyval_pair): add value.
10094 (gui_item_init): ditto.
10095 (gui_add_item_keywords_to_plist): ditto.
10096 (gui_item_equal): ditto.
10097 (syms_of_gui): add Q_value.
10099 * glyphs-x.c (x_progress_gauge_update): use pending items and
10100 value for setting the state.
10101 (x_update_widget): don't set items from pending here.
10103 * glyphs-widget.c (update_widget): update items here.
10104 (progress_gauge_set_property): use items for storing value. Put
10105 new value in pending items.
10107 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10108 items for new value. Convert percent -> value.
10109 (mswindows_tab_control_update): don't update items here.
10111 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10112 (update_subwindow): ditto.
10113 (image_instance_changed): new function. Compare hash values and
10114 past and present widget items.
10115 (image_instantiate): We more careful about where we instantiate
10117 (image_instantiate): add error checking.
10119 * gutter.c (syms_of_gutter): use -hook.
10121 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
10123 * console-tty.c (Fset_console_tty_input_coding_system): Use
10125 (Fset_console_tty_output_coding_system): Use Qterminal.
10126 (tty_init_console): Use Qkeyboard and Qterminal.
10128 2000-03-21 Ben Wing <ben@xemacs.org>
10130 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10131 From Mike Alexander <mta@arbortext.com>.
10133 2000-03-21 Ben Wing <ben@xemacs.org>
10135 * event-msw.c (mswindows_need_event): Horrible kludge to fix
10136 process brokenness. Proper implementation to come.
10138 Rename call-process-internal to old-call-process-internal.
10139 New impl. in process.el.
10141 2000-03-21 Martin Buchholz <martin@xemacs.org>
10143 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10145 2000-03-20 Andy Piper <andy@xemacs.org>
10147 * glyphs.c (full_list_hash): make hashes of the same elements in
10148 different orders return different values.
10150 2000-03-20 Martin Buchholz <martin@xemacs.org>
10152 * XEmacs 21.2.32 is released.
10154 2000-03-20 Martin Buchholz <martin@xemacs.org>
10156 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10157 (DFC_MALLOC_USE_CONVERTED_DATA):
10158 Add aliasing-safe casts to allow use with char* or unsigned char*
10161 * eldap.c (Fldap_open):
10162 (Fldap_search_basic):
10165 Make C++-compilable.
10166 Make sure GCPRO'ed variables are initialized.
10167 Use temp variables to avoid repeated calls to Flength.
10169 2000-03-16 Martin Buchholz <martin@xemacs.org>
10172 Make sure PATH_MAX is always defined.
10173 Include limits.h for PATH_MAX.
10174 Deprecate use of MAXPATHLEN.
10176 2000-03-10 Martin Buchholz <martin@xemacs.org>
10178 * emacs.c: Add reinit_vars_of_fileio.
10179 * symsinit.h: Add reinit_vars_of_fileio.
10180 * fileio.c (reinit_vars_of_fileio): New.
10181 * fileio.c (Fmake_temp_name):
10182 Initialize temp_name random number from microseconds to make
10183 collisions even less likely. Initialize always at process startup
10184 time. (make-temp-name) used to return the same file name twice in
10186 Random stylistic fiddling.
10189 2000-03-20 Andy Piper <andy@xemacs.org>
10191 * glyphs.c (image_instantiate): allow text glyphs to be
10192 instantiated in the minibuffer window.
10194 2000-03-19 Andy Piper <andy@xemacs.org>
10196 * glyphs.c (image_instance_hash): be careful about which items we
10199 * glyphs-widget.c (tab_control_set_property): record into pending
10200 items rather than the actual items.
10202 * glyphs-x.c (x_update_widget): use pending items to update with.
10204 * glyphs-msw.c (mswindows_tab_control_update): use pending items
10207 * glyphs.c (mark_image_instance): mark pending items.
10209 * window.c (Fset_window_configuration): record the buffer.
10210 (Fselect_window): totally revert previous change which breaks many
10213 2000-03-18 Andy Piper <andy@xemacs.org>
10215 * glyphs-msw.c (mswindows_tab_control_update): force selected
10218 * glyphs.c (image_instantiate): don't allow the minibuffer as a
10219 window domain cache, otherwise we get inconsistencies at
10220 startup. There is something fishy at startup which can lead to the
10221 minibuffer being the selected window when the gutter content is
10224 * gui.c (parse_gui_item_tree_list): add probably unnecessary
10226 (parse_gui_item_tree_children): ditto.
10227 (parse_gui_item_tree_item): ditto.
10229 * glyphs.c (Fupdate_widget_instances): return something.
10231 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
10233 * window.c (Fselect_window): Undo 2000-03-17 change.
10235 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
10237 * postgresql.c (Fpq_setenv): Remove this turkey when linking
10238 against v7.0 libraries. Insta-coredump city until the postgres
10241 2000-03-17 Andy Piper <andy@xemacs.org>
10243 * faces.c (complex_vars_of_faces): don't give the widget face an
10244 inherited background pixmap.
10246 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10249 * event-stream.c (Fdispatch_non_command_events): return something.
10251 * gutter.c (output_gutter): use widget face.
10252 (clear_gutter): ditto.
10254 * NEWS: adjust again.
10256 * window.c (Fselect_window): make sure this runs to completion to
10257 avoid oddities with Fset_window_configuration.
10258 (Fcurrent_window_configuration): in general do not save the
10259 minibuffer as the selected window.
10261 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10263 2000-03-16 Olivier Galibert <galibert@pobox.com>
10265 * emacs.c (Frunning_temacs_p): Revert previous patch.
10266 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10268 2000-03-16 Andy Piper <andy@xemacs.org>
10270 * glyphs-x.c (x_tab_control_update): if no widget values then
10273 * NEWS: update for new features.
10275 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10276 synthetic event to the native system.
10277 (reinit_vars_of_event_Xt): set force_event_pending to
10278 emacs_Xt_force_event_pending.
10280 * events.h (struct event_stream): add force_event_pending.
10282 * specifier.c (recompute_one_cached_specifier_in_window): add
10285 * redisplay.c (redisplay_frame): don't call
10286 update_frame_subwindows. Reset subwindow cachels when
10287 subwindows_changed, removing this was an optimization too far.
10289 * redisplay-output.c (compare_runes): reorganize so that we catch
10290 glyph changes when we want them. Set optimize_output when this
10291 would help layouts.
10292 (redisplay_output_layout): remove frame_really_changed, use
10293 optimize_output instead.
10295 * redisplay-msw.c (mswindows_output_display_block): reset
10296 optimize_output after outputting a glyph.
10297 * redisplay-x.c (x_output_display_block): ditto.
10298 * redisplay-tty.c (tty_output_display_block): ditto.
10300 * gutter.c: (specifier_vars_of_gutter): use new spec changed
10302 (gutter_specs_changed): do specific gutter positions.
10303 (top_gutter_specs_changed): new function. Only update the
10304 specified gutter specs.
10305 (bottom_gutter_specs_changed): ditto.
10306 (left_gutter_specs_changed): ditto.
10307 (right_gutter_specs_changed): ditto.
10309 * gui.c (gui_item_hash_internal): new function, does a real hash.
10310 (gui_item_id_hash): use it.
10311 (gui_item_hash): hash the eval'ed gui_item.
10313 * gui-x.c (popup_selection_callback): send an eval event to call
10314 Fupdate_widget_instances.
10316 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10317 to call Fupdate_widget_instances.
10319 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10320 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10322 * glyphs.c: (update_frame_subwindows): deleted.
10323 (Fupdate_widget_instances): new function for updating the dirty
10324 state of widgets that might have changed.
10325 (syms_of_glyphs): add Qupdate_widget_instances.
10326 (full_list_hash): hash a list completely.
10327 (image_instance_hash): use it for items and properties.
10329 * frame-msw.c (mswindows_size_frame_internal): remove unused
10332 * faces.h (struct face_cachel): fix comment.
10334 * event-stream.c (Fdispatch_non_command_events): new
10335 function. Process non-command events, forcing an event cycle
10337 (syms_of_event_stream): declare.
10338 (event_stream_force_event_pending): new function. Force an event
10339 on the native event queue so that an event cycle will occur next
10343 (struct ntpipe_shove_stream):
10344 (mswindows_enqueue_dispatch_event):
10345 (mswindows_dequeue_dispatch_event):
10346 (mswindows_cancel_dispatch_event):
10347 (mswindows_pump_outstanding_events):
10348 (mswindows_drain_windows_queue):
10349 (mswindows_handle_paint):
10350 (mswindows_wnd_proc):
10351 (mswindows_key_to_emacs_keysym):
10352 (get_process_input_waitable):
10353 (emacs_mswindows_delete_stream_pair): re-indent file.
10354 (mswindows_need_event): do not process further fds if the windows
10355 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10356 fixes the 100% cpu problem.
10357 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10359 2000-03-15 Olivier Galibert <galibert@pobox.com>
10365 * emacs.c: Moved dump file searching to dumper.c.
10366 (Frunning_temacs_p): Fixed.
10368 * alloc.c: Moved everything pdump-related to dumper.c. Removed
10369 last_lrecord_type_index_assigned.
10371 2000-02-20 Olivier Galibert <galibert@pobox.com>
10373 * symsinit.h: Added reinit parameter to init_console_stream
10376 * lisp.h: Added file parameter to pdump_load declaration.
10378 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10379 support. Added dump file searching.
10381 * config.h.in: Added EMACS_PROGNAME.
10383 * console-stream.c (init_console_stream): Fix reinitialisation
10384 when running from temacs.
10386 * alloc.c (pdump): Add id support.
10387 (pdump_load): Add file parameter and signature/id support.
10389 * Makefile.in.in: Add full pdump support.
10391 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
10393 * postgresql.c: Update documentation to reflect latest code
10395 (print_result): Show tuple counts in printed representation when
10397 (Fpq_put_nbytes): MULE-ize.
10398 (Fpq_get_line_async): Ditto.
10400 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10402 * postgresql.c (Fpq_lo_import): Fix return value.
10403 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10405 2000-03-13 Ben Wing <ben@xemacs.org>
10407 * alloc.c (pdump_load):
10408 Fix compile warning under mswin.
10410 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10412 * postgresql.c: Mule-ization, bug fixes.
10413 Use PG_CODING to encapsulate coding system name changes.
10414 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10415 (pg-coding-system): Create.
10417 (Fpq_conn_defaults): Mule-ize.
10418 (Fpq_connectdb): Mule-ize & bug fix.
10419 (Fpq_connect_start): Mule-ize.
10420 (Fpq_set_client_encoding): Mule-ize.
10421 (Fpq_finish): Document `DEAD' connection status.
10422 (Fpq_clear): Ditto.
10423 (Fpq_pgconn): Mule-ize.
10424 (Fpq_exec): Mule-ize & bug fix.
10425 (Fpq_send_query): Ditto.
10426 (Fpq_get_result): Ditto.
10427 (Fpq_res_status): Mule-ize.
10428 (Fpq_result_error_message): Mule-ize.
10429 (Fpq_ntuples): fix comments.
10430 (Fpq_fname): Mule-ize.
10431 (Fpq_fnumber): Mule-ize.
10432 (Fpq_ftype): fix comments.
10433 (Fpq_get_value): Mule-ize.
10434 (Fpq_cmd_status): Ditto.
10435 (Fpq_cmd_tuples): Ditto.
10436 (Fpq_oid_value): Ditto.
10437 (Fpq_notifies): Ditto.
10438 (Fpq_lo_import): Ditto.
10439 (Fpq_lo_export): Ditto.
10440 (Fpq_get_line): Ditto.
10441 (Fpq_put_line): Mule-ize and bug fix.
10442 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10444 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10446 * postgresql.c (vars_of_postgresql): Mule-ize.
10447 (Fpq_conn_defaults): Ditto.
10449 2000-03-12 Ben Wing <ben@xemacs.org>
10451 * alloc.c (Fmake_byte_code):
10452 * alloc.c (debug_string_purity_print):
10453 * alloc.c (pdump_backtrace):
10454 * alloc.c (pdump_get_indirect_count):
10455 * alloc.c (pdump_register_sub):
10456 * alloc.c (pdump_register_object):
10457 * alloc.c (pdump_register_struct):
10458 * alloc.c (pdump_dump_data):
10459 * alloc.c (pdump_reloc_one):
10463 * console-msw.c (GetConsoleHwnd):
10464 * console-msw.c (msw_hide_console):
10465 * console-msw.c (msw_show_console):
10466 * console-msw.c (msw_ensure_console_buffered):
10467 * console-msw.c (msw_output_console_string):
10468 * console-msw.c (console_type_create_mswindows):
10470 a) Added functions to manipulate the console window for use with
10473 b) Added support for writing text to the console, which is now
10474 used under Windows when xemacs is not being run non-interactively,
10475 to write text that would otherwise be destined for stdout because
10476 under these circumstances, text written to stdout tends to
10477 disappear and not be seen.
10481 * event-Xt.c (x_event_to_emacs_event):
10482 * event-Xt.c (describe_event_window):
10483 * events-mod.h (XEMACS_MOD_CONTROL):
10485 * events.c (Fmake_event):
10486 * events.c (character_to_event):
10487 * events.c (event_to_character):
10488 * events.c (format_event_object):
10489 * events.c (Fevent_modifiers):
10491 * events.h (struct key_data):
10492 * events.h (struct button_data):
10493 * events.h (struct misc_user_data):
10494 * frame-x.c (Fcde_start_drag_internal):
10495 * frame-x.c (Foffix_start_drag_internal):
10496 * gpmevent.c (Freceive_gpm_event):
10498 * keymap.c (bucky_sym_to_bucky_bit):
10499 * keymap.c (control_meta_superify):
10500 * keymap.c (make_key_description):
10501 * keymap.c (keymap_lookup_directly):
10502 * keymap.c (create_bucky_submap):
10503 * keymap.c (keymap_store):
10504 * keymap.c (define_key_check_and_coerce_keysym):
10505 * keymap.c (define_key_parser):
10506 * keymap.c (define_key_alternate_name):
10507 * keymap.c (Fdefine_key):
10508 * keymap.c (raw_lookup_key_mapper):
10509 * keymap.c (struct map_keymap_unsorted_closure):
10510 * keymap.c (map_keymap_unsorted_mapper):
10511 * keymap.c (map_keymap_sort_predicate):
10512 * keymap.c (map_keymap_sorted):
10513 * keymap.c (accessible_keymaps_mapper_1):
10514 * keymap.c (where_is_recursive_mapper):
10515 * keymap.c (describe_map_mapper):
10516 * keymap.c (describe_map_sort_predicate):
10517 * keymap.c (describe_map):
10518 * keymap.c (complex_vars_of_keymap):
10519 And a number of other files, the key modifier preprocessor
10520 constants that xemacs uses have names that conflict with constants
10521 defined under MS Windows for other purposes, so they were renamed
10522 to begin with the prefix XEMACS_. The variables that hold such
10523 modifiers were changed to consistently be of type int to fix
10524 various compile warnings.
10526 * console.c (complex_vars_of_console):
10529 * device-msw.c (mswindows_finish_init_device):
10530 * device-msw.c (msw_get_workspace_coords):
10531 * device-msw.c (mswindows_device_system_metrics):
10532 and various other files, added support for a new
10533 device property called offset-workspace which returns the position
10534 of the upper left corner of the workspace area and goes along with
10535 the existing size-workspace property.
10538 * dialog-msw.c (push_bufbyte_string_as_unicode):
10539 * dialog-msw.c (mswindows_popup_dialog_box):
10540 Added support for XEmacs-style accelerator specifications in
10541 button text. Note: I didn't add support for this under X Windows,
10542 and somebody needs to do this.
10545 * dialog.c (Fpopup_dialog_box):
10546 Documented the support for accelerators that was just mentioned.
10548 editfns.c (get_home_directory): Changed behavior under Windows
10549 when HOME not defined; former behavior was irretrievably broken.
10552 * emacs.c (main_1):
10554 * minibuf.c (clear_echo_area_internal):
10555 * minibuf.c (echo_area_append):
10557 * print.c (std_handle_out_external):
10558 * print.c (std_handle_out_va):
10560 * print.c (write_string_to_stdio_stream):
10561 * print.c (output_string):
10562 * print.c (debug_print):
10563 * print.c (debug_backtrace):
10564 * print.c (debug_short_backtrace):
10565 Cleaned up the code that prints text to stdout so that this can be
10566 changed to output into a console window instead under MS Windows,
10567 as described above.
10570 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10571 * eval.c (internal_catch):
10572 * eval.c (unwind_to_catch):
10573 * eval.c (throw_or_bomb_out):
10574 * eval.c (condition_case_1):
10575 * eval.c (signal_1):
10576 * eval.c (check_error_state_sanity):
10577 * eval.c (call_with_suspended_errors_1):
10578 * eval.c (call_with_suspended_errors):
10579 * eval.c (reinit_vars_of_eval):
10580 Added code to catch throw loops and check for a pesky bug that may
10584 * event-msw.c (key_needs_default_processing_p):
10585 * event-msw.c (mswindows_wnd_proc):
10586 * event-msw.c (mswindows_modifier_state):
10587 * event-msw.c (emacs_mswindows_quit_p):
10588 * event-msw.c (vars_of_event_mswindows):
10589 a) Added support for using the alt key to select menu items as is
10590 standard under MS Windows. This is controlled using the variable
10591 menu-accelerator-enabled, just like under X Windows. There is an
10592 option on the options menu to turn this support on. I really
10593 think that it should be on by default under Windows, but I'm not
10594 going to make this change yet.
10596 b) Added support for dynamic display size changes under Windows.
10599 * event-stream.c (maybe_echo_keys):
10600 * event-stream.c (Fnext_event):
10601 * event-stream.c (command_builder_find_leaf):
10602 * event-stream.c (lookup_command_event):
10603 * event-stream.c (execute_command_event):
10604 * event-stream.c (pre_command_hook):
10605 * event-stream.c (post_command_hook):
10606 * event-stream.c (syms_of_event_stream):
10607 * event-stream.c (vars_of_event_stream):
10608 * event-stream.c (complex_vars_of_event_stream):
10609 * events.h (struct command_builder):
10611 a) Tried to clean up a little bit the horribly written x-specific
10612 accelerator code that crept into this file. I moved this code
10613 into menubar-x.c where it belongs. I also needed to move the
10614 command builder structure into the file events.h because it is
10615 accessed directly by this accelerator code. What I didn't do, but
10616 which should be done at some point, is to properly abstract this
10617 code using device methods instead of the kludgy way that it
10618 currently hooks into the event code.
10620 b) Added the lisp variables this-command-properties and
10621 last-command- properties, which should be used to synchronize two
10622 adjacent commands in preference to playing games with the variable
10623 this-command, which is typically what happens.
10625 c) Added some slightly nasty code to hook into the lisp support
10626 for shifted- motion-key selection. This is actually necessary for
10627 somewhat complicated reasons, which are described in
10628 simple.el. (NB: I think the proper thing would be to have the code
10629 that calls the pre and post command hooks also call out to generic
10630 lisp functions in simple.el, where all built-in stuff could be
10631 added. I will think about this more.)
10633 * event-unixoid.c (poll_fds_for_input):
10634 * lread.c (readchar):
10635 * redisplay-tty.c (tty_clear_frame):
10636 * redisplay-x.c (x_get_gc):
10637 * signal.c (interrupt_signal):
10638 And a whole bunch of other files: fixed up places that printed
10639 directly to stderr to instead call the function stderr_out so that
10640 the changes I made under Windows work correctly.
10642 * filemode.c (mode_string):
10646 * frame-msw.c (mswindows_size_frame_internal):
10647 Fixed the computation of frame size and position to keep the frame
10648 within the workspace area, rather than within the physical
10649 dimensions of the screen, so that the frame doesn't overlap window
10650 manager decorations, such as the start menu and toolbar, typically
10651 at the bottom of the screen.
10653 * frame.c (vars_of_frame):
10654 Changed the default frame title format under MS Windows to consist
10655 of buffername-XEmacs, which is standard under MS Windows. I think
10656 it might be a good idea to change this everywhere because I think
10657 it is superior to the current frame title format, but this is the
10658 kind of change that is likely to cause some people to get annoyed,
10659 so I'm not making it.
10661 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10663 * gui-msw.c (mswindows_handle_gui_wm_command):
10664 Fixed compile warnings.
10667 * gui-x.c (strdup_and_add_accel):
10668 * gui-x.c (button_item_to_widget_value):
10670 Added code to automatically put an accelerator onto the beginning
10671 of menu items that don't have one as is now the standard, and is
10672 described more later. Also fixed things so that the menu item
10673 name can be an evaluated expression, again a new standard.
10676 * gui.c (gui_item_add_keyval_pair):
10677 * gui.c (make_gui_item_from_keywords_internal):
10678 * gui.c (gui_add_item_keywords_to_plist):
10679 * gui.c (gui_item_accelerator):
10680 * gui.c (gui_name_accelerator):
10681 * gui.c (gui_item_included_p):
10682 * gui.c (gui_item_display_flush_left):
10683 * gui.c (gui_item_display_flush_right):
10684 * gui.c (parse_gui_item_tree_item):
10685 * gui.c (parse_gui_item_tree_children):
10686 * gui.c (parse_gui_item_tree_list):
10687 Mule-ized. Cleanup. GCPRO addition.
10689 * line-number.c (buffer_line_number):
10691 * lisp.h (EMACS_INT_MAX):
10692 Added the manifest constant EMACS_INT_MIN corresponding to the
10693 existing constant EMACS_INT_MAX. This is partially to fix compile
10694 warnings under Windows, and partly for cleanliness.
10697 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10698 * menubar-msw.c (msw_translate_menu_or_dialog_item):
10699 * menubar-msw.c (displayable_menu_item):
10700 * menubar-msw.c (populate_menu_add_item):
10701 * menubar-msw.c (populate_or_checksum_helper):
10702 * menubar-msw.c (populate_menu):
10703 * menubar-msw.c (update_frame_menubar_maybe):
10704 * menubar-msw.c (prune_menubar):
10705 * menubar-msw.c (msw_char_is_accelerator):
10706 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10707 * menubar-msw.c (mswindows_handle_wm_command):
10708 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10709 * menubar-msw.c (mswindows_handle_wm_initmenu):
10710 * menubar-msw.c (mswindows_update_frame_menubars):
10711 * menubar-msw.c (mswindows_free_frame_menubars):
10712 * menubar-msw.c (mswindows_popup_menu):
10713 Fixed a bug in handling accelerators where an extra character
10714 would be displayed in the menu item. Also generalized the
10715 function displayable_menu_item because it is now used by the
10716 dialog box code as well. And finally, added code in the functions
10717 that create the menubar to extract a list of accelerators for the
10718 top level menubar, which is used in the event code to determine
10719 whether a particular alt-key combination should be used to invoke
10720 a menu item, or should be passed through to access the standard
10721 XEmacs keymap binding for this key combination.
10723 Much needed GCPROing.
10726 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10727 * menubar-x.c (menu_item_descriptor_to_widget_value):
10728 * menubar-x.c (restore_in_menu_callback):
10729 * menubar-x.c (x_popup_menu):
10730 * menubar-x.c (menu_move_up):
10731 * menubar-x.c (menu_move_down):
10732 * menubar-x.c (menu_move_left):
10733 * menubar-x.c (menu_move_right):
10734 * menubar-x.c (menu_select_item):
10735 * menubar-x.c (command_builder_operate_menu_accelerator):
10736 * menubar-x.c (menu_accelerator_junk_on_error):
10737 * menubar-x.c (command_builder_find_menu_accelerator):
10738 * menubar-x.c (Faccelerate_menu):
10740 Moved a whole bunch of code here that was previously in
10741 event-stream.c as described above. There is also code connected
10742 to the new standard of adding an accelerator to the beginning of
10743 menu items that don't have one as described above and below.
10746 * menubar.c (menu_parse_submenu_keywords):
10747 * menubar.c (Fmenu_find_real_submenu):
10748 * menubar.c (Fnormalize_menu_item_name):
10749 * menubar.c (syms_of_menubar):
10750 * menubar.c (vars_of_menubar):
10751 * menubar.c (complex_vars_of_menubar):
10753 a) Cleaned up a bunch of documentation and improved it.
10755 b) XEmacs now automatically adds an accelerator onto the beginning
10756 of any menu items that don't have one. I did this because there
10757 will inevitably be some menu items on the main menubar that don't
10758 have accelerators on them because the package that adds that
10759 particular menu item hasn't yet been fixed up to have accelerators
10760 in them and it looked rather strange to have some items with and
10761 some items without accelerators, especially since even in items
10762 without accelerators, you can, at least under windows, still
10763 access the item through an accelerator corresponding to the first
10764 character in the item's name. If people don't like this behavior,
10765 I can add a variable to turn it off optionally, but I'm not sure
10766 this is a good idea because we really do need to have accelerators
10767 on all of the menu items, and if a package doesn't like the
10768 accelerators being put on the first character, then it should put
10769 the accelerators where they belong.
10771 c) I made a behavior change, which is that the descriptor that
10772 specifies the text of the menu item, which formerly was just a
10773 string, can now also be an evaluated expression. This makes this
10774 descriptor parallel with all of the others, which could also be
10775 evaluated expressions. This also obviates the need for the
10776 keyword :label, which was previously listed in the documentation
10777 as unimplemented, and which was for the same purpose.
10782 * ntproc.c (new_child):
10783 * ntproc.c (sys_spawnve):
10784 * ntproc.c (find_child_console):
10785 * ntproc.c (sys_kill):
10786 Fixed compile warnings. By the way, this file should really go
10787 away entirely, and this will happen as soon as Kirill makes his
10788 final round of process cleanups, which affect the function
10792 * process-nt.c (struct nt_process_data):
10793 * process-nt.c (find_process_from_pid):
10794 * process-nt.c (send_signal_the_nt_way):
10795 * process-nt.c (enable_child_signals):
10796 * process-nt.c (find_child_console):
10797 * process-nt.c (send_signal_the_95_way):
10798 * process-nt.c (nt_finalize_process_data):
10799 * process-nt.c (ensure_console_window_exists):
10800 * process-nt.c (nt_create_process):
10801 * process-nt.c (nt_kill_child_process):
10802 * process-nt.c (nt_kill_process_by_pid):
10803 * process-nt.c (nt_open_network_stream):
10804 * process-nt.c (vars_of_process_nt):
10805 Copied over code from Emacs 20.5 to correctly send signals to sub-
10806 processes under Windows 95. Also added code to automatically
10807 create and hide console window when a sub-process is created under
10808 Windows 95, which obviates the need for the separate runemacs.exe
10809 executable, and finally implemented some variables that were
10810 implemented in Emacs 20.5, but previously not in XEmacs. These
10811 include mswindows- start-process-share-console and
10812 mswindows-start-process-inherit-error-mode. (Both of these only
10813 apply to Windows 95.)
10815 * regex.c (regex_compile): Fixed a compile warning.
10818 * select-msw.c (mswindows_own_selection):
10819 * select-msw.c (mswindows_get_foreign_selection):
10820 * select-msw.c (mswindows_disown_selection):
10821 * select-msw.c (console_type_create_select_mswindows):
10822 * select-msw.c (syms_of_select_mswindows):
10823 Cleaned up the file and implemented the device method
10824 selection_exists_p, which had accidentally been left out. Also
10825 removed four lisp functions that were remnants from before the
10826 time when the selection code was properly device abstracted.
10827 These functions are no longer needed because there are generic
10828 equivalents, and because they were added recently and don't exist
10829 in FSF Emacs, I don't think there's any problem with just deleting
10833 * sysdep.c (sys_subshell):
10834 Fixed a compile warning, although in this case there's probably
10835 something wrong with this code, and it ought to be looked into
10836 more thoroughly by somebody who understands it.
10839 * window.c (Fwindow_text_area_height):
10840 * window.c (Fwindow_width):
10841 * window.c (Fwindow_full_width):
10842 * window.c (Fwindow_pixel_width):
10843 * window.c (debug_print_window):
10844 * window.c (syms_of_window):
10845 Added functions window-text-area-height and window-full-width,
10846 which are functions for returning various width and height
10847 characteristics of a window. (One of these functions is necessary
10848 for making the file dialog box work correctly, and the other one
10849 was added for completeness.) Also added a table to the
10850 documentation for window-height which describes the entire scheme
10851 for accessing width and height characteristics of a window.
10853 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10855 * nt.c (fstat): Added a comment for another problem with
10856 non-encapsulated [f]stat(), reported by Adrian Aichner
10857 <aichner@ecf.teradyne.com>.
10859 2000-03-11 Andy Piper <andy@xemacs.org>
10861 * window.c (make_dummy_parent): initialize subwindow instance
10863 (Fset_window_configuration): zero extent_modiff.
10865 2000-03-10 Andy Piper <andy@xemacs.org>
10867 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10868 more changes can be triggered.
10869 (Fredisplay_frame): ditto.
10870 (Fredraw_device): ditto.
10871 (Fredisplay_device): ditto.
10872 (redisplay_frame): make non-static.
10873 (redisplay_frame): call update_frame_gutter_geometry outside of
10876 * gutter.h: declare update_frame_gutter_geometry.
10878 * redisplay.h: declare redisplay_frame.
10880 * gutter.c (update_frame_gutter_geometry): move geometry changes
10881 in update_frame_gutters here. Geometry changes can only occur
10882 outside of redisplay.
10883 (update_frame_gutters): remove geometry change code.
10884 (Fredisplay_gutter_area): make sure that we are in display when we
10885 update and that we have flushed any size changes.
10887 2000-03-11 Andy Piper <andy@xemacs.org>
10889 * alloc.c (pdump_dump_data): remove i & count shadows.
10891 2000-02-27 Mike Alexander <mta@arbortext.com>
10893 * sysdep.h: Declare pdump_read_file
10895 * sysdep.c (pdump_read_file): New function
10897 * alloc.c (pdump_load): Call pdump_read_file to get the portable
10900 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10902 * lrecord.h: add `lrecord_type_pgsetenv'.
10904 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
10906 * symsinit.h: declare (vars|syms)_of* functions.
10907 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10909 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
10911 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10913 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10916 * emacs.c (main_1): Call postgres initialization code.
10918 * postgresql.h: New file. PostgreSQL RDBMS support.
10919 * postgresql.c: New file.
10921 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
10923 * redisplay-output.c (redisplay_output_display_block): Disable
10926 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10928 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10929 (Fcanna_henkan_next): Ditto.
10930 (Fcanna_bunsetu_henkou): Ditto.
10931 (Fcanna_henkan_kakutei): Ditto.
10932 (Fcanna_henkan_end): Ditto.
10933 (Fcanna_henkan_quit): Ditto.
10934 (Fcanna_henkan_next): Set retun value correctly.
10935 (c2mu): Use unsigned char instead of signed char.
10937 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10939 * emacs.c (main_1): Always call syms_of_gui.
10940 * inline.c: include gui.h
10942 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10944 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10945 converted to Lisp_Object.
10946 (Qtop_bottom): New variable.
10947 (syms_of_redisplay): Initialize it.
10948 * redisplay.h (Vvisible_bell): Ditto.
10949 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10950 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10951 only flash top and bottom.
10953 2000-03-08 Andy Piper <andy@xemacs.org>
10955 * buffer.c (Frename_buffer): record new buffer name the right way.
10957 2000-03-08 Andy Piper <andy@xemacs.org>
10959 * glyphs.c (update_subwindow): increase hash depth so that widget
10960 items get picked up properly.
10962 * redisplay-output.c (compare_runes): increase hash depth so that
10963 widget items get picked up properly.
10965 2000-03-08 Andy Piper <andy@xemacs.org>
10967 * gutter.c (output_gutter): add some debug.
10969 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10970 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10971 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10973 * redisplay-output.c (compare_runes): use display_hash to
10974 determine if glyphs really are not the same.
10976 * glyphs.c (update_subwindow): check display_hash to see if
10977 anything really needs to be updated. If not then do
10978 nothing. Record the display_hash after updating.
10979 (image_instance_equal): compare the image_instance face also.
10981 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
10983 * redisplay.h: Fix comment style.
10985 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
10987 * consle-msw.h (struct mswindows_frame):
10988 Added new member paint_pending to indicate whether a WM_PAINT
10989 magic event has been queued for this frame.
10991 * event-msw.c (mswindows_drain_windows_queue):
10992 Don't queue a WM_PAINT magic event if one is already queued.
10993 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10995 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10997 2000-03-07 Didier Verna <didier@xemacs.org>
10999 * dired.c: #include `regex.h' after `sysfile.h'.
11001 2000-03-06 Martin Buchholz <martin@xemacs.org>
11003 * sound.c (init_nas_sound): Fix compiler warning.
11005 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11007 (MARK_STRUCT_AS_FREE):
11008 (MARK_STRUCT_AS_NOT_FREE):
11009 Make `gcc -fstrict-aliasing' work properly.
11011 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
11013 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11014 (mswindows_delete_device): Call CoUnnitialize().
11016 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11018 2000-02-25 <CraigL@DyCon.com>
11020 * process-nt.c: MinGW now has <shellapi.h>, but still needs
11023 * sysdep.c: This extern declaration for environ prevents MinGW
11024 from finding the variable in CRTDLL.DLL.
11026 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11028 (SHGFI_EXETYPE): ..
11029 (WM_MOUSEWHEEL): ..
11030 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11032 (MMRESULT): Removed, now defined in cygwin's windows headers.
11034 (uid_t,gid_t,pid_t,ssize_t): ..
11035 (_timeb): Removed, MinGW defines both _timeb and timeb.
11036 (HAVE_H_ERRNO): Added.
11037 (HAVE_TZNAME): Added, configure is not detecting this.
11039 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
11041 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11042 * syntax.c (syntax_match): Use it.
11044 * cmds.c: Import auto-fill-chars from FSF Emacs.
11045 (Vauto_fill_chars): New variables.
11046 (internal_self_insert): Check Vauto_fill_chars.
11048 Declare auto-fill-chars as a Lisp variable and initialize it.
11050 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
11052 * fileio.c (Fmake_symbolic_link):
11054 Run handlers even if local machine doesn't have symlinks.
11056 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
11058 * event-msw.c (mswindows_drain_windows_queue):
11059 Don't generate paint magic events for non-XEmacs frames.
11061 2000-03-05 Andy Piper <andy@xemacs.org>
11063 * redisplay.c (redisplay_frame): generate_displayable_area and
11064 friends assumes that we are not in GC, we therefore have to make
11065 sure that this doesn't happen.
11067 * gutter.c (calculate_gutter_size): generate_displayable_area
11068 assumes that we are not in GC, we therefore have to make sure that
11069 this doesn't happen.
11071 2000-03-05 Martin Buchholz <martin@xemacs.org>
11073 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11075 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
11077 * redisplay.c (regenerate_window): Make sure we set a sane value
11078 for end_pos even if we jump out of the loop.
11079 (regenerate_window): Answer Ben's question :-).
11080 (start_end_of_last_line): Add may_error argument.
11081 (start_of_last_line):
11082 (end_of_last_line): Pass may_error = 0.
11083 (end_of_last_line_may_error): New function.
11084 (pixel_to_glyph_translation): Use it, so we don't crash in
11087 2000-03-04 Andy Piper <andy@xemacs.org>
11089 * window.h (struct window): add gutter_extent_modiff.
11091 * window.c (allocate_window): zero out gutter_extent_modiff.
11093 * redisplay.h: declare sync_display_line_structs.
11095 * redisplay.c (add_glyph_rune): add a better comment.
11097 * redisplay-output.c (sync_display_line_structs): made non-static.
11098 (compare_runes): remove unneccesary glyph cachel access.
11100 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11102 * gutter.c (output_gutter): don't output the gutter if extent
11103 changes only involve extents in buffers. use 4 sets of display
11105 (gutter_extent_signal_changed_region_maybe): new function. Mark
11106 extents in gutters as changed.
11107 (update_frame_gutters): use 4 sets of display lines.
11108 (reset_gutter_display_lines): ditto.
11109 (free_frame_gutters): ditto.
11110 (redraw_exposed_gutter): force output of gutters.
11112 * frame.h (struct frame): add 4 sets of gutter display lines.
11114 * extents.c: (extent_changed_for_redisplay): signal changes to
11115 extents in strings in the gutter as well as extents in buffers.
11117 2000-03-02 Andy Piper <andy@xemacs.org>
11119 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11121 * frame.c (Fmake_frame): make sure the gutters get initialized
11122 after the frame is visible.
11123 (set_frame_selected_window): re-arrange compilation macros a
11125 (change_frame_size_1): mark gutters changed.
11127 * device.c (Fset_device_class): mark gutters changed.
11129 2000-03-01 Andy Piper <andy@xemacs.org>
11131 * window.c (window_top_frame_gutter_height): deleted.
11132 (window_bottom_frame_gutter_height): ditto.
11133 (window_left_frame_gutter_height): ditto.
11134 (window_right_frame_gutter_height): ditto.
11135 (window_top_gutter_height): don't use them.
11136 (window_bottom_gutter_height): ditto.
11137 (window_left_gutter_width): ditto.
11138 (window_right_gutter_width): ditto.
11139 (Fsplit_window): ditto.
11140 (Fwindow_pixel_edges): don't use border dimensions here.
11142 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11143 (update_scrollbar_instance): ditto.
11145 * redisplay.c (generate_modeline): don't take gutters into account.
11146 (generate_modeline): ditto.
11147 (redisplay_frame): small gutter display optimization.
11149 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11151 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11152 gutters into account.
11154 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11155 for window position and type.
11157 * gutter.c (get_gutter_coords): fix for frame gutters.
11158 (update_frame_gutters): update frame geometry if the gutters have
11160 (init_frame_gutters): record current gutter geometries.
11162 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11164 (mswindows_widget_instantiate): ditto.
11166 * frame.h (struct frame): add current_gutter_bounds.
11168 * frame.c (change_frame_size_1): position window and minibuffer
11169 appropriately taking into account the frame gutters.
11171 * frame-x.c: (x_initialize_frame_size): take into account the
11174 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11176 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
11178 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11180 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11182 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11184 * file-coding.c (reset_decoding_stream): Clear previous
11185 detection state when autodetect.
11187 2000-02-29 Didier Verna <didier@xemacs.org>
11189 * extents.c (set_extent_glyph_1): don't require extents to be
11192 2000-02-27 Andy Piper <andy@xemacs.org>
11194 * gutter.c (Fset_default_gutter_position): don't default left and
11195 right gutter visibility to t.
11196 (Fset_default_gutter_position): run
11197 default-gutter-position-changed-hook.
11198 (syms_of_gutter): add default-gutter-position-changed-hook.
11200 2000-02-26 Andy Piper <andy@xemacs.org>
11202 * specifier.c (Fmake_specifier): add gutter references.
11204 * gutter.h (RAW_WINDOW_GUTTER): new macro.
11206 * lisp.h: declare Fvalid_plist_p.
11208 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11210 (default_gutter_visible_p_changed_in_window): invalidate gutter as
11211 well as its visibility so that it gets reconstructed.
11212 (construct_window_gutter_spec): new function. Construct a string
11213 to be displayed in the gutter from a plist of strings. Take care
11214 to only use elements that are declared as visible.
11215 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11217 (gutter_validate): allow plists of strings in the specifier.
11218 (gutter_specs_changed): construct the real_gutter from the gutter
11219 specs using construct_window_gutter_spec.
11220 (gutter_visible_validate): gutter-visible is a new specifier type.
11221 (Fgutter_visible_specifier_p): new function for the new specifier.
11222 (syms_of_gutter): declare gutter-visible and
11223 Fgutter_visible_specifier_p.
11224 (specifier_type_create_gutter): intitalize new gutter-visible
11226 (reinit_specifier_type_create_gutter): ditto.
11227 (specifier_vars_of_gutter): use new specifier type for gutter
11229 (init_frame_gutters): construct real_gutter correctly.
11230 (Fgutter_specifier_p): beef up documentation.
11231 (Fgutter_size_specifier_p): ditto.
11233 * winslots.h: add real_gutter slots.
11235 2000-02-25 Andy Piper <andy@xemacs.org>
11237 * device-msw.c: Be kind to older cygwin versions. From Raymond
11238 Toy <toy@rtp.ericsson.se>.
11240 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11241 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11243 2000-02-25 Martin Buchholz <martin@xemacs.org>
11245 * elhash.c (MARK_OBJ): Practice macro hygiene.
11247 2000-02-24 Martin Buchholz <martin@xemacs.org>
11249 * miscplay.c: s/__inline__/inline/g;
11250 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11251 (get_device_compdc): INLINE ==> static inline
11252 * *.[ch]: Change INLINE to INLINE_HEADER globally.
11253 find -name '*.h' | \
11254 xargs global-replace \
11255 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11257 2000-02-25 Andy Piper <andy@xemacs.org>
11259 * window.c (window_top_frame_gutter_height): new function.
11260 (window_top_window_gutter_height): ditto.
11261 (window_top_gutter_height): use them.
11262 (window_bottom_frame_gutter_height): new function.
11263 (window_bottom_window_gutter_height): ditto.
11264 (window_bottom_gutter_height): use them.
11265 (window_left_window_gutter_width): new function.
11266 (window_left_frame_gutter_width): ditto.
11267 (window_left_gutter_width): use them.
11268 (window_right_window_gutter_width): new function.
11269 (window_right_frame_gutter_width): ditto.
11270 (window_right_gutter_width): use them.
11271 (window_pixel_height): new function. calulate window pixel height
11272 with frame gutter involvement.
11273 (Fsplit_window): calculate new sizes taking frame gutters into
11275 (window_char_height_to_pixel_height): don't include frame gutters.
11276 (window_char_height): use window_pixel_height.
11277 (window_pixheight): rename from window_pixel_height.
11278 (change_window_height): use it.
11279 (window_pixel_height_to_char_height): don't include frame gutters.
11280 (window_char_width_to_pixel_width): ditto.
11282 2000-02-25 Andy Piper <andy@xemacs.org>
11284 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11287 2000-02-24 Martin Buchholz <martin@xemacs.org>
11289 * alloc.c (staticpro):
11290 (staticpro_nodump):
11295 (compact_string_chars):
11296 (pdump_dump_wired):
11297 Convert: if (foo) abort(); ==> assert (! foo);
11299 * eldap.c (Fldap_search_basic):
11303 Fix compiler warnings, and possible crashes if (random) return
11304 value were to be used.
11306 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11308 * device-msw.c: Workaround ResetDC failure.
11310 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11311 applying a devmode.
11313 * redisplay-msw.c (get_frame_dc): Added start_page_p.
11314 (mswindows_text_width): Do not start printer page.
11316 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11318 * glyphs-msw.c: Added image methods to msprinter console and
11319 msprinter-specific image instantiation.
11321 2000-02-20 Mike Alexander <mta@arbortext.com>
11323 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11324 to avoid crashes when selection-sets-clipboard is on
11325 (mswindows_own_selection): ditto
11327 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11330 * redisplay-msw.c (get_frame_dc):
11331 (get_frame_compdc):
11333 * device-msw.c (mswindows_init_device):
11334 (mswindows_delete_device):
11335 (msprinter_init_device):
11336 (msprinter_delete_device):
11337 * frame-msw.c (mswindows_init_frame_1):
11338 (mswindows_delete_frame):
11339 (msprinter_init_frame_3):
11340 (msprinter_delete_frame): Move compatible DC to device object from
11341 frame object, for both mswindows and msprinter. Only one at a time
11342 is needed, it is a real waste to have one per frame!
11344 2000-02-23 Andy Piper <andy@xemacs.org>
11346 * glyphs.c: add dynamic width and height elements.
11347 (image_instance_equal): ditto.
11349 * glyphs-widget.c (widget_query_geometry): calculate width and
11350 height dynamically if required.
11351 (initialize_widget_image_instance): initialize dynamic dimensions.
11352 (widget_instantiate): pick-up dynamic dimensions.
11354 * glyphs.h (struct Lisp_Image_Instance): add width and height for
11355 dynamic determination. Add appropriate macros.
11357 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11359 (WINDOW_GUTTER_SIZE): ditto.
11360 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11362 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11364 (get_frame_dc): ditto.
11366 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11369 2000-02-23 Martin Buchholz <martin@xemacs.org>
11371 * XEmacs 21.2.31 is released.
11373 2000-02-22 Ben Wing <ben@xemacs.org>
11375 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11377 2000-02-22 Andy Piper <andy@xemacs.org>
11379 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11381 2000-02-21 Mike Sperber <mike@xemacs.org>
11385 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11388 2000-02-21 Mike Sperber <mike@xemacs.org>
11390 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11392 2000-02-21 Martin Buchholz <martin@xemacs.org>
11394 * XEmacs 21.2.30 is released.
11396 2000-02-20 Martin Buchholz <martin@xemacs.org>
11398 Performance hacking.
11400 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11401 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11402 * emacs.c (main_1):
11404 * console.c (DEFVAR_CONSOLE_LOCAL_1):
11405 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11406 * symeval.h (DEFVAR_SYMVAL_FWD):
11407 * symbols.c (guts_of_unbound_marker):
11408 Make all c_readonly objects also lisp_readonly and marked for life.
11409 * lrecord.h (struct lrecord_implementation):
11410 Document flags better.
11411 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11412 * lrecord.h (DECLARE_LRECORD):
11413 * lrecord.h (XSETRECORD):
11414 * lrecord.h (RECORDP):
11415 * lrecord.h (RECORD_TYPEP):
11416 * lrecord.h (RECORD_MARKER): New.
11417 * lrecord.h (error_check_*):
11418 * lrecord.h (CONCHECK_NONRECORD):
11419 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11420 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11421 * lrecord.h (set_lheader_implementation):
11422 * lrecord.h (enum lrecord_type): New.
11423 * symeval.h (SYMBOL_VALUE_MAGIC_P):
11424 * alloc.c (disksave_object_finalization_1):
11425 * alloc.c (mark_object):
11426 * alloc.c (lrecord_type_index):
11427 * alloc.c (tick_lcrecord_stats):
11428 * alloc.c (Fgarbage_collect):
11429 * alloc.c (init_alloc_once_early):
11430 * alloc.c (pdump_load):
11431 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11432 * alloc.c (lrecord_type_index): Delete.
11433 Make lisp object type indexes be constant.
11434 Makes (byte-compile) 5% faster.
11435 Put all marker functions into their own array.
11436 Makes (garbage-collect) 5% faster.
11437 Optimize SYMBOL_VALUE_MAGIC_P.
11438 Makes (byte-compile) 2-3% faster.
11439 * config.h.in (gc_checking_assert): New.
11440 * alloc.c: Use gc_checking_assert().
11441 * .dbxrc: Make compatible with new object type implementation.
11442 * .gdbinit: Make compatible with new object type implementation.
11443 * alloc.c: Delete all symbols defined only for debugging, such as
11444 Lisp_Type_Vector and lrecord_charset.
11446 2000-02-21 Andy Piper <andy@xemacs.org>
11448 * gui-msw.c (Fmswindows_shell_execute): fix file location
11451 * buffer.c (Fkill_buffer): remove buffer from alist buffer
11452 unshowing so that set_window_buffer doesn't undo
11453 kill_buffer_hook's hard work.
11455 * glyphs-widget.c (tab_control_query_geometry): don't count the
11456 first item when calculating geometry.
11458 * glyphs.c (map_subwindow): remove redundant code.
11459 (update_frame_subwindows): be more circumspect about when to
11462 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11463 when items haven't changed. Update faces if faces have changed as
11464 well as just the widget face.
11465 (x_tab_control_update): Update faces if faces have changed as well
11466 as just the widget face.
11468 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11470 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11472 (build_syscolor_string): Use mswindows_color_to_string to try to
11474 (mswindows_device_system_metrics): Reverse the foreground and
11475 background colors so that they match the documentation.
11477 * objects-msw.c: (mswindows_X_color_map): tweak some values so
11478 they match the default Windows palette.
11479 (mswindows_color_to_string): New function.
11481 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11483 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11485 2000-02-18 Olivier Galibert <galibert@pobox.com>
11487 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11488 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11490 * symbols.c (init_symbols_once_early): Removed obsolete
11491 DATA_SEG_BITS related kludge.
11492 (defvar_magic): Ditto.
11494 * malloc.c: Removed obsolete DATA_SEG_BITS
11496 * mem-limits.h: Ditto.
11498 * Makefile.in.in: Removed obsolete HAVE_SHM
11501 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11503 * device-msw.c (mswindows_delete_device): Free DDE string
11506 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11508 * keymap.c (get_keyelt):
11509 * unexnt.c (unexec):
11510 * vm-limit.c (memory_warnings):
11511 * ntheap.c (recreate_heap):
11512 * ntheap.h (UNINIT_PTR):
11513 * select-msw.c (Fmswindows_get_clipboard):
11514 (Fmswindows_set_clipboard):
11515 * objects-msw.h (MSWINDOWS_BAD_HFONT):
11517 * menubar-msw.c (displayable_menu_item):
11519 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11520 * sysdep.c (sys_subshell):
11521 * process-nt.c (nt_create_process):
11522 * nt.c (normalize_filename):
11523 (dostounix_filename):
11524 (unixtodos_filename):
11525 * ntproc.c (win32_executable_type):
11526 * ntplay.c (play_sound_data_1):
11528 * editfns.c (get_home_directory):
11529 * event-msw.c (struct winsock_stream):
11530 (mswindows_dde_callback):
11531 * device-msw.c (msprinter_init_device):
11532 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11534 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11535 mswindows_clear_toolbar were swapped!
11537 * objects-msw.c:(colormap_t):
11539 * emacs.c (struct standard_args): Fixed const jumble.
11541 * glyphs-widget.c (update_widget): Fixed comparison notation.
11543 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11545 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11546 __declspec(noreturn) syntax.
11548 2000-02-19 Martin Buchholz <martin@xemacs.org>
11550 * eldap.c (Fldap_open):
11551 (Fldap_search_basic):
11554 Use new coding system conversion macros.
11556 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11558 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11560 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
11562 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11563 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11565 * eldap.c (Qadd, Qreplace): New constant symbols
11566 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11567 interruptions by XEmacs signals
11568 Remove unnecessary calls to slow_down_interrupts and
11569 speed_up_interrupts
11570 (Fldap_search_basic): Renamed from Fldap_search_internal
11571 Added new optional parameter VERBOSE that triggers the
11572 display of progress messages
11573 Remove unnecessary calls to slow_down_interrupts and
11574 speed_up_interrupts
11575 LDAP result code analysis rewritten
11576 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11577 (syms_of_eldap): Define the new symbols and functions
11580 2000-02-17 Martin Buchholz <martin@xemacs.org>
11582 * realpath.c: Determine PATH_MAX maximally portably.
11584 * insdel.c (bytecount_to_charcount): Optimize.
11585 The function used to be optimized for entirely ASCII sequences.
11586 Now it is optimized for successive characters from the same
11587 charset. This also wins big for _mostly_ ASCII sequences.
11589 * fileio.c (Ffile_truename): convert return from realpath() using
11590 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
11591 - Rewrite GCPROing slightly.
11593 * sysdep.c (sys_open): Do filename conversion, like all other
11594 sys_* functions. Fixes bug:
11595 (let ((file-name-coding-system 'iso-8859-2))
11596 (write-region x y latin2-name))
11597 ==> writes filename using internal encoding.
11599 2000-02-18 Martin Buchholz <martin@xemacs.org>
11601 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11602 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11603 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11604 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11605 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11606 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11607 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11608 (CONST_IF_NOT_DEBUG): Delete.
11609 * alloc.c (this_one_is_unmarkable): Delete.
11610 (mark_object): Don't check for this_one_is_unmarkable. Use the
11611 c_readonly flag instead.
11612 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11614 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
11616 * event-msw.c (mswindows_drain_windows_queue):
11617 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11618 away redundant repaint events.
11620 2000-02-17 Andy Piper <andy@xemacs.org>
11622 * redisplay.h: declare mark_redisplay_structs.
11624 * redisplay.c (redisplay_window):
11625 (redisplay_frame): don't check subwindows_state_changed.
11626 (mark_redisplay): mark gutters here.
11628 * glyphs.c: (instantiate_image_instantiator): always layout if we
11629 haven't done so already.
11630 (allocate_image_instance): don't mark as dirty.
11631 (update_subwindow): bind inhibit_quit.
11633 * gutter.c (mark_gutters): new function.
11635 * glyphs-x.c (x_update_widget): Always resize to get round a
11638 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11639 breaking absolutely everything.
11641 * gutter.h: declare mark_gutters.
11643 2000-02-16 Martin Buchholz <martin@xemacs.org>
11645 * XEmacs 21.2.29 is released.
11647 2000-02-15 Olivier Galibert <galibert@pobox.com>
11649 * fns.c (size_bit_vector): Fix computation of the size.
11651 2000-02-15 Martin Buchholz <martin@xemacs.org>
11653 * *.[ch]: Change CONST to const globally.
11654 find -name '*.[ch]' | \
11655 xargs global-replace \
11656 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11657 - Remove vestigial references to CONST_IS_LOSING
11659 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11661 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11662 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11663 events instead of dispatching them directly.
11664 (mswindows_handle_paint): New function to do repainting.
11665 (mswindows_wnd_proc):
11666 (emacs_mswindows_handle_magic_event): Call above function.
11668 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11670 * objects-msw.c (mswindows_create_font_variant): Return the new
11672 (initialize_font_instance): Get font metrics from the underlined
11673 variant of the font to cope with the case where the underlined
11674 font has a bigger descent.
11676 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11678 * gui.c (gui_item_accelerator): Return the first underlined
11679 character in item name.
11681 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11683 * lisp.h: Added Qprinter.
11685 * general.c (syms_of_general): Initialized it.
11687 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11689 (get_frame_compdc): Made inline.
11691 * console.h (struct console_methods): Added eject_page method.
11693 * frame.h: Added FRAME_DISPLAY_P and friends.
11694 Aligned backslahes in many macros in more readable fashion.
11695 Added page_number to struct frame, and an accessor macro
11698 * defice.h: Added DEVICE_DISPLAY_P and friends.
11700 * device.c (Fdevice_printer_p): Used these.
11702 * frame.c (allocate_frame_core): Initialize page number.
11703 (Fprint_job_page_number):
11704 (Fprint_job_eject_page): Implemented.
11706 * frame-msw.c (msprinter_eject_page): Added method.
11707 (msprinter_start_page): Added.
11709 * window.c (Fwindow_truncated_p): Fixed docstring.
11710 (Fwindow_last_line_visible_height): Implemented.
11712 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11714 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11716 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11718 * syntax.c (scan_words): Always advance at least one character.
11720 2000-02-13 Andy Piper <andy@xemacs.org>
11722 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11723 to make sure the glyph is in the cachels.
11725 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11726 global image instance flag.
11727 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11728 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11730 * glyphs.c (allocate_image_instance): set dirty bits correctly.
11731 (Fset_image_instance_property): mark layout as changed.
11732 (invalidate_glyph_geometry_maybe): mark layout as changed.
11733 (glyph_width): use new NEEDS_LAYOUT macro.
11734 (glyph_ascent): ditto.
11735 (glyph_descent): ditto.
11736 (glyph_height): ditto.
11737 (image_instance_layout): mark layout as clean after laying out.
11738 (update_subwindow): don't mark layout as clean here.
11740 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11741 should no longer be needed.
11743 * glyphs-x.c (x_update_widget): sanitize asserts.
11744 (x_finalize_image_instance): sanitize assignment to widgets.
11746 * glyphs-widget.c (widget_instantiate): don't need to clear the
11749 2000-02-13 Martin Buchholz <martin@xemacs.org>
11751 * sysdep.c (getcwd): Use standard prototype.
11752 * sysdep.h (getcwd): Use standard prototype.
11754 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11755 (sequence, start, end).
11756 Remove redundant type checking.
11757 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11758 view of `caller-protects') to avoid a crash where the real fix was
11761 2000-02-12 Martin Buchholz <martin@xemacs.org>
11763 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11765 * s/sol2.h: Remove feature macro initialization.
11767 * alloc.c (alloc_lcrecord): Add more type checking assertions.
11768 (vector_hash): New. Code from internal_hash.
11770 Fix up allocation subsystem comments.
11772 * config.h.in: Add __EXTENSIONS__ for Solaris.
11774 * systime.h (EMACS_GETTIMEOFDAY): New.
11775 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11776 Remove Solaris-specific code.
11777 Use void* for the (ignored) second arg for gettimeofday().
11779 * elhash.c (hash_table_hash): Implement it, finally.
11780 * elhash.c: Use hashcode_t.
11782 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11783 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11785 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11786 * fns.c (size_bit_vector):
11787 * alloc.c (size_vector):
11788 (make_vector_internal):
11789 (make_bit_vector_internal):
11790 (sweep_bit_vectors_1):
11791 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11793 2000-02-10 Martin Buchholz <martin@xemacs.org>
11795 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11796 Include strings.h to avoid warnings for bzero and strcasecmp.
11798 2000-02-10 Olivier Galibert <galibert@pobox.com>
11800 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11801 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11803 * fns.c (size_bit_vector): New. Declare bit vectors as a
11806 2000-02-10 Olivier Galibert <galibert@pobox.com>
11808 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11809 use a value field instead.
11810 (symbol_value_forward_forward): Use value field.
11811 (DEFVAR_SYMVAL_FWD): Use value field.
11812 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
11813 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11814 (DEFVAR_CONST_INT): Ditto.
11815 (DEFVAR_BOOL): Ditto.
11816 (DEFVAR_CONST_BOOL): Ditto.
11817 (DEFVAR_INT_MAGIC): Ditto.
11818 (DEFVAR_BOOL_MAGIC): Ditto.
11820 * symbols.c (guts_of_unbound_marker): Use value field.
11821 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11822 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11824 * lisp.h: Declare dumpopaque and noninteractive1.
11826 * alloc.c (dumpopaque): Added.
11827 (pdump_dump_opaquevec): Added.
11828 (pdump): Call pdump_dump_opaquevec to dump opaque data.
11829 (pdump_load): Reload opaque data. Sync noninteractive1 with
11832 2000-02-10 Andy Piper <andy@xemacs.org>
11834 * glyphs.c (image_instance_layout): if the size changes, mark it
11837 * redisplay-output.c (redisplay_output_layout): Update the
11839 (redisplay_output_subwindow): ditto.
11841 * glyphs.c (update_subwindow): make sure we reset flags for
11842 layouts as well as everything else.
11844 * glyphs-widget.c (layout_layout): don't need to set the instances
11847 2000-02-09 Martin Buchholz <martin@xemacs.org>
11849 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
11850 not HAVE_DLOPEN, which is a lower-level thing.
11852 * .cvsignore: Ignore gmon.out
11854 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
11856 * .cvsignore: Ignore portable dumper xemacs.dmp file
11858 2000-02-09 Andy Piper <andy@xemacs.org>
11860 * redisplay-output.c (redisplay_output_layout): be more clever
11861 about when we output based on the changed flags.
11863 * glyphs.h (struct image_instantiator_methods): add update_method.
11864 (struct Lisp_Image_Instance): add changed flags. Declare new
11865 macros for manipulating them.
11867 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11868 (image_instance_parent_glyph): find an image_instance's parent
11869 glyph or image_instance.
11870 (image_instance_layout): mark the size as changed.
11871 (set_image_instance_dirty_p): new function. mark an image
11872 instance, plus all of its parents, as dirty.
11873 (Fset_image_instance_property): use it.
11874 (Fglyph_animated_timeout_handler): use it.
11875 (update_subwindow): call update_widget and device methods for
11876 update_subwindow. Mark all changed flags as clean.
11877 (Fresize_subwindow): mark size as changed.
11879 * glyphs-x.c (x_finalize_image_instance): try and detect gc
11881 (x_update_subwindow): only resize subwindows here.
11882 (x_update_widget): new function. Update all changed properties of
11884 (x_resize_subwindow): deleted.
11885 (x_widget_set_property): deleted.
11886 (x_progress_gauge_set_property): deleted.
11887 (x_progress_gauge_update): new function. Implement recorded
11889 (x_tab_control_update): ditto.
11890 (x_tab_control_set_property): deleted.
11891 (console_type_create_glyphs_x): declare new functions.
11892 (image_instantiator_format_create_glyphs_x): ditto.
11894 * glyphs-widget.c (widget_set_property): mark text changed.
11895 (update_widget): new function. Update properties of a widget.
11896 (widget_instantiate): for layouts make sure we set their
11897 children's parent correctly.
11898 (tab_control_set_property): new function. Record changes that will
11899 take place under redisplay's control.
11900 (progress_gauge_set_property): ditto.
11901 (image_instantiator_progress_guage): declare new functions.
11902 (image_instantiator_tab_control): ditto.
11904 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11906 (mswindows_update_widget): new function. Update all properties on
11907 a widget that have changed.
11908 (mswindows_button_update): new function. Update a button's set
11910 (mswindows_tab_control_update): new function. Update the items in
11912 (mswindows_tab_control_set_property): deleted.
11913 (mswindows_progress_gauge_update): new function. Update the
11914 progress gauge's progress.
11915 (mswindows_widget_set_property): deleted. This is all done
11916 asynchronously now.
11917 (mswindows_progress_gauge_set_property): ditto.
11918 (console_type_create_glyphs_mswindows): declare new methods.
11919 (image_instantiator_format_create_glyphs_mswindows): ditto.
11921 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11922 (msprinter_set_frame_properties): ditto.
11924 * console.h (struct console_methods): Add update_widget_method.
11926 2000-02-09 Andy Piper <andy@xemacs.org>
11928 * gui-msw.c (Fmswindows_shell_execute): Make
11929 mswindows-shell-execute industrial strength.
11931 2000-02-08 Martin Buchholz <martin@xemacs.org>
11933 * lrecord.h: Make macro argument `props' match member function `plist'.
11936 * fns.c (Fremprop):
11937 * fns.c (Fobject_plist):
11940 Object property list frobbing cleanup.
11941 - Allow any lisp object (compared with `eq'), not just symbols, as
11942 keys in object plists.
11943 - Move symbol plist frobbing into symbols.c, where it belongs.
11944 - Move string plist frobbing into alloc.c, where it belongs.
11945 - Everything's an lrecord now, so no need to test for symbolp, etc.
11946 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11948 * extents.c: Reorder code to remove declarations.
11950 * frame.h (store_in_alist): Remove useless declaration.
11952 2000-02-07 Martin Buchholz <martin@xemacs.org>
11954 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11955 * config.h.in: Add HAVE_XCONVERTCASE.
11957 2000-02-07 Andy Piper <andy@xemacs.org>
11959 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11960 it breaks many things.
11962 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11964 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11965 actually can start a common comment type.
11966 * src/syntax.h (SYNTAX_END_P): ditto for end.
11968 2000-02-07 Martin Buchholz <martin@xemacs.org>
11970 * XEmacs 21.2.28 is released.
11972 2000-02-06 Martin Buchholz <martin@xemacs.org>
11974 * event-Xt.c (x_keysym_to_character): New.
11975 (maybe_define_x_key_as_self_inserting_character): New.
11976 (x_has_keysym): New.
11977 Auto-define all keys on the keyboard as self-insert-key.
11979 2000-02-02 Martin Buchholz <martin@xemacs.org>
11981 * menubar.c (vars_of_menubar): A small code simplification.
11983 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11986 * ExternalClient.c:
11987 * EmacsShell-sub.c:
11990 Use consistent style for specifying X resources.
11992 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11993 This makes (dontusethis-set-symbol-value-handler) actually usable.
11995 * lrecord.h (lrecord_decription_type):
11996 * alloc.c (pdump_register_sub):
11999 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12000 Comply with XEmacs coding style.
12001 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12002 args, and XD_LISP_OBJECT_ARRAY with 3 args.
12004 * keymap.c (Faccessible_keymaps):
12005 Make (accessible-keymaps map "\C-h") do the Right Thing.
12006 Make (accessible-keymaps map []) do the Right Thing.
12007 Make (accessible-keymaps map "") do the Right Thing.
12008 (check_keymap_definition_loop): New function.
12009 (keymap_store_internal): Keep luser from shooting self in foot,
12010 via (define-key ctl-x-4-map "p" global-map).
12011 Remove fullness slot from struct Lisp_Keymap, since hash tables
12013 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12015 2000-01-30 Martin Buchholz <martin@xemacs.org>
12017 * redisplay.c (init_redisplay): Fix small memory leak.
12019 * elhash.c (pdump_reorganize_hash_table):
12020 Rename from reorganize_hash_table. Change prototype.
12021 Reuse the original memory for hentries. Save 100k.
12022 * alloc.c (PDUMP_READ): new macro.
12023 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12024 * alloc.c: No need to #ifndef before #undef.
12026 * print.c: Allow debug_print() to print readably by modifying
12027 debug_print_readably. Use consistent variable names.
12029 * .dbxrc: Try to get things to work even if stopped in a function
12030 without source available by explicitly specifying source files.
12031 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12033 * unexnt.c (_start): Removed bogus code which caused loading heap
12034 from differrent executable file.
12035 Removed bogus assignment to _fmode, which caused inconsistencies.
12037 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12039 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12040 Have spawnve encapsulation regard DONT_ENCAPSULATE.
12041 Do not preliminary `#define signal sigset'.
12043 * systime.h: Do not prototype environ on windows nt and cygwin,
12044 this conflicts with system header.
12046 * syssignal.h: Use correct define for WINDOWSNT
12048 * sysdep.h: Do not prototype environ on windows nt, this conflicts
12049 with system header.
12051 * sysdep.c (near start of file): Fixed commentary and rearranged
12052 ifdefs in readable order.
12053 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12056 (end_of_data): Do not compile in if using PDUMP.
12058 * symsinit.h: Prototyped vars_of_nt().
12060 * ntproc.c (windows9x_p): Added, instead of os_subtype.
12061 (find_child_console): Use it.
12062 (sys_kill): Use it.
12064 * ntheap.h: Do not extern os_subtype.
12066 * ntheap.c (cache_system_info): Do not cache unneeded:
12067 nt_major_version, nt_minor_version and os_subtype.
12068 (recreate_heap): Do not compile in when PDUMPing.
12070 * nt.c (geteuid and friends): Use the new varibale
12071 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12072 (init_user_info): Removed the above mentioned hackery.
12073 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12074 stat has been fixed in the C runtime.
12075 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12077 * file-coding.c (struct file_coding_dump): Do not define
12078 ucs_to_mule_table in the struct if not MULE.
12079 (struct struct lrecord_description fcd_description_1): Do not dump
12082 * emacs.c (main_1): Call vars_of_nt().
12083 (right before Fdump_emacs_data): Don't need lastfile if using both
12084 portabe dumper and system malloc.
12086 * alloc.c (Fmemory_limit): Conditionalized out.
12087 (pdump): Use OPEN_BINARY for the portable dump file.
12088 (pdump_load): Ditto.
12090 2000-02-02 Mike Alexander <mta@arbortext.com>
12092 * nt.c (convert_time): Set tm_isdst before calling mktime and
12093 avoid calling it at all if the compiler supports 64 bit integers.
12094 Also initialize utc_base_ft before using it.
12096 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
12098 * frame.c (change_frame_size_1): Take f->internal_border_width
12099 into consideration when calculating the width of the frame.
12101 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12103 * window.c (frame_min_height):
12104 (frame_size_valid_p):
12105 (frame_pixsize_valid_p): Added.
12106 (check_frame_size): Generalized.
12108 * window.h: Prototyped the above.
12111 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12112 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12113 Deleted Vwin32_* and Vbinary_process_* unused variables.
12115 * device-msw.c (msprinter_init_device): Do not get printer font
12116 list; Added DEVMODE functions.
12118 * frame-msw.c: Added lots of printer code.
12120 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12123 * console-msw.h: Added more msprinter device private slots.
12125 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12127 * event-msw.c (key_needs_default_processing_p): Added.
12128 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12130 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12132 * glyphs.c (image_instance_layout): Mark image instance as clean
12134 (glyph_dirty_p): Removed redundant function.
12135 (invalidate_glyph_geometry_maybe): Added.
12136 (update_glyph_cachel_data): Call it.
12138 * glyphs.h: Prototyped it.
12140 * redisplay.c (add_glyph_rune): Call it.
12141 (redisplay_window): Reset glyphs cachels when frame faces have
12142 changed, thus forcing recomputation of built-in border glyphs.
12144 2000-01-30 Martin Buchholz <martin@xemacs.org>
12146 * Makefile.in.in: Make portable dumper and purify play well together.
12147 Add imperfect, but better than nothing, support for pdump.
12148 Remove xemacs.dmp when temacs is re-generated.
12149 Don't ignore errors when dumping xemacs.
12151 * symbols.c (maybe_call_magic_handler): Remove one magic number.
12153 2000-01-28 Andy Piper <andy@xemacs.org>
12155 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12156 (setup_normal_frame): ditto.
12157 (setup_frame_without_minibuffer): ditto.
12158 (setup_minibuffer_frame): ditto.
12159 (delete_frame_internal): ditto.
12160 (Fmake_frame_invisible): ditto.
12161 (Ficonify_frame): ditto.
12163 * window.h: change Fset_window_buffer signature.
12165 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12166 (Fset_window_buffer): allow recording of buffer if the window is
12167 the selected window.
12168 (window_loop): Use new Fset_window signature.
12170 2000-01-23 Daniel Pittman <daniel@danann.net>
12172 * config.h.in: Added template for `HAVE_ATHENA_3D'
12174 2000-01-29 Andy Piper <andy@xemacs.org>
12176 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12178 * gutter.c (output_gutter): Don't output if the window isn't live.
12180 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12182 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12183 of 01/12/00: Moved SetFocus back here where it belongs.
12185 2000-01-23 Andy Piper <andy@xemacs.org>
12187 * s/cygwin32.h: declare printer things.
12189 2000-01-26 Andy Piper <andy@xemacs.org>
12191 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12194 2000-01-24 Andy Piper <andy@xemacs.org>
12196 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12197 (mswindows_button_instantiate): Make sure glyph is a pixmap.
12199 * glyphs-widget.c (widget_instantiate): Avoid shadows.
12201 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12203 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12205 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12206 (mswindows_output_display_block): Avoid local shadows.
12208 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12209 (mswindows_enqueue_mouse_button_event): ditto.
12210 (mswindows_handle_gui_wm_command): remove declaration.
12212 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12215 * console-msw.h: Avoid shadows.
12216 (mswindows_get_toolbar_button_text):
12217 (emacs_mswindows_create_stream_pair):
12218 (emacs_mswindows_delete_stream_pair):
12219 (mswindows_handle_toolbar_wm_command): declare.
12221 * device-msw.c (build_syscolor_string): Avoid shadows.
12223 2000-01-23 Andy Piper <andy@xemacs.org>
12225 * glyphs-widget.c (widget_instantiate): reverse the items for
12226 layouts so that children are in the expected order.
12228 2000-01-28 Martin Buchholz <martin@xemacs.org>
12230 * ralloc.c: safe_bcopy ==> memmove
12231 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12232 * s/msdos.h: Remove BCOPY macros.
12233 * insdel.c (gap_right): Remove BCOPY conditional code.
12234 * insdel.c (gap_left): Remove BCOPY conditional code.
12235 XEmacs demands a working ANSI C compiler - hence memmove.
12237 * regex.c (regex_compile): Remove accidental use of trigraphs.
12239 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12241 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12244 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12246 * event-msw.c (mswindows_drain_windows_queue): Added the
12248 (mswindows_need_event): Commented the call to
12249 mswindows_drain_windows_queue().
12250 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12253 * console-msw.h: Moved a few function prototypes here from
12256 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12257 parameter from unsigned short to unsigned long.
12258 (Fmswindows_shell_execute): Added return value.
12260 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12262 * sysdep.c (init_system_name):
12263 process-unix.c (unix_canonicalized_host_name):
12264 Don't call freeaddrinfo() if getaddrinfo() fails.
12266 * process-unix.c (unix_open_unix_network_stream):
12267 Moved the code to get a port # into address loop.
12269 2000-01-27 Martin Buchholz <martin@xemacs.org>
12271 * buffer.c (reinit_vars_of_buffer):
12272 The right place to initialize conversion_in_dynarr and
12273 conversion_out_dynarr.
12275 * alloc.c (pdump): Use the real open() till sys_open() is functional.
12277 * process-unix.c (unix_canonicalize_host_name): Muleize.
12278 (unix_open_network_stream): Muleize.
12280 * buffer.h: Fix up prototypes for ralloc.c functions.
12282 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12283 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12284 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12285 instead of gethostbyname()
12286 * process-unix.c: In unix_canonicalize_host_name() and
12287 unix_open_network_stream(), add code to use getaddrinfo()
12288 instead of gethostbyname().
12290 2000-01-27 Daniel Pittman <daniel@danann.net>
12292 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12293 libs when built with flat Athena.
12295 2000-01-27 Martin Buchholz <martin@xemacs.org>
12297 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12298 Use coding standards for function prototypes.
12300 2000-01-25 Martin Buchholz <martin@xemacs.org>
12302 * dialog-msw.c (push_lisp_string_as_unicode):
12303 * doc.c (unparesseuxify_doc_string):
12304 * dired.c (Fuser_name_completion_1):
12305 * dired.c (Fuser_name_all_completions):
12306 * dired.c (free_user_cache):
12307 * dired.c (user_name_completion):
12308 * console-x.c (get_display_arg_connection):
12309 * minibuf.c (clear_echo_area_internal):
12310 * minibuf.c (echo_area_append):
12311 * eldap.c (Fldap_open):
12312 * eldap.c (Fldap_search_internal):
12313 * frame-x.c (x_set_frame_text_value):
12314 * frame-x.c (x_set_frame_properties):
12315 * frame-x.c (x_create_widgets):
12316 * redisplay-tty.c (term_get_fkeys_1):
12317 * objects-x.c (x_parse_nearest_color):
12318 * objects-x.c (x_valid_color_name_p):
12319 * objects-x.c (x_initialize_font_instance):
12320 * objects-x.c (x_list_fonts):
12321 * objects-x.c (x_find_charset_font):
12322 * tooltalk.c (Fadd_tooltalk_message_arg):
12323 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12324 * tooltalk.c (Fadd_tooltalk_pattern_arg):
12325 * process-unix.c (unix_create_process):
12326 * ntproc.c (sys_spawnve):
12327 * sound.c (Fplay_sound_file):
12328 * sound.c (Fplay_sound):
12329 * buffer.c (init_initial_directory):
12330 * buffer.c (init_buffer):
12331 * editfns.c (init_editfns):
12332 * editfns.c (Ftemp_directory):
12333 * editfns.c (Fuser_full_name):
12334 * editfns.c (uncache_home_directory):
12335 * editfns.c (get_home_directory):
12336 * editfns.c (Fuser_home_directory):
12337 * editfns.c (Fformat_time_string):
12338 * editfns.c (Fcurrent_time_string):
12339 * gui-x.c (button_item_to_widget_value):
12340 * database.c (Fopen_database):
12341 * event-Xt.c (x_to_emacs_keysym):
12342 * event-Xt.c (x_event_to_emacs_event):
12343 * event-Xt.c (describe_event_window):
12344 * event-msw.c (mswindows_wnd_proc):
12345 * glyphs-eimage.c (jpeg_instantiate):
12346 * glyphs-eimage.c (gif_instantiate):
12347 * glyphs-eimage.c (png_instantiate):
12348 * glyphs-eimage.c (tiff_instantiate):
12349 * glyphs-x.c (xbm_instantiate_1):
12350 * glyphs-x.c (x_xbm_instantiate):
12351 * glyphs-x.c (x_xface_instantiate):
12352 * glyphs-x.c (autodetect_instantiate):
12353 * glyphs-x.c (cursor_font_instantiate):
12354 * glyphs-x.c (x_widget_instantiate):
12355 * glyphs-x.c (x_widget_set_property):
12356 * glyphs-x.c (x_widget_property):
12357 * glyphs-x.c (BUILD_GLYPH_INST):
12358 * print.c (write_string_to_stdio_stream):
12359 * print.c (output_string):
12360 * print.c (Falternate_debugging_output):
12361 * print.c (Fexternal_debugging_output):
12362 * glyphs-msw.c (extract_xpm_color_names):
12363 * glyphs-msw.c (mswindows_xpm_instantiate):
12364 * glyphs-msw.c (bmp_instantiate):
12365 * glyphs-msw.c (resource_name_to_resource):
12366 * glyphs-msw.c (mswindows_resource_instantiate):
12367 * glyphs-msw.c (xbm_instantiate_1):
12368 * glyphs-msw.c (mswindows_xbm_instantiate):
12369 * glyphs-msw.c (mswindows_xface_instantiate):
12370 * glyphs-msw.c (mswindows_widget_instantiate):
12371 * glyphs-msw.c (add_tree_item):
12372 * glyphs-msw.c (add_tab_item):
12373 * glyphs-msw.c (mswindows_combo_box_instantiate):
12374 * glyphs-msw.c (mswindows_widget_property):
12375 * glyphs-msw.c (mswindows_combo_box_property):
12376 * glyphs-msw.c (mswindows_widget_set_property):
12377 * console.c (stuff_buffered_input):
12378 * objects-msw.c (mswindows_initialize_color_instance):
12379 * objects-msw.c (mswindows_valid_color_name_p):
12380 * objects-msw.c (mswindows_list_fonts):
12381 * objects-msw.c (mswindows_font_instance_truename):
12382 * bytecode.c (optimize_compiled_function):
12383 * select-x.c (symbol_to_x_atom):
12384 * select-x.c (x_atom_to_symbol):
12385 * select-x.c (hack_motif_clipboard_selection):
12386 * select-x.c (selection_data_to_lisp_data):
12387 * select-x.c (lisp_data_to_selection_data):
12388 * select-x.c (Fx_get_cutbuffer_internal):
12389 * select-x.c (Fx_store_cutbuffer_internal):
12390 * buffer.h (TO_EXTERNAL_FORMAT): New function.
12391 * buffer.h (TO_INTERNAL_FORMAT): New function.
12392 * emacs.c (make_arg_list_1):
12393 * emacs.c (make_argc_argv):
12394 * emacs.c (main_1):
12395 * emacs.c (Fdump_emacs):
12396 * emacs.c (split_string_by_emchar_1):
12401 * device-x.c (x_init_device):
12402 * device-x.c (Fx_valid_keysym_name_p):
12403 * device-x.c (Fx_get_font_path):
12404 * device-x.c (Fx_set_font_path):
12405 * glyphs.c (bitmap_to_lisp_data):
12406 * glyphs.c (pixmap_to_lisp_data):
12407 * alloc.c (make_ext_string): Use coding system arguments. Update
12409 * alloc.c (build_string):
12410 * callproc.c (child_setup):
12411 * callproc.c (init_callproc):
12412 * fileio.c (lisp_strerror):
12413 * fileio.c (directory_file_name):
12414 * fileio.c (Fexpand_file_name):
12415 * fileio.c (Ffile_truename):
12416 * fileio.c (Fsysnetunam):
12417 * fileio.c (Fdo_auto_save):
12418 * sysdep.c (sys_readdir):
12419 * tests.c: New file. Allow adding C tests.
12420 Replace GET_* macros with a more comprehensible and flexible
12421 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12423 Any coding system can be used to do format conversion.
12424 Eliminate enum external_data_format.
12425 Eliminate convert_to_external_format.
12426 Eliminate convert_to_internal_format.
12427 Make sure file-name, keyboard, terminal, and ctext are always
12428 defined as coding systems or aliases. Make
12429 file-name-coding-system, terminal-coding-system, and
12430 keyboard-coding-system magical variables that are equivalent to
12431 defining the corresponding coding system aliases.
12433 * file-coding.c (Fcoding_system_canonical_name_p): New function.
12434 * file-coding.c (Fcoding_system_alias_p): New function.
12435 * file-coding.c (Fcoding_system_aliasee): New function.
12436 * file-coding.c (append_suffix_to_symbol): New function.
12437 * file-coding.c (dangling_coding_system_alias_p): New function.
12438 * file-coding.c (Ffind_coding_system):
12439 * file-coding.c (Fcopy_coding_system):
12440 * file-coding.c (encode_coding_no_conversion):
12441 * file-coding.c (syms_of_file_coding):
12442 * file-coding.c (vars_of_file_coding):
12443 Rewrite coding system alias code.
12444 Allow nested aliases, like symbolic links.
12445 Allow redefinition of coding system aliases.
12446 Prevent existence of dangling coding system aliases.
12448 * dired.c (Fuser_name_completion_1):
12449 * dired.c (Fuser_name_all_completions):
12450 A crash would happen if user did QUIT in the middle of building
12451 user_name_cache. Remove redundant code in mainline and unwind_protect.
12454 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
12456 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12457 an unsigned char *. Update all callers.
12459 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12461 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12463 2000-01-25 Martin Buchholz <martin@xemacs.org>
12465 * elhash.c (hentry_description): Use more portable definition.
12466 (resize_hash_table): Initialize new hentries using
12467 xnew_array_and_zero, thereby simplifying the code.
12469 * mule-charset.c (make_charset): Make sure entire object is
12470 initialized, to avoid Purify warnings.
12472 * alloc.c (resize_string): Fix unlikely crash with big strings.
12474 2000-01-24 Martin Buchholz <martin@xemacs.org>
12476 * realpath.c (xrealpath):
12477 Don't call getwd().
12479 2000-01-25 Martin Buchholz <martin@xemacs.org>
12481 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12483 1999-12-28 Max Matveev <max@melbourne.sgi.com>
12485 * unexelfsgi.c (unexec): Change the way we decide which segment
12486 should be extended.
12488 Assumption that .bss section should be outside the PT_LOADable
12489 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12490 it's present) is inside the 'data' segment. This would fail the
12491 test which was used to find a segment to grow and cover new
12492 heap. Instead of this assumption, I created another one - on IRIX
12493 the segment to grow should start below .bss and it's address
12494 should extent above the end of .bss. Once this segment is
12495 identified, it's grown to accommodate the new heap and new
12496 zero-length .bss section is added at the end of .data2.
12498 2000-01-25 Martin Buchholz <martin@xemacs.org>
12500 * eval.c (Feval): Wrong number of arguments should use original
12501 function, not the indirect_function version of it.
12503 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12505 * glyphs-x.c (x_button_instantiate): Don't add image if
12506 it is not a pixmap.
12507 (x_locate_pixmap_file): Call Fexpand_file_name when file name
12510 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
12512 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12514 (DEFVAR_INT_MAGIC): Ditto.
12515 (DEFVAR_BOOL_MAGIC): Ditto.
12516 * glyphs.h: Reindent backslash.
12518 2000-01-24 Martin Buchholz <martin@xemacs.org>
12520 * glyphs-widget.c (layout_query_geometry):
12521 (layout_layout): Use correct types for gheight, gwidth.
12523 2000-01-24 Martin Buchholz <martin@xemacs.org>
12525 * EmacsManager.c (QueryGeometry): Purified.
12527 2000-01-23 Martin Buchholz <martin@xemacs.org>
12529 * alloc.c (make_float): Make sure entire object is initialized, to
12530 avoid Purify warnings.
12531 (pdump_register_sub): Remove useless assignment.
12532 (pdump): Use xmalloc, not malloc.
12533 (pdump_load): Use xmalloc, not malloc.
12535 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12542 * sysdep.c: Removed redundant #include <windows.h>
12544 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12546 * frame.c (delete_frame_internal): Do not delete device when its
12547 implementation so declares.
12548 (delete_frame_internal): Set device selected frame to nil when
12549 last frame goes away.
12551 * device-msw.c (msprinter_device_system_metrics): Implemented.
12552 (mswindows_device_system_metrics): Added 'device-dpi property.
12554 * device.c: (Fdevice_printer_p): Added.
12555 Added 'offset-workspace device metric.
12557 * console.h (device_metrics): Declared DM_offset_workspace.
12559 2000-01-23 Martin Buchholz <martin@xemacs.org>
12561 * fileio.c (Ffile_truename): Remove pointless and confusing
12562 initialization of elen.
12564 * glyphs-widget.c: Compiler warning fixes.
12566 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
12568 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12569 instead of a Lisp_Object as argument to make it consistent with
12570 the other LIVE_P macros.
12571 (CHECK_LIVE_PROCESS): New macro.
12573 * process.c: Declare Qprocess_live_p.
12574 (Fprocess_live_p): New function.
12575 (create_process): Use PROCESS_LIVE_P.
12576 (read_process_output): Ditto.
12577 (set_process_filter): Ditto.
12578 (Fdelete_process): Ditto.
12579 (kill_buffer_processes): Ditto
12580 (process_send_signal): Use CHECK_LIVE_PROCESS.
12581 (Fprocess_input_coding_system): Check whether process is still
12582 alive (fix PR#1061).
12583 (Fprocess_output_coding_system): Ditto.
12584 (Fprocess_coding_system): Ditto.
12585 (Fset_process_input_coding_system): Ditto.
12586 (Fset_process_output_coding_system): Ditto.
12588 2000-01-23 Andy Piper <andy@xemacs.org>
12590 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12593 * glyphs.c (mark_image_instance): take into account changed
12594 image_instance format.
12595 (image_instance_equal): ditto.
12596 (image_instance_hash): ditto.
12598 * glyphs-widget.c (widget_instantiate): Incorporate layout
12599 instantiation here. Delay layout of the layout until later.
12600 (layout_instantiate): deleted.
12601 (layout_query_geometry): new function. get the geometry of a
12603 (layout_layout): layout a layout dynamically.
12604 (image_instantiator_widget): New function - splitting up
12605 image_instantiator_format_create_glyphs_widget for netwinder
12607 (image_instantiator_buttons):
12608 (image_instantiator_edit_fields):
12609 (image_instantiator_combo_box):
12610 (image_instantiator_scrollbar):
12611 (image_instantiator_progress_guage):
12612 (image_instantiator_tree_view):
12613 (image_instantiator_tab_control):
12614 (image_instantiator_labels):
12615 (image_instantiator_layout): ditto.
12616 (image_instantiator_format_create_glyphs_widget): Call preceding
12619 2000-01-22 Martin Buchholz <martin@xemacs.org>
12621 * process.c (Fset_process_coding_system):
12622 * device-x.c (Fx_keysym_hash_table):
12625 * lstream.c (Lstream_write): Return documented value, not 0.
12627 * fileio.c (directory_file_name):
12628 (Fsubstitute_in_file_name):
12629 (Fsubstitute_insert_file_contents_internal):
12630 (Fwrite_region_internal):
12635 Remove vestigial APOLLO-conditional code.
12637 2000-01-21 Martin Buchholz <martin@xemacs.org>
12639 * getpagesize.h: Add guard macros.
12640 * libsst.h: Add guard macros.
12641 * libst.h: Add guard macros.
12642 * line-number.h: Add guard macros.
12643 * ndir.h: Add guard macros.
12644 * sysfloat.h: Add guard macros.
12645 * sysfile.h: Add guard macros.
12646 * sysproc.h: Add guard macros.
12647 * syswait.h: Add guard macros.
12648 * xintrinsic.h: Add guard macros.
12649 * xintrinsicp.h: Add guard macros.
12650 * xmmanager.h: Add guard macros.
12651 * xmmanagerp.h: Add guard macros.
12652 * xmprimitive.h: Add guard macros.
12653 * xmu.h: Add guard macros.
12654 * gpmevent.h: Add copyright statement. Add guard macros.
12655 * miscplay.h: Add guard macros.
12656 * *.h: Use consistent C-standards-approved guard macro names.
12658 * opaque.c (make_opaque): Switch parameter order.
12659 * opaque.h (make_opaque): Switch parameter order.
12660 Update all callers.
12661 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12663 * config.h.in (type_checking_assert): Added.
12664 (bufpos_checking_assert): Added.
12666 2000-01-21 Martin Buchholz <martin@xemacs.org>
12668 * alloc.c: Harmless pdump changes.
12670 - spell alignment correctly.
12671 * sysdep.c: Use countof()
12673 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12675 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12676 initially_selected_for_input() console method, default to 0.
12677 (semi_canonicalize_console_connection): Try to delegate to
12678 canonicalize_console_connection if no such console method.
12679 (canonicalize_console_connection): Vice versa.
12680 (print_console): Do not print nil connection.
12682 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12683 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12684 (XDEVIMPF_FRAMELESS_OK): Added.
12685 (CONSOLE_INHERITS_METHOD): Added.
12687 * console-msw.c (mswindows_canonicalize_console_connection):
12689 (mswindows_canonicalize_device_connection): Added.
12691 * console-msw.h (struct msprinter_device): Added this struct and
12693 (mswindows_device): Made fontlist a lisp object.
12695 * device.c (semi_canonicalize_device_connection): Try to delegate
12696 to canonicalize_device_connection if no such console method.
12697 (canonicalize_device_connection): Vice versa.
12698 (print_device): Do not print nil connection.
12700 * device-msw.c (mswindows_init_device): Call InitCommonControls
12702 (mswindows_delete_device): Removed fontlist deallocation.
12703 (mswindows_mark_device): Added.
12705 * events.c (event_equal): Added abort() at unreached code.
12706 (event_hash): Ditto.
12708 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12709 fallback tags of Windows devices.
12711 * general.c (syms_of_general): Initialized Qmsprinter.
12713 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12714 of fallback tags of Windows devices.
12716 * lisp.h: Declared Qmsprinter.
12718 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12720 (mswindows_list_fonts): Ditto.
12721 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12722 that it can be used by both mswindows and msprinter devices.
12723 (initialize_font_instance): Added.
12724 (mswindows_initialize_font_instance): Use it.
12725 (msprinter_initialize_font_instance): Added.
12727 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12728 and implementation flags check.
12729 (redisplay_without_hooks): Changed the call to the above.
12730 (Fredraw_device): Ditto.
12731 (Fredisplay_device): Ditto.
12733 * redisplay-msw.c (get_frame_dc): Implemented.
12734 (get_frame_compdc): Implemented.
12735 (many functions): Use the two functions above to get device
12736 contexts, ether for a window or a printer.
12738 2000-01-21 Olivier Galibert <galibert@pobox.com>
12740 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12741 initialization here.
12742 (init_symbols_once_early): Call it.
12743 * emacs.c (main_1): Call it.
12744 * symsinit.h: Declare it.
12746 2000-01-19 Olivier Galibert <galibert@pobox.com>
12748 * alloc.c: Use a lrecord_header * in the backtrace instead of a
12750 (pdump_backtrace): Ditto.
12751 (pdump_register_object): Ditto. Cleanup use of the pointers.
12752 (pdump_get_entry): Abort if trying to register a null pointer.
12753 (pdump_dump_data): Cleanup types when relocating.
12754 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12755 (pdump_dump_rtables): Remove bad casts.
12756 (pdump_load): Cleanup relocation w.r.t union type. Use a
12757 Lisp_Object instead of a EMACS_INT for the hashtable
12760 2000-01-20 Martin Buchholz <martin@xemacs.org>
12762 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12764 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12766 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12768 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12770 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12772 * faces.h (FACE_STRIKETHRU_P): Added.
12774 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12777 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12778 (mswindows_set_dc_font): New function, aware of font variants,
12779 separated from mswindows_update_dc.
12781 * objects-msw.h (struct mswindows_font_instance_data): Added
12784 * objects-msw.c (mswindows_finalize_font_instance): Delete all
12785 cached fonts and the data structure.
12786 (mswindows_initialize_font_instance): Added creation of font data
12788 (mswindows_print_font_instance): Print at least something.
12789 (mswindows_create_font_variant): Implemented.
12790 (mswindows_get_hfont): Implemented.
12792 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
12794 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12795 prototyping problem with msvc.
12797 * emacs.c (main_1): added syms_of_gui_mswindows() call
12799 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12800 syms_of_gui_mswindows() function
12802 * symsinit.h: added the prototype for syms_of_gui_mswindows()
12804 2000-01-18 Martin Buchholz <martin@xemacs.org>
12806 * XEmacs 21.2.27 is released.
12808 2000-01-18 Martin Buchholz <martin@xemacs.org>
12810 * glyphs-eimage.c (struct tiff_error_struct):
12812 (tiff_warning_func):
12813 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12818 * unexec.c: Remove vestigial Lucid C code.
12822 * libsst.c: Ansify.
12823 Remove declarations of errno and strerror().
12825 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
12827 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12829 2000-01-16 Martin Buchholz <martin@xemacs.org>
12831 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12834 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12839 Change enum eol_type to eol_type_t.
12841 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12843 * gui.c (get_gui_callback): Check cons before accessing car.
12845 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12847 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12848 (XSETSPECIFIER_TYPE): Ditto.
12850 2000-01-17 Didier Verna <didier@xemacs.org>
12852 * redisplay.c (generate_fstring_runes): compute string size in
12853 characters, not bytes.
12855 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12857 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12859 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
12861 * print.c (print_error_message): Call print_prepare().
12863 2000-01-14 Martin Buchholz <martin@xemacs.org>
12865 * .dbxrc: Renamed from dbxrc.
12867 * events.c (event_to_character):
12868 Use `assert (foo)' instead of `if (!foo) abort()'
12870 * .gdbinit (xtype): Add documentation.
12871 * .gdbinit (check-temacs): New function.
12872 * .gdbinit (check-xemacs): New function.
12873 * dbxrc (check-xemacs): New function.
12874 * dbxrc (check-xemacs): New function.
12876 2000-01-14 Andy Piper <andy@xemacs.org>
12878 * glyphs-widget.c (widget_query_geometry): Make sure that we
12879 calculate default dimensions correctly.
12881 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12883 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12885 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12886 pdump_wire'd variable.
12888 * emacs.c: (main_1): Conditionalized calls to
12889 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12891 2000-01-13 Martin Buchholz <martin@xemacs.org>
12893 * window.c (Fset_window_configuration):
12894 * sysdep.c (_start):
12895 * input-method-motif.c (res):
12896 * event-Xt.c (Xt_process_to_emacs_event):
12897 Simple compiler warning fixes.
12899 * bytecode.c (funcall_compiled_function): Use the original
12900 function symbol on the backtrace list in preference to the
12901 compiled_function object in error messages.
12903 2000-01-13 Andy Piper <andy@xemacs.org>
12905 * glyphs-x.c (update_widget_face): Make sure we update the widget
12906 background as well as foreground.
12908 2000-01-13 Andy Piper <andy@xemacs.org>
12910 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12911 fields to subwindow.
12912 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12913 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12914 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12915 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12917 * glyphs-widget.c (check_valid_tab_orientation): new function.
12918 (initialize_widget_image_instance): zero orientation and
12920 (widget_instantiate): pick up orientation.
12921 (tab_control_query_geometry): return appropriate values for
12924 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12925 appropriate creation flags for left, right and bottom tabs.
12927 * s/cygwin32.h: add tab definitions.
12929 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12931 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12932 frame upon hiding a subwindow.
12933 (mswindows_button_instantiate): Changed the push button style to
12935 (mswindows_button_instantiate): Removed button BS_NOTIFY
12937 (mswindows_button_instantiate): Removed redundant check for
12938 a disabled gui item.
12939 (mswindows_button_instantiate): Made use of WS_TABSTOP
12940 consistent: "operable" controls (edit, button, tree, scroll) have
12941 this style, "display-only" ones (static, progress gauge) do
12942 not. This style is currently ignored by XEmacs though. Also,
12943 removed the WS_EX_CONTROLPARENT style - it is not for children,
12944 it is for their parents!
12945 (mswindows_edit_field_instantiate): Ditto.
12946 (mswindows_progress_gauge_instantiate): Ditto.
12947 (mswindows_tree_view_instantiate): Ditto.
12948 (mswindows_tab_control_instantiate): Ditto.
12949 (mswindows_scrollbar_instantiate): Ditto.
12950 (mswindows_combo_box_instantiate): Ditto.
12951 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12952 style to the "clip" window.
12953 (mswindows_button_instantiate): Removed compilation warning by
12954 equally typing terms of the ?: operator.
12956 2000-01-12 Didier Verna <didier@xemacs.org>
12958 * redisplay.c (generate_fstring_runes): new parameter holding the
12959 last modeline-format extent.
12960 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12961 extent, fill the glyph block with it.
12962 (generate_fstring_runes): handle these parameters.
12963 (generate_formatted_string_db): ditto.
12965 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12966 glyphs'extents in the modeline.
12968 1999-01-11 Mike Woolley <mike@bulsara.com>
12970 * ntheap.c: Reduced the reserved heap space from 1Gb down to
12971 256Mb, as a workaround for the non-starting problem many people
12974 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12976 * console-tty.c (Fset_console_tty_output_coding_system):
12977 Force redrawing tty frame.
12979 2000-01-10 Didier Verna <didier@xemacs.org>
12981 * redisplay.c (generate_fstring_runes): fix size computation bug.
12983 2000-01-09 William M. Perry <wmperry@aventail.com>
12985 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12987 2000-01-09 Andy Piper <andy@xemacs.org>
12989 * glyphs-msw.c: index -> i to avoid shadows.
12990 (xbm_create_bitmap_from_data): make static.
12991 (check_valid_string_or_int): deleted.
12992 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12994 * glyphs-x.c (x_update_subwindow): remove unused args.
12996 * glyphs.c (glyph_image_instance): return the thing. Don't set the
12997 back pointer - this is done in allocate_image_instance.
12998 (query_string_font): return Qnil to make the compiler happy.
12999 (unmap_subwindow): set to ~0 to make the compiler happy.
13000 (glyph_query_geometry): comment out until used.
13001 (glyph_layout): ditto.
13003 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
13005 * insdel.c (signal_after_change): Remove extraneous unbind_to().